]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Align GEM objects GPU VA to 2MB
authorRob Herring <robh@kernel.org>
Mon, 10 Jun 2019 16:58:06 +0000 (10:58 -0600)
committerRob Herring <robh@kernel.org>
Fri, 14 Jun 2019 15:15:14 +0000 (09:15 -0600)
commit32de047589ce9eb45e243d0bd8c14a1f1e32479c
treebfa33ffbee624ce407edd8b00f7d4f9de14ee0cc
parent1435eefeb0ac2db1ba9b3fa91f0676cec990969e
drm/panfrost: Align GEM objects GPU VA to 2MB

In order to increase the chances of using 2MB pages, we need to align the
GPU VA mapping to 2MB. Only do this if the object size is 2MB or more.

Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Steven Price <steven.price@arm.com>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190610165806.24854-1-robh@kernel.org
drivers/gpu/drm/panfrost/panfrost_gem.c