Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Auld <matthew.auld@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Subject: [Intel-xe] [PATCH v3 5/5] drm/xe: fully turn on small-bar support
Date: Mon, 27 Mar 2023 13:48:07 +0100	[thread overview]
Message-ID: <20230327124807.54459-6-matthew.auld@intel.com> (raw)
In-Reply-To: <20230327124807.54459-1-matthew.auld@intel.com>

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@intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@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;
-- 
2.39.2


  parent reply	other threads:[~2023-03-27 12:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 12:48 [Intel-xe] [PATCH v3 0/5] uAPI bits for small-bar Matthew Auld
2023-03-27 12:48 ` [Intel-xe] [PATCH v3 1/5] drm/xe/uapi: restrict system wide accounting Matthew Auld
2023-03-27 12:48 ` [Intel-xe] [PATCH v3 2/5] drm/xe/uapi: add some kernel-doc for region query Matthew Auld
2023-03-27 22:24   ` Gwan-gyeong Mun
2023-03-27 12:48 ` [Intel-xe] [PATCH v3 3/5] drm/xe/bo: support tiered vram allocation for small-bar Matthew Auld
2023-03-27 12:48 ` [Intel-xe] [PATCH v3 4/5] drm/xe/uapi: add the userspace bits " Matthew Auld
2023-03-27 12:48 ` Matthew Auld [this message]
2023-03-27 12:51 ` [Intel-xe] ✓ CI.Patch_applied: success for uAPI bits for small-bar (rev3) Patchwork
2023-03-27 12:52 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-03-27 12:56 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-03-27 13:18 ` [Intel-xe] ○ CI.BAT: info " Patchwork

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=20230327124807.54459-6-matthew.auld@intel.com \
    --to=matthew.auld@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.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