[PATCH 2/3] drm/vc4: Use .pixel_order instead of custom .flip_cbcr

2017-11-16 Thread Dave Stevenson
being a value 0. Signed-off-by: Dave Stevenson <dave.steven...@raspberrypi.org> --- drivers/gpu/drm/vc4/vc4_plane.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 513b4b1..6

[PATCH 0/3] drm/vc4 support for extra formats

2017-11-16 Thread Dave Stevenson
These are relatively trivial patches that just expand the list of formats that the vc4 DRM driver will accept. RGB888, BGR888, NV21, and NV61 tested with the modetest app from the libdrm repo. YUV422 and YVU422 can't be as they aren't supported. Dave Stevenson (3): drm/vc4: Add support

[PATCH 3/3] drm/vc4: Add support for NV21 and NV61.

2017-11-16 Thread Dave Stevenson
NV12 (YUV420 2 plane) and NV16 (YUV422 2 plane) were supported, but NV21 and NV61 (same but with Cb and Cr swapped) weren't. Add them. Signed-off-by: Dave Stevenson <dave.steven...@raspberrypi.org> --- drivers/gpu/drm/vc4/vc4_plane.c | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH 1/3] drm/vc4: Add support for DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888

2017-11-16 Thread Dave Stevenson
Filling out the list of supported formats based on those the hardware can support. Signed-off-by: Dave Stevenson <dave.steven...@raspberrypi.org> --- drivers/gpu/drm/vc4/vc4_plane.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/d

Re: [PATCH 2/3] drm/vc4: Force ->x_scaling[1] should never be set to VC4_SCALING_NONE

2018-11-12 Thread Dave Stevenson
Hi Boris & Eric. On Thu, 8 Nov 2018 at 15:12, Eric Anholt wrote: > > Boris Brezillon writes: > > > On Thu, 08 Nov 2018 06:52:44 -0800 > > Eric Anholt wrote: > > > >> Boris Brezillon writes: > >> > >> > For the YUV conversion to work properly, ->x_scaling[0,1] should never > >> > be set to

Re: [PATCH v2 79/91] drm/vc4: hdmi: Deal with multiple debugfs files

2020-04-28 Thread Dave Stevenson
gt; > Let's use the ID to avoid that name conflict. > > > > even with this patch there is a name conflict in debugfs using Linux > > 5.7-rc1. Dave Stevenson addressed this by using different card names > > [1]. Since this patch won't apply anymore here is my suggest

Re: [PATCH v5 75/80] drm/vc4: hdmi: Add pixel BVB clock control

