Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Hajda <andrzej.hajda@intel.com>
To: "Das, Nirmoy" <nirmoy.das@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>,
	chris.p.wilson@linux.intel.com,
	Matthew Auld <matthew.auld@intel.com>,
	Nirmoy Das <nirmoy.das@intel.com>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/gt: perform uc late init after probe error injection
Date: Fri, 17 Mar 2023 10:15:33 +0100	[thread overview]
Message-ID: <1f460864-0195-aea3-fa22-60cd7a6cdb3e@intel.com> (raw)
In-Reply-To: <3958487c-1110-aa2b-2b53-56a3fe23bf9a@linux.intel.com>

On 15.03.2023 11:05, Das, Nirmoy wrote:
> 
> On 3/14/2023 4:19 PM, Andrzej Hajda wrote:
>> Probe pseudo errors should be injected only in places where real errors
>> can be encountered, otherwise unwinding code can be broken.
>> Placing intel_uc_init_late before i915_inject_probe_error violated
>> this rule, resulting in following bug:
>> __intel_gt_disable:655 GEM_BUG_ON(intel_gt_pm_is_awake(gt))
>>
>> Fixes: 481d458caede ("drm/i915/guc: Add golden context to GuC ADS")
>> Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
> Acked-by: Nirmoy Das <nirmoy.das@intel.com>

Thx Nirmoy and Andi, pushed.

Regards
Andrzej

>> ---
>>   drivers/gpu/drm/i915/gt/intel_gt.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/gt/intel_gt.c 
>> b/drivers/gpu/drm/i915/gt/intel_gt.c
>> index 6ca944d01eb677..38c62e4ad3eba2 100644
>> --- a/drivers/gpu/drm/i915/gt/intel_gt.c
>> +++ b/drivers/gpu/drm/i915/gt/intel_gt.c
>> @@ -736,12 +736,12 @@ int intel_gt_init(struct intel_gt *gt)
>>       if (err)
>>           goto err_gt;
>> -    intel_uc_init_late(&gt->uc);
>> -
>>       err = i915_inject_probe_error(gt->i915, -EIO);
>>       if (err)
>>           goto err_gt;
>> +    intel_uc_init_late(&gt->uc);
>> +
>>       intel_migrate_init(&gt->migrate, gt);
>>       goto out_fw;


  reply	other threads:[~2023-03-17  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-14 15:19 [Intel-gfx] [PATCH] drm/i915/gt: perform uc late init after probe error injection Andrzej Hajda
2023-03-14 15:33 ` Andi Shyti
2023-03-15 10:05 ` Das, Nirmoy
2023-03-17  9:15   ` Andrzej Hajda [this message]
2023-03-17  1:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: perform uc late init after probe error injection (rev2) Patchwork
2023-03-17  4:56 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=1f460864-0195-aea3-fa22-60cd7a6cdb3e@intel.com \
    --to=andrzej.hajda@intel.com \
    --cc=chris.p.wilson@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    --cc=nirmoy.das@intel.com \
    --cc=nirmoy.das@linux.intel.com \
    --cc=rodrigo.vivi@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