Skip to content

Commit ee8b1ef

Browse files
committed
Merge tag 'amd-drm-next-5.20-2022-07-26' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
amdgpu: - VCN4 fixes - RAS support for UMC 8.10 - ACP support for jadeite platforms - NBIO HDP flush fixes - Misc spelling and grammar fixes - Runtime PM fixes - Non-DC HPD fix - Clean up amdgpu DM code - DSC fixes - Expose some additional GFXOFF data via debugfs - More FP clean up for new DCN blocks - PPC DC FP fixes - DCN 3.1.4 fixes - DC DML stack usage fixes - GMC fixes - SPM fixes for RDNA2 amdkfd: - MMU notifier fix - Mutex fix UAPI: - Add a comment about VCN4 unified queues - IP version information for UMDs Proposed mesa change: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17411/diffs?commit_id=c8a63590dfd0d64e6e6a634dcfed993f135dd075 Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220726181536.5759-1-alexander.deucher@amd.com
2 parents 417c1c1 + 1b54a01 commit ee8b1ef

167 files changed

Lines changed: 9847 additions & 7212 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/gpu/amdgpu/thermal.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,44 @@ gpu_metrics
6363

6464
.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
6565
:doc: gpu_metrics
66+
67+
GFXOFF
68+
======
69+
70+
GFXOFF is a feature found in most recent GPUs that saves power at runtime. The
71+
card's RLC (RunList Controller) firmware powers off the gfx engine
72+
dynamically when there is no workload on gfx or compute pipes. GFXOFF is on by
73+
default on supported GPUs.
74+
75+
Userspace can interact with GFXOFF through a debugfs interface:
76+
77+
``amdgpu_gfxoff``
78+
-----------------
79+
80+
Use it to enable/disable GFXOFF, and to check if it's current enabled/disabled::
81+
82+
$ xxd -l1 -p /sys/kernel/debug/dri/0/amdgpu_gfxoff
83+
01
84+
85+
- Write 0 to disable it, and 1 to enable it.
86+
- Read 0 means it's disabled, 1 it's enabled.
87+
88+
If it's enabled, that means that the GPU is free to enter into GFXOFF mode as
89+
needed. Disabled means that it will never enter GFXOFF mode.
90+
91+
``amdgpu_gfxoff_status``
92+
------------------------
93+
94+
Read it to check current GFXOFF's status of a GPU::
95+
96+
$ xxd -l1 -p /sys/kernel/debug/dri/0/amdgpu_gfxoff_status
97+
02
98+
99+
- 0: GPU is in GFXOFF state, the gfx engine is powered down.
100+
- 1: Transition out of GFXOFF state
101+
- 2: Not in GFXOFF state
102+
- 3: Transition into GFXOFF state
103+
104+
If GFXOFF is enabled, the value will be transitioning around [0, 3], always
105+
getting into 0 when possible. When it's disabled, it's always at 2. Returns
106+
``-EINVAL`` if it's not supported.

drivers/gpu/drm/amd/amdgpu/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config DRM_AMDGPU_SI
44
depends on DRM_AMDGPU
55
help
66
Choose this option if you want to enable experimental support
7-
for SI asics.
7+
for SI (Southern Islands) asics.
88

99
SI is already supported in radeon. Experimental support for SI
1010
in amdgpu will be disabled by default and is still provided by
@@ -16,7 +16,8 @@ config DRM_AMDGPU_CIK
1616
bool "Enable amdgpu support for CIK parts"
1717
depends on DRM_AMDGPU
1818
help
19-
Choose this option if you want to enable support for CIK asics.
19+
Choose this option if you want to enable support for CIK (Sea
20+
Islands) asics.
2021

2122
CIK is already supported in radeon. Support for CIK in amdgpu
2223
will be disabled by default and is still provided by radeon.

drivers/gpu/drm/amd/amdgpu/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ amdgpu-y += \
9393

9494
# add UMC block
9595
amdgpu-y += \
96-
umc_v6_0.o umc_v6_1.o umc_v6_7.o umc_v8_7.o
96+
umc_v6_0.o umc_v6_1.o umc_v6_7.o umc_v8_7.o umc_v8_10.o
9797

9898
# add IH block
9999
amdgpu-y += \

drivers/gpu/drm/amd/amdgpu/amdgpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ extern uint amdgpu_smu_memory_pool_size;
197197
extern int amdgpu_smu_pptable_id;
198198
extern uint amdgpu_dc_feature_mask;
199199
extern uint amdgpu_dc_debug_mask;
200+
extern uint amdgpu_dc_visual_confirm;
200201
extern uint amdgpu_dm_abm_level;
201202
extern int amdgpu_backlight;
202203
extern struct amdgpu_mgpu_info mgpu_info;
@@ -1011,7 +1012,6 @@ struct amdgpu_device {
10111012
uint64_t df_perfmon_config_assign_mask[AMDGPU_MAX_DF_PERFMONS];
10121013

10131014
/* enable runtime pm on the device */
1014-
bool runpm;
10151015
bool in_runpm;
10161016
bool has_pr3;
10171017

0 commit comments

Comments
 (0)