* [PATCH 002/002] de2104x: support for systems lacking cache coherence
@ 2009-02-12 11:22 Risto Suominen
2009-02-13 3:25 ` Benjamin Herrenschmidt
2009-02-13 3:26 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 4+ messages in thread
From: Risto Suominen @ 2009-02-12 11:22 UTC (permalink / raw)
To: LinuxPPC-dev
[-- Attachment #1: Type: text/plain, Size: 871 bytes --]
Here is a patch that helped me to get my de2104x NIC working on my
PowerMac 5500. As an interesting side effect, it also made my mesh
module crash.
Background can be found here: http://www.spinics.net/lists/netdev/msg88488.html
Risto
Allow setting NOT_COHERENT_CACHE explicitly.
Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
---
The testing is done on kernel version 2.6.24.
--- a/arch/powerpc/platforms/powermac/Kconfig.org 2008-01-25
00:58:37.000000000 +0200
+++ b/arch/powerpc/platforms/powermac/Kconfig 2009-02-10
17:44:24.000000000 +0200
@@ -18,4 +18,10 @@ config PPC_PMAC64
select PPC_970_NAP
default y
-
+config NOT_COHERENT_CACHE
+ bool "Incoherent cache"
+ default n
+ help
+ Setting this option may be necessary for avoiding cache-related
+ problems with some network cards on some platforms. An example is
+ 2104x and PowerMac 5500.
[-- Attachment #2: incoherent_cache.patch --]
[-- Type: text/x-diff, Size: 635 bytes --]
Allow setting NOT_COHERENT_CACHE explicitly.
Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
---
The testing is done on kernel version 2.6.24.
--- a/arch/powerpc/platforms/powermac/Kconfig.org 2008-01-25 00:58:37.000000000 +0200
+++ b/arch/powerpc/platforms/powermac/Kconfig 2009-02-10 17:44:24.000000000 +0200
@@ -18,4 +18,10 @@ config PPC_PMAC64
select PPC_970_NAP
default y
-
+config NOT_COHERENT_CACHE
+ bool "Incoherent cache"
+ default n
+ help
+ Setting this option may be necessary for avoiding cache-related
+ problems with some network cards on some platforms. An example is
+ 2104x and PowerMac 5500.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 002/002] de2104x: support for systems lacking cache coherence
2009-02-12 11:22 [PATCH 002/002] de2104x: support for systems lacking cache coherence Risto Suominen
@ 2009-02-13 3:25 ` Benjamin Herrenschmidt
2009-02-13 3:26 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2009-02-13 3:25 UTC (permalink / raw)
To: Risto Suominen; +Cc: LinuxPPC-dev
On Thu, 2009-02-12 at 13:22 +0200, Risto Suominen wrote:
> Here is a patch that helped me to get my de2104x NIC working on my
> PowerMac 5500. As an interesting side effect, it also made my mesh
> module crash.
>
> Background can be found here: http://www.spinics.net/lists/netdev/msg88488.html
I'll catch up with the discussion in netdev, I think the workaround
should be in the driver... Or if not, we can do special dma-ops just for
that device.
Just to make sure I didn't miss something, please send me a tarball
of /proc/device-tree of your machine.
Cheers,
Ben.
> Risto
>
> Allow setting NOT_COHERENT_CACHE explicitly.
>
> Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
> ---
> The testing is done on kernel version 2.6.24.
>
> --- a/arch/powerpc/platforms/powermac/Kconfig.org 2008-01-25
> 00:58:37.000000000 +0200
> +++ b/arch/powerpc/platforms/powermac/Kconfig 2009-02-10
> 17:44:24.000000000 +0200
> @@ -18,4 +18,10 @@ config PPC_PMAC64
> select PPC_970_NAP
> default y
>
> -
> +config NOT_COHERENT_CACHE
> + bool "Incoherent cache"
> + default n
> + help
> + Setting this option may be necessary for avoiding cache-related
> + problems with some network cards on some platforms. An example is
> + 2104x and PowerMac 5500.
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 002/002] de2104x: support for systems lacking cache coherence
2009-02-12 11:22 [PATCH 002/002] de2104x: support for systems lacking cache coherence Risto Suominen
2009-02-13 3:25 ` Benjamin Herrenschmidt
@ 2009-02-13 3:26 ` Benjamin Herrenschmidt
2009-02-13 15:58 ` Risto Suominen
1 sibling, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2009-02-13 3:26 UTC (permalink / raw)
To: Risto Suominen; +Cc: LinuxPPC-dev
On Thu, 2009-02-12 at 13:22 +0200, Risto Suominen wrote:
> Here is a patch that helped me to get my de2104x NIC working on my
> PowerMac 5500. As an interesting side effect, it also made my mesh
> module crash.
Can you tell me more about the mesh crash ? Do you have a log ?
Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 002/002] de2104x: support for systems lacking cache coherence
2009-02-13 3:26 ` Benjamin Herrenschmidt
@ 2009-02-13 15:58 ` Risto Suominen
0 siblings, 0 replies; 4+ messages in thread
From: Risto Suominen @ 2009-02-13 15:58 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: LinuxPPC-dev
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
2009/2/13, Benjamin Herrenschmidt <benh@kernel.crashing.org>:
>
> Can you tell me more about the mesh crash ? Do you have a log ?
>
Please find attached the device-tree and a log of loading the mesh
module after the boot. This way it didn't crash, but did odd things:
all it should find, on the bus, is a cd-rom drive at 3. Now it finds
two LUNs that it interprets as disks.
Risto
[-- Attachment #2: pmac5500-device-tree-2.6.24.tar.gz --]
[-- Type: application/x-gzip, Size: 8457 bytes --]
[-- Attachment #3: pmac5500-dmesg-mesh-2.6.24.gz --]
[-- Type: application/x-gzip, Size: 763 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-13 15:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 11:22 [PATCH 002/002] de2104x: support for systems lacking cache coherence Risto Suominen
2009-02-13 3:25 ` Benjamin Herrenschmidt
2009-02-13 3:26 ` Benjamin Herrenschmidt
2009-02-13 15:58 ` Risto Suominen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).