lkml.org 
[lkml]   [2019]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 08/10] iommu/vt-d: Check whether device requires bounce buffer
From
Date
Hi,

On 4/23/19 12:47 AM, Christoph Hellwig wrote:
> On Sun, Apr 21, 2019 at 09:17:17AM +0800, Lu Baolu wrote:
>> +static inline bool device_needs_bounce(struct device *dev)
>> +{
>> + struct pci_dev *pdev = NULL;
>> +
>> + if (intel_no_bounce)
>> + return false;
>> +
>> + if (dev_is_pci(dev))
>> + pdev = to_pci_dev(dev);
>> +
>> + return pdev ? pdev->untrusted : false;
>> +}
>
> Again, this and the option should not be in a specific iommu driver.
>

The option of whether bounce is ignored should be in the specific iommu
driver. Or any other thought?

Best regards,
Lu Baolu

\
 
 \ /
  Last update: 2019-04-23 04:15    [W:0.083 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site