Skip to contentSkip to conversation

powerpc: Increase warp SD buffer

PATCH In review Sean MacLennan 2 participants 4 messages Dec 9, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Increase warp SD buffer

Newer revs of the FPGA have a larger SD buffer.

---

arch/powerpc/boot/dts/warp.dts +1 -1
index 31605ee..e576ee8 100644
@@ -146,7 +146,7 @@
 
 				fpga@2,4000 {
 					compatible = "pika,fpga-sd";
-					reg = <0x00000002 0x00004000 0x00000A00>;
+					reg = <0x00000002 0x00004000 0x00004000>;
 				};
 
 				nor@0,0 {
#1 lore raw
Quoted 1 line · Sean MacLennan

Newer revs of the FPGA have a larger SD buffer.

How does that impact the older revisions? You're using a cuImage with Warp, so the device tree is bundled with that. If you boot a new kernel with this change to the DTS on a older board revision, will it do bad things?

josh

#2 lore raw
Quoted 4 lines · On Wed, 9 Dec 2009 09:40:55 -0500 Josh Boyer <[email protected]> wrote:

How does that impact the older revisions? You're using a cuImage with Warp, so the device tree is bundled with that. If you boot a new kernel with this change to the DTS on a older board revision, will it do bad things?

The new SD driver takes care of that. If you use the new kernel with an old FPGA you reserve more space than you need, but the driver will not touch it.

And if you somehow end up with the new DTS on an older kernel, the old SD driver will not use the space anyway since the buffer is limited to one block.

The SD driver is not in the kernel proper because it was implemented in the FPGA and has a non-standard interface. It requires a change to the SD core to run. But it is GPLed, so if anybody wants to see it, just ask.

Cheers,
Sean

#3 lore raw
Quoted 12 lines · Sean MacLennan
Quoted 4 lines · On Wed, 9 Dec 2009 09:40:55 -0500 Josh Boyer <[email protected]> wrote:

How does that impact the older revisions? You're using a cuImage with Warp, so the device tree is bundled with that. If you boot a new kernel with this change to the DTS on a older board revision, will it do bad things?

The new SD driver takes care of that. If you use the new kernel with an old FPGA you reserve more space than you need, but the driver will not touch it.

Quoted 8 lines

And if you somehow end up with the new DTS on an older kernel, the old SD driver will not use the space anyway since the buffer is limited to one block.

The SD driver is not in the kernel proper because it was implemented in the FPGA and has a non-standard interface. It requires a change to the SD core to run. But it is GPLed, so if anybody wants to see it, just ask.

OK thanks. I figured something like that would be the case, but wanted to verify first.

josh