Re: [PATCH 1/4] ACPI/IORT: Check ATS capability in root complex nodes

2019-03-25 Thread Jean-Philippe Brucker
On 21/03/2019 16:00, Sinan Kaya wrote: > On 3/20/2019 1:36 PM, Jean-Philippe Brucker wrote: >>   err = pci_for_each_dma_alias(to_pci_dev(dev), >>    iort_pci_iommu_init, &info); >> + >> +    if (!err && !iort_pci_rc_supports_ats(node)) >> +    dev->iommu_

Re: [PATCH 1/4] ACPI/IORT: Check ATS capability in root complex nodes

2019-03-21 Thread Sinan Kaya
On 3/20/2019 1:36 PM, Jean-Philippe Brucker wrote: err = pci_for_each_dma_alias(to_pci_dev(dev), iort_pci_iommu_init, &info); + + if (!err && !iort_pci_rc_supports_ats(node)) + dev->iommu_fwspec->flag

[PATCH 1/4] ACPI/IORT: Check ATS capability in root complex nodes

2019-03-20 Thread Jean-Philippe Brucker
Root complex node in IORT has a bit telling whether it supports ATS or not. Store this bit in the IOMMU fwspec when setting up a device, so it can be accessed later by an IOMMU driver. Use the negative version (NO_ATS) at the moment because it's not clear if/how the bit needs to be integrated in o