mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -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
@@ -10,6 +10,7 @@
|
||||
#include "xe_migrate.h"
|
||||
#include "xe_sa.h"
|
||||
#include "xe_tile.h"
|
||||
#include "xe_tile_sysfs.h"
|
||||
#include "xe_ttm_vram_mgr.h"
|
||||
|
||||
/**
|
||||
@@ -142,6 +143,8 @@ int xe_tile_init_noalloc(struct xe_tile *tile)
|
||||
if (IS_ERR(tile->mem.kernel_bb_pool))
|
||||
err = PTR_ERR(tile->mem.kernel_bb_pool);
|
||||
|
||||
xe_tile_sysfs_init(tile);
|
||||
|
||||
err_mem_access:
|
||||
xe_device_mem_access_put(tile_to_xe(tile));
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user