[PATCH] drm/amd/pm/powerplay/hwmgr/smu_helper: fix order of mask and value

2025-07-01 Thread Fedor Pchelkin
: 3bace3591493 ("drm/amd/powerplay: add hardware manager sub-component") Signed-off-by: Fedor Pchelkin --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c b/drivers/gpu/

Re: [lvc-project] [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-14 Thread Fedor Pchelkin
On Thu, 10. Apr 11:07, Christian König wrote: > Am 09.04.25 um 19:27 schrieb Linus Torvalds: > > The VM layer allows larger allocations. But the "this is a simple > > allocation, choose kmalloc or vmalloc automatically based on size" > > helper says "you are being simple, I'm going to check your ar

Re: [lvc-project] [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-08 Thread Fedor Pchelkin
On Tue, 08. Apr 11:26, Christian König wrote: > Am 08.04.25 um 11:17 schrieb Denis Arefev: > > The user can set any value to the variable ‘bo_number’, via the ioctl > > command DRM_IOCTL_AMDGPU_BO_LIST. This will affect the arithmetic > > expression ‘in->bo_number * in->bo_info_size’, which is pron

Re: [lvc-project] [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-08 Thread Fedor Pchelkin
On Tue, 08. Apr 14:22, Christian König wrote: > Am 08.04.25 um 13:54 schrieb Fedor Pchelkin: > > If user can request an arbitrary size value then we should use __GFP_NOWARN > > and back on the allocator to return NULL in case it doesn't even try to > > satisfy an enormous

Re: [lvc-project] [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-08 Thread Fedor Pchelkin
On Tue, 08. Apr 13:37, Christian König wrote: > Am 08.04.25 um 11:39 schrieb Fedor Pchelkin: > > On Tue, 08. Apr 11:26, Christian König wrote: > >> Am 08.04.25 um 11:17 schrieb Denis Arefev: > >>> The user can set any value to the variable ‘bo_number

[PATCH 6.1 resend] Revert "drm/amd/display: Skip Recompute DSC Params if no Stream on Link"

2024-11-08 Thread Fedor Pchelkin
nce of two different upstream commits performing the exact same change and one of which has been cherry-picked. No point to keep it in the stable branch. Found by Linux Verification Center (linuxtesting.org) with Svace static analysis tool. Reported-by: Alexey Khoroshilov Signed-off-by: Fedo

Re: [PATCH 0/1] On DRM -> stable process

2024-11-08 Thread Fedor Pchelkin
On Tue, 05. Nov 07:57, Greg Kroah-Hartman wrote: > On Mon, Nov 04, 2024 at 05:55:28PM +0300, Fedor Pchelkin wrote: > > It is just strange that the (exact same) change made by the commits is > > duplicated by backporting tools. As it is not the first case where DRM > > pat

Re: [PATCH 0/1] On DRM -> stable process

2024-11-05 Thread Fedor Pchelkin
On Tue, 29. Oct 18:12, Fedor Pchelkin wrote: > On Tue, 29. Oct 10:20, Sasha Levin wrote: > > On Tue, Oct 29, 2024 at 04:31:40PM +0300, Fedor Pchelkin wrote: > > > BTW, a question to the stable-team: what Git magic (3-way-merge?) let the > > > duplicate patch be appl

Re: [PATCH 0/1] On DRM -> stable process

2024-10-29 Thread Fedor Pchelkin
On Tue, 29. Oct 10:20, Sasha Levin wrote: > On Tue, Oct 29, 2024 at 04:31:40PM +0300, Fedor Pchelkin wrote: > > BTW, a question to the stable-team: what Git magic (3-way-merge?) let the > > duplicate patch be applied successfully? The patch context in stable trees > > was dif

[PATCH 0/1] On DRM -> stable process

2024-10-29 Thread Fedor Pchelkin
Hi all, I'm writing as a bystander working with 6.1.y stable branch and possibly lacking some context with the established DRM -> stable patch flow, Cc'ing a large number of people. The commit being reverted from 6.1.y is the one that duplicates the changes already backported to that branch with

[PATCH 6.1 1/1] Revert "drm/amd/display: Skip Recompute DSC Params if no Stream on Link"

2024-10-29 Thread Fedor Pchelkin
ne of which has been cherry-picked. Reported-by: Alexey Khoroshilov Signed-off-by: Fedor Pchelkin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/a

Re: [lvc-project] [PATCH v2] drm/amd/pm: check return value of amdgpu_irq_add_id()

2024-10-04 Thread Fedor Pchelkin
On Wed, 02. Oct 16:01, Igor Artemiev wrote: > amdgpu_irq_ad_id() may fail and the irq handlers will not be registered. > This patch adds error code check. > > Found by Linux Verification Center (linuxtesting.org) with static > analysis tool SVACE. > > Signed-off-by: Igor Artemiev > --- > v2: Rem