Skip to contentSkip to conversation

Xilinx: add compatibility for IBM coreconnect busses.

PATCH In review Stephen Neuendorffer 7 participants 20 messages May 7, 2008 – Jul 1, 2008 4 messages not in the archive PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Xilinx: add compatibility for IBM coreconnect busses.

The IBM coreconnect names are pretty well defined, it appears. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

---
 arch/powerpc/platforms/40x/virtex.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/platforms/40x/virtex.c +4 -0
index 6c72994..7e1c0e3 100644
@@ -16,11 +16,15 @@
 #include <asm/xilinx_intc.h>
 
 static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+	{ .compatible = "ibm,plb3", },
+	{ .compatible = "ibm,plb4", },
 	{ .compatible = "xlnx,plb-v46-1.00.a", },
 	{ .compatible = "xlnx,plb-v46-1.02.a", },
 	{ .compatible = "xlnx,plb-v34-1.01.a", },
 	{ .compatible = "xlnx,plb-v34-1.02.a", },
+	{ .compatible = "ibm,opb", },
 	{ .compatible = "xlnx,opb-v20-1.10.c", },
+	{ .compatible = "ibm,dcr", },
 	{ .compatible = "xlnx,dcr-v29-1.00.a", },
 	{ .compatible = "xlnx,compound", },
 	{}
Signature · 1 line
1.5.3.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Stephen Neuendorffer

The IBM coreconnect names are pretty well defined, it appears. In
addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

I think we can probably give it a release or two and then drop the older stuff in the list. Virtex support is still very new, so it is unlikely that there are many (any?) users out there that won't be keeping up to date with the xilinx device tree changes.

Cheers,
g.

Quoted 30 lines

---

  arch/powerpc/platforms/40x/virtex.c |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/40x/virtex.c b/arch/powerpc/platforms/40x/virtex.c index 6c72994..7e1c0e3 100644
--- a/arch/powerpc/platforms/40x/virtex.c
+++ b/arch/powerpc/platforms/40x/virtex.c
@@ -16,11 +16,15 @@
#include <asm/xilinx_intc.h>

static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+ { .compatible = "ibm,plb3", },
+ { .compatible = "ibm,plb4", },

        { .compatible = "xlnx,plb-v46-1.00.a", },
        { .compatible = "xlnx,plb-v46-1.02.a", },
        { .compatible = "xlnx,plb-v34-1.01.a", },
        { .compatible = "xlnx,plb-v34-1.02.a", },
 +       { .compatible = "ibm,opb", },
        { .compatible = "xlnx,opb-v20-1.10.c", },
 +       { .compatible = "ibm,dcr", },
        { .compatible = "xlnx,dcr-v29-1.00.a", },
        { .compatible = "xlnx,compound", },
        {}

--
1.5.3.4

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#2 lore raw

Agreed... I intend the backward compatibility to be a temporary thing. I'd rip it out now, but since we pull out all the information from the device tree, this will result in 'it doesn't do anything', and I don't want to be that mean. :)

Steve

Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of

Grant Likely

Quoted 4 lines

Sent: Wednesday, May 07, 2008 3:33 PM
To: Stephen Neuendorffer
Cc: [email protected]
Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for IBM

coreconnect busses.

Quoted 5 lines

=20

Quoted 2 lines · Stephen Neuendorffer

The IBM coreconnect names are pretty well defined, it appears. In
addition, the Xilinx versions of these IPs seem to be

proliferating.

Quoted 5 lines
Quoted 5 lines

Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

Signed-off-by Stephen Neuendorffer

<[email protected]>

Quoted 16 lines

=20

=20
I think we can probably give it a release or two and then drop the older stuff in the list. Virtex support is still very new, so it is unlikely that there are many (any?) users out there that won't be keeping up to date with the xilinx device tree changes. =20
Cheers,
g.
=20

Quoted 5 lines

---

  arch/powerpc/platforms/40x/virtex.c |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/40x/virtex.c

b/arch/powerpc/platforms/40x/virtex.c

Quoted 31 lines
Quoted 19 lines

index 6c72994..7e1c0e3 100644
--- a/arch/powerpc/platforms/40x/virtex.c
+++ b/arch/powerpc/platforms/40x/virtex.c
@@ -16,11 +16,15 @@
#include <asm/xilinx_intc.h>

