Commit 6471cd4d authored by Jack Steiner's avatar Jack Steiner Committed by Linus Torvalds

gru: delete user request for fetching chiplet status

Delete the user request for fetching the status of a GRU chiplet.  This
request has been made obsolete by other changes.  Note: this is not a
change to a user API - there are no compatibility issues with this change.
Signed-off-by: default avatarJack Steiner <steiner@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7e796a72
...@@ -182,41 +182,6 @@ static long gru_get_config_info(unsigned long arg) ...@@ -182,41 +182,6 @@ static long gru_get_config_info(unsigned long arg)
return 0; return 0;
} }
/*
* Get GRU chiplet status
*/
static long gru_get_chiplet_status(unsigned long arg)
{
struct gru_state *gru;
struct gru_chiplet_info info;
if (copy_from_user(&info, (void __user *)arg, sizeof(info)))
return -EFAULT;
if (info.node == -1)
info.node = numa_node_id();
if (info.node >= num_possible_nodes() ||
info.chiplet >= GRU_CHIPLETS_PER_HUB ||
info.node < 0 || info.chiplet < 0)
return -EINVAL;
info.blade = uv_node_to_blade_id(info.node);
gru = get_gru(info.blade, info.chiplet);
info.total_dsr_bytes = GRU_NUM_DSR_BYTES;
info.total_cbr = GRU_NUM_CB;
info.total_user_dsr_bytes = GRU_NUM_DSR_BYTES -
gru->gs_reserved_dsr_bytes;
info.total_user_cbr = GRU_NUM_CB - gru->gs_reserved_cbrs;
info.free_user_dsr_bytes = hweight64(gru->gs_dsr_map) *
GRU_DSR_AU_BYTES;
info.free_user_cbr = hweight64(gru->gs_cbr_map) * GRU_CBR_AU_SIZE;
if (copy_to_user((void __user *)arg, &info, sizeof(info)))
return -EFAULT;
return 0;
}
/* /*
* gru_file_unlocked_ioctl * gru_file_unlocked_ioctl
* *
...@@ -242,9 +207,6 @@ static long gru_file_unlocked_ioctl(struct file *file, unsigned int req, ...@@ -242,9 +207,6 @@ static long gru_file_unlocked_ioctl(struct file *file, unsigned int req,
case GRU_USER_UNLOAD_CONTEXT: case GRU_USER_UNLOAD_CONTEXT:
err = gru_user_unload_context(arg); err = gru_user_unload_context(arg);
break; break;
case GRU_GET_CHIPLET_STATUS:
err = gru_get_chiplet_status(arg);
break;
case GRU_USER_FLUSH_TLB: case GRU_USER_FLUSH_TLB:
err = gru_user_flush_tlb(arg); err = gru_user_flush_tlb(arg);
break; break;
......
...@@ -44,9 +44,6 @@ ...@@ -44,9 +44,6 @@
/* For user unload context */ /* For user unload context */
#define GRU_USER_UNLOAD_CONTEXT _IOWR(GRU_IOCTL_NUM, 9, void *) #define GRU_USER_UNLOAD_CONTEXT _IOWR(GRU_IOCTL_NUM, 9, void *)
/* For fetching GRU chiplet status */
#define GRU_GET_CHIPLET_STATUS _IOWR(GRU_IOCTL_NUM, 10, void *)
/* For dumpping GRU chiplet state */ /* For dumpping GRU chiplet state */
#define GRU_DUMP_CHIPLET_STATE _IOWR(GRU_IOCTL_NUM, 11, void *) #define GRU_DUMP_CHIPLET_STATE _IOWR(GRU_IOCTL_NUM, 11, void *)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment