Skip to content

Commit 7d461b2

Browse files
committed
Merge tag 'drm-next-2023-10-31-1' of git://anongit.freedesktop.org/drm/drm
Pull drm updates from Dave Airlie: "Highlights: - AMD adds some more upcoming HW platforms - Intel made Meteorlake stable and started adding Lunarlake - nouveau has a bunch of display rework in prepartion for the NVIDIA GSP firmware support - msm adds a7xx support - habanalabs has finished migration to accel subsystem Detail summary: kernel: - add initial vmemdup-user-array core: - fix platform remove() to return void - drm_file owner updated to reflect owner - move size calcs to drm buddy allocator - let GPUVM build as a module - allow variable number of run-queues in scheduler edid: - handle bad h/v sync_end in EDIDs panfrost: - add Boris as maintainer fbdev: - use fb_ops helpers more - only allow logo use from fbcon - rename fb_pgproto to pgprot_framebuffer - add HPD state to drm_connector_oob_hotplug_event - convert to fbdev i/o mem helpers i915: - Enable meteorlake by default - Early Xe2 LPD/Lunarlake display enablement - Rework subplatforms into IP version checks - GuC based TLB invalidation for Meteorlake - Display rework for future Xe driver integration - LNL FBC features - LNL display feature capability reads - update recommended fw versions for DG2+ - drop fastboot module parameter - added deviceid for Arrowlake-S - drop preproduction workarounds - don't disable preemption for resets - cleanup inlines in headers - PXP firmware loading fix - Fix sg list lengths - DSC PPS state readout/verification - Add more RPL P/U PCI IDs - Add new DG2-G12 stepping - DP enhanced framing support to state checker - Improve shared link bandwidth management - stop using GEM macros in display code - refactor related code into display code - locally enable W=1 warnings - remove PSR watchdog timers on LNL amdgpu: - RAS/FRU EEPROM updatse - IP discovery updatses - GC 11.5 support - DCN 3.5 support - VPE 6.1 support - NBIO 7.11 support - DML2 support - lots of IP updates - use flexible arrays for bo list handling - W=1 fixes - Enable seamless boot in more cases - Enable context type property for HDMI - Rework GPUVM TLB flushing - VCN IB start/size alignment fixes amdkfd: - GC 10/11 fixes - GC 11.5 support - use partial migration in GPU faults radeon: - W=1 Fixes - fix some possible buffer overflow/NULL derefs nouveau: - update uapi for NO_PREFETCH - scheduler/fence fixes - rework suspend/resume for GSP-RM - rework display in preparation for GSP-RM habanalabs: - uapi: expose tsc clock - uapi: block access to eventfd through control device - uapi: force dma-buf export to PAGE_SIZE alignments - complete move to accel subsystem - move firmware interface include files - perform hard reset on PCIe AXI drain event - optimise user interrupt handling msm: - DP: use existing helpers for DPCD - DPU: interrupts reworked - gpu: a7xx (a730/a740) support - decouple msm_drv from kms for headless devices mediatek: - MT8188 dsi/dp/edp support - DDP GAMMA - 12 bit LUT support - connector dynamic selection capability rockchip: - rv1126 mipi-dsi/vop support - add planar formats ast: - rename constants panels: - Mitsubishi AA084XE01 - JDI LPM102A188A - LTK050H3148W-CTA6 ivpu: - power management fixes qaic: - add detach slice bo api komeda: - add NV12 writeback tegra: - support NVSYNC/NHSYNC - host1x suspend fixes ili9882t: - separate into own driver" * tag 'drm-next-2023-10-31-1' of git://anongit.freedesktop.org/drm/drm: (1803 commits) drm/amdgpu: Remove unused variables from amdgpu_show_fdinfo drm/amdgpu: Remove duplicate fdinfo fields drm/amd/amdgpu: avoid to disable gfxhub interrupt when driver is unloaded drm/amdgpu: Add EXT_COHERENT support for APU and NUMA systems drm/amdgpu: Retrieve CE count from ce_count_lo_chip in EccInfo table drm/amdgpu: Identify data parity error corrected in replay mode drm/amdgpu: Fix typo in IP discovery parsing drm/amd/display: fix S/G display enablement drm/amdxcp: fix amdxcp unloads incompletely drm/amd/amdgpu: fix the GPU power print error in pm info drm/amdgpu: Use pcie domain of xcc acpi objects drm/amd: check num of link levels when update pcie param drm/amdgpu: Add a read to GFX v9.4.3 ring test drm/amd/pm: call smu_cmn_get_smc_version in is_mode1_reset_supported. drm/amdgpu: get RAS poison status from DF v4_6_2 drm/amdgpu: Use discovery table's subrevision drm/amd/display: 3.2.256 drm/amd/display: add interface to query SubVP status drm/amd/display: Read before writing Backlight Mode Set Register drm/amd/display: Disable SYMCLK32_SE RCO on DCN314 ...
2 parents 8bc9e65 + 6318080 commit 7d461b2

File tree

1,476 files changed

+295672
-20090
lines changed

Some content is hidden

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

1,476 files changed

+295672
-20090
lines changed

Documentation/ABI/testing/debugfs-driver-habanalabs

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
What: /sys/kernel/debug/habanalabs/hl<n>/addr
1+
What: /sys/kernel/debug/accel/<n>/addr
22
Date: Jan 2019
33
KernelVersion: 5.1
44
Contact: ogabbay@kernel.org
@@ -8,34 +8,34 @@ Description: Sets the device address to be used for read or write through
88
only when the IOMMU is disabled.
99
The acceptable value is a string that starts with "0x"
1010

11-
What: /sys/kernel/debug/habanalabs/hl<n>/clk_gate
11+
What: /sys/kernel/debug/accel/<n>/clk_gate
1212
Date: May 2020
1313
KernelVersion: 5.8
1414
Contact: ogabbay@kernel.org
1515
Description: This setting is now deprecated as clock gating is handled solely by the f/w
1616

17-
What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers
17+
What: /sys/kernel/debug/accel/<n>/command_buffers
1818
Date: Jan 2019
1919
KernelVersion: 5.1
2020
Contact: ogabbay@kernel.org
2121
Description: Displays a list with information about the currently allocated
2222
command buffers
2323

24-
What: /sys/kernel/debug/habanalabs/hl<n>/command_submission
24+
What: /sys/kernel/debug/accel/<n>/command_submission
2525
Date: Jan 2019
2626
KernelVersion: 5.1
2727
Contact: ogabbay@kernel.org
2828
Description: Displays a list with information about the currently active
2929
command submissions
3030

31-
What: /sys/kernel/debug/habanalabs/hl<n>/command_submission_jobs
31+
What: /sys/kernel/debug/accel/<n>/command_submission_jobs
3232
Date: Jan 2019
3333
KernelVersion: 5.1
3434
Contact: ogabbay@kernel.org
3535
Description: Displays a list with detailed information about each JOB (CB) of
3636
each active command submission
3737

38-
What: /sys/kernel/debug/habanalabs/hl<n>/data32
38+
What: /sys/kernel/debug/accel/<n>/data32
3939
Date: Jan 2019
4040
KernelVersion: 5.1
4141
Contact: ogabbay@kernel.org
@@ -50,7 +50,7 @@ Description: Allows the root user to read or write directly through the
5050
If the IOMMU is disabled, it also allows the root user to read
5151
or write from the host a device VA of a host mapped memory
5252

53-
What: /sys/kernel/debug/habanalabs/hl<n>/data64
53+
What: /sys/kernel/debug/accel/<n>/data64
5454
Date: Jan 2020
5555
KernelVersion: 5.6
5656
Contact: ogabbay@kernel.org
@@ -65,7 +65,7 @@ Description: Allows the root user to read or write 64 bit data directly
6565
If the IOMMU is disabled, it also allows the root user to read
6666
or write from the host a device VA of a host mapped memory
6767

68-
What: /sys/kernel/debug/habanalabs/hl<n>/data_dma
68+
What: /sys/kernel/debug/accel/<n>/data_dma
6969
Date: Apr 2021
7070
KernelVersion: 5.13
7171
Contact: ogabbay@kernel.org
@@ -79,26 +79,26 @@ Description: Allows the root user to read from the device's internal
7979
a very long time.
8080
This interface doesn't support concurrency in the same device.
8181
In GAUDI and GOYA, this action can cause undefined behavior
82-
in case the it is done while the device is executing user
82+
in case it is done while the device is executing user
8383
workloads.
8484
Only supported on GAUDI at this stage.
8585

