Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drm/asahi: Add a separate debug flag for DRM_IOCTL_ASAHI_SUBMIT #136

Open
wants to merge 562 commits into
base: gpu/rust-wip
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
562 commits
Select commit Hold shift + click to select a range
741f89a
rust: upgrade to Rust 1.66.0
ojeda Dec 24, 2022
cb96da1
*RFL import: kernel::sync::rcu
asahilina Feb 16, 2023
1680c04
*RFL import: kernel::revocable
asahilina Feb 16, 2023
e9b288d
rust: Add `name` argument to Module::init()
asahilina Feb 16, 2023
1f29957
*RFL import: kernel::driver
asahilina Feb 16, 2023
b6d48ba
*RFL import: The rest of kernel::device (minus clk stuff)
asahilina Feb 16, 2023
43effe0
*RFL import: kernel::io_mem
asahilina Feb 16, 2023
873202f
*RFL import: kernel::of
asahilina Feb 16, 2023
5cbe984
*RFL import: kernel::platform
asahilina Feb 16, 2023
86fe42d
*RFL import: kernel::delay
asahilina Feb 16, 2023
578c008
rust: of: Add OF node abstraction
asahilina Oct 21, 2022
49d7a5a
rust: driver,of: Support passing ID tables to modpost for alias gener…
asahilina Dec 8, 2022
2a61320
rust: platform: add `ioremap_resource` and `get_resource` methods
Feb 8, 2022
694fb97
rust: kernel: platform: Add Device.set_dma_masks()
asahilina Sep 7, 2022
5e5260b
rust: Add ioremap_np support to io_mem & friends
asahilina Sep 21, 2022
609c338
*RFL import: macros::module params functionality & deps
asahilina Feb 16, 2023
2e38894
*RFL import: Rest of kernel::error::code::*
asahilina Feb 16, 2023
d5870ca
rust: bindings: Add resource_size wrapper
asahilina Sep 7, 2022
3f7ae71
rust: Allow feature new_uninit
asahilina Sep 8, 2022
bb0c93f
rust: Allow feature allocator_api
asahilina Feb 16, 2023
ea83867
*RFL import: kernel::KParamGuard & friends
asahilina Feb 16, 2023
507c7a1
*RFL import: kernel::error::Error Debug impl & dependencies
asahilina Feb 16, 2023
ad5770d
*RFL import: kernel::sync::smutex
asahilina Feb 16, 2023
0603bcf
iommu/io-pgtable: Add Apple UAT variant format
asahilina Aug 17, 2022
1ac44e8
rust: io_pgtable: Add the Apple UAT format abstraction
asahilina Feb 16, 2023
da4086c
rust: drm: ioctl: Add DRM ioctl abstraction
asahilina Feb 5, 2023
b6f2408
rust: drm: Add Device and Driver abstractions
asahilina Feb 5, 2023
558123b
rust: drm: file: Add File abstraction
asahilina Feb 5, 2023
2fd9d65
rust: drm: gem: Add GEM object abstraction
asahilina Feb 5, 2023
02c2e41
drm/gem-shmem: Export VM ops functions
asahilina Sep 7, 2022
73bd5e1
rust: drm: gem: shmem: Add DRM shmem helper abstraction
asahilina Feb 5, 2023
b9b7883
rust: drm: mm: Add DRM MM Range Allocator abstraction
asahilina Feb 11, 2023
4d2c649
rust: dma_fence: Add DMA Fence abstraction
asahilina Feb 11, 2023
85ccad9
rust: drm: syncobj: Add DRM Sync Object abstraction
asahilina Feb 11, 2023
c8ea6d4
drm/sched: Add can_run_job callback
asahilina Feb 11, 2023
e38bda4
rust: drm: sched: Add GPU scheduler abstraction
asahilina Feb 11, 2023
6781661
drm/gem: Add a flag to control whether objects can be exported
asahilina Feb 10, 2023
66fee7f
rust: drm: gem: Add set_exportable() method
asahilina Feb 11, 2023
020a96a
drm/asahi: Add the Asahi driver UAPI
asahilina Feb 16, 2023
cec0bcb
rust: bindings: Bind the Asahi DRM UAPI
asahilina Feb 16, 2023
be7a692
rust: macros: Add versions macro
asahilina Feb 16, 2023
9060476
drm/asahi: Add the Asahi driver for Apple AGX GPUs
asahilina Feb 16, 2023
a82420d
drm/asahi: buffer: Add stats methods
asahilina Feb 22, 2023
d9f4243
drm/asahi: render: Fix timestamp mixup
asahilina Feb 22, 2023
c3bd230
drm/asahi: UAPI: Add result/statistics UAPI
asahilina Feb 22, 2023
06e7fef
drm/asahi: workqueue: Add conversion to UAPI status struct
asahilina Feb 22, 2023
72c6c67
drm/asahi: Implement command feedback/statistics
asahilina Feb 22, 2023
06e3bc7
drm/asahi: Convert timeouts to faults if fault info is available
asahilina Feb 22, 2023
73a016c
drm/asahi: Skip timestamp commands if there is no result BO
asahilina Feb 22, 2023
f79b612
drm/asahi: Reject submissions with zero commands
asahilina Feb 28, 2023
864581d
drm/asahi: queue: Add more debugging IDs
asahilina Mar 1, 2023
522756e
drm/asahi: render: Always flush stamps on both vertex & frag
asahilina Mar 1, 2023
81de906
drm/apple: simplify IOMFB_THUNK_INOUT
jannau Jan 8, 2023
7f46467
dt-bindings: power: apple,pmgr-pwrstate: Add t8112 compatible
marcan Oct 17, 2022
0af5e4f
dt-bindings: arm: apple: apple,pmgr: Add t8112-pmgr compatible
jannau Feb 2, 2023
a2e7532
dt-bindings: watchdog: apple,wdt: Add t8112-wdt compatible
jannau Feb 2, 2023
bb5949c
dt-bindings: arm: cpus: Add apple,avalanche & blizzard compatibles
jannau Feb 2, 2023
1b294cd
dt-bindings: interrupt-controller: apple,aic2: Add apple,t8112-aic co…
jannau Feb 2, 2023
cd3d306
dt-bindings: iommu: apple,sart: Add apple,t8112-sart compatible string
jannau Feb 2, 2023
3fa77f3
dt-bindings: mailbox: apple,mailbox: Add t8112 compatibles
jannau Feb 2, 2023
dc3fd5f
dt-bindings: nvme: apple: Add apple,t8112-nvme-ans2 compatible string
jannau Feb 2, 2023
3130f20
dt-bindings: pci: apple,pcie: Add t8112 support
jannau Feb 2, 2023
c957acd
dt-bindings: pinctrl: apple,pinctrl: Add apple,t8112-pinctrl compatible
jannau Feb 2, 2023
4d7dea2
dt-bindings: i2c: apple,i2c: Add apple,t8112-i2c compatible
jannau Feb 2, 2023
a193595
dt-bindings: clock: apple,nco: Add t8112-nco compatible
jannau Feb 2, 2023
3ce4585
dt-bindings: dma: apple,admac: Add t8112-admac compatible
jannau Feb 2, 2023
2bd1339
dt-bindings: arm: apple: Add t8112 j413/j473/j493 compatibles
jannau Feb 2, 2023
589d5c5
arm64: dts: apple: t8112: Initial t8112 (M2) device trees
marcan Jun 27, 2022
8e65775
arm64: dts: apple: t8103: Disable unused PCIe ports
jannau Feb 13, 2023
51b6df5
arm64: dts: apple: t600x: Disable unused PCIe ports
jannau Feb 13, 2023
9a0e5ab
arm64: dts: apple: t8112: Add wlan/bt PCIe device nodes
jannau Feb 14, 2023
d527fd2
arm64: dts: apple: t8112: Add PMU NVMEM and SMC RTC/reboot nodes
marcan Feb 15, 2022
c946704
arm64: dts: apple: t8112-j493: Add spi3 node
jannau Feb 2, 2023
8c11fc0
arm64: dts: apple: t8112: Add SMC node to devicetree
marcan Feb 4, 2022
3dd8662
arm64: dts: apple: t8112*: Put in audio nodes
povik Feb 19, 2022
f896a52
arm64: dts: apple: t8112: Add dwc3 nodes
jannau Feb 2, 2023
72d4d52
arm64: dts: apple: Add backlight node to j413/j493
sithglan Feb 21, 2022
99cb2d0
arm64: dts: apple: t8112: Add mtp device nodes for j413/j493
jannau Feb 2, 2023
ceb486b
arm64: dts: apple: t8103: Add dwc3 nodes
marcan Nov 26, 2021
dbe87a0
dmaengine: apple-admac: Handle 'global' interrupt flags
povik Feb 5, 2023
ebd3bf0
drm/apple: Fix parse_string() memory leaks
asahilina Feb 15, 2023
d00883f
drm/apple: Fix bad error return
asahilina Feb 15, 2023
ee6bfa7
drm/apple: Set backlight level indirectly if no mode is set
jannau Jan 22, 2023
e4c2f4d
drm/apple: Use backlight_get_brightness()
jannau Jan 22, 2023
aad9b06
fixup! PCI: apple: Probe all GPIOs for availability first
jannau Mar 7, 2023
d57163d
PCI: apple: Set only available ports up
jannau Feb 13, 2023
91ff0ab
arm64: dts: apple: t8103: Add spi3/keyboard nodes
jannau Nov 25, 2021
5551408
arm64: dts: apple: Add PCI power enable GPIOs
marcan Feb 6, 2022
2c8716b
arm64: dts: apple: Add SMC node to t8103/t6001 devicetrees
marcan Feb 4, 2022
a0ba52f
arm64: dts: apple: Add PMU NVMEM and SMC RTC/reboot nodes
marcan Feb 15, 2022
0490bf8
arm64: dts: apple: Mark ATC USB AON domains as always-on
marcan Mar 2, 2022
9d781a9
arm64: dts: apple: Add backlight node to j293/j313
sithglan Feb 21, 2022
4ccc904
arm64: dts: apple: Keep PCIe power domain on
marcan Mar 17, 2022
9f7cba8
arm64: dts: apple: Add SMC node to t600x devicetrees
marcan Feb 4, 2022
ecc0d1a
arm64: dts: apple: Add PMU NVMEM and SMC RTC/reboot nodes
marcan Feb 15, 2022
460f079
arm64: dts: apple: t6000: Add spi1 node
marcan Dec 9, 2021
995677b
arm64: dts: apple: t600x-j314-j316: Add NOR flash node
marcan Dec 9, 2021
3b0e372
arm64: dts: apple: t600x: Add spi3 node
jannau Nov 11, 2021
0a4367f
arm64: dts: apple: j31[46]: Add keyboard nodes
jannau Nov 11, 2021
f0dbdd6
arm64: dts: apple: t600x: Add dwc3 nodes
jannau May 17, 2022
5ec8b5f
arm64: dts: apple: Add WiFi module and antenna properties
marcan Dec 21, 2021
9088d67
arm64: dts: apple: Add PCI power enable GPIOs
marcan Feb 6, 2022
8129fba
arm64: dts: apple: Add backlight node to j314/j316
marcan Mar 2, 2022
487043d
arm64: dts: apple: t8103: Fix spi4 power domain sort order
marcan Jun 27, 2022
2df967f
arm64: dts: apple: t600x: Add bluetooth device trees
marcan Jul 11, 2022
1a63ba8
arm64: dts: apple: t8103*: Put in audio nodes
povik Feb 19, 2022
35224a4
arm64: dts: apple: t600x-jxxx: Put in audio nodes
povik Mar 11, 2022
8d5362c
arm64: dts: apple: Drop 'integrated audio' from sound models
povik Aug 30, 2022
809653e
arm64: dts: apple: t6001-j375c: Add USB3 hub GPIO initialization
marcan Oct 17, 2022
260d191
arch: arm64: apple: Add missing power state deps for display
jannau Jan 25, 2022
011652e
arch: arm64: apple: t600x: Mark USB and PCIe as "dma-coherent"
jannau Apr 24, 2022
719a17d
arch: arm64: apple: Add display controller related device tree nodes
marcan Sep 19, 2021
5937bf3
arch: arm64: apple: t600x: Add display controller related device tree…
jannau Mar 11, 2022
32ccda0
arch: arm64: apple: t8103: Add connector type property for DCP*
jannau Oct 3, 2022
6b2fbba
arch: arm64: apple: t600x: Add connector type property for DCP*
jannau Oct 22, 2022
2b62347
arm64: dts: apple: t8103: Add PWM controller
Oct 28, 2022
e031b5d
arm64: dts: apple: t8112: Add PWM controller
Oct 28, 2022
b764ebb
arm64: dts: apple: t600x: Add PWM controller
Oct 28, 2022
5838d87
arm64: dts: apple: t8103: Add eFuses node
svenpeter42 Nov 15, 2022
5ab2e1e
arm64: dts: apple: t8103: Add ATCPHY node
svenpeter42 Nov 30, 2022
83b78a2
arch: arm64: dts: apple: t6000: Add eFuses node
ArcaneNibble Nov 15, 2022
e56ad4f
arch: arm64: dts: apple: t600x: Add ATCPHY nodes
ArcaneNibble Nov 15, 2022
4caeef7
arch: arm64: apple: Add dcp panel node for t8103 based laptops and imacs
jannau Oct 31, 2022
d09219d
arch: arm64: apple: Add dcp panel node for t600x based laptops
jannau Oct 31, 2022
d9b427e
arm64: dts: apple: t8112: Add eFuses node
jannau Nov 15, 2022
2c73189
arm64: dts: apple: t8112: Add ATCPHY nodes
jannau Nov 15, 2022
717839f
arm64: dts: apple: t8112: Add dcp/disp0 nodes
jannau Nov 20, 2022
f110e42
scripts/dtc: Add support for floating-point literals
asahilina Nov 2, 2022
aea2f4c
arm64: dts: apple: t8103*: Add GPU nodes
asahilina Aug 17, 2022
34cb8c3
arm64: dts: Add GPU performance data to t8103.dts
asahilina Oct 21, 2022
fbc9344
arm64: dts: Add power data for t8103
asahilina Nov 2, 2022
5e879d6
arm64: dts: Add t600x GPU nodes
asahilina Nov 2, 2022
fdbca28
arm64: dts: t8103: Add GPU leak coefficients
asahilina Nov 4, 2022
339b2a2
arm64: dts: apple: Add no-map to GPU reserved-memory nodes
asahilina Nov 9, 2022
d99ceb8
arm64: dts: apple: Add GPU nodes to T8112
asahilina Nov 25, 2022
dad177e
arm64: dts: apple: Add GPU firmware versions to t8113/t600x
asahilina Nov 25, 2022
76e8a9f
arm64: dts: apple: t600x: Add the NVRAM bindings
Oct 29, 2022
29c2ff8
arm64: dts: apple: t8112: Add the NVRAM bindings
Oct 29, 2022
1072a88
arm64: dts: apple: t8103: Add the NVRAM bindings
Oct 29, 2022
054bd2c
arm64: dts: apple: t600x: Add DCP power domain to missing devices
marcan Dec 12, 2022
5c91876
arm64: dts: apple: t8103: Add DCP power domain to missing devices
marcan Dec 12, 2022
0b23d78
arm64: dts: apple: t8112: Add DCP power domain to missing devices
marcan Dec 12, 2022
3f8b4db
arm64: dts: apple: t8103: Add missing ps_pmp dependency to ps_gfx
jannau Dec 30, 2022
220d698
arm64: dts: apple: t600x: Add "ps_disp0_cpu0" as resets for dcp
jannau Jan 8, 2023
e855f3d
arm64: dts: apple: t8103: Add "ps_disp0_cpu0" as resets for dcp
jannau Jan 8, 2023
a89511a
arm64: dts: apple: t8112: Add "ps_disp0_cpu0" as resets for dcp
jannau Jan 8, 2023
54adb61
arm64: dts: apple: j314/j316: Disable ATC3_USB_AON power domain
marcan Mar 11, 2023
eb03ef7
arm64: dts: apple: HACK: Make ans2 PD always on
marcan Mar 11, 2023
b4adc8d
fixup! ASoC: apple: Add macaudio machine driver
Feb 23, 2023
72d241b
soc: apple: rtkit: Add register dump decoding to crashlog
asahilina Jan 23, 2023
91ca104
soc: apple: rtkit: Add a private pointer to apple_rtkit_shmem
asahilina Jan 21, 2023
6e9c7aa
soc: apple: rtkit: Add devm_apple_rtkit_free()
jannau Jan 2, 2023
594737b
soc: apple: rtkit: Add apple_rtkit_idle() function
marcan Jan 23, 2023
deee42c
soc: apple: apple-pmgr-pwrstate: Switch to IRQ-safe mode
marcan Jan 23, 2023
8f5af81
PCI: apple: Increase link up timeout
marcan Jan 31, 2023
c5188ac
init/Kconfig: Only block on RANDSTRUCT for RUST
Conan-Kudo Dec 12, 2022
7fc6c8c
rust: Fixes for 1.67.0
marcan Mar 11, 2023
a292f99
scripts: Exclude Rust CUs with pahole
YakoYakoYokuYoku Aug 13, 2022
3cf8e76
drm/asahi: Remove the | 4 from pipeline addresses
asahilina Mar 3, 2023
df47f03
drm/asahi: Bump UAPI
asahilina Mar 3, 2023
9eaa35b
rust: Fix bindgen on arm64
marcan Mar 5, 2023
7e56f99
rust: helpers: Fix spinlock helper for various spinlock modes
marcan Mar 5, 2023
22e8f6d
rust: helpers: Add missing mutex_[un]lock() wrappers
marcan Mar 5, 2023
45739e5
fixup! drm/asahi: Add the Asahi driver UAPI
asahilina Mar 5, 2023
6460b47
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
asahilina Mar 6, 2023
bf31022
drm/scheduler: Clean up jobs when the scheduler is torn down.
asahilina Mar 6, 2023
4a60e4f
fixup! rust: drm: sched: Add GPU scheduler abstraction
asahilina Mar 6, 2023
36408c7
drm/asahi: Move GPU context drop inside refcount
asahilina Mar 6, 2023
b981dd6
drm/asahi: Promote two fields in vert/frag structs to all versions
asahilina Mar 6, 2023
6e979d1
drm/asahi: Remove padding from Vertex commands, move to 13_0B4+
asahilina Mar 6, 2023
4e956ec
drm/asahi: alloc: Make corruption ranges end-inclusive
asahilina Mar 6, 2023
4fe3779
rust: module_param: Tolerate a trailing newline when parsing
asahilina Oct 21, 2022
22ed3d3
drm/asahi: channel: Increase timeouts, add sleeping mode
asahilina Mar 7, 2023
35cdfed
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
asahilina Mar 7, 2023
0dd0667
drm/asahi: Clippy cleanups
asahilina Mar 7, 2023
7a1237a
drm/asahi: Add missing timeline syncobj signaling support
asahilina Mar 7, 2023
7bca4c7
drm/asahi: Merge conflict avoidance hack
marcan Mar 11, 2023
9d67659
soc: apple: rtkit: Check for failure to send mgmt messages & log
asahilina Oct 15, 2022
021fb28
soc: apple: rtkit: Log failure to send messages
asahilina Sep 26, 2022
b166f21
soc: apple: rtkit: Fix buffer address field width
asahilina Aug 17, 2022
c48e971
soc: apple: rtkit: Log failed buffer requests
asahilina Aug 17, 2022
58a76c2
soc: apple: rtkit: Add APPLE_RTKIT_PWR_STATE_INIT
jannau Jul 25, 2022
fd795e3
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
marcan Mar 14, 2023
fd4e8ef
soc: apple: mailbox: Add ASC/M3 mailbox driver
marcan Mar 14, 2023
62f3af8
soc: apple: rtkit: Port to the internal mailbox driver
marcan Mar 14, 2023
d49d048
mailbox: apple: Delete driver
marcan Mar 4, 2022
e0a12b2
soc: apple: Drop !APPLE_MAILBOX dependency
marcan Mar 14, 2023
29506b4
soc: apple: rtkit: Export non-devm init/free functions
asahilina Jan 21, 2023
c7dd93e
arm64: dts: apple: Add keyboard alias & layout props for t8112 laptops
marcan Mar 19, 2023
bbe7daa
drm/asahi: Increase GPU FW garbage threshold to 16MiB
asahilina Mar 15, 2023
1dcbf89
drm/scheduler: Fix race in drm_sched_entity_push_job()
asahilina Mar 15, 2023
1731caf
drm/asahi: Identify vertex attachment list
asahilina Mar 15, 2023
d45127e
drm/asahi: Track event sequences properly
asahilina Mar 15, 2023
88cf062
drm/asahi: Fix compute stats size (maybe)
asahilina Mar 15, 2023
d605918
drm/asahi: Identify no_preemption flag
asahilina Mar 15, 2023
76d0ff1
dockchannel-hid: Use DT data for M2 keyboard types
marcan Jul 30, 2022
66baae1
dockchannel-hid: Add device-link dependency on RTKit helper device
marcan Aug 9, 2022
cf7d654
HID: transport: spi: Check status message after transmits
jannau Dec 11, 2022
199fadc
HID: magicmouse: Add .reset_resume for SPI trackpads
jannau Dec 11, 2022
1417c4d
HID: transport: spi: Add suspend support
jannau Dec 11, 2022
275e03f
Merge branch 'refs/heads/bits/005-maintainers' into asahi-wip
marcan Mar 19, 2023
f43ae20
Merge branch 'refs/heads/bits/010-mailbox' into asahi-wip
marcan Mar 19, 2023
cbcdaa3
Merge branch 'refs/heads/bits/020-t6000-dart' into asahi-wip
marcan Mar 19, 2023
d1e49f1
Merge branch 'refs/heads/bits/030-misc' into asahi-wip
marcan Mar 19, 2023
ae253cc
Merge branch 'refs/heads/bits/040-dwc3' into asahi-wip
marcan Mar 19, 2023
4387d5c
Merge branch 'refs/heads/bits/050-nvme' into asahi-wip
marcan Mar 19, 2023
8dfb126
Merge branch 'refs/heads/bits/060-spi' into asahi-wip
marcan Mar 19, 2023
aaa3d06
Merge branch 'refs/heads/bits/070-audio' into asahi-wip
marcan Mar 19, 2023
94bfb1a
Merge branch 'refs/heads/bits/080-wifi' into asahi-wip
marcan Mar 19, 2023
62e9d25
Merge branch 'refs/heads/bits/090-spi-hid' into asahi-wip
marcan Mar 19, 2023
18ca535
Merge branch 'refs/heads/bits/110-smc' into asahi-wip
marcan Mar 19, 2023
d7e84e3
Merge branch 'refs/heads/bits/120-spmi' into asahi-wip
marcan Mar 19, 2023
ab4379c
Merge branch 'refs/heads/bits/140-pci-pwren' into asahi-wip
marcan Mar 19, 2023
9a53d45
Merge branch 'refs/heads/bits/150-xhci-firmware' into asahi-wip
marcan Mar 19, 2023
7b153cf
Merge branch 'refs/heads/bits/160-fpwm' into asahi-wip
marcan Mar 19, 2023
ba41e8e
Merge branch 'refs/heads/bits/170-atcphy' into asahi-wip
marcan Mar 19, 2023
b4187b0
Merge branch 'refs/heads/bits/200-dcp' into asahi-wip
marcan Mar 19, 2023
b2f59a4
Merge branch 'refs/heads/bits/210-gpu' into asahi-wip
marcan Mar 19, 2023
a610c43
drm/asahi: Identify and set barrier_type field
asahilina Mar 15, 2023
400cb96
4k iommu hack
asahilina Mar 21, 2023
bebe37f
arm64: dts: apple: HACK: Make pmp PD always on
asahilina Mar 21, 2023
61599c1
iommu hack for DCP
asahilina Mar 21, 2023
cbc8807
drm/asahi: Align GEM object sizes to the UAT page size
asahilina Mar 22, 2023
c15ef6a
shmem: 16K on 4K hack
asahilina Mar 22, 2023
0bc60d2
drm/apple: Align buffers to 16K page size
asahilina Mar 22, 2023
4de60ff
drm/asahi: Make multi-page TLB invals use the CPU page size.
asahilina Mar 22, 2023
38a6040
drm/asahi: Add a flag to panic (oops) on GPU crashes
asahilina Mar 22, 2023
56cd037
fixup! iommu/io-pgtable: Add Apple UAT variant format
asahilina Mar 22, 2023
b949ab7
fixup! rust: xarray: Add an abstraction for XArray
asahilina Mar 23, 2023
19c4d68
fixup! rust: drm: file: Add File abstraction
asahilina Mar 23, 2023
788bde6
drm/asahi: xarray & drm::file API updates
asahilina Mar 23, 2023
543d090
rust: uapi: Add UAPI crate
asahilina Mar 29, 2023
eacbab0
rust: ioctl: Move to the uapi crate
asahilina Mar 29, 2023
a925167
rust: drm: ioctl: Move to uapi crate
asahilina Mar 29, 2023
2336c0e
rust: Move asahi_drm bindings to uapi crate
asahilina Mar 29, 2023
334bd1f
drm/asahi: Move to uapi crate
asahilina Mar 29, 2023
d91817e
fixup! rust: drm: gem: shmem: Add DRM shmem helper abstraction
asahilina Apr 5, 2023
0cc3ada
rust: Fix container_of!()
asahilina Apr 5, 2023
1d97ab3
drm/scheduler: Fix UAF in drm_sched_fence_get_timeline_name
asahilina Apr 5, 2023
a195a93
drm/asahi: workqueue: Panic on context inval timeouts if requested
asahilina Apr 5, 2023
b332914
drm/asahi: workqueue: Keep a Device reference here too
asahilina Apr 5, 2023
4b89724
drm/asahi: Drop completed work asynchronously
asahilina Apr 5, 2023
1ee90e2
drm/asahi: Also free unused GPU contexts asynchronously
asahilina Apr 5, 2023
8865e09
drm/asahi: queue: Drop redundant mutex around Buffer
asahilina Apr 5, 2023
742f176
drm/asahi: workqueue: Hold a Buffer reference in GpuContextData
asahilina Apr 5, 2023
f749073
drm/asahi: Fail params requests if the GPU is crashed
asahilina Apr 6, 2023
ff248d3
I don't know how to fix drm_sched.
asahilina Apr 7, 2023
745b345
fixup! drm/asahi: Add the Asahi driver UAPI
asahilina Apr 7, 2023
ec153d7
drm/asahi: Identify more Render fields & update to UAPI 10007
asahilina Apr 7, 2023
c195eaf
drm/asahi: Add a separate debug flag for DRM_IOCTL_ASAHI_SUBMIT
jannau Apr 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions Documentation/core-api/printk-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,38 @@ Examples::
%p4cc Y10 little-endian (0x20303159)
%p4cc NV12 big-endian (0xb231564e)

Generic FourCC code
-------------------

::
%p4c[hnbl] gP00 (0x67503030)

Print a generic FourCC code, as both ASCII characters and its numerical
value as hexadecimal.

The additional ``h``, ``r``, ``b``, and ``l`` specifiers are used to specify
host, reversed, big or little endian order data respectively. Host endian
order means the data is interpreted as a 32-bit integer and the most
significant byte is printed first; that is, the character code as printed
matches the byte order stored in memory on big-endian systems, and is reversed
on little-endian systems.

Passed by reference.

Examples for a little-endian machine, given &(u32)0x67503030::

%p4ch gP00 (0x67503030)
%p4cl gP00 (0x67503030)
%p4cb 00Pg (0x30305067)
%p4cr 00Pg (0x30305067)

Examples for a big-endian machine, given &(u32)0x67503030::

%p4ch gP00 (0x67503030)
%p4cl 00Pg (0x30305067)
%p4cb gP00 (0x67503030)
%p4cr 00Pg (0x30305067)

Rust
----

Expand Down
15 changes: 15 additions & 0 deletions Documentation/devicetree/bindings/arm/apple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ description: |
- MacBook Air (M1, 2020)
- iMac (24-inch, M1, 2021)

Devices based on the "M2" SoC:

- MacBook Air (M2, 2022)
- MacBook Pro (13-inch, M2, 2022)
- Mac mini (M2, 2023)

And devices based on the "M1 Pro", "M1 Max" and "M1 Ultra" SoCs:

- MacBook Pro (14-inch, M1 Pro, 2021)
Expand Down Expand Up @@ -70,6 +76,15 @@ properties:
- const: apple,t8103
- const: apple,arm-platform

- description: Apple M2 SoC based platforms
items:
- enum:
- apple,j413 # MacBook Air (M2, 2022)
- apple,j473 # Mac mini (M2, 2023)
- apple,j493 # MacBook Pro (13-inch, M2, 2022)
- const: apple,t8112
- const: apple,arm-platform

- description: Apple M1 Pro SoC based platforms
items:
- enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
items:
- enum:
- apple,t8103-pmgr
- apple,t8112-pmgr
- apple,t6000-pmgr
- const: apple,pmgr
- const: syscon
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/arm/cpus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ properties:

compatible:
enum:
- apple,avalanche
- apple,blizzard
- apple,icestorm
- apple,firestorm
- arm,arm710t
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/clock/apple,nco.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
- enum:
- apple,t6000-nco
- apple,t8103-nco
- apple,t8112-nco
- const: apple,nco

clocks:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/dma/apple,admac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ properties:
- enum:
- apple,t6000-admac
- apple,t8103-admac
- apple,t8112-admac
- const: apple,admac

