Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 05:12, Yang Yingliang wrote: > > On 2022/10/21 16:36, Greg KH wrote: >> On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: >>> On 2022/10/21 13:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: > On 2022-10-20 22:20, Yang

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 05:56, Yang Yingliang wrote: > > On 2022/10/21 17:08, Luben Tuikov wrote: >> On 2022-10-21 04:59, Yang Yingliang wrote: >>> On 2022/10/21 16:36, Greg KH wrote: On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: > On 2022/10/21 13:37, Greg KH wrote: >> On

Re: [PATCH 1/2] drm/amdkfd: introduce dummy cache info for property asic

2022-10-21 Thread Felix Kuehling
On 2022-10-21 09:05, Liang, Prike wrote: [Public] -Original Message- From: Kuehling, Felix Sent: Friday, October 21, 2022 1:11 PM To: Liang, Prike ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Zhang, Yifan ; Huang, Ray ; Liu, Aaron Subject: Re: [PATCH 1/2] drm/amdkfd:

Re: [PATCH] drm/amdkfd: correct the cache info for gfx1036

2022-10-21 Thread Alex Deucher
It looks like this patch never landed. Alex On Tue, Oct 11, 2022 at 9:48 PM Zhang, Yifan wrote: > > [Public] > > > > This patch is > > > > Reviewed-by: Yifan Zhang > > > > From: Zhang, Jesse(Jie) > Sent: Tuesday, October 11, 2022 1:23 PM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher,

[PATCH] drm/amd/display: don't print messages that contain %f in dml

2022-10-21 Thread Hamza Mahfooz
Unfortunately, printk() doesn't currently support the printing of %f entries. So, print statements that contain "%f" should be removed. However, since DC is used on other OSes that can still benefit from the additional debugging information, we should instead remove the problematic print

Re: [PATCH] drm/amd/display: Remove duplicate code for DCN314 DML calculation

2022-10-21 Thread Harry Wentland
On 2022-10-20 18:10, Rafael Mendonca wrote: > This is an extension of commit fd3bc691fc7b ("drm/amd/display: Remove > duplicate code across dcn30 and dcn31"), which removed duplicate code for > the function CalculateBytePerPixelAnd256BBlockSizes() across dcn30 and > dcn31. At the time the

Re: [PATCH v2] drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume

2022-10-21 Thread Alex Deucher
On Fri, Oct 21, 2022 at 10:47 AM Prike Liang wrote: > > In the S2idle suspend/resume phase the gfxoff is keeping functional so > some IP blocks will be likely to reinitialize at gfxoff entry and that > will result in failing to program GC registers.Therefore, let disallow > gfxoff until AMDGPU

[PATCH v2] drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume

2022-10-21 Thread Prike Liang
In the S2idle suspend/resume phase the gfxoff is keeping functional so some IP blocks will be likely to reinitialize at gfxoff entry and that will result in failing to program GC registers.Therefore, let disallow gfxoff until AMDGPU IPs reinitialized completely. Signed-off-by: Prike Liang ---

Re: [PATCH] drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume

2022-10-21 Thread Alex Deucher
On Fri, Oct 21, 2022 at 10:10 AM Liang, Prike wrote: > > [Public] > > -Original Message- > From: Alex Deucher > Sent: Friday, October 21, 2022 9:39 PM > To: Liang, Prike > Cc: amd-gfx@lists.freedesktop.org; Deucher, Alexander > ; Huang, Ray > Subject: Re: [PATCH] drm/amdgpu: disallow

RE: [PATCH] drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume

2022-10-21 Thread Liang, Prike
[Public] -Original Message- From: Alex Deucher Sent: Friday, October 21, 2022 9:39 PM To: Liang, Prike Cc: amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Huang, Ray Subject: Re: [PATCH] drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume On Thu, Oct 20, 2022

Re: [PATCH] drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume

2022-10-21 Thread Alex Deucher
On Thu, Oct 20, 2022 at 10:30 PM Prike Liang wrote: > > In the S2idle suspend/resume phase the gfxoff is keeping functional so > some IP blocks will be likely to reinitialize at gfxoff entry and that > will result in failing to program GC registers.Therefore, let disallow > gfxoff until AMDGPU

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
On 2022/10/21 16:41, Luben Tuikov wrote: On 2022-10-21 04:24, Luben Tuikov wrote: On 2022-10-21 04:18, Greg KH wrote: On Fri, Oct 21, 2022 at 03:55:18AM -0400, Luben Tuikov wrote: On 2022-10-21 01:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
On 2022/10/21 16:36, Greg KH wrote: On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: On 2022/10/21 13:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: The previous discussion link:

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
On 2022/10/21 16:36, Greg KH wrote: On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: On 2022/10/21 13:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: The previous discussion link:

Re: [PATCH 01/11] kset: fix documentation for kset_register()

2022-10-21 Thread Yang Yingliang
On 2022/10/21 13:34, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: kset_register() is currently used in some places without calling kset_put() in error path, because the callers think it should be kset internal thing to do, but the driver core can not know what caller doing

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
Hi, On 2022/10/21 13:29, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: The previous discussion link: https://lore.kernel.org/lkml/0db486eb-6927-927e-3629-958f8f211...@huawei.com/T/ The very first discussion on this was here:

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Greg KH
On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: > > On 2022/10/21 13:37, Greg KH wrote: > > On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: > > > On 2022-10-20 22:20, Yang Yingliang wrote: > > > > The previous discussion link: > > > >

Re: [PATCH 01/11] kset: fix documentation for kset_register()

2022-10-21 Thread Greg KH
On Fri, Oct 21, 2022 at 04:05:18PM +0800, Yang Yingliang wrote: > > On 2022/10/21 13:34, Luben Tuikov wrote: > > On 2022-10-20 22:20, Yang Yingliang wrote: > > > kset_register() is currently used in some places without calling > > > kset_put() in error path, because the callers think it should be

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Greg KH
On Fri, Oct 21, 2022 at 03:55:18AM -0400, Luben Tuikov wrote: > On 2022-10-21 01:37, Greg KH wrote: > > On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: > >> On 2022-10-20 22:20, Yang Yingliang wrote: > >>> The previous discussion link: > >>>

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
On 2022/10/21 17:08, Luben Tuikov wrote: On 2022-10-21 04:59, Yang Yingliang wrote: On 2022/10/21 16:36, Greg KH wrote: On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: On 2022/10/21 13:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
On 2022/10/21 13:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: The previous discussion link: https://lore.kernel.org/lkml/0db486eb-6927-927e-3629-958f8f211...@huawei.com/T/ The very first discussion on this was

RE: [PATCH 1/2] drm/amdkfd: introduce dummy cache info for property asic

2022-10-21 Thread Liang, Prike
[Public] -Original Message- From: Kuehling, Felix Sent: Friday, October 21, 2022 1:11 PM To: Liang, Prike ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander ; Zhang, Yifan ; Huang, Ray ; Liu, Aaron Subject: Re: [PATCH 1/2] drm/amdkfd: introduce dummy cache info for property asic

Re: [6.1][regression] after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start

2022-10-21 Thread Mikhail Gavrilov
On Fri, Oct 21, 2022 at 1:33 PM Christian König wrote: > > Hi, > > yes Bas already reported this issue, but I couldn't reproduce it. Need > to come up with a patch to narrow this down further. > > Can I send you something to test? I would appreciate to test any patches and ideas. -- Best

Re: [Intel-gfx] [PATCH v7 0/9] dyndbg: drm.debug adaptation

2022-10-21 Thread Jani Nikula
On Thu, 20 Oct 2022, Ville Syrjälä wrote: > On Sat, Sep 24, 2022 at 03:02:34PM +0200, Greg KH wrote: >> On Sun, Sep 11, 2022 at 11:28:43PM -0600, Jim Cromie wrote: >> > hi Greg, Dan, Jason, DRM-folk, >> > >> > heres follow-up to V6: >> > rebased on driver-core/driver-core-next for -v6 applied

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 04:59, Yang Yingliang wrote: > > On 2022/10/21 16:36, Greg KH wrote: >> On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: >>> On 2022/10/21 13:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: > On 2022-10-20 22:20, Yang

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 04:36, Greg KH wrote: > On Fri, Oct 21, 2022 at 04:24:23PM +0800, Yang Yingliang wrote: >> >> On 2022/10/21 13:37, Greg KH wrote: >>> On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: > The previous discussion link:

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 04:24, Luben Tuikov wrote: > On 2022-10-21 04:18, Greg KH wrote: >> On Fri, Oct 21, 2022 at 03:55:18AM -0400, Luben Tuikov wrote: >>> On 2022-10-21 01:37, Greg KH wrote: On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: > On 2022-10-20 22:20, Yang Yingliang

Re: [6.1][regression] after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start

2022-10-21 Thread Christian König
Hi, yes Bas already reported this issue, but I couldn't reproduce it. Need to come up with a patch to narrow this down further. Can I send you something to test? Thanks for the help, Christian. Am 21.10.22 um 10:08 schrieb Mikhail Gavrilov: Hi! I found that some games (Cyberpunk 2077,

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 04:18, Greg KH wrote: > On Fri, Oct 21, 2022 at 03:55:18AM -0400, Luben Tuikov wrote: >> On 2022-10-21 01:37, Greg KH wrote: >>> On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: On 2022-10-20 22:20, Yang Yingliang wrote: > The previous discussion link: >

RE: [PATCH 4/4] drm/amdgpu: remove ras_error_status parameter for UMC poison handler

2022-10-21 Thread Zhang, Hawking
[AMD Official Use Only - General] Series is Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Zhou1, Tao Sent: Friday, October 21, 2022 15:36 To: amd-gfx@lists.freedesktop.org; Zhang, Hawking ; Yang, Stanley ; Chai, Thomas ; Li, Candice Cc: Zhou1, Tao Subject:

Re: [PATCH 01/11] kset: fix documentation for kset_register()

2022-10-21 Thread Luben Tuikov
On 2022-10-21 04:05, Yang Yingliang wrote: > > On 2022/10/21 13:34, Luben Tuikov wrote: >> On 2022-10-20 22:20, Yang Yingliang wrote: >>> kset_register() is currently used in some places without calling >>> kset_put() in error path, because the callers think it should be >>> kset internal thing

[6.1][regression] after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start

2022-10-21 Thread Mikhail Gavrilov
Hi! I found that some games (Cyberpunk 2077, Forza Horizon 4/5) hang at start after commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6. dd80d9c8eecac8c516da5b240d01a35660ba6cb6 is the first bad commit commit dd80d9c8eecac8c516da5b240d01a35660ba6cb6 Author: Christian König Date: Thu Jul 14

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Luben Tuikov
On 2022-10-21 01:37, Greg KH wrote: > On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: >> On 2022-10-20 22:20, Yang Yingliang wrote: >>> The previous discussion link: >>>

Re: [PATCH 1/5] drm/amdgpu: Introduce gfx software ring (v8)

2022-10-21 Thread Michel Dänzer
On 2022-10-20 16:59, Christian König wrote: > Am 20.10.22 um 16:49 schrieb Michel Dänzer: >> On 2022-10-18 11:08, jiadong@amd.com wrote: >>> From: "Jiadong.Zhu" >>> >>> The software ring is created to support priority context while there is only >>> one hardware queue for gfx. >>> >>> Every

[PATCH 4/4] drm/amdgpu: remove ras_error_status parameter for UMC poison handler

2022-10-21 Thread Tao Zhou
Make the code more simple. Signed-off-by: Tao Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 4 +--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c| 3 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c| 13 + drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h| 4 +--- 4 files changed,

[PATCH 3/4] drm/amdgpu: add RAS poison handling for MCA

2022-10-21 Thread Tao Zhou
For MCA poison, if unmap queue fails, only gpu reset should be triggered without page retirement handling, MCA notifier will do it. v2: handle MCA poison consumption in umc_poison_handler directly. Signed-off-by: Tao Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 31

[PATCH 2/4] drm/amdgpu: use page retirement API in MCA notifier

2022-10-21 Thread Tao Zhou
Make the code more readable. Signed-off-by: Tao Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 36 +++-- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index

[PATCH 1/4] drm/amdgpu: add RAS page retirement functions for MCA

2022-10-21 Thread Tao Zhou
Define page retirement functions for MCA platform. v2: remove page retirement handling from MCA poison handler, let MCA notifier do page retirement. v3: remove specific poison handler for MCA to simplify code. Signed-off-by: Tao Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 53

Re: [PATCH] drm/amdgpu: fix sdma doorbell init ordering on APUs

2022-10-21 Thread Shuah Khan
On 10/19/22 21:48, Alex Deucher wrote: Commit 8795e182b02d ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()") uncovered a bug in amdgpu that required a reordering of the driver init sequence to avoid accessing a special register on the GPU before it was properly set up

[PATCH 05/11] class: fix possible memory leak in __class_register()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module (e.g. pktcdvd.ko), kset_register() may fail in __class_register(), if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kobject_set_name() is leaked. To fix this by calling kfree_const(). unreferenced object 0x888102fa8190

[PATCH RESEND] drm/amd/display: move remaining FPU code to dml folder

2022-10-21 Thread Ao Zhong
Move remaining FPU code to dml folder in preparation for enabling aarch64 support. Signed-off-by: Ao Zhong --- .../drm/amd/display/dc/dcn10/dcn10_resource.c | 44 +-- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 5 ++- .../drm/amd/display/dc/dml/dcn10/dcn10_fpu.c | 40

[PATCH 09/11] ocfs2: possible memory leak in mlog_sys_init()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module, kset_register() may fail, if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kobject_set_name() is leaked. Fix this by calling kset_put(), so that name can be freed in callback function kobject_cleanup(). unreferenced object

[PATCH] drm/amd/display: move remaining FPU code to dml folder

2022-10-21 Thread Ao Zhong
Subject: [PATCH] drm/amd/display: move remaining FPU code to dml folder Move remaining FPU code to dml folder in preparation for enabling aarch64 support. Signed-off-by: Ao Zhong ---  .../drm/amd/display/dc/dcn10/dcn10_resource.c | 44 +--  

[PATCH 11/11] ubifs: Fix memory leak in ubifs_sysfs_init()

2022-10-21 Thread Yang Yingliang
From: Liu Shixin When insmod ubifs.ko, a kmemleak reported as below: unreferenced object 0x88817fb1a780 (size 8): comm "insmod", pid 25265, jiffies 4295239702 (age 100.130s) hex dump (first 8 bytes): 75 62 69 66 73 00 ff ff ubifs... backtrace: []

[PATCH 01/11] kset: fix documentation for kset_register()

2022-10-21 Thread Yang Yingliang
kset_register() is currently used in some places without calling kset_put() in error path, because the callers think it should be kset internal thing to do, but the driver core can not know what caller doing with that memory at times. The memory could be freed both in kset_put() and error path of

[PATCH 06/11] firmware: qemu_fw_cfg: fix possible memory leak in fw_cfg_build_symlink()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module, kset_register() may fail, if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kobject_set_name() is leaked. To fix this by calling kset_put(), so that name can be freed in callback function kobject_cleanup() and 'subdir' is freed

[PATCH] drm/amd/display: add DCN support for ARM64

2022-10-21 Thread Ao Zhong
After moving all FPU code to the DML folder, we can enable DCN support for the ARM64 platform. Remove the -mgeneral-regs-only CFLAG form the code in the DML folder that needs to use hardware FPU, and add a control mechanism for ARM Neon. Signed-off-by: Ao Zhong ---

Re: [PATCH] drm/amd/display: Revert logic for plane modifiers

2022-10-21 Thread Joaquin Aramendia
Hello. Thanks for the reply, Rodrigo Will redo the patch and resubmit. Cheers

[PATCH 08/11] erofs: fix possible memory leak in erofs_init_sysfs()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module, kset_register() may fail, if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kobject_set_name() is leaked. Fix this by calling kset_put(), so that name can be freed in callback function kobject_cleanup(). unreferenced object

[PATCH 10/11] drm/amdgpu/discovery: fix possible memory leak

2022-10-21 Thread Yang Yingliang
If kset_register() fails, the refcount of kobject is not 0, the name allocated in kobject_set_name(, ...) is leaked. Fix this by calling kset_put(), so that it will be freed in callback function kobject_cleanup(). Cc: sta...@vger.kernel.org Fixes: a6c40b178092 ("drm/amdgpu: Show IP discovery in

Re: [PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Greg KH
On Fri, Oct 21, 2022 at 01:29:31AM -0400, Luben Tuikov wrote: > On 2022-10-20 22:20, Yang Yingliang wrote: > > The previous discussion link: > > https://lore.kernel.org/lkml/0db486eb-6927-927e-3629-958f8f211...@huawei.com/T/ > > The very first discussion on this was here: > >

[PATCH 07/11] f2fs: fix possible memory leak in f2fs_init_sysfs()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module, kset_register() may fail, if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kobject_set_name() is leaked. Fix this by calling kset_put(), so that name can be freed in callback function kobject_cleanup(). unreferenced object

[PATCH 02/11] kset: add null pointer check in kset_put()

2022-10-21 Thread Yang Yingliang
kset_put() can be called from drivers, add null pointer check to make it more robust. Signed-off-by: Yang Yingliang --- include/linux/kobject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/kobject.h b/include/linux/kobject.h index

[PATCH 00/11] fix memory leak while kset_register() fails

2022-10-21 Thread Yang Yingliang
The previous discussion link: https://lore.kernel.org/lkml/0db486eb-6927-927e-3629-958f8f211...@huawei.com/T/ kset_register() is currently used in some places without calling kset_put() in error path, because the callers think it should be kset internal thing to do, but the driver core can not

[PATCH] drm/amd/display: Remove duplicate code for DCN314 DML calculation

2022-10-21 Thread Rafael Mendonca
This is an extension of commit fd3bc691fc7b ("drm/amd/display: Remove duplicate code across dcn30 and dcn31"), which removed duplicate code for the function CalculateBytePerPixelAnd256BBlockSizes() across dcn30 and dcn31. At the time the aforementioned commit was introduced, support for DCN 3.1.4

[PATCH 04/11] kobject: fix possible memory leak in kset_create_and_add()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module (e.g. qemu_fw_cfg.ko), kset_register() may fail in kset_create_and_add(), if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kset_create() is leaked. To fix this by calling kset_put(), so that name can be freed in callback

[PATCH] drm/amd/display: Revert logic for plane modifiers

2022-10-21 Thread Joaquín Ignacio Aramendía
This file was split in commit 5d945cbcd4b16a29d6470a80dfb19738f9a4319f ("drm/amd/display: Create a file dedicated to planes") and the logic in dm_plane_format_mod_supported() function got changed by a switch logic. That change broke drm_plane modifiers setting on series 5000 APUs (tested on OXP

[PATCH 03/11] bus: fix possible memory leak in bus_register()

2022-10-21 Thread Yang Yingliang
Inject fault while loading module (e.g. edac_core.ko), kset_register() may fail in bus_register(), if it fails, but the refcount of kobject is not decreased to 0, the name allocated in kobject_set_name() is leaked. To fix this by calling kset_put(), so that name can be freed in callback function

RE: [PATCH 1/4] drm/amdgpu: add RAS page retirement functions for MCA

2022-10-21 Thread Zhou1, Tao
[AMD Official Use Only - General] > -Original Message- > From: Zhang, Hawking > Sent: Friday, October 21, 2022 12:15 PM > To: Zhou1, Tao ; amd-gfx@lists.freedesktop.org; Yang, > Stanley ; Chai, Thomas ; Li, > Candice > Subject: RE: [PATCH 1/4] drm/amdgpu: add RAS page retirement