From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
"Peter Maydell" <peter.maydell@linaro.org>,
"Leif Lindholm" <quic_llindhol@quicinc.com>,
"Radoslaw Biernacki" <rad@semihalf.com>,
"Cleber Rosa" <crosa@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Beraldo Leal" <bleal@redhat.com>,
"Ard Biesheuvel" <ardb+tianocore@kernel.org>,
"Rebecca Cran" <rebecca@bsdio.com>
Subject: Re: [PATCH v3 1/2] tests/avocado: update firmware for sbsa-ref
Date: Mon, 1 Jul 2024 08:49:46 +0200 [thread overview]
Message-ID: <ca463afe-486f-4590-acb5-a61265cbbd37@linaro.org> (raw)
In-Reply-To: <CAMj1kXGb9xVQ5E3oK_QX+3hKkMfCoA9jF5jkEeG6Eq9+zbHPHA@mail.gmail.com>
W dniu 30.06.2024 o 16:37, Ard Biesheuvel pisze:
> On Thu, 20 Jun 2024 at 12:20, Marcin Juszkiewicz
> <marcin.juszkiewicz@linaro.org> wrote:
>>
>> Update firmware to have graphics card memory fix from EDK2 commit
>> c1d1910be6e04a8b1a73090cf2881fb698947a6e:
>>
>> OvmfPkg/QemuVideoDxe: add feature PCD to remap framebuffer W/C
>>
>> Some platforms (such as SBSA-QEMU on recent builds of the emulator) only
>> tolerate misaligned accesses to normal memory, and raise alignment
>> faults on such accesses to device memory, which is the default for PCIe
>> MMIO BARs.
>>
>> When emulating a PCIe graphics controller, the framebuffer is typically
>> exposed via a MMIO BAR, while the disposition of the region is closer to
>> memory (no side effects on reads or writes, except for the changing
>> picture on the screen; direct random access to any pixel in the image).
>>
>> In order to permit the use of such controllers on platforms that only
>> tolerate these types of accesses for normal memory, it is necessary to
>> remap the memory. Use the DXE services to set the desired capabilities
>> and attributes.
>>
>> Hide this behavior under a feature PCD so only platforms that really
>> need it can enable it. (OVMF on x86 has no need for this)
>>
>> With this fix enabled we can boot sbsa-ref with more than one cpu core.
>>
>
> This requires an explanation: what does the number of CPU cores have
> to do with the memory attributes used for the framebuffer?
I have no idea. Older firmware was hanging on several systems but was
passing in QEMU tests. After closer looking I noticed that Avocado tests
run with "-smp 1" and pass.
Checked failing system with "-smp 1" and it worked. In meantime you have
fixed problem in EDK2.
So yes, updating firmware may look like hiding a bug. Which I do not
know how to track (I can build and test QEMU, but going into its
internals is something I never done).
next prev parent reply other threads:[~2024-07-01 6:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 10:19 [PATCH v3 0/2] tests/avocado: make sbsa-ref working with >1 core Marcin Juszkiewicz
2024-06-20 10:19 ` [PATCH v3 1/2] tests/avocado: update firmware for sbsa-ref Marcin Juszkiewicz
2024-06-30 14:37 ` Ard Biesheuvel
2024-07-01 6:49 ` Marcin Juszkiewicz [this message]
2024-07-01 8:58 ` Peter Maydell
2024-06-20 10:19 ` [PATCH v3 2/2] tests/avocado: use default amount of cores on sbsa-ref Marcin Juszkiewicz
2024-06-24 8:10 ` [PATCH v3 0/2] tests/avocado: make sbsa-ref working with >1 core Philippe Mathieu-Daudé
2024-06-24 13:31 ` Peter Maydell
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=ca463afe-486f-4590-acb5-a61265cbbd37@linaro.org \
--to=marcin.juszkiewicz@linaro.org \
--cc=ardb+tianocore@kernel.org \
--cc=ardb@kernel.org \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_llindhol@quicinc.com \
--cc=rad@semihalf.com \
--cc=rebecca@bsdio.com \
--cc=wainersm@redhat.com \
/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).