RE: [PATCH] drm/radeon: ERROR: "foo* bar" should be "foo *bar"

2023-07-14 Thread SHANMUGAM, SRINIVASAN
[Public] Reviewed-by: Srinivasan Shanmugam -Original Message- From: amd-gfx On Behalf Of shijie...@208suo.com Sent: Friday, July 14, 2023 1:36 PM To: Deucher, Alexander ; Pan, Xinhui ; airl...@gmail.com; dan...@ffwll.ch Cc: dri-de...@lists.freedesktop.org; amd-gfx@lists.freedesktop.or

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-14 Thread Gustavo A. R. Silva
On 7/12/23 08:12, Alex Deucher wrote: On Wed, Jul 12, 2023 at 8:04 AM Ricardo Cañuelo wrote: UBSAN complains about out-of-bounds array indexes on all 1-element arrays defined on this driver: UBSAN: array-index-out-of-bounds in /home/rcn/work/repos/kernelci/kernelci-core/linux_kernel_mainl

Re: [PATCH v4 21/21] dyndbg-doc: add classmap info to howto

2023-07-14 Thread jim . cromie
On Thu, Jul 13, 2023 at 1:13 PM Randy Dunlap wrote: > > > > On 7/13/23 09:36, Jim Cromie wrote: > > Add some basic info on classmap usage and api > > > > Signed-off-by: Jim Cromie > > --- > > .../admin-guide/dynamic-debug-howto.rst | 64 ++- > > 1 file changed, 63 insertion

Re: [PATCH v4 20/21] config TEST_DYNAMIC_DEBUG default m

2023-07-14 Thread jim . cromie
On Thu, Jul 13, 2023 at 1:04 PM Randy Dunlap wrote: > > Hi Jim, > > On 7/13/23 09:36, Jim Cromie wrote: > > Signed-off-by: Jim Cromie > > --- > > lib/Kconfig.debug | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > > index d4f

Re: [PATCH v2] drm/amd/display: Use root connector's colorspace property for MST

2023-07-14 Thread Michel Dänzer
On 7/13/23 21:58, Harry Wentland wrote: > After driver init we shouldn't create new properties. Doing so > will lead to a warning storm from __drm_mode_object_add. > > We don't really need to create the property for MST connectors. > Re-using the mst_root connector's property is fine. > > v2: Add

[PATCH v3 5/5] drm/amdgpu: Create version number for coredumps

2023-07-14 Thread André Almeida
Even if there's nothing currently parsing amdgpu's coredump files, if we eventually have such tools they will be glad to find a version field to properly read the file. Create a version number to be displayed on top of coredump file, to be incremented when the file format or content get changed.

[PATCH v3 4/5] drm/amdgpu: Move coredump code to amdgpu_reset file

2023-07-14 Thread André Almeida
Giving that we use codedump just for device resets, move it's functions and structs to a more semantic file, the amdgpu_reset.{c, h}. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 9 --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 80 -- driv

[PATCH v3 3/5] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-14 Thread André Almeida
Instead of storing coredump information inside amdgpu_device struct, move if to a proper separated struct and allocate it dynamically. This will make it easier to further expand the logged information. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 14 +++-- driver

[PATCH v3 2/5] drm/amdgpu: Allocate coredump memory in a nonblocking way

2023-07-14 Thread André Almeida
During a GPU reset, a normal memory reclaim could block to reclaim memory. Giving that coredump is a best effort mechanism, it shouldn't disturb the reset path. Change its memory allocation flag to a nonblocking one. Signed-off-by: André Almeida Reviewed-by: Christian König --- drivers/gpu/drm/

[PATCH v3 1/5] drm/amdgpu: Create a module param to disable soft recovery

2023-07-14 Thread André Almeida
Create a module parameter to disable soft recoveries on amdgpu, making every recovery go through the device reset path. This option makes easier to force device resets for testing and debugging purposes. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu

[PATCH v3 0/5] drm/amdgpu: Add new reset option and rework coredump

2023-07-14 Thread André Almeida
Hi, The goal of this patchset is to improve debugging device resets on amdgpu. The first patch creates a new module parameter to disable soft recoveries, ensuring every recovery go through the full device reset, making easier to generate resets from userspace tools like [0] and [1]. This is impor

