Use memdup_user_nul() helper instead of open-coding to simplify the code.
Signed-off-by: Ruan Jinjie
---
drivers/gpu/drm/msm/adreno/adreno_gpu.c | 14 +++---
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c
b/drivers/gpu/drm/msm/adre
On Thu, Aug 10, 2023 at 08:04:24PM +0800, Ruan Jinjie wrote:
> Use memdup_user_nul() helper instead of open-coding to simplify the code.
>
> Signed-off-by: Ruan Jinjie
Reviewed-by: Bjorn Andersson
Regards,
Bjorn
From: Rob Clark
Fix another lockdep splat by pushing the GMU lock further down in the
pm_resume path, so that we aren't holding it while preparing/enabling
clks. Fixes:
==
WARNING: possible circular locking dependency detected
---
From: Rob Clark
Avoid holding gpu lock when calling runpm, to avoid this lockdep splat:
==
WARNING: possible circular locking dependency detected
6.4.3-debug+ #14 Not tainted
--