Lijo Lazar
79af0604eb
drm/amdgpu: Fix offset for HDP remap in nbio v7.11
...
APUs in passthrough mode use HDP flush. 0x7F000 offset used for
remapping HDP flush is mapped to VPE space which could get power gated.
Use another unused offset in BIF space.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
(cherry picked from commit d8116a32cd )
Cc: stable@vger.kernel.org
2025-05-01 11:01:46 -04:00
Lijo Lazar
a5219b41dd
drm/amdgpu: Clean up atom header file inclusion
...
atom bios header files are not required in these files.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2025-02-12 21:04:06 -05:00
Alex Deucher
8c1ecc7197
drm/amdgpu/nbio7.11: fix IP version check
...
Use the helper function rather than reading it directly.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
(cherry picked from commit 2c8eeaaa0f )
Cc: stable@vger.kernel.org
2024-12-18 13:01:31 -05:00
Mario Limonciello
349af06a3a
drm/amd: Fix initialization mistake for NBIO 7.11 devices
...
There is a strapping issue on NBIO 7.11.x that can lead to spurious PME
events while in the D0 state.
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Link: https://lore.kernel.org/r/20241118174611.10700-2-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-11-20 10:03:05 -05:00
Alex Deucher
42ad8ac6bd
drm/amdgpu: add set_reg_remap callback for NBIO 7.11
...
This will be used to consolidate the register remap offset
configuration and fix HDP flushes on systems non-4K pages.
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-05-08 15:17:06 -04:00
Yifan Zhang
dc84f52eb2
drm/amdgpu/nbio: Add NBIO 7.11.1 Support
...
Fix up doorbell setup and clockgating.
v2: squash in fixes (Alex)
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Lang Yu <Lang.Yu@amd.com >
Signed-off-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-02-16 15:42:03 -05:00
Li Ma
ee95135bfe
drm/amdgpu: add init_registers for nbio v7.11
...
enable init_registers callback func for nbio v7.11.
Signed-off-by: Li Ma <li.ma@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-11-29 16:49:00 -05:00
Li Ma
fa9dd7a285
drm/amdgpu: fix missing stuff in NBIO v7.11
...
add get_clockgating_state, update_medium_grain_light_sleep and
update_medium_grain_clock_gating in nbio_v7_11_funcs
v1:
add missing funcs in nbio_v7_11.c
v2:
modify the if condition and add spport for nbio v7.11 clockgating.
Signed-off-by: Li Ma <li.ma@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-10-20 15:11:28 -04:00
Lang Yu
4661482b9c
drm/amdgpu: correct NBIO v7.11 programing
...
Use v7.7 before, switch to v7.11 now.
Fix incorrect programing.
Signed-off-by: Lang Yu <Lang.Yu@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-10-13 11:33:21 -04:00
Alex Deucher
addd7aef25
drm/amdgpu: add remap_hdp_registers callback for nbio 7.11
...
Implement support for remapping the HDP aperture registers for
NBIO 7.11.
Reviewed-by: Lang Yu <lang.yu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-09-12 17:30:22 -04:00
Alex Deucher
b85a17d354
drm/amdgpu: add vcn_doorbell_range callback for nbio 7.11
...
Implement support for setting up the VCN doorbell range for
NBIO 7.11.
Reviewed-by: Lang Yu <lang.yu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-09-12 17:30:18 -04:00
Jiapeng Chong
df04434cb5
drm/amdgpu: clean up some inconsistent indenting
...
No functional modification involved.
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c:34 nbio_v7_11_get_rev_id() warn: inconsistent indenting.
v2: drop leftover printk (Alex)
Reported-by: Abaci Robot <abaci@linux.alibaba.com >
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6316
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-09-06 14:32:25 -04:00
Lang Yu
5861e47731
drm/amdgpu: add nbio 7.11 callback for VPE
...
Add nbio callback to configure doorbell settings.
Signed-off-by: Lang Yu <Lang.Yu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-08-31 16:33:56 -04:00
benl
e44d856eaa
drm/amdgpu: add nbio 7.11 support
...
Add initial nbio 7.11 implementation.
Signed-off-by: benl <ben.li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-08-30 15:00:27 -04:00