grumain.c (7e796a72a2691d7094fd62da61097294d0d59ce4) | grumain.c (b1b19fcfa417cf62447413d6e8b9b6598adf00b9) |
---|---|
1/* 2 * SN Platform GRU Driver 3 * 4 * DRIVER TABLE MANAGER + GRU CONTEXT LOAD/UNLOAD 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 307 unchanged lines hidden (view full) --- 316 atomic_set(>s->ts_refcnt, 1); 317 mutex_init(>s->ts_ctxlock); 318 gts->ts_cbr_au_count = cbr_au_count; 319 gts->ts_dsr_au_count = dsr_au_count; 320 gts->ts_user_options = options; 321 gts->ts_tsid = tsid; 322 gts->ts_ctxnum = NULLCTX; 323 gts->ts_tlb_int_select = -1; | 1/* 2 * SN Platform GRU Driver 3 * 4 * DRIVER TABLE MANAGER + GRU CONTEXT LOAD/UNLOAD 5 * 6 * This file is subject to the terms and conditions of the GNU General Public 7 * License. See the file "COPYING" in the main directory of this archive 8 * for more details. --- 307 unchanged lines hidden (view full) --- 316 atomic_set(>s->ts_refcnt, 1); 317 mutex_init(>s->ts_ctxlock); 318 gts->ts_cbr_au_count = cbr_au_count; 319 gts->ts_dsr_au_count = dsr_au_count; 320 gts->ts_user_options = options; 321 gts->ts_tsid = tsid; 322 gts->ts_ctxnum = NULLCTX; 323 gts->ts_tlb_int_select = -1; |
324 gts->ts_cch_req_slice = -1; |
|
324 gts->ts_sizeavail = GRU_SIZEAVAIL(PAGE_SHIFT); 325 if (vma) { 326 gts->ts_mm = current->mm; 327 gts->ts_vma = vma; 328 gts->ts_gms = gru_register_mmu_notifier(); 329 if (!gts->ts_gms) 330 goto err; 331 } --- 229 unchanged lines hidden (view full) --- 561 cch->tfm_fault_bit_enable = 562 (gts->ts_user_options == GRU_OPT_MISS_FMM_POLL 563 || gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); 564 cch->tlb_int_enable = (gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); 565 if (cch->tlb_int_enable) { 566 gts->ts_tlb_int_select = gru_cpu_fault_map_id(); 567 cch->tlb_int_select = gts->ts_tlb_int_select; 568 } | 325 gts->ts_sizeavail = GRU_SIZEAVAIL(PAGE_SHIFT); 326 if (vma) { 327 gts->ts_mm = current->mm; 328 gts->ts_vma = vma; 329 gts->ts_gms = gru_register_mmu_notifier(); 330 if (!gts->ts_gms) 331 goto err; 332 } --- 229 unchanged lines hidden (view full) --- 562 cch->tfm_fault_bit_enable = 563 (gts->ts_user_options == GRU_OPT_MISS_FMM_POLL 564 || gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); 565 cch->tlb_int_enable = (gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); 566 if (cch->tlb_int_enable) { 567 gts->ts_tlb_int_select = gru_cpu_fault_map_id(); 568 cch->tlb_int_select = gts->ts_tlb_int_select; 569 } |
570 if (gts->ts_cch_req_slice >= 0) { 571 cch->req_slice_set_enable = 1; 572 cch->req_slice = gts->ts_cch_req_slice; 573 } else { 574 cch->req_slice_set_enable =0; 575 } |
|
569 cch->tfm_done_bit_enable = 0; 570 cch->dsr_allocation_map = gts->ts_dsr_map; 571 cch->cbr_allocation_map = gts->ts_cbr_map; 572 573 if (is_kernel_context(gts)) { 574 cch->unmap_enable = 1; 575 cch->tfm_done_bit_enable = 1; 576 cch->cb_int_enable = 1; --- 303 unchanged lines hidden --- | 576 cch->tfm_done_bit_enable = 0; 577 cch->dsr_allocation_map = gts->ts_dsr_map; 578 cch->cbr_allocation_map = gts->ts_cbr_map; 579 580 if (is_kernel_context(gts)) { 581 cch->unmap_enable = 1; 582 cch->tfm_done_bit_enable = 1; 583 cch->cb_int_enable = 1; --- 303 unchanged lines hidden --- |