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

DCP: Initial support for overlay blending #304

Closed
Closed
Changes from 1 commit
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
f8823db
WIP: drm/apple: Add DCP display driver
alyssarosenzweig Aug 27, 2021
86b45c4
drm: apple: Relicense DCP driver as dual MIT / GPL v2.0
jannau Mar 20, 2022
d4be691
drm/apple: Start coprocessor on probe
jannau Jul 25, 2022
37b4d95
HACK: drm/apple: avoid DCP swaps without attached surfaces
jannau Jan 15, 2022
0b2ac98
drm/apple: Use a device tree defined clock for dcpep_cb_get_frequency
jannau Jul 31, 2022
d8deec9
drm/apple: Fix rt_bandwidth for t600x
jannau Mar 12, 2022
0daef4b
drm/apple: Add nop sr_set_uint_prop callback for t600x-dcp
jannau Mar 12, 2022
8d5f859
drm/apple: Reference only swapped out framebuffers
jannau Mar 12, 2022
f0d394e
drm/apple: Use "apple,asc-dram-mask" for rtkit iovas
jannau Mar 12, 2022
99ae5e1
drm/apple: Implement suspend/resume for DCP
alyssarosenzweig Mar 22, 2022
81be5a4
drm/apple: dcp: fix TRAMPOLINE_IN macro
jannau Apr 14, 2022
81e3960
drm/apple: Switch to nonblocking commit handling
jannau Jul 31, 2022
2c7605e
drm/apple: Log callbacks with their tag as debug output
jannau Jul 31, 2022
7ebc05f
drm/apple: Add DCP interface definitions used on t600x
jannau Jul 31, 2022
5f09f1b
drm/apple: Clear used callback/cookie on dcp_ack
jannau Jul 31, 2022
d6d5a2b
drm/apple: Add t600x support
jannau Jul 31, 2022
78b34be
drm/apple: toggle power only when active state changes
jannau Jun 6, 2022
39ef20a
drm/apple: Add somewhat useful debug prints
jannau Jul 31, 2022
c84fe80
drm/apple: Add less tons of questionable debug prints
jannau Jul 31, 2022
8201904
drm/apple: implement read_edt_data
jannau Jun 5, 2022
5b9cd89
drm/apple: clear callback's output data
jannau Jun 5, 2022
7287c42
drm/apple: Support memory unmapping/freeing
jannau Jun 5, 2022
e678b16
WIP: drm/apple: Change the way to clear unused surfaces
jannau Jun 6, 2022
5ed0647
drm/apple: laod piodma dev via explicit phandle
jannau Sep 26, 2022
090829a
drm/apple: Fix kzalloc in dcp_flush()
asahilina Sep 28, 2022
2aa4e30
drm/apple: Allow modesets even when disconnected
jannau Oct 1, 2022
d6714a9
drm/apple: Mark the connecter on init only with modes as connected
jannau Oct 1, 2022
0951b07
drm/apple: make note about drm.mode_config.max_width/height
jannau Oct 1, 2022
3c067da
drm/apple: Split dcpep/iomfb out of dcp.c
jannau Oct 2, 2022
fb4f143
WIP: add header test target copied from i915
jannau Oct 3, 2022
2e8c489
gpu: drm: apple: Use connector types from devicetree
jannau Oct 22, 2022
fbe6643
drm: apple: Fix connector state on devices with integrated display
jannau Oct 5, 2022
2083f98
drm: apple: Replace atomic refcount with kref
jannau Oct 5, 2022
63045ce
gpu: drm: apple: Start using tracepoints
jannau Oct 8, 2022
a1a854d
gpu: drm: apple: Unbreak multiple DCP plane <-> crtc matching
jannau Oct 11, 2022
067a850
gpu: drm: apple: Add support for DRM_FORMAT_XRGB2101010
jannau Oct 11, 2022
50dd8af
gpu: drm: apple: Add apple_drm_gem_dumb_create()
jannau Oct 11, 2022
c326f1f
gpu: drm: apple: Reject modes without valid color mode
jannau Oct 12, 2022
403db2a
gpu: drm: apple: Convert 2 non-assert WARN()s to dev_err()
jannau Oct 12, 2022
e8b8acb
gpu: drm: apple: Send an disconnected hotplug event on ASC crash
jannau Oct 20, 2022
a7b51f6
gpu: drm: apple: Add dcp_crtc_atomic_check
jannau Oct 20, 2022
73343e6
gpu: drm: apple: Fix DCP run time PM
jannau Oct 21, 2022
df6612d
gpu: drm: apple: Fix DCP initialisation
jannau Oct 21, 2022
1679769
gpu: drm: apple: Specify correct number of DCP*s for drm_vblank_init
jannau Oct 21, 2022
1047be4
gpu: drm: apple: Remove other framebuffers before DRM setup
jannau Oct 25, 2022
5fa2bb0
gpu: drm: apple: Support opaque pixel formats
jannau Oct 27, 2022
d290284
gpu: drm: apple: Provide notch-less modes
jannau Oct 25, 2022
6f3ef5a
gpu: drm: apple: Fix shutdown of partially probed dcp
jannau Nov 6, 2022
2d0900b
gpu: drm: apple: Set maximal framebuffer size correctly
jannau Nov 6, 2022
1540690
gpu: drm: apple: Prevent NULL pointer in dcp_hotplug
jannau Nov 6, 2022
68f1320
gpu: drm: apple: Update date last update
jannau Nov 6, 2022
a94ad6a
gpu: drm: apple: iomfb: Use FIELD_{GET,PREP}
jannau Oct 30, 2022
6a37496
gpu: drm: apple: iomfb: Unify call and callback channels
jannau Oct 30, 2022
efb55f1
gpu: drm: apple: "match" PMU/backlight services on init
jannau Oct 30, 2022
d13188e
gpu: drm: apple: Brightness control via atomic commits
jannau Oct 31, 2022
4160067
HACK: gpu: drm: apple: j314/j316: Ignore 120 Hz mode for integrated d…
jannau Nov 15, 2022
c974fbe
drm/apple: Fix suspend/resume handling
marcan Nov 17, 2022
38d13f3
gpu: drm: apple: Avoid drm_fb_dma_get_gem_addr
jannau Nov 20, 2022
b50cd3b
drm/apple: register backlight device after IOMFB start
jannau Nov 22, 2022
16f4bd5
drm/apple: Add trace point for display brightness
jannau Nov 22, 2022
a08ed8b
drm/apple: Implement drm_crtc_helper_funcs.mode_fixup
jannau Nov 23, 2022
efb0e2c
drm/apple: Read display dimensions from devicetree
jannau Nov 24, 2022
ef6633e
drm/apple: Wait for power on request to complete synchronously
asahilina Nov 27, 2022
ec845e8
drm/apple: Remove obsolete ignore_swap_complete
asahilina Nov 27, 2022
cbbb60b
drm/asahi: Fix backlight restores on non-microLED devices
asahilina Nov 27, 2022
e7029ae
drm/apple: Schedule backlight update on enable_backlight_message_ap_g…
jannau Nov 27, 2022
c504647
drm/apple: Report "PMUS.Temperature" only for mini-LED backlights
jannau Nov 27, 2022
2d8b935
drm/apple: Check if DCP firmware is supported
jannau Dec 4, 2022
f21ab25
drm/apple: Disable fake vblank IRQ machinery
asahilina Nov 27, 2022
7db59ca
gpu: drm: apple: Parse color modes completely
jannau Dec 11, 2022
8ef5c89
gpu: drm: apple: Skip parsing elements of virtual timing modes
jannau Dec 11, 2022
cf10acc
gpu: drm: apple: Add tracing for color and timing modes
jannau Dec 11, 2022
51addfa
gpu: drm: apple: Prefer SDR color modes
jannau Dec 11, 2022
9cb752b
gpu: drm: apple: Add IOMobileFramebufferAP::get_color_remap_mode
jannau Dec 11, 2022
af384fc
gpu: drm: apple: reenable support for {A,X}RGB2101010
jannau Dec 11, 2022
19729ef
gpu: drm: apple: Add show_notch module parameter
jannau Dec 11, 2022
00b312f
Revert "gpu: drm: apple: reenable support for {A,X}RGB2101010"
jannau Dec 12, 2022
1d2461a
drm/apple: Enable 10-bit mode & set colorspace to native
marcan Dec 25, 2022
9bb7faf
gpu: drm: apple: Clear all surfaces on startup
jannau Dec 31, 2022
7799a00
drm/apple: Update swap handling
jannau Jan 2, 2023
9924139
gpu: drm: apple: Use drm_aperture_remove_conflicting_framebuffers
jannau Dec 22, 2022
0296047
drm/apple: Use drm_module_platform_driver
jannau Dec 31, 2022
266101c
drm/apple: Allocate drm objects according to drm's expectations
jannau Jan 2, 2023
94c2156
gpu: drm: apple: Use components to avoid deferred probing
jannau Dec 29, 2022
638ca87
gpu: drm: apple: Wait for iomfb initialization
jannau Dec 29, 2022
b91c24f
drm/apple: simplify IOMFB_THUNK_INOUT
jannau Jan 8, 2023
fc345e4
drm/apple: Fix parse_string() memory leaks
asahilina Feb 15, 2023
24bf766
drm/apple: Fix bad error return
asahilina Feb 15, 2023
22e7a65
drm/apple: Set backlight level indirectly if no mode is set
jannau Jan 22, 2023
5c13054
drm/apple: Use backlight_get_brightness()
jannau Jan 22, 2023
e9aac13
drm/apple: Move panel options to its own sub-struct
jannau Mar 26, 2023
232850f
drm/apple: Align buffers to 16K page size
asahilina Mar 22, 2023
99e9b86
drm/apple: purge unused dcp_update_notify_clients_dcp
jannau Feb 28, 2023
2fb65ab
drm/apple: Add callbacks triggered by last_client_close_dcp()
jannau Jan 8, 2023
3547ab1
drm/apple: Add support for the macOS 13.2 DCP firmware
jannau Feb 17, 2023
7e4b690
drm/apple: ignore surf[3] in clear swap calls
jannau Mar 9, 2023
b268b51
drm/apple: Support color transformation matrices
jannau Mar 12, 2023
d8bfaf6
drm/apple: Drop unsupported DRM_FORMAT_ARGB2101010
jannau Mar 23, 2023
334d984
dcp: Allow unused trampolines
marcan Apr 11, 2023
cc0cd46
dcp: Add get_tiling_state
marcan Apr 11, 2023
502ef5e
dcp: 42-bit DMA masks
marcan Apr 11, 2023
6d35aae
dcp: T602X bwreq support
marcan Apr 11, 2023
62bc9ea
dcp: Warn if DMA mapping fails
marcan Apr 11, 2023
1a0c182
WIP: drm/apple: Port to incompatible V13.3 firmware interface
jannau Apr 14, 2023
4a7b793
drm/apple: Remove simpledrm framebuffer before DRM device alloc
jannau Apr 15, 2023
d192782
drm/apple: Mark DCP as being in the wakeup path
marcan Apr 24, 2023
ddf5e08
drm: apple: iomfb: Increase modeset timeout to 2.5 seconds
jannau Apr 30, 2023
2e0709f
drm: apple: Only match backlight service on DCP with panel
jannau Apr 30, 2023
a41a68a
drm: apple: iomfb: limit backlight updates to integrated panels
jannau Apr 30, 2023
04dcfb7
drm: apple: backlight: avoid updating the brightness with a commit
jannau Jul 16, 2023
77dfba3
drm/apple: Get rid of the piodma dummy driver
jannau Jul 15, 2023
e9c7920
drm/apple: Use iommu domain for piodma maps
jannau Jul 19, 2023
f0aea3c
drm: apple: Align PIODMA buffers to SZ_16K
jannau Jul 19, 2023
86f2b25
drm: apple: Add D129 allocate_bandwidth iomfb callback
jannau Aug 23, 2023
5d60de3
drm: apple: Update supported firmware versions to 12.3 and 13.5
jannau Sep 4, 2023
c07f62a
drm: apple: dcp: Port over to DEFINE_SIMPLE_DEV_PM_OPS
jannau Nov 6, 2023
a5feec0
drm: apple: dcp: Remove cargo-culted devm_of_platform_populate
jannau Nov 6, 2023
ba219c9
drm: apple: iomfb: implement abort_swaps_dcp
jannau Apr 30, 2023
553a5dd
drm: apple: iomfb: Increase modeset tiemout to 8.5 seconds
jannau Nov 6, 2023
6043ba1
drm: apple: Remove explicit asc-dram-mask handling
jannau Nov 6, 2023
1cc042b
mux: apple DP xbar: Add Apple silicon DisplayPort crossbar
svenpeter42 Nov 5, 2022
6da6968
mux: apple dp crossbar: Support t8112 varient
jannau Apr 30, 2023
e415826
mux: apple dp crossbar: FIFO_RD_UNK_EN seems to use 2 bits per dispext*
jannau Apr 30, 2023
6c302d0
mux: apple dp crossbar: Read UNK_TUNABLE before and after writing it
jannau Apr 30, 2023
67d162c
mux: apple dp crossbar: Support t602x DP cross bar variant
jannau Aug 17, 2023
242ab5e
gpu: drm: apple: Add utility functions for matching on dict keys
povik Feb 15, 2023
8a6b650
gpu: drm: apple: Add 'parse_blob'
povik Feb 23, 2023
a01e3eb
gpu: drm: apple: Add sound mode parsing
povik Feb 15, 2023
2a0e218
drm: apple: DCP AFK/EPIC support
svenpeter42 Feb 12, 2023
2e424cd
drm: apple: afk: Use linear array of services
jannau Nov 12, 2023
3e98abd
drm: apple: Add DPTX support
svenpeter42 Nov 5, 2022
4d45ef7
drm: apple: Move offsets for rt_bandwidth callback to DT
jannau Nov 12, 2023
e9ea718
drm: apple: iomfb: Do not match/create PMU service for dcpext
jannau Aug 17, 2023
20aa811
drm: apple: afk: Adapt to macOS 13.3 firmware
jannau Apr 9, 2023
710df74
drm: apple: dptx: Port APCALL to macOS 13.3 firmware
jannau Apr 28, 2023
fc4561e
drm: apple: dptx: port interface to macOS 13.5 firmware
jannau Aug 17, 2023
ee880ca
drm: apple: dptx: Add set_active_lanes APCALL
jannau Nov 6, 2023
1cd2a27
drm: apple: dptx: Add DPTX_APCALL_ACTIVATE
jannau Nov 6, 2023
6f2c106
drm: apple: dptx: Adapt dptxport_connect() to observed behavior
jannau Nov 6, 2023
f7cd9b2
drm: apple: afk: Clear commands before sending them
marcan Nov 16, 2023
6c935ee
drm: apple: Fix missing unlock path in dcp_dptx_connect
marcan Nov 16, 2023
f2e5f3b
drm: apple: dptxep: Fix reply size check
marcan Nov 16, 2023
de692e6
drm: apple: dptxep: Implement drive settings stuff
marcan Nov 16, 2023
881a8f4
drm/apple: Add missing sound Kconfig dependencies
asahilina Nov 22, 2023
18bc232
drm: apple: HACK: Do not delete piodma platform device
jannau Nov 20, 2023
4622111
drm: apple: afk: Update read pointer before processing message
jannau Nov 6, 2023
3fbf2f1
drm: apple: Implement D592 callback
jannau Nov 19, 2023
7dff643
drm: apple: Keep information at which swap_id fb are still referenced
jannau Nov 19, 2023
ac23bfb
Revert "drm: apple: iomfb: Do not match/create PMU service for dcpext"
jannau Nov 20, 2023
de6010f
drm: apple: dptx: Implement APCALL_DEACTIVATE and reset the phy
jannau Nov 20, 2023
cfd1d3b
drm: apple: Disconnect dptx When the CRTC is powered down
jannau Nov 20, 2023
30901c9
drm: apple: dptx: Wait for completion of dptx_connect.
jannau Nov 21, 2023
4ae5ea1
drm: apple: HPD: Only act on connect IRQs
jannau Nov 21, 2023
d48ea8b
drm: apple: iomfb: Improve hotplug related logging
jannau Nov 21, 2023
1e6ca0e
drm: apple: Extract modeset crtc's atomic_flush()
jannau Nov 22, 2023
d476c43
drm: apple: dptx: Log connect/disconnect calls
jannau Nov 22, 2023
2b33aa9
drm: apple: Move modeset into drm_crtc's atomic_enable
jannau Nov 23, 2023
009d55d
drm: apple: Fix DPTX hotplug handling
jannau Nov 23, 2023
3fe42c3
drm: apple: iomfb: Use drm_kms_helper_connector_hotplug_event
jannau Nov 23, 2023
eda5130
drm : apple: iomfb: Handle OOB ASYNC/CB context
jannau Nov 26, 2023
a174dae
drm: apple: iomfb: Extend hotplug/mode parsing logging
jannau Nov 26, 2023
7eaf74d
drm: apple: Adjust startup sequence and timing for dptx
jannau Nov 26, 2023
ea2704f
drm: apple: dcp: Fix resume with DPTX based display outputs
jannau Nov 28, 2023
ec7635e
drm: apple: Be less noisy about teardown notifies without service
jannau Dec 2, 2023
a160666
drm: apple: dptx: Wait for link config on connect
jannau Dec 3, 2023
70c43e5
drm: apple: Prefer RGB SDR modes
jannau Dec 1, 2023
06247e2
drm: apple: iomfb: Always parse DisplayAttributes
jannau Dec 4, 2023
9706afa
drm: apple: parser: constify parser data
jannau Dec 10, 2023
e07e7a3
drm: apple: epic: Pass full notfiy/report payload to handler
jannau Dec 10, 2023
58623cc
drm: apple: epic: systemep: Parse "mNits" log events
jannau Dec 10, 2023
02839a3
drm: apple: mark local functions static
arndb Jan 17, 2024
1414e96
drm/apple: Add missing RTKit Kconfig dependency
alyssais Jan 11, 2024
1a3a0d9
drm/apple: spelling fixes
jonathangray Jan 22, 2024
5814916
drm: apple: backlight: force backlight update after resume
kettenis Dec 28, 2023
271d75d
drm: apple: Fix/remove log messages
jannau Jan 22, 2024
e844e9b
drm: apple: dptx: Debounce HPD by simple msleep()
jannau Mar 26, 2024
50cdd33
drm: apple: Add Kconfig option for audio
jannau Jan 21, 2024
9b62447
drm: apple: iomfb: export property dicts in connector debugfs
jannau Dec 25, 2023
115ae87
gpu: drm: apple: Expose injecting of EPIC calls via debugfs
povik Feb 13, 2023
dfc07cc
gpu: drm: apple: Set up client of AV endpoint
povik Feb 13, 2023
e50621b
drm: apple: av: Support macOS 12.3 and 13.5 firmware APIs
jannau Nov 13, 2023
33fd23c
drm: apple: av: Do not open AV service from afk receive handler
jannau Nov 13, 2023
5b08c30
gpu: drm: apple: Add DCP audio driver
povik Feb 23, 2023
cc3a3d8
drm: apple: dptx: Remove DPTX disconnect/connect on init
jannau Apr 14, 2024
d829dea
drm: apple: audio: init AV endpoint later
jannau Apr 14, 2024
ad3a38f
drm: apple: av: Use a workqueue
jannau Apr 20, 2024
4d5249e
drm: apple: audio: move the audio driver into the DCP module
jannau Apr 20, 2024
95ad979
drm: apple: audio: Make the DP/HDMI audio driver a full driver
jannau Apr 21, 2024
532a9ab
drm: apple: audio: Avoid probe errors
jannau Apr 22, 2024
75bd6f6
drm/apple: fix double words in comments
jonathangray Apr 21, 2024
e35325b
drm: apple: backlight: release lock in error path
cschutijser Apr 18, 2024
2adb130
drm: apple: Switch back to drm_atomic_helper_commit_tail_rpm()
jannau Apr 27, 2024
a515c28
drm: apple: Fix broken MemDescRelay::release_descriptor callback number
jannau May 4, 2024
ad98e0c
drm: apple: Reduce log spam about busy command channel
jannau May 4, 2024
bd73d46
drm: apple: av: Warn only once about failed calls
jannau May 4, 2024
1e4965f
drm: apple: disable HDMI audio by default
jannau May 8, 2024
a94de16
drm: apple: Override drm_vblank's page flip event handling [HACK]
jannau May 12, 2024
f5a3f9a
drm/apple: Explicitly stop AFK endpoints on shutdown
asahilina Jun 15, 2024
894159a
drm/apple: audio: Create a device link to the DMA device
asahilina Jun 15, 2024
ebb8a12
drm/apple: audio: Defer DMA channel acquisition to device open
asahilina Jun 15, 2024
9698e37
drm/apple: audio: Fix hotplug notifications
asahilina Jun 15, 2024
39bf153
drm: apple: Add oob hotplug event
svenpeter42 Nov 5, 2022
b515d61
drm: apple: dptx: Fix get_drive_settings retcode
jannau Jun 9, 2024
b439dad
drm: apple: dptxport: get_max_lane_count: Retrieve lane count from phy
jannau Jun 9, 2024
2095a65
drm/apple: Fix missing mode init (feel free to squash)
asahilina May 10, 2024
e8696f3
drm: apple: iomfb: Align buffer size on unmap/free as well
jannau Jul 13, 2024
cac9174
Revert "drm: apple: HACK: Do not delete piodma platform device"
jannau Aug 21, 2024
810d6b7
drm: apple: afk: Optionally match against EPICName
jannau Aug 20, 2024
7b6cf2f
drm: apple: Add dcpav-service-ep
jannau Dec 3, 2023
d74fa5b
drm: apple: iomfb: Provide the EDID as connector property
jannau Aug 20, 2024
978787a
ALSA: Introduce 'snd_interval_rate_bits'
povik Feb 23, 2023
8240425
drm: apple: respect drm_plane_state zpos
chadmed May 12, 2024
176a92c
drm: apple: constrain swaps to maximum blendable surfaces
chadmed May 14, 2024
b1da639
drm: apple: reject plane commit if it will crash DCP
chadmed May 14, 2024
3b1d2c4
drm: apple: add support for overlay planes
chadmed May 14, 2024
eed0614
drm: apple: use correct min/max plane scaling factors
chadmed May 14, 2024
1a8d722
drm: apple: warn about broken sw cursor fallback
chadmed May 15, 2024
5669272
drm: apple: make plane zpos immutable
chadmed Jul 1, 2024
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
Prev Previous commit
Next Next commit
drm: apple: use correct min/max plane scaling factors
Fix the call to drm_atomic_helper_check_plane_state to use
the correct scaling factors.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
  • Loading branch information
chadmed committed Oct 13, 2024
commit eed0614195048ad01c95c87c02ab6e204c09b4b7
4 changes: 2 additions & 2 deletions drivers/gpu/drm/apple/apple_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ static int apple_plane_atomic_check(struct drm_plane *plane,
*/
return drm_atomic_helper_check_plane_state(new_plane_state,
crtc_state,
FRAC_16_16(1, 4),
FRAC_16_16(2, 1),
FRAC_16_16(1, 2),
FRAC_16_16(4, 1),
true, true);
}

Expand Down