mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Alex Chiang <achiang@hp.com>
Cc: matthew@wil.cx, justin.chen@hp.com, linux-kernel@vger.kernel.org
Subject: Re: PCI BAR mem resource allocation "regression"
Date: Sat, 13 Dec 2008 09:41:05 -0800 (PST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0812130929100.3340@localhost.localdomain> (raw)
In-Reply-To: <alpine.LFD.2.00.0812130901370.3340@localhost.localdomain>



On Sat, 13 Dec 2008, Linus Torvalds wrote:
> 
> I'm missing some pieces I'd like to see: /proc/iomem before and after, and 
> lspci output before and after (you do give lspci output, but only one, and 
> I can't tell if it's before or after).
> 
> Also, is it just the error message, or does it actually affect 
> functionality?

Oh - one more thing. Your revert is very complex, and a simpler revert 
(that _should_ revert just the actual behavioral change) is just the 
two-liner that removes these two lines:

		if ((first->start == new->start) && (first->end == new->end))
			break;

in __insert_resource.

So can you check if your more complex revert really has the same behaviour 
as just removing those two lines?

Matthew: I do suspect that the "insert below" patch is wrong. Look at 
"pci_claim_resource()", for example: it uses insert_resource() to insert 
the PCI device resource into the resource tree. But if the PCI device 
resource has the same size as the bus window, that commit changes it to 
insert it as the _parent_ of the bus window, no?

Of course, on a PC, the only user of pci_claim_resource() would be some 
PCI quirks that should never trigger this, but it's an example of the kind 
of behavioural change that that commit introduced, and which looks 
like it could result in a wrong resource tree.

I'm not finding the original discussion that resulted in that patch, 
though, so I have a somewhat hard time to judge the reasoning. It's from 
almost three years ago, I don't remember details even if I had been 
involved with it (and judging by the sign-off path, I hadn't).

Matthew, do you remember the context of that commmit d33b6fba2?

		Linus

  reply	other threads:[~2008-12-13 17:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-13  0:05 Alex Chiang
2008-12-13 17:16 ` Linus Torvalds
2008-12-13 17:41   ` Linus Torvalds [this message]
2008-12-14  1:12     ` Alex Chiang
2008-12-17  4:05     ` Matthew Wilcox
2008-12-14  1:05   ` Alex Chiang
2008-12-14  1:37     ` Linus Torvalds
2008-12-15 20:04       ` Jesse Barnes
2008-12-16  0:25         ` Linus Torvalds
2008-12-16  0:53           ` Jesse Barnes
2008-12-15 18:26     ` Chen, Justin
2008-12-15 22:29     ` Chen, Justin

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=alpine.LFD.2.00.0812130929100.3340@localhost.localdomain \
    --to=torvalds@linux-foundation.org \
    --cc=achiang@hp.com \
    --cc=justin.chen@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    /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

all inboxes | Powered by JetHome®