Re: [PATCH v2 3/8] drm/msm: Keep DRM private data separate from GPU drvdata
From: Konrad Dybcio
Date: Mon Nov 02 2026 - 07:18:52 EST
On 10/30/26 6:09 PM, Akhil P Oommen wrote:
> In separate GPU/KMS mode, the GPU device is also the DRM component
> master. msm_drv_probe() stores priv in its drvdata, but msm_gpu_init()
> overwrites it with &gpu->adreno_smmu. So, it is better to avoid using
> drm priv data in the master's dev->drvdata.
>
> As an alternative, store priv in a devres entry of the drm master and
> retrieve it from there during component bind. Update all component
> drivers to use the new helpers.
>
> Signed-off-by: Akhil P Oommen <akhilpo@xxxxxxxxxxxxxxxx>
> ---
Acked-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad