Re: RPI 7" display touch controller

2021-11-18 Thread Dave Stevenson
On Thu, 18 Nov 2021 at 17:44, Marek Vasut wrote: > > On 11/18/21 6:02 PM, Tim Harvey wrote: > > On Thu, Nov 18, 2021 at 4:53 AM Marek Vasut wrote: > >> > >> On 11/18/21 2:25 AM, Tim Harvey wrote: > >>> Greetings, > >>> > >>> I'm trying to get a RPI 7" touchscreen display working on an IMX8MM > >>

Re: RPI 7" display touch controller

2021-11-18 Thread Dave Stevenson
On Thu, 18 Nov 2021 at 17:36, Tim Harvey wrote: > > On Thu, Nov 18, 2021 at 6:28 AM Dave Stevenson > wrote: > > > > Hi Tim > > > > On Thu, 18 Nov 2021 at 01:26, Tim Harvey wrote: > > > > > > Greetings, > > > > > > I'm t

Re: RPI 7" display touch controller

2021-11-18 Thread Dave Stevenson
Hi Tim On Thu, 18 Nov 2021 at 01:26, Tim Harvey wrote: > > Greetings, > > I'm trying to get a RPI 7" touchscreen display working on an IMX8MM > board and while I've been able to get the MIPI DSI display and > backlight working I still can't seem to figure out the touch > controller. > > It's supp

Re: [PATCH v8 01/10] drm/vc4: hdmi: Remove the DDC probing for status detection

2021-11-02 Thread Dave Stevenson
a need to read the DDC, then it should be after HPD (in whatever form it exists) has been checked. No need for that to be reinstated at this point, so this patch is fine as it stands. Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 2 -- > 1 file changed, 2 deletions

Re: [PATCH v8 10/10] drm/vc4: Increase the core clock based on HVS load

2021-11-02 Thread Dave Stevenson
if viewed necessary. Otherwise Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 15 + > drivers/gpu/drm/vc4/vc4_drv.h | 2 + > drivers/gpu/drm/vc4/vc4_kms.c | 110 ++--- > 3 files changed, 118 insertions(+), 9 deletions(-)

Re: [PATCH v8 09/10] drm/vc4: hdmi: Enable the scrambler on reconnection

2021-11-02 Thread Dave Stevenson
i_enable_scrambling function > in the detect callback if there is a mode and it needs the scrambler to > be enabled. > > Fixes: c85695a2016e ("drm/vc4: hdmi: Enable the scrambler") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > driver

Re: [PATCH v8 07/10] drm/vc4: Leverage the load tracker on the BCM2711

2021-11-02 Thread Dave Stevenson
ad tracker to do its > computation, but since we don't have the same limits, don't check them > against them, and prevent the debugfs file to enable it from being > created. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/g

Re: [PATCH v8 06/10] drm/vc4: crtc: Add some logging

2021-11-02 Thread Dave Stevenson
occur. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c > index fbc1d4638650..6decaa12a078 10064

Re: [PATCH v8 05/10] drm/vc4: crtc: Rework the encoder retrieval code (again)

2021-11-02 Thread Dave Stevenson
to > directly and without relying on any other state. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 30 +- > drivers/gpu/drm/vc4/vc4_drv.h | 4 +--- > 2 files changed, 10 insertions(+)

Re: [PATCH v8 04/10] drm/vc4: crtc: Add encoder to vc4_crtc_config_pv prototype

2021-11-02 Thread Dave Stevenson
again. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c > index 7cfd4a09784

Re: [PATCH v8 03/10] drm/vc4: Make vc4_crtc_get_encoder public

2021-11-02 Thread Dave Stevenson
On Mon, 25 Oct 2021 at 16:29, Maxime Ripard wrote: > > We'll need that function in vc4_kms to compute the core clock rate > requirements. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 8 > drive

Re: [PATCH v8 02/10] drm/vc4: hdmi: Fix HPD GPIO detection

2021-11-02 Thread Dave Stevenson
nnected, and we > would ignore an HPD pulse. > > Fixes: 6800234ceee0 ("drm/vc4: hdmi: Convert to gpiod") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > &

Re: Questions over DSI within DRM.

2021-10-08 Thread Dave Stevenson
On Thu, 7 Oct 2021 at 21:19, Andrzej Hajda wrote: > > On 07.10.2021 13:07, Dave Stevenson wrote: > > On Tue, 5 Oct 2021 at 22:03, Andrzej Hajda wrote: > >> > >> On 05.10.2021 17:32, Dave Stevenson wrote: > >>> Hi Andrzej > >>> > >>&g

Re: DSI Bridge switching

2021-10-08 Thread Dave Stevenson
On Fri, 8 Oct 2021 at 14:37, Laurent Pinchart wrote: > > Hello, > > On Fri, Oct 08, 2021 at 03:27:43PM +0200, Andrzej Hajda wrote: > > Hi, > > > > Removed my invalid email (I will update files next week). > > > > On 08.10.2021 13:14, Jagan Teki wrote: > > > Hi, > > > > > > I think this seems to be

