On 30/09/2025 12:34, Boris Brezillon wrote:
On Mon, 29 Sep 2025 22:03:14 +0200
Loïc Molinari <[email protected]> wrote:
diff --git a/drivers/gpu/drm/panthor/panthor_device.h
b/drivers/gpu/drm/panthor/panthor_device.h
index 4fc7cf2aeed5..54ca61567426 100644
--- a/drivers/gpu/drm/panthor/panthor_device.h
+++ b/drivers/gpu/drm/panthor/panthor_device.h
@@ -135,6 +135,9 @@ struct panthor_device {
/** @devfreq: Device frequency scaling management data. */
struct panthor_devfreq *devfreq;
+ /** @huge_mnt: tmpfs mount point with Transparent Hugepage enabled. */
+ struct vfsmount *huge_mnt;
Now that we have a helper to create a huge mountpoint, wouldn't it
make sense to have this field in drm_device instead of having each
driver add a huge_mnt field to their <driver>_device object.
Not sure this should be enforced for all DRM drivers since most of them
don't create separate huge mountpoints (only 4 for now including this
patchset) and I guess some maintainers might prefer to depend on the
sysfs interace to enable huge pages.
+
/** @unplug: Device unplug related fields. */
struct {
/** @lock: Lock used to serialize unplug operations. */
Loïc