public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gerd Hoffmann" <kraxel@redhat.com>
To: devel@edk2.groups.io, kallol.biswas@nutanix.com
Cc: Pritam Chatterjee <pritam.chatterjee@nutanix.com>,
	 Jiewen Yao <jiewen.yao@intel.com>,
	Ard Biesheuvel <ardb@kernel.org>
Subject: Re: [edk2-devel] uefi VM and IO window overlap issue
Date: Tue, 20 Jun 2023 16:24:10 +0200	[thread overview]
Message-ID: <wpynq26qe4igexzd7embcdgnz5g2e72vkwlpdipwfzmpi36i7o@ie4wxejgwvkd> (raw)
In-Reply-To: <BL3PR02MB7986C82BAE8AB1A00CAC1067FE54A@BL3PR02MB7986.namprd02.prod.outlook.com>

On Mon, Jun 12, 2023 at 07:27:37PM +0000, Kallol Biswas [C] wrote:
> Hi,
>     We have been observing an issue that IO BARs can't be claimed due to resource
> conflict.
> 
> [    0.457693] pci 0000:00:1d.0: can't claim BAR 4 [io  0x92a0-0x92bf]: address conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]
> [    0.457705] pci 0000:00:1d.1: can't claim BAR 4 [io  0x9280-0x929f]: address conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]
> [    0.457715] pci 0000:00:1d.2: can't claim BAR 4 [io  0x9260-0x927f]: address conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]
> [    0.457743] pci 0000:00:1f.2: can't claim BAR 4 [io  0x9240-0x925f]: address conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]
> [    0.457754] pci 0000:00:1f.3: can't claim BAR 4 [io  0x9200-0x923f]: address conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]
> 
> 
> Please see the discussion thread:
> 
> https://www.spinics.net/lists/linux-pci/msg133740.html
> 
> The root of the problem is that OVMF does not take into account the limit register's granularity (limit) of a bridge,
> and programs EPs with overlapping IO ranges in a different bus.
> 
> Should we fix the issue in the OVMF?

IMHO yes.

https://edk2.groups.io/g/devel/message/96645

Jiewen suggested to fix it somewhere in PCI code instead.
No response from the PCI maintainers on that comment.

Jiewen, Ard?
How move forward with that?

take care,
  Gerd


  reply	other threads:[~2023-06-20 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-12 19:27 uefi VM and IO window overlap issue Kallol Biswas [C]
2023-06-20 14:24 ` Gerd Hoffmann [this message]
2023-06-26  9:52   ` [edk2-devel] " Ard Biesheuvel

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-list 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=wpynq26qe4igexzd7embcdgnz5g2e72vkwlpdipwfzmpi36i7o@ie4wxejgwvkd \
    --to=devel@edk2.groups.io \
    /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