[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/6] tests/qtest/libqos/pci: Introduce pio_limit
From: |
Alex Bennée |
Subject: |
Re: [PATCH v2 2/6] tests/qtest/libqos/pci: Introduce pio_limit |
Date: |
Thu, 20 Jan 2022 15:04:59 +0000 |
User-agent: |
mu4e 1.7.5; emacs 28.0.91 |
Eric Auger <eric.auger@redhat.com> writes:
> At the moment the IO space limit is hardcoded to
> QPCI_PIO_LIMIT = 0x10000. When accesses are performed to a bar,
> the base address of this latter is compared against the limit
> to decide whether we perform an IO or a memory access.
>
> On ARM, we cannot keep this PIO limit as the arm-virt machine
> uses [0x3eff0000, 0x3f000000 ] for the IO space map and we
> are mandated to allocate at 0x0.
>
> Add a new flag in QPCIBar indicating whether it is an IO bar
> or a memory bar. This flag is set on QPCIBar allocation and
> provisionned based on the BAR configuration. Then the new flag
> is used in access functions and in iomap() function.
>
> Signed-off-by: Eric Auger <eric.auger@redhat.com>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
- [PATCH v2 0/6] qtests/libqos: Allow PCI tests to be run with virt-machine, Eric Auger, 2022/01/18
- [PATCH v2 1/6] tests/qtest/vhost-user-test.c: Use vhostforce=on, Eric Auger, 2022/01/18
- [PATCH v2 2/6] tests/qtest/libqos/pci: Introduce pio_limit, Eric Auger, 2022/01/18
- Re: [PATCH v2 2/6] tests/qtest/libqos/pci: Introduce pio_limit,
Alex Bennée <=
- [PATCH v2 3/6] tests/qtest/libqos: Skip hotplug tests if pci root bus is not hotpluggable, Eric Auger, 2022/01/18
- [PATCH v2 4/6] tests/qtest/vhost-user-blk-test: Setup MSIx to avoid error on aarch64, Eric Auger, 2022/01/18
- [PATCH v2 5/6] tests/qtest/vhost-user-blk-test: Factorize vq setup code, Eric Auger, 2022/01/18
- [PATCH v2 6/6] tests/qtest/libqos: Add generic pci host bridge in arm-virt machine, Eric Auger, 2022/01/18