Huang Rui
f333c9c6f5
drm/amdgpu/discovery: enable mes support for GC v11.0.1
...
GC v11.0.1 is using MES v11, so add IP block.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Xiaojian Du <Xiaojian.Du@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:15 -04:00
Huang Rui
10eab4e7d7
drm/amdgpu/discovery: enable gfx v11 for GC 11.0.1
...
Enable gfx v11 for GC 11.0.1.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Aaron Liu <aaron.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:15 -04:00
Alex Deucher
921173e24d
drm/amdgpu/discovery: set flag for GC 11.0.1
...
Set the APU flag appropriately for GC 11.0.1.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Huang Rui
2375271493
drm/amdgpu: set GC 11.0.1 family
...
Add GC 11.0.1 family support.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Aaron Liu <aaron.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Huang Rui
500448dce2
drm/amdgpu/discovery: enable sdma v6 for SDMA 6.0.1
...
Enable sdma (system dma) v6 for SDMA 6.0.1.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Aaron Liu <aaron.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Xiaojian Du
bed95cfdc5
drm/amdgpu/discovery: add PSP v13.0.4 into the IP discovery list
...
This patch will add PSP v13.0.4 into the IP discovery list.
Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Huang Rui
48858a101e
drm/amdgpu/discovery: enable ih v6 for OSS 6.0.1
...
Enable ih (interrupt handler) v6 for OSS 6.0.1.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Aaron Liu <aaron.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Huang Rui
a8f24139cc
drm/amdgpu/discovery: enable gmc v11 for GC 11.0.1
...
Enable gmc (graphic memory controller) v11 for GC 11.0.1.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Aaron Liu <aaron.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Huang Rui
6e4eb7ce1f
drm/amdgpu/discovery: enable soc21 common for GC 11.0.1
...
Enable soc21 common for GC 11.0.1.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Aaron Liu <aaron.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Xiaojian Du
6e9e59e26f
drm/amdgpu/discovery: add HDP v5.2.1 into the IP discovery list
...
This patch is to add HDP v5.2.1 in the IP discovery list.
Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:14 -04:00
Xiaojian Du
0c1e5527e0
drm/admgpu/discovery: add NBIO v7.7 into the IP discovery list
...
This patch is to add NBIO v7.7 into the IP discovery list.
Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-06 10:36:13 -04:00
Flora Cui
30ca5b2b6b
drm/amdgpu/discovery: set family for GC 11.0.2
...
Set AMDGPU_FAMILY_GC_11_0_0.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:52:57 -04:00
Flora Cui
af6958492a
drm/amdgpu/discovery: add gfx11 support for GC 11.0.2
...
Enable gfx11 support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:52:54 -04:00
Flora Cui
215a65f5d1
drm/amdgpu/discovery: add mes11 support for GC 11.0.2
...
Enable Micro Engine Scheduler support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:52:39 -04:00
Flora Cui
63b170806b
drm/amdgpu/discovery: add sdma6 support for SDMA 6.0.2
...
Enable sdma6 support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:52:35 -04:00
James Zhu
3a65fbc0a3
drm/amdgpu/discovery: enable vcn/jpeg v4_0_4
...
Enable vcn/jpeg 4_0_4.
Signed-off-by: James Zhu <James.Zhu@amd.com >
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:52:27 -04:00
Chengming Gui
5681e8009d
drm/amdgpu/discovery: add psp13 support for PSP 13.0.7
...
Enable psp 13 support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Chengming Gui <Jack.Gui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:52:07 -04:00
Flora Cui
eee5ed4241
drm/amdgpu/discovery: add gmc11 support for GC 11.0.2
...
Enable gmc11 support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:58 -04:00
Chengming Gui
86140844dc
drm/amdgpu/discovery: add SMUIO_13_0_8 func support
...
Add SMUIO funcs for SMUIO_13_0_8.
Signed-off-by: Chengming Gui <Jack.Gui@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:43 -04:00
Flora Cui
8742f5f1c4
drm/amdgpu/discovery: add hdp6 support for HDP 6.0.1
...
Enable Host Data Path support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:40 -04:00
Flora Cui
4dad9d6338
drm/amdgpu/discovery: add nbio 4.3 support for NBIO 4.3.1
...
Enable nbio 4.3 support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:38 -04:00
Flora Cui
1db7b3aa99
drm/amdgpu/discovery: add smu13 support for MP1 13.0.7
...
Enable System Management Unit support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:36 -04:00
Flora Cui
1f9261863a
drm/amdgpu/discovery: add ih6 support for IH 6.0.2
...
Enable Interrupt Handler v6 support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:33 -04:00
Flora Cui
0effe4a086
drm/amdgpu/discovery: add soc21 support for GC 11.0.2
...
Enable soc21 common soc support.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Flora Cui <flora.cui@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-05 16:51:28 -04:00
James Zhu
d6ffefccf7
drm/amdgpu/discovery: add VCN 4.0 Support
...
Enable VCN 4.0 on asics where it is present.
Signed-off-by: James Zhu <James.Zhu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:43:56 -04:00
Stanley Yang
8143b87c9d
drm/amdgpu/discovery: add SDMA v6_0 ip block
...
Add SDMA v6 ip block for asics which support it.
Signed-off-by: Stanley Yang <Stanley.Yang@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:43:55 -04:00
Alex Deucher
e97b07208d
drm/amdgpu/discovery: add MES11 support
...
Enable MES 11 on asics which support it.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:43:55 -04:00
Likun Gao
f6abd4d9f5
drm/amdgpu/discovery: add GFX 11.0 Support
...
Enable GFX 11.0 on asics where it is present.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:43:55 -04:00
Alex Deucher
a8bc892398
drm/amdgpu/discovery: handle AMDGPU_FW_LOAD_RLC_BACKDOOR_AUTO in SMU
...
Handle SMU load ordering when firmware load type is
AMDGPU_FW_LOAD_RLC_BACKDOOR_AUTO. This works similarly
to AMDGPU_FW_LOAD_DIRECT where the SMU load order is
different from the standard ordering when front door
loading is enabled.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:43:54 -04:00
Likun Gao
7d33614285
drm/amdgpu/discovery: Set GC family for GC 11.0 IP
...
Set GC family for GC 11.0 IPs.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 10:02:14 -04:00
Likun Gao
40c487409a
drm/amdgpu/discovery: Enable SMU for SMU 13.0.0
...
Enable SMU on SMU IP version 13.0.0
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:59:01 -04:00
Likun Gao
0984d38441
drm/amdgpu/discovery: add GMC 11.0 Support
...
Enable GMC 11.0 on asics where it is present.
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:57:29 -04:00
Likun Gao
55a800da49
drm/amdgpu/discovery: Enable PSP for PSP 13.0.0
...
Enable PSP on PSP IP version 13.0.0
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:57:00 -04:00
Hawking Zhang
996ea8591b
drm/amdgpu: init smuio v13_0_6 callbacks
...
initialize smuio callback for soc21
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 >
2022-05-04 09:54:46 -04:00
Likun Gao
1761e5efab
drm/amdgpu/discovery: add HDP v6
...
Enable HDP v6 on asics where it is present.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:54:01 -04:00
Likun Gao
2929a6bfa1
drm/amdgpu/discovery: add IH v6
...
Enable IH v6 on asics where it is present.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:53:15 -04:00
Likun Gao
2c0e7ddd1f
drm/amdgpu/discovery: add NBIO 4.3 Support
...
Enable NBIO 4.3 on asics where it is present.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:52:53 -04:00
Likun Gao
759693aced
drm/amdgpu/discovery: add soc21 common Support
...
Enable soc21 common support on asics where it is present.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:52:35 -04:00
Alex Deucher
e24d0e91b3
drm/amdgpu/discovery: move all table parsing into amdgpu_discovery.c
...
This data has no dependencies, so encapsulate it all within
amdgpu_discovery.c.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:43 -04:00
Alex Deucher
622469c87f
drm/amdgpu/discovery: add a function to parse the vcn info table
...
To get the codec disable fuse mask.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:39 -04:00
Alex Deucher
f716113aac
drm/amdgpu/discovery: add additional validation
...
Check the table signatures and checksums and verify that
the tables exist before accessing them.
v2: disable MALL table for now
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:33 -04:00
Alex Deucher
24681cb50b
drm/amdgpu/discovery: add a function to get the mall_size
...
Add a function to fetch the mall size from the IP discovery
table. Properly handle harvest configurations where more
or less cache may be available.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:30 -04:00
Alex Deucher
478d338bb0
drm/amdgpu/discovery: handle UMC harvesting in IP discovery
...
Check the harvesting table to determing if any UMC blocks have
been harvested.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:27 -04:00
Alex Deucher
a2efebf1a4
drm/amdgpu/discovery: store the number of UMC IPs on the asic
...
For chips with IP discovery get this from the table,
hardcode it for older asics.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:22 -04:00
Alex Deucher
8eece29c4e
drm/amdgpu/discovery: fix byteswapping in gc info parsing
...
The table is in little endian format.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:47:09 -04:00
Alex Deucher
5cb1cfd5f1
drm/amdgpu/discovery: populate additional GC info
...
From the GC info table to the gfx config structure in the
driver. The driver will use this data to configure the
card correctly.
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:46:38 -04:00
Lijo Lazar
73bce7a423
drm/amdgpu: Use flexible array member
...
Use flexible array member in ip discovery struct as recommended[1].
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays
v2: squash in struct_size fixes
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-11 13:50:35 -04:00
Guchun Chen
f3fa490960
drm/amdgpu: drop redundant check of harvest info
...
Harvest bit setting in IP data structure promises this,
so no need to set it explicitly.
Signed-off-by: Guchun Chen <guchun.chen@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-03-25 12:40:26 -04:00
Alex Deucher
e776a755ab
drm/amdgpu: fix typo in amdgpu_discovery.c
...
disocvery -> discovery
Reviewed-by: Guchun Chen <guchun.chen@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-02-23 14:26:36 -05:00
Guchun Chen
e1dd4bbf86
drm/amdgpu: read harvest bit per IP data on legacy GPUs
...
Based on firmware team's input, harvest table in VBIOS does
not apply well to legacy products like Navi1x, so seperate
harvest mask configuration retrieve from different places.
On legacy GPUs, scan harvest bit per IP data stuctures,
while for newer ones, still read IP harvest info from harvest
table.
v2: squash in fix to limit it to specific skus (Guchun)
Signed-off-by: Guchun Chen <guchun.chen@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-02-22 14:52:39 -05:00