Alex Deucher
63bfd24088
drm/amdgpu/mmhub4.1: fix IP version check
...
Use the helper function rather than reading it directly.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:22:22 -05:00
Alex Deucher
2c8eeaaa0f
drm/amdgpu/nbio7.11: fix IP version check
...
Use the helper function rather than reading it directly.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:22:19 -05:00
Alex Deucher
0ec43fbece
drm/amdgpu/nbio7.0: fix IP version check
...
Use the helper function rather than reading it directly.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:22:16 -05:00
Alex Deucher
22b9555bc9
drm/amdgpu/nbio7.7: fix IP version check
...
Use the helper function rather than reading it directly.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:22:03 -05:00
Andrew Martin
357ef5b3b7
drm/amdgpu: Failed to check various return code
...
Clean up code to quiet the compiler on us failing to check the return
code.
Signed-off-by: Andrew Martin <Andrew.Martin@amd.com >
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:18:20 -05:00
Lijo Lazar
635c659fce
drm/amdgpu: Use dbg level for VBIOS check messages
...
Driver has different ways to fetch VBIOS. If one of the methods doesn't
find an authentic one, it will show misleading info messages eventhough
a subsequent method finds a valid VBIOS. Keep the message level at debug
and add device context.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:18:04 -05:00
Pierre-Eric Pelloux-Prayer
54a1b36d4b
drm/amdgpu: remove useless init from amdgpu_job_alloc
...
This init is useless because base.sched will be cleared to 0 in drm_sched_job_init
because of commit 2320c9e6a7 ("drm/sched: memset() 'job' in drm_sched_job_init()").
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:17:46 -05:00
Pierre-Eric Pelloux-Prayer
0014952b17
drm/amdgpu: drop the amdgpu_device argument from amdgpu_ib_free
...
It's unused.
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:17:32 -05:00
Pierre-Eric Pelloux-Prayer
2ae520cb12
drm/amdgpu: don't access invalid sched
...
Since 2320c9e6a7 ("drm/sched: memset() 'job' in drm_sched_job_init()")
accessing job->base.sched can produce unexpected results as the initialisation
of (*job)->base.sched done in amdgpu_job_alloc is overwritten by the
memset.
This commit fixes an issue when a CS would fail validation and would
be rejected after job->num_ibs is incremented. In this case,
amdgpu_ib_free(ring->adev, ...) will be called, which would crash the
machine because the ring value is bogus.
To fix this, pass a NULL pointer to amdgpu_ib_free(): we can do this
because the device is actually not used in this function.
The next commit will remove the ring argument completely.
Fixes: 2320c9e6a7 ("drm/sched: memset() 'job' in drm_sched_job_init()")
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:16:35 -05:00
Dheeraj Reddy Jonnalagadda
69b54d7c7c
drm/amdgpu: simplify return statement in amdgpu_ras_eeprom_init
...
Remove the logically dead code in the last return statement of
amdgpu_ras_eeprom_init. The condition res < 0 is redundant since
res is already checked for a negative value earlier. Replace
return res < 0 ? res : 0; with return 0 to improve clarity.
Fixes: 63d4c081a5 ("drm/amdgpu: Optimize EEPROM RAS table I/O")
Closes: https://scan7.scan.coverity.com/#/project-view/52337/11354?selectedIssue=1602413
Signed-off-by: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:16:05 -05:00
Alex Deucher
7e50642d41
drm/amd/display: add non-DC drm_panic support
...
Add support for the drm_panic module, which displays a pretty user
friendly message on the screen when a Linux kernel panic occurs.
Adapt Lu Yao's code to use common helpers derived from
Jocelyn's patch. This extends the non-DC code to enable
access to non-CPU accessible VRAM and adds support for
other DCE versions.
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: Lu Yao <yaolu@kylinos.cn >
Cc: Jocelyn Falempe <jfalempe@redhat.com >
Cc: Harry Wentland <harry.wentland@amd.com >
2024-12-18 12:16:01 -05:00
Mario Limonciello
1ad5bdc28b
drm/amd: Require CONFIG_HOTPLUG_PCI_PCIE for BOCO
...
If the kernel hasn't been compiled with PCIe hotplug support this
can lead to problems with dGPUs that use BOCO because they effectively
drop off the bus.
To prevent issues, disable BOCO support when compiled without PCIe hotplug.
Reported-by: Gabriel Marcano <gabemarcano@yahoo.com >
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1707#note_2696862
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Link: https://lore.kernel.org/r/20241211155601.3585256-1-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:15:40 -05:00
Bokun Zhang
3676f37a88
drm/amdgpu/vcn: reset fw_shared under SRIOV
...
- The previous patch only considered the case for baremetal
and is not applicable for SRIOV code path. We also need to
init fw_share for SRIOV VF
Fixes: 928cd772e1 ("drm/amdgpu/vcn: reset fw_shared when VCPU buffers corrupted on vcn v4.0.3")
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Bokun Zhang <bokun.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-18 12:14:16 -05:00
Alex Deucher
fe151ed7af
drm/amdgpu: add generic display panic helper code
...
Pull this out of Jocelyn's patch and make it generic.
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: Lu Yao <yaolu@kylinos.cn >
Cc: Jocelyn Falempe <jfalempe@redhat.com >
Cc: Harry Wentland <harry.wentland@amd.com >
2024-12-18 12:13:49 -05:00
Dave Airlie
d172ea67db
Merge tag 'amd-drm-fixes-6.13-2024-12-11' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
...
amd-drm-fixes-6.13-2024-12-11:
amdgpu:
- ISP hw init fix
- SR-IOV fixes
- Fix contiguous VRAM mapping for UVD on older GPUs
- Fix some regressions due to drm scheduler changes
- Workload profile fixes
- Cleaner shader fix
amdkfd:
- Fix DMA map direction for migration
- Fix a potential null pointer dereference
- Cacheline size fixes
- Runtime PM fix
Signed-off-by: Dave Airlie <airlied@redhat.com >
From: Alex Deucher <alexander.deucher@amd.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20241211215449.741848-1-alexander.deucher@amd.com
2024-12-13 09:43:20 +10:00
Dave Airlie
c7d6cb4c43
Merge tag 'drm-misc-next-2024-12-05' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next
...
[airlied: handle module ns conflict]
drm-misc-next for 6.14:
UAPI Changes:
Cross-subsystem Changes:
Core Changes:
- Remove driver date from drm_driver
Driver Changes:
- amdxdna: New driver!
- ivpu: Fix qemu crash when using passthrough
- nouveau: expose GSP-RM logging buffers via debugfs
- panfrost: Add MT8188 Mali-G57 MC3 support
- panthor: misc improvements,
- rockchip: Gamma LUT support
- tidss: Misc improvements
- virtio: convert to helpers, add prime support for scanout buffers
- v3d: Add DRM_IOCTL_V3D_PERFMON_SET_GLOBAL
- vc4: Add support for BCM2712
- vkms: Improvements all across the board
- panels:
- Introduce backlight quirks infrastructure
- New panels: KDB KD116N2130B12
Signed-off-by: Dave Airlie <airlied@redhat.com >
From: Maxime Ripard <mripard@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20241205-agile-straight-pegasus-aca7f4@houat
2024-12-13 08:48:09 +10:00
Alex Deucher
e70ba46795
drm/amdgpu/jpeg5.0.1: use num_jpeg_inst for SR-IOV
...
They should be the same, but use the proper variable.
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:37:26 -05:00
Alex Deucher
f53758bc34
drm/amdgpu/jpeg4.0.3: use num_jpeg_inst for SR-IOV
...
They should be the same, but use the proper variable.
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:37:23 -05:00
Alex Deucher
4b842c852f
drm/amdgpu: add sysfs reset mask for vcn 5.0.1
...
Add the calls to the vcn 5.0.1 code.
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:37:19 -05:00
Alex Deucher
40253e36e0
drm/amdgpu: add ip_dump support for vcn 5.0.1
...
Shared with vcn 5.0.0.
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:37:13 -05:00
Mario Limonciello
3f6f237b9d
drm/amd: Update strapping for NBIO 2.5.0
...
This helps to avoid a spurious PME event on hotplug to Azalia.
Cc: Vijendar Mukunda <Vijendar.Mukunda@amd.com >
Reported-and-tested-by: ionut_n2001@yahoo.com
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=215884
Tested-by: Gabriel Marcano <gabemarcano@yahoo.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Link: https://lore.kernel.org/r/20241211024414.7840-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:36:56 -05:00
Jesse.zhang@amd.com
bcc263dea6
drm/amdgpu/gfx11: clean up kcq reset code
...
Replace kcq queue reset with existing function amdgpu_mes_reset_legacy_queue.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:36:50 -05:00
Jesse.zhang@amd.com
0c0dec8207
drm/amdgpu/gfx12: clean up kcq reset code
...
Replace kcq queue reset with existing function amdgpu_mes_reset_legacy_queue.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:35:46 -05:00
Jesse.zhang@amd.com
11974b7eac
drm/amdgpu/sdma7: Add queue reset sysfs for sdmav7
...
sdmv7 queue reset already supports by mmio, add its sys file.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:35:21 -05:00
Jesse.zhang@amd.com
a73a83241e
drm/amdgpu/mes12: Implement reset gfx/compute queue function by mmio
...
Reset gfx/compute queue through mmio based on me_id and queue_id.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:32:13 -05:00
Jesse.zhang@amd.com
0f8666138f
drm/amdgpu/mes12: Implement reset sdmav7 queue function by mmio
...
Reset sdma queue through mmio based on me_id and queue_id.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:32:06 -05:00
Lijo Lazar
fccb446f82
drm/amdgpu: Avoid VF for RAS recovery source check
...
VF device sets the RAS flag when mailbox data can't be read properly.
There is no conclusive way to tell if the real source is RAS error.
Therefore VF schedules a KFD based reset which doesn't set RAS source.
SKip checking RAS source for any VF scheduled recovery.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com >
Reported-by: Vojislav Tomasevic <vojislav.tomasevic@amd.com >
Reviewed-by: Yiqing Yao <yiqing.yao@amd.com >
Tested-by: Yiqing Yao <yiqing.yao@amd.com >
Fixes: e1ee2111ca ("drm/amdgpu: Prefer RAS recovery for scheduler hang")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:30:59 -05:00
Jesse.zhang@amd.com
f4d583cd3f
drm/amdgpu/sdma7: implement queue reset callback for sdma7
...
Implement sdma queue reset callback by mes_reset_queue_mmio.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:30:52 -05:00
Jesse.zhang@amd.com
8a4c6fc826
drm/amdgpu/sdma7: Implement resume function for each instance
...
Extracts the resume sequence for per sdma instance from sdma_v7_0_gfx_resume.
This function can be used in start or restart scenarios of specific instances.
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-11 17:30:39 -05:00
Candice Li
ecd1191e12
drm/amdgpu: Support nbif v6_3_1 fatal error handling
...
Add nbif v6_3_1 fatal error handling support.
Signed-off-by: Candice Li <candice.li@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:31:00 -05:00
Sonny Jiang
178ad3a9d1
drm/amdgpu: Enable VCN_5_0_1 IP block
...
Add VCN_5_0_1 IP block to kernel boot
Signed-off-by: Sonny Jiang <sonjiang@amd.com >
Acked-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:50 -05:00
Sonny Jiang
346492f30c
drm/amdgpu: Add VCN_5_0_1 support
...
Add vcn support for VCN_5_0_1
v2: rebase, squash in fixes (Alex)
Signed-off-by: Sonny Jiang <sonjiang@amd.com >
Acked-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:46 -05:00
Sathishkumar S
c406fca4b5
drm/amdgpu: enable JPEG5_0_1 ip block
...
enable JPEG5_0_1 ip block
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com >
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:42 -05:00
Sathishkumar S
b8f57b6994
drm/amdgpu: Add JPEG5_0_1 support
...
add support for JPEG5_0_1
v2: squash in updates, rebase on IP instance changes
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com >
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:24 -05:00
Sonny Jiang
4e4b1a1b80
drm/amdgpu: Add VCN_5_0_1 codec query
...
Support VCN_5_0_1 codec query
v2: squash in updates
Signed-off-by: Sonny Jiang <sonjiang@amd.com >
Acked-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:21 -05:00
Sonny Jiang
fdce10ff8f
drm/amdgpu: Add VCN_5_0_1 firmware
...
Add vcn_5_0_1 firmware support
Signed-off-by: Sonny Jiang <sonjiang@amd.com >
Acked-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:18 -05:00
Sathishkumar S
20a3029227
drm/amdgpu: update macro for maximum jpeg rings
...
Update the macro to accomdate more rings.
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com >
Acked-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: Sonny Jiang <sonjiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:13 -05:00
Alex Deucher
b1d0286c81
drm/amdgpu: update irq sec header for vcn 5.0.0
...
No functional change.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:29:01 -05:00
Alex Deucher
26893116c3
drm/amdgpu: update irq sec header for jpeg 5.0.0
...
No functional change.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:28:55 -05:00
Candice Li
33f1aa210a
drm/amdgpu: Add umc v8_14 ras functions
...
Add umc v8_14 ras functions.
Signed-off-by: Candice Li <candice.li@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:28:39 -05:00
Candice Li
2c2b84f193
drm/amdgpu: Add psp v14_0_3 ras support
...
Add psp v14_0_3 ras support.
Signed-off-by: Candice Li <candice.li@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:28:21 -05:00
Srinivasan Shanmugam
55f4139b65
drm/amd/amdgpu: Add Annotations to Process Isolation functions
...
This update adds explanations to key functions that manage how the
Kernel Fusion Driver (KFD) and Kernel Graphics Driver (KGD) share the
GPU.
amdgpu_gfx_enforce_isolation_wait_for_kfd: Controls the waiting period
for KFD to ensure it takes turns with KGD in using the GPU. It uses a
mutex to safely manage shared data, like timing and state, and tracks
when KFD starts and stops waiting.
amdgpu_gfx_enforce_isolation_ring_begin_use: Ensures KFD has enough time
to run before new tasks are submitted to the GPU ring. It uses a mutex
to synchronize access and may adjust the KFD scheduler.
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 <christian.koenig@amd.com >
Cc: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com >
Suggested-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:28:13 -05:00
Hawking Zhang
57bcfa89fe
drm/amdgpu: Init mmhub v1_8_1 ras func
...
reuse mmhub v1_8 ras functuion
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Asad Kamal <asad.kamal@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:28:09 -05:00
Shiwu Zhang
bd18b11f2d
drm/amdgpu: Enable xgmi for gfx v9_5_0
...
Enable xgmi for gfx v9_5_0
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:58 -05:00
Asad Kamal
f79cfbac5c
drm/amdgpu: Fetch refclock for SMU v13.0.12
...
Add support to fetch refclock value for SMU v13.0.12
Signed-off-by: Asad Kamal <asad.kamal@amd.com >
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:54 -05:00
Asad Kamal
100350c373
drm/amd/pm: Add mode2 support for SMU v13.0.12
...
Add mode2 reset support for smu version 13.0.12
Signed-off-by: Asad Kamal <asad.kamal@amd.com >
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:50 -05:00
Srinivasan Shanmugam
a69f4cc278
drm/amd/amdgpu: Add Descriptions to Process Isolation and Cleaner Shader Sysfs Functions
...
This update adds explanations to key functions related to process
isolation and cleaner shader execution sysfs interfaces.
- `amdgpu_gfx_set_run_cleaner_shader`: Describes how to manually run a
cleaner shader, which clears the Local Data Store (LDS) and General
Purpose Registers (GPRs) to ensure data isolation between GPU workloads.
- `amdgpu_gfx_get_enforce_isolation`: Describes how to query the current
settings of the 'enforce_isolation' feature for each GPU partition.
- `amdgpu_gfx_set_enforce_isolation`: Describes how to enable or disable
process isolation for GPU partitions through the sysfs interface.
Cc: Christian König <christian.koenig@amd.com >
Cc: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com >
Suggested-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:31 -05:00
Hawking Zhang
9a826c4af8
drm/amdgpu: Enable RAS for psp v13_0_12
...
Enable RAS Cap check and initialize RAS funcs
for psp v13_0_12
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Tao Zhou <tao.zhou1@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:28 -05:00
Hawking Zhang
98230feb55
drm/amdgpu: Load spdm_drv for psp v13_0_12
...
spdm_drv is a firmware that needs to be loaded
in driver initialization phase.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:23 -05:00
Hawking Zhang
3516d35f81
drm/amdgpu: Add psp v13_0_12 firmware specifiers
...
Add psp v13_0_12 firmware specifiers for sos and ta
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Shiwu Zhang <shiwu.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-12-10 10:27:19 -05:00