reg:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/i2c/apple,i2c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ properties:
items:
- enum:
- apple,t8103-i2c
- apple,t8112-i2c
- apple,t6000-i2c
- const: apple,i2c

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@ description: |
properties:
compatible:
items:
- const: apple,t6000-aic
- enum:
- apple,t8112-aic
- apple,t6000-aic
- const: apple,aic2

interrupt-controller: true

'#interrupt-cells':
const: 4
minimum: 3
maximum: 4
description: |
The 1st cell contains the interrupt type:
- 0: Hardware IRQ
- 1: FIQ

The 2nd cell contains the die ID.
The 2nd cell contains the die ID (only present on apple,t6000-aic).

The next cell contains the interrupt number.
- HW IRQs: interrupt number
Expand Down Expand Up @@ -109,6 +112,19 @@ additionalProperties: false

allOf:
- $ref: /schemas/interrupt-controller.yaml#
- if:
properties:
compatible:
contains:
const: apple,t8112-aic
then:
properties:
'#interrupt-cells':
const: 3
else:
properties:
'#interrupt-cells':
const: 4

examples:
- |
Expand Down
10 changes: 7 additions & 3 deletions Documentation/devicetree/bindings/iommu/apple,sart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ description:

properties:
compatible:
enum:
- apple,t6000-sart
- apple,t8103-sart
oneOf:
- items:
- const: apple,t8112-sart
- const: apple,t6000-sart
- enum:
- apple,t6000-sart
- apple,t8103-sart

