Linux-OMAP Archive on lore.kernel.org
 help / color / Atom feed
* BUG: omap5: v5.8-rc7 boot fails
@ 2020-07-27 20:51 H. Nikolaus Schaller
  2020-07-28  8:23 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: H. Nikolaus Schaller @ 2020-07-27 20:51 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Discussions about the Letux Kernel, kernel, Linux-OMAP,
	Linux Kernel Mailing List

Hi Tony,
after trying v5.8-rc7 the Pyra boot hangs after ca. 3 seconds
(a little random what the last log line is).

I could bisect it to:

6cfcd5563b4fadbf49ba8fa481978e5e86d30322 is the first bad commit
commit 6cfcd5563b4fadbf49ba8fa481978e5e86d30322
Author: Tony Lindgren <tony@atomide.com>
Date:   Mon Jul 13 09:26:01 2020 -0700

    clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4

And a git revert makes it boot again.

I haven't had time to do more tests (e.g. with omap3/4 or on omap5uevm).

BR and thanks,
Nikolaus


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG: omap5: v5.8-rc7 boot fails
  2020-07-27 20:51 BUG: omap5: v5.8-rc7 boot fails H. Nikolaus Schaller
@ 2020-07-28  8:23 ` Tony Lindgren
  2020-07-29 11:55   ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2020-07-28  8:23 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Discussions about the Letux Kernel, kernel, Linux-OMAP,
	Linux Kernel Mailing List

* H. Nikolaus Schaller <hns@goldelico.com> [200727 20:51]:
> Hi Tony,
> after trying v5.8-rc7 the Pyra boot hangs after ca. 3 seconds
> (a little random what the last log line is).
> 
> I could bisect it to:
> 
> 6cfcd5563b4fadbf49ba8fa481978e5e86d30322 is the first bad commit
> commit 6cfcd5563b4fadbf49ba8fa481978e5e86d30322
> Author: Tony Lindgren <tony@atomide.com>
> Date:   Mon Jul 13 09:26:01 2020 -0700
> 
>     clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4
> 
> And a git revert makes it boot again.
> 
> I haven't had time to do more tests (e.g. with omap3/4 or on omap5uevm).

Oops sorry about that, I'll take a look.

Regards,

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG: omap5: v5.8-rc7 boot fails
  2020-07-28  8:23 ` Tony Lindgren
@ 2020-07-29 11:55   ` Tony Lindgren
  2020-07-30 10:24     ` H. Nikolaus Schaller
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2020-07-29 11:55 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Discussions about the Letux Kernel, kernel, Linux-OMAP,
	Linux Kernel Mailing List

* Tony Lindgren <tony@atomide.com> [200728 08:23]:
> * H. Nikolaus Schaller <hns@goldelico.com> [200727 20:51]:
> > Hi Tony,
> > after trying v5.8-rc7 the Pyra boot hangs after ca. 3 seconds
> > (a little random what the last log line is).
> > 
> > I could bisect it to:
> > 
> > 6cfcd5563b4fadbf49ba8fa481978e5e86d30322 is the first bad commit
> > commit 6cfcd5563b4fadbf49ba8fa481978e5e86d30322
> > Author: Tony Lindgren <tony@atomide.com>
> > Date:   Mon Jul 13 09:26:01 2020 -0700
> > 
> >     clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4
> > 
> > And a git revert makes it boot again.
> > 
> > I haven't had time to do more tests (e.g. with omap3/4 or on omap5uevm).
> 
> Oops sorry about that, I'll take a look.

This fixes booting for me, but I still need to check if we also
need to enable before the reset. And then this needs to be tested
on all the related SoCs again.

Regards,

Tony

