On Tue, 1 Feb 2022 20:26:51 -0100, Melissa Wen wrote:
> Trace submit_cl_ioctl and related IRQs for CL submission and bin/render
> jobs execution. It might be helpful to get a rendering timeline and
> track job throttling.
>
>
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime
On Thu, Mar 10, 2022 at 12:54:32PM +0100, Chema Casanova wrote:
> El 10/3/22 a las 12:12, Maxime Ripard escribió:
> > On Tue, Mar 01, 2022 at 01:58:26PM -0100, Melissa Wen wrote:
> > > On 02/25, Maxime Ripard wrote:
> > > > Hi Melissa,
> > > >
> &
see any issue on Gitlab to request commit access, so I'm not
sure what you did exactly but it's not surprising you didn't get any
answer.
Maxime
signature.asc
Description: PGP signature
On Wed, Mar 16, 2022 at 04:40:49PM +0100, Paul Kocialkowski wrote:
> Hi Maxime,
>
> Thanks for the review!
>
> On Thu 10 Mar 22, 15:54, Maxime Ripard wrote:
> > Hi Paul,
> >
> > On Wed, Mar 09, 2022 at 03:32:00PM +0100, Paul Kocialkowski wrote:
> > >
if (panel) {
> + *panel = of_drm_find_panel(node);
> + if (!IS_ERR(*panel))
> + return 0;
> + else
> + *panel = NULL;
You don't need the else branch here, we already cleared panel in
drm_of_find_panel_or_bridge
Looks good otherwise, thanks!
Maxime
signature.asc
Description: PGP signature
On Mon, Mar 07, 2022 at 04:26:56PM +0100, Max Krummenacher wrote:
> On Wed, Mar 2, 2022 at 5:22 PM Marek Vasut wrote:
> >
> > On 3/2/22 15:21, Maxime Ripard wrote:
> > > Hi,
> >
> > Hi,
> >
> > > Please try to avoid top posting
> Sorry.
>
On Fri, Mar 18, 2022 at 05:05:11PM +, Dave Stevenson wrote:
> Hi Maxime
>
> On Fri, 18 Mar 2022 at 16:35, Maxime Ripard wrote:
> >
> > On Mon, Mar 07, 2022 at 04:26:56PM +0100, Max Krummenacher wrote:
> > > On Wed, Mar 2, 2022 at 5:22 PM Marek Vasut wrote:
&
On Fri, Mar 18, 2022 at 05:22:46PM +0100, Paul Kocialkowski wrote:
> On Fri 18 Mar 22, 17:18, Maxime Ripard wrote:
> > On Fri, Mar 18, 2022 at 05:02:49PM +0100, Paul Kocialkowski wrote:
> > > While bridge/panel detection was initially relying on the usual
> > > port/por
rame-larger-than]
> int igt_check_plane_state(void *ignored)
> ^
> 1 warning generated.
>
> [...]
Applied to drm/drm-misc (drm-misc-next-fixes).
Thanks!
Maxime
Hi,
On Tue, Mar 22, 2022 at 10:05:56PM +0300, Dmitry Osipenko wrote:
> On 2/25/22 17:35, Maxime Ripard wrote:
> > When we change a clock minimum or maximum using clk_set_rate_range(),
> > clk_set_min_rate() or clk_set_max_rate(), the current code will only
> > trigger a n
able only on chips which have additional MCU on
> the panel/bridge board which preconfigures the ICN6211, while the
> I2C configuration mode added by this patch does not require any
> such MCU.
>
> Signed-off-by: Marek Vasut
> Cc: Jagan Teki
> Cc: Maxime Ripard
> Cc: R
x27;s drop that requirement.
Signed-off-by: Maxime Ripard
---
.../devicetree/bindings/display/bridge/chipone,icn6211.yaml | 1 -
.../devicetree/bindings/display/bridge/toshiba,tc358762.yaml | 1 -
2 files changed, 2 deletions(-)
diff --git
a/Documentation/devicetree/bindings/display/bridge/
On Wed, Mar 23, 2022 at 09:42:11AM +0100, Max Krummenacher wrote:
> Am Freitag, den 18.03.2022, 17:53 + schrieb Dave Stevenson:
> > On Fri, 18 Mar 2022 at 17:16, Maxime Ripard wrote:
> > > On Fri, Mar 18, 2022 at 05:05:11PM +, Dave Stevenson wrote:
> > > >
On Wed, Mar 23, 2022 at 10:38:19PM +0200, Laurent Pinchart wrote:
> Hi Maxime,
>
> (CC'ing Sakari)
>
> Thank you for the patch.
>
> On Wed, Mar 23, 2022 at 04:48:23PM +0100, Maxime Ripard wrote:
> > MIPI-DSI devices, if they are controlled through the bus itsel
On Tue, 22 Feb 2022 17:40:35 +0100, Maxime Ripard wrote:
> This is another attempt at supporting the HDMI YUV output in the vc4 HDMI
> driver.
>
> This is a follow-up of
> https://lore.kernel.org/dri-devel/20210317154352.732095-1-max...@cerno.tech/
>
> And the discussions
_SOC
> depends on COMMON_CLK
Wouldn't it make more sense to add it as an additional depends on there?
It doesn't look related to the architecture, and we'll still have that
dependency for COMPILE_TEST.
Maxime
signature.asc
Description: PGP signature
On Thu, Mar 24, 2022 at 03:43:42PM +0200, Laurent Pinchart wrote:
> On Thu, Mar 24, 2022 at 09:18:19AM +0100, Maxime Ripard wrote:
> > On Wed, Mar 23, 2022 at 10:38:19PM +0200, Laurent Pinchart wrote:
> > > Hi Maxime,
> > >
> > > (CC'ing Sak
Hi,
This series adds an atomic_print_state hook for drm_private_obj to ease the
debugging of driver-specific sub-classes, and adds one for vc4.
It also changes the call site of drm_atomic_print_new_state to make it more
consistent.
Let me know what you think,
Maxime
Maxime Ripard (4):
drm
ic_commit() and drm_atomic_nonblocking_commit() to make sure we
don't miss any.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/drm_atomic.c | 8
drivers/gpu/drm/drm_atomic_uapi.c | 3 ---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/
None of those helpers modify the pointed data, let's make them const.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c
index 24de29b
A number of drivers (amdgpu, komeda, vc4, etc.) leverage the
drm_private_state structure, but we don't have any infrastructure to
provide debugging like we do for the other components state. Let's add
an atomic_print_state hook to be consistent.
Signed-off-by: Maxime Ripard
---
drive
The HVS state configuration is useful when debugging what's going on in
the vc4 hardware pipeline. Add an implementation of .atomic_print_state.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/drivers/gp
Hi,
This series adds an atomic_print_state hook for drm_private_obj to ease the
debugging of driver-specific sub-classes, and adds one for vc4.
It also changes the call site of drm_atomic_print_new_state to make it more
consistent.
Let me know what you think,
Maxime
Changes from v1:
- Added
The HVS state configuration is useful when debugging what's going on in
the vc4 hardware pipeline. Add an implementation of .atomic_print_state.
Acked-by: Daniel Vetter
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 17 +
1 file changed, 17 insertions(+)
None of those helpers modify the pointed data, let's make them const.
Acked-by: Daniel Vetter
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_
A number of drivers (amdgpu, komeda, vc4, etc.) leverage the
drm_private_state structure, but we don't have any infrastructure to
provide debugging like we do for the other components state. Let's add
an atomic_print_state hook to be consistent.
Reviewed-by: Daniel Vetter
Signed-off-
t; @@ -2,6 +2,7 @@
> config DRM_VC4
> tristate "Broadcom VC4 Graphics"
> depends on ARCH_BCM || ARCH_BCM2835 || COMPILE_TEST
> + depends on RASPBERRYPI_FIRMWARE || COMPILE_TEST
Why do we need the || COMPILE_TEST here?
The rpi_firmware_get, _property and _pu
r your commit
start you would wait for the drm_crtc_commit to be completed, forcing
the ordering.
This requires some code in atomic_commit path though, so it might be
difficult to integrate properly in the drivers that would use MST.
It would be an interesting discussion, I have a similar issue with HDMI
scrambling support: I'd like to have most of the logic generic, but
making sure all the HDMI drivers (but only them) use that generic code
properly is challenging.
Maxime
signature.asc
Description: PGP signature
to make sure we don't miss any.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/drm_atomic.c | 4
drivers/gpu/drm/drm_atomic_uapi.c | 4
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 88cd99
Hi,
On Fri, Mar 25, 2022 at 05:36:25PM -0500, Daniel Latypov wrote:
> On Mon, Feb 28, 2022 at 4:47 AM Maxime Ripard wrote:
> >
> > On Fri, Feb 25, 2022 at 01:29:03PM -0800, Daniel Latypov wrote:
> > > On Fri, Feb 25, 2022 at 5:23 AM Maxime Ripard wrote:
&
Hi,
This series adds an atomic_print_state hook for drm_private_obj to ease the
debugging of driver-specific sub-classes, and adds one for vc4.
It also changes the call site of drm_atomic_print_new_state to make it more
consistent.
Let me know what you think,
Maxime
Changes from v2
re never logged though, and it would create too much churn in the logs
to do so, so leave them out for now.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/drm_atomic.c | 4
drivers/gpu/drm/drm_atomic_uapi.c | 4
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/
A number of drivers (amdgpu, komeda, vc4, etc.) leverage the
drm_private_state structure, but we don't have any infrastructure to
provide debugging like we do for the other components state. Let's add
an atomic_print_state hook to be consistent.
Reviewed-by: Daniel Vetter
Signed-off-
None of those helpers modify the pointed data, let's make them const.
Acked-by: Daniel Vetter
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_
The HVS state configuration is useful when debugging what's going on in
the vc4 hardware pipeline. Add an implementation of .atomic_print_state.
Acked-by: Daniel Vetter
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 17 +
1 file changed, 17 insertions(+)
Hi,
This series address multiple issues with the transposer support, and thus the
writeback support.
Let me know what you think,
Maxime
Maxime Ripard (6):
drm/vc4: hvs: Reset muxes at probe time
drm/vc4: txp: Don't set TXP_VSTART_AT_EOF
drm/vc4: txp: Force alpha to be 0xff if
utput 2 and 3 feeding from the same channel,
which is explicitly discouraged in the documentation.
In order to avoid this, let's reset all the output muxes to their reset
value.
Fixes: 87ebcd42fb7b ("drm/vc4: crtc: Assign output to channel automatically")
Signed-off-by: Maxime Ripa
beginning of the next frames.
Since one VSTART is enough, let's get rid of it.
Fixes: 008095e065a8 ("drm/vc4: Add support for the transposer block")
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_txp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/
We use the channel from our vc4_crtc_state structure in multiple places,
let's store it in a local variable to make it cleaner.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 15 ---
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/dr
When debugging, finding out what muxing decisions were made and what the
actual core clock rate is is always useful, so let's add some more
messages.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
The documentation explicitly states we must prevent the output
2 and 3 from feeding from the same HVS channel.
Let's add a warning to make some noise if we ever find ourselves in such
a case.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_kms.c | 3 +++
1 file changed, 3 inser
the CRC of the two frames which will thus fail.
Another nice side effect is that it is now possible to just use the
buffer as ARGB.
Fixes: 008095e065a8 ("drm/vc4: Add support for the transposer block")
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_txp.c | 2 ++
1 file
Hi Daniel,
On Mon, Mar 28, 2022 at 02:36:25PM -0500, Daniel Latypov wrote:
> On Mon, Mar 28, 2022 at 2:57 AM Maxime Ripard wrote:
> > On Fri, Mar 25, 2022 at 05:36:25PM -0500, Daniel Latypov wrote:
> > > On Mon, Feb 28, 2022 at 4:47 AM Maxime Ripard wrote:
> > > >
is available, with no fallback on the
> usual way.
>
> This results in breaking detection when a child node is present
> but does not contain any panel or bridge node, even when the
> usual port/ports-based of graph is there.
>
> [...]
Applied to drm/drm-misc (drm-misc-next-fixes).
Thanks!
Maxime
On Tue, Mar 29, 2022 at 07:39:21PM +0530, Jagan Teki wrote:
> On Thu, Mar 10, 2022 at 4:05 PM Maxime Ripard wrote:
> >
> > On Wed, Mar 09, 2022 at 06:45:10PM -0600, Adam Ford wrote:
> > > On Wed, Mar 9, 2022 at 1:11 PM Jagan Teki
> > > wrote:
> > > >
sion with pretty much the
same content, but you can't rely on userspace handling the hotplug
event. You'll have to deal with the case where it just doesn't.
Maxime
signature.asc
Description: PGP signature
On Tue, Mar 15, 2022 at 12:53:30AM +0300, Dmitry Osipenko wrote:
> On 3/11/22 17:22, Maxime Ripard wrote:
> > On Thu, Mar 10, 2022 at 03:33:07AM +0300, Dmitry Osipenko wrote:
> >> I was playing/testing SuperTuxKart using VirtIO-GPU driver and spotted
On Thu, Mar 24, 2022 at 04:50:04PM +0200, Laurent Pinchart wrote:
> Hi Maxime,
>
> On Thu, Mar 24, 2022 at 03:23:24PM +0100, Maxime Ripard wrote:
> > On Thu, Mar 24, 2022 at 03:43:42PM +0200, Laurent Pinchart wrote:
> > > On Thu, Mar 24, 2022 at 09:18:19AM +0100, Maxime
Hi Tomi,
On Fri, Mar 25, 2022 at 12:42:15PM +0200, Tomi Valkeinen wrote:
> On 24/03/2022 16:23, Maxime Ripard wrote:
> > On Thu, Mar 24, 2022 at 03:43:42PM +0200, Laurent Pinchart wrote:
> > > On Thu, Mar 24, 2022 at 09:18:19AM +0100, Maxime Ripard wrote:
> > > >
On Mon, Feb 21, 2022 at 08:28:35AM +0100, José Expósito wrote:
> The function "drm_of_find_panel_or_bridge" has been deprecated in
> favor of "devm_drm_of_get_bridge".
>
> Switch to the new function and reduce boilerplate.
>
> Signed-off-by: José Expósito
On Mon, Feb 21, 2022 at 08:33:39AM +0100, José Expósito wrote:
> The function "drm_of_find_panel_or_bridge" has been deprecated in
> favor of "devm_drm_of_get_bridge".
>
> Switch to the new function and reduce boilerplate.
>
> Signed-off-by: José Expósito
&lvds->panel, &lvds->next_bridge);
I guess lvds->panel can be removed from the rcar_lvds struct as well?
Maxime
signature.asc
Description: PGP signature
On Mon, Feb 21, 2022 at 08:42:24AM +0100, José Expósito wrote:
> The function "drm_of_find_panel_or_bridge" has been deprecated in
> favor of "devm_drm_of_get_bridge".
>
> Switch to the new function and reduce boilerplate.
>
> Signed-off-by: José Expósito
state->adjusted_mode);
> > > +
> > > + if (crtc_state->adjusted_mode.clock > max_khz)
> > > + crtc_state->adjusted_mode.clock = max_khz;
> >
> > I don't think this is correct. The adjusted most is just for minor
> > adjustments
> > Later I found another post that in clear words stated that setting
> > random registers from DT was not acceptable.
>
> Understood and thanks for the explanation.
> It is a shame that the users loose here :-(
From a user point-of-view, nothing prevents the overlays and the
firmware to be in the same package, provided by whatever distro or
build-system they would use.
The only case where it's a bit less efficient is for a panel that isn't
supported already, but it's just a documentation and tooling issue, and
Noralf has an awesome track record for both.
And the DT syntax throw so much people off that I'm not sure it's such a
benefit :)
Maxime
signature.asc
Description: PGP signature
lk, dpi->pclk_src[2]);
You get a reference to these clocks using:
>
> + dpi->pclk_src[1] = devm_clk_get(dev, "TVDPLL_D2");
> + dpi->pclk_src[2] = devm_clk_get(dev, "TVDPLL_D4");
> + dpi->pclk_src[3] = devm_clk_get(dev, "TVDPLL_D8");
> + dpi->pclk_src[4] = devm_clk_get(dev, "TVDPLL_D16");
> +
So if the clock isn't there, you'll get an error pointer, won't check
it, but will dereference it.
If the clock is optional, you should use clk_get_optional, otherwise you
should check the error returned.
That clock setup is weird though. I don't have any knowledge about your
platform, but either the clock should be a single one if it has multiple
dividers, or the pixel_clk clock should behave as a mux and just pick
the best parent for the rate it's given.
Maxime
signature.asc
Description: PGP signature
reset time.
Others work fine by luck, or have entirely ignored the issue.
This series aims at making sure the default value set by the call to the
function isn't ignored, and then making sure all drivers behave consistently.
Let me know what you think,
Maxime
Changes from v1:
- Coll
komeda_plane_reset() does the state initialisation by copying a lot of
the code found in the __drm_atomic_helper_plane_reset(). Let's switch to
that helper and reduce the boilerplate.
Cc: Brian Starkey
Cc: "James (Qian) Wang"
Cc: Liviu Dudau
Cc: Mihail Atanassov
Signed-off-by
tegra_plane_reset() does the state initialisation by copying a lot of
the code found in the __drm_atomic_helper_plane_reset(). Let's switch to
that helper and reduce the boilerplate.
Cc: linux-te...@vger.kernel.org
Cc: Jonathan Hunter
Cc: Thierry Reding
Signed-off-by: Maxime R
value of BT601 in
drm_plane_create_color_properties().
Cc: amd-...@lists.freedesktop.org
Cc: Alex Deucher
Cc: "Christian König"
Cc: Harry Wentland
Cc: Leo Li
Cc: "Pan, Xinhui"
Cc: Rodrigo Siqueira
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/amd/display/amdgpu_dm/a
Cc: Jonathan Hunter
Cc: Thierry Reding
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/tegra/hub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c
index b910155f80c4..7f68a142d922 100644
--- a/drivers/gpu/drm/tegra
ly at reset, so this is not needed
anymore.
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-samsung-...@vger.kernel.org
Cc: Alim Akhtar
Cc: Inki Dae
Cc: Joonyoung Shim
Cc: Krzysztof Kozlowski
Cc: Kyungmin Park
Cc: Seung-Woo Kim
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/e
is is not needed anymore.
Cc: linux-te...@vger.kernel.org
Cc: Jonathan Hunter
Cc: Thierry Reding
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/tegra/plane.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/tegra/plane.c b/drivers/gpu/drm/tegra/plane.c
index ec0822c
() call.
Reviewed-by: Tomi Valkeinen
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/omapdrm/omap_plane.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c
b/drivers/gpu/drm/omapdrm/omap_plane.c
index b35205c4e979..e67baf9a942c
t, so this is not needed anymore.
Cc: freedr...@lists.freedesktop.org
Cc: linux-arm-...@vger.kernel.org
Cc: Abhinav Kumar
Cc: Rob Clark
Cc: Sean Paul
Reviewed-by: Dmitry Baryshkov
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 16
1 file chang
en attached in order to fix
this.
Reviewed-by: Harry Wentland
Reviewed-by: Laurent Pinchart
Signed-off-by: Dave Stevenson
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/drm_atomic_state_helper.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/drm_atomic_state
been adjusted to set it properly at reset, so
this is not needed anymore.
Cc: linux-renesas-...@vger.kernel.org
Reviewed-by: Kieran Bingham
Reviewed-by: Laurent Pinchart
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/rcar-du/rcar_du_plane.c | 1 -
drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 1 -
2
ly at reset, so this is not needed anymore.
Reviewed-by: Tomi Valkeinen
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/omapdrm/omap_plane.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c
b/drivers/gpu/drm/omapdrm/omap_plane.c
index e67baf9
is is not needed anymore.
Cc: Brian Starkey
Cc: "James (Qian) Wang"
Cc: Liviu Dudau
Cc: Mihail Atanassov
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/arm/display/komeda/ko
ly at reset, so
this is not needed anymore.
Cc: linux-arm-ker...@lists.infradead.org
Cc: linux-su...@lists.linux.dev
Cc: Chen-Yu Tsai
Reviewed-by: Jernej Skrabec
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/sun4i/sun4i_layer.c | 16 +++-
1 file changed, 7 insertions(+), 9 dele
this is not needed anymore.
Reviewed-by: Alain Volmat
Reviewed-by: Philippe Cornu
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/sti/sti_cursor.c | 2 +-
drivers/gpu/drm/sti/sti_gdp.c| 2 +-
drivers/gpu/drm/sti/sti_hqvdp.c | 2 +-
drivers/gpu/drm/sti/sti_plane.c | 6 --
drivers/gp
de an helper to access this property.
Reviewed-by: Laurent Pinchart
Signed-off-by: Dave Stevenson
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/drm_mode_object.c | 53 +--
include/drm/drm_mode_object.h | 7
2 files changed, 50 insertions(+), 10 deletions(-)
been
adjusted to set it properly at reset, so this is not needed anymore.
Cc: Russell King
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/armada/armada_overlay.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/armada/armada_overlay.c
b/drivers/gpu/drm/armada/armada_over
7;s add some code in __drm_atomic_helper_plane_state_reset() to get
the initial encoding and range value if the property has been attached
in order to fix this.
Reviewed-by: Harry Wentland
Signed-off-by: Dave Stevenson
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/drm_atomic_state_helper.c |
reset, so this is not needed anymore.
Cc: nouv...@lists.freedesktop.org
Cc: Ben Skeggs
Cc: Karol Herbst
Cc: Lyude Paul
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndw.c
b/driver
reset, so this is not needed
anymore.
Cc: linux-arm-ker...@lists.infradead.org
Cc: NXP Linux Team
Cc: Fabio Estevam
Cc: Pengutronix Kernel Team
Cc: Philipp Zabel
Cc: Sascha Hauer
Cc: Shawn Guo
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/imx/ipuv3-plane.c | 3 ---
1 file changed, 3 dele
been
adjusted to set it properly at reset, so this is not needed anymore.
Cc: Brian Starkey
Cc: "James (Qian) Wang"
Cc: Liviu Dudau
Cc: Mihail Atanassov
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 5 +
1 file changed, 1 insertion(+), 4 del
usted to set it properly at reset, so this is not needed anymore.
Reviewed-by: Tomi Valkeinen
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/omapdrm/omap_plane.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c
b/drivers/gpu/drm/omapdrm/omap_plane.c
been
adjusted to set it properly at reset, so this is not needed anymore.
Cc: linux-arm-ker...@lists.infradead.org
Cc: NXP Linux Team
Cc: Fabio Estevam
Cc: Pengutronix Kernel Team
Cc: Philipp Zabel
Cc: Sascha Hauer
Cc: Shawn Guo
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/imx/ipuv3-pl
d which explicitly preserves the list head of
> the destination mode.
>
> [...]
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime
lutions, but the one that seem to work without
any cons is to defer the deallocation of RAM entries to the next vblank
after the CRTC state has been freed.
Let me know what you think,
Maxime
Maxime Ripard (8):
drm/vc4: kms: Take old state core clock rate into account
drm/vc4: hvs: Fix fra
state also needs to be taken into account if it
requires a core clock higher that the new one and our 500MHz limit,
since it's still live in hardware at the beginning of our commit.
Fixes: 16e101051f32 ("drm/vc4: Increase the core clock based on HVS load")
Signed-off-by: Maxime Ripard
-
Setting the DISPLISTx register needs to occur in every case, and we
don't need to protect the register using the event_lock, so we can just
move it after the if branches and simplify a bit the function.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_hvs.c | 9 +++--
1 file ch
The assigned_channel field of our vc4_crtc_state structure is accessed
multiple times in vc4_hvs_atomic_flush, so let's move it to a variable
that can be used in all those places.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_hvs.c | 9 +
1 file changed, 5 insertions(
DISPSTAT1 register, at the offset
18.
Fixes: e538092cb15c ("drm/vc4: Enable precise vblank timestamping for
interlaced modes.")
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-
drivers/gpu/drm/vc4/vc4_drv.h | 1 +
drivers/gpu/drm/vc4/vc4_h
The vc4_hvs_update_dlist function mostly deals with setting up the
vblank events and setting up the dlist entry pointer to our current
active one.
We'll want to do the former separately from the vblank handling in later
patches, so let's move it to a function of its own.
Signed-off-
atomic_flush will be called for each CRTC even if they aren't enabled.
The whole code we have there will thus run without a properly affected
channel, which can then result in all sorts of weird behaviour.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_hvs.c | 3 +++
1 file ch
Those macros are really about the HVS itself, and thus its associated
structure vc4_hvs, rather than the entire (virtual) vc4 device.
Let's change those macros to use the hvs pointer directly, and change
the calling sites accordingly.
Signed-off-by: Maxime Ripard
---
drivers/gpu/dr
o the
allocation, and then only deallocate buffers that have a counter below
or equal to the one we see when the deallocation code should prevent the
above race from occuring.
Signed-off-by: Maxime Ripard
---
drivers/gpu/drm/vc4/vc4_crtc.c | 10 +-
drivers/gpu/drm/vc4/vc4
he failure scenario you're experiencing
> and mark it as expecting to fail. Then the patch that fixes it in the
> core could mark the test as expecting to pass, which may help us
> understand more easily what exactly changed instead of having to
> figure that out after the fact b
Hi,
On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote:
> Quoting Maxime Ripard (2022-01-25 06:15:41)
> > The current core while setting the min and max rate properly in the
> > clk_request structure will not make sure that the requested rate is
> > within these b
On Fri, Feb 18, 2022 at 02:34:20PM -0800, Stephen Boyd wrote:
> Quoting Maxime Ripard (2022-01-25 06:15:42)
> > The code in clk_set_rate_range() will, if the current rate is outside of
> > the new range, will force it to the minimum or maximum. This is
> > equivalent to usi
Hi again,
On Mon, Feb 21, 2022 at 05:18:21PM +0100, Maxime Ripard wrote:
> On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote:
> > Quoting Maxime Ripard (2022-01-25 06:15:41)
> > > +/*
> > > + * Test that if our clock has some boundaries and we try to round
Hi,
On Sun, Feb 20, 2022 at 10:55:53PM +0800, Sui Jingfeng wrote:
> +/* lsdc_get_display_timings_from_dtb - Get display timings from the device
> tree
> + *
> + * @np: point to the device node contain the display timings
> + * @pptim: point to where the pointer of struct display_timings is store
tests, first to test a few rate
related functions in the CCF, and then extends it to make sure that
behaviour has some test coverage.
Let me know what you think
Maxime
Changes from v4:
- Rename the test file
- Move all the tests to the first patch, and fix them up as fixes are done
- Improve
Let's test various parts of the rate-related clock API with the kunit
testing framework.
Cc: kunit-...@googlegroups.com
Suggested-by: Stephen Boyd
Signed-off-by: Maxime Ripard
---
drivers/clk/.kunitconfig | 1 +
drivers/clk/Kconfig | 7 +
drivers/clk/Makefile | 1 +
driver
ork will always clamp the rate to the current
range found on the clock, which will fix both these inconsistencies.
Signed-off-by: Maxime Ripard
---
drivers/clk/clk.c | 2 ++
drivers/clk/clk_test.c | 46 +-
2 files changed, 30 insertions(+), 18 deletions(-
less readable. Let's switch to using clamp
instead.
Signed-off-by: Maxime Ripard
---
drivers/clk/clk.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 9725bdc996b3..fd3daa11bfa4 100644
--- a/drivers/clk/clk.c
+++ b/drivers
-by: Stephen Boyd
Signed-off-by: Maxime Ripard
---
drivers/clk/clk.c | 45
drivers/clk/clk_test.c | 58 +++---
2 files changed, 49 insertions(+), 54 deletions(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index f
In order to reset the range on a clock, we need to call
clk_set_rate_range with a minimum of 0 and a maximum of ULONG_MAX. Since
it's fairly inconvenient, let's introduce a clk_drop_range() function
that will do just this.
Suggested-by: Stephen Boyd
Signed-off-by: Maxime Ripard
---
d
601 - 700 of 9010 matches
Mail list logo