* [PATCH 0/2] PowerPC: Fix MAL0 DTS entries for Bamboo and Sequoia.
@ 2007-09-18 17:25 Valentine Barshak
2007-09-18 17:27 ` [PATCH 1/2] PowerPC: Fix Bamboo MAL0 dts entry Valentine Barshak
2007-09-18 17:29 ` [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries Valentine Barshak
0 siblings, 2 replies; 8+ messages in thread
From: Valentine Barshak @ 2007-09-18 17:25 UTC (permalink / raw)
To: linuxppc-dev
A couple of minor fixes to correct MAL0 DTS entries for bamboo.dts and sequoia.dts.
Also correct MAL channel assignment for EMACs on Sequoia board.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] PowerPC: Fix Bamboo MAL0 dts entry.
2007-09-18 17:25 [PATCH 0/2] PowerPC: Fix MAL0 DTS entries for Bamboo and Sequoia Valentine Barshak
@ 2007-09-18 17:27 ` Valentine Barshak
2007-09-18 17:29 ` [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries Valentine Barshak
1 sibling, 0 replies; 8+ messages in thread
From: Valentine Barshak @ 2007-09-18 17:27 UTC (permalink / raw)
To: linuxppc-dev
According to PowerPC 440EP documentation,
MAL0 consists of 6 channels (4 transmit channels and 2 receive channels)
This patch fixes Bamboo DTS MAL0 "num-rx-chans" entry.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
---
arch/powerpc/boot/dts/bamboo.dts | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -ruN linux-2.6.orig/arch/powerpc/boot/dts/bamboo.dts linux-2.6/arch/powerpc/boot/dts/bamboo.dts
--- linux-2.6.orig/arch/powerpc/boot/dts/bamboo.dts 2007-09-18 15:32:18.000000000 +0400
+++ linux-2.6/arch/powerpc/boot/dts/bamboo.dts 2007-09-18 21:08:55.000000000 +0400
@@ -94,7 +94,7 @@
compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
dcr-reg = <180 62>;
num-tx-chans = <4>;
- num-rx-chans = <4>;
+ num-rx-chans = <2>;
interrupt-parent = <&MAL0>;
interrupts = <0 1 2 3 4>;
#interrupt-cells = <1>;
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries.
2007-09-18 17:25 [PATCH 0/2] PowerPC: Fix MAL0 DTS entries for Bamboo and Sequoia Valentine Barshak
2007-09-18 17:27 ` [PATCH 1/2] PowerPC: Fix Bamboo MAL0 dts entry Valentine Barshak
@ 2007-09-18 17:29 ` Valentine Barshak
2007-09-19 1:05 ` David Gibson
1 sibling, 1 reply; 8+ messages in thread
From: Valentine Barshak @ 2007-09-18 17:29 UTC (permalink / raw)
To: linuxppc-dev
According to PowerPC 440EPx documentation,
MAL0 is comprised of four channels (two transmit and two receive).
Each channel is dedicated to one of two EMAC cores.
This patch fixes Sequoia DTS MAL0 entry and EMAC entries,
assigning correct channel numbers to EMACs.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
---
arch/powerpc/boot/dts/sequoia.dts | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -ruN linux-2.6.orig/arch/powerpc/boot/dts/sequoia.dts linux-2.6/arch/powerpc/boot/dts/sequoia.dts
--- linux-2.6.orig/arch/powerpc/boot/dts/sequoia.dts 2007-09-18 15:32:18.000000000 +0400
+++ linux-2.6/arch/powerpc/boot/dts/sequoia.dts 2007-09-18 21:11:00.000000000 +0400
@@ -107,8 +107,8 @@
MAL0: mcmal {
compatible = "ibm,mcmal-440epx", "ibm,mcmal2";
dcr-reg = <180 62>;
- num-tx-chans = <4>;
- num-rx-chans = <4>;
+ num-tx-chans = <2>;
+ num-rx-chans = <2>;
interrupt-parent = <&MAL0>;
interrupts = <0 1 2 3 4>;
#interrupt-cells = <1>;
@@ -239,7 +239,7 @@
reg = <ef600e00 70>;
local-mac-address = [000000000000];
mal-device = <&MAL0>;
- mal-tx-channel = <0 1>;
+ mal-tx-channel = <0>;
mal-rx-channel = <0>;
cell-index = <0>;
max-frame-size = <5dc>;
@@ -265,7 +265,7 @@
reg = <ef600f00 70>;
local-mac-address = [000000000000];
mal-device = <&MAL0>;
- mal-tx-channel = <2 3>;
+ mal-tx-channel = <1>;
mal-rx-channel = <1>;
cell-index = <1>;
max-frame-size = <5dc>;
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries.
2007-09-18 17:29 ` [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries Valentine Barshak
@ 2007-09-19 1:05 ` David Gibson
2007-09-19 11:14 ` Valentine Barshak
0 siblings, 1 reply; 8+ messages in thread
From: David Gibson @ 2007-09-19 1:05 UTC (permalink / raw)
To: Valentine Barshak; +Cc: linuxppc-dev
On Tue, Sep 18, 2007 at 09:29:13PM +0400, Valentine Barshak wrote:
> According to PowerPC 440EPx documentation,
> MAL0 is comprised of four channels (two transmit and two receive).
> Each channel is dedicated to one of two EMAC cores.
> This patch fixes Sequoia DTS MAL0 entry and EMAC entries,
> assigning correct channel numbers to EMACs.
Hrm.. did they change the EMAC in 440EPx to only use one MAL
tx-channel? All the older ones could use two (for no readily apparent
reason, IMO).
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries.
2007-09-19 1:05 ` David Gibson
@ 2007-09-19 11:14 ` Valentine Barshak
2007-09-20 18:46 ` Valentine Barshak
0 siblings, 1 reply; 8+ messages in thread
From: Valentine Barshak @ 2007-09-19 11:14 UTC (permalink / raw)
To: Valentine Barshak, linuxppc-dev
David Gibson wrote:
> On Tue, Sep 18, 2007 at 09:29:13PM +0400, Valentine Barshak wrote:
>> According to PowerPC 440EPx documentation,
>> MAL0 is comprised of four channels (two transmit and two receive).
>> Each channel is dedicated to one of two EMAC cores.
>> This patch fixes Sequoia DTS MAL0 entry and EMAC entries,
>> assigning correct channel numbers to EMACs.
>
> Hrm.. did they change the EMAC in 440EPx to only use one MAL
> tx-channel? All the older ones could use two (for no readily apparent
> reason, IMO).
>
Yes, they did.
Just 1 tx and 1 rx-channel per EMAC. Just 2 bits to select channels,
while all other bits in MAL registers are reserved.
I'm not sure why they did it (possible bus bandwidth problems), but it's
impossible to set more than 1 rx/tx channel for each EMAC in 440EPx.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries.
2007-09-19 11:14 ` Valentine Barshak
@ 2007-09-20 18:46 ` Valentine Barshak
2007-09-20 18:51 ` Josh Boyer
0 siblings, 1 reply; 8+ messages in thread
From: Valentine Barshak @ 2007-09-20 18:46 UTC (permalink / raw)
To: linuxppc-dev; +Cc: David Gibson
Valentine Barshak wrote:
> David Gibson wrote:
>> On Tue, Sep 18, 2007 at 09:29:13PM +0400, Valentine Barshak wrote:
>>> According to PowerPC 440EPx documentation,
>>> MAL0 is comprised of four channels (two transmit and two receive).
>>> Each channel is dedicated to one of two EMAC cores.
>>> This patch fixes Sequoia DTS MAL0 entry and EMAC entries,
>>> assigning correct channel numbers to EMACs.
>>
>> Hrm.. did they change the EMAC in 440EPx to only use one MAL
>> tx-channel? All the older ones could use two (for no readily apparent
>> reason, IMO).
>>
> Yes, they did.
> Just 1 tx and 1 rx-channel per EMAC. Just 2 bits to select channels,
> while all other bits in MAL registers are reserved.
> I'm not sure why they did it (possible bus bandwidth problems), but it's
> impossible to set more than 1 rx/tx channel for each EMAC in 440EPx.
Josh, David, is this patch OK?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries.
2007-09-20 18:46 ` Valentine Barshak
@ 2007-09-20 18:51 ` Josh Boyer
2007-09-20 18:55 ` Valentine Barshak
0 siblings, 1 reply; 8+ messages in thread
From: Josh Boyer @ 2007-09-20 18:51 UTC (permalink / raw)
To: Valentine Barshak; +Cc: linuxppc-dev, David Gibson
On Thu, 20 Sep 2007 22:46:18 +0400
Valentine Barshak <vbarshak@ru.mvista.com> wrote:
> Valentine Barshak wrote:
> > David Gibson wrote:
> >> On Tue, Sep 18, 2007 at 09:29:13PM +0400, Valentine Barshak wrote:
> >>> According to PowerPC 440EPx documentation,
> >>> MAL0 is comprised of four channels (two transmit and two receive).
> >>> Each channel is dedicated to one of two EMAC cores.
> >>> This patch fixes Sequoia DTS MAL0 entry and EMAC entries,
> >>> assigning correct channel numbers to EMACs.
> >>
> >> Hrm.. did they change the EMAC in 440EPx to only use one MAL
> >> tx-channel? All the older ones could use two (for no readily apparent
> >> reason, IMO).
> >>
> > Yes, they did.
> > Just 1 tx and 1 rx-channel per EMAC. Just 2 bits to select channels,
> > while all other bits in MAL registers are reserved.
> > I'm not sure why they did it (possible bus bandwidth problems), but it's
> > impossible to set more than 1 rx/tx channel for each EMAC in 440EPx.
>
> Josh, David, is this patch OK?
Yeah. I applied it to my tree and asked Paul to pull. Same for the
Bamboo one.
josh
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries.
2007-09-20 18:51 ` Josh Boyer
@ 2007-09-20 18:55 ` Valentine Barshak
0 siblings, 0 replies; 8+ messages in thread
From: Valentine Barshak @ 2007-09-20 18:55 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev, David Gibson
Josh Boyer wrote:
> On Thu, 20 Sep 2007 22:46:18 +0400
> Valentine Barshak <vbarshak@ru.mvista.com> wrote:
>
>> Valentine Barshak wrote:
>>> David Gibson wrote:
>>>> On Tue, Sep 18, 2007 at 09:29:13PM +0400, Valentine Barshak wrote:
>>>>> According to PowerPC 440EPx documentation,
>>>>> MAL0 is comprised of four channels (two transmit and two receive).
>>>>> Each channel is dedicated to one of two EMAC cores.
>>>>> This patch fixes Sequoia DTS MAL0 entry and EMAC entries,
>>>>> assigning correct channel numbers to EMACs.
>>>> Hrm.. did they change the EMAC in 440EPx to only use one MAL
>>>> tx-channel? All the older ones could use two (for no readily apparent
>>>> reason, IMO).
>>>>
>>> Yes, they did.
>>> Just 1 tx and 1 rx-channel per EMAC. Just 2 bits to select channels,
>>> while all other bits in MAL registers are reserved.
>>> I'm not sure why they did it (possible bus bandwidth problems), but it's
>>> impossible to set more than 1 rx/tx channel for each EMAC in 440EPx.
>> Josh, David, is this patch OK?
>
> Yeah. I applied it to my tree and asked Paul to pull. Same for the
> Bamboo one.
>
> josh
OK thanks :)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-09-20 18:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 17:25 [PATCH 0/2] PowerPC: Fix MAL0 DTS entries for Bamboo and Sequoia Valentine Barshak
2007-09-18 17:27 ` [PATCH 1/2] PowerPC: Fix Bamboo MAL0 dts entry Valentine Barshak
2007-09-18 17:29 ` [PATCH 2/2] PowerPC: Fix Sequoia MAL0 and EMAC dts entries Valentine Barshak
2007-09-19 1:05 ` David Gibson
2007-09-19 11:14 ` Valentine Barshak
2007-09-20 18:46 ` Valentine Barshak
2007-09-20 18:51 ` Josh Boyer
2007-09-20 18:55 ` Valentine Barshak
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).