Re: [PATCH 3/5] drm/amdkfd: use vma_is_stack() and vma_is_heap()

2023-07-14 Thread Felix Kuehling
Am 2023-07-14 um 10:26 schrieb Vlastimil Babka: On 7/12/23 18:24, Felix Kuehling wrote: Allocations in the heap and stack tend to be small, with several allocations sharing the same page. Sharing the same page for different allocations with different access patterns leads to thrashing when we mi

Re: [PATCH 3/5] drm/amdkfd: use vma_is_stack() and vma_is_heap()

2023-07-14 Thread Vlastimil Babka
On 7/12/23 18:24, Felix Kuehling wrote: > Allocations in the heap and stack tend to be small, with several > allocations sharing the same page. Sharing the same page for different > allocations with different access patterns leads to thrashing when we > migrate data back and forth on GPU and CPU

Re: [PATCH] drm/amdgpu: Allow the initramfs generator to include psp_13_0_6_ta

2023-07-14 Thread Deucher, Alexander
[Public] Reviewed-by: Alex Deucher From: amd-gfx on behalf of Candice Li Sent: Friday, July 14, 2023 1:41 AM To: amd-gfx@lists.freedesktop.org Cc: Li, Candice ; Zhang, Hawking Subject: [PATCH] drm/amdgpu: Allow the initramfs generator to include psp_13_0_6_t

Re: radeon.ko/i586: BUG: kernel NULL pointer dereference, address:00000004

2023-07-14 Thread Steven Rostedt
On Fri, 14 Jul 2023 14:34:04 +0900 wrote: > >> > So I'm confused about why it's mentioned. Was it backported? > >> > >> Taketo Kabe, could you please help to clean this confusion up? Did you > >> mean 5.19 in https://bugzilla.kernel.org/show_bug.cgi?id=217669#c5 ? And > >> BTW: did you really

Re: [PATCH 1/2] drm/amdgpu: allow secure submission on VCN4 ring

2023-07-14 Thread Leo Liu
On 2023-07-14 05:44, sguttula wrote: This patch will enable secure decode playback on VCN4 Signed-off-by: sguttula --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c in

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-14 Thread Ricardo Cañuelo
Hi Paulo, > I didn't review all struct changes but I reckon that you got the train > of thought to be followed by now. Please count on me for reviewing those > changes :-) Thanks for reviewing the patch. It turned out that making these changes properly isn't so trivial as I thought and I'll need

Re: [Freedreno] [PATCH RFC v1 00/52] drm/crtc: Rename struct drm_crtc::dev to drm_dev

2023-07-14 Thread Thomas Zimmermann
Hi Am 13.07.23 um 17:14 schrieb Tvrtko Ursulin: On 13/07/2023 16:09, Thomas Zimmermann wrote: Hi Am 13.07.23 um 16:41 schrieb Sean Paul: On Thu, Jul 13, 2023 at 9:04 AM Uwe Kleine-König wrote: hello Sean, On Wed, Jul 12, 2023 at 02:31:02PM -0400, Sean Paul wrote: I'd really prefer this

Re: [PATCH v3 00/18] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags

2023-07-14 Thread Geert Uytterhoeven
Hi Thomas, On Fri, Jul 14, 2023 at 9:53 AM Thomas Zimmermann wrote: > Remove the unused flags FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT from > fbdev and drivers, as briefly discussed at [1]. Both flags were maybe > useful when fbdev had special handling for driver modules. With > commit 376b3ff54c9a

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-14 Thread Paulo Miguel Almeida
On Wed, Jul 12, 2023 at 10:12:08AM -0400, Alex Deucher wrote: > On Wed, Jul 12, 2023 at 8:04 AM Ricardo Cañuelo > wrote: > > > > UBSAN complains about out-of-bounds array indexes on all 1-element > > arrays defined on this driver: > > > > UBSAN: array-index-out-of-bounds in > > /home/rcn/work/rep

[PATCH] drm/radeon: ERROR: "foo* bar" should be "foo *bar"

