Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Piotr Piórkowski" <piotr.piorkowski@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, Nathan Chancellor <nathan@kernel.org>
Subject: Re: [PATCH] drm/xe/tests: Change TEST_VRAM to work with 32-bit resource_size_t
Date: Fri, 27 Feb 2026 19:37:51 +0100	[thread overview]
Message-ID: <20260227183751.4hlng27qiyok4ng5@intel.com> (raw)
In-Reply-To: <20260227160010.12425-1-michal.wajdeczko@intel.com>

Michal Wajdeczko <michal.wajdeczko@intel.com> wrote on pią [2026-lut-27 17:00:10 +0100]:
> We've picked the value of TEST_VRAM to match real VRAM size as found
> on the machines used by the CI, but that didn't work well on kernels
> that have 32-bit resource_size_t. Use smaller value instead.
> 
> Reported-by: Nathan Chancellor <nathan@kernel.org>
> Closes: https://lore.kernel.org/intel-xe/20260227011639.GA1683727@ax162/
> Fixes: cbe29da6f7c0 ("drm/xe/tests: Add KUnit tests for new VRAM fair provisioning")
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> ---
> Cc: Nathan Chancellor <nathan@kernel.org>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> ---
>  drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c b/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c
> index 305dbd4e5d1a..efa8963ec248 100644
> --- a/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c
> +++ b/drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c
> @@ -11,7 +11,7 @@
>  #include "xe_pci_test.h"
>  
>  #define TEST_MAX_VFS	63
> -#define TEST_VRAM	0x37a800000ull
> +#define TEST_VRAM	0x7a800000ull	/* random size that works on 32-bit */
>  
>  static void pf_set_admin_mode(struct xe_device *xe, bool enable)
LGTM:
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>

>  {
> -- 
> 2.47.1
> 

-- 

  parent reply	other threads:[~2026-02-27 18:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27 16:00 [PATCH] drm/xe/tests: Change TEST_VRAM to work with 32-bit resource_size_t Michal Wajdeczko
2026-02-27 16:07 ` ✓ CI.KUnit: success for " Patchwork
2026-02-27 16:59 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-27 18:37 ` Piotr Piórkowski [this message]
2026-02-28  2:20 ` ✓ Xe.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=20260227183751.4hlng27qiyok4ng5@intel.com \
    --to=piotr.piorkowski@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=michal.wajdeczko@intel.com \
    --cc=nathan@kernel.org \
    /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