Re: [PATCH 5/5] media: ipu6: use PFN_UP() and sg_virt() for code simplicity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 14, 2024 at 11:47:32AM +0800, bingbu.cao@xxxxxxxxx wrote:
> +++ b/drivers/media/pci/intel/ipu6/ipu6-dma.c
> @@ -139,7 +139,7 @@ void ipu6_dma_sync_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
>  	int i;
>  
>  	for_each_sg(sglist, sg, nents, i)
> -		clflush_cache_range(page_to_virt(sg_page(sg)), sg->length);
> +		clflush_cache_range(sg_virt(sg), sg->length);

Not new in this code, but what guarantees that this driver never sees
highmem?





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux