Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1426174 > unrolled thread

[PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss

Started byKeerthy <j-keerthy@ti.com>
First post2016-06-20 06:00 +0200
Last post2016-06-22 12:10 +0200
Articles 8 — 5 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss Keerthy <j-keerthy@ti.com> - 2016-06-20 06:00 +0200
    RE: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss "Mohammed, Afzal" <afzal@ti.com> - 2016-06-20 09:10 +0200
      Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss Keerthy <a0393675@ti.com> - 2016-06-20 10:30 +0200
        Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss Suman Anna <s-anna@ti.com> - 2016-06-20 18:30 +0200
          RE: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss "Mohammed, Afzal" <afzal@ti.com> - 2016-06-21 10:10 +0200
            Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss Keerthy <a0393675@ti.com> - 2016-06-21 12:10 +0200
              Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss Keerthy <a0393675@ti.com> - 2016-06-22 11:20 +0200
                Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss Tony Lindgren <tony@atomide.com> - 2016-06-22 12:10 +0200

#1426174 — [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss

FromKeerthy <j-keerthy@ti.com>
Date2016-06-20 06:00 +0200
Subject[PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss
Message-ID<rLYxr-33g-7@gated-at.bofh.it>
pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of
am43xx. Fix the RSTST register offset value.

This can lead to setting of wrong power state values for PER domain.

Fixes: 1c7e224d ("ARM: OMAP2+: hwmod: AM335x: runtime register update")
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 1 +
 arch/arm/mach-omap2/prcm43xx.h                          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
index 6a73b6c..55c5878 100644
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
@@ -1392,6 +1392,7 @@ static void omap_hwmod_am43xx_rst(void)
 {
 	RSTCTRL(am33xx_pruss_hwmod, AM43XX_RM_PER_RSTCTRL_OFFSET);
 	RSTCTRL(am33xx_gfx_hwmod, AM43XX_RM_GFX_RSTCTRL_OFFSET);
+	RSTST(am33xx_pruss_hwmod, AM43XX_RM_PER_RSTST_OFFSET);
 	RSTST(am33xx_gfx_hwmod, AM43XX_RM_GFX_RSTST_OFFSET);
 }
 
diff --git a/arch/arm/mach-omap2/prcm43xx.h b/arch/arm/mach-omap2/prcm43xx.h
index 7c34c44e..babb5db 100644
--- a/arch/arm/mach-omap2/prcm43xx.h
+++ b/arch/arm/mach-omap2/prcm43xx.h
@@ -39,6 +39,7 @@
 
 /* RM RSTST offsets */
 #define AM43XX_RM_GFX_RSTST_OFFSET			0x0014
+#define AM43XX_RM_PER_RSTST_OFFSET			0x0014
 #define AM43XX_RM_WKUP_RSTST_OFFSET			0x0014
 
 /* CM instances */
-- 
1.9.1

[toc] | [next] | [standalone]


#1426266

From"Mohammed, Afzal" <afzal@ti.com>
Date2016-06-20 09:10 +0200
Message-ID<rM1vk-58f-19@gated-at.bofh.it>
In reply to#1426174
Hi,

J, KEERTHY wrote on Monday, June 20, 2016 9:22 AM:

> pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of
> am43xx. Fix the RSTST register offset value.

> This can lead to setting of wrong power state values for PER domain.

Just curious, does it happen or noticed by going thr' the code ?

Regards
afzal

[toc] | [prev] | [next] | [standalone]


#1426322

FromKeerthy <a0393675@ti.com>
Date2016-06-20 10:30 +0200
Message-ID<rM2KJ-5PS-7@gated-at.bofh.it>
In reply to#1426266

On Monday 20 June 2016 12:35 PM, Mohammed, Afzal wrote:
> Hi,
>
> J, KEERTHY wrote on Monday, June 20, 2016 9:22 AM:
>
>> pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of
>> am43xx. Fix the RSTST register offset value.
>
>> This can lead to setting of wrong power state values for PER domain.
>
> Just curious, does it happen or noticed by going thr' the code ?

No i was trying omap4_prminst_deassert_hardreset on AM43XX on my local 
tree and i saw issues and then saw that RSTST register offsets were 
wrongly populated. Hence fixing the same.

>
> Regards
> afzal
>

[toc] | [prev] | [next] | [standalone]


#1426777

FromSuman Anna <s-anna@ti.com>
Date2016-06-20 18:30 +0200
Message-ID<rMaff-27F-7@gated-at.bofh.it>
In reply to#1426322
Hi Afzal,

On 06/20/2016 03:23 AM, Keerthy wrote:
> 
> 
> On Monday 20 June 2016 12:35 PM, Mohammed, Afzal wrote:
>> Hi,
>>
>> J, KEERTHY wrote on Monday, June 20, 2016 9:22 AM:
>>
>>> pruss hwmod RSTST register wrongly points to PWRSTCTRL register in
>>> case of
>>> am43xx. Fix the RSTST register offset value.
>>
>>> This can lead to setting of wrong power state values for PER domain.
>>
>> Just curious, does it happen or noticed by going thr' the code ?

It does happen when the pruss module is exercised. We found this when we
tried to do a standby test on suspend, and while it worked on AM33xx,
AM437x failed because of this difference.

regards
Suman

> 
> No i was trying omap4_prminst_deassert_hardreset on AM43XX on my local
> tree and i saw issues and then saw that RSTST register offsets were
> wrongly populated. Hence fixing the same.
> 
>>
>> Regards
>> afzal
>>

[toc] | [prev] | [next] | [standalone]


#1427429

From"Mohammed, Afzal" <afzal@ti.com>
Date2016-06-21 10:10 +0200
Message-ID<rMoUW-3cQ-17@gated-at.bofh.it>
In reply to#1426777
Hi Suman,

Anna, Suman wrote on Monday, June 20, 2016 9:49 PM:

> It does happen when the pruss module is exercised. We found this when we
> tried to do a standby test on suspend, and while it worked on AM33xx,
> AM437x failed because of this difference.

Okay, seems on am335x, PER doesn't have RSTST register itself.

Regards
afzal

[toc] | [prev] | [next] | [standalone]


#1427531

FromKeerthy <a0393675@ti.com>
Date2016-06-21 12:10 +0200
Message-ID<rMqN3-4mp-25@gated-at.bofh.it>
In reply to#1427429

On Tuesday 21 June 2016 01:22 PM, Mohammed, Afzal wrote:
> Hi Suman,
>
> Anna, Suman wrote on Monday, June 20, 2016 9:49 PM:
>
>> It does happen when the pruss module is exercised. We found this when we
>> tried to do a standby test on suspend, and while it worked on AM33xx,
>> AM437x failed because of this difference.
>
> Okay, seems on am335x, PER doesn't have RSTST register itself.

Seems like code has some reference!

arch/arm/mach-omap2/prm33xx.h
#define AM33XX_RM_PER_RSTST_OFFSET		0x0004

But TRM: http://www.ti.com/lit/ug/spruh73m/spruh73m.pdf
claims that offset is reserved.

Should i remove the above lines altogether?

>
> Regards
> afzal
>

[toc] | [prev] | [next] | [standalone]


#1428590

FromKeerthy <a0393675@ti.com>
Date2016-06-22 11:20 +0200
Message-ID<rMMud-1vP-1@gated-at.bofh.it>
In reply to#1427531
Tony,

On Tuesday 21 June 2016 03:27 PM, Keerthy wrote:
>
>
> On Tuesday 21 June 2016 01:22 PM, Mohammed, Afzal wrote:
>> Hi Suman,
>>
>> Anna, Suman wrote on Monday, June 20, 2016 9:49 PM:
>>
>>> It does happen when the pruss module is exercised. We found this when we
>>> tried to do a standby test on suspend, and while it worked on AM33xx,
>>> AM437x failed because of this difference.
>>
>> Okay, seems on am335x, PER doesn't have RSTST register itself.
>
> Seems like code has some reference!
>
> arch/arm/mach-omap2/prm33xx.h
> #define AM33XX_RM_PER_RSTST_OFFSET        0x0004
>
> But TRM: http://www.ti.com/lit/ug/spruh73m/spruh73m.pdf
> claims that offset is reserved.
>
> Should i remove the above lines altogether?
>

Can you pull this patch as well?

>>
>> Regards
>> afzal
>>

[toc] | [prev] | [next] | [standalone]


#1428638

FromTony Lindgren <tony@atomide.com>
Date2016-06-22 12:10 +0200
Message-ID<rMNgC-221-31@gated-at.bofh.it>
In reply to#1428590
* Keerthy <a0393675@ti.com> [160622 02:13]:
> Can you pull this patch as well?

OK thanks applying into omap-for-v4.8/soc.

Tony

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web