grufault.c (92b39388eeb45326feb0fa8bd69dbbce66c9efbf) | grufault.c (b1b19fcfa417cf62447413d6e8b9b6598adf00b9) |
---|---|
1/* 2 * SN Platform GRU Driver 3 * 4 * FAULT HANDLER FOR GRU DETECTED TLB MISSES 5 * 6 * This file contains code that handles TLB misses within the GRU. 7 * These misses are reported either via interrupts or user polling of 8 * the user CB. --- 755 unchanged lines hidden (view full) --- 764 if (!gts) 765 return -EINVAL; 766 767 switch (req.op) { 768 case sco_gseg_owner: 769 /* Register the current task as the GSEG owner */ 770 gts->ts_tgid_owner = current->tgid; 771 break; | 1/* 2 * SN Platform GRU Driver 3 * 4 * FAULT HANDLER FOR GRU DETECTED TLB MISSES 5 * 6 * This file contains code that handles TLB misses within the GRU. 7 * These misses are reported either via interrupts or user polling of 8 * the user CB. --- 755 unchanged lines hidden (view full) --- 764 if (!gts) 765 return -EINVAL; 766 767 switch (req.op) { 768 case sco_gseg_owner: 769 /* Register the current task as the GSEG owner */ 770 gts->ts_tgid_owner = current->tgid; 771 break; |
772 case sco_cch_req_slice: 773 /* Set the CCH slice option */ 774 gts->ts_cch_req_slice = req.val1 & 3; 775 break; |
|
772 default: 773 ret = -EINVAL; 774 } 775 gru_unlock_gts(gts); 776 777 return ret; 778} | 776 default: 777 ret = -EINVAL; 778 } 779 gru_unlock_gts(gts); 780 781 return ret; 782} |