Re: [PATCH 11/11] k_clock:Remove the 32bit methods with timespec type

2015-04-20 Thread Richard Cochran
On Mon, Apr 20, 2015 at 01:57:39PM +0800, Baolin Wang wrote: > @@ -911,18 +907,14 @@ retry: > return -EINVAL; > > kc = clockid_to_kclock(timr->it_clock); > - if (WARN_ON_ONCE(!kc || (!kc->timer_set && !kc->timer_set64))) { > + if (WARN_ON_ONCE(!kc || !kc->timer_set64)

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-22 Thread Richard Cochran
On Wed, Apr 22, 2015 at 10:45:23AM +0200, Thomas Gleixner wrote: > So we could save one translation step if we implement new syscalls > which have a scalar nsec interface instead of the timespec/timeval > cruft and let user space do the translation to whatever it wants. +1 > I personally would we

Re: [Y2038] [PATCH 04/11] posix timers:Introduce the 64bit methods with timespec64 type for k_clock structure

2015-04-22 Thread Richard Cochran
On Wed, Apr 22, 2015 at 03:50:45PM +0200, Arnd Bergmann wrote: > time, stime, gettimeofday, settimeofday, adjtimex, nanosleep, > getitimer, setitimer: > all deprecated => wontfix If adjtimex is deprecated, what will replace it? It is really important for ntp. Thanks, Richard __

Re: [PATCH] powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file

2013-09-24 Thread Richard Cochran
On Tue, Sep 24, 2013 at 11:39:57AM +0400, Aida Mynzhasova wrote: > Currently IEEE 1588 timer reference clock source is determined through > hard-coded value in gianfar_ptp driver. This patch allows to select ptp > clock source by means of device tree file node. > > For instance: > > fsl,cks

Re: [PATCH v2] powerpc/83xx: gianfar_ptp: select 1588 clock source through dts file

2013-09-25 Thread Richard Cochran
Acked-by: Richard Cochran ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH V3] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug

2015-01-28 Thread Richard Cochran
On Wed, Jan 28, 2015 at 03:32:58PM +0530, Preeti U Murthy wrote: > Thomas ping. Would you be posting this patch? FYI, Thomas is temporarily out of action, in bed with the flu. Thanks, Richard ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org h

Re: [PATCH 09/10] dpaa_eth: add support for hardware timestamping

2018-06-04 Thread Richard Cochran
On Mon, Jun 04, 2018 at 03:08:36PM +0800, Yangbo Lu wrote: > +if FSL_DPAA_ETH > +config FSL_DPAA_ETH_TS > + bool "DPAA hardware timestamping support" > + select PTP_1588_CLOCK_QORIQ > + default n > + help > + Enable DPAA hardware timestamping support. > + This option is

Re: [PATCH 09/10] dpaa_eth: add support for hardware timestamping

2018-06-05 Thread Richard Cochran
On Tue, Jun 05, 2018 at 03:35:28AM +, Y.b. Lu wrote: > [Y.b. Lu] Actually these timestamping codes affected DPAA networking > performance in our previous performance test. > That's why we used ifdef for it. How much does time stamping hurt performance? If the time stamping is compiled in but

Re: [v3, 00/10] Support DPAA PTP clock and timestamping

2018-06-07 Thread Richard Cochran
hen you do re-post, you can add my: Acked-by: Richard Cochran

Re: [PATCH 3/3] ptp_qoriq: convert to use module parameters for initialization

2018-07-30 Thread Richard Cochran
On Mon, Jul 30, 2018 at 06:01:54PM +0800, Yangbo Lu wrote: > The ptp_qoriq driver initialized the 1588 timer with the > configurations provided by the properties of device tree > node. For example, > > fsl,tclk-period = <5>; > fsl,tmr-prsc= <2>; > fsl,tmr-add = <0xaaab>; > fsl,

Re: [PATCH 3/3] ptp_qoriq: convert to use module parameters for initialization

2018-07-31 Thread Richard Cochran
On Wed, Aug 01, 2018 at 04:36:40AM +, Y.b. Lu wrote: > Could I add a function to calculate a set of default register values > to initialize ptp timer when dts method failed to get required > properties in driver? Yes, it would be ideal if the driver can pick correct values automatically. How

Re: [PATCH] gianfar: add missing include

2012-04-09 Thread Richard Cochran
for the fix. Acked-by: Richard Cochran ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 1/8] posix clocks: introduce a syscall for clock tuning.

