soc/qcom/ubwc: rework UBWC configuration database
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20260211-ubwc-rework-e6ce1d8eb520Versions newest first
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 25 patches | 3 replies | Superseded | |
| v1 | 24 patches | 12 replies | Superseded |
Changes in v5 from the cover letter
- Dropped applied patch
- Rebased on next, fixing conflicts
- Changed SC8180X to UBWC 3.1 (as it uses the macrotile mode) (Konrad)
- Link to v4: https://patch.msgid.link/[email protected]
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/28 | soc: qcom: ubwc: define UBWC 3.1include/ | +1 | 0 replies | |
| 2/28 | soc: qcom: ubwc: define helper for MDSS and Adreno driversinclude/ | +16 | 0 replies | |
| 3/28 | soc: qcom: ubwc: add helper controlling AMSBC enablementinclude/ | +5 | 0 replies | |
| 4/28 | drm/msm/adreno: Trust the SSoT UBWC configdrivers/ drivers/ drivers/ | +6 | 0 replies | |
| 5/28 | drm/msm/adreno: use qcom_ubwc_version_tag() helperdrivers/ | +3 | 0 replies | |
| 6/28 | drm/msm/mdss: use qcom_ubwc_version_tag() helperdrivers/ | +3 | 0 replies | |
| 7/28 | drm/msm/adreno: use new helper to set min_acc lengthdrivers/ | +2 | 0 replies | |
| 8/28 | drm/msm/mdss: use new helper to set min_acc lengthdrivers/ | +3 | 0 replies | |
| 9/28 | drm/msm/adreno: use new helper to set macrotile_modedrivers/ drivers/ | +2 | 0 replies | |
| 10/28 | drm/msm/mdss: use new helper to set macrotile_modedrivers/ | +2 | 0 replies | |
| 11/28 | drm/msm/mdss: use new helper to set UBWC bank spreadingdrivers/ | +1 | 0 replies | |
| 12/28 | drm/msm/adreno: use new helper to set ubwc_swizzledrivers/ drivers/ drivers/ | +4 | 0 replies | |
| 13/28 | drm/msm/dpu: use new helper to set ubwc_swizzledrivers/ | +4 | 0 replies | |
| 14/28 | drm/msm/mdss: use new helper to set ubwc_swizzledrivers/ | +5 | 0 replies | |
| 15/28 | drm/msm/adreno: write reserved UBWC-related bitsdrivers/ | +2 | 0 replies | |
| 16/28 | drm/msm/adreno: set fp16compoptdis for UBWC 3.0 formatsdrivers/ | +1 | 0 replies | |
| 17/28 | drm/msm/adreno: use new helper to set amsbcdrivers/ drivers/ | +3 | 0 replies | |
| 18/28 | drm/msm/adreno: use version ranges in A8xx UBWC codedrivers/ | +15 | 0 replies | |
| 19/28 | drm/msm/mdss: use new helper to set amsbcdrivers/ | +1 | 0 replies | |
| 20/28 | drm/msm/dpu: drop ubwc_dec_versiondrivers/ | +1 | 0 replies | |
| 21/28 | drm/msm/dpu: invert the order of UBWC checksdrivers/ | +18 | 0 replies | |
| 22/28 | soc: qcom: ubwc: set min_acc length to 64 for all UBWC 1.0 targetsinclude/ | +1 | 0 replies | |
| 23/28 | soc: qcom: ubwc: drop ubwc_dec_versiondrivers/ include/ | +0 | 0 replies | |
| 24/28 | soc: qcom: ubwc: drop ubwc_bank_spreaddrivers/ include/ | +1 | 0 replies | |
| 25/28 | soc: qcom: ubwc: drop macrotile_mode from the databasedrivers/ include/ | +11 | 0 replies | |
| 26/28 | soc: qcom: ubwc: use fixed values for UBWC swizzle for UBWC < 4.0drivers/ include/ | +24 | 0 replies | |
| 27/28 | soc: qcom: ubwc: sort out the rest of the UBWC swizzle settingsdrivers/ include/ | +16 | 0 replies | |
| 28/28 | soc: qcom: ubwc: deduplicate UBWC configuration datadrivers/ | +76 | 0 replies |
Reviews trailers per patch
All 28 patches have a Reviewed-by or Acked-by.
| Patch | Konrad Dybcio | Rob Clark | Dmitry Baryshkov | Akhil P Oommen |
|---|---|---|---|---|
| 1/28 | R-b | |||
| 2/28 | R-b | |||
| 3/28 | R-b | |||
| 4/28 | R-b | R-b | R-b | |
| 5/28 | R-b | R-b | ||
| 6/28 | R-b | |||
| 7/28 | R-b | |||
| 8/28 | R-b | |||
| 9/28 | R-b | R-b | ||
| 10/28 | R-b | |||
| 11/28 | R-b | |||
| 12/28 | R-b | R-b | ||
| 13/28 | R-b | |||
| 14/28 | R-b | |||
| 15/28 | R-b | |||
| 16/28 | R-b | |||
| 17/28 | R-b | R-b | ||
| 18/28 | R-b | |||
| 19/28 | R-b | |||
| 20/28 | R-b | |||
| 21/28 | R-b | |||
| 22/28 | R-b | |||
| 23/28 | R-b | |||
| 24/28 | R-b | |||
| 25/28 | R-b | |||
| 26/28 | R-b | |||
| 27/28 | R-b | |||
| 28/28 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v5 00/28] soc/qcom/ubwc: rework UBWC configuration database
Currently we store several settings in the configuration database. Some of them are incorrect or not completely matching the expected configuration settings. Others are directly derivable from the UBWC version. Rework how we handle the values in the database, trimming it down to the UBWC version, HBB and several flags.
The series includes patches for drm/msm as well as for the soc/qcom. My suggestion would be to either create an immutable tag for the first batch of soc/qcom patches, which we can pull into drm/msm or to ack merging the first patches through drm/msm tree directly.
Bjorn, would you please ack merging first soc/qcom/ubwc patches through the drm/msm tree? Or would you please merge them and provide the immutable tag?
---
Changes in v5:
- Dropped applied patch
- Rebased on next, fixing conflicts
- Changed SC8180X to UBWC 3.1 (as it uses the macrotile mode) (Konrad)
- Link to v4: https://patch.msgid.link/[email protected]
Changes in v4:
- Rebased on linux-next, dropping merged dependencies.
- Reworked A8xx, simplifying several corner cases.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Corrected UWBC_STATIC programming for MDSS 5.x platforms (Konrad)
- Switched MDSS 6.x+ to qcom_ubwc_min_acc_length_64b() too
- Added qcom_ubwc_enable_amsbc() helper
- Reworked the DPU handling of UBWC config, making it simpler to handle
minor revisions.
- Removed the comment regarding the best guess for min_acc_length
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Renamed MDSS UBWC programming function to make it more obvious that
they are related to the MDSS revision rather than UBWC version
(Konrad)
- Brought back the patch to use qcom_ubwc_version_tag() in msm_mdss.c,
got lost in rebases (Konrad)
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Dmitry Baryshkov (27):
soc: qcom: ubwc: define UBWC 3.1
soc: qcom: ubwc: define helper for MDSS and Adreno drivers
soc: qcom: ubwc: add helper controlling AMSBC enablement drm/msm/adreno: use qcom_ubwc_version_tag() helper drm/msm/mdss: use qcom_ubwc_version_tag() helper drm/msm/adreno: use new helper to set min_acc length drm/msm/mdss: use new helper to set min_acc length drm/msm/adreno: use new helper to set macrotile_mode drm/msm/mdss: use new helper to set macrotile_mode drm/msm/mdss: use new helper to set UBWC bank spreading drm/msm/adreno: use new helper to set ubwc_swizzle drm/msm/dpu: use new helper to set ubwc_swizzle drm/msm/mdss: use new helper to set ubwc_swizzle drm/msm/adreno: write reserved UBWC-related bits drm/msm/adreno: set fp16compoptdis for UBWC 3.0 formats drm/msm/adreno: use new helper to set amsbc drm/msm/adreno: use version ranges in A8xx UBWC code drm/msm/mdss: use new helper to set amsbc
drm/msm/dpu: drop ubwc_dec_version
drm/msm/dpu: invert the order of UBWC checks
soc: qcom: ubwc: set min_acc length to 64 for all UBWC 1.0 targets
soc: qcom: ubwc: drop ubwc_dec_version
soc: qcom: ubwc: drop ubwc_bank_spread
soc: qcom: ubwc: drop macrotile_mode from the database
soc: qcom: ubwc: use fixed values for UBWC swizzle for UBWC < 4.0
soc: qcom: ubwc: sort out the rest of the UBWC swizzle settings
soc: qcom: ubwc: deduplicate UBWC configuration data
Konrad Dybcio (1):
drm/msm/adreno: Trust the SSoT UBWC config
drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 11 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 93 +-------- drivers/gpu/drm/msm/adreno/a8xx_gpu.c | 50 +++-- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 4 +- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 5 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 39 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 3 +- drivers/gpu/drm/msm/msm_mdss.c | 43 ++-- drivers/soc/qcom/ubwc_config.c | 295 ++++++++-------------------- include/linux/soc/qcom/ubwc.h | 103 ++++++---- 10 files changed, 216 insertions(+), 430 deletions(-)
---
base-commit: 687da68900cd1a46549f7d9430c7d40346cb86a0
change-id: 20260211-ubwc-rework-e6ce1d8eb520
prerequisite-patch-id: 47fdf46e2c4719c7e83bb10e7a987483ca388bbe
Best regards,
Signature · 2 lines
With best wishes Dmitry