Skip to contentSkip to conversation

ARM: OMAP: Revert "ARM: OMAP: ctrl: Fix CONTROL_DSIPHY register fields"

PATCH Superseded Archit Taneja 5 participants 6 messages Apr 9, 2012 – Apr 19, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: Revert "ARM: OMAP: ctrl: Fix CONTROL_DSIPHY register fields"

This reverts commit 46f8c3c7e95c0d30d95911e7975ddc4f93b3e237.

The commit above swapped the DSI1_PPID and DSI2_PPID register fields in CONTROL_DSIPHY to be in sync with the newer public OMAP TRMs(after version V).

With this commit, contention errors were reported on DSI lanes some OMAP4 SDPs. After probing the DSI lanes on OMAP4 SDP, it was seen that setting bits in the DSI2_PPID field was pulling up voltage on DSI1 lanes, and DSI1_PPID field was pulling up voltage on DSI2 lanes.

This proves that the current version of OMAP4 TRM is incorrect, swap the position of register fields according to the older TRM versions as they were correct.

---
 .../include/mach/ctrl_module_pad_core_44xx.h       |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +4 -4
index 1e2d332..c88420d 100644
@@ -941,10 +941,10 @@
 #define OMAP4_DSI2_LANEENABLE_MASK				(0x7 << 29)
 #define OMAP4_DSI1_LANEENABLE_SHIFT				24
 #define OMAP4_DSI1_LANEENABLE_MASK				(0x1f << 24)
-#define OMAP4_DSI2_PIPD_SHIFT					19
-#define OMAP4_DSI2_PIPD_MASK					(0x1f << 19)
-#define OMAP4_DSI1_PIPD_SHIFT					14
-#define OMAP4_DSI1_PIPD_MASK					(0x1f << 14)
+#define OMAP4_DSI1_PIPD_SHIFT					19
+#define OMAP4_DSI1_PIPD_MASK					(0x1f << 19)
+#define OMAP4_DSI2_PIPD_SHIFT					14
+#define OMAP4_DSI2_PIPD_MASK					(0x1f << 14)
 
 /* CONTROL_MCBSPLP */
 #define OMAP4_ALBCTRLRX_FSX_SHIFT				31
Signature · 1 line
1.7.5.4
maintainer
#1 lore raw
Quoted 10 lines · Archit Taneja

This reverts commit 46f8c3c7e95c0d30d95911e7975ddc4f93b3e237.

The commit above swapped the DSI1_PPID and DSI2_PPID register fields in CONTROL_DSIPHY to be in sync with the newer public OMAP TRMs(after version V).

With this commit, contention errors were reported on DSI lanes some OMAP4 SDPs. After probing the DSI lanes on OMAP4 SDP, it was seen that setting bits in the DSI2_PPID field was pulling up voltage on DSI1 lanes, and DSI1_PPID field was pulling up voltage on DSI2 lanes.

Quoted 5 lines

This proves that the current version of OMAP4 TRM is incorrect, swap the position of register fields according to the older TRM versions as they were correct.

Tomi, care to ack this one?

Tony

Quoted 26 lines
---
 .../include/mach/ctrl_module_pad_core_44xx.h       |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +4 -4
index 1e2d332..c88420d 100644
@@ -941,10 +941,10 @@
 #define OMAP4_DSI2_LANEENABLE_MASK				(0x7 << 29)
 #define OMAP4_DSI1_LANEENABLE_SHIFT				24
 #define OMAP4_DSI1_LANEENABLE_MASK				(0x1f << 24)
-#define OMAP4_DSI2_PIPD_SHIFT					19
-#define OMAP4_DSI2_PIPD_MASK					(0x1f << 19)
-#define OMAP4_DSI1_PIPD_SHIFT					14
-#define OMAP4_DSI1_PIPD_MASK					(0x1f << 14)
+#define OMAP4_DSI1_PIPD_SHIFT					19
+#define OMAP4_DSI1_PIPD_MASK					(0x1f << 19)
+#define OMAP4_DSI2_PIPD_SHIFT					14
+#define OMAP4_DSI2_PIPD_MASK					(0x1f << 14)
 
 /* CONTROL_MCBSPLP */
 #define OMAP4_ALBCTRLRX_FSX_SHIFT				31
Signature · 1 line
1.7.5.4
#2 lore raw
In reply to Archit Taneja

Hi,

Quoted 5 lines · Archit Taneja

This reverts commit 46f8c3c7e95c0d30d95911e7975ddc4f93b3e237.

The commit above swapped the DSI1_PPID and DSI2_PPID register fields in CONTROL_DSIPHY to be in sync with the newer public OMAP TRMs(after version V).

Quoted 8 lines

With this commit, contention errors were reported on DSI lanes some OMAP4 SDPs. After probing the DSI lanes on OMAP4 SDP, it was seen that setting bits in the DSI2_PPID field was pulling up voltage on DSI1 lanes, and DSI1_PPID field was pulling up voltage on DSI2 lanes.