2010-09-24 Thread Richard Cochran
On Thu, Sep 23, 2010 at 12:48:51PM -0700, john stultz wrote: > On Thu, 2010-09-23 at 19:31 +0200, Richard Cochran wrote: > > A new syscall is introduced that allows tuning of a POSIX clock. The > > syscall is implemented for four architectures: arm, blackfin, powerpc, > > and

Re: [PATCH 1/8] posix clocks: introduce a syscall for clock tuning.

2010-09-24 Thread Richard Cochran
On Fri, Sep 24, 2010 at 08:03:43AM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2010-09-23 at 19:31 +0200, Richard Cochran wrote: > > A new syscall is introduced that allows tuning of a POSIX clock. The > > syscall is implemented for four architectures: arm, blackfin, power

Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support

2010-09-24 Thread Richard Cochran
On Thu, Sep 23, 2010 at 12:53:20PM -0500, Christoph Lameter wrote: > On Thu, 23 Sep 2010, Richard Cochran wrote: > > 3.3 Synchronizing the Linux System Time > > > > > >One could offer a PHC as a combined clock source and clo

Re: [PATCH 6/8] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-09-24 Thread Richard Cochran
On Thu, Sep 23, 2010 at 02:17:36PM -0500, Christoph Lameter wrote: > On Thu, 23 Sep 2010, Richard Cochran wrote: > > + These properties set the operational parameters for the PTP > > + clock. You must choose these carefully for the clock to work right. > > + Here is how

Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support

2010-09-24 Thread Richard Cochran
On Thu, Sep 23, 2010 at 09:36:54PM +0100, Alan Cox wrote: > Drop the clockid_t and swap it for a file handle like a proper Unix or > Linux interface. The rest is much the same > > fd = open /sys/class/timesource/[whatever] > > various queries you may want to do to check the name etc >

Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support

2010-09-24 Thread Richard Cochran
On Thu, Sep 23, 2010 at 12:38:53PM -0700, john stultz wrote: > On Thu, 2010-09-23 at 19:30 +0200, Richard Cochran wrote: > > /sys/class/timesource//id > > /sys/class/ptp/ptp_clock_X/id > > > So yea, I'm not a fan of the "timesource" sysfs int

Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support

2010-09-27 Thread Richard Cochran
On Mon, Sep 27, 2010 at 10:14:23AM -0600, M. Warner Losh wrote: > > This is a common error that I've seen repeated in this thread. The > only reason that it has historically been important is because when > you are doing timestamping in software based on an interrupt, that > stuff does matter. Y

Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support

2010-09-27 Thread Richard Cochran
On Mon, Sep 27, 2010 at 06:05:58PM +0100, Alan Cox wrote: > On Mon, 27 Sep 2010 10:56:09 -0500 (CDT) > Christoph Lameter wrote: > > > > > On Fri, 24 Sep 2010, Alan Cox wrote: > > > > > Whether you add new syscalls or do the fd passing using flags and hide > > > the ugly bits in glibc is another

[PATCH V11 0/4] ptp: IEEE 1588 hardware clock support

2011-02-23 Thread Richard Cochran
river handles multiple PHYs Richard Cochran (4): ptp: Added a brand new class driver for ptp clocks. ptp: Added a clock that uses the eTSEC found on the MPC85xx. ptp: Added a clock driver for the IXP46x. ptp: Added a clock driver for the National Semiconductor PHYTER. Documentation/ABI/te

[PATCH V11 1/4] ptp: Added a brand new class driver for ptp clocks.

2011-02-23 Thread Richard Cochran
different ways, via the sysfs and by a character device. Signed-off-by: Richard Cochran --- Documentation/ABI/testing/sysfs-ptp | 98 ++ Documentation/ptp/ptp.txt | 89 + Documentation/ptp/testptp.c | 352 +++ Documentation/ptp

[PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-02-23 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps, one alarm, and the PPS callback. Signed-off-by: Richard Cochran Acked-by: John Stultz --- .../devicetree/bindings/net/fsl-tsec-phy.txt

[PATCH V11 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-02-23 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. The basic clock operations and one external time stamp have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 1012

[PATCH V11 3/4] ptp: Added a clock driver for the IXP46x.

2011-02-23 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. The basic clock operations and an external trigger are implemented. Signed-off-by: Richard Cochran Acked-by: John Stultz --- arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 78 ++ drivers/net/arm

Re: [PATCH V11 0/4] ptp: IEEE 1588 hardware clock support

2011-02-23 Thread Richard Cochran
* Previous Discussions This patch set previously appeared on the netdev list. Since V5 of the character device patch set, the discussion has moved to the lkml. - IEEE 1588 hardware clock support [V5] http://lkml.org/lkml/2010/8/16/90 - POSIX clock tuning syscall with static clock i

Re: [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-02-24 Thread Richard Cochran
On Wed, Feb 23, 2011 at 10:54:59AM -0700, Grant Likely wrote: > On Wed, Feb 23, 2011 at 11:26:12AM -0600, Scott Wood wrote: > > The eTSEC revision is probeable as well, but due the way PTP is described as > > a separate node, the driver doesn't have straightforward access to those > > registers. >

Re: [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-02-24 Thread Richard Cochran
On Wed, Feb 23, 2011 at 01:24:44PM -0600, Scott Wood wrote: > Whatever string is used should be written into a binding document. > > fsl,etsec-v1.6-ptp seems like it would be just as good for that purpose. > > Even just fsl,etsec-ptp will identify the binding, though it's lacking in > identifying

Re: [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-02-24 Thread Richard Cochran
On Wed, Feb 23, 2011 at 09:50:58AM -0700, Grant Likely wrote: > On Wed, Feb 23, 2011 at 11:38:17AM +0100, Richard Cochran wrote: > > +Clock Properties: > > + > > + - tclk-period Timer reference clock period in nanoseconds. > > + - tmr-prsc Prescaler, divides the

Re: [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-02-24 Thread Richard Cochran
On Thu, Feb 24, 2011 at 11:27:31AM -0600, Scott Wood wrote: > My vote, if it goes in a separate node at all, is "fsl,etsec-ptp", So, that is what the patch does. > and let the driver use SVR. What is SVR? Thanks, Richard ___ Linuxppc-dev mailing list

[PATCH V12 0/4] ptp: IEEE 1588 hardware clock support

2011-02-27 Thread Richard Cochran
http://lkml.org/lkml/2010/8/23/49 - Versions 1-4 appeared on the netdev list. Richard Cochran (4): ptp: Added a brand new class driver for ptp clocks. ptp: Added a clock that uses the eTSEC found on the MPC85xx. ptp: Added a clock driver for the IXP46x. ptp: Added a clock driver for the Nat

[PATCH V12 1/4] ptp: Added a brand new class driver for ptp clocks.

2011-02-27 Thread Richard Cochran
different ways, via the sysfs and by a character device. Signed-off-by: Richard Cochran --- Documentation/ABI/testing/sysfs-ptp | 98 ++ Documentation/ptp/ptp.txt | 89 + Documentation/ptp/testptp.c | 352 +++ Documentation/ptp

[PATCH V12 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-02-27 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps, one alarm, and the PPS callback. Signed-off-by: Richard Cochran --- .../devicetree/bindings/net/fsl-tsec-phy.txt | 54 ++ arch

[PATCH V12 3/4] ptp: Added a clock driver for the IXP46x.

2011-02-27 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. The basic clock operations and an external trigger are implemented. Signed-off-by: Richard Cochran Acked-by: John Stultz --- arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 78 ++ drivers/net/arm

[PATCH V12 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-02-27 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. The basic clock operations and one external time stamp have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 1012

Re: [PATCH V12 0/4] ptp: IEEE 1588 hardware clock support

2011-03-16 Thread Richard Cochran
On Mon, Feb 28, 2011 at 08:57:03AM +0100, Richard Cochran wrote: > * PHC Patch ChangeLog > ** v12 > *** gianfar_ptp >- fixed up device tree >- inlined the header file >- use platform_ calls instead of deprecated of_ calls >- removed static global single instanc

Re: [PATCH V12 0/4] ptp: IEEE 1588 hardware clock support

2011-03-19 Thread Richard Cochran
For all those interested in the user space aspect, I have posted some patches to ptpd project showing how the API works. https://sourceforge.net/tracker/?group_id=139814&atid=744634 3225599 [PATCH 1/3] Convert to POSIX clock API. 3225603 [PATCH 2/3] Adapted to use the Linux PTP Hardware Clock API

[PATCH] powerpc: add clock_adjtime for powerpc

2011-03-24 Thread Richard Cochran
This patch adds the clock_adjtime system call to the powerpc architecture. The call was introduced in f1f1d5ebd10ffa4242bce7a90a56a222d6b7bc77 Signed-off-by: Richard Cochran --- arch/powerpc/include/asm/systbl.h |1 + arch/powerpc/include/asm/unistd.h |3 ++- 2 files changed, 3

Re: [PATCH] powerpc: add clock_adjtime for powerpc

2011-03-24 Thread Richard Cochran
On Thu, Mar 24, 2011 at 04:05:17PM +0100, Richard Cochran wrote: > This patch adds the clock_adjtime system call to the powerpc architecture. Never mind this patch. Stephen Rothwell already posted a patch on linuxppc-dev adding this syscall eariler today. Thanks, Rich

Re: [PATCH V12 1/4] ptp: Added a brand new class driver for ptp clocks.

2011-03-26 Thread Richard Cochran
On Wed, Mar 23, 2011 at 02:19:20PM -0700, John Stultz wrote: > On Mon, 2011-02-28 at 08:57 +0100, Richard Cochran wrote: > > +++ b/drivers/ptp/ptp_clock.c > > @@ -0,0 +1,320 @@ > [snip] > > +static void enqueue_external_timestamp(struct time

Re: [PATCH V12 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-03-26 Thread Richard Cochran
On Wed, Mar 23, 2011 at 02:30:04PM -0700, John Stultz wrote: > On Mon, 2011-02-28 at 08:57 +0100, Richard Cochran wrote: > > +/* > > + * Register access functions > > + */ > > So what are the locking rules on the functions below? I assume the > etsects->lock need

Re: [PATCH V12 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-03-26 Thread Richard Cochran
On Wed, Mar 23, 2011 at 02:46:25PM -0700, John Stultz wrote: > On Mon, 2011-02-28 at 08:58 +0100, Richard Cochran wrote: > > +static int tdr_write(int bc, struct phy_device *dev, > > +const struct timespec *ts, u16 cmd) > > +{ > > + ext_write(bc, dev,

[PATCH V13 0/4] ptp: IEEE 1588 hardware clock support

2011-03-26 Thread Richard Cochran
28/53 - [V11] http://lkml.org/lkml/2011/2/23/107 - [V10] http://lkml.org/lkml/2011/1/27/71 Richard Cochran (4): ptp: Added a brand new class driver for ptp clocks. ptp: Added a clock that uses the eTSEC found on the MPC85xx. ptp: Added a clock driver for the IXP46x. ptp: Added a

[PATCH V13 1/4] ptp: Added a brand new class driver for ptp clocks.

2011-03-26 Thread Richard Cochran
different ways, via the sysfs and by a character device. Signed-off-by: Richard Cochran --- Documentation/ABI/testing/sysfs-ptp | 98 + Documentation/ptp/ptp.txt | 89 + Documentation/ptp/testptp.c | 368 +++ Documentation/ptp

[PATCH V13 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-03-26 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps, one alarm, and the PPS callback. Signed-off-by: Richard Cochran --- .../devicetree/bindings/net/fsl-tsec-phy.txt | 54 ++ arch

[PATCH V13 3/4] ptp: Added a clock driver for the IXP46x.

2011-03-26 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. The basic clock operations and an external trigger are implemented. Signed-off-by: Richard Cochran Acked-by: John Stultz --- arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 78 ++ drivers/net/arm

[PATCH V13 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-03-26 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. The basic clock operations and one external time stamp have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 1015

[PATCH] powerpc: rename get_irq_desc_data and get_irq_desc_chip

2011-03-30 Thread Richard Cochran
These two functions disappeared in commit 0c6f8a8b917ad361319c8ace3e9f28e69bfdb4c1 "genirq: Remove compat code" but they still exist in qe_ic.h. This patch renames the function to their new names. Signed-off-by: Richard Cochran --- arch/powerpc/include/asm/qe_i

RE: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-10-14 Thread Richard Cochran
>-Original Message- >From: linuxppc-dev-bounces On Behalf Of Scott Wood >Sent: Wednesday, September 09, 2009 8:22 PM >To: Roland Lezuo >Cc: linuxppc-dev@lists.ozlabs.org >Subject: Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment. > >On Fri, Sep 04, 2009 at 12:31:25PM +0200, R

RE: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-10-15 Thread Richard Cochran
>-Original Message- From: Scott Wood [mailto:scottw...@freescale.com] >Because that would be three times the device trees to maintain, and a >source of user confusion. I wonder which is more confusing for the user: 1. Choosing one of three dts files. 2. Having only one dts for his board,

RE: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-10-15 Thread Richard Cochran
> -Original Message- > From: Scott Wood [mailto:scottw...@freescale.com] > Subject: Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment. > > On Thu, Oct 15, 2009 at 02:19:30PM +0200, Richard Cochran wrote: > > 2. Having only one dts for his board, but

RE: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-10-20 Thread Richard Cochran
> -Original Message- > From: Scott Wood [mailto:scottw...@freescale.com] > > What problems have you been having with upstream kernels on mpc8313erdb, > other than this IRQ issue? It should work, though the BSP may have extra > features that haven't been pushed upstream. I have been workin

Re: [PATCH 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-05-02 Thread Richard Cochran
On Sat, May 01, 2010 at 11:36:12AM -0500, Kumar Gala wrote: > Is there a binding document that describes this node you are adding? No, but I will add one to Documentation/powerpc/dts-bindings. Thanks, Richard ___ Linuxppc-dev mailing list Linuxppc-dev@l

regression: 2.6.39-rc2,3 compile failure on p2020

2011-04-16 Thread Richard Cochran
When compiling mpc85xx_smp_defconfig, the kernel fails to link with: arch/powerpc/kernel/built-in.o: In function `cpu_die': arch/powerpc/kernel/smp.c:702: undefined reference to `start_secondary_resume' I suspect: commit fa3f82c8bb7acbe049ea71f258b3ae0a33d9d40b powerpc/smp: soft-replu

regression: 2.6.39-rc2,3 compile failure on p2020 (repost)

2011-04-16 Thread Richard Cochran
When compiling mpc85xx_smp_defconfig, the kernel fails to link with: arch/powerpc/kernel/built-in.o: In function `cpu_die': arch/powerpc/kernel/smp.c:702: undefined reference to `start_secondary_resume' I suspect: commit fa3f82c8bb7acbe049ea71f258b3ae0a33d9d40b powerpc/smp: soft-replu

[PATCH V14 0/4] ptp: IEEE 1588 hardware clock support

2011-04-17 Thread Richard Cochran
lkml/2010/8/23/49 - Versions 1-4 appeared on the netdev list. Richard Cochran (4): ptp: Added a brand new class driver for ptp clocks. ptp: Added a clock that uses the eTSEC found on the MPC85xx. ptp: Added a clock driver for the IXP46x. ptp: Added a clock driver for the National Semicondu

[PATCH V14 1/4] ptp: Added a brand new class driver for ptp clocks.

2011-04-17 Thread Richard Cochran
different ways, via the sysfs and by a character device. Signed-off-by: Richard Cochran --- Documentation/ABI/testing/sysfs-ptp | 98 + Documentation/ptp/ptp.txt | 89 + Documentation/ptp/testptp.c | 368 +++ Documentation/ptp

[PATCH V14 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-04-17 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps, one alarm, and the PPS callback. Signed-off-by: Richard Cochran Acked-by: John Stultz --- .../devicetree/bindings/net/fsl-tsec-phy.txt

[PATCH V14 3/4] ptp: Added a clock driver for the IXP46x.

2011-04-17 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. The basic clock operations and an external trigger are implemented. Signed-off-by: Richard Cochran Acked-by: John Stultz --- arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 78 ++ drivers/net/arm

[PATCH V14 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-04-17 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. The basic clock operations and one external time stamp have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 1100

Re: [PATCH V14 3/4] ptp: Added a clock driver for the IXP46x.

2011-04-18 Thread Richard Cochran
On Mon, Apr 18, 2011 at 08:56:03AM +0200, Arnd Bergmann wrote: > On Monday 18 April 2011, Richard Cochran wrote: > > + > > + lo = __raw_readl(®s->channel[ch].src_uuid_lo); > > + hi = __raw_readl(®s->channel[ch].src_uuid_hi); > > + > > I guess

Re: [PATCH V14 3/4] ptp: Added a clock driver for the IXP46x.

2011-04-18 Thread Richard Cochran
Also, I forgot to add Krzysztof's ack to the commit message, but he did ack V12. Thanks, Richard ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH V14 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-04-22 Thread Richard Cochran
On Mon, Apr 18, 2011 at 09:57:25PM +0100, Ben Hutchings wrote: > Would be better without the magic numbers. Yes, of course, you are right, and also about patch #3. Please take a look at v15 and see if it improves things. Thanks, Richard ___ Linuxppc-de

[PATCH V15 0/4] ptp: IEEE 1588 hardware clock support

2011-04-22 Thread Richard Cochran
lkml/2010/9/3/119 - POSIX clock tuning syscall with static clock ids http://lkml.org/lkml/2010/8/23/49 - Versions 1-4 appeared on the netdev list. Richard Cochran (4): ptp: Added a brand new class driver for ptp clocks. ptp: Added a clock that uses the eTSEC found on the MPC85xx. ptp: A

[PATCH V15 1/4] ptp: Added a brand new class driver for ptp clocks.

2011-04-22 Thread Richard Cochran
different ways, via the sysfs and by a character device. Signed-off-by: Richard Cochran Acked-by: Arnd Bergmann Acked-by: David S. Miller --- Documentation/ABI/testing/sysfs-ptp | 98 + Documentation/ptp/ptp.txt | 89 Documentation/ptp/testptp.c | 381

[PATCH V15 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-04-22 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps, one alarm, and the PPS callback. Signed-off-by: Richard Cochran Acked-by: David S. Miller Acked-by: John Stultz --- .../devicetree

[PATCH V15 3/4] ptp: Added a clock driver for the IXP46x.

2011-04-22 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. The basic clock operations and an external trigger are implemented. Signed-off-by: Richard Cochran Acked-by: Arnd Bergmann Acked-by: David S. Miller Acked-by: John Stultz Acked-by: Krzysztof Halasa --- arch

[PATCH V15 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-04-22 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. The basic clock operations and one external time stamp have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 1100

powerpc: mpc85xx regression since 2.6.39-rc2, one cpu core lame

2011-05-17 Thread Richard Cochran
Ben, Recent 2.6.39-rc kernels behave strangely on the Freescale dual core mpc8572 and p2020. There is a long pause (like 2 seconds) in the boot sequence after "mpic: requesting IPIs..." When the system comes up, only one core shows in /proc/cpuinfo. Later on, lots of messages appear like the foll

Re: powerpc: mpc85xx regression since 2.6.39-rc2, one cpu core lame

2011-05-18 Thread Richard Cochran
On Wed, May 18, 2011 at 07:40:16AM +1000, Benjamin Herrenschmidt wrote: > On Tue, 2011-05-17 at 18:28 +0200, Richard Cochran wrote: > > Ben, > > > > Recent 2.6.39-rc kernels behave strangely on the Freescale dual core > > mpc8572 and p2020. There is a long pause (

Re: [git pull] Please pull powerpc.git merge branch

2011-05-20 Thread Richard Cochran
On Thu, May 19, 2011 at 02:06:18PM +1000, Benjamin Herrenschmidt wrote: > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git merge When I try to build 'next' (now at 208b3a4c), it does not compile due to a change from the following commit.

Re: [git pull] Please pull powerpc.git merge branch

2011-05-20 Thread Richard Cochran
On Fri, May 20, 2011 at 09:58:45AM -0400, Josh Boyer wrote: > On Fri, May 20, 2011 at 03:23:29PM +0200, Richard Cochran wrote: > >When I try to build 'next' (now at 208b3a4c), it does not compile due > >to a change from the following commit. > > > >> Benjam

[PATCH v3 0/3] ptp: IEEE 1588 clock support

2010-05-14 Thread Richard Cochran
eters from device tree. - Added API documentation to Documentation/ptp/ptp.txt Richard Cochran (3): ptp: Added a brand new class driver for ptp clocks. ptp: Added a clock that uses the Linux system time. ptp: Added a clock that uses the eTSEC found on the MPC85xx. Documentation/powerp

[PATCH v3 1/3] ptp: Added a brand new class driver for ptp clocks.

2010-05-14 Thread Richard Cochran
clock. Signed-off-by: Richard Cochran --- Documentation/ptp/ptp.txt| 95 +++ Documentation/ptp/testptp.c | 245 ++ Documentation/ptp/testptp.mk | 33 +++ drivers/Kconfig |2 + drivers/Makefile |1 + drivers/ptp

[PATCH v3 2/3] ptp: Added a clock that uses the Linux system time.

2010-05-14 Thread Richard Cochran
This PTP clock simply uses the NTP time adjustment system calls. The driver can be used in systems that lack a special hardware PTP clock. Signed-off-by: Richard Cochran --- drivers/ptp/Kconfig | 12 drivers/ptp/Makefile|1 + drivers/ptp/ptp_linux.c | 136

[PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-05-14 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps and one alarm. Signed-off-by: Richard Cochran --- Documentation/powerpc/dts-bindings/fsl/tsec.txt | 56 +++ arch/powerpc/boot/dts

Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-05-17 Thread Richard Cochran
On Fri, May 14, 2010 at 12:46:57PM -0500, Scott Wood wrote: > On 05/14/2010 11:46 AM, Richard Cochran wrote: > >diff --git a/Documentation/powerpc/dts-bindings/fsl/tsec.txt > >b/Documentation/powerpc/dts-bindings/fsl/tsec.txt > > Get rid of both device_type and model, and

Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-05-17 Thread Richard Cochran
On Mon, May 17, 2010 at 01:05:54PM -0500, Scott Wood wrote: > >>> >+ - tmr_fiper1 Fixed interval period pulse generator. > >>> >+ - tmr_fiper2 Fixed interval period pulse generator. > >> > > MPC8572 and P2020 have fiper3 as well. I doubt they really have a third fiper. First of all, this s

Re: [PATCH] gianfar: Revive the driver for eTSEC devices (disable timestamping)

2010-06-09 Thread Richard Cochran
On Wed, Jun 09, 2010 at 11:32:19PM +0400, Anton Vorontsov wrote: > Since commit cc772ab7cdcaa24d1fae332d92a1602788644f7a ("gianfar: Add > hardware RX timestamping support"), the driver no longer works on > at least MPC8313ERDB and MPC8568EMDS boards (and possibly much more > boards as well). What

Re: [PATCH] gianfar: Revive the driver for eTSEC devices (disable timestamping)

2010-06-10 Thread Richard Cochran
On Thu, Jun 10, 2010 at 01:31:59PM +0400, Anton Vorontsov wrote: > > No, we did not set TMR_CTRL[TE]. > > So, you deliberately violate the spec and expect it to work > everywhere? :-) Sometimes one must read the manual with a grain of salt ;) > > > Also, I recall that Freescale BSPs were explici

[PATCH] powerpc: fix obsolete device tree code for the UPM NAND driver.

2010-06-12 Thread Richard Cochran
Commit 58f9b0b02414062eaff46716bc04b47d7e79add5 removed of_device->node. This driver was apparently overlooked in the processes. Signed-off-by: Richard Cochran --- drivers/mtd/nand/fsl_upm.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/

[PATCH v4 00/12] ptp: IEEE 1588 clock support

2010-06-15 Thread Richard Cochran
- Added links to both of the ptpd patches on sourceforge. - Gianfar driver now gets parameters from device tree. - Added API documentation to Documentation/ptp/ptp.txt Looking forward to your feedback, Richard Richard Cochran (12): phylib: preserve ifreq parameter when calling gener

[PATCH 01/12] phylib: preserve ifreq parameter when calling generic phy_mii_ioctl()

2010-06-15 Thread Richard Cochran
The phy_mii_ioctl() function unnecessarily throws away the original ifreq. We need access to the ifreq in order to support PHYs that can perform hardware time stamping. Signed-off-by: Richard Cochran --- drivers/net/arm/ixp4xx_eth.c |3 ++- drivers/net/au1000_eth.c

[PATCH 02/12] phylib: do not filter phy_mii_ioctl()

2010-06-15 Thread Richard Cochran
Two maverick drivers filter the ioctl commands passed to phy_mii_ioctl(). This is unnecessary since phylib will check the command in any case. Signed-off-by: Richard Cochran --- drivers/net/cpmac.c |5 + drivers/net/stmmac/stmmac_main.c | 22 -- 2

[PATCH 03/12] phylib: add a driver method for the SIOCSHWTSTAMP ioctl.

2010-06-15 Thread Richard Cochran
This patch adds a phy driver method for configuring hardware time stamping. Drivers may optionally implement this function. Signed-off-by: Richard Cochran --- drivers/net/phy/phy.c |5 + include/linux/phy.h |3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a

[PATCH 04/12] phylib: add a way to make PHY time stamps possible.

2010-06-15 Thread Richard Cochran
-off-by: Richard Cochran --- include/linux/phy.h|4 include/linux/skbuff.h | 32 net/Kconfig| 11 +++ 3 files changed, 47 insertions(+), 0 deletions(-) diff --git a/include/linux/phy.h b/include/linux/phy.h index a5e9df1..7a8caac

[PATCH 05/12] phylib: Allow reading and writing a mii bus from atomic context.

2010-06-15 Thread Richard Cochran
default that bus operations may sleep. Signed-off-by: Richard Cochran --- drivers/net/phy/mdio_bus.c | 35 --- include/linux/phy.h| 13 +++-- 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy

[PATCH 06/12] ptp: add a BPF to help drivers detect PTP packets.

2010-06-15 Thread Richard Cochran
needed. Signed-off-by: Richard Cochran --- include/linux/ptp_classify.h | 118 ++ 1 files changed, 118 insertions(+), 0 deletions(-) create mode 100644 include/linux/ptp_classify.h diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h new

[PATCH 07/12] phylib: support the National Semiconductor DP83640 PHY.

2010-06-15 Thread Richard Cochran
This patch adds a driver for the DP83640. This device is one of a new generation of PHYs able to time stamp PTP packets. Signed-off-by: Richard Cochran --- drivers/net/phy/Kconfig |5 + drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 439

[PATCH 08/12] ptp: Added a brand new class driver for ptp clocks.

2010-06-15 Thread Richard Cochran
clock. Signed-off-by: Richard Cochran --- Documentation/ptp/ptp.txt| 95 +++ Documentation/ptp/testptp.c | 269 Documentation/ptp/testptp.mk | 33 +++ drivers/Kconfig |2 + drivers/Makefile |1 + drivers/ptp

[PATCH 09/12] ptp: Added a clock that uses the Linux system time.

2010-06-15 Thread Richard Cochran
This PTP clock simply uses the NTP time adjustment system calls. The driver can be used in systems that lack a special hardware PTP clock. Signed-off-by: Richard Cochran --- drivers/ptp/Kconfig | 12 drivers/ptp/Makefile|1 + drivers/ptp/ptp_linux.c | 136

[PATCH 10/12] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-06-15 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps and one alarm. Signed-off-by: Richard Cochran --- Documentation/powerpc/dts-bindings/fsl/tsec.txt | 54 +++ arch/powerpc/boot/dts

[PATCH 11/12] ptp: Added a clock driver for the IXP46x.

2010-06-15 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. Only the basic clock operations are implemented. Signed-off-by: Richard Cochran --- arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 67 +++ drivers/net/arm/ixp4xx_eth.c | 194

[PATCH 12/12] ptp: Added a clock driver for the National Semiconductor PHYTER.

2010-06-15 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. Only the basic clock operations have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Kconfig | 11 +++ drivers/net/phy/dp83640.c | 158 - 2 files changed, 168

Re: [PATCH 03/12] phylib: add a driver method for the SIOCSHWTSTAMP ioctl.

2010-06-15 Thread Richard Cochran
On Tue, Jun 15, 2010 at 10:27:59AM -0600, Grant Likely wrote: > On Tue, Jun 15, 2010 at 10:08 AM, Richard Cochran > wrote: > > This patch adds a phy driver method for configuring hardware time stamping. > > Drivers may optionally implement this function. > > > >

Re: [PATCH 05/12] phylib: Allow reading and writing a mii bus from atomic context.

2010-06-15 Thread Richard Cochran
On Tue, Jun 15, 2010 at 10:43:08AM -0600, Grant Likely wrote: > On Tue, Jun 15, 2010 at 10:08 AM, Richard Cochran > wrote: > > In order to support hardware time stamping from a PHY, it is necessary to > > read from the PHY while running in_interrupt(). This patch allows a mii

Re: [PATCH 04/12] phylib: add a way to make PHY time stamps possible.

2010-06-15 Thread Richard Cochran
On Tue, Jun 15, 2010 at 10:33:51AM -0600, Grant Likely wrote: > > +config NETWORK_PHY_TIMESTAMPING > Some overhead? At a brief glance of the series it looks like it could > add a lot of overhead, but I'm not fully clear on what the full > process is. Can you describe how the hardware timestamping

Re: [PATCH 05/12] phylib: Allow reading and writing a mii bus from atomic context.

2010-06-15 Thread Richard Cochran
> That's right, and I fully agree with that change. To me, going back > to allowing spin locks is a regression because it adds a new source of > scheduling latency. I think that the change was not about reducing scheduling latency. Rather, the idea was simply to allow mdio bus drivers that sleep.

Re: [PATCH 04/12] phylib: add a way to make PHY time stamps possible.

2010-06-15 Thread Richard Cochran
On Tue, Jun 15, 2010 at 06:08:20PM +0200, Richard Cochran wrote: > +static inline void skb_tx_timetamp(struct phy_device *phy, struct sk_buff > *skb) > +{ > + union skb_shared_tx *shtx = skb_tx(skb); > + > + if (shtx->hardware && phy && phy->

Re: [PATCH 10/12] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-06-15 Thread Richard Cochran
On Tue, Jun 15, 2010 at 11:20:41AM -0600, Grant Likely wrote: > > Is this header file used by anything other than gianfar_ptp.c? If > not, then roll the two files together. I anticipate that it might be necessary to share the header's contents with gianfar.c one day. > Use dash ('-') not unders

  1   2   >