[PATCH] drm/amdgpu: fix use-after-unlock in eviction fence destroy

2025-05-15 Thread Arvind Yadav
vf_mgr->ev_fence under the lock and using that for dma_fence_put() after waiting. Cc: Sunil Khatri Cc: Alex Deucher Cc: Christian König Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gp

[PATCH] drm/amdgpu: Fix amdgpu_userq_wait_ioctl() warn missing error code 'r'

2025-05-07 Thread Arvind Yadav
Christian König Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH v2] drm/amdgpu: Fix NULL dereference in amdgpu_userq_restore_worker

2025-05-07 Thread Arvind Yadav
er Cc: Christian König Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c index afbe01

[PATCH] drm/amdgpu: Fix NULL dereference in amdgpu_userq_restore_worker

2025-05-07 Thread Arvind Yadav
000560] ? __pfx_kthread+0x10/0x10 [ +0.000543] ret_from_fork+0x3c/0x60 [ +0.000507] ? __pfx_kthread+0x10/0x10 [ +0.000515] ret_from_fork_asm+0x1a/0x30 [ +0.000515] Cc: Alex Deucher Cc: Christian König Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 2

[PATCH v4 1/2] dma-fence: Add helper to sort and deduplicate dma_fence arrays

2025-04-30 Thread Arvind Yadav
existing(by Christian). v4: - Export dma_fence_dedub_array and use it(by Christian). Cc: Alex Deucher Cc: Christian Koenig Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav --- drivers/dma-buf/dma-fence-unwrap.c | 51 ++ include/linux/dma

[PATCH v4 2/2] drm/amdgpu: only keep most recent fence for each context

2025-04-30 Thread Arvind Yadav
patch and amd userq patch(by Sunil). - No need to add a new function just re-use existing(by Christian). v4: Export dma_fence_dedub_array function and used it(by Christian). Cc: Alex Deucher Cc: Christian Koenig Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav

[PATCH v3 2/2] drm/amdgpu: only keep most recent fence for each context

2025-04-29 Thread Arvind Yadav
patch and amd userq patch(by Sunil). - No need to add a new function just re-use existing(by Christian). Cc: Alex Deucher Cc: Christian Koenig Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 8 1

[PATCH v3 1/2] dma-fence: Add unwrap mode enum and macro for in-place deduplication

2025-04-29 Thread Arvind Yadav
Signed-off-by: Arvind Yadav --- drivers/dma-buf/dma-fence-unwrap.c | 54 +- include/linux/dma-fence-unwrap.h | 44 ++-- 2 files changed, 81 insertions(+), 17 deletions(-) diff --git a/drivers/dma-buf/dma-fence-unwrap.c b/drivers/dma-buf/dma-fence

[PATCH v2] drm/amdgpu: only keep most recent fence for each context

2025-04-23 Thread Arvind Yadav
König Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav --- drivers/dma-buf/dma-fence-unwrap.c| 29 +++ .../gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 2 ++ include/linux/dma-fence-unwrap.h | 3 ++ 3 files changed, 34 insertions

[PATCH v2] drm/amdgpu: remove DRM_AMDGPU_NAVI3X_USERQ config for UQ

2025-04-23 Thread Arvind Yadav
DRM_AMDGPU_NAVI3X_USERQ config support is not required for usermode queue. v2: rebase. Cc: Alex Deucher Cc: Christian Koenig Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/Kconfig | 8 drivers/gpu/drm/amd

[PATCH] drm/amdgpu: remove DRM_AMDGPU_NAVI3X_USERQ config for UQ

2025-04-22 Thread Arvind Yadav
DRM_AMDGPU_NAVI3X_USERQ config support is not required for usermode queue. Cc: Alex Deucher Cc: Christian Koenig Cc: Sunil Khatri Cc: Arunpravin Paneer Selvam Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/Kconfig | 8 drivers/gpu/drm/amd/amdgpu/Makefile

[PATCH] drm/amdgpu: only keep most recent fence for each context

2025-04-15 Thread Arvind Yadav
-off-by: Arvind Yadav --- .../gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 37 +++ 1 file changed, 37 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c index a4953d668972..9a09d545ceb5 100644 --- a/drivers

[PATCH 1/2 v2] drm/amdgpu: Add fw minimum version check for usermode queue

2025-04-10 Thread Arvind Yadav
Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index 91d29f482c3c..62dcdba589cb 100644 --- a/drivers/gpu/drm

[PATCH 1/2 v3] drm/amdgpu: Add fw minimum version check for usermode queue

2025-04-10 Thread Arvind Yadav
Cc: Christian Koenig Cc: Shashank Sharma Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index

[PATCH 2/2 v2] drm/amdgpu: Add fw minimum version check for usermode queue

2025-04-10 Thread Arvind Yadav
Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 3d87e445270e..3165fdfeca6a 100644 --- a/drivers/gpu/drm/amd

[PATCH 2/2] drm/amdgpu: Add fw minimum version check for usermode queue

2025-04-10 Thread Arvind Yadav
This patch is load usermode queue based on FW support for gfx12. CP Ucode FW Vesion: [PFP = 2840, ME = 2780, MEC = 2600, MES = 123] Cc: Alex Deucher Cc: Christian Koenig Cc: Shashank Sharma Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 15

[PATCH 1/2] drm/amdgpu: Add fw minimum version check for usermode queue

2025-04-10 Thread Arvind Yadav
This patch is load usermode queue based on FW support for gfx11. CP Ucode FW version: [PFP = 2530, ME = 2390, MEC = 2600, MES = 120] Cc: Alex Deucher Cc: Christian Koenig Cc: Shashank Sharma Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 17

[PATCH 2/2] drm/amdgpu: Add fw minimum version check for usermode queue

2025-04-10 Thread Arvind Yadav
This patch is load usermode queue based on FW support for gfx12. CP Ucode FW Vesion: [PFP = 2840, ME = 2780, MEC = 2600, MES = 123] Cc: Alex Deucher Cc: Christian Koenig Cc: Shashank Sharma Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 15

[PATCH] drm/amdgpu: Fix display freezing issue when resizing apps

2025-03-18 Thread Arvind Yadav
amdgpu_userq_suspend. Consequently, the original fence will never be signaled. Cc: Alex Deucher Cc: Christian König Cc: Shashank Sharma Cc: Sunil Khatri Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH v4] drm/amdgpu: fix the memleak caused by fence not released

2025-03-03 Thread Arvind Yadav
lex Deucher Cc: Christian König Cc: Shashank Sharma Cc: Sunil Khatri Signed-off-by: Le Ma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 28 ++--- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

[PATCH v3] drm/amdgpu: fix the memleak caused by fence not released

2025-02-18 Thread Arvind Yadav
rma Cc: Sunil Khatri Signed-off-by: Le Ma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c in

[PATCH v2] drm/amdgpu: Fix Illegal opcode in command stream Error

2024-12-23 Thread Arvind Yadav
amdgpu_drm_release(Christian). Cc: Alex Deucher Cc: Christian Koenig Cc: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 16 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a

[PATCH] drm/amdgpu: Fix Illegal opcode in command stream Error

2024-12-19 Thread Arvind Yadav
Illegal opcode error being raised in the command stream. Now the usermode queue will not be mapped if the wptr buffer object is freed. Cc: Alex Deucher Cc: Christian Koenig Signed-off-by: Arvind Yadav Signed-off-by: Shashank Sharma --- drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 22

[PATCH] drm/amdgpu: Fix kernel config name for gfx-userqueue

2024-10-22 Thread Arvind Yadav
DRM_AMD_USERQ_GFX was an old config flag and the new config flag name is updated later which was missing. Cc: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v4 1/1] drm/amdkfd: get doorbell's absolute offset based on the db_size

2023-10-05 Thread Arvind Yadav
t. v4: Squash the two patches into one. Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h| 5 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c| 13 + .../gpu/drm/amd/a

