Skip to content

Commit ca7eb2c

Browse files
committed
iommu hack for DCP
This is not safe but it should work... Signed-off-by: Asahi Lina <[email protected]>
1 parent bf8488f commit ca7eb2c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/iommu/dma-iommu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,9 +1613,6 @@ static int iommu_dma_get_sgtable(struct device *dev, struct sg_table *sgt,
16131613
struct page *page;
16141614
int ret;
16151615

1616-
if (iovad->granule > PAGE_SIZE)
1617-
return -ENXIO;
1618-
16191616
if (is_vmalloc_addr(cpu_addr)) {
16201617
struct page **pages = dma_common_find_pages(cpu_addr);
16211618

0 commit comments

Comments
 (0)