scsi: ufs: Remove HPB support
Subsystems (2)
Bart Van Assche
reviewerPATCH 1/1 scsi: ufs: Remove HPB support
Interest among UFS users in HPB has reduced significantly. Hence remove HPB support from the kernel.
--- Documentation/ABI/testing/sysfs-driver-ufs | 247 -- drivers/ufs/core/Kconfig | 8 - drivers/ufs/core/Makefile | 1 - drivers/ufs/core/ufs-sysfs.c | 22 - drivers/ufs/core/ufshcd.c | 65 +- drivers/ufs/core/ufshpb.c | 2668 -------------------- drivers/ufs/core/ufshpb.h | 318 --- include/ufs/ufs.h | 39 - include/ufs/ufs_quirks.h | 6 - include/ufs/ufshcd.h | 30 - 10 files changed, 1 insertion(+), 3403 deletions(-) delete mode 100644 drivers/ufs/core/ufshpb.c delete mode 100644 drivers/ufs/core/ufshpb.h
Documentation/ABI/testing/sysfs-driver-ufs +0 -247
@@ -1437,180 +1437,6 @@ Description: If avail_wb_buff < wb_flush_threshold, it indicates that WriteBooster buffer needs to be flushed, otherwise it is not necessary. -What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_version -What: /sys/bus/platform/devices/*.ufs/device_descriptor/hpb_version -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the HPB specification version. - The full information about the descriptor can be found in the UFS - HPB (Host Performance Booster) Extension specifications. - Example: version 1.2.3 = 0123h - - The file is read only. - -What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/hpb_control -What: /sys/bus/platform/devices/*.ufs/device_descriptor/hpb_control -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows an indication of the HPB control mode. - 00h: Host control mode - 01h: Device control mode - - The file is read only. - -What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_region_size -What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_region_size -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the bHPBRegionSize which can be calculated - as in the following (in bytes): - HPB Region size = 512B * 2^bHPBRegionSize - - The file is read only. - -What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_number_lu -What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_number_lu -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the maximum number of HPB LU supported by - the device. - 00h: HPB is not supported by the device. - 01h ~ 20h: Maximum number of HPB LU supported by the device - - The file is read only. - -What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_subregion_size -What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_subregion_size -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the bHPBSubRegionSize, which can be - calculated as in the following (in bytes) and shall be a multiple of - logical block size: - HPB Sub-Region size = 512B x 2^bHPBSubRegionSize - bHPBSubRegionSize shall not exceed bHPBRegionSize. - - The file is read only. - -What: /sys/bus/platform/drivers/ufshcd/*/geometry_descriptor/hpb_max_active_regions -What: /sys/bus/platform/devices/*.ufs/geometry_descriptor/hpb_max_active_regions -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the maximum number of active HPB regions that - is supported by the device. - - The file is read only. - -What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_lu_max_active_regions -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the maximum number of HPB regions assigned to - the HPB logical unit. - - The file is read only. - -What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_pinned_region_start_offset -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the start offset of HPB pinned region. - - The file is read only. - -What: /sys/class/scsi_device/*/device/unit_descriptor/hpb_number_pinned_regions -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the number of HPB pinned regions assigned to - the HPB logical unit. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_stats/hit_cnt -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the number of reads that changed to HPB read. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_stats/miss_cnt -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the number of reads that cannot be changed to - HPB read. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_stats/rcmd_noti_cnt -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the number of response UPIUs that has - recommendations for activating sub-regions and/or inactivating region. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_stats/rcmd_active_cnt -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: For the HPB device control mode, this entry shows the number of - active sub-regions recommended by response UPIUs. For the HPB host control - mode, this entry shows the number of active sub-regions recommended by the - HPB host control mode heuristic algorithm. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_stats/rcmd_inactive_cnt -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: For the HPB device control mode, this entry shows the number of - inactive regions recommended by response UPIUs. For the HPB host control - mode, this entry shows the number of inactive regions recommended by the - HPB host control mode heuristic algorithm. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_stats/map_req_cnt -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the number of read buffer commands for - activating sub-regions recommended by response UPIUs. - - The file is read only. - -What: /sys/class/scsi_device/*/device/hpb_params/requeue_timeout_ms -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the requeue timeout threshold for write buffer - command in ms. The value can be changed by writing an integer to - this entry. - -What: /sys/bus/platform/drivers/ufshcd/*/attributes/max_data_size_hpb_single_cmd -What: /sys/bus/platform/devices/*.ufs/attributes/max_data_size_hpb_single_cmd -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the maximum HPB data size for using a single HPB - command. - - === ======== - 00h 4KB - 01h 8KB - 02h 12KB - ... - FFh 1024KB - === ======== - - The file is read only. - -What: /sys/bus/platform/drivers/ufshcd/*/flags/hpb_enable -What: /sys/bus/platform/devices/*.ufs/flags/hpb_enable -Date: June 2021 -Contact: Daejun Park <[email protected]> -Description: This entry shows the status of HPB. - - == ============================ - 0 HPB is not enabled. - 1 HPB is enabled - == ============================ - - The file is read only. - Contact: Daniil Lunev <[email protected]> What: /sys/bus/platform/drivers/ufshcd/*/capabilities/ What: /sys/bus/platform/devices/*.ufs/capabilities/
@@ -1648,76 +1474,3 @@ Description: Indicates status of Write Booster. The file is read only. -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/activation_thld -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: In host control mode, reads are the major source of activation - trials. Once this threshold hs met, the region is added to the - "to-be-activated" list. Since we reset the read counter upon - write, this include sending a rb command updating the region - ppn as well. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/normalization_factor -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: In host control mode, we think of the regions as "buckets". - Those buckets are being filled with reads, and emptied on write. - We use entries_per_srgn - the amount of blocks in a subregion as - our bucket size. This applies because HPB1.0 only handles - single-block reads. Once the bucket size is crossed, we trigger - a normalization work - not only to avoid overflow, but mainly - because we want to keep those counters normalized, as we are - using those reads as a comparative score, to make various decisions. - The normalization is dividing (shift right) the read counter by - the normalization_factor. If during consecutive normalizations - an active region has exhausted its reads - inactivate it. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_enter -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: Region deactivation is often due to the fact that eviction took - place: A region becomes active at the expense of another. This is - happening when the max-active-regions limit has been crossed. - In host mode, eviction is considered an extreme measure. We - want to verify that the entering region has enough reads, and - the exiting region has much fewer reads. eviction_thld_enter is - the min reads that a region must have in order to be considered - a candidate for evicting another region. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/eviction_thld_exit -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: Same as above for the exiting region. A region is considered to - be a candidate for eviction only if it has fewer reads than - eviction_thld_exit. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_ms -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: In order not to hang on to "cold" regions, we inactivate - a region that has no READ access for a predefined amount of - time - read_timeout_ms. If read_timeout_ms has expired, and the - region is dirty, it is less likely that we can make any use of - HPB reading it so we inactivate it. Still, deactivation has - its overhead, and we may still benefit from HPB reading this - region if it is clean - see read_timeout_expiries. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/read_timeout_expiries -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: If the region read timeout has expired, but the region is clean, - just re-wind its timer for another spin. Do that as long as it - is clean and did not exhaust its read_timeout_expiries threshold. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/timeout_polling_interval_ms -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: The frequency with which the delayed worker that checks the - read_timeouts is awakened. - -What: /sys/class/scsi_device/*/device/hpb_param_sysfs/inflight_map_req -Date: February 2021 -Contact: Avri Altman <[email protected]> -Description: In host control mode the host is the originator of map requests. - To avoid flooding the device with map requests, use a simple throttling - mechanism that limits the number of inflight map requests.
drivers/ufs/core/Kconfig +0 -8
@@ -35,14 +35,6 @@ config SCSI_UFS_CRYPTO capabilities of the UFS device (if present) to perform crypto operations on data being transferred to/from the device. -config SCSI_UFS_HPB - bool "Support UFS Host Performance Booster" - help - The UFS HPB feature improves random read performance. It caches - L2P (logical to physical) map of UFS to host DRAM. The driver uses HPB - read command by piggybacking physical page number for bypassing FTL (flash - translation layer)'s L2P address translation. - config SCSI_UFS_FAULT_INJECTION bool "UFS Fault Injection Support" depends on FAULT_INJECTION
drivers/ufs/core/Makefile +0 -1
@@ -5,6 +5,5 @@ ufshcd-core-y += ufshcd.o ufs-sysfs.o ufs-mcq.o ufshcd-core-$(CONFIG_DEBUG_FS) += ufs-debugfs.o ufshcd-core-$(CONFIG_SCSI_UFS_BSG) += ufs_bsg.o ufshcd-core-$(CONFIG_SCSI_UFS_CRYPTO) += ufshcd-crypto.o -ufshcd-core-$(CONFIG_SCSI_UFS_HPB) += ufshpb.o ufshcd-core-$(CONFIG_SCSI_UFS_FAULT_INJECTION) += ufs-fault-injection.o ufshcd-core-$(CONFIG_SCSI_UFS_HWMON) += ufs-hwmon.o
drivers/ufs/core/ufs-sysfs.c +0 -22
@@ -718,8 +718,6 @@ UFS_DEVICE_DESC_PARAM(device_version, _DEV_VER, 2);UFS_DEVICE_DESC_PARAM (number_of_secure_wpa, _NUM_SEC_WPA,1 );UFS_DEVICE_DESC_PARAM (psa_max_data_size, _PSA_MAX_DATA,4 );UFS_DEVICE_DESC_PARAM (psa_state_timeout, _PSA_TMT,1 ); -UFS_DEVICE_DESC_PARAM (hpb_version, _HPB_VER,2 ); -UFS_DEVICE_DESC_PARAM (hpb_control, _HPB_CONTROL,1 );UFS_DEVICE_DESC_PARAM (ext_feature_sup, _EXT_UFS_FEATURE_SUP,4 );UFS_DEVICE_DESC_PARAM (wb_presv_us_en, _WB_PRESRV_USRSPC_EN,1 );UFS_DEVICE_DESC_PARAM (wb_type, _WB_TYPE,1 );
@@ -752,8 +750,6 @@ static struct attribute *ufs_sysfs_device_descriptor[] = { &dev_attr_number_of_secure_wpa.attr, &dev_attr_psa_max_data_size.attr, &dev_attr_psa_state_timeout.attr, - &dev_attr_hpb_version.attr, - &dev_attr_hpb_control.attr, &dev_attr_ext_feature_sup.attr, &dev_attr_wb_presv_us_en.attr, &dev_attr_wb_type.attr,
@@ -827,10 +823,6 @@ UFS_GEOMETRY_DESC_PARAM(enh4_memory_max_alloc_units, _ENM4_MAX_NUM_UNITS, 4);UFS_GEOMETRY_DESC_PARAM (enh4_memory_capacity_adjustment_factor, _ENM4_CAP_ADJ_FCTR,2 ); -UFS_GEOMETRY_DESC_PARAM (hpb_region_size, _HPB_REGION_SIZE,1 ); -UFS_GEOMETRY_DESC_PARAM (hpb_number_lu, _HPB_NUMBER_LU,1 ); -UFS_GEOMETRY_DESC_PARAM (hpb_subregion_size, _HPB_SUBREGION_SIZE,1 ); -UFS_GEOMETRY_DESC_PARAM (hpb_max_active_regions, _HPB_MAX_ACTIVE_REGS,2 );UFS_GEOMETRY_DESC_PARAM (wb_max_alloc_units, _WB_MAX_ALLOC_UNITS,4 );UFS_GEOMETRY_DESC_PARAM (wb_max_wb_luns, _WB_MAX_WB_LUNS,1 );UFS_GEOMETRY_DESC_PARAM (wb_buff_cap_adj, _WB_BUFF_CAP_ADJ,1 );
@@ -868,10 +860,6 @@ static struct attribute *ufs_sysfs_geometry_descriptor[] = { &dev_attr_enh3_memory_capacity_adjustment_factor.attr, &dev_attr_enh4_memory_max_alloc_units.attr, &dev_attr_enh4_memory_capacity_adjustment_factor.attr, - &dev_attr_hpb_region_size.attr, - &dev_attr_hpb_number_lu.attr, - &dev_attr_hpb_subregion_size.attr, - &dev_attr_hpb_max_active_regions.attr, &dev_attr_wb_max_alloc_units.attr, &dev_attr_wb_max_wb_luns.attr, &dev_attr_wb_buff_cap_adj.attr,
@@ -1132,7 +1120,6 @@ UFS_FLAG(disable_fw_update, _PERMANENTLY_DISABLE_FW_UPDATE);UFS_FLAG (wb_enable, _WB_EN);UFS_FLAG (wb_flush_en, _WB_BUFF_FLUSH_EN);UFS_FLAG (wb_flush_during_h8, _WB_BUFF_FLUSH_DURING_HIBERN8); -UFS_FLAG (hpb_enable, _HPB_EN);static struct attribute *ufs_sysfs_device_flags[] = { &dev_attr_device_init.attr,
@@ -1146,7 +1133,6 @@ static struct attribute *ufs_sysfs_device_flags[] = { &dev_attr_wb_enable.attr, &dev_attr_wb_flush_en.attr, &dev_attr_wb_flush_during_h8.attr, - &dev_attr_hpb_enable.attr, NULL, };
@@ -1193,7 +1179,6 @@ out: \static DEVICE_ATTR_RO (_name)UFS_ATTRIBUTE (boot_lun_enabled, _BOOT_LU_EN); -UFS_ATTRIBUTE (max_data_size_hpb_single_cmd, _MAX_HPB_SINGLE_CMD);UFS_ATTRIBUTE (current_power_mode, _POWER_MODE);UFS_ATTRIBUTE (active_icc_level, _ACTIVE_ICC_LVL);UFS_ATTRIBUTE (ooo_data_enabled, _OOO_DATA_EN);
@@ -1217,7 +1202,6 @@ UFS_ATTRIBUTE(wb_cur_buf, _CURR_WB_BUFF_SIZE);static struct attribute *ufs_sysfs_attributes[] = { &dev_attr_boot_lun_enabled.attr, - &dev_attr_max_data_size_hpb_single_cmd.attr, &dev_attr_current_power_mode.attr, &dev_attr_active_icc_level.attr, &dev_attr_ooo_data_enabled.attr,
@@ -1291,9 +1275,6 @@ UFS_UNIT_DESC_PARAM(provisioning_type, _PROVISIONING_TYPE, 1);UFS_UNIT_DESC_PARAM (physical_memory_resourse_count, _PHY_MEM_RSRC_CNT,8 );UFS_UNIT_DESC_PARAM (context_capabilities, _CTX_CAPABILITIES,2 );UFS_UNIT_DESC_PARAM (large_unit_granularity, _LARGE_UNIT_SIZE_M1,1 ); -UFS_UNIT_DESC_PARAM (hpb_lu_max_active_regions, _HPB_LU_MAX_ACTIVE_RGNS,2 ); -UFS_UNIT_DESC_PARAM (hpb_pinned_region_start_offset, _HPB_PIN_RGN_START_OFF,2 ); -UFS_UNIT_DESC_PARAM (hpb_number_pinned_regions, _HPB_NUM_PIN_RGNS,2 );UFS_UNIT_DESC_PARAM (wb_buf_alloc_units, _WB_BUF_ALLOC_UNITS,4 );static struct attribute *ufs_sysfs_unit_descriptor[] = {
@@ -1311,9 +1292,6 @@ static struct attribute *ufs_sysfs_unit_descriptor[] = { &dev_attr_physical_memory_resourse_count.attr, &dev_attr_context_capabilities.attr, &dev_attr_large_unit_granularity.attr, - &dev_attr_hpb_lu_max_active_regions.attr, - &dev_attr_hpb_pinned_region_start_offset.attr, - &dev_attr_hpb_number_pinned_regions.attr, &dev_attr_wb_buf_alloc_units.attr, NULL, };
drivers/ufs/core/ufshcd.c +1 -64
167 lines not on this page · raw message
drivers/ufs/core/ufshpb.c deleted +0 -2668
2,475 lines not on this page · raw message
drivers/ufs/core/ufshpb.h deleted +0 -318
318 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Quoted 11 lines
Interest among UFS users in HPB has reduced significantly. Hence remove HPB support from the kernel.
Cc Avri Altman <[email protected]>Cc Bean Huo <[email protected]>Cc ChanWoo Lee <[email protected]>Cc Daejun Park <[email protected]>Cc Keoseong Park <[email protected]>Signed-off-by Bart Van Assche <[email protected]>
Quoted 9 lines · Bart Van Assche
Interest among UFS users in HPB has reduced significantly. Hence remove HPB support from the kernel.
Cc Avri Altman<[email protected]>Cc Bean Huo<[email protected]>Cc ChanWoo Lee<[email protected]>Cc Daejun Park<[email protected]>Cc Keoseong Park<[email protected]>Signed-off-by Bart Van Assche<[email protected]>
Quoted 1 line · Bart Van Assche
Interest among UFS users in HPB has reduced significantly.
Can you say more about why, or give some background?
Bart Van Assche
reviewerQuoted 4 lines · Adrian Hunter
Quoted 1 line · Bart Van Assche
Interest among UFS users in HPB has reduced significantly.
Can you say more about why, or give some background?
Hi Adrian,
I haven't seen any recent changes in the HPB implementation - neither upstream nor in the Android kernel. That makes me wonder whether there are any HPB users left at all. If there are any HPB users left, it's time for them to speak up. Additionally, the work in JEDEC on a successor for HPB nears completion (Zoned storage for UFS or ZUFS).
My motivation for removing the HPB code is that I want to make blk_mq_run_hw_queue() faster if BLK_MQ_F_BLOCKING is set. The patch series I posted (https://lore.kernel.org/linux-block/[email protected]/) may cause blk_execute_rq_nowait() to sleep. The HPB code is the only code I am aware of that calls blk_execute_rq_nowait() from a context where it is not allowed to sleep. If the HPB code is removed, I don't have to modify it to make it compatible with the blk_execute_rq_nowait() changes.
Bart.
Quoted 9 lines · Bart Van Assche
Quoted 4 lines · Adrian Hunter
Quoted 1 line · Bart Van Assche
Interest among UFS users in HPB has reduced significantly.
Can you say more about why, or give some background?
Hi Adrian,
I haven't seen any recent changes in the HPB implementation - neither upstream nor in the Android kernel. That makes me wonder whether there are any HPB users left at all. If there are any HPB users left, it's time for them to speak up. Additionally, the work in JEDEC on a successor for HPB nears completion (Zoned storage for UFS or ZUFS).
That is useful to know, thanks! I'll leave it to you if you want to expand the commit message a bit or not.
Quoted 6 lines
My motivation for removing the HPB code is that I want to make
blk_mq_run_hw_queue()faster ifBLK_MQ_F_BLOCKINGis set. The patch series I posted (https://lore.kernel.org/linux-block/[email protected]/) may causeblk_execute_rq_nowait()to sleep. The HPB code is the only code I am aware of that callsblk_execute_rq_nowait()from a context where it is not allowed to sleep. If the HPB code is removed, I don't have to modify it to make it compatible with theblk_execute_rq_nowait()changes.Bart.
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi Bart,
kernel test robot noticed the following build warnings:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on next-20230718]
[cannot apply to jejb-scsi/for-next linus/master v6.5-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Bart-Van-Assche/scsi-ufs-Remove-HPB-support/20230718-195403 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next patch link: https://lore.kernel.org/r/20230717193827.2001174-1-bvanassche%40acm.org patch subject: [PATCH] scsi: ufs: Remove HPB support config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20230719/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230719/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
drivers/ufs/core/ufshcd.c: In function 'ufs_get_device_desc':
>> drivers/ufs/core/ufshcd.c:8092:12: warning: variable 'b_ufs_feature_sup' set but not used [-Wunused-but-set-variable]
8092 | u8 b_ufs_feature_sup;
| ^~~~~~~~~~~~~~~~~vim +/b_ufs_feature_sup +8092 drivers/ufs/core/ufshcd.c
c28c00ba4f0609 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8087
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8088 static int ufs_get_device_desc(struct ufs_hba *hba)
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8089 {
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8090 int err;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8091 u8 model_index;
f02bc9754a6887 drivers/scsi/ufs/ufshcd.c Daejun Park 2021-07-12 @8092 u8 b_ufs_feature_sup;
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8093 u8 *desc_buf;
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8094 struct ufs_dev_info *dev_info = &hba->dev_info;
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8095
f2a89b071b26b7 drivers/ufs/core/ufshcd.c Arthur Simchaev 2022-12-11 8096 desc_buf = kzalloc(QUERY_DESC_MAX_SIZE, GFP_KERNEL);
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8097 if (!desc_buf) {
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8098 err = -ENOMEM;
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8099 goto out;
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8100 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8101
c4607a09450d67 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-06-03 8102 err = ufshcd_read_desc_param(hba, QUERY_DESC_IDN_DEVICE, 0, 0, desc_buf,
f2a89b071b26b7 drivers/ufs/core/ufshcd.c Arthur Simchaev 2022-12-11 8103 QUERY_DESC_MAX_SIZE);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8104 if (err) {
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8105 dev_err(hba->dev, "%s: Failed reading Device Desc. err = %d\n",
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8106 __func__, err);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8107 goto out;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8108 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8109
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8110 /*
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8111 * getting vendor (manufacturerID) and Bank Index in big endian
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8112 * format
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8113 */
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8114 dev_info->wmanufacturerid = desc_buf[DEVICE_DESC_PARAM_MANF_ID] << 8 |
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8115 desc_buf[DEVICE_DESC_PARAM_MANF_ID + 1];
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8116
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8117 /* getting Specification Version in big endian format */
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8118 dev_info->wspecversion = desc_buf[DEVICE_DESC_PARAM_SPEC_VER] << 8 |
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8119 desc_buf[DEVICE_DESC_PARAM_SPEC_VER + 1];
7224c806876e46 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8120 dev_info->bqueuedepth = desc_buf[DEVICE_DESC_PARAM_Q_DPTH];
f02bc9754a6887 drivers/scsi/ufs/ufshcd.c Daejun Park 2021-07-12 8121 b_ufs_feature_sup = desc_buf[DEVICE_DESC_PARAM_UFS_FEAT];
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8122
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8123 model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME];
3d17b9b5ab1155 drivers/scsi/ufs/ufshcd.c Asutosh Das 2020-04-22 8124
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8125 err = ufshcd_read_string_desc(hba, model_index,
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8126 &dev_info->model, SD_ASCII_STD);
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8127 if (err < 0) {
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8128 dev_err(hba->dev, "%s: Failed reading Product Name. err = %d\n",
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8129 __func__, err);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8130 goto out;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8131 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8132
b294ff3e34490f drivers/scsi/ufs/ufshcd.c Asutosh Das 2021-04-23 8133 hba->luns_avail = desc_buf[DEVICE_DESC_PARAM_NUM_LU] +
b294ff3e34490f drivers/scsi/ufs/ufshcd.c Asutosh Das 2021-04-23 8134 desc_buf[DEVICE_DESC_PARAM_NUM_WLU];
b294ff3e34490f drivers/scsi/ufs/ufshcd.c Asutosh Das 2021-04-23 8135
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8136 ufs_fixup_device_setup(hba);
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8137
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8138 ufshcd_wb_probe(hba, desc_buf);
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8139
e88e2d32200a17 drivers/scsi/ufs/ufshcd.c Avri Altman 2021-09-15 8140 ufshcd_temp_notif_probe(hba, desc_buf);
e88e2d32200a17 drivers/scsi/ufs/ufshcd.c Avri Altman 2021-09-15 8141
6e1d850acff947 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8142 if (hba->ext_iid_sup)
6e1d850acff947 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8143 ufshcd_ext_iid_probe(hba, desc_buf);
6e1d850acff947 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8144
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8145 /*
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8146 * ufshcd_read_string_desc returns size of the string
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8147 * reset the error value
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8148 */
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8149 err = 0;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8150
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8151 out:
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8152 kfree(desc_buf);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8153 return err;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8154 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8155 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Bart Van Assche
reviewerQuoted 6 lines · kernel test robot
All warnings (new ones prefixed by >>):
drivers/ufs/core/ufshcd.c: In function 'ufs_get_device_desc':Quoted 1 line
Quoted 1 line
drivers/ufs/core/ufshcd.c:8092:12: warning: variable 'b_ufs_feature_sup' set but not used [-Wunused-but-set-variable]8092 | u8 b_ufs_feature_sup; | ^~~~~~~~~~~~~~~~~
I think the above warning can be fixed as follows (will fold this in when reposting this patch):
drivers/ufs/core/ufshcd.c +0 -2
@@ -8089,7 +8089,6 @@ static int ufs_get_device_desc(struct ufs_hba *hba) {int err;u8 model_index; -u8 b_ufs_feature_sup;u8 *desc_buf;struct ufs_dev_info *dev_info = &hba->dev_info;
@@ -8118,7 +8117,6 @@ static int ufs_get_device_desc(struct ufs_hba *hba) dev_info->wspecversion = desc_buf[DEVICE_DESC_PARAM_SPEC_VER ] <<8 | desc_buf[DEVICE_DESC_PARAM_SPEC_VER +1 ]; dev_info->bqueuedepth = desc_buf[DEVICE_DESC_PARAM_Q_DPTH ]; - b_ufs_feature_sup = desc_buf[DEVICE_DESC_PARAM_UFS_FEAT ]; model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME ];
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi Bart,
kernel test robot noticed the following build warnings:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on next-20230718]
[cannot apply to jejb-scsi/for-next linus/master v6.5-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Bart-Van-Assche/scsi-ufs-Remove-HPB-support/20230718-195403 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next patch link: https://lore.kernel.org/r/20230717193827.2001174-1-bvanassche%40acm.org patch subject: [PATCH] scsi: ufs: Remove HPB support config: hexagon-randconfig-r045-20230718 (https://download.01.org/0day-ci/archive/20230719/[email protected]/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230719/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from drivers/ufs/core/ufshcd.c:18:
In file included from include/linux/blkdev.h:9:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from drivers/ufs/core/ufshcd.c:18:
In file included from include/linux/blkdev.h:9:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from drivers/ufs/core/ufshcd.c:18:
In file included from include/linux/blkdev.h:9:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
>> drivers/ufs/core/ufshcd.c:8092:5: warning: variable 'b_ufs_feature_sup' set but not used [-Wunused-but-set-variable]
8092 | u8 b_ufs_feature_sup;
| ^7 warnings generated.
vim +/b_ufs_feature_sup +8092 drivers/ufs/core/ufshcd.c
c28c00ba4f0609 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8087
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8088 static int ufs_get_device_desc(struct ufs_hba *hba)
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8089 {
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8090 int err;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8091 u8 model_index;
f02bc9754a6887 drivers/scsi/ufs/ufshcd.c Daejun Park 2021-07-12 @8092 u8 b_ufs_feature_sup;
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8093 u8 *desc_buf;
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8094 struct ufs_dev_info *dev_info = &hba->dev_info;
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8095
f2a89b071b26b7 drivers/ufs/core/ufshcd.c Arthur Simchaev 2022-12-11 8096 desc_buf = kzalloc(QUERY_DESC_MAX_SIZE, GFP_KERNEL);
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8097 if (!desc_buf) {
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8098 err = -ENOMEM;
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8099 goto out;
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8100 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8101
c4607a09450d67 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-06-03 8102 err = ufshcd_read_desc_param(hba, QUERY_DESC_IDN_DEVICE, 0, 0, desc_buf,
f2a89b071b26b7 drivers/ufs/core/ufshcd.c Arthur Simchaev 2022-12-11 8103 QUERY_DESC_MAX_SIZE);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8104 if (err) {
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8105 dev_err(hba->dev, "%s: Failed reading Device Desc. err = %d\n",
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8106 __func__, err);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8107 goto out;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8108 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8109
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8110 /*
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8111 * getting vendor (manufacturerID) and Bank Index in big endian
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8112 * format
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8113 */
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8114 dev_info->wmanufacturerid = desc_buf[DEVICE_DESC_PARAM_MANF_ID] << 8 |
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8115 desc_buf[DEVICE_DESC_PARAM_MANF_ID + 1];
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8116
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8117 /* getting Specification Version in big endian format */
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8118 dev_info->wspecversion = desc_buf[DEVICE_DESC_PARAM_SPEC_VER] << 8 |
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8119 desc_buf[DEVICE_DESC_PARAM_SPEC_VER + 1];
7224c806876e46 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8120 dev_info->bqueuedepth = desc_buf[DEVICE_DESC_PARAM_Q_DPTH];
f02bc9754a6887 drivers/scsi/ufs/ufshcd.c Daejun Park 2021-07-12 8121 b_ufs_feature_sup = desc_buf[DEVICE_DESC_PARAM_UFS_FEAT];
09f17791e640dc drivers/scsi/ufs/ufshcd.c Can Guo 2020-02-10 8122
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8123 model_index = desc_buf[DEVICE_DESC_PARAM_PRDCT_NAME];
3d17b9b5ab1155 drivers/scsi/ufs/ufshcd.c Asutosh Das 2020-04-22 8124
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8125 err = ufshcd_read_string_desc(hba, model_index,
097500666ec991 drivers/scsi/ufs/ufshcd.c Bean Huo 2020-01-20 8126 &dev_info->model, SD_ASCII_STD);
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8127 if (err < 0) {
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8128 dev_err(hba->dev, "%s: Failed reading Product Name. err = %d\n",
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8129 __func__, err);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8130 goto out;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8131 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8132
b294ff3e34490f drivers/scsi/ufs/ufshcd.c Asutosh Das 2021-04-23 8133 hba->luns_avail = desc_buf[DEVICE_DESC_PARAM_NUM_LU] +
b294ff3e34490f drivers/scsi/ufs/ufshcd.c Asutosh Das 2021-04-23 8134 desc_buf[DEVICE_DESC_PARAM_NUM_WLU];
b294ff3e34490f drivers/scsi/ufs/ufshcd.c Asutosh Das 2021-04-23 8135
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8136 ufs_fixup_device_setup(hba);
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8137
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8138 ufshcd_wb_probe(hba, desc_buf);
817d7e140283f4 drivers/scsi/ufs/ufshcd.c Stanley Chu 2020-05-08 8139
e88e2d32200a17 drivers/scsi/ufs/ufshcd.c Avri Altman 2021-09-15 8140 ufshcd_temp_notif_probe(hba, desc_buf);
e88e2d32200a17 drivers/scsi/ufs/ufshcd.c Avri Altman 2021-09-15 8141
6e1d850acff947 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8142 if (hba->ext_iid_sup)
6e1d850acff947 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8143 ufshcd_ext_iid_probe(hba, desc_buf);
6e1d850acff947 drivers/ufs/core/ufshcd.c Asutosh Das 2023-01-13 8144
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8145 /*
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8146 * ufshcd_read_string_desc returns size of the string
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8147 * reset the error value
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8148 */
4b828fe156a662 drivers/scsi/ufs/ufshcd.c Tomas Winkler 2019-07-30 8149 err = 0;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8150
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8151 out:
bbe21d7a979245 drivers/scsi/ufs/ufshcd.c Kees Cook 2018-05-02 8152 kfree(desc_buf);
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8153 return err;
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8154 }
c58ab7aab71e2c drivers/scsi/ufs/ufshcd.c Yaniv Gardi 2016-03-10 8155 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki