From: helgaas@kernel.org (Bjorn Helgaas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] PCI: mvebu: Don't try to add an MBus window that already exists
Date: Fri, 17 Jun 2016 18:36:12 -0500 [thread overview]
Message-ID: <20160617233612.GC21200@localhost> (raw)
In-Reply-To: <20160603093042.26e325d1@free-electrons.com>
On Fri, Jun 03, 2016 at 09:30:42AM +0200, Thomas Petazzoni wrote:
> Hello,
>
> On Fri, 3 Jun 2016 07:57:34 +0200, Stefan Roese wrote:
>
> > > The pci-mvebu driver deletes the MBus windows for a given PCI device
> > > when invalid memory base/limits are set in the emulated PCI bridge.
> > > Shouldn't this happen over a rescan?
> >
> > I'm not sure what *should* happen upon rescan. But testing shows, that
> > no MBus window is removed upon rescan. I just tested what happens,
> > if the PCI devices are "removed" via sysfs. And this also does not
> > delete any of the MBus windows.
>
> Then maybe that's a question for the PCI folks. Is it normal that when
> a PCI device gets removed, the configuration of the PCI bridge does not
> get adjusted accordingly?
I'm not sure I completely understand the question.
When a PCI device is removed, I don't think we touch any upstream
devices. The device is gone; there's no reason to change any bridge
windows leading to it.
When we rescan, we should try to assign resources to BARs of any new
devices we find. Theoretically that could involve configuring windows
of upstream bridges, but I don't think we actually do that, because
we'd have to be careful not to break any active devices, and I don't
think we're smart enough for that.
Bjorn
next prev parent reply other threads:[~2016-06-17 23:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 12:52 [PATCH] PCI: mvebu: Don't try to add an MBus window that already exists Stefan Roese
2016-06-02 13:18 ` Thomas Petazzoni
2016-06-03 5:57 ` Stefan Roese
2016-06-03 7:30 ` Thomas Petazzoni
2016-06-17 23:36 ` Bjorn Helgaas [this message]
2016-06-17 23:46 ` Bjorn Helgaas
2016-06-20 13:42 ` Stefan Roese
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=20160617233612.GC21200@localhost \
--to=helgaas@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).