[PATCH 00/11] media: iris: migrate to using global UBWC config

Dmitry Baryshkov posted 11 patches 3 weeks, 6 days ago
There is a newer version of this series
drivers/gpu/drm/msm/adreno/a6xx_gpu.c                   |  5 ++---
drivers/gpu/drm/msm/msm_mdss.c                          |  6 ++----
drivers/media/platform/qcom/iris/Kconfig                |  1 +
drivers/media/platform/qcom/iris/iris_core.h            |  4 ++++
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c | 17 ++++++++++-------
drivers/media/platform/qcom/iris/iris_platform_common.h | 11 -----------
drivers/media/platform/qcom/iris/iris_platform_gen2.c   | 14 --------------
drivers/media/platform/qcom/iris/iris_probe.c           |  5 +++++
include/linux/soc/qcom/ubwc.h                           |  8 ++++++++
9 files changed, 32 insertions(+), 39 deletions(-)
[PATCH 00/11] media: iris: migrate to using global UBWC config
Posted by Dmitry Baryshkov 3 weeks, 6 days ago
Having UBWC configuration in the driver is error prone. For example, the
driver specifies fixed values for HBB, while the actual value might
depend on the DDR type. Stop defining UBWC data in the iris driver and
use the global UBWC configuration registry.

Merge strategy: either merge SoC bits directly through the media tree
(with Bjorn's ack) or merge to the media tree through the immutable tag.
The drm patches will follow depending on the way the SoC patches are
merged.

Note: the patches are compile-tested only because of the lack of the
Gen2 hardware at hand.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Dmitry Baryshkov (11):
      soc: qcom: ubwc: add missing include
      soc: qcom: ubwc: add helper to get min_acc length
      media: iris: retrieve UBWC platform configuration
      media: iris: don't specify min_acc_length in the source code
      media: iris: don't specify highest_bank_bit in the source code
      media: iris: don't specify ubwc_swizzle in the source code
      media: iris: don't specify bank_spreading in the source code
      media: iris: don't specify max_channels in the source code
      media: iris: drop remnants of UBWC configuration
      drm/msm/mdss: use new helper to set min_acc length
      drm/msm/a6xx: use new helper to set min_acc length

 drivers/gpu/drm/msm/adreno/a6xx_gpu.c                   |  5 ++---
 drivers/gpu/drm/msm/msm_mdss.c                          |  6 ++----
 drivers/media/platform/qcom/iris/Kconfig                |  1 +
 drivers/media/platform/qcom/iris/iris_core.h            |  4 ++++
 drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c | 17 ++++++++++-------
 drivers/media/platform/qcom/iris/iris_platform_common.h | 11 -----------
 drivers/media/platform/qcom/iris/iris_platform_gen2.c   | 14 --------------
 drivers/media/platform/qcom/iris/iris_probe.c           |  5 +++++
 include/linux/soc/qcom/ubwc.h                           |  8 ++++++++
 9 files changed, 32 insertions(+), 39 deletions(-)
---
base-commit: fc4e91c639c0af93d63c3d5bc0ee45515dd7504a
change-id: 20260110-iris-ubwc-06f64cbb31ae

Best regards,
-- 
With best wishes
Dmitry
Re: (subset) [PATCH 00/11] media: iris: migrate to using global UBWC config
Posted by Bjorn Andersson 3 weeks, 2 days ago
On Sat, 10 Jan 2026 21:37:52 +0200, Dmitry Baryshkov wrote:
> Having UBWC configuration in the driver is error prone. For example, the
> driver specifies fixed values for HBB, while the actual value might
> depend on the DDR type. Stop defining UBWC data in the iris driver and
> use the global UBWC configuration registry.
> 
> Merge strategy: either merge SoC bits directly through the media tree
> (with Bjorn's ack) or merge to the media tree through the immutable tag.
> The drm patches will follow depending on the way the SoC patches are
> merged.
> 
> [...]

Applied, thanks!

[01/11] soc: qcom: ubwc: add missing include
        commit: ccef4b2703ff5b0de0b1bda30a0de3026d52eb19

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>