David Rosca
d641a151fc
drm/amdgpu: Fix video caps for H264 and HEVC encode maximum size
...
H264 supports 4096x4096 starting from Polaris.
HEVC also supports 4096x4096, with VCN 3 and newer 8192x4352
is supported.
Signed-off-by: David Rosca <david.rosca@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
(cherry picked from commit 69e9a9e65b )
Cc: stable@vger.kernel.org
2024-11-11 14:05:36 -05:00
David Belanger
03b5038c0a
drm/amdgpu: Fix selfring initialization sequence on soc24
...
Move enable_doorbell_selfring_aperture from common_hw_init
to common_late_init in soc24, otherwise selfring aperture is
initialized with an incorrect doorbell aperture base.
Port changes from this commit from soc21 to soc24:
commit 1c312e816c ("drm/amdgpu: Enable doorbell selfring after resize FB BAR")
Signed-off-by: David Belanger <david.belanger@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Cc: stable@vger.kernel.org # 6.11.x
2024-09-18 16:14:47 -04:00
Kenneth Feng
23acd1f344
drm/amd/amdgpu: add HDP_SD support on gc 12.0.0/1
...
add HDP_SD support on gc 12.0.0/1
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
(cherry picked from commit 61cffacb3a )
2024-08-13 13:20:43 -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
Sonny Jiang
d4b8386c86
drm/amdgpu/jpeg5: Add support for DPG mode
...
Add DPG support for JPEG 5.0
Signed-off-by: Sonny Jiang <sonjiang@amd.com >
Acked-by: Saleemkhan Jamadar <saleemkhan.jamadar@amd.com >
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-27 17:34:33 -04:00
Alex Deucher
7d3b9668e6
drm/amdgpu/soc24: use common nbio callback to set remap offset
...
This fixes HDP flushes on systems with non-4K pages.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-06-05 10:58:10 -04:00
David (Ming Qiang) Wu
ab47fa8358
drm/amd/amdgpu: add AMD_PG_SUPPORT_VCN_DPG flag
...
AMD_PG_SUPPORT_VCN_DPG is needed for secure parts
and should/can be enabled by now.
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Reviewed-by: Sonny Jiang <sonjiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-29 14:09:35 -04:00
Ruijing Dong
a1a9143c96
drm/amdgpu/vcn: update vcn5 enc/dec capabilities
...
Update the capabilities for supporting 8k encoding.
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-17 17:40:38 -04:00
Likun Gao
d8cd2d617a
drm/amd/amdgpu: enable mmhub and athub cg on gc 12.0.0
...
Enable mmhub and athub cg on gc 12.0.0
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-17 17:40:36 -04:00
Likun Gao
2ac72cbc7e
drm/amdgpu: enable some cg feature for gc 12.0.0
...
Enable 3D cgcg, 3D cgls, sram fgcg, perfcounter mgcg,
repeater fgcg for gc v12.0.0.
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-17 17:40:36 -04:00
Likun Gao
73fbc3e000
drm/amdgpu: enable gfx cgcg&cgls for gfx v12_0_0
...
Enable GFX CGCG and CGLS for gfx version 12.0.0.
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-17 17:11:02 -04:00
Sonny Jiang
75125e6b4c
drm/amdgpu/jpeg5: enable power gating
...
Enable PG on JPEG5
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-17 17:10:56 -04:00
David (Ming Qiang) Wu
4b0497d25d
drm/amd/amdgpu: update jpeg 5 capability
...
Based on the documentation the maximum resolustion should
be 16384x16384.
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-13 15:45:34 -04:00
Kenneth Feng
3474e02ed5
drm/amd/pm: support mode1 reset on smu_v14_0_3
...
support mode1 reset on smu_v14_0_3
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-05-02 16:18:15 -04:00
Kenneth Feng
174fdc07c0
drm/amd/amdgpu: enable mmhub and athub cg on gc 12.0.1
...
enable mmhub and athub cg on gc 12.0.1
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-05-02 16:18:15 -04:00
Kenneth Feng
598a3b753a
drm/amd/amdgpu: enable sram fgcg on gc 12.0.1
...
enable sram fgcg on gc 12.0.1
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-05-02 16:18:15 -04:00
Kenneth Feng
6f6bb3909c
drm/amd/amdgpu: enable perfcounter mgcg and repeater fgcg
...
enable perfcounter mgcg and repeater fgcg on gc 12.0.1
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-05-02 16:18:15 -04:00
Kenneth Feng
0b6662eb2a
drm/amd/amdgpu: enable 3D cgcg and 3D cgls
...
enable 3D cgcg and 3D cgls on gc 12.0.1
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-05-02 16:18:15 -04:00
Kenneth Feng
af472f68c7
drm/amd/amdgpu: enable mgcg on gfx 12.0.1
...
enable mgcg on gfx 12.0.1
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:15 -04:00
Kenneth Feng
81b09cedb3
drm/amd/amdgpu: enable cgcg and cgls
...
enable cgcg and cgls on gc 12.0.1
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-05-02 16:18:15 -04:00
David (Ming Qiang) Wu
856d1ed4b2
drm/amdgpu/vcn5: Add VCN5 capabilities
...
Add VCN5 encode and decode capabilities support
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
Sonny Jiang
117f851393
drm/amdgpu/vcn5: enable DPG mode support
...
Enable DPG mode
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
Sonny Jiang
f19cfce87d
drm/amdgpu/jpeg5: enable power gating
...
Enable PG on JPEG5
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
David (Ming Qiang) Wu
f8f8e95c5f
amdgpu/vcn: enable AMD_PG_SUPPORT_VCN
...
turn on AMD_PG_SUPPORT_VCN flag for power saving
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com >
Reviewed-by: Sonny Jiang <sonny.jiang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-02 16:18:14 -04:00
Kenneth Feng
043869be5a
drm/amd/amdgpu: add cgcg&cgls interface for gfx 12.0
...
add cgcg&cgls interface for gfx 12.0
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-05-02 16:18:11 -04:00
Hawking Zhang
98b912c50e
drm/amdgpu: Add soc24 common ip block (v2)
...
Add initial soc24 support.
v1: Add soc24 common ip block.
v2: Switch to new select_se_sh/enter_safe_mode
interface.
v3: squash in correct ext rev id, etc. (Alex)
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-04-30 09:46:51 -04:00