aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/nv.c
Commit message (Collapse)AuthorAgeFilesLines
...
* drm/amdgpu: enable VCN PG and CG for yellow carpAaron Liu2021-06-041-2/+6
| | | | | | | | | Enable VCN 3.0 PG and CG for Yellow Carp by setting up flags. Acked-by: Huang Rui <[email protected]> Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable vcn dpg mode on yellow carpJames Zhu2021-06-041-1/+2
| | | | | | | | | | Enable vcn dpg mode on yellow carp. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable vcn/jpeg on yellow carpJames Zhu2021-06-041-0/+3
| | | | | | | | | | Enable vcn/jpeg IP on yellow carp. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add IH Clock Gating support for yellow carpAaron Liu2021-06-041-1/+2
| | | | | | | | IH CG need to be enabled by driver. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add ATHUB Clock Gating support for yellow carpAaron Liu2021-06-041-1/+3
| | | | | | | | | ATHUB MGCG/MGLS is enabled by default. Adding ATHUB MGCG/MGLS flag to ensure athub mgcg/ls enabled. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add HDP Clock Gating support for yellow carpAaron Liu2021-06-041-1/+3
| | | | | | | | | | HDP MGCG is enabled by default. Adding AMD_CG_SUPPORT_HDP_MGCG to ensure hdp mgcg enabled. HDP MGLS need to be enabled by driver. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add SDMA Clock Gating support for yellow carpAaron Liu2021-06-041-1/+2
| | | | | | | | | Add AMD_CG_SUPPORT_SDMA_LS support. SDMA MGCG programming is migrated to RLC. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add GFX Power Gating support for yellow carpAaron Liu2021-06-041-1/+1
| | | | | | | | Add GFX Power Gating support. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add MMHUB Clock Gating support for yellow carpAaron Liu2021-06-041-1/+3
| | | | | | | | Add AMD_CG_SUPPORT_MC_MGCG/AMD_CG_SUPPORT_MC_LS support. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add GFX Clock Gating support for yellow carpAaron Liu2021-06-041-1/+9
| | | | | | | | | | | | | | | Add below supports: GFX Coarse Grain Clock Gating(CGCG) GFX Coarse grain light sleep/deep sleep(CGLS) GFX Medium Grain Clock Gating(MGCG) GFX Medium Grain light sleep/deep sleep(MGLS) GFX Fine Grain Clock Gating(FGCG) RLC MGLS CP MGLS Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable psp_v13 for yellow carpAaron Liu2021-06-041-0/+2
| | | | | | | | This patch enables psp_v13 for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add smu ip block for yellow carp(V3)Aaron Liu2021-06-041-0/+1
| | | | | | | | | | | Yellow carp smu ip version: 13_0_1. V2: rename smu_v13_0 to smu_v13_0_1. V3: reuse smu_v13_0 with aldebaran. Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: set ip blocks for yellow carpAaron Liu2021-06-041-0/+9
| | | | | | | | Enable ip blocks for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add nv common ip block support for yellow carpAaron Liu2021-06-041-0/+8
| | | | | | | | This patch adds common ip support for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Change IP init sequence to support PSP program IH_RB_CNTL on ↵Peng Ju Zhou2021-05-261-2/+7
| | | | | | | | | | | | NV12 SRIOV To enable PSP program IH_RB_CNTL, the PSP IP should be initialized before IH IP, otherwise, it will hit psp NULL pointer. Signed-off-by: Peng Ju Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Modify GC register access from MMIO to RLCG in file nv.cPeng Ju Zhou2021-05-211-1/+1
| | | | | | | | | In SRIOV environment, KMD should access GC registers with RLCG if GC indirect access flag enabled. Signed-off-by: Peng Ju Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: psp program IH_RB_CTRL on sienna_cichlidYuBiao Wang2021-05-201-3/+9
| | | | | | | | | | | | [Why] IH_RB_CNTL is blocked by PSP so we need to ask psp to help config it. [How] Move psp ip block before ih, and use psp to program IH_RB_CNTL under sriov. Reviewed-by: Chen, Horace <[email protected]> Signed-off-by: YuBiao Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: Enable DCN IP init for Beige GobyAurabindo Pillai2021-05-201-0/+4
| | | | | | | | | [Why&How] Adds DCN IP block initialization for Beige Goby Signed-off-by: Aurabindo Pillai <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add cgls for beige_gobyTao Zhou2021-05-201-0/+1
| | | | | | | | Enable cgls to improve the runtime power efficiency. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Jack Gui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enabled VCN3.0 CG for BEIGE GOBYVeerabadhran Gopalakrishnan2021-05-201-1/+2
| | | | | | | | Enable VCN CG for BEIGE GOBY Signed-off-by: Veerabadhran Gopalakrishnan <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable ih CG for beige_gobyTao Zhou2021-05-201-1/+2
| | | | | | | | Enable ih clock gating for beige_goby. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable hdp CG and LS for beige_gobyTao Zhou2021-05-201-1/+3
| | | | | | | | Enable hdp MGCG and LS for beige_goby. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable mc CG and LS for beige_gobyTao Zhou2021-05-201-1/+3
| | | | | | | | Enable mc CG and LS for beige_goby. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable athub/mmhub PG for beige_gobyTao Zhou2021-05-201-1/+3
| | | | | | | | Enable athub/mmhub power gating for beige_goby. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable GFX clock gating for beige_gobyTao Zhou2021-05-201-1/+3
| | | | | | | | Enable GFX MGCG, CGCG and 3DCG for beige_goby. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/pm: add mode1 support for beige_gobyChengming Gui2021-05-201-0/+1
| | | | | | | | Add mode1 reset as the default reset method for beige_goby Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Enable VCN for Beige GobyVeerabadhran Gopalakrishnan2021-05-201-1/+3
| | | | | | | | Enabled VCN support for Beige Goby chip Signed-off-by: Veerabadhran Gopalakrishnan <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add psp support for beige_gobyChengming Gui2021-05-201-0/+5
| | | | | | | | | add general PSP support for beige_goby Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add smu support for beige_gobyChengming Gui2021-05-201-0/+3
| | | | | | | | | | | Use soft-pptable for beige_goby v2: fix format Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add virtual display support for beige_gobyChengming Gui2021-05-201-0/+2
| | | | | | | | | Add virtual ip block for beige_goby Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add sdma ip block for beige_gobyChengming Gui2021-05-201-0/+1
| | | | | | | | | | | | Enable sdma block for beige_goby, same as sienna_cichlid v2: share the same setting of sdma instance num with vangogh Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Suggested-by: Alexander Deucher <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add gfx ip block for beige_gobyChengming Gui2021-05-201-0/+1
| | | | | | | | | Enable gfx block for beige_goby, same as dimgrey_cavefish Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add ih ip block for beige_gobyChengming Gui2021-05-201-0/+1
| | | | | | | | | Enable ih block for beige_goby, same as dimgrey_cavefish Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add gmc ip block for beige_gobyChengming Gui2021-05-201-0/+1
| | | | | | | | | Enable gmc block for beige_goby, same as sienna_cichlid Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add common ip block for beige_gobyChengming Gui2021-05-201-0/+3
| | | | | | | | | | Same as dimgrey_cavefish v2: fix comments typo Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: initialize IP offset for beige_gobyChengming Gui2021-05-201-0/+3
| | | | | | | | | | | | Add ip offset definition for beige_goby and initialize it v2: squash in fixes (Alex) V3: fix permissions on file (Alex) Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add common support for beige_gobyChengming Gui2021-05-201-0/+6
| | | | | | | | | Add external id and set clock gating for beige_goby Signed-off-by: Chengming Gui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Complete multimedia bandwidth interfaceBokun Zhang2021-05-201-1/+108
| | | | | | | | | | | | | | | | | - Update SRIOV PF2VF header with latest revision - Extend existing function in amdgpu_virt.c to read MM bandwidth config from PF2VF message - Add SRIOV Sienna Cichlid codec array and update the bandwidth with PF2VF message v2: squash in removal of unused variable (Alex) Signed-off-by: Bokun Zhang <[email protected]> Reviewed-by: Monk liu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/pm: enable ASPM by defaultKenneth Feng2021-05-201-1/+1
| | | | | | | | | Since ASPM function has been stable, we don't need to add the modprobe parameter and we can enable ASPM by default. Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Jiansong Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update the method for harvest IP for specific SKULikun Gao2021-05-201-14/+16
| | | | | | | | | | Update the method of disabling VCN IP for specific SKU for navi1x ASIC, it will judge whether should add the related IP at the function of amdgpu_device_ip_block_add(). Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add judgement when add ip blocks (v2)Likun GAO2021-05-201-1/+7
| | | | | | | | | | Judgement whether to add an sw ip according to the harvest info. v2: fix indentation (Alex) Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Enable SDMA LS for VangoghJinzhou Su2021-04-291-0/+1
| | | | | | | | | Add flags AMD_CG_SUPPORT_SDMA_LS for Vangogh. Start to open sdma ls from firmware version 70. Signed-off-by: Jinzhou Su <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: add cglsKenneth Feng2021-04-231-0/+3
| | | | | | | | enable cgls to improve the runtime power efficiency. Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Enable SDMA MGCG for VangoghJinzhou Su2021-04-231-0/+1
| | | | | | | | | Add flags AMD_CG_SUPPORT_SDMA_MGCG for Vangogh. Start to open sdma mgcg from firmware version 70. Signed-off-by: Jinzhou Su <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: enable ASPM on navi1xKenneth Feng2021-04-151-8/+2
| | | | | | | | | enable ASPM on navi1x for the benifit of system power consumption without performance hurt. Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/pm: drop redundant and unneeded BACO APIs V2Evan Quan2021-04-091-22/+3
| | | | | | | | | | | Use other APIs which are with the same functionality but much more clean. V2: drop mediate unneeded interface Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/pm: label these APIs used internally as staticEvan Quan2021-04-091-1/+0
| | | | | | | | Also drop unnecessary header file and declarations. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* Revert "drm/amdgpu: disable gpu reset on Vangogh for now"Xiaojian Du2021-04-091-4/+0
| | | | | | | | | | This reverts commit 33cf440d594bfbf81fc20604957bc64f02d0b560. And it will enable mode-2 gpu reset for vangogh, it asks PSP firmware version is 00.1A.00.0F or newer. Signed-off-by: Xiaojian Du <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu:add smu mode1/2 support for aldebaranFeifei Xu2021-03-241-39/+1
| | | | | | | | | | Use MSG_GfxDriverReset for mode reset and retire MSG_Mode1Reset. Centralize soc15_asic_mode1_reset() and nv_asic_mode1_reset()functions. Add mode2_reset_is_support() for smu->ppt_funcs. Signed-off-by: Feifei Xu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/codec: drop the internal codec indexAlex Deucher2021-02-261-17/+19
| | | | | | | And just use the ioctl index. They are the same. Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>