Skip to content

Commit 236f475

Browse files
committed
Merge tag 'amd-drm-next-6.15-2025-03-07' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
amdgpu: - Fix spelling typos - RAS updates - VCN 5.0.1 updates - SubVP fixes - DCN 4.0.1 fixes - MSO DPCD fixes - DIO encoder refactor - PCON fixes - Misc cleanups - DMCUB fixes - USB4 DP fixes - DM cleanups - Backlight cleanups and fixes - Support platform backlight curves - Misc code cleanups - SMU 14 fixes - JPEG 4.0.3 reset updates - SR-IOV fixes - SVM fixes - GC 12 DCC fixes - DC DCE 6.x fix - Hiberation fix amdkfd: - Fix possible NULL pointer in queue validation - Remove unnecessary CP domain validation - SDMA queue reset support - Add per process flags radeon: - Fix spelling typos - RS400 hyperZ fix UAPI: - Add KFD per process flags for setting precision Proposed user space: ROCm/ROCR-Runtime@2a64fa5 Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250307211051.1880472-1-alexander.deucher@amd.com
2 parents d65a27f + cf6d949 commit 236f475

File tree

305 files changed

+7289
-5041
lines changed

Some content is hidden

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

305 files changed

+7289
-5041
lines changed

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ Richard Leitner <richard.leitner@linux.dev> <me@g0hl1n.net>
614614
Richard Leitner <richard.leitner@linux.dev> <richard.leitner@skidata.com>
615615
Robert Foss <rfoss@kernel.org> <robert.foss@linaro.org>
616616
Rocky Liao <quic_rjliao@quicinc.com> <rjliao@codeaurora.org>
617+
Rodrigo Siqueira <siqueira@igalia.com> <rodrigosiqueiramelo@gmail.com>
618+
Rodrigo Siqueira <siqueira@igalia.com> <Rodrigo.Siqueira@amd.com>
617619
Roman Gushchin <roman.gushchin@linux.dev> <guro@fb.com>
618620
Roman Gushchin <roman.gushchin@linux.dev> <guroan@gmail.com>
619621
Roman Gushchin <roman.gushchin@linux.dev> <klamm@yandex-team.ru>

Documentation/gpu/amdgpu/amdgpu-glossary.rst

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ we have a dedicated glossary for Display Core at
1212
The number of CUs that are active on the system. The number of active
1313
CUs may be less than SE * SH * CU depending on the board configuration.
1414

15+
CE
16+
Constant Engine
17+
1518
CP
1619
Command Processor
1720

@@ -68,6 +71,9 @@ we have a dedicated glossary for Display Core at
6871
IB
6972
Indirect Buffer
7073

74+
IMU
75+
Integrated Management Unit (Power Management support)
76+
7177
IP
7278
Intellectual Property blocks
7379

@@ -80,6 +86,12 @@ we have a dedicated glossary for Display Core at
8086
KIQ
8187
Kernel Interface Queue
8288

89+
MC
90+
Memory Controller
91+
92+
ME
93+
MicroEngine (Graphics)
94+
8395
MEC
8496
MicroEngine Compute
8597

@@ -92,14 +104,20 @@ we have a dedicated glossary for Display Core at
92104
MQD
93105
Memory Queue Descriptor
94106

107+
PFP
108+
Pre-Fetch Parser (Graphics)
109+
95110
PPLib
96111
PowerPlay Library - PowerPlay is the power management component.
97112

98113
PSP
99114
Platform Security Processor
100115

101116
RLC
102-
RunList Controller
117+
RunList Controller. This name is a remnant of past ages and doesn't have
118+
much meaning today. It's a group of general-purpose helper engines for
119+
the GFX block. It's involved in GFX power management and SR-IOV, among
120+
other things.
103121

104122
SDMA
105123
System DMA
@@ -110,14 +128,35 @@ we have a dedicated glossary for Display Core at
110128
SH
111129
SHader array
112130

113-
SMU
114-
System Management Unit
131+
SMU/SMC
132+
System Management Unit / System Management Controller
133+
134+
SRLC
135+
Save/Restore List Control
136+
137+
SRLG
138+
Save/Restore List GPM_MEM
139+
140+
SRLS
141+
Save/Restore List SRM_MEM
115142

116143
SS
117144
Spread Spectrum
118145

146+
TA
147+
Trusted Application
148+
149+
TOC
150+
Table of Contents
151+
152+
UVD
153+
Unified Video Decoder
154+
119155
VCE
120156
Video Compression Engine
121157

122158
VCN
123159
Video Codec Next
160+
161+
VPE
162+
Video Processing Engine

Documentation/gpu/amdgpu/display/dc-glossary.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ consider asking in the amdgfx and update this page.
167167
MALL
168168
Memory Access at Last Level
169169

170-
MC
171-
Memory Controller
172-
173170
MPC/MPCC
174171
Multiple pipes and plane combine
175172

@@ -232,6 +229,3 @@ consider asking in the amdgfx and update this page.
232229

233230
VRR
234231
Variable Refresh Rate
235-
236-
UVD
237-
Unified Video Decoder

MAINTAINERS

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,14 +1046,14 @@ F: drivers/crypto/ccp/hsti.*
10461046
AMD DISPLAY CORE
10471047
M: Harry Wentland <harry.wentland@amd.com>
10481048
M: Leo Li <sunpeng.li@amd.com>
1049-
M: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
1049+
R: Rodrigo Siqueira <siqueira@igalia.com>
10501050
L: amd-gfx@lists.freedesktop.org
10511051
S: Supported
10521052
T: git https://gitlab.freedesktop.org/agd5f/linux.git
10531053
F: drivers/gpu/drm/amd/display/
10541054