reg:
maxItems: 1
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ properties:
items:
- enum:
- apple,t8103-asc-mailbox
- apple,t8112-asc-mailbox
- apple,t6000-asc-mailbox
- const: apple,asc-mailbox-v4

Expand All @@ -39,6 +40,7 @@ properties:
items:
- enum:
- apple,t8103-m3-mailbox
- apple,t8112-m3-mailbox
- apple,t6000-m3-mailbox
- const: apple,m3-mailbox-v2

Expand Down
5 changes: 4 additions & 1 deletion Documentation/devicetree/bindings/nvme/apple,nvme-ans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ properties:
items:
- enum:
- apple,t8103-nvme-ans2
- apple,t8112-nvme-ans2
- apple,t6000-nvme-ans2
- const: apple,nvme-ans2

Expand Down Expand Up @@ -65,7 +66,9 @@ if:
properties:
compatible:
contains:
const: apple,t8103-nvme-ans2
enum:
- apple,t8103-nvme-ans2
- apple,t8112-nvme-ans2
then:
properties:
power-domains:
Expand Down
52 changes: 49 additions & 3 deletions Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ properties:
items:
- enum:
- apple,t8103-pcie
- apple,t8112-pcie
- apple,t6000-pcie
- const: apple,pcie

Expand Down Expand Up @@ -71,6 +72,27 @@ properties:
power-domains:
maxItems: 1

