Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: mpt3sas: Remove CPU arch check to determine perf_mode

Currently default perf_mode is set to 'balanced' on Intel architecture
machines and on other machines default perf_mode is set to 'latency' mode.

This CPU architecture check is removed and the default perf_mode mode is
set to 'balanced' mode on all machines.

User can choose the required performance mode using perf_mode module
parameter.

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Sreekanth Reddy and committed by
Martin K. Petersen
381abbd1 4e1c94b0

+1 -15
+1 -15
drivers/scsi/mpt3sas/mpt3sas_base.c
··· 113 113 "interrupt coalescing is enabled on all queues,\n\t\t" 114 114 "2 - latency: high iops mode is disabled &\n\t\t" 115 115 "interrupt coalescing is enabled on all queues with timeout value 0xA,\n" 116 - "\t\tdefault - on Intel architecture, default perf_mode is\n\t\t" 117 - " 'balanced' and in others architectures the default mode is 'latency'" 116 + "\t\tdefault - default perf_mode is 'balanced'" 118 117 ); 119 118 120 119 enum mpt3sas_perf_mode { ··· 2989 2990 2990 2991 if (perf_mode == MPT_PERF_MODE_DEFAULT) { 2991 2992 2992 - #if defined(CONFIG_X86) 2993 - /* 2994 - * Use global variable boot_cpu_data.x86_vendor to 2995 - * determine whether the architecture is Intel or not. 2996 - */ 2997 - if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) { 2998 - ioc->high_iops_queues = 0; 2999 - return; 3000 - } 3001 - #else 3002 - ioc->high_iops_queues = 0; 3003 - return; 3004 - #endif 3005 2993 speed = pcie_get_speed_cap(ioc->pdev); 3006 2994 dev_info(&ioc->pdev->dev, "PCIe device speed is %s\n", 3007 2995 speed == PCIE_SPEED_2_5GT ? "2.5GHz" :