10551055
AMD DISPLAY CORE - DML
1056-
M: Chaitanya Dhere <chaitanya.dhere@amd.com>
1056+
M: Austin Zheng <austin.zheng@amd.com>
10571057
M: Jun Lei <jun.lei@amd.com>
10581058
S: Supported
10591059
F: drivers/gpu/drm/amd/display/dc/dml/
@@ -19681,7 +19681,6 @@ F: drivers/net/wireless/quantenna
1968119681
RADEON and AMDGPU DRM DRIVERS
1968219682
M: Alex Deucher <alexander.deucher@amd.com>
1968319683
M: Christian König <christian.koenig@amd.com>
19684-
M: Xinhui Pan <Xinhui.Pan@amd.com>
1968519684
L: amd-gfx@lists.freedesktop.org
1968619685
S: Supported
1968719686
B: https://gitlab.freedesktop.org/drm/amd/-/issues

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,7 @@ struct amdgpu_device {
11921192
bool debug_use_vram_fw_buf;
11931193
bool debug_enable_ras_aca;
11941194
bool debug_exp_resets;
1195+
bool debug_disable_gpu_ring_reset;
11951196

11961197
bool enforce_isolation[MAX_XCP];
11971198
/* Added this mutex for cleaner shader isolation between GFX and compute processes */

drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ static void aca_banks_generate_cper(struct amdgpu_device *adev,
392392
struct aca_bank_node *node;
393393
struct aca_bank *bank;
394394

395+
if (!adev->cper.enabled)
396+
return;
397+
395398
if (!banks || !count) {
396399
dev_warn(adev->dev, "fail to generate cper records\n");
397400
return;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ struct ras_query_context;
7676
#define mmSMNAID_XCD1_MCA_SMU 0x38430400 /* SMN AID XCD1 */
7777
#define mmSMNXCD_XCD0_MCA_SMU 0x40430400 /* SMN XCD XCD0 */
7878

79+
#define ACA_BANK_ERR_CE_DE_DECODE(bank) \
80+
((ACA_REG__STATUS__POISON((bank)->regs[ACA_REG_IDX_STATUS]) || \
81+
ACA_REG__STATUS__DEFERRED((bank)->regs[ACA_REG_IDX_STATUS])) ? \
82+
ACA_ERROR_TYPE_DEFERRED : \
83+
ACA_ERROR_TYPE_CE)
84+
7985
enum aca_reg_idx {
8086
ACA_REG_IDX_CTL = 0,
8187
ACA_REG_IDX_STATUS = 1,

drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ static int acp_resume(struct amdgpu_ip_block *ip_block)
579579
return 0;
580580
}
581581

582-
static bool acp_is_idle(void *handle)
582+
static bool acp_is_idle(struct amdgpu_ip_block *ip_block)
583583
{
584584
return true;
585585
}

drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ static int amdgpu_atif_query_backlight_caps(struct amdgpu_atif *atif)
394394
characteristics.max_input_signal;
395395
atif->backlight_caps.ac_level = characteristics.ac_level;
396396
atif->backlight_caps.dc_level = characteristics.dc_level;
397+
atif->backlight_caps.data_points = characteristics.number_of_points;
398+
memcpy(atif->backlight_caps.luminance_data,
399+
characteristics.data_points,
400+
sizeof(atif->backlight_caps.luminance_data));
397401
out:
398402
kfree(info);
399403
return err;
@@ -1277,11 +1281,7 @@ void amdgpu_acpi_get_backlight_caps(struct amdgpu_dm_backlight_caps *caps)
12771281
{
12781282
struct amdgpu_atif *atif = &amdgpu_acpi_priv.atif;
12791283

1280-
caps->caps_valid = atif->backlight_caps.caps_valid;
1281-
caps->min_input_signal = atif->backlight_caps.min_input_signal;
1282-
caps->max_input_signal = atif->backlight_caps.max_input_signal;
1283-
caps->ac_level = atif->backlight_caps.ac_level;
1284-
caps->dc_level = atif->backlight_caps.dc_level;
1284+
memcpy(caps, &atif->backlight_caps, sizeof(*caps));
12851285
}
12861286

12871287
/**

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -555,48 +555,6 @@ int amdgpu_amdkfd_get_dmabuf_info(struct amdgpu_device *adev, int dma_buf_fd,
555555
return r;
556556
}
557557

558-
uint8_t amdgpu_amdkfd_get_xgmi_hops_count(struct amdgpu_device *dst,
559-
struct amdgpu_device *src)
560-
{
561-
struct amdgpu_device *peer_adev = src;
562-
struct amdgpu_device *adev = dst;
563-
int ret = amdgpu_xgmi_get_hops_count(adev, peer_adev);
564-
565-
if (ret < 0) {
566-
DRM_ERROR("amdgpu: failed to get xgmi hops count between node %d and %d. ret = %d\n",
567-
adev->gmc.xgmi.physical_node_id,
568-
peer_adev->gmc.xgmi.physical_node_id, ret);
569-
ret = 0;
570-
}
571-
return (uint8_t)ret;
572-
}
573-
574-
int amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(struct amdgpu_device *dst,
575-
struct amdgpu_device *src,
576-
bool is_min)
577-
{
578-
struct amdgpu_device *adev = dst, *peer_adev;
579-
int num_links;
580-
581-
if (amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(9, 4, 2))
582-
return 0;
583-
584-
if (src)
585-
peer_adev = src;
586-
587-
/* num links returns 0 for indirect peers since indirect route is unknown. */
588-
num_links = is_min ? 1 : amdgpu_xgmi_get_num_links(adev, peer_adev);
589-
if (num_links < 0) {
590-
DRM_ERROR("amdgpu: failed to get xgmi num links between node %d and %d. ret = %d\n",
591-
adev->gmc.xgmi.physical_node_id,
592-
peer_adev->gmc.xgmi.physical_node_id, num_links);
593-
num_links = 0;
594-
}
595-
596-
/* Aldebaran xGMI DPM is defeatured so assume x16 x 25Gbps for bandwidth. */
597-
return (num_links * 16 * 25000)/BITS_PER_BYTE;
598-
}
599-
600558
int amdgpu_amdkfd_get_pcie_bandwidth_mbytes(struct amdgpu_device *adev, bool is_min)
601559
{
602560
int num_lanes_shift = (is_min ? ffs(adev->pm.pcie_mlw_mask) :

0 commit comments

Comments
 (0)