Merge 1546cd4bfd ("Merge tag 'ata-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata") into android-mainline
Steps on the way to 6.5-rc1 Change-Id: Ia463446d17457b876f2d910fda2c13745d5348e8 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ config ARCH_HAS_DMA_SET_MASK
|
||||
#
|
||||
# Select this option if the architecture needs special handling for
|
||||
# DMA_ATTR_WRITE_COMBINE. Normally the "uncached" mapping should be what
|
||||
# people thing of when saying write combine, so very few platforms should
|
||||
# people think of when saying write combine, so very few platforms should
|
||||
# need to enable this.
|
||||
#
|
||||
config ARCH_HAS_DMA_WRITE_COMBINE
|
||||
|
||||
+2
-2
@@ -43,13 +43,13 @@ void *dma_common_contiguous_remap(struct page *page, size_t size,
|
||||
void *vaddr;
|
||||
int i;
|
||||
|
||||
pages = kmalloc_array(count, sizeof(struct page *), GFP_KERNEL);
|
||||
pages = kvmalloc_array(count, sizeof(struct page *), GFP_KERNEL);
|
||||
if (!pages)
|
||||
return NULL;
|
||||
for (i = 0; i < count; i++)
|
||||
pages[i] = nth_page(page, i);
|
||||
vaddr = vmap(pages, count, VM_DMA_COHERENT, prot);
|
||||
kfree(pages);
|
||||
kvfree(pages);
|
||||
|
||||
return vaddr;
|
||||
}
|
||||
|
||||
@@ -717,6 +717,15 @@ static int swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr,
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
|
||||
static unsigned long mem_used(struct io_tlb_mem *mem)
|
||||
{
|
||||
return atomic_long_read(&mem->total_used);
|
||||
}
|
||||
|
||||
#else /* !CONFIG_DEBUG_FS */
|
||||
|
||||
static unsigned long mem_used(struct io_tlb_mem *mem)
|
||||
{
|
||||
int i;
|
||||
@@ -727,6 +736,8 @@ static unsigned long mem_used(struct io_tlb_mem *mem)
|
||||
return used;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
|
||||
phys_addr_t swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr,
|
||||
size_t mapping_size, size_t alloc_size,
|
||||
unsigned int alloc_align_mask, enum dma_data_direction dir,
|
||||
|
||||
Reference in New Issue
Block a user