Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
0a490a5
WIP: drm/apple: Add DCP display driver
alyssarosenzweig Aug 27, 2021
6f762fa
drm: apple: Relicense DCP driver as dual MIT / GPL v2.0
jannau Mar 20, 2022
c167157
drm/apple: Start coprocessor on probe
jannau Jul 25, 2022
68667e9
HACK: drm/apple: avoid DCP swaps without attached surfaces
jannau Jan 15, 2022
599a22c
drm/apple: Use a device tree defined clock for dcpep_cb_get_frequency
jannau Jul 31, 2022
7084566
drm/apple: Fix rt_bandwidth for t600x
jannau Mar 12, 2022
73595db
drm/apple: Add nop sr_set_uint_prop callback for t600x-dcp
jannau Mar 12, 2022
9dd6b72
drm/apple: Reference only swapped out framebuffers
jannau Mar 12, 2022
ce16599
drm/apple: Use "apple,asc-dram-mask" for rtkit iovas
jannau Mar 12, 2022
4fbb78e
drm/apple: Implement suspend/resume for DCP
alyssarosenzweig Mar 22, 2022
966eef6
drm/apple: dcp: fix TRAMPOLINE_IN macro
jannau Apr 14, 2022
4f21d6c
drm/apple: Switch to nonblocking commit handling
jannau Jul 31, 2022
d7e26bf
drm/apple: Log callbacks with their tag as debug output
jannau Jul 31, 2022
bb23cf9
drm/apple: Add DCP interface definitions used on t600x
jannau Jul 31, 2022
c09885f
drm/apple: Clear used callback/cookie on dcp_ack
jannau Jul 31, 2022
94ea416
drm/apple: Add t600x support
jannau Jul 31, 2022
1f1406e
drm/apple: toggle power only when active state changes
jannau Jun 6, 2022
81ae9dd
drm/apple: Add somewhat useful debug prints
jannau Jul 31, 2022
947b83b
drm/apple: Add less tons of questionable debug prints
jannau Jul 31, 2022
fbe1b01
drm/apple: implement read_edt_data
jannau Jun 5, 2022
be5d97b
drm/apple: clear callback's output data
jannau Jun 5, 2022
1d0a590
drm/apple: Support memory unmapping/freeing
jannau Jun 5, 2022
78e4063
WIP: drm/apple: Change the way to clear unused surfaces
jannau Jun 6, 2022
b8b16f5
drm/apple: laod piodma dev via explicit phandle
jannau Sep 26, 2022
2c78c62
drm/apple: Fix kzalloc in dcp_flush()
hoshinolina Sep 28, 2022
2b6a593
drm/apple: Allow modesets even when disconnected
jannau Oct 1, 2022
2149418
drm/apple: Mark the connecter on init only with modes as connected
jannau Oct 1, 2022
9e85276
drm/apple: make note about drm.mode_config.max_width/height
jannau Oct 1, 2022
87b86b2
drm/apple: Split dcpep/iomfb out of dcp.c
jannau Oct 2, 2022
d269faf
WIP: add header test target copied from i915
jannau Oct 3, 2022
e3192b9
gpu: drm: apple: Use connector types from devicetree
jannau Oct 22, 2022
f619cfc
drm: apple: Fix connector state on devices with integrated display
jannau Oct 5, 2022
da5669b
drm: apple: Replace atomic refcount with kref
jannau Oct 5, 2022
c431be4
gpu: drm: apple: Start using tracepoints
jannau Oct 8, 2022
cbc08ca
gpu: drm: apple: Unbreak multiple DCP plane <-> crtc matching
jannau Oct 11, 2022
fd08fda
gpu: drm: apple: Add support for DRM_FORMAT_XRGB2101010
jannau Oct 11, 2022
a07bbdf
gpu: drm: apple: Add apple_drm_gem_dumb_create()
jannau Oct 11, 2022
b77cbd3
gpu: drm: apple: Reject modes without valid color mode
jannau Oct 12, 2022
b0c7734
gpu: drm: apple: Convert 2 non-assert WARN()s to dev_err()
jannau Oct 12, 2022
082c552
gpu: drm: apple: Send an disconnected hotplug event on ASC crash
jannau Oct 20, 2022
08462d4
gpu: drm: apple: Add dcp_crtc_atomic_check
jannau Oct 20, 2022
6970733
gpu: drm: apple: Fix DCP run time PM
jannau Oct 21, 2022
28f88cb
gpu: drm: apple: Fix DCP initialisation
jannau Oct 21, 2022
9c44ba0
gpu: drm: apple: Specify correct number of DCP*s for drm_vblank_init
jannau Oct 21, 2022
ce8ba86
gpu: drm: apple: Remove other framebuffers before DRM setup
jannau Oct 25, 2022
7216d43
gpu: drm: apple: Support opaque pixel formats
jannau Oct 27, 2022
cea6660
gpu: drm: apple: Provide notch-less modes
jannau Oct 25, 2022
597a44c
gpu: drm: apple: Fix shutdown of partially probed dcp
jannau Nov 6, 2022
9b4b853
gpu: drm: apple: Set maximal framebuffer size correctly
jannau Nov 6, 2022
52a1a73
gpu: drm: apple: Prevent NULL pointer in dcp_hotplug
jannau Nov 6, 2022
66eb8d2
gpu: drm: apple: Update date last update
jannau Nov 6, 2022
6c92322
gpu: drm: apple: iomfb: Use FIELD_{GET,PREP}
jannau Oct 30, 2022
03330cc
gpu: drm: apple: iomfb: Unify call and callback channels
jannau Oct 30, 2022
8eb9f84
gpu: drm: apple: "match" PMU/backlight services on init
jannau Oct 30, 2022
a262aad
gpu: drm: apple: Brightness control via atomic commits
jannau Oct 31, 2022
c9952fb
HACK: gpu: drm: apple: j314/j316: Ignore 120 Hz mode for integrated d…
jannau Nov 15, 2022
78fd7c1
drm/apple: Fix suspend/resume handling
marcan Nov 17, 2022
6330549
gpu: drm: apple: Avoid drm_fb_dma_get_gem_addr
jannau Nov 20, 2022
c2843da
drm/apple: register backlight device after IOMFB start
jannau Nov 22, 2022
95c8931
drm/apple: Add trace point for display brightness
jannau Nov 22, 2022
4d1637e
drm/apple: Implement drm_crtc_helper_funcs.mode_fixup
jannau Nov 23, 2022
fb3c5c8
drm/apple: Read display dimensions from devicetree
jannau Nov 24, 2022
c0aaa8c
drm/apple: Wait for power on request to complete synchronously
hoshinolina Nov 27, 2022
eeda4e1
drm/apple: Remove obsolete ignore_swap_complete
hoshinolina Nov 27, 2022
9201892
drm/asahi: Fix backlight restores on non-microLED devices
hoshinolina Nov 27, 2022
591e07d
drm/apple: Schedule backlight update on enable_backlight_message_ap_g…
jannau Nov 27, 2022
426ff66
drm/apple: Report "PMUS.Temperature" only for mini-LED backlights
jannau Nov 27, 2022
4c17452
drm/apple: Check if DCP firmware is supported
jannau Dec 4, 2022
48400e2
drm/apple: Disable fake vblank IRQ machinery
hoshinolina Nov 27, 2022
130af83
gpu: drm: apple: Parse color modes completely
jannau Dec 11, 2022
221bc7d
gpu: drm: apple: Skip parsing elements of virtual timing modes
jannau Dec 11, 2022
7f3afdd
gpu: drm: apple: Add tracing for color and timing modes
jannau Dec 11, 2022
39907e0
gpu: drm: apple: Prefer SDR color modes
jannau Dec 11, 2022
9f3a938
gpu: drm: apple: Add IOMobileFramebufferAP::get_color_remap_mode
jannau Dec 11, 2022
f742fdf
gpu: drm: apple: reenable support for {A,X}RGB2101010
jannau Dec 11, 2022
ac1943c
gpu: drm: apple: Add show_notch module parameter
jannau Dec 11, 2022
f81fd0b
Revert "gpu: drm: apple: reenable support for {A,X}RGB2101010"
jannau Dec 12, 2022
5d0c8aa
drm/apple: Enable 10-bit mode & set colorspace to native
marcan Dec 25, 2022
9e381a9
gpu: drm: apple: Clear all surfaces on startup
jannau Dec 31, 2022
c273b95
drm/apple: Update swap handling
jannau Jan 2, 2023
6b6c5f4
gpu: drm: apple: Use drm_aperture_remove_conflicting_framebuffers
jannau Dec 22, 2022
3f9a76c
drm/apple: Use drm_module_platform_driver
jannau Dec 31, 2022
2d6a123
drm/apple: Allocate drm objects according to drm's expectations
jannau Jan 2, 2023
d49abbd
gpu: drm: apple: Use components to avoid deferred probing
jannau Dec 29, 2022
043e429
gpu: drm: apple: Wait for iomfb initialization
jannau Dec 29, 2022
81de906
drm/apple: simplify IOMFB_THUNK_INOUT
jannau Jan 8, 2023
ebd3bf0
drm/apple: Fix parse_string() memory leaks
hoshinolina Feb 15, 2023
d00883f
drm/apple: Fix bad error return
hoshinolina 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
a390290
drm/apple: Support color transformation matrices
jannau Mar 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,13 @@ L: linux-input@vger.kernel.org
S: Odd fixes
F: drivers/input/mouse/bcm5974.c