Re: Questions over DSI within DRM.

2021-10-07 Thread Dave Stevenson
On Tue, 5 Oct 2021 at 22:03, Andrzej Hajda wrote: > > On 05.10.2021 17:32, Dave Stevenson wrote: > > Hi Andrzej > > > > Thanks for joining in the discussion. > > > > On Tue, 5 Oct 2021 at 16:08, Andrzej Hajda wrote: > >> > >> On 05

Re: Questions over DSI within DRM.

2021-10-05 Thread Dave Stevenson
Hi Andrzej Thanks for joining in the discussion. On Tue, 5 Oct 2021 at 16:08, Andrzej Hajda wrote: > > On 05.10.2021 13:23, Dave Stevenson wrote: > > Hi Laurent > > > > On Sun, 3 Oct 2021 at 15:16, Laurent Pinchart > > wrote: > >> > >>

Re: Questions over DSI within DRM.

2021-10-05 Thread Dave Stevenson
2021 at 11:50:22AM +0200, Maxime Ripard wrote: > > On Tue, Jul 06, 2021 at 05:44:58PM +0100, Dave Stevenson wrote: > > > On Tue, 6 Jul 2021 at 16:13, Maxime Ripard wrote: > > > > > > > On a similar theme, some devices want the clock lane in HS mode > &

Re: [PATCH] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge

2021-10-05 Thread Dave Stevenson
Hi Andrzej Sorry, I'm just coming back to this. I'd started this reply a while back, but got sidetracked onto other priorities and not sent it. On Wed, 8 Sept 2021 at 22:14, Andrzej Hajda wrote: > > > W dniu 08.09.2021 o 13:11, Dave Stevenson pisze: > > Hi Marek and

Re: [PATCH] drm/vc4: hdmi: Remove unused struct

2021-09-10 Thread Dave Stevenson
> Remove it. > > Fixes: c7d30623540b ("drm/vc4: hdmi: Remove unused struct") > Reported-by: kernel test robot > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 8 > 1 file changed, 8 deletions(-) > >

Re: [PATCH v3 1/6] drm/vc4: select PM

2021-09-10 Thread Dave Stevenson
Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/Kconfig| 1 + > drivers/gpu/drm/vc4/vc4_hdmi.c | 2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/Kconfig b/drivers/gpu/drm/vc4/Kconfig > index 118e8a42

Re: [PATCH] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge

2021-09-08 Thread Dave Stevenson
On Wed, 8 Sept 2021 at 16:26, Marek Vasut wrote: > > On 9/8/21 1:11 PM, Dave Stevenson wrote: > > Hi Marek and Andrzej > > Hello Dave, > > skipping the protocol discussion, which I hope Andrej will pick up. > > [...] > > >>> Usually video transmissio

Re: [PATCH] drm/bridge: ti-sn65dsi83: Check link status register after enabling the bridge

2021-09-08 Thread Dave Stevenson
Hi Marek and Andrzej On Tue, 7 Sept 2021 at 22:24, Marek Vasut wrote: > > On 9/7/21 7:29 PM, Andrzej Hajda wrote: > > > > W dniu 07.09.2021 o 16:25, Marek Vasut pisze: > >> On 9/7/21 9:31 AM, Andrzej Hajda wrote: > >>> On 07.09.2021 04:39, Marek Vasut wrote: > In rare cases, the bridge may n

Re: [PATCH v2 0/5] drm/vc4: hdmi: Fix CEC access while disabled

2021-07-28 Thread Dave Stevenson
igure error handling > drm/vc4: hdmi: Split the CEC disable / enable functions in two > drm/vc4: hdmi: Make sure the device is powered with CEC > drm/vc4: hdmi: Warn if we access the controller while disabled Comment made on patch 1. Patches 2-5: Reviewed-by: Dave Stevenson Dave &g

Re: [PATCH v2 1/5] drm/vc4: hdmi: Make sure the controller is powered up during bind

2021-07-28 Thread Dave Stevenson
d suspend functions. That's possibly a separate issue to the issue that this patch is addressing, but may explain the test bot's failure. Otherwise Reviewed-by: Dave Stevenson > + if (ret) > + goto err_put_ddc; > + > + pm_runti

Re: [PATCH 2/2] drm/vc4: hdmi: Remove unused struct

2021-07-28 Thread Dave Stevenson
91e99e113929 ("drm/vc4: hdmi: Register HDMI codec") > Reported-by: kernel test robot > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 12 > 1 file changed, 12 deletions(-) > > diff --git a/drivers/gpu/

Re: [PATCH 0/3] drm/vc4: hdmi: Interrupt fixes

2021-07-07 Thread Dave Stevenson
d by devm > after the resources it uses have been free'd already. > > The last one is there to deal with an interrupt coming in the window between > the end of the driver's bind and the DRM device registration. > > Let me know what you think, > Maxime For the series Review

Re: Questions over DSI within DRM.

2021-07-06 Thread Dave Stevenson
Hi Maxime On Tue, 6 Jul 2021 at 16:13, Maxime Ripard wrote: > > Hi Dave, > > On Mon, Jul 05, 2021 at 04:36:25PM +0100, Dave Stevenson wrote: > > Hi Laurent. > > > > Thanks to you, Jani, and Jagan for your replies. > > I'm replying to Laurent

Re: [PATCH] drm/vc4: dsi: Only register our component once a DSI device is attached

2021-07-05 Thread Dave Stevenson
Hi Laurent On Fri, 2 Jul 2021 at 21:19, Laurent Pinchart wrote: > > Hi Dave, > > On Fri, Jul 02, 2021 at 06:44:22PM +0100, Dave Stevenson wrote: > > On Fri, 2 Jul 2021 at 17:47, Laurent Pinchart wrote: > > > On Mon, Jun 21, 2021 at 04:59:51PM +0300, Laurent Pinchart w

Re: Questions over DSI within DRM.

2021-07-05 Thread Dave Stevenson
1 at 17:42, Laurent Pinchart wrote: > > Hi Dave, > > (Expanding the CC list a bit) > > On Fri, Jul 02, 2021 at 12:03:31PM +0100, Dave Stevenson wrote: > > Hi All > > > > I'm trying to get DSI devices working reliably on the Raspberry Pi, > > but I&#x

Re: [PATCH] drm/vc4: dsi: Only register our component once a DSI device is attached

2021-07-02 Thread Dave Stevenson
300, Laurent Pinchart wrote: > > > > On Mon, Jun 21, 2021 at 12:49:14PM +0100, Dave Stevenson wrote: > > > > > On Sun, 20 Jun 2021 at 23:49, Laurent Pinchart wrote: > > > > > > On Sun, Jun 20, 2021 at 09:42:27PM +0300, Laurent Pinchart wrote: >

Questions over DSI within DRM.

2021-07-02 Thread Dave Stevenson
Hi All I'm trying to get DSI devices working reliably on the Raspberry Pi, but I'm hitting a number of places where it isn't clear as to the expected behaviour within DRM. Power on state. Many devices want the DSI clock and/or data lanes in LP-11 state when they are powered up. With the normal ca

Re: [PATCH] drm/vc4: dsi: Only register our component once a DSI device is attached

2021-06-21 Thread Dave Stevenson
Hi Maxime On Mon, 21 Jun 2021 at 17:05, Maxime Ripard wrote: > > Hi Laurent, > > On Sun, Jun 20, 2021 at 04:44:33AM +0300, Laurent Pinchart wrote: > > Hi Maxime, > > > > I'm testing this, and I'm afraid it causes an issue with all the > > I2C-controlled bridges. I'm focussing on the newly merged

Re: [PATCH] drm/vc4: dsi: Only register our component once a DSI device is attached

2021-06-21 Thread Dave Stevenson
Hi Laurent On Sun, 20 Jun 2021 at 23:49, Laurent Pinchart wrote: > > Hi Dave, > > On Sun, Jun 20, 2021 at 09:42:27PM +0300, Laurent Pinchart wrote: > > On Sun, Jun 20, 2021 at 03:29:03PM +0100, Dave Stevenson wrote: > > > On Sun, 20 Jun 2021 at 04:26, Laurent Pinchar

Re: [PATCH] drm/vc4: dsi: Only register our component once a DSI device is attached

2021-06-20 Thread Dave Stevenson
Hi Laurent On Sun, 20 Jun 2021 at 04:26, Laurent Pinchart wrote: > > Hi Maxime, > > I'm testing this, and I'm afraid it causes an issue with all the > I2C-controlled bridges. I'm focussing on the newly merged ti-sn65dsi83 > driver at the moment, but other are affected the same way. > > With this

Re: [PATCH 3/3] drm/vc4: hdmi: Make sure the controller is powered in detect

2021-06-16 Thread Dave Stevenson
powered during the detect cycle to prevent the hang from > happening. > > Fixes: 4f6e3d66ac52 ("drm/vc4: Add runtime PM support to the HDMI encoder > driver") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 4 ++

Re: [PATCH 2/3] drm/vc4: hdmi: Move the HSM clock enable to runtime_pm

2021-06-16 Thread Dave Stevenson
crtc_configure when the pixel rate is known. However the crtc and HDMI blocks won't be actively passing pixels at that point, so I don't see an issue with changing the rate. The clock manager block will sort out the rate change happily. Reviewed-by: Dave Stevenson > Fixes: 4f6e3d66ac5

