Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Matthew Auld <matthew.auld@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Remove ifdef in DRM_GPUVA_OP_DRIVER svm subop checking
Date: Wed, 15 Jul 2026 13:00:43 -0700	[thread overview]
Message-ID: <alfm64MJgdYCya/G@gsse-cloud1.jf.intel.com> (raw)
In-Reply-To: <3c48aa92-6451-4b8e-a1b8-75cec4899296@intel.com>

On Wed, Jul 15, 2026 at 01:28:46PM +0100, Matthew Auld wrote:
> On 15/07/2026 11:31, Mika Kuoppala wrote:
> > Always emit the DRM_GPUVA_OP_DRIVER case so the previous break is
> > effective and we never fall through to the default warning.
> > This also allows adding more subops in the future without ifdef dancing.
> > 
> > Cc: Matthew Auld <matthew.auld@intel.com>
> > Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> 
> Assuming it still builds,

+1

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
> 
> > ---
> >   drivers/gpu/drm/xe/xe_pt.c | 2 --
> >   1 file changed, 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
> > index 7111b5d0f6aa..d1b939dfaa13 100644
> > --- a/drivers/gpu/drm/xe/xe_pt.c
> > +++ b/drivers/gpu/drm/xe/xe_pt.c
> > @@ -1547,7 +1547,6 @@ static int op_check_svm_userptr(struct xe_vm *vm, struct xe_vma_op *op,
> >   			err = vma_check_userptr(vm, gpuva_to_vma(op->base.prefetch.va), pt_update);
> >   		}
> >   		break;
> > -#if IS_ENABLED(CONFIG_DRM_XE_GPUSVM)
> >   	case DRM_GPUVA_OP_DRIVER:
> >   		if (op->subop == XE_VMA_SUBOP_MAP_RANGE) {
> >   			struct xe_svm_range *range = op->map_range.range;
> > @@ -1562,7 +1561,6 @@ static int op_check_svm_userptr(struct xe_vm *vm, struct xe_vma_op *op,
> >   			}
> >   		}
> >   		break;
> > -#endif
> >   	default:
> >   		drm_warn(&vm->xe->drm, "NOT POSSIBLE");
> >   	}
> 

  reply	other threads:[~2026-07-15 20:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15 10:31 [PATCH] drm/xe: Remove ifdef in DRM_GPUVA_OP_DRIVER svm subop checking Mika Kuoppala
2026-07-15 11:06 ` ✓ CI.KUnit: success for " Patchwork
2026-07-15 11:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-15 12:28 ` [PATCH] " Matthew Auld
2026-07-15 20:00   ` Matthew Brost [this message]
2026-07-15 12:52 ` ✓ Xe.CI.FULL: success 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=alfm64MJgdYCya/G@gsse-cloud1.jf.intel.com \
    --to=matthew.brost@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    --cc=mika.kuoppala@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