This proves that the current version of OMAP4 TRM is incorrect, swap the position of register fields according to the older TRM versions as they were correct.

Are we sure the bits are the same for all OMAP4 versions? I'm just wondering why the change was made to TRM...

Tomi

#3 lore raw
Quoted 13 lines · Tomi Valkeinen

Hi,

Quoted 10 lines · Archit Taneja

This reverts commit 46f8c3c7e95c0d30d95911e7975ddc4f93b3e237.

The commit above swapped the DSI1_PPID and DSI2_PPID register fields in CONTROL_DSIPHY to be in sync with the newer public OMAP TRMs(after version V).

With this commit, contention errors were reported on DSI lanes some OMAP4 SDPs. After probing the DSI lanes on OMAP4 SDP, it was seen that setting bits in the DSI2_PPID field was pulling up voltage on DSI1 lanes, and DSI1_PPID field was pulling up voltage on DSI2 lanes.

Quoted 6 lines
Quoted 3 lines

This proves that the current version of OMAP4 TRM is incorrect, swap the position of register fields according to the older TRM versions as they were correct.

Are we sure the bits are the same for all OMAP4 versions? I'm just wondering why the change was made to TRM...

I've tried on OMAP4430 ES2.1 and OMAP4460 ES1.1. I can try on a couple more revisions.

As far as why the change was made in the TRM, it's a bit hard to find the right people, or get response from them :), I'll give that a try again.

If we do conclude that this revert patch is needed, it might probably be a candidate for the 3.2 and 3.3 stable kernels, just wanted to point that out.

Archit

Quoted 3 lines

Tomi

#4 lore raw
Quoted 24 lines · Archit Taneja
Quoted 13 lines · Tomi Valkeinen

Hi,

Quoted 10 lines · Archit Taneja

This reverts commit 46f8c3c7e95c0d30d95911e7975ddc4f93b3e237.

The commit above swapped the DSI1_PPID and DSI2_PPID register fields in CONTROL_DSIPHY to be in sync with the newer public OMAP TRMs(after version V).

With this commit, contention errors were reported on DSI lanes some OMAP4 SDPs. After probing the DSI lanes on OMAP4 SDP, it was seen that setting bits in the DSI2_PPID field was pulling up voltage on DSI1 lanes, and DSI1_PPID field was pulling up voltage on DSI2 lanes.

Quoted 6 lines
Quoted 3 lines

This proves that the current version of OMAP4 TRM is incorrect, swap the position of register fields according to the older TRM versions as they were correct.

Are we sure the bits are the same for all OMAP4 versions? I'm just wondering why the change was made to TRM...

I've tried on OMAP4430 ES2.1 and OMAP4460 ES1.1. I can try on a couple more revisions.

Quoted 7 lines

As far as why the change was made in the TRM, it's a bit hard to find the right people, or get response from them :), I'll give that a try again.

If we do conclude that this revert patch is needed, it might probably be a candidate for the 3.2 and 3.3 stable kernels, just wanted to point that out.

I was just going to ask about this, as I haven't noticed any improvement in mainline kernels since I reported the original failure...

#5 lore raw
Quoted 29 lines · Russell King - ARM Linux
Quoted 28 lines · Archit Taneja
Quoted 13 lines · Tomi Valkeinen

Hi,

Quoted 10 lines · Archit Taneja

This reverts commit 46f8c3c7e95c0d30d95911e7975ddc4f93b3e237.

The commit above swapped the DSI1_PPID and DSI2_PPID register fields in CONTROL_DSIPHY to be in sync with the newer public OMAP TRMs(after version V).

With this commit, contention errors were reported on DSI lanes some OMAP4 SDPs. After probing the DSI lanes on OMAP4 SDP, it was seen that setting bits in the DSI2_PPID field was pulling up voltage on DSI1 lanes, and DSI1_PPID field was pulling up voltage on DSI2 lanes.

Quoted 6 lines
Quoted 3 lines

This proves that the current version of OMAP4 TRM is incorrect, swap the position of register fields according to the older TRM versions as they were correct.

Are we sure the bits are the same for all OMAP4 versions? I'm just wondering why the change was made to TRM...

I've tried on OMAP4430 ES2.1 and OMAP4460 ES1.1. I can try on a couple more revisions.

As far as why the change was made in the TRM, it's a bit hard to find the right people, or get response from them :), I'll give that a try again.

Quoted 6 lines
Quoted 3 lines

If we do conclude that this revert patch is needed, it might probably be a candidate for the 3.2 and 3.3 stable kernels, just wanted to point that out.

I was just going to ask about this, as I haven't noticed any improvement in mainline kernels since I reported the original failure...

It seems to be very difficult to find out why the TRM change was done, and what the HW actually does. But as the boards out there are clearly fixed by reverting the original patch, I think it's best if we just apply the revert.

Archit, can you resend the patch with my ack, and cc [email protected] (see Documentation/stable_kernel_rules.txt).

Tomi