Re: [PATCH] drm/vc4: hdmi: Rely on interrupts to handle hotplug

2021-06-16 Thread Dave Stevenson
> > Switch the driver to rely on the internal controller logic for the > BCM2711/RPi4. Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 44 ++ > 1 file changed, 44 insertions(+) > > dif

Re: [PATCH v4 06/12] drm/vc4: hdmi: Prevent clock unbalance

2021-05-21 Thread Dave Stevenson
clocks at boot if > the controller is enabled to get the use-count right. > > Cc: # v5.10+ > Fixes: 09c438139b8f ("drm/vc4: hdmi: Implement finer-grained hooks") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c |

Re: [PATCH v4 05/12] drm/vc4: crtc: Lookup the encoder from the register at boot

2021-05-21 Thread Dave Stevenson
ixes: 875a4d536842 ("drm/vc4: drv: Disable the CRTC at boot time") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 38 ++ > 1 file changed, 34 insertions(+), 4 deletions(-) > > di

Re: [PATCH v4 04/12] drm/vc4: crtc: Fix vc4_get_crtc_encoder logic

2021-05-21 Thread Dave Stevenson
o support both the enable and disable path, we can > support it by passing the state accessor variant as a function pointer, > together with the atomic state. > > Fixes: 792c3132bc1b ("drm/vc4: encoder: Add finer-grained encoder callbacks") > Signed-off-by: Maxime Ripard

Re: [PATCH v4 11/12] drm/vc4: hdmi: Add a workqueue to set scrambling

2021-05-21 Thread Dave Stevenson
work as expected. > > Let's create delayed work queue to periodically look at the display > scrambling status, and if it's not set yet try to enable it again. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 25

Re: [PATCH v4 10/12] drm/vc4: hdmi: Enable the scrambler

2021-05-21 Thread Dave Stevenson
Hi Maxime On Fri, 7 May 2021 at 16:06, Maxime Ripard wrote: > > The HDMI controller on the BCM2711 includes a scrambler in order to > reach the HDMI 2.0 modes that require it. Let's add the support for it. > > Acked-by: Thomas Zimmermann > Signed-off-by: Maxime Rip

Re: [PATCH v4 03/12] drm/vc4: crtc: Pass the drm_atomic_state to config_pv

2021-05-21 Thread Dave Stevenson
gt; Fixes: 792c3132bc1b ("drm/vc4: encoder: Add finer-grained encoder callbacks") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/d

Re: [PATCH 0/4] drm/vc4: Add support for the BCM2711 VEC

