aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
Commit message (Collapse)AuthorAgeFilesLines
...
* drm/amdgpu: add LSDMA block for LSDMA v6.0.0Likun Gao2022-05-101-0/+8
| | | | | | | | Add LSDMA ip block for LSDMA v6.0.0. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add lsdma blockLikun Gao2022-05-101-0/+3
| | | | | | | | | Add Light SDMA (LSDMA) block and related function. LSDMA is a small instance of SDMA mainly for kernel driver use. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable mes support for GC v11.0.1Huang Rui2022-05-061-0/+1
| | | | | | | | | GC v11.0.1 is using MES v11, so add IP block. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Xiaojian Du <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable gfx v11 for GC 11.0.1Huang Rui2022-05-061-0/+1
| | | | | | | | Enable gfx v11 for GC 11.0.1. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: set flag for GC 11.0.1Alex Deucher2022-05-061-0/+1
| | | | | | Set the APU flag appropriately for GC 11.0.1. Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: set GC 11.0.1 familyHuang Rui2022-05-061-0/+3
| | | | | | | | Add GC 11.0.1 family support. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable sdma v6 for SDMA 6.0.1Huang Rui2022-05-061-0/+1
| | | | | | | | Enable sdma (system dma) v6 for SDMA 6.0.1. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add PSP v13.0.4 into the IP discovery listXiaojian Du2022-05-061-0/+1
| | | | | | | | | This patch will add PSP v13.0.4 into the IP discovery list. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable ih v6 for OSS 6.0.1Huang Rui2022-05-061-0/+1
| | | | | | | | Enable ih (interrupt handler) v6 for OSS 6.0.1. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable gmc v11 for GC 11.0.1Huang Rui2022-05-061-0/+1
| | | | | | | | Enable gmc (graphic memory controller) v11 for GC 11.0.1. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable soc21 common for GC 11.0.1Huang Rui2022-05-061-0/+1
| | | | | | | | Enable soc21 common for GC 11.0.1. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add HDP v5.2.1 into the IP discovery listXiaojian Du2022-05-061-0/+4
| | | | | | | | | This patch is to add HDP v5.2.1 in the IP discovery list. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/admgpu/discovery: add NBIO v7.7 into the IP discovery listXiaojian Du2022-05-061-0/+5
| | | | | | | | | This patch is to add NBIO v7.7 into the IP discovery list. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: set family for GC 11.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Set AMDGPU_FAMILY_GC_11_0_0. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add gfx11 support for GC 11.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Enable gfx11 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add mes11 support for GC 11.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Enable Micro Engine Scheduler support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add sdma6 support for SDMA 6.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Enable sdma6 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable vcn/jpeg v4_0_4James Zhu2022-05-051-0/+1
| | | | | | | | Enable vcn/jpeg 4_0_4. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Sonny Jiang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add psp13 support for PSP 13.0.7Chengming Gui2022-05-051-0/+1
| | | | | | | | Enable psp 13 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Chengming Gui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add gmc11 support for GC 11.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Enable gmc11 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add SMUIO_13_0_8 func supportChengming Gui2022-05-051-0/+1
| | | | | | | | Add SMUIO funcs for SMUIO_13_0_8. Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add hdp6 support for HDP 6.0.1Flora Cui2022-05-051-0/+1
| | | | | | | | Enable Host Data Path support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add nbio 4.3 support for NBIO 4.3.1Flora Cui2022-05-051-0/+1
| | | | | | | | Enable nbio 4.3 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add smu13 support for MP1 13.0.7Flora Cui2022-05-051-0/+1
| | | | | | | | Enable System Management Unit support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add ih6 support for IH 6.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Enable Interrupt Handler v6 support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add soc21 support for GC 11.0.2Flora Cui2022-05-051-0/+1
| | | | | | | | Enable soc21 common soc support. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Flora Cui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add VCN 4.0 SupportJames Zhu2022-05-041-0/+6
| | | | | | | Enable VCN 4.0 on asics where it is present. Signed-off-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add SDMA v6_0 ip blockStanley Yang2022-05-041-0/+4
| | | | | | | | Add SDMA v6 ip block for asics which support it. Signed-off-by: Stanley Yang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add MES11 supportAlex Deucher2022-05-041-6/+15
| | | | | | Enable MES 11 on asics which support it. Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add GFX 11.0 SupportLikun Gao2022-05-041-0/+4
| | | | | | | Enable GFX 11.0 on asics where it is present. Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: handle AMDGPU_FW_LOAD_RLC_BACKDOOR_AUTO in SMUAlex Deucher2022-05-041-2/+3
| | | | | | | | | | 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 <[email protected]>
* drm/amdgpu/discovery: Set GC family for GC 11.0 IPLikun Gao2022-05-041-0/+3
| | | | | | | | Set GC family for GC 11.0 IPs. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: Enable SMU for SMU 13.0.0Likun Gao2022-05-041-0/+1
| | | | | | | Enable SMU on SMU IP version 13.0.0 Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add GMC 11.0 SupportLikun Gao2022-05-041-0/+4
| | | | | | | | Enable GMC 11.0 on asics where it is present. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: Enable PSP for PSP 13.0.0Likun Gao2022-05-041-0/+1
| | | | | | | Enable PSP on PSP IP version 13.0.0 Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: init smuio v13_0_6 callbacksHawking Zhang2022-05-041-0/+4
| | | | | | | | initialize smuio callback for soc21 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add HDP v6Likun Gao2022-05-041-0/+4
| | | | | | | Enable HDP v6 on asics where it is present. Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add IH v6Likun Gao2022-05-041-0/+4
| | | | | | | Enable IH v6 on asics where it is present. Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add NBIO 4.3 SupportLikun Gao2022-05-041-0/+5
| | | | | | | Enable NBIO 4.3 on asics where it is present. Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add soc21 common SupportLikun Gao2022-05-041-0/+4
| | | | | | | Enable soc21 common support on asics where it is present. Signed-off-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: move all table parsing into amdgpu_discovery.cAlex Deucher2022-04-281-16/+13
| | | | | | | | This data has no dependencies, so encapsulate it all within amdgpu_discovery.c. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add a function to parse the vcn info tableAlex Deucher2022-04-281-0/+48
| | | | | | | To get the codec disable fuse mask. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add additional validationAlex Deucher2022-04-281-26/+126
| | | | | | | | | | 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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add a function to get the mall_sizeAlex Deucher2022-04-281-0/+46
| | | | | | | | | 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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: handle UMC harvesting in IP discoveryAlex Deucher2022-04-281-2/+12
| | | | | | | | Check the harvesting table to determing if any UMC blocks have been harvested. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: store the number of UMC IPs on the asicAlex Deucher2022-04-281-0/+9
| | | | | | | | For chips with IP discovery get this from the table, hardcode it for older asics. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: fix byteswapping in gc info parsingAlex Deucher2022-04-281-3/+3
| | | | | | | The table is in little endian format. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: populate additional GC infoAlex Deucher2022-04-281-0/+17
| | | | | | | | | 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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Use flexible array memberLijo Lazar2022-04-111-4/+4
| | | | | | | | | | | | 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 <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: drop redundant check of harvest infoGuchun Chen2022-03-251-7/+0
| | | | | | | | | Harvest bit setting in IP data structure promises this, so no need to set it explicitly. Signed-off-by: Guchun Chen <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>