[PATCH] drm/amdgpu: Add AMDGPU_GPU_PAGES_IN_CPU_PAGE define

Alex Deucher alexdeucher at gmail.com
Mon Jun 25 14:41:40 UTC 2018


On Mon, Jun 25, 2018 at 9:33 AM, Zhou, David(ChunMing)
<David1.Zhou at amd.com> wrote:
> current amdgpu driver indeed always set GPU PAGE SIZE is 4096.
> In fact, our gpu supports bigger page size like 64KB, just we don't use it.
> I remeber previous amdsoc(old android kernel driver) used 64KB.
>
> correct me if I'm wrong.

It's still 4k pages, but you can tweak the fragment size to make a TLB
entry cover multiple pages.

Alex

>
> send from Smartisan Pro
>
> Michel D鋘zer <michel at daenzer.net> 于 2018年6月25日 下午5:10写道:
>
> On 2018-06-25 03:56 AM, zhoucm1 wrote:
>> one question to you:
>>
>> Did you consider the case that GPU_PAGE_SIZE > CPU_PAGE_SIZE?
>
> That is never the case: AMDGPU_GPU_PAGE_SIZE is always 4096, and
> PAGE_SIZE is always >= 4096 (an integer multiple of it).
>
>
> --
> Earthling Michel Dänzer               |               http://www.amd.com
> Libre software enthusiast             |             Mesa and X developer
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
>


More information about the amd-gfx mailing list