86-
What: /sys/kernel/debug/habanalabs/hl<n>/device
86+
What: /sys/kernel/debug/accel/<n>/device
8787
Date: Jan 2019
8888
KernelVersion: 5.1
8989
Contact: ogabbay@kernel.org
9090
Description: Enables the root user to set the device to specific state.
9191
Valid values are "disable", "enable", "suspend", "resume".
9292
User can read this property to see the valid values
9393

94-
What: /sys/kernel/debug/habanalabs/hl<n>/device_release_watchdog_timeout
94+
What: /sys/kernel/debug/accel/<n>/device_release_watchdog_timeout
9595
Date: Oct 2022
9696
KernelVersion: 6.2
9797
Contact: ttayar@habana.ai
9898
Description: The watchdog timeout value in seconds for a device release upon
9999
certain error cases, after which the device is reset.
100100

101-
What: /sys/kernel/debug/habanalabs/hl<n>/dma_size
101+
What: /sys/kernel/debug/accel/<n>/dma_size
102102
Date: Apr 2021
103103
KernelVersion: 5.13
104104
Contact: ogabbay@kernel.org
@@ -108,7 +108,7 @@ Description: Specify the size of the DMA transaction when using DMA to read
108108
When the write is finished, the user can read the "data_dma"
109109
blob
110110

111-
What: /sys/kernel/debug/habanalabs/hl<n>/dump_razwi_events
111+
What: /sys/kernel/debug/accel/<n>/dump_razwi_events
112112
Date: Aug 2022
113113
KernelVersion: 5.20
114114
Contact: fkassabri@habana.ai
@@ -117,38 +117,38 @@ Description: Dumps all razwi events to dmesg if exist.
117117
the routine will clear the status register.
118118
Usage: cat dump_razwi_events
119119

120-
What: /sys/kernel/debug/habanalabs/hl<n>/dump_security_violations
120+
What: /sys/kernel/debug/accel/<n>/dump_security_violations
121121
Date: Jan 2021
122122
KernelVersion: 5.12
123123
Contact: ogabbay@kernel.org
124124
Description: Dumps all security violations to dmesg. This will also ack
125125
all security violations meanings those violations will not be
126126
dumped next time user calls this API
127127

128-
What: /sys/kernel/debug/habanalabs/hl<n>/engines
128+
What: /sys/kernel/debug/accel/<n>/engines
129129
Date: Jul 2019
130130
KernelVersion: 5.3
131131
Contact: ogabbay@kernel.org
132132
Description: Displays the status registers values of the device engines and
133133
their derived idle status
134134

135-
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr
135+
What: /sys/kernel/debug/accel/<n>/i2c_addr
136136
Date: Jan 2019
137137
KernelVersion: 5.1
138138
Contact: ogabbay@kernel.org
139139
Description: Sets I2C device address for I2C transaction that is generated
140140
by the device's CPU, Not available when device is loaded with secured
141141
firmware
142142

143-
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_bus
143+
What: /sys/kernel/debug/accel/<n>/i2c_bus
144144
Date: Jan 2019
145145
KernelVersion: 5.1
146146
Contact: ogabbay@kernel.org
147147
Description: Sets I2C bus address for I2C transaction that is generated by
148148
the device's CPU, Not available when device is loaded with secured
149149
firmware
150150

151-
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_data
151+
What: /sys/kernel/debug/accel/<n>/i2c_data
152152
Date: Jan 2019
153153
KernelVersion: 5.1
154154
Contact: ogabbay@kernel.org
@@ -157,79 +157,79 @@ Description: Triggers an I2C transaction that is generated by the device's
157157
reading from the file generates a read transaction, Not available
158158
when device is loaded with secured firmware
159159

160-
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_len
160+
What: /sys/kernel/debug/accel/<n>/i2c_len
161161
Date: Dec 2021
162162
KernelVersion: 5.17
163163
Contact: obitton@habana.ai
164164
Description: Sets I2C length in bytes for I2C transaction that is generated by
165165
the device's CPU, Not available when device is loaded with secured
166166
firmware
167167

168-
What: /sys/kernel/debug/habanalabs/hl<n>/i2c_reg
168+
What: /sys/kernel/debug/accel/<n>/i2c_reg
169169
Date: Jan 2019
170170
KernelVersion: 5.1
171171
Contact: ogabbay@kernel.org
172172
Description: Sets I2C register id for I2C transaction that is generated by
173173
the device's CPU, Not available when device is loaded with secured
174174
firmware
175175

176-
What: /sys/kernel/debug/habanalabs/hl<n>/led0
176+
What: /sys/kernel/debug/accel/<n>/led0
177177
Date: Jan 2019
178178
KernelVersion: 5.1
179179
Contact: ogabbay@kernel.org
180180
Description: Sets the state of the first S/W led on the device, Not available
181181
when device is loaded with secured firmware
182182

183-
What: /sys/kernel/debug/habanalabs/hl<n>/led1
183+
What: /sys/kernel/debug/accel/<n>/led1
184184
Date: Jan 2019
185185
KernelVersion: 5.1
186186
Contact: ogabbay@kernel.org
187187
Description: Sets the state of the second S/W led on the device, Not available
188188
when device is loaded with secured firmware
189189

190-
What: /sys/kernel/debug/habanalabs/hl<n>/led2
190+
What: /sys/kernel/debug/accel/<n>/led2
191191
Date: Jan 2019
192192
KernelVersion: 5.1
193193
Contact: ogabbay@kernel.org
194194
Description: Sets the state of the third S/W led on the device, Not available
195195
when device is loaded with secured firmware
196196

197-
What: /sys/kernel/debug/habanalabs/hl<n>/memory_scrub
197+
What: /sys/kernel/debug/accel/<n>/memory_scrub
198198
Date: May 2022
199199
KernelVersion: 5.19
200200
Contact: dhirschfeld@habana.ai
201201
Description: Allows the root user to scrub the dram memory. The scrubbing
202202
value can be set using the debugfs file memory_scrub_val.
203203

204-
What: /sys/kernel/debug/habanalabs/hl<n>/memory_scrub_val
204+
What: /sys/kernel/debug/accel/<n>/memory_scrub_val
205205
Date: May 2022
206206
KernelVersion: 5.19
207207
Contact: dhirschfeld@habana.ai
208208
Description: The value to which the dram will be set to when the user
209209
scrubs the dram using 'memory_scrub' debugfs file and
210210
the scrubbing value when using module param 'memory_scrub'
211211

212-
What: /sys/kernel/debug/habanalabs/hl<n>/mmu
212+
What: /sys/kernel/debug/accel/<n>/mmu
213213
Date: Jan 2019
214214
KernelVersion: 5.1
215215
Contact: ogabbay@kernel.org
216216
Description: Displays the hop values and physical address for a given ASID
217217
and virtual address. The user should write the ASID and VA into
218218
the file and then read the file to get the result.
219219
e.g. to display info about VA 0x1000 for ASID 1 you need to do:
220-
echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu
220+
echo "1 0x1000" > /sys/kernel/debug/accel/0/mmu
221221

222-
What: /sys/kernel/debug/habanalabs/hl<n>/mmu_error
222+
What: /sys/kernel/debug/accel/<n>/mmu_error
223223
Date: Mar 2021
224224
KernelVersion: 5.12
225225
Contact: fkassabri@habana.ai
226226
Description: Check and display page fault or access violation mmu errors for
227227
all MMUs specified in mmu_cap_mask.
228228
e.g. to display error info for MMU hw cap bit 9, you need to do:
229-
echo "0x200" > /sys/kernel/debug/habanalabs/hl0/mmu_error
230-
cat /sys/kernel/debug/habanalabs/hl0/mmu_error
229+
echo "0x200" > /sys/kernel/debug/accel/0/mmu_error
230+
cat /sys/kernel/debug/accel/0/mmu_error
231231

