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

Alyssa Rosenzweig alyssa at collabora.com
Tue Aug 23 02:51:09 UTC 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 dri-devel mailing list