Re: [PATCH 2/3] [POWERPC] fsl_soc: add support for gianfar for fixed-link property

2007-11-27 Thread Joakim Tjernlund
On Tue, 2007-11-27 at 14:39 +0300, Anton Vorontsov wrote: > On Mon, Nov 26, 2007 at 04:04:08PM +0100, Joakim Tjernlund wrote: > > On Mon, 2007-11-26 at 17:29 +0300, Vitaly Bordug wrote: > > > fixed-link says: register new "Fixed/emulated PHY", i.e. PHY that > >

Re: [PATCH 2/3] [POWERPC] fsl_soc: add support for gianfar for fixed-link property

2007-11-27 Thread Joakim Tjernlund
On Tue, 2007-11-27 at 16:59 +0300, Anton Vorontsov wrote: > On Tue, Nov 27, 2007 at 02:17:11PM +0100, Joakim Tjernlund wrote: > > > > On Tue, 2007-11-27 at 14:39 +0300, Anton Vorontsov wrote: > > > On Mon, Nov 26, 2007 at 04:04:08PM +0100, Joakim Tjernlund wrote: > >

RE: [PATCH 1/3] [NET] phy/fixed.c: rework to not duplicate PHYlayer functionality

2007-12-02 Thread Joakim Tjernlund
[SNIP] > ^^ the correct solution is to implement arch_initcall function > which will create fixed PHYs, and then leave only > snprintf(fpi->bus_id, 16, PHY_ID_FMT, 0, *data); part in the > fs_enet's find_phy(). > > Try add something like this to the fsl_soc.c (compile untested): > > - - - - > sta

ucc_geth 10 Mbit/s locks up CPU even though NAPI is enabled

2007-12-06 Thread Joakim Tjernlund
Injecting a 10 MBit/s stream with 64 bytes pkgs locks up my MPC832x CPU even though I got NAPI enabled. Kernel 2.6.23 Any ideas? Jocke ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] fsl_spi devices should use mode "cpu" or "qe"

2007-10-03 Thread Joakim Tjernlund
On Wed, 2007-10-03 at 10:51 -0500, Kumar Gala wrote: > On Oct 3, 2007, at 10:43 AM, Peter Korsgaard wrote: > > > According to booting-without-of.txt, fsl_spi mode should be either > > "cpu" or "qe", not "cpu-qe". > > > > Signed-off-by: Peter Korsgaard <[EMAIL PROTECTED]> > > I think we should upd

RE: [PATCH] Freescale QUICC Engine USB Host Controller

2008-03-11 Thread Joakim Tjernlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:linuxppc-dev- > [EMAIL PROTECTED] On Behalf Of Anton Vorontsov > Sent: den 11 mars 2008 20:18 > To: [EMAIL PROTECTED]; linuxppc-dev@ozlabs.org > Subject: [PATCH] Freescale QUICC Engine USB Host Controller > > This is patch adds support