2023-07-14 Thread shijie001
Fix five occurrences of the checkpatch.pl error: ERROR: "foo* bar" should be "foo *bar" ERROR: that open brace { should be on the previous line Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/radeon_audio.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/driver

Re: [v3,18/18] fbdev: Document that framebuffer_alloc() returns zero'ed data

2023-07-14 Thread Sui JIngfeng
On 2023/7/14 15:49, Thomas Zimmermann wrote: Most fbdev drivers depend on framebuffer_alloc() to initialize the allocated memory to 0. Document this guarantee. v3: * slightly reword the sentence (Miguel) Suggested-by: Miguel Ojeda Signed-off-by: Thomas Zimmermann Reviewed-by: Miguel

Re: [PATCH v3 00/18] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags

2023-07-14 Thread Dan Carpenter
On Fri, Jul 14, 2023 at 12:24:05PM +0200, Thomas Zimmermann wrote: > > > > >fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers > > >fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers > > >fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers > > >fbdev: Remove flag FBINFO_DEFAUL

Re: [PATCH v2 5/6] drm/amdgpu: Log IBs and ring name at coredump

2023-07-14 Thread André Almeida
Em 14/07/2023 04:57, Christian König escreveu: Am 13.07.23 um 23:32 schrieb André Almeida: Log the IB addresses used by the hung job along with the stuck ring name. Note that due to nested IBs, the one that caused the reset itself may be in not listed address. Signed-off-by: André Almeida -

Re: [PATCH v2 4/6] drm/amdgpu: Limit info in coredump for kernel threads

2023-07-14 Thread André Almeida
Em 14/07/2023 04:52, Christian König escreveu: Am 13.07.23 um 23:32 schrieb André Almeida: If a kernel thread caused the reset, the information available to be logged will be limited, so return early in the dump function. Why? The register values and vram lost state should still be valid.

[PATCH] drm/amdgpu: use a macro to define no xcp partition case

2023-07-14 Thread Guchun Chen
~0 as no xcp partition is used in several places, so improve its definition by a macro for code consistency. Suggested-by: Christian König Signed-off-by: Guchun Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c | 4 ++-- drivers/

RE: [regression][6.5] KASAN: slab-out-of-bounds in amdgpu_vm_pt_create+0x555/0x670 [amdgpu] on Radeon 7900XTX

2023-07-14 Thread Chen, Guchun
[Public] > -Original Message- > From: Mikhail Gavrilov > Sent: Saturday, July 8, 2023 6:27 AM > To: Chen, Guchun > Cc: amd-gfx list ; Koenig, Christian > ; Deucher, Alexander > ; Linux List Kernel Mailing ker...@vger.kernel.org> > Subject: Re: [regression][6.5] KASAN: slab-out-of-bounds

[PATCH 2/2] drm/amdgpu/vm: use the same xcp_id from root PD

2023-07-14 Thread Guchun Chen
Other PDs/PTs allocation should just use the same xcp_id as that stored in root PD. Suggested-by: Christian König Signed-off-by: Guchun Chen Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH 1/2] drm/amdgpu: fix slab-out-of-bounds issue in amdgpu_vm_pt_create

2023-07-14 Thread Guchun Chen
Recent code set xcp_id stored from file private data when opening device to amdgpu bo for accounting memory usage etc, but not all VMs are attached to this fpriv structure like the vm cases in amdgpu_mes_self_test, otherwise, KASAN will complain below out of bound access. And more importantly, VM c

Re: [PATCH v3 00/18] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags

2023-07-14 Thread Thomas Zimmermann
Hi Am 14.07.23 um 12:29 schrieb Dan Carpenter: On Fri, Jul 14, 2023 at 12:24:05PM +0200, Thomas Zimmermann wrote: fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers fbde

[PATCH 2/2] drm/amdgpu: Enabling FW workaround through shared memory for VCN 4

2023-07-14 Thread sguttula
This patch will enable VCN FW workaround using DRM KEY INJECT WORKAROUND method, which is helping in fixing the secure playback. Signed-off-by: sguttula --- Changes in v2: -updated commit message as per veera's feedback --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 9 + drivers/gpu/drm/

Re: [PATCH v3 00/18] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags

