mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
Introduce the 'panthor.transparent_hugepage' boolean module parameter (false by default). When the parameter is set to true, a new tmpfs mountpoint is created and mounted using the 'huge=within_size' option. It's then used at GEM object creation instead of the default 'shm_mnt' mountpoint in order to enable Transparent Hugepage (THP) for the object (without having to rely on a system wide parameter). v3: - use huge tmpfs mountpoint in drm_device v4: - fix builds with CONFIG_TRANSPARENT_HUGEPAGE=n - clean up mountpoint creation error handling - print negative error value v5: - use drm_gem_has_huge_tmp() helper - get rid of CONFIG_TRANSPARENT_HUGEPAGE ifdefs v9: - replace drm_gem_has_huge_tmp() by drm_gem_get_huge_tmp() v11: - enable 'panthor.transparent_hugepage' by default Signed-off-by: Loïc Molinari <loic.molinari@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://patch.msgid.link/20251205182231.194072-9-loic.molinari@collabora.com Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
10 lines
206 B
C
10 lines
206 B
C
/* SPDX-License-Identifier: GPL-2.0 or MIT */
|
|
/* Copyright 2025 Amazon.com, Inc. or its affiliates */
|
|
|
|
#ifndef __PANTHOR_DRV_H__
|
|
#define __PANTHOR_DRV_H__
|
|
|
|
extern bool panthor_transparent_hugepage;
|
|
|
|
#endif
|