[PATCH 03/04] Freescale Ethernet combined driver

2005-05-13 Thread Pantelis Antoniou
Hi Fix compile on 8xx FEC. Brown bag time. Regards Pantelis -- next part -- A non-text attachment was scrubbed... Name: fec-fix.patch Type: text/x-patch Size: 1296 bytes Desc: not available Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050513/c821a

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-12 Thread Pantelis Antoniou
Matt Porter wrote: > On Tue, May 10, 2005 at 04:14:51PM +0300, Pantelis Antoniou wrote: > >>Matt Porter wrote: >> >>>On Tue, May 10, 2005 at 08:13:48AM -0400, Dan Malek wrote: >>> >>> On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: >This patch replace iopa use with vir

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Pantelis Antoniou
Matt Porter wrote: > On Tue, May 10, 2005 at 04:14:51PM +0300, Pantelis Antoniou wrote: > >>Matt Porter wrote: >> >>>On Tue, May 10, 2005 at 08:13:48AM -0400, Dan Malek wrote: >>> >>> On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: >This patch replace iopa use with vir

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Pantelis Antoniou
Matt Porter wrote: > On Tue, May 10, 2005 at 08:13:48AM -0400, Dan Malek wrote: > >>On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: >> >> >>>This patch replace iopa use with virt_to_phys. >> >>Not gonna work . >> >>When you map uncached on 8xx you get a new vmalloc() >>space. The virt_t

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Pantelis Antoniou
Dan Malek wrote: > > On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: > >> This patch replace iopa use with virt_to_phys. > > > Not gonna work . > > When you map uncached on 8xx you get a new vmalloc() > space. The virt_to_xxx macros don't work on those addresses. > You need to use t

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Dan Malek
On May 10, 2005, at 10:53 AM, Rune Torgersen wrote: > For 8xx/82xx (and other PQ cpus) there is a lot of drivers liberally > using > __pa and __va to get physical and virtual adresses for structures and > buffer descriptor tables for the CPM. I changed nearly all of these in 2.4 when the DMA ass

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Pantelis Antoniou
Matt Porter wrote: > On Mon, May 09, 2005 at 02:45:03PM +0300, Pantelis Antoniou wrote: > >>Hi >> >>The following patch is a combined FCC/FEC ethernet driver >>for the Freescale line of PowerQUICCs. >> >>FECs on 8xx and FCCs on 82xx are supported. >> >>This part of the patch contains the mac drive

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Dan Malek
On May 10, 2005, at 9:14 AM, Pantelis Antoniou wrote: > What's the recommended function to call to go from a > virtual -> physical address, but without doing a cache > flush/invalidate? It doesn't have anything to do with cache flush/invalidate, it has to do with the way the memory is mapped to

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Rune Torgersen
> > What's the recommended function to call to go from a > > virtual -> physical address, but without doing a cache > > flush/invalidate? > > There is no generic function to do that in a driver since > no mainstream drivers in the kernel need to do it. Generally > you can rework the driver such

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Dan Malek
On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: > This patch replace iopa use with virt_to_phys. Not gonna work . When you map uncached on 8xx you get a new vmalloc() space. The virt_to_xxx macros don't work on those addresses. You need to use the dma_consistent() function, stash the

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Matt Porter
On Tue, May 10, 2005 at 04:14:51PM +0300, Pantelis Antoniou wrote: > Matt Porter wrote: > > On Tue, May 10, 2005 at 08:13:48AM -0400, Dan Malek wrote: > > > >>On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: > >> > >> > >>>This patch replace iopa use with virt_to_phys. > >> > >>Not gonna work

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-10 Thread Matt Porter
On Tue, May 10, 2005 at 08:13:48AM -0400, Dan Malek wrote: > > On May 10, 2005, at 7:17 AM, Pantelis Antoniou wrote: > > > This patch replace iopa use with virt_to_phys. > > Not gonna work . > > When you map uncached on 8xx you get a new vmalloc() > space. The virt_to_xxx macros don't work

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-09 Thread Pantelis Antoniou
Hi The following patch is a combined FCC/FEC ethernet driver for the Freescale line of PowerQUICCs. FECs on 8xx and FCCs on 82xx are supported. This part of the patch contains the mac drivers for FEC & FCC. Regards Pantelis Signed-off-by: Pantelis Antoniou -- next part --

[PATCH 03/04] Freescale Ethernet combined driver

2005-05-09 Thread Matt Porter
On Mon, May 09, 2005 at 02:45:03PM +0300, Pantelis Antoniou wrote: > Hi > > The following patch is a combined FCC/FEC ethernet driver > for the Freescale line of PowerQUICCs. > > FECs on 8xx and FCCs on 82xx are supported. > > This part of the patch contains the mac drivers > for FEC & FCC. As