From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 11/14] drm/xe: s/bar2/lmembar/
Date: Tue, 12 May 2026 13:49:26 +0300 [thread overview]
Message-ID: <fbae55deb2751896cfff0a71cdf80481a8dc4960@intel.com> (raw)
In-Reply-To: <20260511214122.8468-12-ville.syrjala@linux.intel.com>
On Tue, 12 May 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> The local memory BAR has a name (LMEMBAR). Use that instead
> of referring to it by its BAR register index.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> index 5e9070739e65..60f39efb02d0 100644
> --- a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> +++ b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> @@ -61,7 +61,7 @@ static u32 get_wopcm_size(struct xe_device *xe)
> return wopcm_size;
> }
>
> -static u64 detect_bar2_dgfx(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr)
> +static u64 detect_lmembar_dgfx(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr)
> {
> struct xe_vram_region *tile_vram = xe_device_get_root_tile(xe)->mem.vram;
> resource_size_t tile_io_start = xe_vram_region_io_start(tile_vram);
> @@ -102,7 +102,7 @@ static u64 detect_bar2_dgfx(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr)
> return ALIGN_DOWN(stolen_size, SZ_1M);
> }
>
> -static u32 detect_bar2_integrated(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr)
> +static u32 detect_lmembar_integrated(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr)
> {
> struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
> struct xe_gt *media_gt = xe_device_get_root_tile(xe)->media_gt;
> @@ -212,9 +212,9 @@ int xe_ttm_stolen_mgr_init(struct xe_device *xe)
> if (IS_SRIOV_VF(xe))
> stolen_size = 0;
> else if (IS_DGFX(xe))
> - stolen_size = detect_bar2_dgfx(xe, mgr);
> + stolen_size = detect_lmembar_dgfx(xe, mgr);
> else if (GRAPHICS_VERx100(xe) >= 1270)
> - stolen_size = detect_bar2_integrated(xe, mgr);
> + stolen_size = detect_lmembar_integrated(xe, mgr);
> else
> stolen_size = detect_stolen(xe, mgr);
>
> @@ -262,9 +262,9 @@ u64 xe_ttm_stolen_io_offset(struct xe_bo *bo, u32 offset)
> return mgr->io_base + (bo->ttm.resource->start << PAGE_SHIFT) + offset;
> }
>
> -static int __xe_ttm_stolen_io_mem_reserve_bar2(struct xe_device *xe,
> - struct xe_ttm_stolen_mgr *mgr,
> - struct ttm_resource *mem)
> +static int __xe_ttm_stolen_io_mem_reserve_lmembar(struct xe_device *xe,
> + struct xe_ttm_stolen_mgr *mgr,
> + struct ttm_resource *mem)
> {
> if (!mgr->io_base)
> return -EIO;
> @@ -321,7 +321,7 @@ int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem)
> if (xe_ttm_stolen_cpu_access_needs_ggtt(xe))
> return __xe_ttm_stolen_io_mem_reserve_stolen(xe, mgr, mem);
> else
> - return __xe_ttm_stolen_io_mem_reserve_bar2(xe, mgr, mem);
> + return __xe_ttm_stolen_io_mem_reserve_lmembar(xe, mgr, mem);
> }
>
> u64 xe_ttm_stolen_gpu_offset(struct xe_device *xe)
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-05-12 10:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 21:41 [PATCH 00/14] drm/{i915,xe}: BIOS FB takeover fixes Ville Syrjala
2026-05-11 21:41 ` [PATCH 01/14] drm/i915: Disable the plane if initial plane config readout failed Ville Syrjala
2026-05-12 10:25 ` Jani Nikula
2026-05-11 21:41 ` [PATCH 02/14] drm/i915/fbdev: Extract bios_fb_ok() Ville Syrjala
2026-05-12 10:29 ` Jani Nikula
2026-05-11 21:41 ` [PATCH 03/14] drm/i915: Throw away the BIOS fb if has the wrong depth/bpp Ville Syrjala
2026-05-12 10:33 ` Jani Nikula
2026-05-11 21:41 ` [PATCH 04/14] drm/i915: Introduce intel_bo_fbdev_bios_fb_ok() Ville Syrjala
2026-05-11 21:41 ` [PATCH 05/14] drm/i915: Use drm_dbg_kms() for initial FB debugs Ville Syrjala
2026-05-12 10:40 ` Jani Nikula
2026-05-11 21:41 ` [PATCH 06/14] drm/xe: Do the initial FB size alignment earlier Ville Syrjala
2026-05-11 21:41 ` [PATCH 07/14] drm/xe/ggtt: Decouple lmem/stolen physcial offset from GGTT offset Ville Syrjala
2026-05-11 21:41 ` [PATCH 08/14] drm/xe: Print a debug message if we have no stolen for the initial FB Ville Syrjala
2026-05-12 10:45 ` Jani Nikula
2026-05-11 21:41 ` [PATCH 09/14] drm/xe: Abstract the initial FB PTE checks a bit Ville Syrjala
2026-05-12 10:48 ` Jani Nikula
2026-05-11 21:41 ` [PATCH 10/14] drm/xe: Check the PTE local memory bit for initial FB in stolen Ville Syrjala
2026-05-11 21:41 ` [PATCH 11/14] drm/xe: s/bar2/lmembar/ Ville Syrjala
2026-05-12 10:49 ` Jani Nikula [this message]
2026-05-11 21:41 ` [PATCH 12/14] drm/xe: Use the correct stolen offset in initial FB readout Ville Syrjala
2026-05-11 21:41 ` [PATCH 13/14] drm/i915: Fix BIOS FB memory region name debug prints Ville Syrjala
2026-05-11 21:41 ` [PATCH 14/14] drm/i915: Print the phys_base in addition to the dma_addr for the BIOS FB Ville Syrjala
2026-05-11 22:27 ` ✓ i915.CI.BAT: success for drm/{i915,xe}: BIOS FB takeover fixes Patchwork
2026-05-12 7:02 ` ✓ i915.CI.Full: " 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=fbae55deb2751896cfff0a71cdf80481a8dc4960@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=ville.syrjala@linux.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