Skip to content

Commit 8d8f6f7

Browse files
committed
Merge tag 'drm-misc-next-2019-04-18' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for v5.2: UAPI Changes: - Document which feature flags belong to which command in virtio_gpu.h - Make the FB_DAMAGE_CLIPS available for atomic userspace only, it's useless for legacy. Cross-subsystem Changes: - Add device tree bindings for lg,acx467akm-7 panel and ST-Ericsson Multi Channel Display Engine MCDE - Add parameters to the device tree bindings for tfp410 - iommu/io-pgtable: Add ARM Mali midgard MMU page table format - dma-buf: Only do a 64-bits seqno compare when driver explicitly asks for it, else wraparound. - Use the 64-bits compare for dma-fence-chains Core Changes: - Make the fb conversion functions use __iomem dst. - Rename drm_client_add to drm_client_register - Move intel_fb_initial_config to core. - Add a drm_gem_objects_lookup helper - Add drm_gem_fence_array helpers, and use it in lima. - Add drm_format_helper.c to kerneldoc. Driver Changes: - Add panfrost driver for mali midgard/bitfrost. - Converts bochs to use the simple display type. - Small fixes to sun4i, tinydrm, ti-fp410. - Fid aspeed's Kconfig options. - Make some symbols/functions static in lima, sun4i and meson. - Add a driver for the lg,acx467akm-7 panel. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/737ad994-213d-45b5-207a-b99d795acd21@linux.intel.com
2 parents b1c4f7f + debcd8f commit 8d8f6f7

66 files changed

Lines changed: 4506 additions & 681 deletions

Some content is hidden

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

‎Documentation/devicetree/bindings/display/bridge/ti,tfp410.txt‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ This device has two video ports. Their connections are modeled using the OF
1818
graph bindings specified in [1]. Each port node shall have a single endpoint.
1919

2020
- Port 0 is the DPI input port. Its endpoint subnode shall contain a
21-
pclk-sample property and a remote-endpoint property as specified in [1].
21+
pclk-sample and bus-width property and a remote-endpoint property as specified
22+
in [1].
23+
- If pclk-sample is not defined, pclk-sample = 0 should be assumed for
24+
backward compatibility.
25+
- If bus-width is not defined then bus-width = 24 should be assumed for
26+
backward compatibility.
27+
bus-width = 24: 24 data lines are connected and single-edge mode
28+
bus-width = 12: 12 data lines are connected and dual-edge mode
2229

2330
- Port 1 is the DVI output port. Its endpoint subnode shall contain a
2431
remote-endpoint property is specified in [1].
@@ -43,6 +50,7 @@ tfp410: encoder@0 {
4350

4451
tfp410_in: endpoint@0 {
4552
pclk-sample = <1>;
53+
bus-width = <24>;
4654
remote-endpoint = <&dpi_out>;
4755
};
4856
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LG ACX467AKM-7 4.95" 1080×1920 LCD Panel
2+
3+
Required properties:
4+
- compatible: must be "lg,acx467akm-7"
5+
6+
This binding is compatible with the simple-panel binding, which is specified
7+
in simple-panel.txt in this directory.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
ST-Ericsson Multi Channel Display Engine MCDE
2+
3+
The ST-Ericsson MCDE is a display controller with support for compositing
4+
and displaying several channels memory resident graphics data on DSI or
5+
LCD displays or bridges. It is used in the ST-Ericsson U8500 platform.
6+
7+
Required properties:
8+
9+
- compatible: must be:
10+
"ste,mcde"
11+
- reg: register base for the main MCDE control registers, should be
12+
0x1000 in size
13+
- interrupts: the interrupt line for the MCDE
14+
- epod-supply: a phandle to the EPOD regulator
15+
- vana-supply: a phandle to the analog voltage regulator
16+
- clocks: an array of the MCDE clocks in this strict order:
17+
MCDECLK (main MCDE clock), LCDCLK (LCD clock), PLLDSI
18+
(HDMI clock), DSI0ESCLK (DSI0 energy save clock),
19+
DSI1ESCLK (DSI1 energy save clock), DSI2ESCLK (DSI2 energy
20+
save clock)
21+
- clock-names: must be the following array:
22+
"mcde", "lcd", "hdmi"
23+
to match the required clock inputs above.
24+
- #address-cells: should be <1> (for the DSI hosts that will be children)
25+
- #size-cells: should be <1> (for the DSI hosts that will be children)
26+
- ranges: this should always be stated
27+
28+
Required subnodes:
29+
30+
The devicetree must specify subnodes for the DSI host adapters.
31+
These must have the following characteristics:
32+
33+
- compatible: must be:
34+
"ste,mcde-dsi"
35+
- reg: must specify the register range for the DSI host
36+
- vana-supply: phandle to the VANA voltage regulator
37+
- clocks: phandles to the high speed and low power (energy save) clocks
38+
the high speed clock is not present on the third (dsi2) block, so it
39+
should only have the "lp" clock
40+
- clock-names: "hs" for the high speed clock and "lp" for the low power
41+
(energy save) clock
42+
- #address-cells: should be <1>
43+
- #size-cells: should be <0>
44+
45+
Display panels and bridges will appear as children on the DSI hosts, and
46+
the displays are connected to the DSI hosts using the common binding
47+
for video transmitter interfaces; see
48+
Documentation/devicetree/bindings/media/video-interfaces.txt
49+
50+
If a DSI host is unused (not connected) it will have no children defined.
51+
52+
Example:
53+
54+
mcde@a0350000 {
55+
compatible = "ste,mcde";
56+
reg = <0xa0350000 0x1000>;
57+
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
58+
epod-supply = <&db8500_b2r2_mcde_reg>;
59+
vana-supply = <&ab8500_ldo_ana_reg>;
60+
clocks = <&prcmu_clk PRCMU_MCDECLK>, /* Main MCDE clock */
61+
<&prcmu_clk PRCMU_LCDCLK>, /* LCD clock */
62+
<&prcmu_clk PRCMU_PLLDSI>; /* HDMI clock */
63+
clock-names = "mcde", "lcd", "hdmi";
64+
#address-cells = <1>;
65+
#size-cells = <1>;
66+
ranges;
67+
68+
dsi0: dsi@a0351000 {
69+
compatible = "ste,mcde-dsi";
70+
reg = <0xa0351000 0x1000>;
71+
vana-supply = <&ab8500_ldo_ana_reg>;
72+
clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>;
73+
clock-names = "hs", "lp";
74+
#address-cells = <1>;
75+
#size-cells = <0>;
76+
77+
panel {
78+
compatible = "samsung,s6d16d0";
79+
reg = <0>;
80+
vdd1-supply = <&ab8500_ldo_aux1_reg>;
81+
reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
82+
};
83+
84+
};
85+
dsi1: dsi@a0352000 {
86+
compatible = "ste,mcde-dsi";
87+
reg = <0xa0352000 0x1000>;
88+
vana-supply = <&ab8500_ldo_ana_reg>;
89+
clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>;
90+
clock-names = "hs", "lp";
91+
#address-cells = <1>;
92+
#size-cells = <0>;
93+
};
94+
dsi2: dsi@a0353000 {
95+
compatible = "ste,mcde-dsi";
96+
reg = <0xa0353000 0x1000>;
97+
vana-supply = <&ab8500_ldo_ana_reg>;
98+
/* This DSI port only has the Low Power / Energy Save clock */
99+
clocks = <&prcmu_clk PRCMU_DSI2ESCCLK>;
100+
clock-names = "lp";
101+
#address-cells = <1>;
102+
#size-cells = <0>;
103+
};
104+
};

‎Documentation/gpu/drm-kms-helpers.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ fbdev Helper Functions Reference
107107
.. kernel-doc:: drivers/gpu/drm/drm_fb_helper.c
108108
:export:
109109

110+
format Helper Functions Reference
111+
=================================
112+
113+
.. kernel-doc:: drivers/gpu/drm/drm_format_helper.c
114+
:export:
115+
110116
Framebuffer CMA Helper Functions Reference
111117
==========================================
112118

‎MAINTAINERS‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,15 @@ F: drivers/gpu/drm/arm/
11801180
F: Documentation/devicetree/bindings/display/arm,malidp.txt
11811181
F: Documentation/gpu/afbc.rst
11821182

1183+
ARM MALI PANFROST DRM DRIVER
1184+
M: Rob Herring <robh@kernel.org>
1185+
M: Tomeu Vizoso <tomeu.vizoso@collabora.com>
1186+
L: dri-devel@lists.freedesktop.org
1187+
S: Supported
1188+
T: git git://anongit.freedesktop.org/drm/drm-misc
1189+
F: drivers/gpu/drm/panfrost/
1190+
F: include/uapi/drm/panfrost_drm.h
1191+
11831192
ARM MFM AND FLOPPY DRIVERS
11841193
M: Ian Molton <spyro@f2s.com>
11851194
S: Maintained

‎drivers/dma-buf/dma-fence-chain.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ static void dma_fence_chain_release(struct dma_fence *fence)
193193
}
194194

