aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
Commit message (Collapse)AuthorAgeFilesLines
...
* drm/amdgpu: add GMC ip block for GC 9.4.3Hawking Zhang2023-03-311-0/+1
| | | | | | | | Add GMC IP handling for GC 9.4.3 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Set family for GC 9.4.3Hawking Zhang2023-03-311-0/+1
| | | | | | | | Set family for GC 9.4.3 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: init nbio v7_9 callbacksHawking Zhang2023-03-311-0/+5
| | | | | | | | switch to the new nbio generation for NBIO 7.9.0. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/jpeg: enable jpeg v4_0 for sriovJane Jian2023-03-221-3/+2
| | | | | | | | | - skip direct jpeg registers read&write since it is not allowed - reset Doorbell range layout for sriov Signed-off-by: Jane Jian <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add PSP ip block for PSP 13.0.6Hawking Zhang2023-03-071-0/+1
| | | | | | | | Add PSP IP handling for PSP 13.0.6 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: set sdma v4_4_2 ip blockLe Ma2023-03-071-0/+4
| | | | | | | | Use sdma 4.4.2 IP block for chips with sdma 4.4.2 hardware. Signed-off-by: Le Ma <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add HDP ip block for HDP 4.4.2Hawking Zhang2023-03-071-0/+1
| | | | | | | | Add HDP IP handling for HDP 4.4.2 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add IH ip block for IH 4.4.2Hawking Zhang2023-03-071-0/+1
| | | | | | | | Add IH IP handling for IH 4.4.2 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Support umc node harvest config on umc v8_10Candice Li2023-03-061-1/+9
| | | | | | | | | | | Don't need to query error count and error address on harvest umc nodes. v2: Fix code bug, use active_mask instead of harvsest_config and remove unnecessary argument in LOOP macro. v3: Leave adev->gmc.num_umc unchanged. Signed-off-by: Candice Li <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: make kobj_type structures constantThomas Weißschuh2023-02-231-5/+5
| | | | | | | | | | | | Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") the driver core allows the usage of const struct kobj_type. Take advantage of this to constify the structure definitions to prevent modification at runtime. Reviewed-by: Christian König <[email protected]> Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add poison mode query for df v4_3Candice Li2022-12-151-0/+4
| | | | | | | | Add poison mode query support on df v4_3. Signed-off-by: Candice Li <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable nbio support for NBIO v7.7.1Yifan Zhang2022-11-291-0/+1
| | | | | | | | this patch is to enable nbio support for NBIO v7.7.1. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add smu 13 support for smu 13.0.11Yifan Zhang2022-11-291-0/+1
| | | | | | | | this patch to add smu 13 support for smu 13.0.11. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: set the APU flag for GC 11.0.4Yifan Zhang2022-11-291-0/+1
| | | | | | | | Set the APU flag appropriately for GC 11.0.4. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: set GC 11.0.4 familyYifan Zhang2022-11-291-0/+1
| | | | | | | | this patch is to set GC 11.0.4 family. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add PSP IP v13.0.11 supportTim Huang2022-11-291-0/+1
| | | | | | | | | Add PSP IP v13.0.11 ip discovery support. Signed-off-by: Tim Huang <[email protected]> Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable mes support for GC v11.0.4Yifan Zhang2022-11-291-0/+1
| | | | | | | | this patch is to enable mes for GC 11.0.4. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable gfx v11 for GC 11.0.4Yifan Zhang2022-11-291-0/+1
| | | | | | | | Enable gfx v11 for GC 11.0.4. Signed-off-by: Yifan Zhang <[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.4Yifan Zhang2022-11-291-0/+1
| | | | | | | | Enable gmc (graphic memory controller) v11 for GC 11.0.4. Signed-off-by: Yifan Zhang <[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.4Yifan Zhang2022-11-291-0/+1
| | | | | | | | Enable soc21 common for GC 11.0.4. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: fix unused-function errorRen Zhijie2022-11-231-0/+2
| | | | | | | | | | | | | | | | | If CONFIG_DRM_AMDGPU=y and CONFIG_DRM_AMD_DC is not set, gcc complained about unused-function : drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1705:13: error: ‘amdgpu_discovery_set_sriov_display’ defined but not used [-Werror=unused-function] static void amdgpu_discovery_set_sriov_display(struct amdgpu_device *adev) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors To fix this error, use CONFIG_DRM_AMD_DC to wrap the definition of amdgpu_discovery_set_sriov_display(). Fixes: 25263da37693 ("drm/amdgpu: rework SR-IOV virtual display handling") Signed-off-by: Ren Zhijie <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add Vangogh APU flag to IP discovery pathPerry Yuan2022-11-151-0/+1
| | | | | | | | | Add the missing apu flag for Vangogh when using IP discovery code path to initialize IPs Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Perry Yuan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: rework SR-IOV virtual display handlingAlex Deucher2022-11-151-3/+15
| | | | | | | | | | | | virtual display is enabled unconditionally in SR-IOV, but without specifying the virtual_display module, the number of crtcs defaults to 0. Set a single display by default for SR-IOV if the virtual_display parameter is not set. Only enable virtual display by default on SR-IOV on asics which actually have display hardware. Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: force read discovery file if set discovery=2Yifan Zhang2022-11-101-2/+7
| | | | | | | | | | | If discovery is set to 2 in module parameters explicitly, the intention is to use the discovery file in FW rather than the one in BIOS, usually because the latter is incorrect. This patch to force read discovery file if set discovery=2. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: correct the memcpy size for ip discovery firmwareLe Ma2022-09-291-1/+1
| | | | | | | | | Use fw->size instead of discovery_tmr_size for fallback path. Signed-off-by: Le Ma <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/vcn: Add sriov VCN v4_0 unified queue supportJane Jian2022-09-011-3/+2
| | | | | | | | | | Enable unified queue support for sriov, abandon all previous multi-queue settings Acked-by: Christian König <[email protected]> Signed-off-by: Jane Jian <[email protected]> Reviewed-by: Ruijing Dong <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: sriov remove vcn_4_0 and jpeg_4_0Horace Chen2022-09-011-2/+4
| | | | | | | | | | | SRIOV needs to initialize mmsch instead of multimedia engines directly. So currently remove them for SR-IOV until the code and firmwares are ready. Acked-by: Christian König <[email protected]> Signed-off-by: Horace Chen <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add sriov nbio callback structureHorace Chen2022-09-011-1/+4
| | | | | | | | | | | | | | | | [Why] under SR-IOV, the nbio doorbell range will be defined by PF. So VF nbio doorbell range registers will be blocked. It will cause violation if VF access those registers directly. [How] create an nbio_v4_3_sriov_funcs for sriov nbio_v4_3 initialization to skip the setting for the doorbell range registers. Acked-by: Christian König <[email protected]> Signed-off-by: Horace Chen <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for MES 11.0.3Hawking Zhang2022-08-301-0/+1
| | | | | | | | Add ip block support for mes v11_0_3. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for GFX 11.0Hawking Zhang2022-08-301-0/+1
| | | | | | | | Add ip block support for gfx v11_0_3. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Set GC family for GC 11.0.3Hawking Zhang2022-08-301-0/+1
| | | | | | | | Set AMDGPU_FAMILY_GC_11_0_0. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for GMC 11.0Hawking Zhang2022-08-301-0/+1
| | | | | | | | Add ip block support for gmc v11_0_3. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for LSDMA 6.0Hawking Zhang2022-08-291-0/+1
| | | | | | | | Add ip block support for lsdma v6_0_3. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for sdma 6.0Hawking Zhang2022-08-291-0/+1
| | | | | | | | Add ip block support for sdma v6_0_3. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable smu block for smu 13.0.10John Clements2022-08-291-0/+1
| | | | | | | | | Force to enable smu block for SMU v13.0.10 Signed-off-by: John Clements <[email protected]> Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for PSP 13.0Frank Min2022-08-291-0/+1
| | | | | | | | | Add ip block support for psp v13_0_10. Signed-off-by: Frank Min <[email protected]> Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new ip block for SOC21Hawking Zhang2022-08-291-0/+1
| | | | | | | | Add ip block support for soc21_common. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable support for psp 13.0.4 blockXiaojian Du2022-07-291-1/+3
| | | | | | | | This patch will enable support for psp 13.0.4 blcok. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add dm ip block for dcn 3.1.4Roman Li2022-07-251-0/+1
| | | | | | | | Adding dm ip block to enable display on dcn 3.1.4. Signed-off-by: Roman Li <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: use the same HDP flush registers for all nbio 2.3.xAlex Deucher2022-07-181-4/+1
| | | | | | | | | | | | Align RDNA2.x with other asics. One HDP bit per SDMA instance, aligned with firmware. This is effectively a revert of commit 369b7d04baf3 ("drm/amdgpu/nbio2.3: don't use GPU_HDP_FLUSH bit 12"). On further discussions with the relevant hardware teams, re-align the bits for SDMA. Fixes: 369b7d04baf3 ("drm/amdgpu/nbio2.3: don't use GPU_HDP_FLUSH bit 12") Reviewed-by: Kent Russell <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: use the same HDP flush registers for all nbio 7.4.xAlex Deucher2022-07-181-4/+1
| | | | | | | | | | | | | Align aldebaran with all other asics. One HDP bit per SDMA instance, aligned with firmware. This is effectively a revert of commit a0f9f8546668 ("drm/amdgpu/nbio7.4: don't use GPU_HDP_FLUSH bit 12"). On further discussions with the relevant hardware teams, re-align the bits for SDMA. Fixes: a0f9f8546668 ("drm/amdgpu/nbio7.4: don't use GPU_HDP_FLUSH bit 12") Reviewed-by: Kent Russell <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add LSDMA block for LSDMA v6.0.1Yifan Zhang2022-06-211-0/+1
| | | | | | | | This patch adds LSDMA ip block for LSDMA v6.0.1. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: enable vcn/jpeg v4_0_2Yifan Zhang2022-06-151-0/+1
| | | | | | | | | Enable vcn/jpeg 4_0_2. Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable ASPM support for PCIE 7.4.0/7.6.0Evan Quan2022-06-081-0/+1
| | | | | | | | Enable ASPM support for PCIE 7.4.0 and 7.6.0. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add comments about VCN instance handlingAlex Deucher2022-06-061-0/+8
| | | | | | | | | Add comments to clarify code that is safe, but triggers and smatch warning. Link: https://lists.freedesktop.org/archives/amd-gfx/2022-June/079905.html Signed-off-by: Alex Deucher <[email protected]> Cc: Dan Carpenter <[email protected]>
* drm/amd/display: add DCN32 to IP discovery tableAurabindo Pillai2022-06-031-0/+2
| | | | | | | | | | [Why&How] Add DCN32 to IP discovery to enable automatic initialization of AMDGPU Display Manager Signed-off-by: Aurabindo Pillai <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: validate VCN and SDMA instancesAlex Deucher2022-05-261-3/+14
| | | | | | | | | | | Validate the VCN and SDMA instances against the driver structure sizes to make sure we don't get into a situation where the firmware reports more instances than the driver supports. Reviewed-by: Guchun Chen <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: suppress some compile warningsEvan Quan2022-05-261-1/+1
| | | | | | | | | Suppress two compile warnings about "no previous prototype". Reported-by: kernel test robot <[email protected]> Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/discovery: add SMU v13.0.4 into the IP discovery listXiaojian Du2022-05-161-0/+1
| | | | | | | | | This patch will add SMU 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: add LSDMA block for LSDMA v6.0.2Likun Gao2022-05-101-0/+1
| | | | | | | | Add LSDMA ip block for LSDMA v6.0.2. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>