Optionally treat ck804 memory-mapped PCI configuration space window as a resource. Not enabled by default because the resource should be non-posted and there's no way to express that to the resource allocator.
Signed-off-by: Jonathan Kollasch jakllsch@kollasch.net
On 5/22/11 8:12 AM, Jonathan A. Kollasch wrote:
Optionally treat ck804 memory-mapped PCI configuration space window as a resource. Not enabled by default because the resource should be non-posted and there's no way to express that to the resource allocator.
Signed-off-by: Jonathan Kollaschjakllsch@kollasch.net
Please don't make stuff like that a Kconfig option. All memory used by devices should be resources, so it's fine to always enable this, given that it's tested and works.
Why would the resource allocator have to worry about posted vs non-posted PCI transactions?
On Sun, May 22, 2011 at 12:28:41PM -0700, Stefan Reinauer wrote:
On 5/22/11 8:12 AM, Jonathan A. Kollasch wrote:
Optionally treat ck804 memory-mapped PCI configuration space window as a resource. Not enabled by default because the resource should be non-posted and there's no way to express that to the resource allocator.
Signed-off-by: Jonathan Kollaschjakllsch@kollasch.net
Please don't make stuff like that a Kconfig option. All memory used by devices should be resources, so it's fine to always enable this, given that it's tested and works.
Aren't there fam10h boards that have a ck804 southbridge? How do we make sure the appropriate mmconf implementation is used?
Why would the resource allocator have to worry about posted vs non-posted PCI transactions?
How else will the northbridge be told to make the region non-posted?
Jonathan Kollasch
On 5/22/11 1:07 PM, Jonathan A. Kollasch wrote:
On Sun, May 22, 2011 at 12:28:41PM -0700, Stefan Reinauer wrote:
On 5/22/11 8:12 AM, Jonathan A. Kollasch wrote:
Optionally treat ck804 memory-mapped PCI configuration space window as a resource. Not enabled by default because the resource should be non-posted and there's no way to express that to the resource allocator.
Signed-off-by: Jonathan Kollaschjakllsch@kollasch.net
Please don't make stuff like that a Kconfig option. All memory used by devices should be resources, so it's fine to always enable this, given that it's tested and works.
Aren't there fam10h boards that have a ck804 southbridge? How do we make sure the appropriate mmconf implementation is used?
We have defines for the cpu/northbridge/southbridge already ... why not use those, if needed?
Why would the resource allocator have to worry about posted vs non-posted PCI transactions?
How else will the northbridge be told to make the region non-posted?
Why would it have to? Not sure I understand your concern. Your patch does not address that issue at all.
Stefan Reinauer wrote:
]>> Why would the resource allocator have to worry about posted vs ]>> non-posted PCI transactions? ]> How else will the northbridge be told to make the region non-posted? ]Why would it have to? Not sure I understand your concern. Your patch ]does not address that issue at all.
This subject came up recently: http://www.coreboot.org/pipermail/coreboot/2010-October/061288.html
AMD processors have 8 mmio base/limit register pairs. Each pair defines an address range as posted mmio or as non-posted mmio. Somehow posted and non-posted ranges have to be allocated so that they can be consolidated into a total of 8 or fewer ranges. Then the mmio base/limit registers can be programmed to cover the ranges.
Thanks, ScottD
"Jonathan A. Kollasch" jakllsch@kollasch.net writes:
Optionally treat ck804 memory-mapped PCI configuration space window as a resource. Not enabled by default because the resource should be non-posted and there's no way to express that to the resource allocator.
Signed-off-by: Jonathan Kollasch jakllsch@kollasch.net
Can you expand on why the resource should be non-posted? I didn't think non-posted was a requirement of pci config space.
Where are you configuring posted vs non-posted behavior?
Do writes to extended pci config space actually work for you. A coworker hacked something like this together a while ago for one of the boards we support and there is a bug where I can read extended pcie config space but not write to it. Except for a bit of trivial looking I haven't had a chance to dig into that problem.
Eric
On Mon, May 23, 2011 at 03:01:16AM -0700, Eric W. Biederman wrote:
"Jonathan A. Kollasch" jakllsch@kollasch.net writes:
Optionally treat ck804 memory-mapped PCI configuration space window as a resource. Not enabled by default because the resource should be non-posted and there's no way to express that to the resource allocator.
Signed-off-by: Jonathan Kollasch jakllsch@kollasch.net
Can you expand on why the resource should be non-posted? I didn't think non-posted was a requirement of pci config space.
I don't remember if I ever saw that in writing. However, k8resdump when booted in the original BIOS shows:
MMIO map: #6 0x00e0000000 - 0x00e05fffff Access: R/W NonPosted Dstnode:0 DstLink 0
Where are you configuring posted vs non-posted behavior?
I'm not. There isn't a good way to do it yet.
Do writes to extended pci config space actually work for you. A coworker hacked something like this together a while ago for one of the boards we support and there is a bug where I can read extended pcie config space but not write to it. Except for a bit of trivial looking I haven't had a chance to dig into that problem.
I'll check.
Jonathan Kollasch
On Mon, May 23, 2011 at 10:56:29AM +0000, Jonathan A. Kollasch wrote:
On Mon, May 23, 2011 at 03:01:16AM -0700, Eric W. Biederman wrote:
Do writes to extended pci config space actually work for you. A coworker hacked something like this together a while ago for one of the boards we support and there is a bug where I can read extended pcie config space but not write to it. Except for a bit of trivial looking I haven't had a chance to dig into that problem.
I'll check.
Appears to work. A read/zero/restore operation on the PCI CSR shadow at 0x404 in the 88E8052 on this board responds as expected.
(This is under coreboot with posted memory for the mmconf window.)
Jonathan Kollasch
Treat ck804 PCI memory mapped configuration space as a fixed resource.
Signed-off-by: Jonathan Kollasch jakllsch@kollasch.net