Skip to contentSkip to conversation

configs

DISCUSSION Paul Thomas 2 participants 4 messages Mar 25, 2009 – Mar 26, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

I'm new to the sparc architecture (I'm used to arm), I don't even have any sparc hardware yet. But I'm curious enough about the opensparc processors that I pulled the sparc-2.6 git tree. First I did a "make ARCH=sparc sparc64_defconfig" and then "make ARCH=sparc xconfig". This all works fine, but I'm confused about how the configurations work. In the arm branch there is both selection of the "ARM system type" and a specific board selection after that. I guess the sparc processors are different in that they don't have all of the peripherals that arm processors have.

So my question is, what are the configuration options for the 3 main features (memory controller, pcie & XAUI) of the T2 processor. The only memory controller I see is the "UltraSPARC-III Memory Controller driver" is that the same for the T2? I don't see any pcie configuration options, but there is the drivers/pci/pcie directory. Is the pcie driver built-in by default? In the "Ethernet (10000 Mbit)" section the Sun Neptune is checked, but it looks like the Neptune is a standalone pcie card. Is that the driver for the XAUI interfaces on the T2?

thanks,
Paul

#1 lore raw

From: Paul Thomas <[email protected]>
Date: Wed, 25 Mar 2009 09:09:29 -0700

Quoted 10 lines

I'm new to the sparc architecture (I'm used to arm), I don't even have any sparc hardware yet. But I'm curious enough about the opensparc processors that I pulled the sparc-2.6 git tree. First I did a "make ARCH=sparc sparc64_defconfig" and then "make ARCH=sparc xconfig". This all works fine, but I'm confused about how the configurations work. In the arm branch there is both selection of the "ARM system type" and a specific board selection after that. I guess the sparc processors are different in that they don't have all of the peripherals that arm processors have.

Quoted 9 lines

So my question is, what are the configuration options for the 3 main features (memory controller, pcie & XAUI) of the T2 processor. The only memory controller I see is the "UltraSPARC-III Memory Controller driver" is that the same for the T2? I don't see any pcie configuration options, but there is the drivers/pci/pcie directory. Is the pcie driver built-in by default? In the "Ethernet (10000 Mbit)" section the Sun Neptune is checked, but it looks like the Neptune is a standalone pcie card. Is that the driver for the XAUI interfaces on the T2?

Unlike ARM we don't have such a plethora of platform system devices and other oddities.

The DMA is very generic and consistent across all system types, as is the interrupt architecture.

So all you need to do really is enable the PCI devices found on your system. The rest you'll get by default.

There is no specific memory controller driver for T2, memory errors (both correctable and uncorrectable) are sent by the hypervisor as an interrupt packet to the guest cpu. Only the hypervisor actually accesses the memory controller and the fault registers. It's all virtualized from Linux's perspective.

#2 lore raw
In reply to Paul Thomas
Quoted 29 lines · David Miller

From: Paul Thomas <[email protected]>
Date: Wed, 25 Mar 2009 09:09:29 -0700

Quoted 10 lines

I'm new to the sparc architecture (I'm used to arm), I don't even have any sparc hardware yet. But I'm curious enough about the opensparc processors that I pulled the sparc-2.6 git tree. First I did a "make ARCH=sparc sparc64_defconfig" and then "make ARCH=sparc xconfig". This all works fine, but I'm confused about how the configurations work. In the arm branch there is both selection of the "ARM system type" and a specific board selection after that. I guess the sparc processors are different in that they don't have all of the peripherals that arm processors have.

Quoted 9 lines

So my question is, what are the configuration options for the 3 main features (memory controller, pcie & XAUI) of the T2 processor. The only memory controller I see is the "UltraSPARC-III Memory Controller driver" is that the same for the T2? I don't see any pcie configuration options, but there is the drivers/pci/pcie directory. Is the pcie driver built-in by default? In the "Ethernet (10000 Mbit)" section the Sun Neptune is checked, but it looks like the Neptune is a standalone pcie card. Is that the driver for the XAUI interfaces on the T2?

Unlike ARM we don't have such a plethora of platform system devices and other oddities.

The DMA is very generic and consistent across all system types, as is the interrupt architecture.

Quoted 8 lines

So all you need to do really is enable the PCI devices found on your system.  The rest you'll get by default.

There is no specific memory controller driver for T2, memory errors (both correctable and uncorrectable) are sent by the hypervisor as an interrupt packet to the guest cpu.  Only the hypervisor actually accesses the memory controller and the fault registers.  It's all virtualized from Linux's perspective.

Thanks for the response. That makes sense. It is a lot different from ARM. Does the hypervisor handle the XAUI interfaces also? I see there is a SUNVNET driver. Is that how the kernel accesses the network? It all seems like a very elegant solution. Is the hypervisor under GPL license?

thanks,
Paul

#3 lore raw
In reply to Paul Thomas

From: Paul Thomas <[email protected]>
Date: Thu, 26 Mar 2009 10:08:30 -0700

Quoted 5 lines

Thanks for the response. That makes sense. It is a lot different from ARM. Does the hypervisor handle the XAUI interfaces also? I see there is a SUNVNET driver. Is that how the kernel accesses the network? It all seems like a very elegant solution. Is the hypervisor under GPL license?

The SUNVNET driver is for logical domain guest, not for for Linux executing with access to PCI segments. Linux running on "real iron" uses the normal PCI drivers for whatever network hardware is available.

The hypervisor only gets involved with the XAUI interfaces when you want to export portions of the NIU network device to logical domain guests from control comains. Linux has a full hardware driver for the NIU chip, drivers/net/niu.c

The hypervisor is GPL'd and available from www.opensparc.org, you want the "Architecture and Performance Modeling" download that contains the full openfirmware and hypervisor sources.