mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/xe: Add sysfs entry for tile
We have recently introduced tile for each gpu, so lets add sysfs entry per tile for userspace to provide required information specific to tile. V5: - define ktype as const V4: - Reorder headers - Aravind V3: - Make API to return void and add drm_warn - Aravind V2: - Add logs in failure path Reviewed-by: Aravind Iddamsetty <aravind.iddamsetty@intel.com> Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
5572a00468
commit
e5a845fd8f
19
drivers/gpu/drm/xe/xe_tile_sysfs.h
Normal file
19
drivers/gpu/drm/xe/xe_tile_sysfs.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* Copyright © 2023 Intel Corporation
|
||||
*/
|
||||
|
||||
#ifndef _XE_TILE_SYSFS_H_
|
||||
#define _XE_TILE_SYSFS_H_
|
||||
|
||||
#include "xe_tile_sysfs_types.h"
|
||||
|
||||
void xe_tile_sysfs_init(struct xe_tile *tile);
|
||||
|
||||
static inline struct xe_tile *
|
||||
kobj_to_tile(struct kobject *kobj)
|
||||
{
|
||||
return container_of(kobj, struct kobj_tile, base)->tile;
|
||||
}
|
||||
|
||||
#endif /* _XE_TILE_SYSFS_H_ */
|
||||
Reference in New Issue
Block a user