Likun Gao
6d5064c379
drm/amdgpu: support for gc_info table v1.3
...
Add gc_info table v1.3 for IP discovery.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
(cherry picked from commit 875ff9a7ee )
2024-08-28 10:05:54 -04:00
Alex Deucher
9cead81eff
drm/amdgpu: fix eGPU hotplug regression
...
The driver needs to wait for the on board firmware
to finish its initialization before probing the card.
Commit 959056982a ("drm/amdgpu: Fix discovery initialization failure during pci rescan")
switched from using msleep() to using usleep_range() which
seems to have caused init failures on some navi1x boards. Switch
back to msleep().
Fixes: 959056982a ("drm/amdgpu: Fix discovery initialization failure during pci rescan")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3559
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3500
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: Ma Jun <Jun.Ma2@amd.com >
(cherry picked from commit c69b07f7bb )
Cc: stable@vger.kernel.org # 6.10.x
2024-08-20 23:07:11 -04:00
David Belanger
73048bda46
drm/amdgpu: Fix atomics on GFX12
...
If PCIe supports atomics, configure register to prevent DF from
breaking atomics in separate load/store operations.
Signed-off-by: David Belanger <david.belanger@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
(cherry picked from commit 666f14cab2 )
2024-07-24 17:30:23 -04:00
Alex Deucher
8030f6533e
drm/amdgpu: remove exp hw support check for gfx12
...
Enable it by default.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-10 13:45:57 -04:00
Tim Huang
38a16bfe6f
drm/amdgpu: add SMU IP v14.0.4 discovery support
...
This patch is to add SMU 14.0.4 support
Signed-off-by: Tim Huang <Tim.Huang@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-02 18:06:57 -04:00
Tim Huang
9cd2ad14d8
drm/amdgpu: add PSP IP v14.0.4 discovery support
...
This patch is to add PSP 14.0.4 support.
Signed-off-by: Tim Huang <Tim.Huang@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-02 18:06:36 -04:00
Tim Huang
ca15cd559f
drm/amdgpu: add VPE IP v6.1.3 discovery support
...
This patch is to add VPE 6.1.3 support.
Signed-off-by: Tim Huang <Tim.Huang@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-02 18:06:19 -04:00
Tim Huang
5aea871694
drm/amdgpu: add NBIO IP v7.11.3 discovery support
...
This patch is to add NBIO 7.11.3 support.
Signed-off-by: Tim Huang <Tim.Huang@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-02 18:06:00 -04:00
Tim Huang
dfeccf4d54
drm/amdgpu: add SDMA IP v6.1.2 discovery support
...
This patch is to add SDMA 6.1.2 support.
Signed-off-by: Tim Huang <Tim.Huang@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-02 18:05:41 -04:00
Tim Huang
23c1ea0241
drm/amdgpu: add GC IP v11.5.2 to GC 11.5.0 family
...
This patch is to add GC 11.5.2 to GC 11.5.0 family.
Signed-off-by: Tim Huang <Tim.Huang@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Veerabadhran Gopalakrishnan <Veerabadhran.Gopalakrishnan@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-02 18:05:23 -04:00
Pratap Nirujogi
05bafe95e5
drm/amd/amdgpu: Add ISP4.1.0 and ISP4.1.1 modules
...
Add independent IP centric modules for ISP4.1.0 and ISP4.1.1 hw blocks.
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-27 17:34:40 -04:00
Alex Deucher
8930b90be6
drm/amdgpu: fix Kconfig for ISP v2
...
Add new config option and set proper dependencies for ISP.
v2: add missed guards, drop separate Kconfig
Reviewed-by: Pratap Nirujogi <pratap.nirujogi@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: Pratap Nirujogi <pratap.nirujogi@amd.com >
2024-06-27 17:34:40 -04:00
Pratap Nirujogi
d232584ae3
drm/amd/amdgpu: Enable ISP in amdgpu_discovery
...
Enable ISP for ISP V4.1.0 and V4.1.1 in amdgpu_discovery.
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-27 17:34:39 -04:00
Pratap Nirujogi
772e4d56da
drm/amd/amdgpu: Add ISP support to amdgpu_discovery
...
ISP hw block is supported in some of the AMD GPU versions, add support
to discover ISP IP in amdgpu_discovery.
v2: squash in documentation update (Alex)
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Pratap Nirujogi <pratap.nirujogi@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-27 17:34:39 -04:00
Kenneth Feng
bf826ba9b4
Revert "drm/amd/amdgpu: add module parameter for jpeg"
...
This reverts commit d3620eeae8 .
Revert this due to a final solution:
commit ed3165d660 ("drm/amdgpu/jpeg5: reprogram doorbell setting after power up for each playback")
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Sonny Jiang <sonjiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-27 17:10:40 -04:00
Victor Lu
b32563859d
drm/amdgpu: Do not wait for MP0_C2PMSG_33 IFWI init in SRIOV
...
SRIOV does not need to wait for IFWI init, and MP0_C2PMSG_33 is blocked
for VF access.
Signed-off-by: Victor Lu <victorchengchi.lu@amd.com >
Reviewed-by: Vignesh Chander <Vignesh.Chander@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-19 12:47:52 -04:00
Jesse Zhang
c09d2eff81
drm/amdgu: fix Unintentional integer overflow for mall size
...
Potentially overflowing expression mall_size_per_umc * adev->gmc.num_umc with type unsigned int (32 bits, unsigned)
is evaluated using 32-bit arithmetic,and then used in a context that expects an expression of type u64 (64 bits, unsigned).
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-05 10:58:36 -04:00
Alex Deucher
f2a1fbdd1f
drm/amdgpu: drop MES 10.1 support v3
...
It was an enablement vehicle for MES 11 and was never
productized. Remove it.
v2: drop additional checks in the GFX10 code.
v3: drop mes_api_def.h
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-29 14:09:01 -04:00
Kenneth Feng
d3620eeae8
drm/amd/amdgpu: add module parameter for jpeg
...
add module parameter for jpeg. this is a temporary workaround for jpeg unit test fail
on vcn 5.0 now. will be removed later.
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-17 17:40:37 -04:00
Likun Gao
7be73af53b
drm/amdgpu: switch default mes to uni mes
...
Switch the default mes to uni mes for gfx v12.
V2: remove uni_mes set for gfx v11.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-17 17:40:36 -04:00
Lijo Lazar
b194d21b9b
drm/amdgpu: Use NPS ranges from discovery table
...
Add GMC API to fetch NPS range information from discovery table. Use NPS
range information in GMC 9.4.3 SOCs when available, otherwise fallback
to software method.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com >
Reviewed-by: Le Ma <le.ma@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-17 17:40:36 -04:00
Likun Gao
0a75dc9831
drm/amdgpu/discovery: add mes v12_0 ip block
...
Add mes v12_0 ip block.
v2: squash in update (Alex)
v3: rebase on unified mes changes (Alex)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
Likun Gao
5e676d7180
drm/amdgpu/discovery: add gfx v12_0 ip block
...
Add gfx v12_0 ip block.
v2: Squash in update (Alex)
v3: add exp flag (Alex)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
Jack Xiao
3dc434ad26
drm/amdgpu: add module parameter 'amdgpu_uni_mes'
...
Add module parameter 'amdgpu_uni_mes' to enable/disable unified
mes fw support.
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
Likun Gao
5638b1cfa7
drm/amdgpu/discovery: Set GC family for GC 12.0 IP
...
Set GC family for GC 12.0 IPs.
v2: squash in updates (Alex)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:09 -04:00
Hawking Zhang
5f571c61b9
drm/amdgpu: Add gfx v9_4_4 ip block
...
Add gfx v9_4_4 ip block support
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Le Ma <le.ma@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 15:49:16 -04:00
Hawking Zhang
a6bcffa596
drm/amdgpu: Add smu v13_0_14 ip block
...
Add smu v13_0_14 ip block support
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Le Ma <Le.Ma@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 15:49:11 -04:00
Hawking Zhang
1dbd59f3f4
drm/amdgpu: Add psp v13_0_14 ip block
...
Add psp v13_0_14 ip block support.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Le Ma <le.ma@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 15:49:05 -04:00
Hawking Zhang
3d1bb1a2e0
drm/amdgpu: Add sdma v4_4_5 ip block
...
Add sdma v4_4_5 ip block support
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Le Ma <le.ma@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 15:48:57 -04:00
Aurabindo Pillai
c45211adfa
drm/amd: Override DCN410 IP version
...
Override DCN IP version to 4.0.1 from 4.1.0 temporarily until change is
made in DC codebase to use 4.1.0
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 15:48:46 -04:00
Aurabindo Pillai
a5b843269a
drm/amd: Enable DCN410 init
...
Enable initializing Display Manager for DCN410 IP
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 15:40:57 -04:00
Likun Gao
f45ed399d7
drm/amdgpu/discovery: add sdma v7_0 ip block
...
Add sdma v7_0 ip block.
v2: squash in updates (Alex)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-30 10:03:52 -04:00
Likun Gao
1b838189ed
drm/amdgpu/discovery: Add gmc v12_0 ip block
...
Add gmc v12_0 ip block.
v2: Squash in updates (Alex)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-30 10:01:39 -04:00
Likun Gao
d22c075676
drm/amdgpu/discovery: Add common soc24 ip block
...
Add common soc24 ip block.
v2: squash in updates (Alex)
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-30 09:51:06 -04:00
Kenneth Feng
0c1195ca0d
drm/amd/swsmu: support smu block discovery for smu v14
...
Support for smu ip block add for SMU v14.
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-16 22:39:16 -04:00
Ma Jun
959056982a
drm/amdgpu: Fix discovery initialization failure during pci rescan
...
Waiting for system ready to fix the discovery initialization
failure issue. This failure usually occurs when dGPU is removed
and then rescanned via command line.
It's caused by following two errors:
[1] vram size is 0
[2] wrong binary signature
Signed-off-by: Ma Jun <Jun.Ma2@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-16 22:39:15 -04:00
Yifan Zhang
f5a3507c4a
drm/amdgpu: add smu 14.0.1 discovery support
...
This patch to add smu 14.0.1 support
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-09 21:51:03 -04:00
Lang Yu
b9a8aee136
drm/amdgpu: enable UMSCH 4.0.6
...
Share same codes with 4.0.5 and enable collaborate mode for VPE.
Signed-off-by: Lang Yu <Lang.Yu@amd.com >
Reviewed-by: Veerabadhran Gopalakrishnan <Veerabadhran.Gopalakrishnan@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-27 01:44:17 -04:00
Hawking Zhang
a61e2ce9d4
drm/amdgpu: Enable smuio v14_0_2 callbacks
...
Enable smuio v14_0_2_callbacks
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-20 13:38:16 -04:00
Hawking Zhang
765bea0d73
drm/amdgpu: Apply retry to IP discovery v2 and v4
...
To ensure GPU driver touch the local framebuffer until
it is initialized by integrated firmware.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-20 13:38:13 -04:00
Alex Deucher
155d46835c
drm/amdgpu: add VPE 6.1.1 discovery support
...
Enable VPE 6.1.1.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-07 15:33:16 -05:00
Lang Yu
709ef39f95
drm/amdgpu/vpe: add multi instance VPE support
...
Add support for multi instance VPE processing.
Signed-off-by: Lang Yu <Lang.Yu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-07 15:32:48 -05:00
Likun Gao
79698b145f
drm/amdgpu/discovery: add nbif v6_3_1 ip block
...
Add nbif v6_3_1 ip block.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-07 15:32:45 -05:00
Yifan Zhang
2bdebcb1e4
drm/amdgpu: add dcn3.5.1 support
...
This patch to add dcn3.5.1 support.
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-03-06 15:24:50 -05:00
Yifan Zhang
a24029cc40
drm/amdgpu: add vcn 4.0.6 discovery support
...
This patch is to add vcn 4.0.6 support
Reviewed-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-22 12:05:23 -05:00
Yifan Zhang
d6a76c0a5a
drm/amdgpu: enable MES discovery for GC 11.5.1
...
This patch to enable MES for GC 11.5.1
Reviewed-by: shaoyun.liu <Shaoyun.liu@amd.com >
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-22 10:27:18 -05:00
Yifan Zhang
e2442d3e32
drm/amdgpu: add GC 11.5.1 discovery support
...
This patch to add GC 11.5.1 support
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-22 10:27:13 -05:00
Yifan Zhang
93c5cc8312
drm/amdgpu: add GC 11.5.1 to GC 11.5.0 family
...
This patch to add GC 11.5.1 to GC 11.5.0 family.
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-22 10:26:52 -05:00
Yifan Zhang
f1c40b6ea4
drm/amdgpu: enable soc21 discovery support for GC 11.5.1
...
This patch to enable soc21 support for GC 11.5.1
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-22 10:26:49 -05:00
Yifan Zhang
278318d371
drm/amdgpu: enable gmc11 discovery support for GC 11.5.1
...
This patch to enable gmc11 for GC 11.5.1
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-22 10:26:40 -05:00