From: Aaron Sierra <asierra@xes-inc.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: mchehab@kernel.org, iommu <iommu@lists.linux-foundation.org>,
hans verkuil <hans.verkuil@cisco.com>,
bingbu cao <bingbu.cao@intel.com>,
rajmohan mani <rajmohan.mani@intel.com>,
yong zhi <yong.zhi@intel.com>,
tian shu qiu <tian.shu.qiu@intel.com>,
linux-media@vger.kernel.org
Subject: Re: [PATCH 1/1] iova: Allow compiling the library without IOMMU support
Date: Thu, 3 Jan 2019 15:33:20 -0600 (CST) [thread overview]
Message-ID: <1276926960.401168.1546551200268.JavaMail.zimbra@xes-inc.com> (raw)
In-Reply-To: <20190103201126.zzqpn2eylm4m2zxn@mara.localdomain>
----- Original Message -----
> From: "Sakari Ailus" <sakari.ailus@linux.intel.com>
> Sent: Thursday, January 3, 2019 2:11:27 PM
Hi Laurent and Sakari,
I don't have much else to offer here, but wanted to second Sakari's
use case below.
> Hi Laurent,
>
> On Thu, Jan 03, 2019 at 12:52:00AM +0200, Laurent Pinchart wrote:
>> Hi Sakari,
>>
>> Thank you for the patch.
>>
>> On Wednesday, 2 January 2019 23:16:57 EET Sakari Ailus wrote:
>> > Drivers such as the Intel IPU3 ImgU driver use the IOVA library to manage
>> > the device's own virtual address space while not implementing the IOMMU
>> > API.
>>
>> Why is that ? Could the IPU3 IOMMU be implemented as an IOMMU driver ?
>
> You could do that, but:
>
> - it's a single PCI device so there's no advantage in doing so and
I also use the IOVA library for a PCI device (PCIe-VME bridge) that has
IOMMU features, but isn't a general purpose IOMMU. I am eagerly following
along.
-Aaron
> - doing that would render the device inoperable if an IOMMU is enabled in
> the system, as chaining IOMMUs is not supported in the IOMMU framework
> AFAIK.
>
>>
>> > Currently the IOVA library is only compiled if the IOMMU support is
>> > enabled, resulting into a failure during linking due to missing symbols.
>> >
>> > Fix this by defining IOVA library Kconfig bits independently of IOMMU
>> > support configuration, and descending to the iommu directory
>> > unconditionally during the build.
>> >
>> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
next prev parent reply other threads:[~2019-01-03 21:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-02 21:16 [PATCH 1/1] iova: Allow compiling the library without IOMMU support Sakari Ailus
2019-01-02 22:52 ` Laurent Pinchart
2019-01-03 20:11 ` Sakari Ailus
2019-01-03 21:33 ` Aaron Sierra [this message]
2019-01-11 11:27 ` Joerg Roedel
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=1276926960.401168.1546551200268.JavaMail.zimbra@xes-inc.com \
--to=asierra@xes-inc.com \
--cc=bingbu.cao@intel.com \
--cc=hans.verkuil@cisco.com \
--cc=iommu@lists.linux-foundation.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rajmohan.mani@intel.com \
--cc=sakari.ailus@linux.intel.com \
--cc=tian.shu.qiu@intel.com \
--cc=yong.zhi@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