Add the following sysfs files to gt/gtN/.defaults/: * rps_min_freq_mhz * rps_max_freq_mhz v2: Correct gt/gtN/.defaults/* file names in commit message v3: Remove rps_boost_freq_mhz since it is not consumed by userspace Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Cc: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/cf6e483bf79f871c2c8c74af6005bf6a83a3a1ce.1658192398.git.ashutosh.dixit@intel.com
37 lines
833 B
C
37 lines
833 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __SYSFS_GT_H__
|
|
#define __SYSFS_GT_H__
|
|
|
|
#include <linux/ctype.h>
|
|
#include <linux/kobject.h>
|
|
|
|
#include "i915_gem.h" /* GEM_BUG_ON() */
|
|
#include "intel_gt_types.h"
|
|
|
|
struct intel_gt;
|
|
|
|
bool is_object_gt(struct kobject *kobj);
|
|
|
|
struct drm_i915_private *kobj_to_i915(struct kobject *kobj);
|
|
|
|
struct kobject *
|
|
intel_gt_create_kobj(struct intel_gt *gt,
|
|
struct kobject *dir,
|
|
const char *name);
|
|
|
|
static inline struct intel_gt *kobj_to_gt(struct kobject *kobj)
|
|
{
|
|
return container_of(kobj, struct intel_gt, sysfs_gt);
|
|
}
|
|
|
|
void intel_gt_sysfs_register(struct intel_gt *gt);
|
|
void intel_gt_sysfs_unregister(struct intel_gt *gt);
|
|
struct intel_gt *intel_gt_sysfs_get_drvdata(struct device *dev,
|
|
const char *name);
|
|
|
|
#endif /* SYSFS_GT_H */
|