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:
Tejas Upadhyay
2023-06-28 11:08:35 +05:30
committed by Rodrigo Vivi
parent 5572a00468
commit e5a845fd8f
7 changed files with 114 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
#ifndef _XE_TILE_H_
#define _XE_TILE_H_
#include "xe_device_types.h"
struct xe_tile;
int xe_tile_alloc(struct xe_tile *tile);