8< ------------------
diff --git a/drivers/clocksource/timer-ti-dm-systimer.c b/drivers/clocksource/timer-ti-dm-systimer.c
--- a/drivers/clocksource/timer-ti-dm-systimer.c
+++ b/drivers/clocksource/timer-ti-dm-systimer.c
@@ -409,8 +409,8 @@ static int __init dmtimer_systimer_setup(struct device_node *np,
 	t->wakeup = regbase + _OMAP_TIMER_WAKEUP_EN_OFFSET;
 	t->ifctrl = regbase + _OMAP_TIMER_IF_CTRL_OFFSET;
 
-	dmtimer_systimer_enable(t);
 	dmtimer_systimer_reset(t);
+	dmtimer_systimer_enable(t);
 	pr_debug("dmtimer rev %08x sysc %08x\n", readl_relaxed(t->base),
 		 readl_relaxed(t->base + t->sysc));
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG: omap5: v5.8-rc7 boot fails
  2020-07-29 11:55   ` Tony Lindgren
@ 2020-07-30 10:24     ` H. Nikolaus Schaller
  0 siblings, 0 replies; 4+ messages in thread
From: H. Nikolaus Schaller @ 2020-07-30 10:24 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Discussions about the Letux Kernel, kernel, Linux-OMAP,
	Linux Kernel Mailing List

Hi Tony,

> Am 29.07.2020 um 13:55 schrieb Tony Lindgren <tony@atomide.com>:
> 
> * Tony Lindgren <tony@atomide.com> [200728 08:23]:
>> * H. Nikolaus Schaller <hns@goldelico.com> [200727 20:51]:
>>> Hi Tony,
>>> after trying v5.8-rc7 the Pyra boot hangs after ca. 3 seconds
>>> (a little random what the last log line is).
>>> 
>>> I could bisect it to:
>>> 
>>> 6cfcd5563b4fadbf49ba8fa481978e5e86d30322 is the first bad commit
>>> commit 6cfcd5563b4fadbf49ba8fa481978e5e86d30322
>>> Author: Tony Lindgren <tony@atomide.com>
>>> Date:   Mon Jul 13 09:26:01 2020 -0700
>>> 
>>>    clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4
>>> 
>>> And a git revert makes it boot again.
>>> 
>>> I haven't had time to do more tests (e.g. with omap3/4 or on omap5uevm).
>> 
>> Oops sorry about that, I'll take a look.
> 
> This fixes booting for me,

yes, I can confirm that this fixes the omap5 Pyra.

And there seems to be no regression on dm3730 GTA04 (but I didn't notice the bug either, although it also uses a pwm_dmtimer).

BR and thanks,
Nikolaus

> but I still need to check if we also
> need to enable before the reset. And then this needs to be tested
> on all the related SoCs again.
> 
> Regards,
> 
> Tony
> 
> 8< ------------------
> diff --git a/drivers/clocksource/timer-ti-dm-systimer.c b/drivers/clocksource/timer-ti-dm-systimer.c
> --- a/drivers/clocksource/timer-ti-dm-systimer.c
> +++ b/drivers/clocksource/timer-ti-dm-systimer.c
> @@ -409,8 +409,8 @@ static int __init dmtimer_systimer_setup(struct device_node *np,
> 	t->wakeup = regbase + _OMAP_TIMER_WAKEUP_EN_OFFSET;
> 	t->ifctrl = regbase + _OMAP_TIMER_IF_CTRL_OFFSET;
> 
> -	dmtimer_systimer_enable(t);
> 	dmtimer_systimer_reset(t);
> +	dmtimer_systimer_enable(t);
> 	pr_debug("dmtimer rev %08x sysc %08x\n", readl_relaxed(t->base),
> 		 readl_relaxed(t->base + t->sysc));
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 20:51 BUG: omap5: v5.8-rc7 boot fails H. Nikolaus Schaller
2020-07-28  8:23 ` Tony Lindgren
2020-07-29 11:55   ` Tony Lindgren
2020-07-30 10:24     ` H. Nikolaus Schaller

Linux-OMAP Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-omap/0 linux-omap/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-omap linux-omap/ https://lore.kernel.org/linux-omap \
		linux-omap@vger.kernel.org
	public-inbox-index linux-omap

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-omap


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git