From: Lu Baolu <baolu.lu@linux.intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>,
Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
baolu.lu@linux.intel.com
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Use per device iommu check
Date: Wed, 10 Nov 2021 15:25:58 +0800 [thread overview]
Message-ID: <de8337fc-09c8-3c9c-1e30-34737afa50a8@linux.intel.com> (raw)
In-Reply-To: <bcb8736d-a46a-a756-e6ca-7872a21b075c@linux.intel.com>
On 2021/11/10 1:35, Tvrtko Ursulin wrote:
>
> On 09/11/2021 17:19, Lucas De Marchi wrote:
>> On Tue, Nov 09, 2021 at 12:17:59PM +0000, Tvrtko Ursulin wrote:
>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>
>>> On igfx + dgfx setups, it appears that intel_iommu=igfx_off option only
>>> disables the igfx iommu. Stop relying on global intel_iommu_gfx_mapped
>>> and probe presence of iommu domain per device to accurately reflect its
>>> status.
>>
>> nice, I was just starting to look into thus but for another reason: we
>> are adding support for other archs, like aarch64, and the global from
>> here
>> was a problem
>
> Yes I realized the other iommu angle as well. To do this properly we
> need to sort the intel_vtd_active call sites into at least two buckets -
> which are truly about VT-d and which are just IOMMU.
>
> For instance the THP decision in i915_gemfs.co would be "are we behind
> any iommu". Some other call sites are possibly only about the bugs in
> the igfx iommu. Not sure if there is a third bucket for any potential
> differences between igfx iommu and other Intel iommu in case of dgfx.
>
> I'd like to hear from Baolu as well to confirm if intel_iommu driver is
> handling igfx + dgfx correctly in respect to the two global variables I
> mention in the commit message.
I strongly agree that the drivers should call the IOMMU interface
directly for portability. For Intel graphic driver, we have two issues:
#1) driver asks vt-d driver for identity map with intel_iommu=igfx_off.
#2) driver query the status with a global intel_iommu_gfx_mapped.
We need to solve these two problems step by step. This patch is
definitely a good start point.
Best regards,
baolu
next prev parent reply other threads:[~2021-11-10 7:26 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 12:17 [Intel-gfx] [PATCH] drm/i915: Use per device iommu check Tvrtko Ursulin
2021-11-09 14:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-11-09 16:23 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2021-11-09 17:19 ` [Intel-gfx] [PATCH] " Lucas De Marchi
2021-11-09 17:35 ` Tvrtko Ursulin
2021-11-10 7:25 ` Lu Baolu [this message]
2021-11-10 9:35 ` Tvrtko Ursulin
2021-11-10 12:16 ` Robin Murphy
2021-11-10 12:26 ` Lu Baolu
2021-11-10 7:12 ` Lu Baolu
2021-11-10 9:30 ` Tvrtko Ursulin
2021-11-10 12:04 ` Lu Baolu
2021-11-10 12:08 ` Tvrtko Ursulin
2021-11-10 12:35 ` Lu Baolu
2021-11-10 14:11 ` Tvrtko Ursulin
2021-11-10 14:37 ` Robin Murphy
2021-11-11 15:18 ` Tvrtko Ursulin
2021-11-12 0:58 ` Lu Baolu
2021-11-12 14:10 ` Tvrtko Ursulin
2021-11-11 15:06 ` Tvrtko Ursulin
2021-11-12 0:53 ` Lu Baolu
2021-11-12 13:40 ` Tvrtko Ursulin
2021-11-25 10:00 ` Tvrtko Ursulin
2021-11-10 8:00 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Use per device iommu check (rev2) Patchwork
-- strict thread matches above, loose matches on Subject: below --
2021-11-25 10:42 [Intel-gfx] [PATCH] drm/i915: Use per device iommu check Tvrtko Ursulin
2021-11-25 11:47 ` Robin Murphy
2021-11-26 8:26 ` Lu Baolu
2021-11-26 14:00 ` Tvrtko Ursulin
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=de8337fc-09c8-3c9c-1e30-34737afa50a8@linux.intel.com \
--to=baolu.lu@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=tvrtko.ursulin@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