From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: "Du, Changbin" <changbin.du@intel.com>,
Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/guc: Don't enable GuC when vGPU is active
Date: Wed, 17 Jan 2018 11:18:15 +0000 [thread overview]
Message-ID: <41a9c2bf-fd59-5b80-e6dc-5c3dd3b158b4@linux.intel.com> (raw)
In-Reply-To: <20180117023604.2qw3vxf6iwpxz5ar@intel.com>
On 17/01/2018 02:36, Du, Changbin wrote:
> On Tue, Jan 16, 2018 at 11:17:39AM +0100, Michal Wajdeczko wrote:
>> On Tue, 16 Jan 2018 10:53:47 +0100, Joonas Lahtinen
>> <joonas.lahtinen@linux.intel.com> wrote:
>>
>>> On Mon, 2018-01-15 at 13:10 +0200, Tomi Sarvela wrote:
>>>> On 15/01/18 12:28, Zhenyu Wang wrote:
>>>>> On 2018.01.15 12:07:28 +0200, Joonas Lahtinen wrote:
>>>>>> On Fri, 2018-01-12 at 14:08 +0800, Du, Changbin wrote:
>>>>>>> On Fri, Jan 12, 2018 at 11:32:30AM +0530, Sagar Arun Kamble wrote:
>>>>>>>> Is skl-gvtdvm not having vGPU active?
>>>>>>>>
>>>>>>>> It has flag X86_FEATURE_HYPERVISOR set however it might be
>>>> set on host too
>>>>>>>> so relying intel_vgpu_active().
>>>>>>>>
>>>>>>>
>>>>>>> Do you mean flag X86_FEATURE_HYPERVISOR is set on host, too?
>>>> This is weird since this
>>>>>>> flag indicates the OS is running on a hypervisor.
>>>>>>
>>>>>> + CI folks and Zhenyu
>>>>>>
>>>>>> Somehow, magically, the virtual machine seems to starts skipping all
>>>>>> tests when GuC is disabled?
>>>>>>
>>>>>> Has somebody actually validated that the tests results are valid for
>>>>>> the virtual machine? Or is this a one-off CI quirk?
>>>>>
>>>>> Are these tests really run in VM with GVT-g enabled on host?
>>>>
>>>> These tests are ran on VM running on GVT-d (as name implies), not GVT-g.
>>>
>>> I don't still understand how explicitly disabling GuC could make all
>>> the tests skip on a machine that didn't use GuC to begin with. There
>>> must be something wrong in the initialization code.
>>>
>>> That intel_vgpu_active() check by my logic should not trigger in GVT-d
>>> (because we don't have virtual GPU, we have the real deal, just without
>>> stolen etc.), so I'm bit baffled.
>>
>> True. This intel_vgpu_active() check added by Sagar is not active in these
>> scenarios so we keep turn on GuC on that platform (as default from auto)
>>
>> - param(int, enable_guc, 0) \
>> + param(int, enable_guc, -1) \
>>
>> [drm:intel_uc_sanitize_options [i915]] enable_guc=3 (submission:yes huc:yes)
>>
>> but since i915_memcpy_from_wc() check still fails due to running under
>> hypervisor (introduced by "drm/i915: Do not enable movntdqa optimization
>> in hypervisor guest"), initialization of the GuC log fails
>>
>> WARN_ON(!i915_memcpy_from_wc(((void *)0), ((void *)0), 0))
>> WARNING: CPU: 0 PID: 228 at drivers/gpu/drm/i915/intel_guc_log.c:527
>> intel_guc_log_create
>>
>> and that is treated as driver load error (as we no longer support silent
>> fallback from GuC to execlist, if GuC was selected using auto(-1) or
>> explicit
>> load(1) modparam option.
>>
>> On the other mail thread there was proposal to make GuC log optional in
>> case of running under hypervisor and disable it, but in my opinion it is
>> not a solution but just short term fix, as we want to keep GuC log enabled
>> since it works as is with other hypervisors.
>>
>> Michal
>
> To enable Guc logging on hypervisor guest, I think the correct solution is to
> fallback to memcpy() after i915_has_memcpy_from_wc(). At least for kvm, it needs
> this change considering GPU passthrough.
Perhaps a stupid question - but we are not talking about a scheme where
multiple guests could read the same GuC log?
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-01-17 11:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 16:31 [PATCH 1/2] drm/i915/guc: Don't enable GuC when vGPU is active Sagar Arun Kamble
2018-01-11 16:31 ` [PATCH 2/2] HAX: drm/i915/uc: Enable GuC/HuC for CI Sagar Arun Kamble
2018-01-11 16:57 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/guc: Don't enable GuC when vGPU is active Patchwork
2018-01-12 6:02 ` Sagar Arun Kamble
2018-01-12 6:08 ` Du, Changbin
2018-01-15 10:07 ` Joonas Lahtinen
2018-01-15 10:28 ` Zhenyu Wang
2018-01-15 11:10 ` Tomi Sarvela
2018-01-16 9:53 ` Joonas Lahtinen
2018-01-16 10:17 ` Michal Wajdeczko
2018-01-17 2:36 ` Du, Changbin
2018-01-17 11:18 ` Tvrtko Ursulin [this message]
2018-01-18 9:42 ` Joonas Lahtinen
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=41a9c2bf-fd59-5b80-e6dc-5c3dd3b158b4@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=changbin.du@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=michal.wajdeczko@intel.com \
--cc=tomi.p.sarvela@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