2023-07-14 Thread Thomas Zimmermann
Hi Am 14.07.23 um 12:04 schrieb Geert Uytterhoeven: Hi Thomas, On Fri, Jul 14, 2023 at 9:53 AM Thomas Zimmermann wrote: Remove the unused flags FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT from fbdev and drivers, as briefly discussed at [1]. Both flags were maybe useful when fbdev had special handl

RE: [PATCH 2/2] drm/amdgpu: Add FW shared flag for DRM KEY INJECT

2023-07-14 Thread Gopalakrishnan, Veerabadhran (Veera)
[AMD Official Use Only - General] Suresh, Please modify the commit message to a more meaningful one. 1. add a commit title 2. write about the changes than the effect of the change. Something like Enabling FW workaround in using shared memory for VCN 4 3. Can you please check if this change is appl

[PATCH 2/2] drm/amdgpu: Add FW shared flag for DRM KEY INJECT

2023-07-14 Thread sguttula
This patch will fix the secure playback corruption due to HW bug on VCN4. Signed-off-by: sguttula --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 9 + drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 4 2 files changed, 13 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h

[PATCH 1/2] drm/amdgpu: allow secure submission on VCN4 ring

2023-07-14 Thread sguttula
This patch will enable secure decode playback on VCN4 Signed-off-by: sguttula --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c index e8c02ae10163..d199f87febd1 100644 --- a

[PATCH 1/2] drm/amdkfd: fix trap handling work around for debugging

2023-07-14 Thread Jonathan Kim
Update the list of devices that require the cwsr trap handling workaround for debugging use cases. Signed-off-by: Jonathan Kim --- drivers/gpu/drm/amd/amdkfd/kfd_debug.c| 5 ++--- drivers/gpu/drm/amd/amdkfd/kfd_debug.h| 6 ++ drivers/gpu/drm/amd/amdkfd/kfd_dev

[PATCH 2/2] drm/amdkfd: enable cooperative groups for gfx11

2023-07-14 Thread Jonathan Kim
MES can concurrently schedule queues on the device that require exclusive device access if marked exclusively_scheduled without the requirement of GWS. Similar to the F32 HWS, MES will manage quality of service for these queues. Use this for cooperative groups since cooperative groups are device o

Re: [PATCH v2 5/6] drm/amdgpu: Log IBs and ring name at coredump

2023-07-14 Thread Christian König
Am 13.07.23 um 23:32 schrieb André Almeida: Log the IB addresses used by the hung job along with the stuck ring name. Note that due to nested IBs, the one that caused the reset itself may be in not listed address. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu.h|

Re: [PATCH v2 4/6] drm/amdgpu: Limit info in coredump for kernel threads

2023-07-14 Thread Christian König
Am 13.07.23 um 23:32 schrieb André Almeida: If a kernel thread caused the reset, the information available to be logged will be limited, so return early in the dump function. Why? The register values and vram lost state should still be valid. Christian. Signed-off-by: André Almeida ---

[PATCH v3 16/18] fbdev/pxafb: Remove flag FBINFO_FLAG_DEFAULT

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by devm_kzalloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix co

[PATCH v3 15/18] fbdev/atafb: Remove flag FBINFO_FLAG_DEFAULT

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by a static declaration. So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: *

[PATCH v3 02/18] fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by a static declaration. So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix c

[PATCH v3 11/18] media: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by kzalloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit

[PATCH v3 18/18] fbdev: Document that framebuffer_alloc() returns zero'ed data

2023-07-14 Thread Thomas Zimmermann
Most fbdev drivers depend on framebuffer_alloc() to initialize the allocated memory to 0. Document this guarantee. v3: * slightly reword the sentence (Miguel) Suggested-by: Miguel Ojeda Signed-off-by: Thomas Zimmermann Reviewed-by: Miguel Ojeda Cc: Helge Deller --- drivers/video/fbde

[PATCH v3 05/18] fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix co

[PATCH v3 09/18] auxdisplay: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * f

[PATCH v3 13/18] fbdev: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by kzalloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit

[PATCH v3 08/18] sh: mach-sh7763rdp: Assign FB_MODE_IS_UNKNOWN to struct fb_videomode.flag

