Replace the error code from 'ENOSYS' to 'EOPNOTSUPP' for unimplemented
radeon_gem_pread_ioctl & radeon_gem_pwrite_ioctl
Fixes the following:
WARNING: ENOSYS means 'invalid syscall nr' and nothing else.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srin
over strlcpy
+ strlcpy(info.type, name, sizeof(info.type));
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_combios.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a
Use the strscpy method instead of strlcpy method.
Fixes the below:
WARNING: Prefer strscpy over strlcpy
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_atombios.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
Fixes the below:
WARNING: sizeof *numa_info should be sizeof(*numa_info)
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
Fixes the below:
WARNING: kfree(NULL) is safe and this check is probably not required.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_connectors.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu
Replaced printk_ratelimit() with its DRM equivalent to avoid flooding of
dmesg logs & hence fixes the following:
WARNING: Prefer printk_ratelimited or pr__ratelimited to printk_ratelimit
+ if (printk_ratelimit())
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Sriniv
tian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon.h | 4
drivers/gpu/drm/radeon/radeon_drv.c | 2 --
drivers/gpu/drm/radeon/radeon_gem.c | 16
3 files changed, 22 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeo
)
+ if (!(data & (DAGB0_CNTL_MISC2__DISABLE_WRREQ_CG_MASK |
[...]
+ *flags |= AMD_CG_SUPPORT_MC_MGCG;
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c | 25 +
1 file changed, 13 insertions(+), 12 deletions(
König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 3 +++
4 files changed, 6 insertions(+), 4 de
Sort the include files that are included in amdgpu_drv.c alphabetically.
Suggested-by: Mario Limonciello
Cc: Mario Limonciello
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 25 -
1 file changed
König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
1. As a prerequisite, sorted the inludes in other patch
https://patchwork.freedesktop.org/patch/549850/ | drm/amdgpu: Sort the
includes in amdgpu/amdgpu_drv.c (Mario)
2. Include _psp.h, & moved vram & gtt
er
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
index 6f241c574665..dccebe6aaad4 10
ig
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 76 -
1 file changed, 38 insertions(+), 38 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index 456e385333b6.
Cc: Bert Karwatzki
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 35 +++
1 file changed, 12 insertions(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
Usage of container_of is wrong here.
struct acpi_device *adev = container_of(handle, struct acpi_device, handle)
References: https://gitlab.freedesktop.org/drm/amd/-/issues/2744
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: Bert Karwatzki
Signed-off-by: Srinivasan Shanmugam
Fixes the following style issues:
ERROR: open brace '{' following function definitions go on the next line
WARNING: printk() should include KERN_ facility level
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: Bert Karwatzki
Signed-off-by: Srinivasan Shanmugam
---
.../g
Cc: Bert Karwatzki
Cc: "Pan, Xinhui"
Cc: Luben Tuikov
Signed-off-by: Srinivasan Shanmugam
Reviewed-by: Guchun Chen
---
v2:
- Added missing commit id.
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/d
uikov
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Updated commit title as per log levels updated in this patch
- Updated with appropriate log levels (Luben)
.../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 29 +++
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/driver
ned-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
index db7ad3af7439..0834af771549 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1
drigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/amdgpu/amdgpu_connectors.c| 69 +++
1 file changed, 42 insertions(+), 27 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
b/drivers/gpu/drm/amd/amdgpu/am
Instead of declaring pointers use READ_ONCE(), when accessing those
values to make sure that the compiler doesn't voilate any cache
coherences
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Cc: Le Ma
Cc: Hawking Zhang
Signed-off-by: Srinivasan Shanmuga
Fixes the following:
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gf
identifier name
WARNING: Unnecessary space before function pointer name
ERROR: space prohibited after that '*' (ctx:BxW)
CHECK: Prefer kernel type 'u32' over 'uint32_t'
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Signed-off-b
ned-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4f818f13dc9d..a1c214f86e4d 100644
--- a/drivers/gpu/drm/
ned-off-by: Srinivasan Shanmugam
---
v2:
- Fixed indendation issues.
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4f818f13dc9d..bb65e12ed027 100644
---
ned-off-by: Srinivasan Shanmugam
---
v3:
Corrected title message
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4f818f13dc9d..bb65e12ed027 100644
---
#x27; to bare use of 'unsigned'
WARNING: quoted string split across lines
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Signed-off-by: Srinivasa
ned-off-by: Srinivasan Shanmugam
---
v4:
- Incorporated comments from (Lijo)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 4f818f13dc9d..65c36987f7d6 10
Cc: "Pan, Xinhui"
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/atom.c | 10 +++---
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c
index 93acb0e42bd6..ceb6d772ef94 100644
--- a/drivers/gpu/drm/
: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index df
: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index c0
Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
b
Fixes the following coccicheck:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:120:41-42: WARNING
opportunity for min()
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu_dm
Srinivasan Shanmugam (3):
drm/amd/display: Update ternary operator with min() in
'do_aquire_global_lock'
drm/amdgpu: Update ternary operator with max() in
'amdgpu_fence_wait_polling'
drm/amdgpu: Update ternary operator with min() in
'amdgpu_ras_eepro
Fixes the following coccicheck:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:9079:12-13: WARNING
opportunity for min()
Cc: Hamza Mahfooz
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Cc: Christian König
Signed-off-by: Srinivasan Shanmugam
---
drivers
Fixes the following coccicheck:
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:384:16-17: WARNING opportunity for
max()
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
Fixes the following coccicheck:
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c:1412:12-13: WARNING opportunity
for min()
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1
Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Cc: Christian König
Signed-off-by: Srinivasan Shanmugam
---
.../drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 4
1 file changed, 4 deletions(-)
diff --git
a/drivers/gpu/drm/amd/display/dc/dml/dcn32
v2:
Updated to max_t/min_t along with commit title message
Srinivasan Shanmugam (3):
drm/amd/display: Update ternary operator with min_t() in
'do_aquire_global_lock'
drm/amdgpu: Update ternary operator with max_t() in
'amdgpu_fence_wait_polling'
drm/amdgpu: Upd
Fixes the following coccicheck:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:9079:12-13: WARNING
opportunity for min()
Cc: Hamza Mahfooz
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Cc: Christian König
Signed-off-by: Srinivasan Shanmugam
---
drivers
Fixes the following coccicheck:
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:384:16-17: WARNING opportunity for
max()
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
Fixes the following coccicheck:
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c:1412:12-13: WARNING opportunity
for min()
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1
t;
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index f9a5a2c0573e..0673cda547bb 100644
--- a/drivers/gpu/drm/
ession
compared with zero: val < 0
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Cc: "Pan, Xinhui"
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amd
: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 025e0fdf486d..ed225e1a1299 100644
--- a/drivers/gpu/drm/amd/display/dc/core
ggested-by: Mukul Joshi
Cc: Harish Kasiviswanathan
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v3:
- Remove unused "bytes_written" (Mukul)
fixes the below:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function
‘
ggested-by: Mukul Joshi
Cc: Harish Kasiviswanathan
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Use kcalloc for zero-initialization (Mukul)
- Remove bytes_written call kfree just before the return statement.
(Mukul)
drivers/gpu/drm/
>mes);
^^
1241 return r;
1242 }
Fixes: d0c423b64765 ("drm/amdgpu/mes: use ring for kernel queue submission")
Cc: Christian König
Cc: Alex Deucher
Cc: Hawking Zhang
Suggested-by: Jack Xiao
Reported by: Dan Carpenter
Si
On 10/9/2024 1:35 AM, Alex Deucher wrote:
It should be enabled on both bare metal and VFs.
Fixes: e189be9b2e38 ("drm/amdgpu: Add enforce_isolation sysfs attribute")
Signed-off-by: Alex Deucher
Cc: Srinivasan Shanmugam
Cc: Amber Lin
---
drivers/gpu/drm/amd/amdgpu/amdgpu_
Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c | 2 +-
.../gpu/drm/amd/display/dc/resource/dcn301/dcn301_resource.c| 2 +-
.../gpu/drm/amd/display/dc/resource/d
. This function schedules `enforce_isolation_work` to be run
after a delay.
These functions are part of the Enforce Isolation Handler, which
enforces shader isolation on AMD GPUs to prevent data leakage between
different processes.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan
nclude the
new gfx_v11_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 40 +++---
1 f
. This function schedules `enforce_isolation_work` to be run
after a delay.
These functions are part of the Enforce Isolation Handler, which
enforces shader isolation on AMD GPUs to prevent data leakage between
different processes.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan
nclude the
new gfx_v10_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 40 +++---
1 f
ring function structures to include the
new gfx_v12_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v1
. This function schedules `enforce_isolation_work` to be run
after a delay.
These functions are part of the Enforce Isolation Handler, which
enforces shader isolation on AMD GPUs to prevent data leakage between
different processes.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan
an Li
Cc: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c | 2 +-
.../gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c| 2 +-
2 files changed, 2 insertions(
i
Cc: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c | 2 +-
.../gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c| 2 +-
.../gpu/drm/amd/display/dc/res
: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/resource/dcn401
: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/resource/dcn10
different processes, preventing data leakage and enhancing security. It
also aligns with the serialization mechanism between KGD and KFD,
ensuring that the GPU state is consistent across different workloads.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu
.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Alex Deucher
---
.../drm/amd/amdgpu/gfx_v9_0_cleaner_shader.h | 41 -
.../amd/amdgpu/gfx_v9_4_2_cleaner_shader.asm | 153 ++
2 files changed, 192 insertions(+), 2 deletions(-)
create
König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Alex Deucher
---
v2:
- Updated comments to "// Note: original source code from SQ team"
(Alex)
v3:
- Squashed patches 1 & 2 (Alex).
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 12 ++
.../
Cc: Mukul Joshi
Cc: Harish Kasiviswanathan
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd
Cc: Harish Kasiviswanathan
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Mukul Joshi
---
v4:
- Allocation is moved just before it's needed (Mukul)
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 9 ++---
1 file changed, 6 insertions(
On 10/29/2024 10:57 AM, Lijo Lazar wrote:
Make amdgpu_gfx_sysfs_init/fini functions as common entry points for all
gfx related sysfs nodes.
Signed-off-by: Lijo Lazar
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 37 ++---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 --
On 10/29/2024 12:07 PM, SRINIVASAN SHANMUGAM wrote:
On 10/29/2024 10:57 AM, Lijo Lazar wrote:
Make amdgpu_gfx_sysfs_init/fini functions as common entry points for all
gfx related sysfs nodes.
Signed-off-by: Lijo Lazar
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 37
version, before fw gets loaded.
Reviewed-by: Srinivasan Shanmugam
Excess function
parameter 'handle' description in 'vcn_v4_0_5_set_powergating_state'
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c:1629: warning: Function parameter or
struct member 'ip_block' not described in 'vcn_v4_0_3_set_powergating_state'
drivers/gpu/drm/amd
u_smu.c:359: warning: Function
parameter or struct member 'inst' not described in 'smu_dpm_set_power_gate'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions
.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 15 +++
.../drm/amd/amdgpu/gfx_v10_0_cleaner_shader.h | 56
.../amd/amdgpu/gfx_v10_3_0_cleaner_shader.asm | 124 ++
3 files changed, 195
.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c| 18 +++
.../amd/amdgpu/gfx_v11_0_3_cleaner_shader.asm | 118 ++
.../drm/amd/amdgpu/gfx_v11_0_cleaner_shader.h | 56 +
3 files changed, 192
.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Alex Deucher
---
v2:
- Updated comments to "// Note: original source code from SQ team" (Alex)
- The file now uses GFX11 (Alex)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c| 18 +++
.../
The series is:
Acked-by: Srinivasan Shanmugam
On 10/28/2024 8:22 PM, Alex Deucher wrote:
Add an interface to query whether KFD has any active queues.
Signed-off-by: Alex Deucher
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 9
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 7
Ping?
On 10/25/2024 8:13 AM, Srinivasan Shanmugam wrote:
The `kfd_get_cu_occupancy` function previously declared a large
`cu_occupancy` array as a local variable, which could lead to stack
overflows due to excessive stack usage. This commit replaces the static
array allocation with dynamic
Fixes the below with gcc W=1:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2182: warning: Function parameter or
struct member 'inst' not described in 'amdgpu_device_ip_set_powergating_state'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
driver
Fixes the below with gcc W=1:
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c:168: warning: Function parameter or
struct member 'gpu_addr' not described in 'amdgpu_seq64_alloc'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/a
r
struct member 'inst' not described in 'vcn_v5_0_0_set_unified_ring_funcs'
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c:1331: warning: Function parameter or
struct member 'inst' not described in 'vcn_v5_0_0_set_irq_funcs'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Sri
in 'vcn_v4_0_5_set_unified_ring_funcs'
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c:1594: warning: Function parameter or
struct member 'inst' not described in 'vcn_v4_0_5_set_irq_funcs'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers
le_clock_gating'
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:778: warning: Function parameter or
struct member 'inst' not described in 'vcn_v2_5_enable_clock_gating'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/vcn_v2_
bed in 'vcn_v4_0_3_set_unified_ring_funcs'
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c:1732: warning: Function parameter or
struct member 'inst' not described in 'vcn_v4_0_3_set_irq_funcs'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v4_0_set_unified_ring_funcs'
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c:2142: warning: Function parameter or
struct member 'inst' not described in 'vcn_v4_0_set_irq_funcs'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgp
3087]
[ 65.923927] ---[ end trace ]---
Cc: Tom Chung
Cc: Rodrigo Siqueira
Cc: Roman Li
Cc: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c | 3 ++-
1 file changed, 2 inse
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c
b/drivers/gpu/drm/amd/display/dc/core/dc.c
any
allocated resources for the cleaner shader are freed correctly, avoiding
potential memory leaks and ensuring that the GPU state is clean for the
next initialization sequence.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
e GPU is in a known
state before the driver attempts to initialize it. Adds calls to
gfx_v9_0_cp_gfx_enable and gfx_v9_0_cp_compute_enable with enable set to
false to halt the CP before the KIQ (Kernel Interface Queue) is resumed.
Reviewed-by: Srinivasan Shanmugam
oad, to prevent stale state from
causing issues.
Reviewed-by: Srinivasan Shanmugam
#x27;get_wave_count'
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:954: warning: Excess function
parameter 'vmid' description in 'get_wave_count'
Cc: Ramesh Errabolu
Cc: Harish Kasiviswanathan
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by
c1e5480
[ 65.923087] R13: 564c9c1db260 R14: R15: 564c9c1e54b0
[ 65.923087]
[ 65.923927] ---[ end trace ]---
Cc: Tom Chung
Cc: Rodrigo Siqueira
Cc: Roman Li
Cc: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Sriniva
3087]
[ 65.923927] ---[ end trace ]---
Cc: Tom Chung
Cc: Rodrigo Siqueira
Cc: Roman Li
Cc: Alex Hung
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Hamza Mahfooz
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Changed to ARRAY_SIZE() to be generic (Roman)
drivers/gpu/drm/amd/disp
nclude the
new gfx_v10_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
Removed xcc mask, as it is calculated in amdgpu_discovery.c for
ring function structures to include the
new gfx_v12_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
Removed xcc mask, as it is cal
nclude the
new gfx_v11_0_ring_emit_cleaner_shader function. This allows the
cleaner shader to be emitted as part of the ring's operations.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
Removed xcc mask, as it is calculated in amdgpu_discovery.c for
: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Alex Deucher
Reviewed-by: Alex Deucher
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index
This feature enables process isolation on the graphics engine by
serializing access to it and adding a cleaner shader which clears LDS
(Local Data Store) and GPRs (General Purpose Registers) between jobs.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by
different processes, preventing data leakage and enhancing security. It
also aligns with the serialization mechanism between KGD and KFD,
ensuring that the GPU state is consistent across different workloads.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu
.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Alex Deucher
---
v2:
- Reordered the patches 1 & 2 (Alex)
- Updated comments to "// Note: original source code from SQ team"
(Alex)
.../drm/amd/amdgpu/gfx_v9_0_cleaner_shader.h | 44
rface.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 45 +
1 file changed, 45 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
index e5
.
amdgpu_gfx_enforce_isolation_ring_end_use: Handles cleanup and state
updates when finishing the use of a GPU ring. It may also adjust the KFD
scheduler, using a mutex to manage shared data access.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu
.
amdgpu_gfx_enforce_isolation_ring_end_use: Handles cleanup and state
updates when finishing the use of a GPU ring. It may also adjust the KFD
scheduler, using a mutex to manage shared data access.
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Suggested-by: Alex Deucher
401 - 500 of 617 matches
Mail list logo