Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
	intel-xe@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH 1/2] FOR_CI: pcode-fix
Date: Fri, 27 Jun 2025 12:07:02 +0300	[thread overview]
Message-ID: <57bd015e02c14a1e6a28e46aa35957ef89f93faf@intel.com> (raw)
In-Reply-To: <20250626-xe-kunit-v1-1-2440e6d9a4b5@intel.com>

On Thu, 26 Jun 2025, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> Just to test/validate second patch. The solution is being discussed
> at https://lore.kernel.org/intel-xe/gbisrh7ep2gn2fxv7xz4g4sy75qjpmcr5yqdx5atlab2oxevlx@j3zwx3k4o4x4/

I think this is the simplest fix.

Acked-by: Jani Nikula <jani.nikula@intel.com>


>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_pcode.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
> index 87323ad0cbbb2..08aee78ff08ed 100644
> --- a/drivers/gpu/drm/xe/xe_pcode.c
> +++ b/drivers/gpu/drm/xe/xe_pcode.c
> @@ -337,7 +337,10 @@ int xe_pcode_probe_early(struct xe_device *xe)
>  }
>  ALLOW_ERROR_INJECTION(xe_pcode_probe_early, ERRNO); /* See xe_pci_probe */
>  
> -/* Helpers with drm device */
> +
> +/* Helpers with drm device. These should only be called by the display side */
> +#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
> +
>  int intel_pcode_read(struct drm_device *drm, u32 mbox, u32 *val, u32 *val1)
>  {
>  	struct xe_device *xe = to_xe_device(drm);
> @@ -362,3 +365,5 @@ int intel_pcode_request(struct drm_device *drm, u32 mbox, u32 request,
>  
>  	return xe_pcode_request(tile, mbox, request, reply_mask, reply, timeout_base_ms);
>  }
> +
> +#endif

-- 
Jani Nikula, Intel

  reply	other threads:[~2025-06-27  9:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26 20:56 [PATCH 0/2] drm/xe: xe with/without kunit Lucas De Marchi
2025-06-26 20:56 ` [PATCH 1/2] FOR_CI: pcode-fix Lucas De Marchi
2025-06-27  9:07   ` Jani Nikula [this message]
2025-06-26 20:56 ` [PATCH 2/2] drm/xe: Allow dropping kunit dependency as built-in Lucas De Marchi
2025-06-26 21:22 ` ✗ CI.checkpatch: warning for drm/xe: xe with/without kunit Patchwork
2025-06-26 21:23 ` ✓ CI.KUnit: success " Patchwork
2025-06-26 22:18 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-01  1:56 ` ✗ Xe.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=57bd015e02c14a1e6a28e46aa35957ef89f93faf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-xe@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