Home
last modified time | relevance | path

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

/drivers/misc/sgi-gru/
Dgrumain.c84 static int gru_wrap_asid(struct gru_state *gru) in gru_wrap_asid() argument
86 gru_dbg(grudev, "gid %d\n", gru->gs_gid); in gru_wrap_asid()
88 gru->gs_asid_gen++; in gru_wrap_asid()
93 static int gru_reset_asid_limit(struct gru_state *gru, int asid) in gru_reset_asid_limit() argument
97 gru_dbg(grudev, "gid %d, asid 0x%x\n", gru->gs_gid, asid); in gru_reset_asid_limit()
101 asid = gru_wrap_asid(gru); in gru_reset_asid_limit()
102 gru_flush_all_tlb(gru); in gru_reset_asid_limit()
103 gid = gru->gs_gid; in gru_reset_asid_limit()
106 if (!gru->gs_gts[i] || is_kernel_context(gru->gs_gts[i])) in gru_reset_asid_limit()
108 inuse_asid = gru->gs_gts[i]->ts_gms->ms_asids[gid].mt_asid; in gru_reset_asid_limit()
[all …]
Dgrutlbpurge.c47 static inline int get_off_blade_tgh(struct gru_state *gru) in get_off_blade_tgh() argument
51 n = GRU_NUM_TGH - gru->gs_tgh_first_remote; in get_off_blade_tgh()
53 n += gru->gs_tgh_first_remote; in get_off_blade_tgh()
57 static inline int get_on_blade_tgh(struct gru_state *gru) in get_on_blade_tgh() argument
59 return uv_blade_processor_id() >> gru->gs_tgh_local_shift; in get_on_blade_tgh()
63 *gru) in get_lock_tgh_handle()
69 if (uv_numa_blade_id() == gru->gs_blade_id) in get_lock_tgh_handle()
70 n = get_on_blade_tgh(gru); in get_lock_tgh_handle()
72 n = get_off_blade_tgh(gru); in get_lock_tgh_handle()
73 tgh = get_tgh_by_index(gru, n); in get_lock_tgh_handle()
[all …]
Dgrufile.c230 static void gru_init_chiplet(struct gru_state *gru, unsigned long paddr, in gru_init_chiplet() argument
233 spin_lock_init(&gru->gs_lock); in gru_init_chiplet()
234 spin_lock_init(&gru->gs_asid_lock); in gru_init_chiplet()
235 gru->gs_gru_base_paddr = paddr; in gru_init_chiplet()
236 gru->gs_gru_base_vaddr = vaddr; in gru_init_chiplet()
237 gru->gs_gid = blade_id * GRU_CHIPLETS_PER_BLADE + chiplet_id; in gru_init_chiplet()
238 gru->gs_blade = gru_base[blade_id]; in gru_init_chiplet()
239 gru->gs_blade_id = blade_id; in gru_init_chiplet()
240 gru->gs_chiplet_id = chiplet_id; in gru_init_chiplet()
241 gru->gs_cbr_map = (GRU_CBR_AU == 64) ? ~0 : (1UL << GRU_CBR_AU) - 1; in gru_init_chiplet()
[all …]
Dgrukdump.c67 static int gru_dump_tfm(struct gru_state *gru, in gru_dump_tfm() argument
77 tfm = get_tfm(gru->gs_gru_base_vaddr, i); in gru_dump_tfm()
87 static int gru_dump_tgh(struct gru_state *gru, in gru_dump_tgh() argument
97 tgh = get_tgh(gru->gs_gru_base_vaddr, i); in gru_dump_tgh()
107 static int gru_dump_context(struct gru_state *gru, int ctxnum, in gru_dump_context() argument
119 grubase = gru->gs_gru_base_vaddr; in gru_dump_context()
140 gts = gru->gs_gts[ctxnum]; in gru_dump_context()
164 hdr.gid = gru->gs_gid; in gru_dump_context()
177 struct gru_state *gru; in gru_dump_chiplet_request() local
191 gru = GID_TO_GRU(req.gid); in gru_dump_chiplet_request()
[all …]
Dgrufault.c141 static void get_clear_fault_map(struct gru_state *gru, in get_clear_fault_map() argument
148 tfm = get_tfm_for_cpu(gru, gru_cpu_fault_map_id()); in get_clear_fault_map()
309 static void gru_preload_tlb(struct gru_state *gru, in gru_preload_tlb() argument
338 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, in gru_preload_tlb()
355 static int gru_try_dropin(struct gru_state *gru, in gru_try_dropin() argument
428 gru_preload_tlb(gru, gts, atomic, vaddr, asid, write, tlb_preload_count, tfh, cbe); in gru_try_dropin()
439 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, vaddr, asid, in gru_try_dropin()
521 struct gru_state *gru; in gru_intr() local
530 gru = &gru_base[blade]->bs_grus[chiplet]; in gru_intr()
531 if (!gru) { in gru_intr()
[all …]
Dgruprocfs.c163 struct gru_state *gru = GID_TO_GRU(gid); in cch_seq_show() local
169 if (gru) in cch_seq_show()
171 ts = gru->gs_gts[i]; in cch_seq_show()
175 gru->gs_gid, gru->gs_blade_id, i, in cch_seq_show()
190 struct gru_state *gru = GID_TO_GRU(gid); in gru_seq_show() local
196 if (gru) { in gru_seq_show()
197 ctxfree = GRU_NUM_CCH - gru->gs_active_contexts; in gru_seq_show()
198 cbrfree = hweight64(gru->gs_cbr_map) * GRU_CBR_AU_SIZE; in gru_seq_show()
199 dsrfree = hweight64(gru->gs_dsr_map) * GRU_DSR_AU_BYTES; in gru_seq_show()
201 gru->gs_gid, gru->gs_blade_id, GRU_NUM_CCH - ctxfree, in gru_seq_show()
Dgrutables.h509 #define for_each_gru_on_blade(gru, nid, i) \ argument
510 for ((gru) = gru_base[nid]->bs_grus, (i) = 0; \
512 (i)++, (gru)++)
519 #define for_each_gts_on_gru(gts, gru, ctxnum) \ argument
521 if (((gts) = (gru)->gs_gts[ctxnum]))
533 #define gseg_physical_address(gru, ctxnum) \ argument
534 ((gru)->gs_gru_base_paddr + ctxnum * GRU_GSEG_STRIDE)
535 #define gseg_virtual_address(gru, ctxnum) \ argument
536 ((gru)->gs_gru_base_vaddr + ctxnum * GRU_GSEG_STRIDE)
622 extern void gru_tgh_flush_init(struct gru_state *gru);
[all …]
DMakefile4 obj-$(CONFIG_SGI_GRU) := gru.o
5 gru-y := grufile.o grumain.o grufault.o grutlbpurge.o gruprocfs.o grukservices.o gruhandles.o grukd…
Dgrukservices.c142 struct gru_state *gru; in gru_load_kernel_context() local
174 gru = bs->bs_kgts->ts_gru; in gru_load_kernel_context()
175 vaddr = gru->gs_gru_base_vaddr; in gru_load_kernel_context()
/drivers/misc/
DMakefile25 obj-$(CONFIG_SGI_GRU) += sgi-gru/