232-
What: /sys/kernel/debug/habanalabs/hl<n>/monitor_dump
232+
What: /sys/kernel/debug/accel/<n>/monitor_dump
233233
Date: Mar 2022
234234
KernelVersion: 5.19
235235
Contact: osharabi@habana.ai
@@ -243,7 +243,7 @@ Description: Allows the root user to dump monitors status from the device's
243243
This interface doesn't support concurrency in the same device.
244244
Only supported on GAUDI.
245245

246-
What: /sys/kernel/debug/habanalabs/hl<n>/monitor_dump_trig
246+
What: /sys/kernel/debug/accel/<n>/monitor_dump_trig
247247
Date: Mar 2022
248248
KernelVersion: 5.19
249249
Contact: osharabi@habana.ai
@@ -253,22 +253,22 @@ Description: Triggers dump of monitor data. The value to trigger the operatio
253253
When the write is finished, the user can read the "monitor_dump"
254254
blob
255255

256-
What: /sys/kernel/debug/habanalabs/hl<n>/set_power_state
256+
What: /sys/kernel/debug/accel/<n>/set_power_state
257257
Date: Jan 2019
258258
KernelVersion: 5.1
259259
Contact: ogabbay@kernel.org
260260
Description: Sets the PCI power state. Valid values are "1" for D0 and "2"
261261
for D3Hot
262262

263-
What: /sys/kernel/debug/habanalabs/hl<n>/skip_reset_on_timeout
263+
What: /sys/kernel/debug/accel/<n>/skip_reset_on_timeout
264264
Date: Jun 2021
265265
KernelVersion: 5.13
266266
Contact: ynudelman@habana.ai
267267
Description: Sets the skip reset on timeout option for the device. Value of
268268
"0" means device will be reset in case some CS has timed out,
269269
otherwise it will not be reset.
270270

271-
What: /sys/kernel/debug/habanalabs/hl<n>/state_dump
271+
What: /sys/kernel/debug/accel/<n>/state_dump
272272
Date: Oct 2021
273273
KernelVersion: 5.15
274274
Contact: ynudelman@habana.ai
@@ -279,37 +279,37 @@ Description: Gets the state dump occurring on a CS timeout or failure.
279279
Writing an integer X discards X state dumps, so that the
280280
next read would return X+1-st newest state dump.
281281

282-
What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err
282+
What: /sys/kernel/debug/accel/<n>/stop_on_err
283283
Date: Mar 2020
284284
KernelVersion: 5.6
285285
Contact: ogabbay@kernel.org
286286
Description: Sets the stop-on_error option for the device engines. Value of
287287
"0" is for disable, otherwise enable.
288288
Relevant only for GOYA and GAUDI.
289289

290-
What: /sys/kernel/debug/habanalabs/hl<n>/timeout_locked
290+
What: /sys/kernel/debug/accel/<n>/timeout_locked
291291
Date: Sep 2021
292292
KernelVersion: 5.16
293293
Contact: obitton@habana.ai
294294
Description: Sets the command submission timeout value in seconds.
295295

296-
What: /sys/kernel/debug/habanalabs/hl<n>/userptr
296+
What: /sys/kernel/debug/accel/<n>/userptr
297297
Date: Jan 2019
298298
KernelVersion: 5.1
299299
Contact: ogabbay@kernel.org
300-
Description: Displays a list with information about the currently user
300+
Description: Displays a list with information about the current user
301301
pointers (user virtual addresses) that are pinned and mapped
302302
to DMA addresses
303303

304-
What: /sys/kernel/debug/habanalabs/hl<n>/userptr_lookup
304+
What: /sys/kernel/debug/accel/<n>/userptr_lookup
305305
Date: Oct 2021
306306
KernelVersion: 5.15
307307
Contact: ogabbay@kernel.org
308308
Description: Allows to search for specific user pointers (user virtual
309309
addresses) that are pinned and mapped to DMA addresses, and see
310310
their resolution to the specific dma address.
311311

312-
What: /sys/kernel/debug/habanalabs/hl<n>/vm
312+
What: /sys/kernel/debug/accel/<n>/vm
313313
Date: Jan 2019
314314
KernelVersion: 5.1
315315
Contact: ogabbay@kernel.org

0 commit comments

Comments
 (0)