* PCI allocation problem
@ 2005-01-27 12:42 Figini Enzo
0 siblings, 0 replies; only message in thread
From: Figini Enzo @ 2005-01-27 12:42 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 3171 bytes --]
Hi, All
I'm using linux 2.6.10 on a board with MPC8280 and I have a problem with the
PCI init.
After allocating resource for the bus (pcibios_allocate_bus_resource() in
pcibios_init() ), the following pcibios_allocate_resource(0) and (1) fails,
like it's possible to see from the following report.
Jan 1 00:16:52 (none) daemon.info klogd: PCI: Probing PCI hardware
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: bridge rsrc
70000000..74000000 (101), parent c01ef158
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: bridge rsrc
40000000..4fffffff (1200), parent c01ef174
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: bridge rsrc
60000000..6fffffff (200), parent c01ef174
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: pcibios_allocate_resources()
- pass=0
Jan 1 00:16:52 (none) daemon.warn klogd: devfn=0x0 - command=0x6
Jan 1 00:16:52 (none) daemon.warn klogd: idx=0 - disabled=0x0
Jan 1 00:16:52 (none) daemon.warn klogd: PCI:0000:00:00.0: Resource 0:
00000000-0001ffff (f=200)
Jan 1 00:16:52 (none) daemon.err klogd: PCI: Cannot allocate resource
region 0 of device 0000:00:00.0
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: parent is c0283070:
60000000-6fffffff (f=200)
Jan 1 00:16:52 (none) daemon.warn klogd: idx=1 - disabled=0x0
Jan 1 00:16:52 (none) daemon.warn klogd: PCI:0000:00:00.0: Resource 1:
00000000-03ffffff (f=1208)
Jan 1 00:16:52 (none) daemon.err klogd: PCI: Cannot allocate resource
region 1 of device 0000:00:00.0
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: parent is c0283054:
40000000-4fffffff (f=1200)
Jan 1 00:16:52 (none) daemon.warn klogd: PCI: pcibios_allocate_resources()
- pass=1
Jan 1 00:16:52 (none) daemon.warn klogd: devfn=0x0 - command=0x6
It's possible it will be a errata configurazione of bridge ???
The define for configuring the PCI (inbound/outbound windows) into my board
platform include file are
/* BR0 - allow the CPU to access PCI address space */
#define MPC826x_PCI_BASE 0x40000000
#define MPC826x_PCI_MASK 0xc0000000
/* OUTBOUND 0 - Master window that allows the CPU to access PCI Memory
(prefetch). */
#define MPC826x_PCI_LOWER_MEM 0x40000000
#define MPC826x_PCI_UPPER_MEM 0x4fffffff
#define MPC826x_PCI_MEM_OFFSET 0x00000000
/* OUTBOUND 1 - allows the CPU to access PCI Memory (non-prefetch) */
#define MPC826x_PCI_LOWER_MMIO 0x60000000
#define MPC826x_PCI_UPPER_MMIO 0x6fffffff
#define MPC826x_PCI_MMIO_OFFSET 0x00000000
/* OUTBOUND 2 -0 allows the CPU to access PCI IO space */
#define MPC826x_PCI_LOWER_IO 0x70000000
#define MPC826x_PCI_UPPER_IO 0x74000000
#define MPC826x_PCI_IO_BASE MPC826x_PCI_LOWER_IO
#define MPC826x_PCI_IO_SIZE (MPC826x_PCI_UPPER_IO-MPC826x_PCI_LOWER_IO)
/* INBOUND 0 - PCI Memory map */
#define MPC826x_PCI_SLAVE_MEM_LOCAL (((struct bd_info
*)__res)->bi_memstart)
#define MPC826x_PCI_SLAVE_MEM_BUS (((struct bd_info
*)__res)->bi_memstart)
#define MPC826x_PCI_SLAVE_MEM_SIZE (((struct bd_info
*)__res)->bi_memsize)
and are the same value used in u-boot, where all is ok and the pci run
properly.
Shuld be defined something other ???
Best regards.
Enzo Figini
PS - with this define about OUTBOUND 2 is not possible insert module, with
problem of vmalloc reported.
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 872 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-27 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27 12:42 PCI allocation problem Figini Enzo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox