* [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2
@ 2017-06-15 9:24 Peter Rosin
2017-06-15 9:37 ` Boris Brezillon
0 siblings, 1 reply; 5+ messages in thread
From: Peter Rosin @ 2017-06-15 9:24 UTC (permalink / raw)
To: linux-kernel; +Cc: Peter Rosin, Boris Brezillon, David Airlie, dri-devel
From: Peter Rosin <peda@axentia.se>
Remove the layer.
Fixes: 5b9fb5e6c6c7 ("drm: atmel-hlcdc: add support for sama5d4 SoCs")
Signed-off-by: Peter Rosin <peda@axentia.se>
---
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
index 30dbffd..888524a 100644
--- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
+++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
@@ -295,28 +295,10 @@ static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sama5d4_layers[] = {
},
},
{
- .name = "overlay2",
- .formats = &atmel_hlcdc_plane_rgb_formats,
- .regs_offset = 0x240,
- .id = 2,
- .type = ATMEL_HLCDC_OVERLAY_LAYER,
- .cfgs_offset = 0x2c,
- .layout = {
- .pos = 2,
- .size = 3,
- .xstride = { 4 },
- .pstride = { 5 },
- .default_color = 6,
- .chroma_key = 7,
- .chroma_key_mask = 8,
- .general_config = 9,
- },
- },
- {
.name = "high-end-overlay",
.formats = &atmel_hlcdc_plane_rgb_and_yuv_formats,
.regs_offset = 0x340,
- .id = 3,
+ .id = 2,
.type = ATMEL_HLCDC_OVERLAY_LAYER,
.cfgs_offset = 0x4c,
.layout = {
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 2017-06-15 9:24 [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 Peter Rosin @ 2017-06-15 9:37 ` Boris Brezillon 2017-06-15 22:40 ` Peter Rosin 0 siblings, 1 reply; 5+ messages in thread From: Boris Brezillon @ 2017-06-15 9:37 UTC (permalink / raw) To: Peter Rosin, Nicolas Ferre Cc: linux-kernel, Peter Rosin, David Airlie, dri-devel On Thu, 15 Jun 2017 11:24:13 +0200 Peter Rosin <peda@lysator.liu.se> wrote: > From: Peter Rosin <peda@axentia.se> > > Remove the layer. Duh. It was present in the datasheet I had. Just downloaded last version of the datasheet and it's no longer there. Nicolas, there's still a reference to OVR2 in the block diagram (Section "31.3 Block Diagram"), can ask fix that (or ask someone who can). > > Fixes: 5b9fb5e6c6c7 ("drm: atmel-hlcdc: add support for sama5d4 SoCs") > Signed-off-by: Peter Rosin <peda@axentia.se> > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 20 +------------------- > 1 file changed, 1 insertion(+), 19 deletions(-) > > diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > index 30dbffd..888524a 100644 > --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c > @@ -295,28 +295,10 @@ static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sama5d4_layers[] = { > }, > }, > { > - .name = "overlay2", > - .formats = &atmel_hlcdc_plane_rgb_formats, > - .regs_offset = 0x240, > - .id = 2, > - .type = ATMEL_HLCDC_OVERLAY_LAYER, > - .cfgs_offset = 0x2c, > - .layout = { > - .pos = 2, > - .size = 3, > - .xstride = { 4 }, > - .pstride = { 5 }, > - .default_color = 6, > - .chroma_key = 7, > - .chroma_key_mask = 8, > - .general_config = 9, > - }, > - }, > - { > .name = "high-end-overlay", > .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats, > .regs_offset = 0x340, > - .id = 3, > + .id = 2, > .type = ATMEL_HLCDC_OVERLAY_LAYER, > .cfgs_offset = 0x4c, > .layout = { ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 2017-06-15 9:37 ` Boris Brezillon @ 2017-06-15 22:40 ` Peter Rosin 2017-06-21 15:14 ` Nicolas Ferre 0 siblings, 1 reply; 5+ messages in thread From: Peter Rosin @ 2017-06-15 22:40 UTC (permalink / raw) To: Boris Brezillon, Peter Rosin, Nicolas Ferre Cc: linux-kernel, David Airlie, dri-devel On 2017-06-15 11:37, Boris Brezillon wrote: > On Thu, 15 Jun 2017 11:24:13 +0200 > Peter Rosin <peda@lysator.liu.se> wrote: > >> From: Peter Rosin <peda@axentia.se> >> >> Remove the layer. > > Duh. It was present in the datasheet I had. Just downloaded last > version of the datasheet and it's no longer there. Heh. > Nicolas, there's still a reference to OVR2 in the block diagram > (Section "31.3 Block Diagram"), can ask fix that (or ask someone who > can). Also, on page 2 (the Features chapter under peripherals) there's: "LCD TFT Controller with 4 overlays..." I think it should be three? Cheers, peda >> >> Fixes: 5b9fb5e6c6c7 ("drm: atmel-hlcdc: add support for sama5d4 SoCs") >> Signed-off-by: Peter Rosin <peda@axentia.se> >> --- >> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 20 +------------------- >> 1 file changed, 1 insertion(+), 19 deletions(-) >> >> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >> index 30dbffd..888524a 100644 >> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >> @@ -295,28 +295,10 @@ static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sama5d4_layers[] = { >> }, >> }, >> { >> - .name = "overlay2", >> - .formats = &atmel_hlcdc_plane_rgb_formats, >> - .regs_offset = 0x240, >> - .id = 2, >> - .type = ATMEL_HLCDC_OVERLAY_LAYER, >> - .cfgs_offset = 0x2c, >> - .layout = { >> - .pos = 2, >> - .size = 3, >> - .xstride = { 4 }, >> - .pstride = { 5 }, >> - .default_color = 6, >> - .chroma_key = 7, >> - .chroma_key_mask = 8, >> - .general_config = 9, >> - }, >> - }, >> - { >> .name = "high-end-overlay", >> .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats, >> .regs_offset = 0x340, >> - .id = 3, >> + .id = 2, >> .type = ATMEL_HLCDC_OVERLAY_LAYER, >> .cfgs_offset = 0x4c, >> .layout = { > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 2017-06-15 22:40 ` Peter Rosin @ 2017-06-21 15:14 ` Nicolas Ferre 2017-06-21 16:36 ` Peter Rosin 0 siblings, 1 reply; 5+ messages in thread From: Nicolas Ferre @ 2017-06-21 15:14 UTC (permalink / raw) To: Peter Rosin, Boris Brezillon, Peter Rosin Cc: linux-kernel, David Airlie, dri-devel On 16/06/2017 at 00:40, Peter Rosin wrote: > On 2017-06-15 11:37, Boris Brezillon wrote: >> On Thu, 15 Jun 2017 11:24:13 +0200 >> Peter Rosin <peda@lysator.liu.se> wrote: >> >>> From: Peter Rosin <peda@axentia.se> >>> >>> Remove the layer. >> >> Duh. It was present in the datasheet I had. Just downloaded last >> version of the datasheet and it's no longer there. > > Heh. > >> Nicolas, there's still a reference to OVR2 in the block diagram >> (Section "31.3 Block Diagram"), can ask fix that (or ask someone who >> can). > > Also, on page 2 (the Features chapter under peripherals) there's: > > "LCD TFT Controller with 4 overlays..." > > I think it should be three? Hi Peter and Boris, After checking with the designers here, it seems that it's an issue with the latest datasheet. This is why Boris implemented it some time ago. So, the conclusion is: the OVR2 was removed from latest sama5d4 documentation by mistake. It will be corrected in next datasheet release. The OVR2 exists and works correctly on sama5d4. So, please don't remove this layer ;-) Peter, thanks a lot for your work with supporting the CLUT feature! Best regards, Nicolas >>> Fixes: 5b9fb5e6c6c7 ("drm: atmel-hlcdc: add support for sama5d4 SoCs") >>> Signed-off-by: Peter Rosin <peda@axentia.se> >>> --- >>> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 20 +------------------- >>> 1 file changed, 1 insertion(+), 19 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >>> index 30dbffd..888524a 100644 >>> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >>> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >>> @@ -295,28 +295,10 @@ static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sama5d4_layers[] = { >>> }, >>> }, >>> { >>> - .name = "overlay2", >>> - .formats = &atmel_hlcdc_plane_rgb_formats, >>> - .regs_offset = 0x240, >>> - .id = 2, >>> - .type = ATMEL_HLCDC_OVERLAY_LAYER, >>> - .cfgs_offset = 0x2c, >>> - .layout = { >>> - .pos = 2, >>> - .size = 3, >>> - .xstride = { 4 }, >>> - .pstride = { 5 }, >>> - .default_color = 6, >>> - .chroma_key = 7, >>> - .chroma_key_mask = 8, >>> - .general_config = 9, >>> - }, >>> - }, >>> - { >>> .name = "high-end-overlay", >>> .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats, >>> .regs_offset = 0x340, >>> - .id = 3, >>> + .id = 2, >>> .type = ATMEL_HLCDC_OVERLAY_LAYER, >>> .cfgs_offset = 0x4c, >>> .layout = { >> > > -- Nicolas Ferre ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 2017-06-21 15:14 ` Nicolas Ferre @ 2017-06-21 16:36 ` Peter Rosin 0 siblings, 0 replies; 5+ messages in thread From: Peter Rosin @ 2017-06-21 16:36 UTC (permalink / raw) To: Nicolas Ferre, Boris Brezillon, Peter Rosin Cc: linux-kernel, David Airlie, dri-devel On 2017-06-21 17:14, Nicolas Ferre wrote: > On 16/06/2017 at 00:40, Peter Rosin wrote: >> On 2017-06-15 11:37, Boris Brezillon wrote: >>> On Thu, 15 Jun 2017 11:24:13 +0200 >>> Peter Rosin <peda@lysator.liu.se> wrote: >>> >>>> From: Peter Rosin <peda@axentia.se> >>>> >>>> Remove the layer. >>> >>> Duh. It was present in the datasheet I had. Just downloaded last >>> version of the datasheet and it's no longer there. >> >> Heh. >> >>> Nicolas, there's still a reference to OVR2 in the block diagram >>> (Section "31.3 Block Diagram"), can ask fix that (or ask someone who >>> can). >> >> Also, on page 2 (the Features chapter under peripherals) there's: >> >> "LCD TFT Controller with 4 overlays..." >> >> I think it should be three? > > Hi Peter and Boris, > > After checking with the designers here, it seems that it's an issue with > the latest datasheet. This is why Boris implemented it some time ago. > > So, the conclusion is: the OVR2 was removed from latest sama5d4 > documentation by mistake. It will be corrected in next datasheet release. > The OVR2 exists and works correctly on sama5d4. > > So, please don't remove this layer ;-) Right :-) I assume the CLUT offset for overlay 2 is at 0xe00, just as it is for sama5d3? When I know for sure, I can send a v5 of the other patch. > Peter, thanks a lot for your work with supporting the CLUT feature! I needed to get rid of some memory load... Cheers, peda ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-21 16:36 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-06-15 9:24 [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 Peter Rosin 2017-06-15 9:37 ` Boris Brezillon 2017-06-15 22:40 ` Peter Rosin 2017-06-21 15:14 ` Nicolas Ferre 2017-06-21 16:36 ` Peter Rosin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox