Message ID | 20191224044143.8178-2-deepak.ukey@microchip.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | pm80xx : Updates for the driver version 0.1.39. | expand |
Hi Deepak, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mkp-scsi/for-next] [cannot apply to scsi/for-next v5.5-rc3 next-20191219] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Deepak-Ukey/pm80xx-Updates-for-the-driver-version-0-1-39/20191225-181036 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 7.5.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree GCC_VERSION=7.5.0 make.cross ARCH=xtensa If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@intel.com> All warnings (new ones prefixed by >>): In file included from drivers/scsi/pm8001/pm8001_sas.h:58:0, from drivers/scsi/pm8001/pm8001_init.c:42: >> drivers/scsi/pm8001/pm8001_defs.h:102:0: warning: "CONFIG_SCSI_PM8001_MAX_DMA_SG" redefined #define CONFIG_SCSI_PM8001_MAX_DMA_SG 528 In file included from include/linux/kconfig.h:5:0, from <command-line>:0: ./include/generated/autoconf.h:9320:0: note: this is the location of the previous definition #define CONFIG_SCSI_PM8001_MAX_DMA_SG 128 vim +/CONFIG_SCSI_PM8001_MAX_DMA_SG +102 drivers/scsi/pm8001/pm8001_defs.h 95 96 #define USI_MAX_MEMCNT_BASE 5 97 #define IB (USI_MAX_MEMCNT_BASE + 1) 98 #define CI (IB + PM8001_MAX_SPCV_INB_NUM) 99 #define OB (CI + PM8001_MAX_SPCV_INB_NUM) 100 #define PI (OB + PM8001_MAX_SPCV_OUTB_NUM) 101 #define USI_MAX_MEMCNT (PI + PM8001_MAX_SPCV_OUTB_NUM) > 102 #define CONFIG_SCSI_PM8001_MAX_DMA_SG 528 103 #define PM8001_MAX_DMA_SG CONFIG_SCSI_PM8001_MAX_DMA_SG 104 enum memory_region_num { 105 AAP1 = 0x0, /* application acceleration processor */ 106 IOP, /* IO processor */ 107 NVMD, /* NVM device */ 108 DEV_MEM, /* memory for devices */ 109 CCB_MEM, /* memory for command control block */ 110 FW_FLASH, /* memory for fw flash update */ 111 FORENSIC_MEM /* memory for fw forensic data */ 112 }; 113 #define PM8001_EVENT_LOG_SIZE (128 * 1024) 114 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 90cf4691b8c3..da2073a67b24 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1504,6 +1504,13 @@ config SCSI_PM8001 This driver supports PMC-Sierra PCIE SAS/SATA 8x6G SPC 8001 chip based host adapters. +config SCSI_PM8001_MAX_DMA_SG + int "max segments per request" + depends on SCSI_PM8001 + default 128 + help + Allow for larger requests bound by MAX_ORDER of the ccb table. + config SCSI_BFA_FC tristate "Brocade BFA Fibre Channel Support" depends on PCI && SCSI diff --git a/drivers/scsi/pm8001/pm8001_defs.h b/drivers/scsi/pm8001/pm8001_defs.h index 48e0624ecc68..1c7f15fd69ce 100644 --- a/drivers/scsi/pm8001/pm8001_defs.h +++ b/drivers/scsi/pm8001/pm8001_defs.h @@ -75,7 +75,7 @@ enum port_type { }; /* driver compile-time configuration */ -#define PM8001_MAX_CCB 512 /* max ccbs supported */ +#define PM8001_MAX_CCB 256 /* max ccbs supported */ #define PM8001_MPI_QUEUE 1024 /* maximum mpi queue entries */ #define PM8001_MAX_INB_NUM 1 #define PM8001_MAX_OUTB_NUM 1 @@ -99,7 +99,8 @@ enum port_type { #define OB (CI + PM8001_MAX_SPCV_INB_NUM) #define PI (OB + PM8001_MAX_SPCV_OUTB_NUM) #define USI_MAX_MEMCNT (PI + PM8001_MAX_SPCV_OUTB_NUM) -#define PM8001_MAX_DMA_SG SG_ALL +#define CONFIG_SCSI_PM8001_MAX_DMA_SG 528 +#define PM8001_MAX_DMA_SG CONFIG_SCSI_PM8001_MAX_DMA_SG enum memory_region_num { AAP1 = 0x0, /* application acceleration processor */ IOP, /* IO processor */ diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index ff618ad80ebd..3f1e755c52c6 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -95,7 +95,7 @@ static struct scsi_host_template pm8001_sht = { .bios_param = sas_bios_param, .can_queue = 1, .this_id = -1, - .sg_tablesize = SG_ALL, + .sg_tablesize = PM8001_MAX_DMA_SG, .max_sectors = SCSI_DEFAULT_MAX_SECTORS, .eh_device_reset_handler = sas_eh_device_reset_handler, .eh_target_reset_handler = sas_eh_target_reset_handler,