public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Bernatowicz, Marcin" <marcin.bernatowicz@linux.intel.com>
To: "Gote, Nitin R" <nitin.r.gote@intel.com>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Wajdeczko, Michal" <Michal.Wajdeczko@intel.com>,
	"Laguna, Lukasz" <lukasz.laguna@intel.com>
Subject: Re: [PATCH] tests/intel/xe_configfs: Skip ctx-restore subtests on SR-IOV VF
Date: Mon, 16 Mar 2026 10:10:33 +0100	[thread overview]
Message-ID: <c2d6c5cc-241a-4066-8efd-bb77f49b3ef0@linux.intel.com> (raw)
In-Reply-To: <SA3PR11MB81189734B2EAC66EF2632888D046A@SA3PR11MB8118.namprd11.prod.outlook.com>


On 3/10/2026 5:37 AM, Gote, Nitin R wrote:
> Hi Marcin,
>
>> -----Original Message-----
>> From: Bernatowicz, Marcin <marcin.bernatowicz@linux.intel.com>
>> Sent: Thursday, March 5, 2026 9:51 PM
>> To: Kamil Konieczny <kamil.konieczny@linux.intel.com>; Gote, Nitin R
>> <nitin.r.gote@intel.com>; igt-dev@lists.freedesktop.org; Wajdeczko, Michal
>> <Michal.Wajdeczko@intel.com>; Laguna, Lukasz <lukasz.laguna@intel.com>
>> Subject: Re: [PATCH] tests/intel/xe_configfs: Skip ctx-restore subtests on SR-IOV
>> VF
>>
>>
>> On 2/24/2026 2:20 PM, Kamil Konieczny wrote:
>>> Hi Nitin,
>>> On 2026-02-24 at 16:50:42 +0530, Nitin Gote wrote:
>>>> The ctx-restore subtests use intel_register_read() via direct MMIO
>>>> (PCI BAR) access to verify that the batch buffer wrote the expected
>>>> register values. On SR-IOV Virtual Functions (VF), only a very
>>>> limited subset of registers is accessible. Registers like 0x4F100 are
>>>> not exposed to VFs, so the read always returns 0, causing a false
>>>> test failure.
>>>>
>>>> Skip all ctx-restore subtests (post-bb, mid-bb, and their invalid
>>>> variants) when the device is running in SR-IOV VF mode.
>> Does it mean the feature is not applicable to VFs or just the verification is a bit
>> harder ?
> The ctx-restore feature itself works on VFs -- the GuC handles context
> save/restore for VFs just like the PF. The issue is strictly with the
> test's verification method.
>
> The test uses intel_register_read() via direct PCI BAR MMIO to read
> back register 0x4F100, which is blocked by the HW MMIO filter on VFs.
> I looked into alternatives but couldn't find a suitable VF-accessible
> register -- the VF MMIO filter only exposes IRQ registers
> (0x190010-0x1900f4) and VF_SW_FLAG registers (0x190240), which are
> used by GuC communication and not suitable as test scratch.
>
> Given there's no VF-safe register available, I think the skip with an
> accurate message seems like the correct approach:
>
> igt_require_f(!is_vf_device,
> "MMIO register readback not possible on VF\n");

I do not see a better way, so let skip

NIT: igt_skip_on(is_vf_device, ...)  reads a bit easier

Reviewed-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>

>
> Please let me know if you'd prefer a different approach.
> Thank you.
>
> - Nitin
>
>>> +cc Lukasz and Marcin
>>>
>>>> Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
>>>> ---
>>>>    tests/intel/xe_configfs.c | 4 ++++
>>>>    1 file changed, 4 insertions(+)
>>>>

  reply	other threads:[~2026-03-16  9:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24 11:20 [PATCH] tests/intel/xe_configfs: Skip ctx-restore subtests on SR-IOV VF Nitin Gote
2026-02-24 13:15 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-02-24 13:20 ` [PATCH] " Kamil Konieczny
2026-03-05 16:21   ` Bernatowicz, Marcin
2026-03-10  4:37     ` Gote, Nitin R
2026-03-16  9:10       ` Bernatowicz, Marcin [this message]
2026-02-24 13:38 ` ✓ i915.CI.BAT: success for " Patchwork
2026-02-24 19:50 ` ✗ i915.CI.Full: failure " Patchwork
2026-02-24 23:40 ` ✗ Xe.CI.FULL: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-03-16 10:31 [PATCH] " Nitin Gote

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=c2d6c5cc-241a-4066-8efd-bb77f49b3ef0@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=Michal.Wajdeczko@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=lukasz.laguna@intel.com \
    --cc=nitin.r.gote@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