* [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info
@ 2015-08-08 18:20 Petr Cvek
2015-08-08 19:15 ` Robert Jarzmik
2015-08-20 10:55 ` Tomi Valkeinen
0 siblings, 2 replies; 5+ messages in thread
From: Petr Cvek @ 2015-08-08 18:20 UTC (permalink / raw)
To: linux-arm-kernel
Fix pxafb nonstd field documentation and add warning comment to Kconfig
and pxafb.c (errata: YUV420 hangs LCD).
Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
---
Documentation/fb/pxafb.txt | 8 ++++----
drivers/video/fbdev/Kconfig | 5 +++++
drivers/video/fbdev/pxafb.c | 4 ++++
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/Documentation/fb/pxafb.txt b/Documentation/fb/pxafb.txt
index d143a0a..dbbf5eb 100644
--- a/Documentation/fb/pxafb.txt
+++ b/Documentation/fb/pxafb.txt
@@ -123,12 +123,12 @@ Overlay Support for PXA27x and later LCD controllers
framebuffer framework, application has to take care of the offsets
and lengths of each component within the framebuffer.
- 4. var->nonstd is used to pass starting (x, y) position and color format,
+ 4. var->nonstd is used to pass starting (y, x) position and color format,
the detailed bit fields are shown below:
31 23 20 10 0
+-----------------+---+----------+----------+
- | ... unused ... |FOR| XPOS | YPOS |
+ | ... unused ... |FOR| YPOS | XPOS | (as in OVLxC2 register)
+-----------------+---+----------+----------+
FOR - color format, as defined by OVERLAY_FORMAT_* in pxafb.h
@@ -136,7 +136,7 @@ Overlay Support for PXA27x and later LCD controllers
1 - YUV444 PACKED
2 - YUV444 PLANAR
3 - YUV422 PLANAR
- 4 - YUR420 PLANAR
+ 4 - YUV420 PLANAR
- XPOS - starting horizontal position
YPOS - starting vertical position
+ XPOS - starting horizontal position
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
index 2d98de5..8f485ec 100644
--- a/drivers/video/fbdev/Kconfig
+++ b/drivers/video/fbdev/Kconfig
@@ -1893,6 +1893,11 @@ config FB_PXA_OVERLAY
bool "Support PXA27x/PXA3xx Overlay(s) as framebuffer"
default n
depends on FB_PXA && (PXA27x || PXA3xx)
+ ---help---
+ Using the overlay 2 and YUV420 mode on a PXA27x C0 chip revision will
+ hang the LCD until the next SoC restart (errata E24).
+
+ If unsure, say N or check /proc/cpuinfo for "CPU revision : 4".
config FB_PXA_SMARTPANEL
bool "PXA Smartpanel LCD support"
diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c
index 7245611..e573699 100644
--- a/drivers/video/fbdev/pxafb.c
+++ b/drivers/video/fbdev/pxafb.c
@@ -30,6 +30,10 @@
*
* Copyright (C) 2006-2008 Marvell International Ltd.
* All Rights Reserved
+ *
+ * NOTICE
+ * According to PXA27x errata E24 an enable of the overlay 2 in YUV420 mode
+ * on C0 chip revision will hang the LCD until the next SoC reset.
*/
#include <linux/module.h>
--
1.7.12.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info
2015-08-08 18:20 [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info Petr Cvek
@ 2015-08-08 19:15 ` Robert Jarzmik
2015-08-20 10:55 ` Tomi Valkeinen
1 sibling, 0 replies; 5+ messages in thread
From: Robert Jarzmik @ 2015-08-08 19:15 UTC (permalink / raw)
To: linux-arm-kernel
Petr Cvek <petr.cvek@tul.cz> writes:
> Fix pxafb nonstd field documentation and add warning comment to Kconfig
> and pxafb.c (errata: YUV420 hangs LCD).
>
> Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info
2015-08-08 18:20 [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info Petr Cvek
2015-08-08 19:15 ` Robert Jarzmik
@ 2015-08-20 10:55 ` Tomi Valkeinen
2015-08-20 20:07 ` Petr Cvek
1 sibling, 1 reply; 5+ messages in thread
From: Tomi Valkeinen @ 2015-08-20 10:55 UTC (permalink / raw)
To: linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 643 bytes --]
On 08/08/15 21:20, Petr Cvek wrote:
> diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
> index 2d98de5..8f485ec 100644
> --- a/drivers/video/fbdev/Kconfig
> +++ b/drivers/video/fbdev/Kconfig
> @@ -1893,6 +1893,11 @@ config FB_PXA_OVERLAY
> bool "Support PXA27x/PXA3xx Overlay(s) as framebuffer"
> default n
> depends on FB_PXA && (PXA27x || PXA3xx)
> + ---help---
> + Using the overlay 2 and YUV420 mode on a PXA27x C0 chip revision will
> + hang the LCD until the next SoC restart (errata E24).
Shouldn't the driver handle this? It should not allow the combination to
be used.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info
2015-08-20 10:55 ` Tomi Valkeinen
@ 2015-08-20 20:07 ` Petr Cvek
2015-08-21 6:53 ` Tomi Valkeinen
0 siblings, 1 reply; 5+ messages in thread
From: Petr Cvek @ 2015-08-20 20:07 UTC (permalink / raw)
To: linux-arm-kernel
Dne 20.8.2015 v 12:55 Tomi Valkeinen napsal(a):
>
>
> On 08/08/15 21:20, Petr Cvek wrote:
>
>> diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
>> index 2d98de5..8f485ec 100644
>> --- a/drivers/video/fbdev/Kconfig
>> +++ b/drivers/video/fbdev/Kconfig
>> @@ -1893,6 +1893,11 @@ config FB_PXA_OVERLAY
>> bool "Support PXA27x/PXA3xx Overlay(s) as framebuffer"
>> default n
>> depends on FB_PXA && (PXA27x || PXA3xx)
>> + ---help---
>> + Using the overlay 2 and YUV420 mode on a PXA27x C0 chip revision will
>> + hang the LCD until the next SoC restart (errata E24).
>
> Shouldn't the driver handle this? It should not allow the combination to
> be used.
>
> Tomi
>
Probably, but I don't know which revisions are OK and which are not. Errata document:
Marvell® PXA270M Processor Specification Update
MV-S900957-00
has only 3 revisions, but PXA Manual lists 6 (2.2.5.1 Processor ID Register) and one revision from errata is not shown in my PXA Manual. I can exclude mine revision (from "system_rev" variable), but there should be some warning somewhere in configuration.
BTW There is software workaround, but I was not able to set registers right (it requires to send some data through FIFO in different mode).
Petr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info
2015-08-20 20:07 ` Petr Cvek
@ 2015-08-21 6:53 ` Tomi Valkeinen
0 siblings, 0 replies; 5+ messages in thread
From: Tomi Valkeinen @ 2015-08-21 6:53 UTC (permalink / raw)
To: linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1753 bytes --]
On 20/08/15 23:07, Petr Cvek wrote:
> Dne 20.8.2015 v 12:55 Tomi Valkeinen napsal(a):
>>
>>
>> On 08/08/15 21:20, Petr Cvek wrote:
>>
>>> diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig
>>> index 2d98de5..8f485ec 100644
>>> --- a/drivers/video/fbdev/Kconfig
>>> +++ b/drivers/video/fbdev/Kconfig
>>> @@ -1893,6 +1893,11 @@ config FB_PXA_OVERLAY
>>> bool "Support PXA27x/PXA3xx Overlay(s) as framebuffer"
>>> default n
>>> depends on FB_PXA && (PXA27x || PXA3xx)
>>> + ---help---
>>> + Using the overlay 2 and YUV420 mode on a PXA27x C0 chip revision will
>>> + hang the LCD until the next SoC restart (errata E24).
>>
>> Shouldn't the driver handle this? It should not allow the combination to
>> be used.
>>
>> Tomi
>>
>
> Probably, but I don't know which revisions are OK and which are not. Errata document:
>
> Marvell® PXA270M Processor Specification Update
> MV-S900957-00
>
> has only 3 revisions, but PXA Manual lists 6 (2.2.5.1 Processor ID Register) and one revision from errata is not shown in my PXA Manual. I can exclude mine revision (from "system_rev" variable), but there should be some warning somewhere in configuration.
No, configuration or kernel docs is not the right place for this. The
user is not going to see that. And a single kernel image is supposed to
run on different soc/board versions, so you can't do selections like
this in the kernel config.
The driver should detect the bad revision, and then apply the
workaround, or if that's not possible, refuse the use of the
configuration that leads to the HW bug. Or if even that's not possible,
the driver should print a warning when starting, so that the user is
able to see it.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-21 6:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-08 18:20 [PATCH v1, TRIVIAL] Fix pxafb nonstd field documentation and add errata info Petr Cvek
2015-08-08 19:15 ` Robert Jarzmik
2015-08-20 10:55 ` Tomi Valkeinen
2015-08-20 20:07 ` Petr Cvek
2015-08-21 6:53 ` Tomi Valkeinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).