Rodrigo Vivi
40aeab044a
drm/doc/rfc: Introduce the merge plan for the Xe driver.
...
Let’s establish a merge plan for Xe, by writing down clear pre-merge goals, in
order to avoid unnecessary delays.
This initial document starts with a TODO list containing items with clear and
measurable key results. Xe’s initial pull request should only be sent to
dri-devel after all the items are clearly resolved.
Since many of them involve some level of a community consensus, in many cases,
the consensus will be reached in follow-up patches to this document with more
details of the API or helpers that will be developed or modified.
Besides of the items that are highlighted in this document, it is important
to highlight that Oded, has been volunteered to give the overall ack on Xe
driver as the way to confirm that it looks good for upstream.
v2: Incorporated Daniel's feedback:
- Do not make long-running compute a blocker.
- Add a mention to drm-exec that that ties to vm_bind and long-running
compute jobs. Then I also added GPUVA since I recently noticed that this
ties also to the work Matt is doing on that front.
- Added the devcoredump section.
- Add the mention to Oded being volunteered for the overall ack.
v3: Reword a bit the Async VM_BIND to incorporate Daniel's feedback on ensuring
the async vmbind consensus explicitly include Mesa, besides other kernel
drivers.
Cc: Dave Airlie <airlied@redhat.com >
Cc: Daniel Vetter <daniel.vetter@ffwll.ch >
Cc: Oded Gabbay <ogabbay@kernel.org >
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com >
Signed-off-by: Francois Dugast <francois.dugast@intel.com >
Signed-off-by: Luis Strano <luis.strano@intel.com >
Signed-off-by: Matthew Brost <matthew.brost@intel.com >
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com >
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com >
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch >
Acked-by: Dave Airlie <airlied@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230419191913.158807-1-rodrigo.vivi@intel.com
2023-04-26 23:59:00 -04:00
Maíra Canal
09c2c8c94b
drm/vkms: drop full alpha blending TODO
...
Now that VKMS supports full alpha blending on all planes, drop the
"ARGB format on primary plane" and "Full alpha blending on all planes"
tasks from the TODO list.
Signed-off-by: Maíra Canal <mcanal@igalia.com >
Reviewed-by: Melissa Wen <mwen@igalia.com >
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230420232228.273340-2-mcanal@igalia.com
2023-04-26 17:25:14 -03:00
Maíra Canal
a03f028542
drm/vkms: allow full alpha blending on all planes
...
Before commit bc0d7fdefe ("drm: vkms: Supports to the case where
primary plane doesn't match the CRTC"), the composition was executed on
top of the primary plane. Therefore, the primary plane was not able to
support the alpha channel. After commit bc0d7fdefe , this is possible,
as the composition is now executed on top of the CRTC.
So, allow all planes to support the alpha channel, making full alpha
blending possible in vkms.
Signed-off-by: Maíra Canal <mcanal@igalia.com >
Reviewed-by: Melissa Wen <mwen@igalia.com >
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230420232228.273340-1-mcanal@igalia.com
2023-04-26 17:24:55 -03:00
Thomas Zimmermann
94545f2715
arch/x86: Include <asm/fb.h> in fbdev source file
...
Move the implementation of fb_pgprotect() to fbdev.c and include
<asm/fb.h>. Fixes the following warning:
../arch/x86/video/fbdev.c:14:5: warning: no previous prototype for 'fb_is_primary_device' [-Wmissing-prototypes]
14 | int fb_is_primary_device(struct fb_info *info)
| ^~~~~~~~~~~~~~~~~~~~
Just including <asm/fb.h> results in a number of built-in errors
about undefined function. Moving fb_pgprotect() to the source file
avoids the required include statements in the header. The function
is only called occasionally from fb_mmap(), [1] so having it as static
inline had no benefit.
While at it, fix the codying style in fbdev.c.
Link: https://elixir.bootlin.com/linux/v6.3-rc7/source/drivers/video/fbdev/core/fbmem.c#L1404 # 1
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230424084751.14641-1-tzimmermann@suse.de
2023-04-26 15:07:57 +02:00
Francesco Dolcini
cec5ccef85
drm/bridge: tc358768: Add atomic_get_input_bus_fmts() implementation
...
Add atomic_get_input_bus_fmts() implementation, tc358768 has a parallel
RGB input interface with the actual bus format depending on the amount
of parallel input data lines.
Without this change when the tc358768 is used with less than 24bit the
color mapping is completely wrong.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com >
Reviewed-by: Robert Foss <rfoss@kernel.org >
Signed-off-by: Robert Foss <rfoss@kernel.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20230330095941.428122-7-francesco@dolcini.it
2023-04-25 15:57:36 +02:00
Dave Stevenson
b2751a4c5b
drm/vc4: hdmi: Add BT.2020 Support
...
Even though we report that we support the BT.2020 Colorspace, we were
always using the BT.709 conversion matrices. Let's add the BT.2020 ones.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-9-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:33:16 +02:00
Dave Stevenson
8297ee3f2d
drm/vc4: hdmi: Add BT.601 Support
...
Even though we report that we support the BT601 Colorspace, we were
always using the BT.709 conversion matrices. Let's add the BT601 ones.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-8-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:33:16 +02:00
Dave Stevenson
1eaa6eedb8
drm/vc4: hdmi: Add a function to retrieve the CSC matrix
...
The CSC matrix to use depends on the output format, its range and the
colorspace.
Since we're going to add more colorspaces, let's move the CSC matrix
retrieval to a function.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-7-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:33:16 +02:00
Dave Stevenson
1d23990177
drm/vc4: hdmi: Rework the CSC matrices organization
...
The CSC matrices were stored as separate matrix for each colorspace, and
if we wanted a limited or full RGB output.
This created some gaps in our support and we would not always pick the
relevant matrix.
Let's rework our data structure to store one per colorspace, and then a
matrix for limited range and one for full range. This makes us add a new
matrix to support full range BT709 YUV output.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-6-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:33:16 +02:00
Dave Stevenson
e3337aea09
drm/vc4: hdmi: Swap CSC matrix channels for YUV444
...
YUV444 and YUV422 actually require the same matrix, but programmed
differently.
We've dealt with it in the past by having two matrices, with the one
for YUV444 reordered to accomodate the hardware.
This gets in the way of subsequent reworks so let's define a function
that will take the coefficients swap into account, and remove the now
redundant YUV444 matrix.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-5-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:33:16 +02:00
Dave Stevenson
7186004485
drm/vc4: hdmi: Rename full range helper
...
The VC4 HDMI driver has a helper function to figure out whether full
range or limited range RGB is being used called
vc4_hdmi_is_full_range_rgb().
We'll need it to support other colorspaces, so let's rename it to
vc4_hdmi_is_full_range().
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-4-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:33:15 +02:00
Dave Stevenson
d6020f4b26
drm/vc4: hdmi: Add Broadcast RGB property to allow override of RGB range
...
Copy Intel's "Broadcast RGB" property semantics to add manual override
of the HDMI pixel range for monitors that don't abide by the content
of the AVI Infoframe.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com >
Reviewed-by: Hans Verkuil <hverkuil-cisco at xs4all.nl>
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-3-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:32:52 +02:00
Maxime Ripard
bb1b6094c0
drm/vc4: hdmi: Update all the planes if the TV margins are changed
...
On VC4, the TV margins on the HDMI connector are implemented by scaling
the planes.
However, if only the TV margins or the connector are changed by a new
state, the planes ending up on that connector won't be. Thus, they won't
be updated properly and we'll effectively ignore that change until the
next commit affecting these planes.
Let's make sure to add all the planes attached to the connector so that
we can update them properly.
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-2-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:32:25 +02:00
Maxime Ripard
5a46e490e4
drm/vc4: Switch to container_of_const
...
container_of_const() allows to preserve the pointer constness and is
thus more flexible than inline functions.
Let's switch all our instances of container_of() to
container_of_const().
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com >
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-1-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech >
2023-04-25 09:32:25 +02:00
Maíra Canal
322d716a3e
drm/vkms: isolate pixel conversion functionality
...
Currently, the pixel conversion functions repeat the same loop to
iterate the rows. Instead of repeating the same code for each pixel
format, create a function to wrap the loop and isolate the pixel
conversion functionality.
Suggested-by: Arthur Grillo <arthurgrillo@riseup.net >
Signed-off-by: Maíra Canal <mcanal@igalia.com >
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230418130525.128733-2-mcanal@igalia.com
2023-04-24 17:09:19 -03:00
Arthur Grillo
8356b97906
drm/test: Add test cases for drm_rect_rotate_inv()
...
Insert a parameterized test for the drm_rect_rotate_inv() to ensure its
correctness and prevent future regressions. The test covers all rotation
modes.
It uses the same test cases from drm_test_rect_rotate().
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net >
Reviewed-by: Maíra Canal <mcanal@igalia.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230418230146.461129-6-arthurgrillo@riseup.net
2023-04-24 16:33:26 -03:00
Arthur Grillo
b5d88ec0ee
drm/tests: Add test cases for drm_rect_rotate()
...
Insert a parameterized test for the drm_rect_rotate() to ensure
correctness and prevent future regressions.
All possible rotation modes are covered by the test.
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net >
Reviewed-by: Maíra Canal <mcanal@igalia.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230418230146.461129-5-arthurgrillo@riseup.net
2023-04-24 16:33:25 -03:00
Arthur Grillo
881e2a9cc1
drm/tests: Add test cases for drm_rect_calc_vscale()
...
Insert parameterized test for the drm_rect_calc_vscale() to ensure
correctness and prevent future regressions. Besides the test for the
usual case, tests the exceptions.
It uses the same struct from drm_rect_calc_hscale().
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net >
Reviewed-by: Maíra Canal <mcanal@igalia.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230418230146.461129-4-arthurgrillo@riseup.net
2023-04-24 16:33:24 -03:00
Arthur Grillo
1f01f2247e
drm/tests: Add test cases for drm_rect_calc_hscale()
...
Insert parameterized test for the drm_rect_calc_hscale() to ensure
correctness and prevent future regressions. Besides the test for the
usual case, tests the exceptions.
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net >
Reviewed-by: Maíra Canal <mcanal@igalia.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230418230146.461129-3-arthurgrillo@riseup.net
2023-04-24 16:33:23 -03:00
Arthur Grillo
96c3161926
drm/tests: Add test cases for drm_rect_intersect()
...
Insert parameterized tests for the drm_rect_intersect() to ensure
correctness and prevent future regressions.
Also, create a helper for testing if two drm_rects are equal.
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net >
Reviewed-by: Maíra Canal <mcanal@igalia.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Link: https://patchwork.freedesktop.org/patch/msgid/20230418230146.461129-2-arthurgrillo@riseup.net
2023-04-24 16:33:22 -03:00
Thomas Zimmermann
f452cbd326
Merge drm/drm-next into drm-misc-next
...
Backmerging to get the exynos fbdev updates.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
2023-04-24 13:54:50 +02:00
Christian König
70102d77ff
drm/scheduler: add drm_sched_entity_error and use rcu for last_scheduled
...
Switch to using RCU handling for the last scheduled job and add a
function to return the error code of it.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230420115752.31470-2-christian.koenig@amd.com
2023-04-24 11:00:31 +02:00
Christian König
539f9ee4b5
drm/scheduler: properly forward fence errors
...
When a hw fence is signaled with an error properly forward that to the
finished fence.
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230420115752.31470-1-christian.koenig@amd.com
2023-04-24 11:00:05 +02:00
Yang Li
15f5ee6b77
drm/tve200: Use devm_platform_ioremap_resource()
...
Convert platform_get_resource(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource(), as this is exactly what this
function does.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20230421091319.79744-1-yang.lee@linux.alibaba.com
2023-04-24 10:04:33 +02:00
Dave Airlie
289af45508
Merge tag 'exynos-drm-next-for-v6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next
...
A patch series for implementing fbdev emulation as in-kernel client.
- This patch series refactors fbdev callbacks to DRM client functions and
simplifies fbdev emulation initialization including some code cleanups.
The changes make fbdev emulation behave like a regular DRM client.
Signed-off-by: Dave Airlie <airlied@redhat.com >
From: Inki Dae <inki.dae@samsung.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417100624.35229-1-inki.dae@samsung.com
2023-04-24 10:50:15 +10:00
Dave Airlie
02a8ae7232
Merge tag 'drm-intel-next-fixes-2023-04-20-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
...
Active port PLL MST fix for second stream, CSC plane index fix,
null and oob array deref fixes and selftest memory leak fix.
Signed-off-by: Dave Airlie <airlied@redhat.com >
From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com >
Link: https://patchwork.freedesktop.org/patch/msgid/ZEDz9ZedyZVyFXxU@jlahtine-mobl.ger.corp.intel.com
2023-04-24 09:48:05 +10:00
Maíra Canal
e1964d892f
drm/sti: Drop of_gpio header
...
This driver includes the deprecated OF GPIO header <linux/of_gpio.h>
yet fail to use symbols from it, so drop this include.
Cc: Alain Volmat <alain.volmat@foss.st.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Acked-by: Alain Volmat <avolmat@me.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20220812205746.609107-5-mairacanal@riseup.net
2023-04-22 18:58:42 -03:00
Maíra Canal
6b99658c93
drm/bridge: anx7625: Drop of_gpio header
...
This driver includes the deprecated OF GPIO header <linux/of_gpio.h>
yet fail to use symbols from it, so drop the include.
Cc: Andrzej Hajda <andrzej.hajda@intel.com >
Cc: Neil Armstrong <narmstrong@baylibre.com >
Cc: Robert Foss <robert.foss@linaro.org >
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com >
Cc: Jonas Karlman <jonas@kwiboo.se >
Cc: Jernej Skrabec <jernej.skrabec@gmail.com >
Signed-off-by: Maíra Canal <mairacanal@riseup.net >
Reviewed-by: Robert Foss <robert.foss@linaro.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20220812205746.609107-2-mairacanal@riseup.net
2023-04-22 18:58:22 -03:00
Rodrigo Siqueira
55b24786b7
drm/display: Add missing OLED Vesa brightnesses definitions
...
This commit adds missing luminance control registers to enable a more
standard way (VESA) to deal with eDP luminance control.
Cc: Anthony Koo <anthony.koo@amd.com >
Cc: Iswara Negulendran <iswara.nagulendran@amd.com >
Cc: Felipe Clark <felipe.clark@amd.com >
Cc: Harry Wentland <Harry.Wentland@amd.com >
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230412000943.429031-1-Rodrigo.Siqueira@amd.com
2023-04-21 10:40:16 -06:00
Richard Leitner
1993f59899
drm/panel: simple: Add InnoLux G070ACE-L01
...
Add InnoLux G070ACE-L01 7" 800x480 TFT LCD with WLED backlight panel
support. Timing data was extracted from datasheet and vendor provided
EDID file.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Douglas Anderson <dianders@chromium.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20230201-innolux-g070ace-v2-2-2371e251dd40@skidata.com
2023-04-21 09:12:57 -07:00
Richard Leitner
4b4b96826b
dt-bindings: display: simple: add support for InnoLux G070ACE-L01
...
Add Innolux G070ACE-L01 7" WVGA (800x480) TFT LCD panel compatible
string.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Douglas Anderson <dianders@chromium.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20230201-innolux-g070ace-v2-1-2371e251dd40@skidata.com
2023-04-21 09:12:56 -07:00
Thomas Zimmermann
63c381552f
drm/armada: Implement fbdev emulation as in-kernel client
...
Move code from ad-hoc fbdev callbacks into DRM client functions
and remove the old callbacks. The functions instruct the client
to poll for changed output or restore the display. The DRM core
calls both, the old callbacks and the new client helpers, from
the same places. The new functions perform the same operation as
before, so there's no change in functionality.
Replace all code that initializes or releases fbdev emulation
throughout the driver. Instead initialize the fbdev client by a
single call to armada_fbdev_setup() after armada has registered its
DRM device. As in most drivers, aramda's fbdev emulation now acts
like a regular DRM client.
The fbdev client setup consists of the initial preparation and the
hot-plugging of the display. The latter creates the fbdev device
and sets up the fbdev framebuffer. The setup performs display
hot-plugging once. If no display can be detected, DRM probe helpers
re-run the detection on each hotplug event.
A call to drm_dev_unregister() releases the client automatically.
No further action is required within armada. If the fbdev framebuffer
has been fully set up, struct fb_ops.fb_destroy implements the
release. For partially initialized emulation, the fbdev client
reverts the initial setup.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230330073046.7150-5-tzimmermann@suse.de
2023-04-21 10:19:43 +02:00
Thomas Zimmermann
174c3c38e3
drm/armada: Initialize fbdev DRM client
...
Initialize the fbdev client in the fbdev code with empty helper
functions. Also clean up the client. The helpers will later
implement various functionality of the DRM client. No functional
changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20230330073046.7150-4-tzimmermann@suse.de
2023-04-21 10:19:42 +02:00
Thomas Zimmermann
169c85edca
drm/armada: Hide fbdev support behind config option
...
Only build armada's fbdev emulation if CONFIG_DRM_FBDEV_EMULATION
has been enabled. No functional changes, but allows to build armada
without fbdev.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn >
Link: https://patchwork.freedesktop.org/patch/msgid/20230330073046.7150-3-tzimmermann@suse.de
2023-04-21 10:19:41 +02:00
Thomas Zimmermann
1c9da7db88
drm/armada: Include <linux/of.h>
...
Include <linux/of.h> to get declarations of of_node_put() and
of_device_is_available(). No functional changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn >
Link: https://patchwork.freedesktop.org/patch/msgid/20230330073046.7150-2-tzimmermann@suse.de
2023-04-21 10:19:39 +02:00
Nikita Travkin
34c1aeb579
drm/bridge: ti-sn65dsi86: Implement wait_hpd_asserted
...
This bridge doesn't actually implement HPD due to it being way too slow
but instead expects the panel driver to wait enough to assume HPD is
asserted. However some panels (such as the generic 'edp-panel') expect
the bridge to deal with the delay and pass maximum delay to the aux
instead.
In order to support such panels, add a dummy implementation of wait
that would just sleep the maximum delay and assume no failure has
happened.
Signed-off-by: Nikita Travkin <nikita@trvn.ru >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Douglas Anderson <dianders@chromium.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20230408082014.235425-1-nikita@trvn.ru
2023-04-20 11:39:28 -07:00
Thomas Zimmermann
91c249b2b9
arch/x86: Implement <asm/fb.h> with generic helpers
...
Include <asm-generic/fb.h> and set the required preprocessor tokens
correctly. x86 now implements its own set of fb helpers, but still
follows the overall pattern of the other <asm/fb.h> files.
v3:
* clarified commit message
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-20-tzimmermann@suse.de
2023-04-20 10:05:18 +02:00
Thomas Zimmermann
db76f19a60
arch/sparc: Implement <asm/fb.h> with generic helpers
...
Replace sparc64's fb_pgprotect() with the generic one
from <asm-generic/fb.h>. On sparc, pgprot_writecombine() and
pgprot_noncached() are the same; hence no functional changes
v3:
* use default implementation for fb_pgprotect() on
sparc64 (Arnd)
v2:
* restore the original fb_pgprotect()
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: "David S. Miller" <davem@davemloft.net >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-19-tzimmermann@suse.de
2023-04-20 10:05:15 +02:00
Thomas Zimmermann
4eec0b3048
arch/sparc: Implement fb_is_primary_device() in source file
...
Other architectures implment fb_is_primary_device() in a source
file. Do the same on sparc. No functional changes, but allows to
remove several include statement from <asm/fb.h>.
v2:
* don't include <asm/prom.h> in header file
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: "David S. Miller" <davem@davemloft.net >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-18-tzimmermann@suse.de
2023-04-20 10:05:12 +02:00
Thomas Zimmermann
b6cf29637b
arch/sh: Implement <asm/fb.h> with generic helpers
...
Replace the architecture's fbdev helpers with the generic
ones from <asm-generic/fb.h>. No functional changes.
v2:
* use default implementation for fb_pgprotect() (Arnd)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: Yoshinori Sato <ysato@users.sourceforge.jp >
Cc: Rich Felker <dalias@libc.org >
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de >
Acked-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-17-tzimmermann@suse.de
2023-04-20 10:05:08 +02:00
Thomas Zimmermann
b50f6d465a
arch/powerpc: Implement <asm/fb.h> with generic helpers
...
Replace the architecture's fb_is_primary_device() with the generic
one from <asm-generic/fb.h>. No functional changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: Nicholas Piggin <npiggin@gmail.com >
Cc: Christophe Leroy <christophe.leroy@csgroup.eu >
Acked-by: Michael Ellerman <mpe@ellerman.id.au >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-16-tzimmermann@suse.de
2023-04-20 10:05:05 +02:00
Thomas Zimmermann
f3424d2876
arch/parisc: Implement <asm/fb.h> with generic helpers
...
Replace the architecture's fbdev helpers with the generic ones
from <asm-generic/fb.h>. On PARISC, pgprot_writecombine() and
pgprot_noncached() are the same; hence no functional changes.
v3:
* use default implementation for fb_pgprotect() (Arnd)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com >
Cc: Helge Deller <deller@gmx.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-15-tzimmermann@suse.de
2023-04-20 10:05:01 +02:00
Thomas Zimmermann
cf41d18b72
arch/parisc: Implement fb_is_primary_device() under arch/parisc
...
Move PARISC's implementation of fb_is_primary_device() into the
architecture directory. This the place of the declaration and
where other architectures implement this function. No functional
changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com >
Cc: Helge Deller <deller@gmx.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-14-tzimmermann@suse.de
2023-04-20 10:04:58 +02:00
Thomas Zimmermann
d77f0ecdac
arch/parisc: Remove trailing whitespaces
...
Fix trailing whitespaces. No functional changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com >
Cc: Helge Deller <deller@gmx.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-13-tzimmermann@suse.de
2023-04-20 10:04:54 +02:00
Thomas Zimmermann
7470849745
video: Move HP PARISC STI core code to shared location
...
STI core files have been located in console and fbdev code. Move
the source code and header to the directories for video helpers.
Also update the config and build rules such that the code depends
on the config symbol CONFIG_STI_CORE, which STI console and STI
framebuffer select automatically.
Cleans up the console makefile and prepares PARISC to implement
fb_is_primary_device() within the arch/ directory. No functional
changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-12-tzimmermann@suse.de
2023-04-20 10:04:51 +02:00
Thomas Zimmermann
0d556f1f0e
video: Remove trailing whitespaces
...
Fix trailing whitespaces. No functional changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-11-tzimmermann@suse.de
2023-04-20 10:04:48 +02:00
Thomas Zimmermann
910994c0f6
arch/mips: Implement <asm/fb.h> with generic helpers
...
Replace the architecture's fb_is_primary_device() with the generic
one from <asm-generic/fb.h>. No functional changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-10-tzimmermann@suse.de
2023-04-20 10:04:44 +02:00
Thomas Zimmermann
db21647767
arch/m68k: Implement <asm/fb.h> with generic helpers
...
Replace the architecture's fb_is_primary_device() with the generic
one from <asm-generic/fb.h>. No functional changes.
v2:
* provide empty fb_pgprotect() on non-MMU systems
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: Geert Uytterhoeven <geert@linux-m68k.org >
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-9-tzimmermann@suse.de
2023-04-20 10:04:41 +02:00
Thomas Zimmermann
d847517950
arch/m68k: Merge variants of fb_pgprotect() into single function
...
Merge all variants of fb_pgprotect() into a single function body.
There are two different cases for MMU systems. For non-MMU systems,
the function body will be empty. No functional changes, but this
will help with the switch to <asm-generic/fb.h>.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org >
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-8-tzimmermann@suse.de
2023-04-20 10:04:37 +02:00
Thomas Zimmermann
84998fc1c3
arch/loongarch: Implement <asm/fb.h> with generic helpers
...
Replace the architecture's fbdev helpers with the generic
ones from <asm-generic/fb.h>. No functional changes.
v2:
* use default implementation for fb_pgprotect() (Arnd)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de >
Cc: Huacai Chen <chenhuacai@kernel.org >
Cc: WANG Xuerui <kernel@xen0n.name >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Helge Deller <deller@gmx.de >
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-7-tzimmermann@suse.de
2023-04-20 10:04:33 +02:00