public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* Re: + ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-the-tolerance.patch added to -mm tree
       [not found] <200703161052.l2GAqIRV009441@shell0.pdx.osdl.net>
@ 2007-03-16 14:14 ` Kumar Gala
  2007-03-16 14:34   ` Bart Van Assche
  0 siblings, 1 reply; 3+ messages in thread
From: Kumar Gala @ 2007-03-16 14:14 UTC (permalink / raw)
  To: bart.vanassche
  Cc: linuxppc-dev@ozlabs•org ML, Paul Mackerras, Andrew Morton,
	Stefan Roese


On Mar 16, 2007, at 5:52 AM, akpm@linux-foundation•org wrote:

>
> The patch titled
>      Ocotea board: ntpd complains that the frequency error exceeds  
> the tolerance
> has been added to the -mm tree.  Its filename is
>      ocotea-board-ntpd-complains-that-the-frequency-error-exceeds- 
> the-tolerance.patch
>
> *** Remember to use Documentation/SubmitChecklist when testing your  
> code ***
>
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt  
> to find
> out what to do about this
>
> ------------------------------------------------------
> Subject: Ocotea board: ntpd complains that the frequency error  
> exceeds the tolerance
> From: Bart Van Assche <bart.vanassche@gmail•com>
>
> Lifted from http://bugzilla.kernel.org/show_bug.cgi?id=8182
>
> Steps to reproduce:
> - Boot an Ocotea board with the mainline 2.6.20.1 kernel.
> - Create an /etc/ntp.conf file with at least one NTP server and  
> iburst mode set.
> - Issue the command "ntpd -g".
> - Wait about two minutes.
> - Verify ntpd's status via "ntpq -pn" and by looking in /var/log/ntp.
>
> Patch that fixes this problem:
>
> Cc: Kumar Gala <galak@gate•crashing.org>
> Cc: Benjamin Herrenschmidt <benh@kernel•crashing.org>
> Cc: Paul Mackerras <paulus@samba•org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation•org>
> ---
>
>  arch/ppc/platforms/4xx/ocotea.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN arch/ppc/platforms/4xx/ocotea.c~ocotea-board-ntpd- 
> complains-that-the-frequency-error-exceeds-the-tolerance arch/ppc/ 
> platforms/4xx/ocotea.c
> --- a/arch/ppc/platforms/4xx/ocotea.c~ocotea-board-ntpd-complains- 
> that-the-frequency-error-exceeds-the-tolerance
> +++ a/arch/ppc/platforms/4xx/ocotea.c
> @@ -289,7 +289,7 @@ ocotea_setup_arch(void)
>  	 * from FPGA, because it can be changed by on-board switches
>  	 * --ebs
>  	 */
> -	ibm440gx_get_clocks(&clocks, 33333333, 6 * 1843200);
> +	ibm440gx_get_clocks(&clocks, 33300000, 6 * 1843200);
>  	ocp_sys_info.opb_bus_freq = clocks.opb;

  I asked Stefan & Josh to look at this and Stefan believes its a  
33.33Mhz clock.  So should this really be 33330000?

- k

>
>  	/* Setup TODC access */
> _
>
> Patches currently in -mm which might be from  
> bart.vanassche@gmail•com are
>
> ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-the- 
> tolerance.patch

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