APPLE DRM DISPLAY DRIVER
M: Alyssa Rosenzweig <alyssa@rosenzweig.io>
L: dri-devel@lists.freedesktop.org
S: Maintained
T: git git://anongit.freedesktop.org/drm/drm-misc
F: drivers/gpu/drm/apple/

APPLE PCIE CONTROLLER DRIVER
M: Alyssa Rosenzweig <alyssa@rosenzweig.io>
M: Marc Zyngier <maz@kernel.org>
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ source "drivers/gpu/drm/solomon/Kconfig"

source "drivers/gpu/drm/sprd/Kconfig"

source "drivers/gpu/drm/apple/Kconfig"

config DRM_HYPERV
tristate "DRM Support for Hyper-V synthetic video device"
depends on DRM && PCI && MMU && HYPERV
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ obj-$(CONFIG_DRM_XEN) += xen/
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
obj-$(CONFIG_DRM_LIMA) += lima/
obj-$(CONFIG_DRM_PANFROST) += panfrost/
obj-$(CONFIG_DRM_APPLE) += apple/
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
obj-$(CONFIG_DRM_MCDE) += mcde/
obj-$(CONFIG_DRM_TIDSS) += tidss/
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/apple/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.hdrtest
11 changes: 11 additions & 0 deletions drivers/gpu/drm/apple/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only OR MIT
config DRM_APPLE
tristate "DRM Support for Apple display controllers"
depends on DRM && OF && ARM64
depends on ARCH_APPLE || COMPILE_TEST
select DRM_KMS_HELPER
select DRM_KMS_DMA_HELPER
select DRM_GEM_DMA_HELPER
select VIDEOMODE_HELPERS
help
Say Y if you have an Apple Silicon chipset.
29 changes: 29 additions & 0 deletions drivers/gpu/drm/apple/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR MIT

CFLAGS_trace.o = -I$(src)

appledrm-y := apple_drv.o

apple_dcp-y := dcp.o dcp_backlight.o iomfb.o parser.o
apple_dcp-$(CONFIG_TRACING) += trace.o

apple_piodma-y := dummy-piodma.o

obj-$(CONFIG_DRM_APPLE) += appledrm.o
obj-$(CONFIG_DRM_APPLE) += apple_dcp.o
obj-$(CONFIG_DRM_APPLE) += apple_piodma.o

# header test

# exclude some broken headers from the test coverage
no-header-test := \

always-y += \
$(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
$(shell cd $(srctree)/$(src) && find * -name '*.h')))

quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@

$(obj)/%.hdrtest: $(src)/%.h FORCE
$(call if_changed_dep,hdrtest)
Loading