Re: [PATCH V1 net 2/4] net: ena: set initial DMA width to avoid intel iommu issue

2020-11-19 Thread Heiner Kallweit
Am 19.11.2020 um 20:18 schrieb Shay Agroskin: > > Heiner Kallweit writes: > >> Am 18.11.2020 um 23:35 schrieb Heiner Kallweit: >>> Am 18.11.2020 um 22:59 schrieb Shay Agroskin: The ENA driver uses the readless mechanism, which uses DMA, to find out what the DMA mask is supposed to be.

Re: [PATCH V1 net 2/4] net: ena: set initial DMA width to avoid intel iommu issue

2020-11-19 Thread Shay Agroskin
Heiner Kallweit writes: Am 18.11.2020 um 23:35 schrieb Heiner Kallweit: Am 18.11.2020 um 22:59 schrieb Shay Agroskin: The ENA driver uses the readless mechanism, which uses DMA, to find out what the DMA mask is supposed to be. If DMA is used without setting the dma_mask first, it causes

Re: [PATCH V1 net 2/4] net: ena: set initial DMA width to avoid intel iommu issue

2020-11-18 Thread Heiner Kallweit
Am 18.11.2020 um 23:35 schrieb Heiner Kallweit: > Am 18.11.2020 um 22:59 schrieb Shay Agroskin: >> The ENA driver uses the readless mechanism, which uses DMA, to find >> out what the DMA mask is supposed to be. >> >> If DMA is used without setting the dma_mask first, it causes the >> Intel IOMMU dr

Re: [PATCH V1 net 2/4] net: ena: set initial DMA width to avoid intel iommu issue

2020-11-18 Thread Heiner Kallweit
Am 18.11.2020 um 22:59 schrieb Shay Agroskin: > The ENA driver uses the readless mechanism, which uses DMA, to find > out what the DMA mask is supposed to be. > > If DMA is used without setting the dma_mask first, it causes the > Intel IOMMU driver to think that ENA is a 32-bit device and therefor

[PATCH V1 net 2/4] net: ena: set initial DMA width to avoid intel iommu issue

2020-11-18 Thread Shay Agroskin
The ENA driver uses the readless mechanism, which uses DMA, to find out what the DMA mask is supposed to be. If DMA is used without setting the dma_mask first, it causes the Intel IOMMU driver to think that ENA is a 32-bit device and therefore disables IOMMU passthrough permanently. This patch se