2020-09-04 Thread Dave Stevenson
_unprepare(vc4_hdmi->hsm_clock); > clk_disable_unprepare(vc4_hdmi->pixel_clock); > > @@ -516,6 +518,27 @@ static void vc4_hdmi_encoder_pre_crtc_configure(struct > drm_encoder *encoder) > return; > } > > + /* > +* FIXME: When the pixel freq is

Re: [PATCH v5 55/80] drm/vc4: hdmi: Add a CSC setup callback

2020-09-04 Thread Dave Stevenson
gt; Tested-by: Stefan Wahren > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 70 +-- > drivers/gpu/drm/vc4/vc4_hdmi.h | 3 ++- > 2 files changed, 45 insertions(+), 28 deletions(-) > > dif

Re: [PATCH v5 13/80] drm/vc4: kms: Convert to for_each_new_crtc_state

2020-09-04 Thread Dave Stevenson
ted-by: Stefan Wahren > Signed-off-by: Maxime Ripard Based on your comment to the previous revision, I'm happy. Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_kms.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc

Re: [PATCH v5 56/80] drm/vc4: hdmi: Add a set_timings callback

2020-09-04 Thread Dave Stevenson
s, resulting > in the register layout changing. > > Let's add a callback for that as well. > > Tested-by: Chanwoo Choi > Tested-by: Hoegeun Kwon > Tested-by: Stefan Wahren > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > ---

Re: [PATCH v5 79/80] drm/vc4: drv: Support BCM2711

2020-09-04 Thread Dave Stevenson
d-by: Chanwoo Choi > Tested-by: Hoegeun Kwon > Tested-by: Stefan Wahren > Signed-off-by: Maxime Ripard I'm happy with this. Potentially a case for having split it into two patches (make the load tracker optional, and then use that option for the new compatible), but I'm not convin

Re: [PATCH v2 6/6] drm/vc4: hdmi: Enable 10/12 bpc output

2020-10-15 Thread Dave Stevenson
Hi Maxime On Thu, 8 Oct 2020 at 13:44, Maxime Ripard wrote: > > The BCM2711 supports higher bpc count than just 8, so let's support it in > our driver. Something appears to be slightly off with this one. Running the monitor (Dell U2718Q 4k monitor) at 1080p60. Use modetest to switch "max bpc"

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-02 Thread Dave Stevenson
Hi Maxime On Fri, 2 Oct 2020 at 16:19, Maxime Ripard wrote: > > Hi Tim, > > On Thu, Oct 01, 2020 at 11:15:46AM +0100, Tim Gover wrote: > > hdmi_enable_4k60=1 causes the firmware to select 3.3 GHz for the PLLC > > VCO to support a core-frequency of 550 MHz which is the minimum > > frequency

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-10-06 Thread Dave Stevenson
Hi Maxime On Tue, 6 Oct 2020 at 16:26, Maxime Ripard wrote: > > Hi Dave, > > On Fri, Oct 02, 2020 at 04:57:05PM +0100, Dave Stevenson wrote: > > Hi Maxime > > > > On Fri, 2 Oct 2020 at 16:19, Maxime Ripard wrote: > > > > > > Hi Tim, > >

Re: [PATCH 3/3] drm/vc4: hdmi: Add pixel bvb clock control

2020-08-28 Thread Dave Stevenson
Hi Stefan & Hoegeun On Wed, 26 Aug 2020 at 11:04, Stefan Wahren wrote: > > Hi Hoeguen, > > Am 21.08.20 um 09:10 schrieb Hoegeun Kwon: > > There is a problem that the output does not work at a resolution > > exceeding FHD. To solve this, we need to adjust the bvb clock at a > > resolution

Re: [PATCH 3/3] drm/vc4: hdmi: Add pixel bvb clock control

2020-08-28 Thread Dave Stevenson
Hi Maxime, Stefan, and Hoegeun On Fri, 28 Aug 2020 at 16:25, Maxime Ripard wrote: > > Hi, > > On Fri, Aug 28, 2020 at 02:45:49PM +0200, Stefan Wahren wrote: > > Am 28.08.20 um 08:30 schrieb Hoegeun Kwon: > > > On 8/27/20 6:49 PM, Stefan Wahren wrote: > > >> Am 27.08.20 um 06:35 schrieb Hoegeun

Re: [PATCH -next] drm/v3d: Remove set but not used variable

2020-09-23 Thread Dave Stevenson
Hi On Wed, 23 Sep 2020 at 08:53, Li Heng wrote: > > This addresses the following gcc warning with "make W=1": > > drivers/gpu/drm/v3d/v3d_drv.c:73:32: warning: > ‘v3d_v3d_pm_ops’ defined but not used [-Wunused-const-variable=] > > Reported-by: Hulk Robot > Signed-off-by: Li Heng > --- >

Re: [PATCH v2 1/2] drm/vc4: crtc: Rework a bit the CRTC state code

2020-09-23 Thread Dave Stevenson
> casted. s/casted/cast > However, this is pretty fragile especially since there's no check for this > in place, and we're going to need to access vc4_crtc_state member at reset > so this looks like a good occasion to make it more robust. > > Signed-off-by: Maxime Ripard >

Re: [PATCH v2 1/2] drm/vc4: crtc: Rework a bit the CRTC state code

2020-09-25 Thread Dave Stevenson
On Fri, 25 Sep 2020 at 12:38, Maxime Ripard wrote: > > Hi Dave, > > On Wed, Sep 23, 2020 at 03:59:04PM +0100, Dave Stevenson wrote: > > Hi Maxime > > > > On Wed, 23 Sep 2020 at 09:40, Maxime Ripard wrote: > > > > > > The current CRTC st

Re: [PATCH v2 2/2] drm/vc4: crtc: Keep the previously assigned HVS FIFO

2020-09-25 Thread Dave Stevenson
k it as disabled, and if our CRTC already had an assigned > channel in its previous state, we keep on using it. > > Fixes: 87ebcd42fb7b ("drm/vc4: crtc: Assign output to channel automatically") > Signed-off-by: Maxime Ripard > Tested-by: Dave Stevenson Reviewed-by: Dave Steven

Re: [PATCH v3 032/105] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable

2020-06-02 Thread Dave Stevenson
Hi Maxime and Eric On Tue, 2 Jun 2020 at 15:12, Maxime Ripard wrote: > > Hi Eric > > On Wed, May 27, 2020 at 09:54:44AM -0700, Eric Anholt wrote: > > On Wed, May 27, 2020 at 8:50 AM Maxime Ripard wrote: > > > > > > The VIDEN bit in the pixelvalve currently being used to enable or disable > > >

Re: [PATCH 1/2] drm/vc4: kms: Assign a FIFO to enabled CRTCs instead of active

2020-09-18 Thread Dave Stevenson
nt to assign FIFOs to all the enabled CRTCs, and not > just the active ones. > > Fixes: 87ebcd42fb7b ("drm/vc4: crtc: Assign output to channel automatically") > Signed-off-by: Maxime Ripard Tested-by: Dave Stevenson Reviewed-by: Dave Stevenson > --- > drivers/gpu

Re: [PATCH 2/2] drm/vc4: crtc: Keep the previously assigned HVS FIFO

2020-09-18 Thread Dave Stevenson
lue for our assigned > channel to mark it as disabled, and if our CRTC already had an assigned > channel in its previous state, we keep on using it. > > Fixes: 87ebcd42fb7b ("drm/vc4: crtc: Assign output to channel automatically") > Signed-off-by: Maxime Ripard T

Re: [PATCH] drm/vc4: hvs: Pull the state of all the CRTCs prior to PV muxing

2020-09-18 Thread Dave Stevenson
c_check so that we can operate on all the > running CRTCs, no matter whether they are affected by the new state or not. > > Cc: Hoegeun Kwon > Fixes: 87ebcd42fb7b ("drm/vc4: crtc: Assign output to channel automatically") > Signed-off-by: Maxime Ripard Tested-by: Dave St

Re: [PATCH] drm/vc4: hdmi: Add a name to the codec DAI component

2020-10-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 15:46, Maxime Ripard wrote: > > Since the components for a given device in ASoC are identified by their > name, it makes sense to add one even though it's not strictly necessary. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson >

Re: [PATCH] drm/vc4: Rework the structure convertion functions

2020-10-28 Thread Dave Stevenson
between them. > > However, this is pretty fragile especially since there's no check to make > sure that the DRM structure is indeed at the offset 0 in the structure, so > let's use container_of to make it more robust. > > Signed-off-by: Maxime Ripard Otherwise Reviewed-by: Dave Steven

Re: [PATCH] drm/vc4: hdmi: Block odd horizontal timings

2020-10-28 Thread Dave Stevenson
It's unsupported due to the architecture rather than broken. I'd hope the compiler would convert "% 2" to "& 1" in these cases, but it's not a critical performance path anyway. Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 12 &g

Re: [PATCH v4 60/78] drm/vc4: hdmi: Remove unused CEC_CLOCK_DIV define

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The CEC_CLOCK_DIV define is not used anywhere in the driver, let's remove > it. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 1 - > 1 file changed

Re: [PATCH v4 69/78] drm/vc4: hdmi: Remove register dumps in enable

2020-07-28 Thread Dave Stevenson
y make sense where they are called in sequence, keeping > the register dump makes little sense. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 17 - > 1 file changed, 17 deletions(-) > > diff --git a/driver

Re: [PATCH v4 68/78] drm/vc4: hdmi: Deal with multiple ALSA cards

2020-07-28 Thread Dave Stevenson
ng to register two files with the same > name. > > Let's use the variant to avoid that name conflict. > > Signed-off-by: Maxime Ripard With that change Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 3 ++- > drivers/gpu/drm/vc4/vc4_hdmi.h | 3

Re: [PATCH v4 21/78] drm/vc4: crtc: Move PV dump to config_pv

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > Now that we only configure the PixelValve in vc4_crtc_config_pv, it doesn't > really make much sense to dump its register content in its caller. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson >

Re: [PATCH v4 40/78] drm/vc4: hdmi: rework connectors and encoders

2020-07-28 Thread Dave Stevenson
> makes it more complicated than it needs to be. > > Move those structures to be contained by vc4_hdmi and update the code > accordingly. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 87 --

Re: [PATCH v4 57/78] drm/vc4: hdmi: Deal with multiple debugfs files

2020-07-28 Thread Dave Stevenson
register two files with the same > name. > > Let's use the variant to avoid that name conflict. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 5 - > drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ > 2 files changed,

Re: [PATCH v4 11/78] drm/vc4: crtc: Use local chan variable

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:42, Maxime Ripard wrote: > > The vc4_crtc_handle_page_flip already has a local variable holding the > value of vc4_crtc->channel, so let's use it instead. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > driver

Re: [PATCH v4 12/78] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable

2020-07-28 Thread Dave Stevenson
h, but it looks odd when compared to the code. > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/v

Re: [PATCH v4 24/78] drm/vc4: hvs: Make sure our channel is reset

2020-07-28 Thread Dave Stevenson
: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hvs.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c > index c7de77afbf0a..64b9d72471ef 100644 > --- a/drivers/gpu/drm/vc4/v

Re: [PATCH v4 47/78] drm/vc4: hdmi: Retrieve the vc4_hdmi at unbind using our device

2020-07-28 Thread Dave Stevenson
n support both cases. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 24 +++- > drivers/gpu/drm/vc4/vc4_hdmi.h | 4 ++-- > 2 files changed, 25 insertions(+), 3 deletions(-) > > diff --git a/dri

Re: [PATCH v4 53/78] drm/vc4: hdmi: Add PHY init and disable function

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > The HDMI PHY in the BCM2711 HDMI controller is significantly more > complicated to setup than in the older BCM283x SoCs. > > Let's add hooks to enable and disable the PHY. > > Signed-off-by: Maxime Ripar

Re: [PATCH v4 55/78] drm/vc4: hdmi: Add a CSC setup callback

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > Similarly to the previous patches, the CSC setup is slightly different in > the BCM2711 than in the previous generations. Let's add a callback for it. We've gained the set_timings callback in this patch as well as csc_setup. Was

Re: [PATCH v4 56/78] drm/vc4: hdmi: Store the encoder type in the variant structure

2020-07-28 Thread Dave Stevenson
ntrollers later on. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 3 ++- > drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b

Re: [PATCH v4 61/78] drm/vc4: hdmi: Rename drm_encoder pointer in mode_valid

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The mode_valid hook on the encoder uses a pointer to a drm_encoder called > crtc, which is pretty confusing. Let's rename it to encoder to make it > clear what it is. > > Signed-off-by: Maxime Ripard Reviewed-

Re: [PATCH v4 62/78] drm/vc4: hdmi: Adjust HSM clock rate depending on pixel rate

2020-07-28 Thread Dave Stevenson
t in > the variant. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 79 --- > drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +- > 2 files changed, 41 insertions(+), 41 deletions(-) > > diff --git a

Re: [PATCH v4 63/78] drm/vc4: hdmi: Use clk_set_min_rate instead

2020-07-28 Thread Dave Stevenson
t; > 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/gpu/drm/vc4/vc4_hdmi.c > index 9f30fab744f2..d99188c90ff9

Re: [PATCH v4 73/78] drm/vc4: hdmi: Switch to blank pixels when disabled

2020-07-28 Thread Dave Stevenson
switch back to the > pixelvalve when we enable the HDMI controller. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 9 + > drivers/gpu/drm/vc4/vc4_regs.h | 3 +++ > 2 files changed, 12 insertions(+) > > diff --git a/d

Re: [PATCH v4 71/78] drm/vc4: hdmi: Implement finer-grained hooks

2020-07-28 Thread Dave Stevenson
ement them in the HDMI driver now. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 39 +++ > 1 file changed, 35 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c

Re: [PATCH v4 27/78] drm/vc4: crtc: Move HVS channel init before the PV initialisation

2020-07-28 Thread Dave Stevenson
ned-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/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c > index 2c5ff45dc315..b7b0e19e2fe

Re: [PATCH v4 51/78] drm/vc4: hdmi: Implement a register layout abstraction

2020-07-28 Thread Dave Stevenson
Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 427 ++--- > drivers/gpu/drm/vc4/vc4_hdmi.h | 12 +- > drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 241 - > drivers/gpu/drm/vc4/vc4_regs.h

Re: [PATCH v4 52/78] drm/vc4: hdmi: Add reset callback

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > The BCM2711 and BCM283x HDMI controllers use a slightly different reset > sequence, so let's add a callback to reset the controller. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- >

Re: [PATCH v4 70/78] drm/vc4: hdmi: Always recenter the HDMI FIFO

2020-07-28 Thread Dave Stevenson
Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 46 +++ > 1 file changed, 26 insertions(+), 20 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c > index 4058985940e6..00592c1ada7

Re: [PATCH v4 26/78] drm/vc4: crtc: Remove redundant pixelvalve reset

2020-07-28 Thread Dave Stevenson
s doing is calling the reset function, > meaning that we reset twice our pixelvalve. Let's remove the first call. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/driver

Re: [PATCH v4 25/78] drm/vc4: crtc: Remove mode_set_nofb

2020-07-28 Thread Dave Stevenson
e_set_nofb anymore to configure it, but > we need to move it to atomic_enable. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/gp

Re: [PATCH v4 28/78] drm/vc4: encoder: Add finer-grained encoder callbacks

2020-07-28 Thread Dave Stevenson
to be > able to split the configuration as needed. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 19 +++ > drivers/gpu/drm/vc4/vc4_drv.h | 7 +++ > 2 files changed, 26 insertions(+) > > diff -

Re: [PATCH v4 30/78] drm/vc4: crtc: Clear the PixelValve FIFO on disable

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > In order to avoid a stale pixel getting stuck on mode change or a disable > / enable cycle, we need to make sure to flush the PV FIFO on disable. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson >

Re: [PATCH v4 59/78] drm/vc4: hdmi: Add CEC support flag

2020-07-28 Thread Dave Stevenson
ch and add a new patchset that enables CEC at a later date. > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 4 > drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ > 2 files changed, 7 insertions(+) > > diff --git a/drivers/gpu

Re: [PATCH v4 31/78] drm/vc4: crtc: Clear the PixelValve FIFO during configuration

2020-07-28 Thread Dave Stevenson
ween the HVS and > the PV. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c >

Re: [PATCH v4 10/78] drm/vc4: crtc: Rename HVS channel to output

2020-07-28 Thread Dave Stevenson
static, both were probably equivalent, but > since that changes, let's rename hvs_channel to hvs_output in the > vc4_crtc_data, since a pixelvalve is really connected to an output, and > not to a FIFO. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- &

Re: [PATCH v4 22/78] drm/vc4: crtc: Move HVS init and close to a function

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > In order to make further refactoring easier, let's move the HVS channel > setup / teardown to their own function. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/dr

Re: [PATCH v4 50/78] drm/vc4: hdmi: Introduce resource init and variant

2020-07-28 Thread Dave Stevenson
ll > need later on, and a function to get the resources needed for one > particular version. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 61 +++ > drivers/gpu/drm/vc4/vc4_hdmi.h | 10 ++- >

Re: [PATCH v4 54/78] drm/vc4: hdmi: Add PHY RNG enable / disable function

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > Let's continue the implementation of hooks for the parts that change in the > BCM2711 SoC with the PHY RNG setup. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc

Re: [PATCH v4 58/78] drm/vc4: hdmi: Move CEC init to its own function

2020-07-28 Thread Dave Stevenson
t; > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 108 +- > 1 file changed, 67 insertions(+), 41 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c > ind

Re: [PATCH v4 72/78] drm/vc4: hdmi: Do the VID_CTL configuration at once

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The VID_CTL setup is done in several places in the driver even though it's > not really required. Let's simplify it a bit to do the configuration in one > go. > > Signed-off-by: Maxime Ripard Reviewed-

Re: [PATCH v4 74/78] drm/vc4: hdmi: Support the BCM2711 HDMI controllers

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > Now that the driver is ready for it, let's bring in the HDMI controllers > variants for the BCM2711. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/

Re: [PATCH v4 78/78] ARM: dts: bcm2711: Enable the display pipeline

2020-07-28 Thread Dave Stevenson
fic clock setup changes? > Signed-off-by: Maxime Ripard Otherwise Reviewed-by: Dave Stevenson > --- > arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 46 +++- > arch/arm/boot/dts/bcm2711.dtsi| 115 ++- > 2 files changed, 160 insertions(+), 1 de

Re: [PATCH v4 77/78] drm/vc4: drv: Support BCM2711

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The BCM2711 has a reworked display pipeline, and the load tracker needs > some adjustement to operate properly. Let's add a compatible for BCM2711 s/adjustement/adjustment > and disable the load tracker until properly supported. >

Re: [PATCH v4 29/78] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-07-29 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > In order to avoid pixels getting stuck in the (unflushable) FIFO between > the HVS and the PV, we need to add some delay after disabling the PV output > and before disabling the HDMI controller. 20ms seems to be good enough so >

Re: [PATCH v4 14/78] drm/vc4: crtc: Assign output to channel automatically

2020-07-29 Thread Dave Stevenson
; > The channel assigned is then set in the vc4_crtc_state so that the rest of > the driver can use it. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 12 +- > drivers/gpu/drm/vc4/vc4_drv.h | 7 +- > drivers/gpu/drm/vc4/vc4

Re: [PATCH v4 23/78] drm/vc4: crtc: Move the HVS gamma LUT setup to our init function

2020-07-29 Thread Dave Stevenson
Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- > drivers/gpu/drm/vc4/vc4_drv.h | 1 +- > drivers/gpu/drm/vc4/vc4_hvs.c | 59 +-- > drivers/gpu/drm/vc4/vc4_txp.c | 1 +- > 4 files changed, 16 insertions(+), 47 d

Re: [PATCH v4 29/78] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-07-29 Thread Dave Stevenson
On Wed, 29 Jul 2020 at 15:42, Maxime Ripard wrote: > > Hi, > > On Wed, Jul 29, 2020 at 03:09:21PM +0100, Dave Stevenson wrote: > > On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > > > > > In order to avoid pixels getting stuck in the (unflushable) FIFO

Re: [PATCH v4 13/78] drm/vc4: kms: Convert to for_each_new_crtc_state

2020-07-29 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:42, Maxime Ripard wrote: > > The vc4 atomic commit loop has an handrolled loop that is basically > identical to for_each_new_crtc_state, let's convert it to that helper. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/vc4_kms.c | 9 - >

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

2020-12-03 Thread Dave Stevenson
ariant 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 compatible fo

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 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 6/9] drm/vc4: hdmi: Store pixel frequency in the connector state

2020-12-09 Thread Dave Stevenson
un 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 changed, 2

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

2020-12-09 Thread Dave Stevenson
r. > > 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_hdmi.

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

2020-12-09 Thread Dave Stevenson
t; > 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..f4ff6b5db48

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

2020-12-09 Thread Dave Stevenson
> 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 insertio

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 - >

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 > --- &g

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

2020-12-04 Thread Dave Stevenson
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 intended - thanks. Reviewed-by

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

2020-12-15 Thread Dave Stevenson
> 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 ++ > 2 files ch

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 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 the variant

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 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 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 BCM2

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/drm/vc4

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

2020-12-15 Thread Dave Stevenson
> 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 changed, 40

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 > --- >

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

2020-12-15 Thread Dave Stevenson
ement 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/gpu/dr

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 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

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

2020-12-18 Thread Dave Stevenson
de 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 deletions(

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 Stevenso

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

2020-12-18 Thread Dave Stevenson
ring the 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/drivers/g

Re: [PATCH v2 2/2] drm/vc4: hdmi: Block odd horizontal timings

2020-11-19 Thread Dave Stevenson
Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > > Changes from v1: > - s/broken/unsupported/ > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 12 > drivers/gpu/drm/vc4/vc4_hdmi.h | 3 +++ > 2 files changed, 15 insertions(+) > > diff --git a/d

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

2020-11-19 Thread Dave Stevenson
d 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 reso

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

2020-11-19 Thread Dave Stevenson
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_hdmi.c | 10 +++--- >

Re: [PATCH] drm/vc4: hdmi: Block odd horizontal timings

2020-10-29 Thread Dave Stevenson
On Thu, 29 Oct 2020 at 09:17, Maxime Ripard wrote: > > Hi! > > On Wed, Oct 28, 2020 at 01:42:20PM +, Dave Stevenson wrote: > > Hi Maxime > > > > On Fri, 25 Sep 2020 at 14:00, Maxime Ripard wrote: > > > > > > The FIFO between the pixelvalve an

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 v2 05/15] drm/vc4: hdmi: Restore cec physical address on reconnect

2021-01-22 Thread Dave Stevenson
f-by: 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 > --- > drivers/gpu/drm/vc4/v

  1   2   3   4   >