[PATCH 0/5] drm_dbg: add trailing newlines where missing

2023-07-30 Thread Jim Cromie
Most of the (~1500) DRM.debug callsites provide a trailing newline in their format-strings. Fix the remainder to do the same. no functional changes Jim Cromie (5): drm_dbg: add trailing newlines to remaining callsites drm_dbg: add trailing newlines drm_dbg: add trailing newlines drm_dbg:

[PATCH 1/5] drm_dbg: add trailing newlines to remaining callsites

2023-07-30 Thread Jim Cromie
All callers should uniformly include a trailing newline, the vast majority already do: 207 DRM_DEV_DEBUG, 1288 drm_dbg. Clean up the remainders, in this and next commits (split for easy acks). No functional changes. Signed-off-by: Jim Cromie --- drivers/gpu/drm/kmb/kmb_crtc.c | 10 +-

[PATCH 2/5] drm_dbg: add trailing newlines

2023-07-30 Thread Jim Cromie
Signed-off-by: Jim Cromie --- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c index 3

[PATCH 3/5] drm_dbg: add trailing newlines

2023-07-30 Thread Jim Cromie
Signed-off-by: Jim Cromie --- drivers/gpu/drm/msm/msm_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_fb.c b/drivers/gpu/drm/msm/msm_fb.c index e3f61c39df69..80166f702a0d 100644 --- a/drivers/gpu/drm/msm/msm_fb.c +++ b/drivers/gpu/drm/msm/msm

[PATCH 4/5] drm_dbg: add trailing newlines

2023-07-30 Thread Jim Cromie
Signed-off-by: Jim Cromie --- drivers/gpu/drm/vc4/vc4_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index bef9d45ef1df..959123759711 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/v

[PATCH 5/5] drm_dbg: add trailing newlines

2023-07-30 Thread Jim Cromie
Signed-off-by: Jim Cromie --- drivers/gpu/drm/drm_connector.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 48df7a5ea503..39eab45649c8 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/dr

RE: [PATCH] drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()

2023-07-30 Thread Chen, Guchun
[Public] > -Original Message- > From: amd-gfx On Behalf Of Alex > Deucher > Sent: Friday, July 28, 2023 11:23 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: [PATCH] drm/amdgpu: fix possible UAF in amdgpu_cs_pass1() > > Since the gang_size check is outside of c

Re: [PATCH v5 6/6] drm/doc: Define KMS atomic state set

2023-07-30 Thread André Almeida
Em 13/07/2023 04:51, Pekka Paalanen escreveu: On Tue, 11 Jul 2023 10:57:57 +0200 Daniel Vetter wrote: On Fri, Jul 07, 2023 at 07:40:59PM -0300, André Almeida wrote: From: Pekka Paalanen Specify how the atomic state is maintained between userspace and kernel, plus the special case for async

[PATCH] drm/amdgpu: GC_9.4.3 requires at least 280MB TMR

2023-07-30 Thread Amber Lin
On GC_9.4.3, if atombios reports TMR size less than 280MB, firmware area will be overwritten by driver or user application use. Remove !adev->bios condition since reserve_size is initialized as 0, it'll fail into else if (!reserve_size) condition. Signed-off-by: Amber Lin --- drivers/gpu/drm/amd