195195
const struct dma_fence_ops dma_fence_chain_ops = {
196+
.use_64bit_seqno = true,
196197
.get_driver_name = dma_fence_chain_get_driver_name,
197198
.get_timeline_name = dma_fence_chain_get_timeline_name,
198199
.enable_signaling = dma_fence_chain_enable_signaling,
@@ -225,7 +226,7 @@ void dma_fence_chain_init(struct dma_fence_chain *chain,
225226
init_irq_work(&chain->work, dma_fence_chain_irq_work);
226227

227228
/* Try to reuse the context of the previous chain node. */
228-
if (prev_chain && __dma_fence_is_later(seqno, prev->seqno)) {
229+
if (prev_chain && __dma_fence_is_later(seqno, prev->seqno, prev->ops)) {
229230
context = prev->context;
230231
chain->prev_seqno = prev->seqno;
231232
} else {

‎drivers/dma-buf/sw_sync.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static bool timeline_fence_signaled(struct dma_fence *fence)
161161
{
162162
struct sync_timeline *parent = dma_fence_parent(fence);
163163

164-
return !__dma_fence_is_later(fence->seqno, parent->value);
164+
return !__dma_fence_is_later(fence->seqno, parent->value, fence->ops);
165165
}
166166

167167
static bool timeline_fence_enable_signaling(struct dma_fence *fence)

‎drivers/dma-buf/sync_file.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ static struct sync_file *sync_file_merge(const char *name, struct sync_file *a,
258258

259259
i_b++;
260260
} else {
261-
if (__dma_fence_is_later(pt_a->seqno, pt_b->seqno))
261+
if (__dma_fence_is_later(pt_a->seqno, pt_b->seqno,
262+
pt_a->ops))
262263
add_fence(fences, &i, pt_a);
263264
else
264265
add_fence(fences, &i, pt_b);

‎drivers/gpu/drm/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ source "drivers/gpu/drm/vboxvideo/Kconfig"
337337

338338
source "drivers/gpu/drm/lima/Kconfig"
339339

340+
source "drivers/gpu/drm/panfrost/Kconfig"
341+
340342
source "drivers/gpu/drm/aspeed/Kconfig"
341343

342344
# Keep legacy drivers last

‎drivers/gpu/drm/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ obj-$(CONFIG_DRM_TVE200) += tve200/
112112
obj-$(CONFIG_DRM_XEN) += xen/
113113
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
114114
obj-$(CONFIG_DRM_LIMA) += lima/
115+
obj-$(CONFIG_DRM_PANFROST) += panfrost/
115116
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/

0 commit comments

Comments
 (0)