aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grufault.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-gru/grufault.c')
-rw-r--r--drivers/misc/sgi-gru/grufault.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c
index a9f0cf483005..a69d119921ff 100644
--- a/drivers/misc/sgi-gru/grufault.c
+++ b/drivers/misc/sgi-gru/grufault.c
@@ -763,6 +763,16 @@ int gru_set_context_option(unsigned long arg)
763 return -EINVAL; 763 return -EINVAL;
764 764
765 switch (req.op) { 765 switch (req.op) {
766 case sco_blade_chiplet:
767 /* Select blade/chiplet for GRU context */
768 if (req.val1 < -1 || req.val1 >= GRU_MAX_BLADES || !gru_base[req.val1] ||
769 req.val0 < -1 || req.val0 >= GRU_CHIPLETS_PER_HUB) {
770 ret = -EINVAL;
771 } else {
772 gts->ts_user_blade_id = req.val1;
773 gts->ts_user_chiplet_id = req.val0;
774 }
775 break;
766 case sco_gseg_owner: 776 case sco_gseg_owner:
767 /* Register the current task as the GSEG owner */ 777 /* Register the current task as the GSEG owner */
768 gts->ts_tgid_owner = current->tgid; 778 gts->ts_tgid_owner = current->tgid;