patternProperties:
"^pci@":
$ref: /schemas/pci/pci-bus.yaml#
type: object
description: A single PCI root port

properties:
reg:
maxItems: 1

pwren-gpios:
description: Optional GPIO to power on the device
maxItems: 1

required:
- reset-gpios
- interrupt-controller
- "#interrupt-cells"
- interrupt-map-mask
- interrupt-map

required:
- compatible
- reg
Expand Down Expand Up @@ -141,34 +163,58 @@ examples:
pinctrl-0 = <&pcie_pins>;
pinctrl-names = "default";

pci@0,0 {
port00: pci@0,0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
reset-gpios = <&pinctrl_ap 152 0>;

#address-cells = <3>;
#size-cells = <2>;
ranges;

interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &port00 0 0 0 0>,
<0 0 0 2 &port00 0 0 0 1>,
<0 0 0 3 &port00 0 0 0 2>,
<0 0 0 4 &port00 0 0 0 3>;
};

pci@1,0 {
port01: pci@1,0 {
device_type = "pci";
reg = <0x800 0x0 0x0 0x0 0x0>;
reset-gpios = <&pinctrl_ap 153 0>;

#address-cells = <3>;
#size-cells = <2>;
ranges;

interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &port01 0 0 0 0>,
<0 0 0 2 &port01 0 0 0 1>,
<0 0 0 3 &port01 0 0 0 2>,
<0 0 0 4 &port01 0 0 0 3>;
};

pci@2,0 {
port02: pci@2,0 {
device_type = "pci";
reg = <0x1000 0x0 0x0 0x0 0x0>;
reset-gpios = <&pinctrl_ap 33 0>;

#address-cells = <3>;
#size-cells = <2>;
ranges;

interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &port02 0 0 0 0>,
<0 0 0 2 &port02 0 0 0 1>,
<0 0 0 3 &port02 0 0 0 2>,
<0 0 0 4 &port02 0 0 0 3>;
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ properties:
items:
- enum:
- apple,t8103-pinctrl
- apple,t8112-pinctrl
- apple,t6000-pinctrl
- const: apple,pinctrl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ properties:
items:
- enum:
- apple,t8103-pmgr-pwrstate
- apple,t8112-pmgr-pwrstate
- apple,t6000-pmgr-pwrstate
- const: apple,pmgr-pwrstate

Expand Down
51 changes: 51 additions & 0 deletions Documentation/devicetree/bindings/pwm/apple,s5l-fpwm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/apple,s5l-fpwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple FPWM controller

maintainers:
- asahi@lists.linux.dev
- Sasha Finkelstein <fnkl.kernel@gmail.com>

description: PWM controller used for keyboard backlight on ARM Macs

properties:
compatible:
items:
- enum:
- apple,t8103-fpwm
- apple,t6000-fpwm
- apple,t8112-fpwm
- const: apple,s5l-fpwm

reg:
maxItems: 1

clocks:
maxItems: 1

power-domains:
maxItems: 1

"#pwm-cells":
const: 2

required:
- compatible
- reg
- clocks

additionalProperties: false

examples:
- |
pwm@235044000 {
compatible = "apple,t8103-fpwm", "apple,s5l-fpwm";
reg = <0x35044000 0x4000>;
power-domains = <&ps_fpwm1>;
clocks = <&clkref>;
#pwm-cells = <2>;
};
Loading