scsi: ufs: qcom: update MODE_MAX cfg_bw value
Subsystems (3)
PATCH v2 1/1 scsi: ufs: qcom: update MODE_MAX cfg_bw value
The cfg_bw value for max mode was incorrect for the Qualcomm SoC. Update it to the correct value for cfg_bw max mode.
--- drivers/ufs/host/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ufs/host/ufs-qcom.c +1 -1
@@ -93,7 +93,7 @@ static const struct __ufs_qcom_bw_table { [MODE_HS_RB][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 }, [MODE_HS_RB][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 }, [MODE_HS_RB][UFS_HS_G5][UFS_LANE_2] = { 5836800, 819200 }, - [MODE_MAX][0][0] = { 7643136, 307200 }, + [MODE_MAX][0][0] = { 7643136, 819200 }, };static void ufs_qcom_get_default_testbus_cfg (struct ufs_qcom_host *host);
Signature · 1 line
2.17.1
Quoted 1 line · Manish Pandey
The
cfg_bwvalue for max mode was incorrect for the Qualcomm SoC.
What do you mean by 'incorrect'? I extracted the value from downstream DTs. So it cannot be incorrect.
If you want to update it, please clearly provide the reason.
And if this patch is addressing an issue, then a Fixes tag should be present. If you want to get it backported (if it is a critical fix), then stable list should be CCed.
- Mani
Quoted 23 lines
Update it to the correct value for
cfg_bwmax mode.Signed-off-by Manish Pandey <[email protected]>--- drivers/ufs/host/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ufs/host/ufs-qcom.c +1
-1@@ -93,7 +93,7 @@ static const struct __ufs_qcom_bw_table { [MODE_HS_RB][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 }, [MODE_HS_RB][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 }, [MODE_HS_RB][UFS_HS_G5][UFS_LANE_2] = { 5836800, 819200 }, - [MODE_MAX][0][0] = { 7643136, 307200 }, + [MODE_MAX][0][0] = { 7643136, 819200 }, };static void ufs_qcom_get_default_testbus_cfg (struct ufs_qcom_host *host);Signature · 1 line
2.17.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 7 lines · Manivannan Sadhasivam
Quoted 1 line · Manish Pandey
The
cfg_bwvalue for max mode was incorrect for the Qualcomm SoC.What do you mean by 'incorrect'? I extracted the value from downstream DTs. So it cannot be incorrect.
If you want to update it, please clearly provide the reason.
Hi Mani,
From the snip from commit message
"The bandwidth values defined in ufs_qcom_bw_table struct are taken from Qcom downstream vendor devicetree source and are calculated as per the UFS3.1 Spec."
we have UFS 4.x devices, and ufs_qcom_bw_table is already updated with Gear 5 support (8db8f6ce556a - "scsi: ufs: qcom: Add missing interconnect bandwidth values for Gear 5"). So the max cfg_bw is not updated.
Also for UFS 3.x devices,
[MODE_HS_RB][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 },
[MODE_HS_RB][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 },
[MODE_MAX][0][0] = { 7643136, 307200 },Please have a look for current max mode value(307200), it is even less than UFS_HS_G4 (409600). So it should be updated.
Quoted 6 lines
And if this patch is addressing an issue, then a Fixes tag should be present. If you want to get it backported (if it is a critical fix), then stable list should be CCed.
- Mani
My bad.. will update the patch.
also yes, we need it to be backported, i should cc add stable list. Thanks for guidance.
Quoted 24 lines
Quoted 23 lines
Update it to the correct value for
cfg_bwmax mode.Signed-off-by Manish Pandey <[email protected]>--- drivers/ufs/host/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ufs/host/ufs-qcom.c +1
-1@@ -93,7 +93,7 @@ static const struct __ufs_qcom_bw_table { [MODE_HS_RB][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 }, [MODE_HS_RB][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 }, [MODE_HS_RB][UFS_HS_G5][UFS_LANE_2] = { 5836800, 819200 }, - [MODE_MAX][0][0] = { 7643136, 307200 }, + [MODE_MAX][0][0] = { 7643136, 819200 }, };static void ufs_qcom_get_default_testbus_cfg (struct ufs_qcom_host *host);Signature · 1 line
2.17.1
Quoted 21 lines · MANISH PANDEY
Quoted 7 lines · Manivannan Sadhasivam
Quoted 1 line · Manish Pandey
The
cfg_bwvalue for max mode was incorrect for the Qualcomm SoC.What do you mean by 'incorrect'? I extracted the value from downstream DTs. So it cannot be incorrect.
If you want to update it, please clearly provide the reason.
Hi Mani,
From the snip from commit message
"The bandwidth values defined inufs_qcom_bw_tablestruct are taken from Qcom downstream vendor devicetree source and are calculated as per the UFS3.1 Spec."we have UFS 4.x devices, and
ufs_qcom_bw_tableis already updated with Gear 5 support (8db8f6ce556a- "scsi: ufs: qcom: Add missing interconnect bandwidth values for Gear 5"). So the maxcfg_bwis not updated.
Quoted 8 lines
Also for UFS 3.x devices,
[MODE_HS_RB][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 }, [MODE_HS_RB][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 }, [MODE_MAX][0][0] = { 7643136, 307200 },Please have a look for current max mode value(307200), it is even less than
UFS_HS_G4(409600). So it should be updated.
Okay, then you should mention that the max value is updated for UFS 4.x devices and mention that commit 8db8f6ce556a missed adding them. Also add the fixes tag for 8db8f6ce556a.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்