All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Matthew Brost <matthew.brost@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2 1/2] drm/xe: Fix execlist splat
Date: Thu, 22 Feb 2024 16:40:28 -0500	[thread overview]
Message-ID: <Zde_TLxu85rXLszE@intel.com> (raw)
In-Reply-To: <20240222035906.3835257-2-matthew.brost@intel.com>

On Wed, Feb 21, 2024 at 07:59:05PM -0800, Matthew Brost wrote:
> Although execlist submission is not supported it should be kept in a
> basic working state as it can be used for very early hardware bring up.
> Fix the below splat.
> 
> WARNING: CPU: 3 PID: 11 at drivers/gpu/drm/xe/xe_execlist.c:217 execlist_run_job+0x1c2/0x220 [xe]
> Modules linked in: xe drm_kunit_helpers drm_gpuvm drm_ttm_helper ttm drm_exec drm_suballoc_helper drm_buddy gpu_sched mei_pxp mei_hdcp wmi_bmof x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul snd_hda_intel ghash_clmulni_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core video snd_pcm mei_me mei wmi fuse e1000e i2c_i801 ptp i2c_smbus pps_core intel_lpss_pci
> CPU: 3 PID: 11 Comm: kworker/u16:0 Tainted: G     U             6.8.0-rc3-guc+ #1046
> Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLSFWI1.R00.3243.A01.2006102133 06/10/2020
> Workqueue: rcs0 drm_sched_run_job_work [gpu_sched]
> RIP: 0010:execlist_run_job+0x1c2/0x220 [xe]
> Code: 8b f8 03 00 00 4c 89 39 e9 e2 fe ff ff 49 8d 7d 20 be ff ff ff ff e8 ed fd a6 e1 85 c0 0f 85 e1 fe ff ff 0f 0b e9 da fe ff ff <0f> 0b 0f 0b 41 83 fc 03 0f 86 8a fe ff ff 0f 0b e9 83 fe ff ff be
> RSP: 0018:ffffc9000013bdb8 EFLAGS: 00010246
> RAX: ffff888105021a00 RBX: ffff888105078400 RCX: 0000000000000000
> RDX: 0000000000000001 RSI: ffffc9000013bd14 RDI: ffffc90001609090
> RBP: ffff88811e3f0040 R08: 0000000000000088 R09: 00000000ffffff81
> R10: 0000000000000001 R11: ffff88810c10c000 R12: 00000000fffffffe
> R13: ffff888109b72c28 R14: ffff8881050784a0 R15: ffff888105078408
> FS:  0000000000000000(0000) GS:ffff88849f980000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000563459d130f8 CR3: 000000000563a001 CR4: 0000000000f70ef0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> PKRU: 55555554
> Call Trace:
>  <TASK>
>  ? __warn+0x7f/0x170
>  ? execlist_run_job+0x1c2/0x220 [xe]
>  ? report_bug+0x1c7/0x1d0
>  ? handle_bug+0x3c/0x70
>  ? exc_invalid_op+0x18/0x70
>  ? asm_exc_invalid_op+0x1a/0x20
>  ? execlist_run_job+0x1c2/0x220 [xe]
>  ? execlist_run_job+0x2c/0x220 [xe]
>  drm_sched_run_job_work+0x246/0x3f0 [gpu_sched]
>  ? process_one_work+0x18d/0x4e0
>  process_one_work+0x1f7/0x4e0
>  worker_thread+0x1da/0x3e0
>  ? __pfx_worker_thread+0x10/0x10
>  kthread+0xfe/0x130
>  ? __pfx_kthread+0x10/0x10
>  ret_from_fork+0x2c/0x50
>  ? __pfx_kthread+0x10/0x10
>  ret_from_fork_asm+0x1b/0x30
>  </TASK>
> 
> Fixes: 9b9529ce379a ("drm/xe: Rename engine to exec_queue")
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_execlist.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execlist.c
> index 1788e78caf5c..dece2785933c 100644
> --- a/drivers/gpu/drm/xe/xe_execlist.c
> +++ b/drivers/gpu/drm/xe/xe_execlist.c
> @@ -212,7 +212,7 @@ static void xe_execlist_port_wake_locked(struct xe_execlist_port *port,
>  static void xe_execlist_make_active(struct xe_execlist_exec_queue *exl)
>  {
>  	struct xe_execlist_port *port = exl->port;
> -	enum xe_exec_queue_priority priority = exl->active_priority;
> +	enum xe_exec_queue_priority priority = exl->q->sched_props.priority;
>  
>  	XE_WARN_ON(priority == XE_EXEC_QUEUE_PRIORITY_UNSET);
>  	XE_WARN_ON(priority < 0);
> -- 
> 2.34.1
> 

  reply	other threads:[~2024-02-22 21:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-22  3:59 [PATCH v2 0/2] Fix execlist mode Matthew Brost
2024-02-22  3:59 ` [PATCH v2 1/2] drm/xe: Fix execlist splat Matthew Brost
2024-02-22 21:40   ` Rodrigo Vivi [this message]
2024-02-22  3:59 ` [PATCH v2 2/2] drm/xe: Don't issue TLB invalidations for VMAs if using execlists Matthew Brost
2024-02-22 21:42   ` Rodrigo Vivi
2024-02-22 22:55     ` Matthew Brost
2024-02-22  4:30 ` ✓ CI.Patch_applied: success for Fix execlist mode (rev3) Patchwork
2024-02-22  4:30 ` ✓ CI.checkpatch: " Patchwork
2024-02-22  4:32 ` ✓ CI.KUnit: " Patchwork
2024-02-22  4:46 ` ✓ CI.Build: " Patchwork
2024-02-22  4:47 ` ✓ CI.Hooks: " Patchwork
2024-02-22  4:49 ` ✓ CI.checksparse: " 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=Zde_TLxu85rXLszE@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.