From: "Figini Enzo" <enzo.figini@italtel.it>
To: <linuxppc-embedded@ozlabs.org>
Subject: PCI allocation problem
Date: Thu, 27 Jan 2005 13:42:57 +0100 [thread overview]
Message-ID: <006001c5046d$bb639860$4a50848a@settimo.italtel.it> (raw)
[-- 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 --]
reply other threads:[~2005-01-27 12:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='006001c5046d$bb639860$4a50848a@settimo.italtel.it' \
--to=enzo.figini@italtel.it \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox