From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [Ticket#2007011742000232] [PATCH] Avoid assigning PCI resources from zero ad [...]
Date: Mon, 23 Apr 2007 17:22:54 +0400 [thread overview]
Message-ID: <462CB32E.3010309@ru.mvista.com> (raw)
In-Reply-To: <1169049681.381595.382224316@castor.denx.de>
Hello.
OTRS Notification Master wrote:
> inside the automatic U-Boot patch tracking system a new ticket
> [DNX#2007011742000232] was created:
> <snip>
>>If a PCI IDE card happens to get a zero address assigned to it, the
>>Linux IDE
>>core complains and IDE drivers fails to work. Also, assigning zero to a
>>BAR
>>was illegal according to PCI 2.1 (the later revisions seem to have
>>excluded the
>>sentence about "0" being considered an invalid address) -- so, use a
>>reasonable
>>starting value of 0x1000 (that's what the most Linux archs are using).
>>
>>Alternatively, one might have fixed the calls to pci_set_region()
>>individually
>>(some code even seems to have taken care of this issue) but that would
>>have
>>been a lot more work. :-)
>>
>>Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>>
>> drivers/pci_auto.c | 7 ++++++-
>> 1 files changed, 6 insertions(+), 1 deletion(-)
>>
>>Index: u-boot/drivers/pci_auto.c
>>===================================================================
>>--- u-boot.orig/drivers/pci_auto.c
>>+++ u-boot/drivers/pci_auto.c
>>@@ -34,7 +34,12 @@
>>
>> void pciauto_region_init(struct pci_region* res)
>> {
>>- res->bus_lower = res->bus_start;
>>+ /*
>>+ * Avoid allocating PCI resources from address 0 -- this is illegal
>>+ * according to PCI 2.1 and moreover, this is known to cause Linux IDE
>>+ * drivers to fail. Use a reasonable starting value of 0x1000 instead.
>>+ */
>>+ res->bus_lower = res->bus_start ? res->bus_start : 0x1000;
>> }
>>
>> void pciauto_region_align(struct pci_region *res, unsigned long size)
I wonder if this patch has ever been considered...
WBR, Sergei
prev parent reply other threads:[~2007-04-23 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-17 16:01 [U-Boot-Users] [Ticket#2007011742000232] [PATCH] Avoid assigning PCI resources from zero ad [...] OTRS Notification Master
2007-04-23 13:22 ` Sergei Shtylyov [this message]
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=462CB32E.3010309@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=u-boot@lists.denx.de \
/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