Skip to content

Commit

Permalink
iommu hack for DCP
Browse files Browse the repository at this point in the history
This is not safe but it should work...

Signed-off-by: Asahi Lina <lina@asahilina.net>
  • Loading branch information
asahilina committed Mar 21, 2023
1 parent bebe37f commit 61599c1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/iommu/dma-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1605,9 +1605,6 @@ static int iommu_dma_get_sgtable(struct device *dev, struct sg_table *sgt,
struct page *page;
int ret;

if (iovad->granule > PAGE_SIZE)
return -ENXIO;

if (is_vmalloc_addr(cpu_addr)) {
struct page **pages = dma_common_find_pages(cpu_addr);

Expand Down

0 comments on commit 61599c1

Please sign in to comment.