static struct of_device_id xilinx_of_bus_ids[] __initdata =3D {
+ { .compatible =3D "ibm,plb3", },
+ { .compatible =3D "ibm,plb4", },

        { .compatible =3D "xlnx,plb-v46-1.00.a", },
        { .compatible =3D "xlnx,plb-v46-1.02.a", },
        { .compatible =3D "xlnx,plb-v34-1.01.a", },
        { .compatible =3D "xlnx,plb-v34-1.02.a", },
 +       { .compatible =3D "ibm,opb", },
        { .compatible =3D "xlnx,opb-v20-1.10.c", },
 +       { .compatible =3D "ibm,dcr", },
        { .compatible =3D "xlnx,dcr-v29-1.00.a", },
        { .compatible =3D "xlnx,compound", },
        {}
Quoted 6 lines

--
1.5.3.4

=20
=20
=20
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

#3 lore raw
In reply to Stephen Neuendorffer
Quoted 7 lines · Stephen Neuendorffer

The IBM coreconnect names are pretty well defined, it appears. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

If you're talking about future trees, can't you just slap "simple-bus" on them avoid this monster id table?

Signature · 4 lines
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
#4 lore raw
Quoted 11 lines · On Thu, 8 May 2008 10:18:50 +1000 David Gibson <[email protected]>…
Quoted 7 lines · Stephen Neuendorffer

The IBM coreconnect names are pretty well defined, it appears. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

If you're talking about future trees, can't you just slap "simple-bus" on them avoid this monster id table?

What is that and how does it work?

josh

#5 lore raw
Quoted 10 lines · Josh Boyer
Quoted 7 lines · On Thu, 8 May 2008 10:18:50 +1000 David Gibson <[email protected]>…
Quoted 6 lines · Stephen Neuendorffer

The IBM coreconnect names are pretty well defined, it appears. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

If you're talking about future trees, can't you just slap "simple-bus" on them avoid this monster id table?

What is that and how does it work?

ePAPR states that busses which cannot be probed as such (i.e. the device tree is the only way to figure out what's on the bus) should have "simple-bus" in their compatible property. You can then just add simple-bus to the of_bus_ids list and avoid adding umpteen other things.

Signature · 4 lines
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
#6 lore raw
Quoted 16 lines · On Thu, 8 May 2008 13:30:06 +1000 David Gibson <[email protected]> wrote:
Quoted 15 lines · Josh Boyer
Quoted 11 lines · On Thu, 8 May 2008 10:18:50 +1000 David Gibson <[email protected]>…
Quoted 7 lines · Stephen Neuendorffer

The IBM coreconnect names are pretty well defined, it appears. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for some backward compatibility for existing device trees.

If you're talking about future trees, can't you just slap "simple-bus" on them avoid this monster id table?

Quoted 6 lines
Quoted 1 line

What is that and how does it work?

ePAPR states that busses which cannot be probed as such (i.e. the device tree is the only way to figure out what's on the bus) should have "simple-bus" in their compatible property. You can then just add simple-bus to the of_bus_ids list and avoid adding umpteen other things.

Hm. Hopefully ePAPR will be released soon.

josh

#7 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for IBMcoreconnect busses.

In reply to David Gibson

Hmm... sounds reasonable to me.

Quoted 2 lines

-----Original Message-----
From: =

linuxppc-dev-bounces+stephen.neuendorffer=3Dxilinx.com@ozlabs.org [mailto:linuxppc-dev-

Quoted 1 line

[email protected]] On Behalf Of =

David
Gibson

Quoted 4 lines

Sent: Wednesday, May 07, 2008 8:30 PM
To: Josh Boyer
Cc: [email protected]
Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for

IBMcoreconnect busses.

Quoted 6 lines

=20

Quoted 4 lines · Josh Boyer
Quoted 1 line · On Thu, 8 May 2008 10:18:50 +1000 David Gibson <[email protected]>…

On Wed, May 07, 2008 at 01:47:31PM -0700, Stephen Neuendorffer

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

The IBM coreconnect names are pretty well defined, it appears.

In

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

addition, the Xilinx versions of these IPs seem to be

proliferating.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Hence, in the future let's prefer to use the standard names.

I've

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

left the old names in for some backward compatibility for

existing

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

device trees.

Signed-off-by Stephen Neuendorffer

<[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

If you're talking about future trees, can't you just slap

"simple-bus"

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

on them avoid this monster id table?

What is that and how does it work?

=20
ePAPR states that busses which cannot be probed as such (i.e. the device tree is the only way to figure out what's on the bus) should have "simple-bus" in their compatible property. You can then just add simple-bus to the of_bus_ids list and avoid adding umpteen other

things.

Quoted 3 lines

=20
--
David Gibson | I'll have my music baroque, and my

code

Quoted 1 line

david AT gibson.dropbear.id.au | minimalist, thank you. NOT

_the_ _other_

Quoted 6 lines
				| _way_ _around_!

http://www.ozlabs.org/~dgibson
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

#8 lore raw

PATCH 1/1 Xilinx: add compatibility for 'simple-bus'.

ePAPR drafts propose 'simple-bus' as a generic compatibility type for busses which cannot be probed for devices. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for short term backward compatibility for existing device trees.

---
 arch/powerpc/platforms/40x/virtex.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/platforms/40x/virtex.c +1 -0
index 6c72994..b1ab7b8 100644
@@ -16,6 +16,7 @@
 #include <asm/xilinx_intc.h>
 
 static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+	{ .compatible = "simple-bus", },
 	{ .compatible = "xlnx,plb-v46-1.00.a", },
 	{ .compatible = "xlnx,plb-v46-1.02.a", },
 	{ .compatible = "xlnx,plb-v34-1.01.a", },
Signature · 1 line
1.5.3.4
Acked-by on v1 1/1
#9 lore raw

Re: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Quoted 7 lines · Stephen Neuendorffer

ePAPR drafts propose 'simple-bus' as a generic compatibility type for
busses which cannot be probed for devices. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for short term backward compatibility for existing device trees.

I'll queue this up for .27

Cheers,
g.

Quoted 22 lines

---

  arch/powerpc/platforms/40x/virtex.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/40x/virtex.c b/arch/powerpc/platforms/40x/virtex.c index 6c72994..b1ab7b8 100644
--- a/arch/powerpc/platforms/40x/virtex.c
+++ b/arch/powerpc/platforms/40x/virtex.c
@@ -16,6 +16,7 @@
#include <asm/xilinx_intc.h>

static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+ { .compatible = "simple-bus", },

        { .compatible = "xlnx,plb-v46-1.00.a", },
        { .compatible = "xlnx,plb-v46-1.02.a", },
        { .compatible = "xlnx,plb-v34-1.01.a", },

--
1.5.3.4

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#11 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

In reply to a message not in the archive

It appears that this turns out to interact badly with the probing of PPC_UDBG_16550, which is always enabled on PPC405 (and apparently found!) even though Virtex devices don't have them.

Steve

Quoted 4 lines

-----Original Message-----
From: Stephen Neuendorffer [mailto:[email protected]]
Sent: Thursday, May 08, 2008 11:25 AM
To: [email protected]; [email protected];

[email protected]; [email protected]

Quoted 11 lines

Cc: Stephen Neuendorffer
Subject: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'. =

ePAPR drafts propose 'simple-bus' as a generic compatibility type for busses which cannot be probed for devices. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for short term backward compatibility for existing device trees. =

Review

Quoted 7 lines
---
 arch/powerpc/platforms/40x/virtex.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

=

(quoted diff) +0 -0

b/arch/powerpc/platforms/40x/virtex.c

Quoted 13 lines

index 6c72994..b1ab7b8 100644

arch/powerpc/platforms/40x/virtex.c +0 -0
@@ -16,6 +16,7 @@
 #include <asm/xilinx_intc.h>

=

static struct of_device_id xilinx_of_bus_ids[] __initdata =3D {

arch/powerpc/platforms/40x/virtex.c +1 -1
+	{ .compatible =3D "simple-bus", },
 	{ .compatible =3D "xlnx,plb-v46-1.00.a", },
 	{ .compatible =3D "xlnx,plb-v46-1.02.a", },
 	{ .compatible =3D "xlnx,plb-v34-1.01.a", },
--
Quoted 2 lines

1.5.3.4
=

This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.

#12 lore raw

Re: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Quoted 4 lines · Stephen Neuendorffer

It appears that this turns out to interact badly with the probing of PPC_UDBG_16550, which is always enabled on PPC405 (and apparently found!) even though Virtex devices don't have them.

What is the symptom?

g.

Quoted 37 lines

Steve

Quoted 4 lines

-----Original Message-----
From: Stephen Neuendorffer [mailto:[email protected]]
Sent: Thursday, May 08, 2008 11:25 AM
To: [email protected]; [email protected];

[email protected]; [email protected]

Quoted 9 lines

Cc: Stephen Neuendorffer
Subject: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

ePAPR drafts propose 'simple-bus' as a generic compatibility type for busses which cannot be probed for devices. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the future let's prefer to use the standard names. I've left the old names in for short term backward compatibility for existing device trees.

Review

Quoted 6 lines
---
 arch/powerpc/platforms/40x/virtex.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/arch/powerpc/platforms/40x/virtex.c

Quoted 13 lines

index 6c72994..b1ab7b8 100644

arch/powerpc/platforms/40x/virtex.c +1 -1
@@ -16,6 +16,7 @@
 #include <asm/xilinx_intc.h>
 
 static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+     { .compatible = "simple-bus", },
      { .compatible = "xlnx,plb-v46-1.00.a", },
      { .compatible = "xlnx,plb-v46-1.02.a", },
      { .compatible = "xlnx,plb-v34-1.01.a", },
--

1.5.3.4

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#13 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

legacy_serial identifies a valid ns16550 on a simple-bus, but the legacy_serial driver doesn't understand the shift and offset flags necessary to get it to work, which results in no console.

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've done this in my tree, but I've been swamped with other things at the moment, so I haven't verified it.

Or is legacy_serial just legacy at this point and can go away entirely? I got the impression from some of the earlier discussion that it wasn't preferred, at least....

Steve

Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of

Grant Likely

Quoted 3 lines

Sent: Friday, June 06, 2008 8:29 AM
To: Stephen Neuendorffer
Cc: [email protected]; [email protected];

[email protected]; git

Quoted 1 line

Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for

'simple-bus'.

Quoted 8 lines

=

Quoted 4 lines · Stephen Neuendorffer

It appears that this turns out to interact badly with the probing of PPC_UDBG_16550, which is always enabled on PPC405 (and apparently found!) even though Virtex devices don't have them.

Quoted 18 lines

=

What is the symptom?
=

g.
=

Quoted 10 lines

Steve

Quoted 4 lines

-----Original Message-----
From: Stephen Neuendorffer [mailto:[email protected]]
Sent: Thursday, May 08, 2008 11:25 AM
To: [email protected]; [email protected];

[email protected]; [email protected]

Quoted 2 lines

Cc: Stephen Neuendorffer
Subject: [PATCH] [POWERPC] Xilinx: add compatibility for

'simple-bus'.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ePAPR drafts propose 'simple-bus' as a generic compatibility type

for

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

busses which cannot be probed for devices. In addition, the Xilinx versions of these IPs seem to be proliferating. Hence, in the

future

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

let's prefer to use the standard names. I've left the old names in for short term backward compatibility for existing device trees.

Signed-off-by Stephen Neuendorffer

<[email protected]>

Quoted 21 lines
Quoted 12 lines

Review

Quoted 5 lines
---
 arch/powerpc/platforms/40x/virtex.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/arch/powerpc/platforms/40x/virtex.c

Quoted 6 lines

index 6c72994..b1ab7b8 100644

arch/powerpc/platforms/40x/virtex.c +0 -0
@@ -16,6 +16,7 @@
 #include <asm/xilinx_intc.h>
 
Quoted 7 lines
Quoted 7 lines
arch/powerpc/platforms/40x/virtex.c +1 -1
 static struct of_device_id xilinx_of_bus_ids[] __initdata =3D {
+     { .compatible =3D "simple-bus", },
      { .compatible =3D "xlnx,plb-v46-1.00.a", },
      { .compatible =3D "xlnx,plb-v46-1.02.a", },
      { .compatible =3D "xlnx,plb-v34-1.01.a", },
--

1.5.3.4

=

Quoted 3 lines

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.

#14 lore raw

Re: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Quoted 9 lines · Stephen Neuendorffer

legacy_serial identifies a valid ns16550 on a simple-bus, but the legacy_serial driver doesn't understand the shift and offset flags necessary to get it to work, which results in no console.

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've done this in my tree, but I've been swamped with other things at the moment, so I haven't verified it.

This is an easy solution, but it is not a good one. Doing so would break UDBG on other 405 boards when building multiplatform kernels. It would be better to teach legacy serial about the shift and offset. Alternately, add code to add_legacy_soc_port() to skip it if the shift/offset properties are present.

Cheers,
g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#15 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Is there really much of a chance of that, given the differences with the bootwrappers?
Does anyone care enough about legacy_serial for this to matter? My impression was that legacy serial was not preferred anyway...

Steve

-----Original Message-----
From: [email protected] on behalf of Grant Likely
Sent: Sat 6/28/2008 1:33 PM
To: Stephen Neuendorffer
Cc: [email protected]; [email protected]; [email protected]; git
Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Quoted 9 lines · Stephen Neuendorffer

legacy_serial identifies a valid ns16550 on a simple-bus, but the legacy_serial driver doesn't understand the shift and offset flags necessary to get it to work, which results in no console.

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've done this in my tree, but I've been swamped with other things at the moment, so I haven't verified it.

This is an easy solution, but it is not a good one. Doing so would break UDBG on other 405 boards when building multiplatform kernels. It would be better to teach legacy serial about the shift and offset. Alternately, add code to add_legacy_soc_port() to skip it if the shift/offset properties are present.

Cheers,
g.

Signature · 7 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.




This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
#17 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

In reply to a message not in the archive

I still have bad dreams about the of_serial patch I did as a newbie related to reg_shift and reg_offset ;)

I'm still a newbie, but we'll do whatever needs to be done. =

Any thoughts from Josh?

-- John

-----Original Message-----
From: Stephen Neuendorffer =

Sent: Sunday, June 29, 2008 9:42 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; git
Subject: RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Is there really much of a chance of that, given the differences with the bootwrappers?
Does anyone care enough about legacy_serial for this to matter? My
impression was that legacy serial was not preferred anyway...

Steve

-----Original Message-----
From: [email protected] on behalf of Grant Likely
Sent: Sat 6/28/2008 1:33 PM
To: Stephen Neuendorffer
Cc: [email protected]; [email protected]; [email protected]; git
Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.
=

Quoted 7 lines · Stephen Neuendorffer

legacy_serial identifies a valid ns16550 on a simple-bus, but the legacy_serial driver doesn't understand the shift and offset flags necessary to get it to work, which results in no console.

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've done

this

Quoted 1 line

in my tree, but I've been swamped with other things at the moment, so

I

Quoted 1 line

haven't verified it.

This is an easy solution, but it is not a good one. Doing so would break UDBG on other 405 boards when building multiplatform kernels. It would be better to teach legacy serial about the shift and offset. Alternately, add code to add_legacy_soc_port() to skip it if the shift/offset properties are present.

Cheers,
g.

-- =

Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.

#19 lore raw

Re: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

In reply to a message not in the archive
Quoted 12 lines · Stephen Neuendorffer
Quoted 10 lines · Grant Likely
Quoted 4 lines

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've done this in my tree, but I've been swamped with other things at the moment, so I haven't verified it.

This is an easy solution, but it is not a good one. Doing so would break UDBG on other 405 boards when building multiplatform kernels. It would be better to teach legacy serial about the shift and offset. Alternately, add code to add_legacy_soc_port() to skip it if the shift/offset properties are present.

Quoted 4 lines

Is there really much of a chance of that, given the differences with the bootwrappers? Does anyone care enough about legacy_serial
for this to matter? My impression was that legacy serial was not
preferred anyway...

You never know, a single kernel build can be wrapped multiple times, and besides, it is a trivial fix. Just add a test for the presence of reg-shift and bail if it is present.

I don't know much about the history of legacy serial, but I do not support adding multiplatform restrictions when not needed. legacy_serial may be crusty, but it does have the advantage of supporting UDBG which is a useful feature. It may or may not go away.

Cheers,
g.

#20 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Ah.. good idea... hadn't thought of that, I guess.

John Linn: I have no time to look at this. Can you see if such a fix fixes the problem?

Steve

Quoted 2 lines

-----Original Message-----
From: Grant Likely [mailto:[email protected]] On Behalf Of Grant

Likely

Quoted 3 lines

Sent: Monday, June 30, 2008 9:34 AM
To: Stephen Neuendorffer
Cc: [email protected]; [email protected];

[email protected]; git

Quoted 1 line

Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for

'simple-bus'.

Quoted 6 lines

=

Quoted 3 lines · Stephen Neuendorffer
Quoted 2 lines · Grant Likely
Quoted 2 lines

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've

done this

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

in my tree, but I've been swamped with other things at the

moment, so I

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

haven't verified it.

This is an easy solution, but it is not a good one. Doing so

would

Quoted 1 line
Quoted 1 line
Quoted 1 line

break UDBG on other 405 boards when building multiplatform

kernels.

Quoted 1 line
Quoted 1 line
Quoted 1 line

It would be better to teach legacy serial about the shift and

offset.

Quoted 10 lines
Quoted 7 lines
Quoted 2 lines

Alternately, add code to add_legacy_soc_port() to skip it if the shift/offset properties are present.

Is there really much of a chance of that, given the differences with the bootwrappers? Does anyone care enough about legacy_serial
for this to matter? My impression was that legacy serial was not
preferred anyway...

=

You never know, a single kernel build can be wrapped multiple times,

and

Quoted 10 lines

besides, it is a trivial fix. Just add a test for the presence of reg-shift and bail if it is present.
=

I don't know much about the history of legacy serial, but I do not support adding multiplatform restrictions when not needed. legacy_serial may be crusty, but it does have the advantage of supporting UDBG which is a useful feature. It may or may not go away. =

Quoted 3 lines

Cheers,
g.
=

This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.

#22 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

In reply to a message not in the archive

I'll give it a try, sounds easy.

-- John

-----Original Message-----
From: Stephen Neuendorffer =

Sent: Monday, June 30, 2008 10:49 AM
To: [email protected]; John Linn
Cc: [email protected]; [email protected]; [email protected]; git
Subject: RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

Ah.. good idea... hadn't thought of that, I guess.

John Linn: I have no time to look at this. Can you see if such a fix fixes the problem?

Steve

Quoted 2 lines

-----Original Message-----
From: Grant Likely [mailto:[email protected]] On Behalf Of Grant

Likely

Quoted 3 lines

Sent: Monday, June 30, 2008 9:34 AM
To: Stephen Neuendorffer
Cc: [email protected]; [email protected];

[email protected]; git

Quoted 1 line

Subject: Re: [PATCH] [POWERPC] Xilinx: add compatibility for

'simple-bus'.

Quoted 6 lines

=

Quoted 3 lines · Stephen Neuendorffer
Quoted 2 lines · Grant Likely
Quoted 2 lines

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've

done this

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

in my tree, but I've been swamped with other things at the

moment, so I

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

haven't verified it.

This is an easy solution, but it is not a good one. Doing so

would

Quoted 1 line
Quoted 1 line
Quoted 1 line

break UDBG on other 405 boards when building multiplatform

kernels.

Quoted 1 line
Quoted 1 line
Quoted 1 line

It would be better to teach legacy serial about the shift and

offset.

Quoted 10 lines
Quoted 7 lines
Quoted 2 lines

Alternately, add code to add_legacy_soc_port() to skip it if the shift/offset properties are present.

Is there really much of a chance of that, given the differences with the bootwrappers? Does anyone care enough about legacy_serial
for this to matter? My impression was that legacy serial was not
preferred anyway...

=

You never know, a single kernel build can be wrapped multiple times,

and

Quoted 10 lines

besides, it is a trivial fix. Just add a test for the presence of reg-shift and bail if it is present.
=

I don't know much about the history of legacy serial, but I do not support adding multiplatform restrictions when not needed. legacy_serial may be crusty, but it does have the advantage of supporting UDBG which is a useful feature. It may or may not go away. =

Quoted 3 lines

Cheers,
g.
=

This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.

#23 lore raw

RE: [PATCH] [POWERPC] Xilinx: add compatibility for 'simple-bus'.

In reply to Stephen Neuendorffer
Quoted 4 lines · Stephen Neuendorffer

legacy_serial identifies a valid ns16550 on a simple-bus, but the legacy_serial driver doesn't understand the shift and offset flags necessary to get it to work, which results in no console.

Quoted 8 lines

I think the easiest solution is to change the Kconfig so that PPC_UDBG_16550 is only selected based on !XILINX_VIRTEX. I've done this in my tree, but I've been swamped with other things at the moment, so I haven't verified it.

Or is legacy_serial just legacy at this point and can go away entirely? I got the impression from some of the earlier discussion that it wasn't preferred, at least....

No, legacy serial is useful. Just grow it an understanding of the shift & offset bits :-)

Cheers,
Ben.