[Intel-gfx] [PATCH] drm: i915: display: intel_dmc: Fixes an unsigned subtraction which can never be negative.

2021-12-10 Thread Harshit Mogalapalli
/xelpd: Pipe A DMC plugging") Signed-off-by: Harshit Mogalapalli --- drivers/gpu/drm/i915/display/intel_dmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c index 0cab18f972d1..2f477c298b00 1

[Intel-gfx] [PATCH next] drm/i915/huc: Fix missing error code in intel_huc_init()

2023-06-20 Thread Harshit Mogalapalli
of failure. Fix this by adding the missing error code when VMA allocation fails. Fixes: 08872cb13a71 ("drm/i915/mtl/huc: auth HuC via GSC") Signed-off-by: Harshit Mogalapalli --- Found using Static analysis with Smatch, only compile tested. --- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 1

[Intel-gfx] [PATCH] i915/perf: Fix NULL deref bugs with drm_dbg() calls

2023-10-27 Thread Harshit Mogalapalli
When i915 perf interface is not available dereferencing it will lead to NULL dereferences. Fix this by using DRM_DEBUG() which the scenario before the commit in the Fixes tag. Fixes: 2fec539112e8 ("i915/perf: Replace DRM_DEBUG with driver specific drm_dbg call") Signed-off-b

Re: [Intel-gfx] [PATCH] i915/perf: Fix NULL deref bugs with drm_dbg() calls

2023-10-27 Thread Harshit Mogalapalli
Hi Tvrtko, On 27/10/23 8:17 pm, Tvrtko Ursulin wrote: On 27/10/2023 15:11, Andrzej Hajda wrote: On 27.10.2023 16:07, Harshit Mogalapalli wrote: When i915 perf interface is not available dereferencing it will lead to NULL dereferences. Fix this by using DRM_DEBUG() which the scenario before

[Intel-gfx] [PATCH v2] i915/perf: Fix NULL deref bugs with drm_dbg() calls

2023-10-27 Thread Harshit Mogalapalli
ko Ursulin Signed-off-by: Harshit Mogalapalli --- v1 --> v2: Remove the debug calls as they don't add much value and -ENOTSUPP is a good enough return value. --- drivers/gpu/drm/i915/i915_perf.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/dr

[PATCH] drm/i915: Rename functions in the docs to match code changes

2024-09-30 Thread Harshit Mogalapalli
_irq_suspend(), make documentation changes accordingly. Fixes: 3de5774cb8c0 ("drm/i915/irq: Rename suspend/resume functions") Reported-by: Stephen Rothwell Closes: https://lore.kernel.org/all/20241001134331.7b4d4...@canb.auug.org.au/ Signed-off-by: Harshit Mogalapalli --- Noticed that Stephen