From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t v2 1/2] tests/intel/xe_configfs: Save pci_device
Date: Mon, 22 Sep 2025 09:39:45 -0400 [thread overview]
Message-ID: <aNFRoRZwsVrkMwsU@intel.com> (raw)
In-Reply-To: <20250918-configfs-ctx-restore-v2-1-5df035e27e42@intel.com>
On Thu, Sep 18, 2025 at 09:50:20PM -0700, Lucas De Marchi wrote:
> Just like the address, some new users will be interested in having the
> pci_device cached. Stash it for using later.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> tests/intel/xe_configfs.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/tests/intel/xe_configfs.c b/tests/intel/xe_configfs.c
> index 27426b52a..794c76132 100644
> --- a/tests/intel/xe_configfs.c
> +++ b/tests/intel/xe_configfs.c
> @@ -24,6 +24,7 @@
> */
>
> static char bus_addr[NAME_MAX];
> +static struct pci_device *pci_dev;
>
> static void restore(int sig)
> {
> @@ -125,8 +126,6 @@ static void test_engines_allowed(int configfs_device_fd)
>
> static void set_bus_addr(int fd)
> {
> - struct pci_device *pci_dev;
> -
> pci_dev = igt_device_get_pci_device(fd);
> snprintf(bus_addr, sizeof(bus_addr), "%04x:%02x:%02x.%01x",
> pci_dev->domain, pci_dev->bus, pci_dev->dev, pci_dev->func);
>
> --
> 2.50.1
>
next prev parent reply other threads:[~2025-09-22 13:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 4:50 [PATCH i-g-t v2 0/2] tests/intel/xe_configfs: Test ctx_restore_* Lucas De Marchi
2025-09-19 4:50 ` [PATCH i-g-t v2 1/2] tests/intel/xe_configfs: Save pci_device Lucas De Marchi
2025-09-22 13:39 ` Rodrigo Vivi [this message]
2025-09-19 4:50 ` [PATCH i-g-t v2 2/2] tests/intel/xe_configfs: Check ctx_restore_post_bb Lucas De Marchi
2025-09-19 21:29 ` Rodrigo Vivi
2025-09-24 11:03 ` Kamil Konieczny
2025-09-24 13:03 ` Lucas De Marchi
2025-09-19 6:00 ` ✓ Xe.CI.BAT: success for tests/intel/xe_configfs: Test ctx_restore_* Patchwork
2025-09-19 6:25 ` ✓ i915.CI.BAT: " Patchwork
2025-09-19 15:54 ` ✓ Xe.CI.Full: " Patchwork
2025-09-20 1:57 ` ✗ i915.CI.Full: failure " 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=aNFRoRZwsVrkMwsU@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=igt-dev@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