* Re: + ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-the-tolerance.patch added to -mm tree
  2007-03-16 14:14 ` + ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-the-tolerance.patch added to -mm tree Kumar Gala
@ 2007-03-16 14:34   ` Bart Van Assche
  2007-03-16 14:40     ` Stefan Roese
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2007-03-16 14:34 UTC (permalink / raw)
  To: Kumar Gala
  Cc: linuxppc-dev@ozlabs•org ML, Paul Mackerras, Andrew Morton,
	Stefan Roese

On 3/16/07, Kumar Gala <galak@kernel•crashing.org> wrote:
>
> On Mar 16, 2007, at 5:52 AM, akpm@linux-foundation•org wrote:
>
> >
> > The patch titled
> >      Ocotea board: ntpd complains that the frequency error exceeds
> > the tolerance
> > has been added to the -mm tree.  Its filename is
> >      ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-
> > the-tolerance.patch
> >
> > *** Remember to use Documentation/SubmitChecklist when testing your
> > code ***
> >
> > See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt
> > to find
> > out what to do about this
> >
> > ------------------------------------------------------
> > Subject: Ocotea board: ntpd complains that the frequency error
> > exceeds the tolerance
> > From: Bart Van Assche <bart.vanassche@gmail•com>
> >
> > Lifted from http://bugzilla.kernel.org/show_bug.cgi?id=8182
> >
> > Steps to reproduce:
> > - Boot an Ocotea board with the mainline 2.6.20.1 kernel.
> > - Create an /etc/ntp.conf file with at least one NTP server and
> > iburst mode set.
> > - Issue the command "ntpd -g".
> > - Wait about two minutes.
> > - Verify ntpd's status via "ntpq -pn" and by looking in /var/log/ntp.
> >
> > Patch that fixes this problem:
> >
> > Cc: Kumar Gala <galak@gate•crashing.org>
> > Cc: Benjamin Herrenschmidt <benh@kernel•crashing.org>
> > Cc: Paul Mackerras <paulus@samba•org>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation•org>
> > ---
> >
> >  arch/ppc/platforms/4xx/ocotea.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff -puN arch/ppc/platforms/4xx/ocotea.c~ocotea-board-ntpd-
> > complains-that-the-frequency-error-exceeds-the-tolerance arch/ppc/
> > platforms/4xx/ocotea.c
> > --- a/arch/ppc/platforms/4xx/ocotea.c~ocotea-board-ntpd-complains-
> > that-the-frequency-error-exceeds-the-tolerance
> > +++ a/arch/ppc/platforms/4xx/ocotea.c
> > @@ -289,7 +289,7 @@ ocotea_setup_arch(void)
> >        * from FPGA, because it can be changed by on-board switches
> >        * --ebs
> >        */
> > -     ibm440gx_get_clocks(&clocks, 33333333, 6 * 1843200);
> > +     ibm440gx_get_clocks(&clocks, 33300000, 6 * 1843200);
> >       ocp_sys_info.opb_bus_freq = clocks.opb;
>
>   I asked Stefan & Josh to look at this and Stefan believes its a
> 33.33Mhz clock.  So should this really be 33330000?

I have measured the clock frequency on the two Ocotea boards I have on
my desk, and both have a clock crystal of 33.3 MHz, not 33.33 MHz.
What I don't know is whether the same clock crystal is mounted on all
Ocotea boards.

Regards,

Bart Van Assche.

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

* Re: + ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-the-tolerance.patch added to -mm tree
  2007-03-16 14:34   ` Bart Van Assche
@ 2007-03-16 14:40     ` Stefan Roese
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2007-03-16 14:40 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: linuxppc-dev@ozlabs•org ML, Paul Mackerras, Andrew Morton

On Friday 16 March 2007 15:34, Bart Van Assche wrote:
> >   I asked Stefan & Josh to look at this and Stefan believes its a
> > 33.33Mhz clock.  So should this really be 33330000?
>
> I have measured the clock frequency on the two Ocotea boards I have on
> my desk, and both have a clock crystal of 33.3 MHz, not 33.33 MHz.
> What I don't know is whether the same clock crystal is mounted on all
> Ocotea boards.

Hmmm. From what I could read from the schematics, it should be 33.33MHz. But 
here is always a gray zone. I'll ask AMCC, what is equipped right now.

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
=====================================================================

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

end of thread, other threads:[~2007-03-16 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200703161052.l2GAqIRV009441@shell0.pdx.osdl.net>
2007-03-16 14:14 ` + ocotea-board-ntpd-complains-that-the-frequency-error-exceeds-the-tolerance.patch added to -mm tree Kumar Gala
2007-03-16 14:34   ` Bart Van Assche
2007-03-16 14:40     ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox