Home
last modified time | relevance | path

Searched refs:gru (Results 1 – 10 of 10) sorted by relevance

/drivers/misc/sgi-gru/
Dgrumain.c97 static int gru_wrap_asid(struct gru_state *gru) in gru_wrap_asid() argument
99 gru_dbg(grudev, "gid %d\n", gru->gs_gid); in gru_wrap_asid()
101 gru->gs_asid_gen++; in gru_wrap_asid()
106 static int gru_reset_asid_limit(struct gru_state *gru, int asid) in gru_reset_asid_limit() argument
110 gru_dbg(grudev, "gid %d, asid 0x%x\n", gru->gs_gid, asid); in gru_reset_asid_limit()
114 asid = gru_wrap_asid(gru); in gru_reset_asid_limit()
115 gru_flush_all_tlb(gru); in gru_reset_asid_limit()
116 gid = gru->gs_gid; in gru_reset_asid_limit()
119 if (!gru->gs_gts[i] || is_kernel_context(gru->gs_gts[i])) in gru_reset_asid_limit()
121 inuse_asid = gru->gs_gts[i]->ts_gms->ms_asids[gid].mt_asid; in gru_reset_asid_limit()
[all …]
Dgrutlbpurge.c60 static inline int get_off_blade_tgh(struct gru_state *gru) in get_off_blade_tgh() argument
64 n = GRU_NUM_TGH - gru->gs_tgh_first_remote; in get_off_blade_tgh()
66 n += gru->gs_tgh_first_remote; in get_off_blade_tgh()
70 static inline int get_on_blade_tgh(struct gru_state *gru) in get_on_blade_tgh() argument
72 return uv_blade_processor_id() >> gru->gs_tgh_local_shift; in get_on_blade_tgh()
76 *gru) in get_lock_tgh_handle()
82 if (uv_numa_blade_id() == gru->gs_blade_id) in get_lock_tgh_handle()
83 n = get_on_blade_tgh(gru); in get_lock_tgh_handle()
85 n = get_off_blade_tgh(gru); in get_lock_tgh_handle()
86 tgh = get_tgh_by_index(gru, n); in get_lock_tgh_handle()
[all …]
Dgrufile.c237 static void gru_init_chiplet(struct gru_state *gru, unsigned long paddr, in gru_init_chiplet() argument
240 spin_lock_init(&gru->gs_lock); in gru_init_chiplet()
241 spin_lock_init(&gru->gs_asid_lock); in gru_init_chiplet()
242 gru->gs_gru_base_paddr = paddr; in gru_init_chiplet()
243 gru->gs_gru_base_vaddr = vaddr; in gru_init_chiplet()
244 gru->gs_gid = blade_id * GRU_CHIPLETS_PER_BLADE + chiplet_id; in gru_init_chiplet()
245 gru->gs_blade = gru_base[blade_id]; in gru_init_chiplet()
246 gru->gs_blade_id = blade_id; in gru_init_chiplet()
247 gru->gs_chiplet_id = chiplet_id; in gru_init_chiplet()
248 gru->gs_cbr_map = (GRU_CBR_AU == 64) ? ~0 : (1UL << GRU_CBR_AU) - 1; in gru_init_chiplet()
[all …]
Dgrukdump.c77 static int gru_dump_tfm(struct gru_state *gru, in gru_dump_tfm() argument
88 tfm = get_tfm(gru->gs_gru_base_vaddr, i); in gru_dump_tfm()
98 static int gru_dump_tgh(struct gru_state *gru, in gru_dump_tgh() argument
109 tgh = get_tgh(gru->gs_gru_base_vaddr, i); in gru_dump_tgh()
119 static int gru_dump_context(struct gru_state *gru, int ctxnum, in gru_dump_context() argument
131 grubase = gru->gs_gru_base_vaddr; in gru_dump_context()
149 gts = gru->gs_gts[ctxnum]; in gru_dump_context()
173 hdr.gid = gru->gs_gid; in gru_dump_context()
190 struct gru_state *gru; in gru_dump_chiplet_request() local
203 gru = GID_TO_GRU(req.gid); in gru_dump_chiplet_request()
[all …]
Dgrufault.c154 static void get_clear_fault_map(struct gru_state *gru, in get_clear_fault_map() argument
161 tfm = get_tfm_for_cpu(gru, gru_cpu_fault_map_id()); in get_clear_fault_map()
318 static void gru_preload_tlb(struct gru_state *gru, in gru_preload_tlb() argument
347 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, in gru_preload_tlb()
364 static int gru_try_dropin(struct gru_state *gru, in gru_try_dropin() argument
437 gru_preload_tlb(gru, gts, atomic, vaddr, asid, write, tlb_preload_count, tfh, cbe); in gru_try_dropin()
448 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, vaddr, asid, in gru_try_dropin()
530 struct gru_state *gru; in gru_intr() local
539 gru = &gru_base[blade]->bs_grus[chiplet]; in gru_intr()
540 if (!gru) { in gru_intr()
[all …]
Dgrutables.h522 #define for_each_gru_on_blade(gru, nid, i) \ argument
523 for ((gru) = gru_base[nid]->bs_grus, (i) = 0; \
525 (i)++, (gru)++)
532 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument
534 if (((gts) = (gru)->gs_gts[ctxnum]))
552 #define gseg_physical_address(gru, ctxnum) \ argument
553 ((gru)->gs_gru_base_paddr + ctxnum * GRU_GSEG_STRIDE)
554 #define gseg_virtual_address(gru, ctxnum) \ argument
555 ((gru)->gs_gru_base_vaddr + ctxnum * GRU_GSEG_STRIDE)
641 extern void gru_tgh_flush_init(struct gru_state *gru);
[all …]
Dgruprocfs.c180 struct gru_state *gru = GID_TO_GRU(gid); in cch_seq_show() local
187 if (gru) in cch_seq_show()
189 ts = gru->gs_gts[i]; in cch_seq_show()
193 gru->gs_gid, gru->gs_blade_id, i, in cch_seq_show()
208 struct gru_state *gru = GID_TO_GRU(gid); in gru_seq_show() local
216 if (gru) { in gru_seq_show()
217 ctxfree = GRU_NUM_CCH - gru->gs_active_contexts; in gru_seq_show()
218 cbrfree = hweight64(gru->gs_cbr_map) * GRU_CBR_AU_SIZE; in gru_seq_show()
219 dsrfree = hweight64(gru->gs_dsr_map) * GRU_DSR_AU_BYTES; in gru_seq_show()
221 gru->gs_gid, gru->gs_blade_id, GRU_NUM_CCH - ctxfree, in gru_seq_show()
DMakefile3 obj-$(CONFIG_SGI_GRU) := gru.o
4 gru-y := grufile.o grumain.o grufault.o grutlbpurge.o gruprocfs.o grukservices.o gruhandles.o grukd…
Dgrukservices.c154 struct gru_state *gru; in gru_load_kernel_context() local
181 gru = bs->bs_kgts->ts_gru; in gru_load_kernel_context()
182 vaddr = gru->gs_gru_base_vaddr; in gru_load_kernel_context()
/drivers/misc/
DMakefile29 obj-$(CONFIG_SGI_GRU) += sgi-gru/