Simplify MCQ resource mapping
Status from this message: Applied to 6.18/scsi-staging, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Changes in v4 from the cover letter
1. Addressed Krzysztof comment to separate device tree and driver patch independently in different patch series. This series caters driver changes.
2. Addressed Manivannan's change to update commit text and remove redundant null check in mcq code.
3. Addressed Manivannan's to Update few offsets as fixed definition instead of enum.
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ufs: ufs-qcom: Streamline UFS MCQ resource mappingdrivers/ drivers/ | +66 | 0 replies | |
| 2/2 | ufs: ufs-qcom: Refactor MCQ register dump logicdrivers/ include/ | +19 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Bart Van Assche | Manivannan Sadhasivam |
|---|---|---|
| Series | R-b | |
| 1/2 | ||
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V4 0/2] Simplify MCQ resource mapping
The patch series simplifies the UFS MCQ (Multi Circular Queue) resource mapping in the Qualcomm UFS host controller driver by replacing the complex multi-resource approach with a streamlined single-resource implementation.
The current MCQ implementation uses multiple separate resource mappings (RES_UFS, RES_MCQ, RES_MCQ_SQD, RES_MCQ_VS) with dynamic resource allocation, which increases code complexity and potential for resource mapping errors. This approach also doesn't align with the device tree binding specification that defines a single 'mcq' memory region.
Replace the multi-resource mapping with a single "mcq" resource that encompasses the entire MCQ configuration space. The doorbell registers (SQD, CQD, SQIS, CQIS) are accessed using predefined offsets relative to the MCQ base address, providing clearer memory layout organization.
Tested on Qualcomm platforms SM8650 and SM8750 with UFS MCQ enabled.
Changes from v3:
1. Addressed Krzysztof comment to separate device tree and driver patch independently in different patch series. This series caters driver changes.
2. Addressed Manivannan's change to update commit text and remove redundant null check in mcq code.
3. Addressed Manivannan's to Update few offsets as fixed definition instead of enum.
Changes from v2:
1. Removed dt-bindings patch as existing binding supports required reg-names format.
2. Added patch to refactor MCQ register dump logic for new resource mapping.
3. Added patch to remove unused ufshcd_res_info structure from UFS core.
4. Changed reg-names from "ufs_mem" to "std" in device tree patches.
5. Reordered patches with driver changes first, then device tree changes.
6. Updated SM8750 MCQ region size from 0x2000 to 0x15000
Nitin Rawat (2):
ufs: ufs-qcom: Streamline UFS MCQ resource mapping
ufs: ufs-qcom: Refactor MCQ register dump logic
drivers/ufs/host/ufs-qcom.c | 174 +++++++++++++----------------------- drivers/ufs/host/ufs-qcom.h | 26 +++++- include/ufs/ufshcd.h | 25 ------ 3 files changed, 85 insertions(+), 140 deletions(-)
--
2.50.1