Re: [PATCH] [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus

2008-03-17 Thread Joakim Tjernlund
On Mon, 2008-03-17 at 20:52 +0300, Anton Vorontsov wrote: > MDIO-less PHYs should use CONFIG_FIXED_PHY driver and appropriate > fixed-link property in the device tree. > > If not, ethernet will not work: > e0024520:03 not found > eth1: Could not attach to PHY > IP-Config: Failed to open eth

Re: [PATCH] [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus

2008-03-17 Thread Joakim Tjernlund
On Mon, 2008-03-17 at 16:46 -0500, Timur Tabi wrote: > Joakim Tjernlund wrote: > > > Trying to add fixed-link support for ucc_geth as this is broken too. I > > noticed that ifconfig eth1 up follwed by ifconfig eth1 down hangs > > my board once I got the ucc_geth driver

Re: [PATCH] [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus

2008-03-17 Thread Joakim Tjernlund
On Mon, 2008-03-17 at 16:46 -0500, Timur Tabi wrote: > Joakim Tjernlund wrote: > > > Trying to add fixed-link support for ucc_geth as this is broken too. I > > noticed that ifconfig eth1 up follwed by ifconfig eth1 down hangs > > my board once I got the ucc_geth driver

Re: [PATCH] [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus

2008-03-17 Thread Joakim Tjernlund
On Mon, 2008-03-17 at 18:08 -0500, Timur Tabi wrote: > Joakim Tjernlund wrote: > > > eth0 is also up, was it commit 4942bd80e83d13bf394df4a8109bee39d861820f > > that fixed that bug? > > Yep. Unfortunately, I don't really know enough about the ucc_geth driver to &

Re: [PATCH] [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus

2008-03-18 Thread Joakim Tjernlund
On Mon, 2008-03-17 at 18:08 -0500, Timur Tabi wrote: > Joakim Tjernlund wrote: > > > eth0 is also up, was it commit 4942bd80e83d13bf394df4a8109bee39d861820f > > that fixed that bug? > > Yep. Unfortunately, I don't really know enough about the ucc_geth driver to &

Re: [PATCH] [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus

2008-03-18 Thread Joakim Tjernlund
On Tue, 2008-03-18 at 09:32 -0500, Timur Tabi wrote: > Joakim Tjernlund wrote: > > > Found it, the eth1 i/f on this board isn't working and does not generate > > any clocks which makes ugeth_graceful_stop_tx() hang forever. > > Well, that doesn't make it

Re: [PATCH] mpc83xx SPI glitch

2008-03-31 Thread Joakim Tjernlund
Mike I already sent a patch some time ago, it addresses this bug and alot more. See spi-devel-general <[EMAIL PROTECTED]>, I am waiting for David B. to comment/apply it. If you want to see this in 2.6.25 I suggest you remind 'David Brownell' <[EMAIL PROTECTED]> Jocke On Mon, 2008-03-31 at 08:04

Quick patch for ucc_geth, add copybreak and move TX processing to soft IRQ

2008-04-02 Thread Joakim Tjernlund
This is a quick hack to make ucc_geth handle a ping -f -l 10 gracefully. Without it, the CPU will lockup during the ping flood. I don't have time ATM to clean it up, but if anyone wants to he is welcome :) Commenst on the geleral approach is wanted though, why do I need to move TX processing to so

Signal backtrace function

2008-04-09 Thread Joakim Tjernlund
Hi I made my own backtrace function for printing a trace from within a signal handler. Maybe it can be useful for the kernel too? General comments welcome. Jocke #include #include #include #include #define __USE_GNU #include /* This is the stack layout we see with every stack frame.

Re: [PATCH 1/5] phylib: don't create a phydev for ID-less PHYs.

2008-04-11 Thread Joakim Tjernlund
On Thu, 2008-04-10 at 13:51 -0400, Paul Gortmaker wrote: > I've tested on 8360, 8540 and 8641D and in all cases, the PHY > ID returned for bus addr 0x1f is all zeros, and not all 0xf. > This means we've been allocating a phydev for this "ghost". > > In addition to marking 0x0 as an invalid PHY ID

Re: [PATCH 1/5] phylib: don't create a phydev for ID-less PHYs.

2008-04-11 Thread Joakim Tjernlund
On Fri, 2008-04-11 at 10:06 +0200, Stefan Roese wrote: > On Friday 11 April 2008, Joakim Tjernlund wrote: > > On Thu, 2008-04-10 at 13:51 -0400, Paul Gortmaker wrote: > > > In addition to marking 0x0 as an invalid PHY ID, I've also > > > changed the existing som

Re: Signal backtrace function

2008-04-14 Thread Joakim Tjernlund
On Mon, 2008-04-14 at 18:09 +0200, Detlev Zundel wrote: > Hi Jocke, > > > I made my own backtrace function for printing > > a trace from within a signal handler. Maybe it > > can be useful for the kernel too? General > > comments welcome. > > Probably a dumb question, but doesn't backtrace(3) fr

RE: lseek() on entries in /proc/device-tree returns EINVAL

2008-04-16 Thread Joakim Tjernlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:linuxppc-dev- > [EMAIL PROTECTED] On Behalf Of Timur Tabi > Sent: den 16 april 2008 22:58 > To: linuxppc-dev@ozlabs.org > Subject: lseek() on entries in /proc/device-tree returns EINVAL > > I'm writing a utility that parses the device

RE: lseek() on entries in /proc/device-tree returns EINVAL

2008-04-16 Thread Joakim Tjernlund
> -Original Message- > From: Timur Tabi [mailto:[EMAIL PROTECTED] > Sent: den 16 april 2008 23:11 > To: Joakim Tjernlund > Cc: linuxppc-dev@ozlabs.org > Subject: Re: lseek() on entries in /proc/device-tree returns EINVAL > > Joakim Tjernlund wrote: > > &

RE: lseek() on entries in /proc/device-tree returns EINVAL

2008-04-16 Thread Joakim Tjernlund
> -Original Message- > From: Timur Tabi [mailto:[EMAIL PROTECTED] > Sent: den 16 april 2008 23:16 > To: Joakim Tjernlund > Cc: linuxppc-dev@ozlabs.org > Subject: Re: lseek() on entries in /proc/device-tree returns EINVAL > > Joakim Tjernlund wrote: > > >

RE: [PATCH 1/2] spi_mpc83xx: test below 0 on unsigned irq in mpc83xx_spi_probe()

2008-04-23 Thread Joakim Tjernlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:linuxppc-dev- > [EMAIL PROTECTED] On Behalf Of Roel Kluin > Sent: den 23 april 2008 22:55 > To: [EMAIL PROTECTED]; linuxppc-dev@ozlabs.org > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; lkml > Subject: [PATCH 1/2] spi_mpc83xx: test below 0

RE: [PATCH 1/2] spi_mpc83xx: test below 0 on unsigned irq in mpc83xx_spi_probe()

2008-04-25 Thread Joakim Tjernlund
On Wed, 2008-04-23 at 23:55 +0200, Joakim Tjernlund wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:linuxppc-dev- > > [EMAIL PROTECTED] On Behalf Of Roel Kluin > > Sent: den 23 april 2008 22:55 > > To: [EMAIL PROTECTED]; linuxppc-dev@ozlab

HR timers on PowerPC 83xx

2008-04-25 Thread Joakim Tjernlund
Trying to understand what is needed to make nanosleep() and friends to have better resolution than HZ on my 83xx CPU. Is this possible and what CONFIG options do I need to enable? Kernel is 2.6.25 Jocke ___ Linuxppc-dev mailing list Linuxppc-dev@ozlab

Re: HR timers on PowerPC 83xx

2008-04-25 Thread Joakim Tjernlund
On Fri, 2008-04-25 at 18:18 +0400, Sergei Shtylyov wrote: > Hello. > > Joakim Tjernlund wrote: > > > Trying to understand what is needed to make nanosleep() and friends to > > have better resolution than HZ on my 83xx CPU. Is this possible > > and what CONFIG optio

RE: HR timers on PowerPC 83xx

2008-04-25 Thread Joakim Tjernlund
> -Original Message- > From: Sergei Shtylyov [mailto:[EMAIL PROTECTED] > Sent: den 25 april 2008 18:00 > To: [EMAIL PROTECTED] > Cc: 'linuxppc-dev Development' > Subject: Re: HR timers on PowerPC 83xx > > Joakim Tjernlund wrote: > > >&g

Re: [PATCH] [POWERPC] mpc5200: Allow for fixed speed MII configurations

2008-04-30 Thread Joakim Tjernlund
On Tue, 2008-04-29 at 17:06 -0600, Grant Likely wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > Various improvements for configuring the MPC5200 MII link from the > device tree: > * Look for 'current-speed' property for fixed speed MII links Not that I have looked, but why can't you use the

Re: [PATCH] [POWERPC] mpc5200: Allow for fixed speed MII configurations

2008-04-30 Thread Joakim Tjernlund
On Wed, 2008-04-30 at 07:07 -0600, Grant Likely wrote: > On Wed, Apr 30, 2008 at 1:36 AM, Joakim Tjernlund > <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2008-04-29 at 17:06 -0600, Grant Likely wrote: > > > From: Grant Likely <[EMAIL PROTECTED]> > >

Re: [PATCH] [POWERPC] mpc5200: Allow for fixed speed MII configurations

2008-04-30 Thread Joakim Tjernlund
On Wed, 2008-04-30 at 07:26 -0600, Grant Likely wrote: > On Wed, Apr 30, 2008 at 7:10 AM, Joakim Tjernlund > <[EMAIL PROTECTED]> wrote: > > > > > > On Wed, 2008-04-30 at 07:07 -0600, Grant Likely wrote: > > > On Wed, Apr 30, 2008 at 1:36 AM, Joakim Tje

Re: [PATCH] [POWERPC] mpc5200: Allow for fixed speed MII configurations

2008-04-30 Thread Joakim Tjernlund
On Wed, 2008-04-30 at 08:28 -0600, Grant Likely wrote: > On Wed, Apr 30, 2008 at 8:16 AM, Joakim Tjernlund > <[EMAIL PROTECTED]> wrote: > > > > > > On Wed, 2008-04-30 at 07:26 -0600, Grant Likely wrote: > > > On Wed, Apr 30, 2008 at 7:10 AM, Joakim Tje

RE: [patch 2.6.25-git] spi_mpc83xx much improved driver

2008-05-01 Thread Joakim Tjernlund
> -Original Message- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: den 1 maj 2008 00:56 > To: Andrew Morton > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; linuxppc-dev@ozlabs.org; > [EMAIL PROTECTED] > Subject: Re: [patch 2.6.25-git] spi_mpc83xx much improved driver > > On Wednesda

Re: Efficient memcpy()/memmove() for G2/G3 cores...

2008-08-29 Thread Joakim Tjernlund
On Fri, 2008-08-29 at 13:48 +0200, David Jander wrote: > On Wednesday 27 August 2008 23:04:39 Steven Munroe wrote: > > On Tue, 2008-08-26 at 08:28 +1000, Benjamin Herrenschmidt wrote: > > > On Mon, 2008-08-25 at 15:06 +0200, David Jander wrote: > > > > Hi Matt, [SNIP] > I am not complaining. I wa

Re: Efficient memcpy()/memmove() for G2/G3 cores...

2008-09-01 Thread Joakim Tjernlund
On Mon, 2008-09-01 at 09:23 +0200, David Jander wrote: > On Friday 29 August 2008 14:20:33 Joakim Tjernlund wrote: > >[...] > > > The problem is: I have very little experience with powerpc assembly and > > > only very limited time to dedicate to this and I am lookin

Re: [PATCH] usb: add Freescale QE/CPM USB peripheral controller driver

2008-09-02 Thread Joakim Tjernlund
On Tue, 2008-09-02 at 15:35 +0800, Li Yang wrote: > On Tue, Sep 2, 2008 at 1:11 AM, Anton Vorontsov > <[EMAIL PROTECTED]> wrote: > > On Thu, Aug 28, 2008 at 05:43:33PM +0800, Li Yang wrote: > >> Some of Freescale SoC chips have a QE or CPM co-processor which > >> supports full speed USB. The drive

RE: [PATCH] usb: add Freescale QE/CPM USB peripheral controllerdriver

2008-09-02 Thread Joakim Tjernlund
On Tue, 2008-09-02 at 16:12 +0800, Li Yang-R58472 wrote: > > -Original Message- > > From: Joakim Tjernlund [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 02, 2008 3:57 PM > > To: Li Yang-R58472 > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > >

Re: Efficient memcpy()/memmove() for G2/G3 cores...

2008-09-02 Thread Joakim Tjernlund
On Tue, 2008-09-02 at 15:12 +0200, David Jander wrote: > I have made some astonishing discoveries, and I'd like to post the > used source-code somewhere in the meantime, any suggestions? To this list? Yes, mail it. I got a mpc8323/8321 board I want to try. > For the MPC5121e, 16-register strides

Re: IRQ2-4 number to use on mpc83xx?

2008-09-23 Thread Joakim Tjernlund
On Tue, 2008-09-23 at 11:08 +0200, Andre Schwarz wrote: > I can only tell how I do on MPC834x : > > Table 8-6. IVEC/CVEC/MVEC Field Definition > > Interrupt ID Number Interrupt Meaning > 17 IRQ1 > 18 IRQ2

Re: IRQ2-4 number to use on mpc83xx?

2008-09-23 Thread Joakim Tjernlund
On Tue, 2008-09-23 at 13:08 +0200, Joakim Tjernlund wrote: > On Tue, 2008-09-23 at 11:08 +0200, Andre Schwarz wrote: > > I can only tell how I do on MPC834x : > > > > Table 8-6. IVEC/CVEC/MVEC Field Definition > > > > Interrupt ID Number

Re: IRQ2-4 number to use on mpc83xx?

2008-09-24 Thread Joakim Tjernlund
On Tue, 2008-09-23 at 22:18 +0200, Joakim Tjernlund wrote: > On Tue, 2008-09-23 at 13:08 +0200, Joakim Tjernlund wrote: > > On Tue, 2008-09-23 at 11:08 +0200, Andre Schwarz wrote: > > > I can only tell how I do on MPC834x : > > > > > > Table

RE: [PATCH] usb: add Freescale QE/CPM USB peripheral controllerdriver

2008-09-24 Thread Joakim Tjernlund
nuxppc-dev@ozlabs.org > Subject: Re: [PATCH] usb: add Freescale QE/CPM USB peripheral controllerdriver > > On Tuesday 02 September 2008, Joakim Tjernlund wrote: > > > > > Noted:  AFAIK, RNDIS gadget in Linux doesn't interoperate with windows > > > well enough to be pro

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-13 Thread Joakim Tjernlund
On Mon, 2008-10-13 at 14:01 +0200, Joakim Tjernlund wrote: > So I upgraded my tree for our custom mpc8321 boards. > I2c and ethernet stopped working. > > Ethernet: I am using the ucc_geth driver and now > it seems like it won't TX any pkgs. > ethtool -S eth0 shows

MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-13 Thread Joakim Tjernlund
So I upgraded my tree for our custom mpc8321 boards. I2c and ethernet stopped working. Ethernet: I am using the ucc_geth driver and now it seems like it won't TX any pkgs. ethtool -S eth0 shows that the RX countes are increasing but the TX ones stays a zero. Secondly i2c, I have this in my plat

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-13 Thread Joakim Tjernlund
On Mon, 2008-10-13 at 11:31 -0500, Scott Wood wrote: > On Mon, Oct 13, 2008 at 02:01:55PM +0200, Joakim Tjernlund wrote: > > Secondly i2c, I have this in my platform driver: > > static struct i2c_board_info __initdata tmcu_i2c_devices[] = { > > { I2C_BOARD_IN

RE: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-13 Thread Joakim Tjernlund
> -Original Message- > From: Scott Wood [mailto:[EMAIL PROTECTED] > Sent: den 13 oktober 2008 20:31 > To: [EMAIL PROTECTED] > Cc: 'linuxppc-dev Development' > Subject: Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to > 2.6.27 > &g

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-14 Thread Joakim Tjernlund
On Mon, 2008-10-13 at 14:03 -0500, Scott Wood wrote: > Joakim Tjernlund wrote: > > Because all the kernel comments I can see still implies that this should > > work > > Which kernel comments? The one already mentioned and in i2c-boardinfo.c > > > and because th

Re: MPC8321, ethernet and i2c problems after upgrade from 2.6.25 to 2.6.27

2008-10-14 Thread Joakim Tjernlund
On Tue, 2008-10-14 at 10:27 -0500, Scott Wood wrote: > On Tue, Oct 14, 2008 at 09:55:31AM +0200, Joakim Tjernlund wrote: > > On Mon, 2008-10-13 at 14:03 -0500, Scott Wood wrote: > > > Joakim Tjernlund wrote: > > > > Because all the kernel comments I can see still imp

times(2) sys call bug?

2008-11-20 Thread Joakim Tjernlund
Why does the below program end up reporting -1 multiple seconds when times() wrap: #include #include main() { unsigned long t1; clock_t t2; while(1){ t1 = times(NULL); t2 = times(NULL); sleep(1); printf("uns

Re: times(2) sys call bug?

2008-11-20 Thread Joakim Tjernlund
On Thu, 2008-11-20 at 10:37 -0500, Josh Boyer wrote: > On Thu, 20 Nov 2008 16:09:16 +0100 > "Joakim Tjernlund" <[EMAIL PROTECTED]> wrote: > > > Why does the below program end up reporting -1 > > multiple seconds when times() wrap: > > http://sourc

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:52 +1100, Paul Mackerras wrote: > Joakim Tjernlund writes: > > > This little hack changes the kernel sys call handling in an crude > > way and then it works. Apperently the kernel thinks is an error if the > > syscall returns a value between -_LAS

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 09:41 +0100, Gabriel Paubert wrote: > On Fri, Nov 21, 2008 at 10:52:14AM +1100, Paul Mackerras wrote: > > Joakim Tjernlund writes: > > > > > This little hack changes the kernel sys call handling in an crude > > > way and then it works. A

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 20:03 +1100, Paul Mackerras wrote: > Gabriel Paubert writes: > > > On Fri, Nov 21, 2008 at 10:52:14AM +1100, Paul Mackerras wrote: > > > Joakim Tjernlund writes: > > > > > > > This little hack changes the kernel sys call handling

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:52 +1100, Paul Mackerras wrote: > Joakim Tjernlund writes: > > > This little hack changes the kernel sys call handling in an crude > > way and then it works. Apperently the kernel thinks is an error if the > > syscall returns a value between -_LAS

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:31 +0100, Joakim Tjernlund wrote: > On Fri, 2008-11-21 at 10:52 +1100, Paul Mackerras wrote: > > Joakim Tjernlund writes: > > > > > This little hack changes the kernel sys call handling in an crude > > > way and then it works. Apperently

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 20:51 +1100, Paul Mackerras wrote: > Joakim Tjernlund writes: > > > > + force_successful_syscall_return(); > > > return (long) jiffies_64_to_clock_t(get_jiffies_64()); > > > > Why is 64 bits ops used here when you o

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:50 +0100, Gabriel Paubert wrote: > On Fri, Nov 21, 2008 at 08:03:06PM +1100, Paul Mackerras wrote: > > Gabriel Paubert writes: > > > > > On Fri, Nov 21, 2008 at 10:52:14AM +1100, Paul Mackerras wrote: > > > > Joakim Tjernlund writes:

Re: Erratic MPC8248 CPM2 I2C behaviour

2008-12-02 Thread Joakim Tjernlund
On Tue, 2008-12-02 at 11:50 +0100, Laurent Pinchart wrote: > Hi Joakim, > > On Tuesday 02 December 2008 09:39:59 Joakim Tjernlund wrote: > > On Mon, 2008-12-01 at 15:28 -0800, Mike Ditto wrote: > > > Laurent Pinchart <[EMAIL PROTECTED]> wrote: > > > >

Re: Erratic MPC8248 CPM2 I2C behaviour

2008-12-02 Thread Joakim Tjernlund
On Mon, 2008-12-01 at 15:28 -0800, Mike Ditto wrote: > Laurent Pinchart <[EMAIL PROTECTED]> wrote: > > Transmission timeout after one second. The first TX buffer descriptor > > status > > hasn't been modified by the CPM. The CPM state dump shows that processing > > of > ... > > This sounds ver

[PATCH] ucc_geth.c, make PHY device optional.

2007-06-29 Thread Joakim Tjernlund
This patch makes the PHY optional for ucc_geth.c ethernet driver. This is useful to support a direct mii to mii connection to, for example, a onboard swicth. Signed-off-by: Joakim Tjernlund <[EMAIL PROTECTED]> diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 3

[PATCH] ucc_geth.c, make PHY device optional.

2007-07-02 Thread Joakim Tjernlund
> This patch makes the PHY optional for ucc_geth.c ethernet driver. > This is useful to support a direct mii to mii connection to, for example, > a onboard swicth. > > Signed-off-by: Joakim Tjernlund <[EMAIL PROTECTED]> [SNIP patch sent last Friday] Since this i

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-03 Thread Joakim Tjernlund
On Tue, 2007-07-03 at 11:42 +0800, Li Yang-r58472 wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > > Behalf Of Joakim Tjernlund > > Sent: Tuesday, July 03, 2007 8:52 AM > > To: 'linuxppc-dev Development&

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-03 Thread Joakim Tjernlund
On Tue, 2007-07-03 at 16:22 +0800, Li Yang-r58472 wrote: > > -Original Message- > > From: Joakim Tjernlund [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 03, 2007 3:21 PM > > To: Li Yang-r58472 > > Cc: linuxppc-dev Development; Netdev; Fleming Andy-af

RE: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-04 Thread Joakim Tjernlund
On Tue, 2007-07-03 at 19:38 +0800, Li Yang-r58472 wrote: > > -Original Message- > > From: Joakim Tjernlund [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 03, 2007 7:20 PM > > To: Li Yang-r58472 > > Cc: linuxppc-dev Development; Netdev; Fleming Andy-af

Re: [PATCH] ucc_geth.c, make PHY device optional.

2007-07-04 Thread Joakim Tjernlund
On Wed, 2007-07-04 at 15:32 +0200, Segher Boessenkool wrote: > > How about separate autoneg to a property "dumb-phy", which > > indicates the > > PHY/switch doesn't provide MII register interface. > > Something like that I suppose. But don't call it "dumb phy", > nor "fake phy", nor anything si

RE: [RFC][PATCH] MPC832x_RDB: update dts to use spi, registermmc_spi stub

2007-07-26 Thread Joakim Tjernlund
> -Original Message- > From: Anton Vorontsov [mailto:[EMAIL PROTECTED] > Sent: den 26 juli 2007 17:48 > To: Joakim Tjernlund > Cc: linuxppc-dev@ozlabs.org > Subject: Re: [RFC][PATCH] MPC832x_RDB: update dts to use spi, > registermmc_spi stub > > On Thu,

RE: [RFC][PATCH] MPC832x_RDB: update dts to use spi, register mmc_spi stub

2007-07-26 Thread Joakim Tjernlund
> -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > abs.org] On Behalf Of Anton Vorontsov > Sent: den 26 juli 2007 15:58 > To: linuxppc-dev@ozlabs.org > Subject: [RFC][PATCH] MPC832x_RDB: update dts to use spi, > register mmc_spi stub > > mmc_spi already te

Re: [PATCH v2 2/3] powerpc/fsl: set fsl, i2c-erratum-a004447 flag for P2041 i2c controllers

2021-05-07 Thread Joakim Tjernlund
On Fri, 2021-05-07 at 12:40 +1200, Chris Packham wrote: > The i2c controllers on the P2040/P2041 have an erratum where the > documented scheme for i2c bus recovery will not work (A-004447). A > different mechanism is needed which is documented in the P2040 Chip > Errata Rev Q (latest available at t

Re: [PATCH v2 2/3] powerpc/fsl: set fsl, i2c-erratum-a004447 flag for P2041 i2c controllers

2021-05-07 Thread Joakim Tjernlund
On Fri, 2021-05-07 at 10:04 +0200, Joakim Tjernlund wrote: > On Fri, 2021-05-07 at 12:40 +1200, Chris Packham wrote: > > The i2c controllers on the P2040/P2041 have an erratum where the > > documented scheme for i2c bus recovery will not work (A-004447). A > > different mech

Re: [PATCH v2 3/3] i2c: mpc: implement erratum A-004447 workaround

2021-05-07 Thread Joakim Tjernlund
On Fri, 2021-05-07 at 14:46 +0300, Andy Shevchenko wrote: > On Fri, May 7, 2021 at 3:40 AM Chris Packham > wrote: > > > > The P2040/P2041 has an erratum where the normal i2c recovery mechanism > > does not work. Implement the alternative recovery mechanism documented > > in the P2040 Chip Errata

Re: [PATCH v3 0/4] P2040/P2041 i2c recovery erratum

2021-05-11 Thread Joakim Tjernlund
On Wed, 2021-05-12 at 09:20 +1200, Chris Packham wrote: > The P2040/P2041 has an erratum where the i2c recovery scheme > documented in the reference manual (and currently implemented > in the i2c-mpc.c driver) does not work. The errata document > provides an alternative that does work. This series

Re: [PATCH v3 0/4] P2040/P2041 i2c recovery erratum

2021-05-12 Thread Joakim Tjernlund
On Wed, 2021-05-12 at 01:48 +, Chris Packham wrote: > On 12/05/21 10:10 am, Joakim Tjernlund wrote: > > On Wed, 2021-05-12 at 09:20 +1200, Chris Packham wrote: > > > The P2040/P2041 has an erratum where the i2c recovery scheme > > > documented in the reference manual

Re: Linux powerpc new system call instruction and ABI

2021-05-19 Thread Joakim Tjernlund
On Wed, 2021-05-19 at 02:13 +0300, Dmitry V. Levin wrote: > Hi, > > On Thu, Jun 11, 2020 at 06:12:01PM +1000, Nicholas Piggin wrote: > [...] > > - Error handling: The consensus among kernel, glibc, and musl is to move to > >   using negative return values in r3 rather than CR0[SO]=1 to indicate >

Re: Linux powerpc new system call instruction and ABI

2021-05-19 Thread Joakim Tjernlund
On Wed, 2021-05-19 at 17:55 +1000, Nicholas Piggin wrote: > Excerpts from Joakim Tjernlund's message of May 19, 2021 5:33 pm: > > On Wed, 2021-05-19 at 02:13 +0300, Dmitry V. Levin wrote: > > > Hi, > > > > > > On Thu, Jun 11, 2020 at 06:12:01PM +1000, Nicholas Piggin wrote: > > > [...] > > > > - E

Re: Linux powerpc new system call instruction and ABI

2021-05-19 Thread Joakim Tjernlund
On Wed, 2021-05-19 at 09:38 -0500, Segher Boessenkool wrote: > On Wed, May 19, 2021 at 06:42:40PM +1000, Nicholas Piggin wrote: > > Excerpts from Joakim Tjernlund's message of May 19, 2021 6:08 pm: > > > I always figured the ppc way was superior. It begs the question if not > > > the other archs s

Re: Linux powerpc new system call instruction and ABI

2021-05-19 Thread Joakim Tjernlund
On Wed, 2021-05-19 at 10:22 -0500, Segher Boessenkool wrote: > On Wed, May 19, 2021 at 03:06:49PM +0000, Joakim Tjernlund wrote: > > On Wed, 2021-05-19 at 09:38 -0500, Segher Boessenkool wrote: > > > On Wed, May 19, 2021 at 06:42:40PM +1000, Nicholas Piggin wrote: > >

Re: [PATCH] usb: gadget: fsl: Fix unsigned expression compared with zero in fsl_udc_probe

2020-08-24 Thread Joakim Tjernlund
On Mon, 2020-08-24 at 10:21 +0200, Greg KH wrote: > > On Mon, Aug 24, 2020 at 04:04:37PM +0800, Ye Bin wrote: > > Signed-off-by: Ye Bin > > I can't take patches without any changelog text, sorry. Still taking patches for fsl_udc_core.c ? I figured this driver was obsolete and should be moved to

Re: [PATCH] usb: gadget: fsl: Fix unsigned expression compared with zero in fsl_udc_probe

2020-08-24 Thread Joakim Tjernlund
On Mon, 2020-08-24 at 16:58 +0300, Felipe Balbi wrote: > Joakim Tjernlund writes: > > > On Mon, 2020-08-24 at 10:21 +0200, Greg KH wrote: > > > > > > On Mon, Aug 24, 2020 at 04:04:37PM +0800, Ye Bin wrote: > > > > Signed-off-by: Ye Bin > > >

Re: [PATCH] usb: gadget: fsl: Fix unsigned expression compared with zero in fsl_udc_probe

2020-08-25 Thread Joakim Tjernlund
On Tue, 2020-08-25 at 11:53 +0300, Felipe Balbi wrote: Joakim Tjernlund mailto:joakim.tjernl...@infinera.com>> writes: > On Mon, 2020-08-24 at 16:58 +0300, Felipe Balbi wrote: >> Joakim Tjernlund >> mailto:joakim.tjernl...@infinera.com>> writes: >> >> &g

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-10-30 Thread Joakim Tjernlund
to a while ago. Found the bug and a few more fixes. This is against 4.19 so you may have to tweak them a bit. Feel free to upstream them. Jocke From a7ed9cffbfc90371b570ebef698d96c39adbaf77 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Mon, 11 May 2020 11:18:14 +0200 Subject: [PATCH 5/5] fsl_udc_core: Ini

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-11-02 Thread Joakim Tjernlund
On Sat, 2021-10-30 at 14:20 +, Joakim Tjernlund wrote: > On Fri, 2021-10-29 at 17:14 +, Eugene Bordenkircher wrote: > > Hello all, > > > > We've discovered a situation where the FSL udc driver > > (drivers/usb/gadget/udc/fsl_udc_core.c) will enter a loop

Re: [PATCH 01/20] ethernet: ucc_geth: set dev->max_mtu to 1518

2021-01-05 Thread Joakim Tjernlund
On Thu, 2020-12-10 at 02:25 +0100, Andrew Lunn wrote: > On Sat, Dec 05, 2020 at 08:17:24PM +0100, Rasmus Villemoes wrote: > > All the buffers and registers are already set up appropriately for an > > MTU slightly above 1500, so we just need to expose this to the > > networking stack. AFAICT, there'

Re: [PATCH 01/20] ethernet: ucc_geth: set dev->max_mtu to 1518

2021-01-05 Thread Joakim Tjernlund
On Tue, 2021-01-05 at 15:33 +0100, Andrew Lunn wrote: > On Tue, Jan 05, 2021 at 02:17:42PM +0000, Joakim Tjernlund wrote: > > On Thu, 2020-12-10 at 02:25 +0100, Andrew Lunn wrote: > > > On Sat, Dec 05, 2020 at 08:17:24PM +0100, Rasmus Villemoes wrote: > > > > All

Memory: 880608K/983040K .... 36896K reserved ?

2020-07-01 Thread Joakim Tjernlund
I cannot figure out how the xxxK reserved item works in: Memory: 880608K/983040K available (9532K kernel code, 1104K rwdata, 3348K rodata, 1088K init, 1201K bss, 36896K reserved ... Is there a way to tune(lower it) this memory? Jocke

Re: [PATCH v2 9/9] dpaa_eth: fix SG frame cleanup

2019-04-27 Thread Joakim Tjernlund
On Sat, 2019-04-27 at 10:10 +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Fix issue with the entry indexing in the sg frame cleanup code being > off-by-1. This problem showed up when doing some basic iperf tests and > manifested in traffic coming to a halt. > > Signed-off-by:

Re: [PATCH v2 4/6] dt-bindings: soc/fsl: qe: document new fsl,qe-snums binding

2019-05-01 Thread Joakim Tjernlund
On Wed, 2019-05-01 at 09:29 +, Rasmus Villemoes wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Reading table 4-30, and its footnotes, of the QUICC Engine

Re: [PATCH v2 9/9] dpaa_eth: fix SG frame cleanup

2019-05-02 Thread Joakim Tjernlund
On Thu, 2019-05-02 at 09:05 +, Laurentiu Tudor wrote: > Hi Joakim, > > > -Original Message- > > From: Joakim Tjernlund > > Sent: Saturday, April 27, 2019 8:11 PM > > > > On Sat, 2019-04-27 at 10:10 +0300, laurentiu.tu...@nxp.com wrote: > >

Re: [PATCH v2 9/9] dpaa_eth: fix SG frame cleanup

2019-05-02 Thread Joakim Tjernlund
On Thu, 2019-05-02 at 12:58 +, Laurentiu Tudor wrote: > > > -Original Message- > > From: Joakim Tjernlund > > Sent: Thursday, May 2, 2019 1:37 PM > > > > On Thu, 2019-05-02 at 09:05 +, Laurentiu Tudor wrote: > > > Hi Joakim, > > &g

Re: [PATCH v3 4/6] dt-bindings: soc/fsl: qe: document new fsl,qe-snums binding

2019-05-13 Thread Joakim Tjernlund
On Mon, 2019-05-13 at 11:14 +, Rasmus Villemoes wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Reading table 4-30, and its footnotes, of the QUICC Engine

Re: [PATCH v1 4/8] soc/fsl/qbman: Use index when accessing device tree properties

2019-05-13 Thread Joakim Tjernlund
On Mon, 2019-05-13 at 16:09 +, Roy Pledge wrote: > > The index value should be passed to the of_parse_phandle() > function to ensure the correct property is read. Is this a bug fix? Maybe for stable too? Jocke > > Signed-off-by: Roy Pledge > --- > drivers/soc/fsl/qbman/dpaa_sys.c | 2 +-

Re: [PATCH v1 4/8] soc/fsl/qbman: Use index when accessing device tree properties

2019-05-13 Thread Joakim Tjernlund
On Mon, 2019-05-13 at 17:40 +, Roy Pledge wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > On 5/13/2019 12:40 PM, Joakim Tjernlund wrote

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-11-30 Thread Joakim Tjernlund
nks for the confirmation. > > > > > I propose we move forward with the patchset. > > I think that we should proceed to merge the patchset but it seems to need > some cleanup for coding style issues and better description before submitted > formally. > > > > >

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-12-01 Thread Joakim Tjernlund
On Tue, 2021-11-30 at 12:56 +0100, Joakim Tjernlund wrote: > On Mon, 2021-11-29 at 23:48 +, Eugene Bordenkircher wrote: > > Agreed, > > > > We are happy pick up the torch on this, but I'd like to try and hear from > > Joakim first before we do. The patch set

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-12-02 Thread Joakim Tjernlund
On Thu, 2021-12-02 at 20:35 +, Leo Li wrote: > > > -Original Message- > > From: Joakim Tjernlund > > Sent: Wednesday, December 1, 2021 8:19 AM > > To: regressi...@leemhuis.info; Leo Li ; > > eugene_bordenkirc...@selinc.com; linux-...

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2022-02-18 Thread Joakim Tjernlund
I think you could apply them as is, only criticism was the commit msgs. Jocke From: Thorsten Leemhuis Sent: 18 February 2022 08:11 To: Leo Li; Joakim Tjernlund; eugene_bordenkirc...@selinc.com; linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2022-02-18 Thread Joakim Tjernlund
I was happy with commit msgs and I don't know what the criticism was. From: gre...@linuxfoundation.org Sent: 18 February 2022 11:39 To: Joakim Tjernlund Cc: Thorsten Leemhuis; Leo Li; eugene_bordenkirc...@selinc.com; linux-...@vger.kernel.org; lin

Re: Machine Check in P2010(e500v2)

2017-09-20 Thread Joakim Tjernlund
On Sat, 2017-09-09 at 14:45 +0200, Joakim Tjernlund wrote: > On Fri, 2017-09-08 at 22:27 +, Leo Li wrote: > > > -Original Message- > > > From: Joakim Tjernlund [mailto:joakim.tjernl...@infinera.com] > > > Sent: Friday, September 08, 2017 7:51 AM > >

irq 26: nobody cared, caused by mpc85xx_pci_isr on P2010 and T1042

2017-09-20 Thread Joakim Tjernlund
Some PCIe errors, don't know which(possibly by PCIe 4 in http://pdf1.solecsy.com/61/5af9fd2d-652c-4331-b49c-807c7c47f4f7.pdf) causes endless IRQ for EDAC's PCIe routine: [ 17.690716] irq 26: nobody cared (try booting with the "irqpoll" option) [ 17.697417] CPU: 0 PID: 0 Comm: swapper Not ta

FSL serial 166550 errata broken?

2017-09-25 Thread Joakim Tjernlund
We got some "broken" boards(mpx8321) where UART RX is held low(BREAK) There we get a few: serial8250: too much work for irq18 and the board freezes. Looking inte to driver/CPU there is an errtum(A-004737) w.r.t BREAK handling and I can see we are hitting the irq function fsl8250_handle_irq() add

Re: FSL serial 166550 errata broken?

2017-09-27 Thread Joakim Tjernlund
On Mon, 2017-09-25 at 17:26 +, York Sun wrote: > On 09/25/2017 09:55 AM, Joakim Tjernlund wrote: > > We got some "broken" boards(mpx8321) where UART RX is held low(BREAK) > > There we get a few: > >serial8250: too much work for irq18 > > and the bo

Re: [EXTERNAL]Re: FSL serial 166550 errata broken?

2017-09-28 Thread Joakim Tjernlund
On Wed, 2017-09-27 at 15:32 +, York Sun wrote: > On 09/27/2017 04:03 AM, Joakim Tjernlund wrote: > > On Mon, 2017-09-25 at 17:26 +, York Sun wrote: > > > On 09/25/2017 09:55 AM, Joakim Tjernlund wrote: > > > > We got some "broken" boards(

Re: [EXTERNAL]Re: FSL serial 166550 errata broken?

2017-09-28 Thread Joakim Tjernlund
On Thu, 2017-09-28 at 17:54 +0200, Joakim Tjernlund wrote: > On Wed, 2017-09-27 at 15:32 +, York Sun wrote: > > On 09/27/2017 04:03 AM, Joakim Tjernlund wrote: > > > On Mon, 2017-09-25 at 17:26 +, York Sun wrote: > > > > On 09/25/2017 09:55 AM, Joakim Tjernlun

<    2   3   4   5   6   7   8   >