2021-05-20 Thread Dave Stevenson
eam kernel. Thanks for upstreaming these. As far as I'm concerned they're all good, but DT bindings aren't an area of expertise for me. Patches 1&3: Reviewed-by: Dave Stevenson Patches 2&4: Acked-by: Dave Stevenson This is going to need firmware from 23rd March 2021 or later in o

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-10 Thread Dave Stevenson
On Mon, 10 May 2021 at 12:16, Marek Vasut wrote: > > On 5/10/21 11:58 AM, Dave Stevenson wrote: > > On Sat, 8 May 2021 at 21:26, Marek Vasut wrote: > >> > >> On 5/7/21 2:48 PM, Dave Stevenson wrote: > >> > >> [...] > >> >

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-10 Thread Dave Stevenson
On Sat, 8 May 2021 at 21:26, Marek Vasut wrote: > > On 5/7/21 2:48 PM, Dave Stevenson wrote: > > [...] > > >> +static void sn65dsi83_enable(struct drm_bridge *bridge) > >> +{ > >> + struct sn65dsi83 *ctx = bridge_to_sn65dsi83(bridge); > >&

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-07 Thread Dave Stevenson
On Wed, 5 May 2021 at 11:03, Marek Vasut wrote: > > Add driver for TI SN65DSI83 Single-link DSI to Single-link LVDS bridge > and TI SN65DSI84 Single-link DSI to Dual-link or 2x Single-link LVDS > bridge. TI SN65DSI85 is unsupported due to lack of hardware to test on, > but easy to add. > > The dri

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-07 Thread Dave Stevenson
On Thu, 6 May 2021 at 21:51, Marek Vasut wrote: > > On 5/6/21 6:03 PM, Frieder Schrempf wrote: > > On 06.05.21 17:46, Marek Vasut wrote: > >> On 5/6/21 5:38 PM, Frieder Schrempf wrote: > >> [...] > >>> Works on i.MX8MM with SN65DSI84 and a single link LVDS display (1024x600) > >>> and from my per

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-07 Thread Dave Stevenson
On Thu, 6 May 2021 at 21:49, Marek Vasut wrote: > > On 5/6/21 7:03 PM, Dave Stevenson wrote: > > On Thu, 6 May 2021 at 13:48, Marek Vasut wrote: > >> > >> On 5/6/21 11:45 AM, Dave Stevenson wrote: > >>> Hi Marek > >> > >> Hi, > >

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-06 Thread Dave Stevenson
On Thu, 6 May 2021 at 13:48, Marek Vasut wrote: > > On 5/6/21 11:45 AM, Dave Stevenson wrote: > > Hi Marek > > Hi, > > > I'm taking an interest as there are a number of Raspberry Pi users > > trying to get this chip up and running (not there quite yet).

Re: [PATCH V3 2/2] drm/bridge: ti-sn65dsi83: Add TI SN65DSI83 and SN65DSI84 driver

2021-05-06 Thread Dave Stevenson
Hi Marek I'm taking an interest as there are a number of Raspberry Pi users trying to get this chip up and running (not there quite yet). A couple of fairly minor comments On Wed, 5 May 2021 at 11:03, Marek Vasut wrote: > > Add driver for TI SN65DSI83 Single-link DSI to Single-link LVDS bridge >

Re: [PATCH v2 4/5] drm/vc4: hdmi: Enable the scrambler

2021-04-12 Thread Dave Stevenson
Hi Maxime On Fri, 9 Apr 2021 at 13:36, Maxime Ripard wrote: > > Hi Dave, > > On Thu, Apr 01, 2021 at 12:30:45PM +0100, Dave Stevenson wrote: > > > Signed-off-by: Maxime Ripard > > > --- > > > drivers/gpu/drm/vc4/vc4_hdmi.c | 56 +

Re: [PATCH v2 4/5] drm/vc4: hdmi: Enable the scrambler

2021-04-01 Thread Dave Stevenson
Hi Maxime On Thu, 18 Mar 2021 at 09:29, Maxime Ripard wrote: > > The HDMI controller on the BCM2711 includes a scrambler in order to > reach the modes that require it. Let's add the support for it. Nit pick - it's as part of the HDMI2.0 spec. > Signed-off-by: Maxime Ripard > --- > drivers/gpu

Re: [PATCH v2 3/5] drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies

2021-04-01 Thread Dave Stevenson
detect it at bind time, warn the user if we can't, and filter out > the relevant modes. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 26 ++ > drivers/gpu/drm/vc4/vc4_hdmi.h | 8 > 2

Re: [PATCH v2 2/5] drm/vc4: hdmi: Properly compute the BVB clock rate

2021-04-01 Thread Dave Stevenson
Hi Maxime Sorry for the delay in reviewing these patches. On Thu, 18 Mar 2021 at 09:29, Maxime Ripard wrote: > > The BVB clock rate computation doesn't take into account a mode clock of > 594MHz that we're going to need to support 4k60. > > Signed-off-by: Maxime R

Re: [PATCH 4/8] drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies

2021-03-02 Thread Dave Stevenson
On Tue, 2 Mar 2021 at 13:02, Maxime Ripard wrote: > > Hi Dave, > > Thanks for your review > > On Thu, Feb 25, 2021 at 04:38:37PM +0000, Dave Stevenson wrote: > > On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > > > > > In order to reach the f

Re: [PATCH 3/8] drm/vc4: hdmi: Properly compute the BVB clock rate

2021-02-25 Thread Dave Stevenson
On Thu, 25 Feb 2021 at 16:44, Dave Stevenson wrote: > > Hi Maxime > > On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > > > The BVB clock rate computation doesn't take into account a mode clock of > > 594MHz that we're going to need to support 4k

Re: [PATCH 2/8] drm/vc4: hvs: Make the HVS bind first

2021-02-25 Thread Dave Stevenson
of. > > Signed-off-by: Maxime Ripard Based on my understanding of bind ordering this makes sense, but I don't consider myself an expert there. Acked-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_drv.c | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) >

Re: [PATCH 7/8] drm/vc4: plane: Fix typo in scaler width and height

2021-02-25 Thread Dave Stevenson
On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > Signed-off-by: Maxime Ripard Again no commit text body, but possibly not warranted Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_plane.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >

Re: [PATCH 8/8] drm/vc4: plane: Remove redundant assignment

2021-02-25 Thread Dave Stevenson
On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > Signed-off-by: Maxime Ripard Other than no commit text body (which is hardly needed in this case) Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_plane.c | 1 - > 1 file changed, 1 deletion(-) > > dif

Re: [PATCH 6/8] drm/vc4: hdmi: Raise the maximum clock rate

2021-02-25 Thread Dave Stevenson
r than what we can provide to support the same > modes. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/g

Re: [PATCH 3/8] drm/vc4: hdmi: Properly compute the BVB clock rate

2021-02-25 Thread Dave Stevenson
Hi Maxime On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > The BVB clock rate computation doesn't take into account a mode clock of > 594MHz that we're going to need to support 4k60. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 11 +++ > 1 file changed

Re: [PATCH 4/8] drm/vc4: hdmi: Check and warn if we can't reach 4kp60 frequencies

2021-02-25 Thread Dave Stevenson
Hi Maxime On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > In order to reach the frequencies needed to output at 594MHz, the > firmware needs to be configured with the appropriate parameters in the > config.txt file (enable_hdmi_4kp60 and force_turbo). force_turbo isn't the right way to go

Re: [PATCH 5/8] drm/vc4: hdmi: Enable the scrambler

2021-02-25 Thread Dave Stevenson
Hi Maxime On Thu, 25 Feb 2021 at 15:59, Maxime Ripard wrote: > > The HDMI controller on the BCM2711 includes a scrambler in order to > reach the modes that require it. Let's add the support for it. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 58 +++

Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller

2021-02-10 Thread Dave Stevenson
Hi Marc. On Wed, 10 Feb 2021 at 15:30, Marc Zyngier wrote: > > Hi Maxime, > > On 2021-02-10 14:40, Maxime Ripard wrote: > > Hi Dave, > > > > On Tue, Feb 09, 2021 at 09:49:05AM +, Dave Stevenson wrote: > >> On Mon, 11 Jan 2021 at 14:23, Maxime Ripard w

Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller

2021-02-09 Thread Dave Stevenson
Hi Maxime On Mon, 11 Jan 2021 at 14:23, Maxime Ripard wrote: > > The BSC controllers used for the HDMI DDC have an interrupt controller > shared between both instances. Let's add it to avoid polling. This seems to have unintended side effects. GIC interrupt 117 is shared between the standard I2C

Re: [PATCH] drm/vc4: hvs: Fix buffer overflow with the dlist handling

2021-02-02 Thread Dave Stevenson
out of vc4_plane_mode_set()") > Signed-off-by: Maxime Ripard Looks good. Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_plane.c | 18 ++ > 1 file changed, 14 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/driv

Re: [PATCH v2 13/15] dt-binding: display: bcm2711-hdmi: Add CEC and hotplug interrupts

2021-01-22 Thread Dave Stevenson
x27;m not a DT bindings expert Acked-by: Dave Stevenson > --- > .../bindings/display/brcm,bcm2711-hdmi.yaml | 20 ++- > 1 file changed, 19 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml > b/Docume

Re: [PATCH v2 10/15] drm/vc4: hdmi: Support BCM2711 CEC interrupt setup

2021-01-22 Thread Dave Stevenson
upt handler and > deals with the interrupt handler setup, or two interrupt handlers > relying on an external irqchip. > > Signed-off-by: Maxime Ripard Looks good Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 42 ++ > dri

Re: [PATCH v2 09/15] drm/vc4: hdmi: Split the interrupt handlers

2021-01-22 Thread Dave Stevenson
CEC controller is identical though so we need to change > a bit the code organisation to share the code as much as possible, yet > still allowing to register independant handlers. s/independant/independent > > Signed-off-by: Maxime Ripard With that Reviewed-by: Dave Stevenson > ---

Re: [PATCH v2 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2021-01-22 Thread Dave Stevenson
y: Maxime Ripard I follow the logic, and trust Dom that it works, but I don't know if that is the correct thing within CEC. Ideally Hans will comment as the original author of the CEC code - I believe he's testing the series anyway. Acked-by: Dave Stevenson > --- > driver

Re: [PATCH 2/2] drm/vc4: Correct POS1_SCL for hvs5

2021-01-22 Thread Dave Stevenson
50] 7fc0: 027eb750 befdd870 c03864bc 0036 027e3948 0281a640 > 0281a850 027e3a50 > [ 284.315756] 7fe0: b4b64100 befdd844 b4b5ba2c b49c994c > [ 284.315762] r10:0036 r9:c3d46000 r8:c0200204 r7:0036 r6:c03864bc > r5:befdd870 > [ 284.315765] r4:027eb750 > > Fixes:

Re: [PATCH 1/2] drm/vc4: Correct lbm size and calculation

2021-01-22 Thread Dave Stevenson
of format). > > The LBM adress indexes work in units of pixels per clock, > so for 4 pixels per clock that means we have 32 * 1920 = 60K > > Fixes: c54619b0bfb3 ("drm/vc4: Add support for the BCM2711 HVS5") > Signed-off-by: Dom Cobley > Signed-off-by: Maxime Ripard