[PATCH v4 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-10-05 Thread Arvind Yadav
sizes. So that doorbell offset will be aligned based on the doorbell size. v2: - Addressed the review comment from Felix. v3: - Adding doorbell_size as parameter to get db absolute offset. v4: Squash the two patches into one. Arvind Yadav (1): drm/amdkfd: get doorbell's absolute offse

[PATCH v3 2/2] drm/amdkfd: get doorbell's absolute offset based on the db size

2023-10-04 Thread Arvind Yadav
Alex Deucher Signed-off-by: Shashank Sharma Signed-off-by: Arvind Yadav --- .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 6 +- drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c | 13 +++-- .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 4 +++- 3 files change

[PATCH v3 1/2] drm/amdgpu: Adding db_size to get doorbell absolute offset

2023-10-04 Thread Arvind Yadav
ff-by: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h | 5 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c | 13 + 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h b/dr

[PATCH v3 0/2] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-10-04 Thread Arvind Yadav
sizes. So that doorbell offset will be aligned based on the doorbell size. v2: - Addressed the review comment from Felix. v3: - Adding doorbell_size as parameter to get db absolute offset. Arvind Yadav (2): drm/amdgpu: Adding db_size to get doorbell absolute offset drm/amdkfd: get doorb

[PATCH v2 1/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-09-28 Thread Arvind Yadav
This patch is to adjust the absolute doorbell offset against the doorbell id considering the doorbell size of 32/64 bit. v2: - Addressed the review comment from Felix. Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd

[PATCH v2 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-09-28 Thread Arvind Yadav
/64 bit. v2: - Addressed the review comment from Felix. Arvind Yadav (1): drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.34.1

[PATCH 1/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-09-27 Thread Arvind Yadav
This patch is to adjust the absolute doorbell offset against the doorbell id considering the doorbell size of 32/64 bit. Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 11

[PATCH 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

2023-09-27 Thread Arvind Yadav
32/64 bit. Arvind Yadav (1): drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.34.1

[PATCH v3 7/7] Revert "drm/amd/amdgpu: switch on/off vcn power profile mode"

2023-08-28 Thread Arvind Yadav
Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 2d94f1b63bd6..70777fcfa626 100644 --- a

[PATCH v3 6/7] drm/amdgpu: switch workload context to/from compute

2023-08-28 Thread Arvind Yadav
This patch switches the GPU workload mode to/from compute mode, while submitting compute workload. v3: - Addressed the review comment about changing the function name from *_set() to *_get(). Cc: Christian Koenig Signed-off-by: Alex Deucher Reviewed-by: Shashank Sharma Signed-off-by: Arvind

[PATCH v3 5/7] drm/amdgpu: Set/Reset GPU workload profile

2023-08-28 Thread Arvind Yadav
Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index c3d9d75143f4..c5032762d497 100644 --- a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 4/7] drm/amdgpu: Add suspend function to clear the GPU power profile.

2023-08-28 Thread Arvind Yadav
: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_workload.c | 7 +++ drivers/gpu/drm/amd/include/amdgpu_workload.h | 2 ++ 3 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3 3/7] drm/amdgpu: Add new function to put GPU power profile

2023-08-28 Thread Arvind Yadav
. - Added *_clear_all function to clear all the power profile. - scheduling delay work to clear the power profile when refcount becomes zero. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_workload.c | 118

[PATCH v3 2/7] drm/amdgpu: Add new function to set GPU power profile

2023-08-28 Thread Arvind Yadav
the review comment. - Changing the function name from *_set() to *_get(). - Now setting a power profile when refcount is zero. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_workload.c | 59

[PATCH v3 1/7] drm/amdgpu: Added init/fini functions for workload

2023-08-28 Thread Arvind Yadav
Cc: Christian Koenig Cc: Alex Deucher Reviewed-by: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 4 ++ drivers/gpu/drm/amd/

[PATCH v3 0/7] GPU workload hints for better performance

2023-08-28 Thread Arvind Yadav
. v3: - Addressed all review comment. - Changed the function name from *_set() to *_get(). - Now clearing all the profile in work handler. - Added *_clear_all function to clear all the power profile. Arvind Yadav (7): drm/amdgpu: Added init/fini functions for workload drm/amdgpu: Add new function

[PATCH v2 7/7] Revert "drm/amd/amdgpu: switch on/off vcn power profile mode"

2023-08-20 Thread Arvind Yadav
Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 2d94f1b63bd6..70777fcfa626 100644 --- a/drivers

[PATCH v2 6/7] drm/amdgpu: switch workload context to/from compute

2023-08-20 Thread Arvind Yadav
This patch switches the GPU workload mode to/from compute mode, while submitting compute workload. Cc: Christian Koenig Signed-off-by: Alex Deucher Signed-off-by: Shashank Sharma Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 8 +--- 1 file changed, 5

[PATCH v2 5/7] drm/amdgpu: Switch on/off GPU workload profile

2023-08-20 Thread Arvind Yadav
This patch is to switch the GPU workload profile based on the submitted job. The workload profile is reset to default when the job is done. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 5 + 1 file

[PATCH v2 4/7] drm/amdgpu: Add suspend function to clear the GPU power profile.

2023-08-20 Thread Arvind Yadav
This patch adds a suspend function that will clear the GPU power profile before going into suspend state. v2: - Add the new suspend function based on review comment. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu

[PATCH v2 3/7] drm/amdgpu: Add new function to put GPU power profile

2023-08-20 Thread Arvind Yadav
function will cancel this work and set the GPU power profile based on preferences. v2: - Splitting workload_profile_set and workload_profile_put into two separate patches. - Addressed review comment. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav

[PATCH v2 2/7] drm/amdgpu: Add new function to set GPU power profile

2023-08-20 Thread Arvind Yadav
Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_workload.c | 56 +++ drivers/gpu/drm/amd/include/amdgpu_workload.h | 3 + 2 files changed, 59 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_workload.c b

[PATCH v2 1/7] drm/amdgpu: Added init/fini functions for workload

2023-08-20 Thread Arvind Yadav
The'struct amdgpu_smu_workload' initialization/cleanup functions is added by this patch. v2: - Splitting big patch into separate patches. - Added new fini function. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgp

[PATCH v2 0/7] GPU workload hints for better performance

2023-08-20 Thread Arvind Yadav
. Arvind Yadav (7): drm/amdgpu: Added init/fini functions for workload drm/amdgpu: Add new function to set GPU power profile drm/amdgpu: Add new function to put GPU power profile drm/amdgpu: Add suspend function to clear the GPU power profile. drm/amdgpu: Switch on/off GPU workload profile

[PATCH 3/3] Revert "drm/amd/amdgpu: switch on/off vcn power profile mode"

2023-08-14 Thread Arvind Yadav
-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 2d94f1b63bd6..70777fcfa626 100644 --- a/drivers/gpu/drm/amd

[PATCH 2/3] drm/amdgpu: Switch on/off GPU workload profile

2023-08-14 Thread Arvind Yadav
This patch is to switch the GPU workload profile based on the submitted job. The workload profile is reset to default when the job is done. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 5 + 1 file

[PATCH 0/3] GPU workload hints for better performance

2023-08-14 Thread Arvind Yadav
submitted job. This can optimize the power performance when the particular workload is on. Arvind Yadav (3): drm/amdgpu: Add new api to switch on/off power profile mode drm/amdgpu: Switch on/off GPU workload profile Revert "drm/amd/amdgpu: switch on/off vcn power profile mode" drive

[PATCH 1/3] drm/amdgpu: Add new api to switch on/off power profile mode

2023-08-14 Thread Arvind Yadav
This patch adds a function which will allow to change the GPU power profile based on a submitted job. This can optimize the power performance when the workload is on. Cc: Shashank Sharma Cc: Christian Koenig Cc: Alex Deucher Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/Makefile

[PATCH RFC] dma-buf: To check DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT status on debug

2022-08-04 Thread Arvind Yadav
If core DMA-buf framework forgets to call dma_fence_enable_signaling() before calling the dma_fence_is_signaled(). To handle this scenario on debug kernel the DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT needs to be checked before checking the actual signaling status. Signed-off-by: Arvind Yadav

[PATCH] dma-buf: use struct_size helper instead of kzalloc

2022-07-27 Thread Arvind Yadav
-by: Arvind Yadav --- drivers/dma-buf/dma-fence-array.c | 6 ++ include/linux/dma-fence-array.h | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-fence-array.c b/drivers/dma-buf/dma-fence-array.c index 5c8a7084577b..3ebb6c5fa287 100644 --- a/drivers

[PATCH] dma-buf: use struct_size helper instead of kzalloc

2022-07-25 Thread Arvind Yadav
-by: Arvind Yadav --- drivers/dma-buf/dma-fence-array.c | 6 ++ include/linux/dma-fence-array.h | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-fence-array.c b/drivers/dma-buf/dma-fence-array.c index 5c8a7084577b..3ebb6c5fa287 100644 --- a/drivers

[PATCH 0/5] constify drm pci_device_id

2017-07-16 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Arvind Yadav (5): [PATCH 1/5] drm: radeon: constify pci_device_id. [PATCH 2/5] drm: vmwgfx: constify pci_device_id

[PATCH 1/5] drm: radeon: constify pci_device_id.

2017-07-16 Thread Arvind Yadav
/radeon/radeon_drv.o File size After adding 'const': textdata bss dec hex filename 28960 812 72 298447494 gpu/drm/radeon/radeon_drv.o Signed-off-by: Arvind Yadav --- drivers/gpu/drm/radeon/radeon_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] drm: amd: amdgpu: constify ttm_place structures.

2017-07-02 Thread Arvind Yadav
ttm_place are not supposed to change at runtime. All functions working with ttm_place provided by work with const ttm_place. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] drm: radeon: radeon_ttm: constify ttm_place structures.

2017-07-02 Thread Arvind Yadav
/radeon_ttm.o File size After adding 'const': textdata bss dec hex filename 9267 312 136971525f3 drivers/gpu/drm/radeon/radeon_ttm.o Signed-off-by: Arvind Yadav --- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] drm: radeon: constify drm_prop_enum_list structures.

2017-07-01 Thread Arvind Yadav
48e4 drivers/gpu/drm/radeon/radeon_display.o File size After adding 'const': textdata bss dec hex filename 18660 0 0 1866048e4 drivers/gpu/drm/radeon/radeon_display.o Signed-off-by: Arvind Yadav --- drivers/gpu/drm/radeon/radeon_disp