[i-g-t,v2,1/2] lib/intel_mmio: Map the whole BAR0 for gen12+
Laguna, Lukasz
lukasz.laguna at intel.com
Fri Mar 29 09:36:14 UTC 2024
On 3/26/2024 11:09, Piórkowski, Piotr wrote:
> From: Piotr Piórkowski<piotr.piorkowski at intel.com>
>
> Previously, we limited BAR0 mapping to register space only because of
> the potential conflict with wc mapping for the GTT region.
> For gen12+ platforms, the size of BAR0 varies due to the different amount
> of tile.
> And as for gen11+ platforms, we can already map the whole BAR0 as uc,
> so let's map the whole BAR0, without artificial limitations.
>
> Signed-off-by: Piotr Piórkowski<piotr.piorkowski at intel.com>
> ---
> lib/intel_mmio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/intel_mmio.c b/lib/intel_mmio.c
> index 4b6820787..31975727e 100644
> --- a/lib/intel_mmio.c
> +++ b/lib/intel_mmio.c
> @@ -154,7 +154,7 @@ intel_mmio_use_pci_bar(struct intel_mmio_data *mmio_data, struct pci_device *pci
>
> gen = intel_gen(devid);
> if (gen >= 12)
> - mmio_size = 8 * 1024 * 1024;
> + mmio_size = pci_dev->regions[mmio_bar].size;
> else if (gen >= 5)
> mmio_size = 2 * 1024 * 1024;
> else
Reviewed-by: Lukasz Laguna <lukasz.laguna at intel.com
<mailto:lukasz.laguna at intel.com>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20240329/2a4705c7/attachment.htm>
More information about the igt-dev
mailing list