Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: fei.yang@intel.com
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/1] drm/xe: fixing endless PF range response
Date: Tue, 06 Oct 2026 21:36:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-162462@kernel.org> (raw)
In-Reply-To: <20261006213449.4027749-2-fei.yang@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] drm/xe: build failure due to hallucinated vma_info field
--

commit 634f5ddbb1931a170d6586933045107086b28191
Author: Fei Yang <fei.yang@intel.com>
Subject: drm/xe: fixing endless PF range response

This commit modifies the page fault queue worker to immediately update the
start and end addresses of a page fault. It also adds assignments to a new
vma_info structure inside the page fault consumer.

> diff --git a/drivers/gpu/drm/xe/xe_pagefault.h b/drivers/gpu/drm/xe/xe_pagefault.h
> index 799c984dee84f..5ce2f6ed10c56 100644
> --- a/drivers/gpu/drm/xe/xe_pagefault.h
> +++ b/drivers/gpu/drm/xe/xe_pagefault.h
> @@ -98,6 +98,7 @@ xe_pagefault_set_end_addr(struct xe_pagefault *pf, u64 end_addr)
>  {
>  	pf->consumer.end_addr &= ~XE_PAGEFAULT_END_ADDR_MASK;
>  	pf->consumer.end_addr |= end_addr;
> +	pf->consumer.vma_info.end_addr = end_addr;

[Severity: Low]
Does the consumer structure actually have a vma_info member?

Looking at the definition in drivers/gpu/drm/xe/xe_pagefault_types.h:

struct xe_pagefault {
...
	struct {
		u64 page_addr;
		union {
			struct {
				u8 alloc_state;
...
				u32 id;
			};
			u64 end_addr;
		};
		struct xe_pagefault *next;
	} consumer;
...
};

It appears consumer lacks a vma_info field. Will this code compile, or will
it result in a build error complaining about no member named vma_info?

[ ... ]

> @@ -137,6 +138,7 @@ xe_pagefault_set_start_addr(struct xe_pagefault *pf, u64 start_addr)
>  {
>  	pf->consumer.page_addr &= XE_PAGEFAULT_ERROR_MASK;
>  	pf->consumer.page_addr |= (start_addr & ~XE_PAGEFAULT_ERROR_MASK);
> +	pf->consumer.vma_info.start_addr = start_addr;

[Severity: Low]
Similarly, since vma_info doesn't exist in consumer, will this assignment also
cause a compiler error?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261006213449.4027749-1-fei.yang@intel.com?part=1

  reply	other threads:[~2026-10-06 21:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 21:34 [PATCH 0/1] drm/xe: fixing endless PF range response fei.yang
2026-10-06 21:34 ` [PATCH 1/1] " fei.yang
2026-10-06 21:36   ` sashiko-bot [this message]
2026-10-06 21:36 ` ✗ CI.KUnit: failure for " 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=sashiko-outbox-162462@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=fei.yang@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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