2023-07-14 Thread Thomas Zimmermann
Assign FB_MODE_IS_UNKNOWN to sh7763fb_videomode.flag instead of FBINFO_FLAG_DEFAULT. Both are 0, so the stored value does not change. FBINFO_FLAG_DEFAULT is a flag for a framebuffer in struct fb_info. Flags for videomodes are prefixed with FB_MODE_. v3: * include board name in commit mess

[PATCH v3 17/18] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT

2023-07-14 Thread Thomas Zimmermann
Remove the unused flags FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT. No functional changes. Signed-off-by: Thomas Zimmermann Acked-by: Sam Ravnborg Cc: Helge Deller --- include/linux/fb.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/fb.h b/include/linux/fb.h index 1d5c13f34b0

[PATCH v3 14/18] fbdev: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * f

[PATCH v3 10/18] hid/picolcd: Remove flag FBINFO_FLAG_DEFAULT from fbdev driver

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * f

[PATCH v3 06/18] fbdev/fsl-diu-fb: Remove flag FBINFO_DEFAULT

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by dmam_alloc_coherent(__GFP_ZERO). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2:

[PATCH v3 07/18] vfio-mdev: Remove flag FBINFO_DEFAULT from fbdev sample driver

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix co

[PATCH v3 03/18] fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by kzalloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit messa

[PATCH v3 04/18] fbdev: Remove flag FBINFO_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by devm_kzalloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit

[PATCH v3 12/18] staging: Remove flag FBINFO_FLAG_DEFAULT from fbdev drivers

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * f

[PATCH v3 00/18] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags

2023-07-14 Thread Thomas Zimmermann
Remove the unused flags FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT from fbdev and drivers, as briefly discussed at [1]. Both flags were maybe useful when fbdev had special handling for driver modules. With commit 376b3ff54c9a ("fbdev: Nuke FBINFO_MODULE"), they are both 0 and have no further effect. P

[PATCH v3 01/18] drm: Remove flag FBINFO_DEFAULT from fbdev emulation

2023-07-14 Thread Thomas Zimmermann
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix co

Re: [PATCH v2 3/6] drm/amdgpu: Rework coredump to use memory dynamically

2023-07-14 Thread Christian König
Am 13.07.23 um 23:32 schrieb André Almeida: Instead of storing coredump information inside amdgpu_device struct, move if to a proper separated struct and allocate it dynamically. This will make it easier to further expand the logged information. Signed-off-by: André Almeida --- v2: Replace GFP_

Re: [PATCH] drm/radeon: ERROR: "(foo*)" should be "(foo *)"

2023-07-14 Thread Christian König
Am 14.07.23 um 07:35 schrieb shijie...@208suo.com: Fix one occurrence of the checkpatch.pl error: ERROR: "(foo*)" should be "(foo *)" It's nice to see all those little typos fixed, but I'm not sure how feasible it is to send patches for each type individually. Maybe just merge them together

Re: radeon.ko/i586: BUG: kernel NULL pointer dereference, address: 00000004