Re: [PATCH 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2020-12-18 Thread Dave Stevenson
On Fri, 18 Dec 2020 at 14:21, Dave Stevenson wrote: > > Hi Maxime & Dom > > On Thu, 10 Dec 2020 at 13:47, Maxime Ripard wrote: > > > > From: Dom Cobley > > > > Currently we call cec_phys_addr_invalidate on a hotplug deassert. > > That may be due t

Re: [PATCH 11/15] drm/vc4: hdmi: Remove cec_available flag

2020-12-18 Thread Dave Stevenson
Hi Dom & Maxime On Thu, 10 Dec 2020 at 13:47, Maxime Ripard wrote: > > From: Dom Cobley > > Now that our HDMI controller supports CEC for the BCM2711, let's remove > that flag. > > Signed-off-by: Dom Cobley > Signed-off-by: Maxime Ripard Reviewed-by: Dave Ste

Re: [PATCH 12/15] drm/vc4: hdmi: Don't register the CEC adapter if there's no interrupts

2020-12-18 Thread Dave Stevenson
e CEC setup if the DT doesn't have the > interrupts property. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/driv

Re: [PATCH 07/15] drm/vc4: hdmi: Update the CEC clock divider on HSM rate change

2020-12-18 Thread Dave Stevenson
moving code that was changed in patch 6/15 so it can be called from vc4_hdmi_encoder_pre_crtc_configure too. Good for confusing me! Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 39 +- > 1 file changed, 29 insertions(+), 10

Re: [PATCH 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2020-12-18 Thread Dave Stevenson
Hi Maxime & Dom On Thu, 10 Dec 2020 at 13:47, Maxime Ripard wrote: > > From: Dom Cobley > > Currently we call cec_phys_addr_invalidate on a hotplug deassert. > That may be due to a TV power cycling, or an AVR being switched > on (and switching edid). > > This makes CEC unusable since our contro

Re: [PATCH 08/15] drm/vc4: hdmi: Introduce a CEC clock

2020-12-18 Thread Dave Stevenson
On Fri, 18 Dec 2020 at 12:23, Maxime Ripard wrote: > > Hi Dave, > > On Fri, Dec 18, 2020 at 11:37:50AM +, Dave Stevenson wrote: > > Hi Maxime > > > > On Thu, 10 Dec 2020 at 13:47, Maxime Ripard wrote: > > > > > > While the BCM2835 h

Re: [PATCH 08/15] drm/vc4: hdmi: Introduce a CEC clock

2020-12-18 Thread Dave Stevenson
Hi Maxime On Thu, 10 Dec 2020 at 13:47, Maxime Ripard wrote: > > While the BCM2835 had the CEC clock derived from the HSM clock, the > BCM2711 has a dedicated parent clock for it. > > Let's introduce a separate clock for it so that we can handle both > cases. > > Signed-off-by: Maxime Ripard > -

Re: [PATCH 06/15] drm/vc4: hdmi: Compute the CEC clock divider from the clock rate

2020-12-18 Thread Dave Stevenson
> the proper rate. > > Fixes: cd4cb49dc5bb ("drm/vc4: hdmi: Adjust HSM clock rate depending on pixel > rate") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson (To be a total pedant it's still a fixed frequency on vc4, but it's configurable via th

Re: [PATCH 04/15] drm/vc4: hdmi: Fix up CEC registers

2020-12-18 Thread Dave Stevenson
e. Fix those mistakes. > > Fixes: 311e305fdb4e ("drm/vc4: hdmi: Implement a register layout abstraction") > Signed-off-by: Dom Cobley > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 4 +++- > 1 file changed, 3 in

Re: [PATCH 02/15] drm/vc4: hdmi: Move hdmi reset to bind

2020-12-18 Thread Dave Stevenson
re block I don't see it needing to be triggered on every configure. > Fixes: 9045e91a476b ("drm/vc4: hdmi: Add reset callback") > Signed-off-by: Dom Cobley > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 6 +++--

Re: [PATCH v7 9/9] drm/vc4: hdmi: Enable 10/12 bpc output

2020-12-15 Thread Dave Stevenson
Hi Maxime On Tue, 15 Dec 2020 at 15:43, Maxime Ripard wrote: > > The BCM2711 supports higher bpc count than just 8, so let's support it in > our driver. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/dr

Re: [PATCH v7 5/9] drm/vc4: hdmi: Create a custom connector state

2020-12-15 Thread Dave Stevenson
e > associated to the state. > > Acked-by: Thomas Zimmermann > Signed-off-by: Maxime Ripard I'm happy again Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 33 ++--- > drivers/gpu/drm/vc4/vc4_hdmi.h | 10 ++ >

Re: [PATCH 03/15] drm/vc4: hdmi: Fix register offset with longer CEC messages

2020-12-15 Thread Dave Stevenson
Implement a register layout abstraction") > Signed-off-by: Dom Cobley > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 17 +++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > > diff --git a/drivers/g

Re: [PATCH v6 9/9] drm/vc4: hdmi: Enable 10/12 bpc output

2020-12-15 Thread Dave Stevenson
Hi Maxime On Thu, 10 Dec 2020 at 14:23, Maxime Ripard wrote: > > The BCM2711 supports higher bpc count than just 8, so let's support it in > our driver. > > Signed-off-by: Maxime Ripard Looks good to me, but is impacted by the comment I've just made on 5/9. Dave > --- > drivers/gpu/drm/vc

Re: [PATCH v6 5/9] drm/vc4: hdmi: Create a custom connector state

2020-12-15 Thread Dave Stevenson
e > associated to the state. > > Acked-by: Thomas Zimmermann > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 33 ++--- > drivers/gpu/drm/vc4/vc4_hdmi.h | 10 ++ > 2 files change

Re: [PATCH v5 6/9] drm/vc4: hdmi: Store pixel frequency in the connector state

2020-12-09 Thread Dave Stevenson
n the pixel clock at in our custom > connector state, and compute it in atomic_check. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 26 +- > drivers/gpu/drm/vc4/vc4_hdmi.h | 1 + > 2 files chang

Re: [PATCH v5 3/9] drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check

2020-12-09 Thread Dave Stevenson
Hi Maxime On Mon, 7 Dec 2020 at 15:57, Maxime Ripard wrote: > > Reported-by: Thomas Zimmermann > Fixes: 63495f6b4aed ("drm/vc4: hdmi: Make sure our clock rate is within > limits") > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > dri

Re: [PATCH v5 9/9] drm/vc4: hdmi: Enable 10/12 bpc output

2020-12-09 Thread Dave Stevenson
Hi Maxime On Mon, 7 Dec 2020 at 15:57, Maxime Ripard wrote: > > The BCM2711 supports higher bpc count than just 8, so let's support it in > our driver. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 71 - > drivers/gpu/drm/vc4/vc4_hdmi

Re: [PATCH v5 8/9] drm/vc4: hdmi: Limit the BCM2711 to the max without scrambling

2020-12-09 Thread Dave Stevenson
> > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c > index 5310e06efc82..f4ff6b

Re: [PATCH v5 7/9] drm/vc4: hdmi: Use the connector state pixel rate for the PHY

2020-12-09 Thread Dave Stevenson
gt; > Since the TMDS clock rate is stored in our custom connector state > already, let's reuse it from there instead of computing it again. > > Acked-by: Thomas Zimmermann > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_

Re: [PATCH v5 5/9] drm/vc4: hdmi: Create a custom connector state

2020-12-09 Thread Dave Stevenson
t; associated to the state. > > Acked-by: Thomas Zimmermann > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 27 +-- > drivers/gpu/drm/vc4/vc4_hdmi.h | 10 ++ > 2 files changed, 35 inser

Re: [PATCH v5 4/9] drm/vc4: hdmi: Don't access the connector state in reset if kmalloc fails

2020-12-09 Thread Dave Stevenson
; that will access connector->state without checking if it's a valid > pointer or not. > > Make sure we don't end up accessing a NULL pointer. > > Acked-by: Thomas Zimmermann > Suggested-by: Dave Stevenson > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson &

Re: [PATCH v2] drm/vc4: hdmi: Don't poll for the infoframes status on setup

2020-12-04 Thread Dave Stevenson
ince the we can't > update the packet RAM until it has been sent. > > Let's add a boolean flag to tell whether we want to poll or not to > support both cases. > > Suggested-by: Dave Stevenson > Signed-off-by: Maxime Ripard That looks like it should do what was intend

Re: [PATCH V3 1/2] dt-bindings: Add DT bindings for Toshiba TC358762 DSI-to-DPI bridge

2020-12-03 Thread Dave Stevenson
Hi Marek On Wed, 12 Aug 2020 at 21:07, Sam Ravnborg wrote: > > Hi Marek. > > On Sun, Aug 09, 2020 at 12:57:04PM +0200, Marek Vasut wrote: > > Add DT bindings for Toshiba TC358762 DSI-to-DPI bridge, this > > one is used in the Raspberry Pi 7" touchscreen display unit. > > > > Signed-off-by: Marek

Re: [PATCH 0/8] drm/vc4: DSI improvements and BCM2711 support

2020-12-03 Thread Dave Stevenson
g a variant structure is much cleaner than the hack I had. For those that I didn't author (ie 1, 3, and 4) Reviewed-by: Dave Stevenson > Dave Stevenson (5): > drm/vc4: dsi: Correct DSI register definition > drm/vc4: dsi: Add support for DSI0 > dt-bindings: Add com

Re: [PATCH] drm/vc4: hdmi: Don't poll for the infoframes status on setup

2020-11-19 Thread Dave Stevenson
ince the we can't > update the packet RAM until it has been sent. > > Let's add a boolean flag to tell whether we want to poll or not to > support both cases. > > Suggested-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_hdm

Re: [PATCH v2 1/2] drm/vc4: hdmi: Make sure our clock rate is within limits

2020-11-19 Thread Dave Stevenson
that limit, > but the userspace is still free to try to setup a mode that would. > > Implement atomic_check to make sure we check it in that scenario too. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > > Changes from v1: > - Added that patch to

<    1   2   3   4   5   >