[PATCH 6/9] swiotlb: refactor swiotlb_tbl_map_single

Konrad Rzeszutek Wilk konrad.wilk at oracle.com
Mon Feb 22 14:29:37 EST 2021


> > +static int find_slots(struct device *dev, size_t alloc_size)
> > +{
> > +	unsigned long boundary_mask = dma_get_seg_boundary(dev);
> > +	dma_addr_t tbl_dma_addr =
> > +		phys_to_dma_unencrypted(dev, io_tlb_start) & boundary_mask;
> > +	unsigned int max_slots = get_max_slots(boundary_mask);
> 
> 'max_slots' should be 'unsigned long' here. Breaks SWIOTLB on RPi4. Do you want
> me to send a fix or you prefer editing the patch?

I can roll it in. Thx!



More information about the Linux-nvme mailing list