2023-07-14 Thread Steven Rostedt
On Fri, 14 Jul 2023 09:50:17 +0700 Bagas Sanjaya wrote: > Hi, > > I notice a regression report on Bugzilla [1]. Quoting from it: > > > See Bugzilla for the full thread and attached patches that fixes > this regression. > > Later, when bisecting, the reporter got better kernel trace: > > > [

[PATCH] drm/radeon/dpm: ERROR: open brace '{' following enum go on the same line

2023-07-14 Thread shijie001
Fix four occurrences of the checkpatch.pl error: ERROR: open brace '{' following enum go on the same line Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/ni_dpm.h | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.h b/drivers/gpu/dr

[PATCH] drm/amd: open brace '{' following struct go on the same line

2023-07-14 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/yellow_carp_offset.h b/drive

[PATCH] drm/amd: add missing spaces after ',' and remove spaces before ','

2023-07-14 Thread sunran001
Add missing spaces and remove spaces to clear checkpatch errors. ERROR: space prohibited before that ',' (ctx:WxV) ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/atom-bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: radeon.ko/i586: BUG: kernel NULL pointer dereference, address:00000004

2023-07-14 Thread kkabe
Thanks you all for getting attention to the report: regressi...@leemhuis.info sed in <55a3bbb1-5b3c-f454-b529-8ee9944cc...@leemhuis.info> >> On 14.07.23 05:12, Steven Rostedt wrote: >> > On Fri, 14 Jul 2023 09:50:17 +0700 >> > Bagas Sanjaya wrote: >> > >> >> I notice a regression report on Bu

[PATCH] drm/radeon: ERROR: space prohibited before that ', ' (ctx:WxV)

2023-07-14 Thread shijie001
Fix two occurrences of the checkpatch.pl error: ERROR: space prohibited before that ',' (ctx:WxV) ERROR: space required after that ',' (ctx:WxV) Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/atom-bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rade

[PATCH] drm/amdgpu/discovery: open brace '{' following struct go on the same line

2023-07-14 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/discovery.h | 33 + 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/amd/include/discovery.h b/

[PATCH] drm/amd/amd_shared.h: remove spaces after '*'

2023-07-14 Thread sunran001
Fix four occurrences of the checkpatch.pl error: ERROR: trailing whitespace Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/amd_shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_share

Fwd: radeon.ko/i586: BUG: kernel NULL pointer dereference, address: 00000004

2023-07-14 Thread Bagas Sanjaya
Hi, I notice a regression report on Bugzilla [1]. Quoting from it: > Origin report: https://gitlab.freedesktop.org/drm/amd/-/issues/2615 > > Compile with CONFIG_DRM_RADEON=m on 32bit, > kernel panics on radeon.ko load. > > On slow machine, there is 70 second window between > login: prompt on ra

Re: radeon.ko/i586: BUG: kernel NULL pointer dereference, address:00000004

2023-07-14 Thread kkabe
Thanks you all for getting attention to the report: regressi...@leemhuis.info sed in <55a3bbb1-5b3c-f454-b529-8ee9944cc...@leemhuis.info> >> On 14.07.23 05:12, Steven Rostedt wrote: >> > On Fri, 14 Jul 2023 09:50:17 +0700 >> > Bagas Sanjaya wrote: >> > >> >> I notice a regression report on Bu

[PATCH] drm/radeon: ERROR: "(foo*)" should be "(foo *)"

2023-07-14 Thread shijie001
Fix one occurrence of the checkpatch.pl error: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/uvd_v1_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/uvd_v1_0.c b/drivers/gpu/drm/radeon/uvd_v1_0.c index 58557

[PATCH] drm/radeon: ERROR: open brace '{' following function definitions go on the next line

2023-07-14 Thread shijie001
Fix four occurrences of the checkpatch.pl error: ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rade

[PATCH] drm/radeon: ERROR: spaces required around that '+=' (ctx:VxV)

2023-07-14 Thread shijie001
Fix two occurrences of the checkpatch.pl error: ERROR: spaces required around that '+=' (ctx:VxV) Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/r100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index af

[PATCH] drm/amd: open brace '{' following struct go on the same line

2023-07-14 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/atomfirmwareid.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmwareid.h b/drivers/gpu/d

Re: radeon.ko/i586: BUG: kernel NULL pointer dereference, address: 00000004

2023-07-14 Thread Linux regression tracking (Thorsten Leemhuis)
On 14.07.23 05:12, Steven Rostedt wrote: > On Fri, 14 Jul 2023 09:50:17 +0700 > Bagas Sanjaya wrote: > >> I notice a regression report on Bugzilla [1]. Quoting from it: >> >> >> See Bugzilla for the full thread and attached patches that fixes >> this regression. >> >> Later, when bisecting, the r

[PATCH] drm/radeon: ERROR: that open brace { should be on the previous line

2023-07-14 Thread shijie001
Fix eight occurrences of the checkpatch.pl error: ERROR: that open brace { should be on the previous line ERROR: space prohibited before that close parenthesis ')' ERROR: spaces required around that '?' (ctx:VxW) Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/sumo_dpm.c | 18

[PATCH] drm/radeon: ERROR: open brace '{' following struct go on the same line

2023-07-14 Thread shijie001
Fix seventeen occurrences of the checkpatch.pl error: ERROR: open brace '{' following struct go on the same line Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/smu7_discrete.h | 51 +- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/rad