[PATCH] drm/panfrost: Update io-pgtable API

Alyssa Rosenzweig alyssa at collabora.com
Mon Aug 22 19:51:09 PDT 2022


> -static size_t get_pgsize(u64 addr, size_t size)
> +static size_t get_pgsize(u64 addr, size_t size, size_t *count)
>  {
> -	if (addr & (SZ_2M - 1) || size < SZ_2M)
> -		return SZ_4K;
> +	size_t blk_offset = -addr % SZ_2M;

addr is unsigned. if this is correct, it's magic.



More information about the linux-arm-kernel mailing list