[Intel-xe] [PATCH v2 6/6] drm/xe: fully turn on small-bar support
Gwan-gyeong Mun
gwan-gyeong.mun at intel.com
Mon Mar 27 04:42:47 UTC 2023
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
On 3/23/23 1:59 PM, Matthew Auld wrote:
> This allows vram_size > io_size, instead of just clamping the vram size
> to the BAR size, now that the driver supports it.
>
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Reviewed-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_mmio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c
> index 5cacaa05759a..f6becf32ca49 100644
> --- a/drivers/gpu/drm/xe/xe_mmio.c
> +++ b/drivers/gpu/drm/xe/xe_mmio.c
> @@ -216,7 +216,7 @@ int xe_mmio_probe_vram(struct xe_device *xe)
> xe->mem.vram.io_start = pci_resource_start(pdev, GEN12_LMEM_BAR);
> xe->mem.vram.io_size = min(usable_size,
> pci_resource_len(pdev, GEN12_LMEM_BAR));
> - xe->mem.vram.size = xe->mem.vram.io_size;
> + xe->mem.vram.size = vram_size;
>
> if (!xe->mem.vram.size)
> return -EIO;
More information about the Intel-xe
mailing list