Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
/linux-6.6.21/Documentation/devicetree/bindings/arm/
Drockchip.yaml253 - const: google,gru
280 - const: google,gru-rev15
281 - const: google,gru-rev14
282 - const: google,gru-rev13
283 - const: google,gru-rev12
284 - const: google,gru-rev11
285 - const: google,gru-rev10
286 - const: google,gru-rev9
287 - const: google,gru-rev8
288 - const: google,gru-rev7
[all …]
/linux-6.6.21/Documentation/devicetree/bindings/sound/
Drockchip,rk3399-gru-sound.txt4 - compatible: "rockchip,rk3399-gru-sound"
18 compatible = "rockchip,rk3399-gru-sound";
/linux-6.6.21/arch/arm64/boot/dts/rockchip/
DMakefile36 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb
37 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
38 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-dumo.dtb
39 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-inx.dtb
40 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-kd.dtb
Drk3399-gru-scarlet-kd.dts10 #include "rk3399-gru-scarlet.dtsi"
27 "google,scarlet", "google,gru", "rockchip,rk3399";
Drk3399-gru-scarlet-dumo.dts10 #include "rk3399-gru-scarlet.dtsi"
25 "google,scarlet", "google,gru", "rockchip,rk3399";
Drk3399-gru-bob.dts9 #include "rk3399-gru-chromebook.dtsi"
18 "google,bob", "google,gru", "rockchip,rk3399";
Drk3399-gru-scarlet-inx.dts10 #include "rk3399-gru-scarlet.dtsi"
38 "google,scarlet", "google,gru", "rockchip,rk3399";
Drk3399-gru-kevin.dts9 #include "rk3399-gru-chromebook.dtsi"
26 "google,kevin", "google,gru", "rockchip,rk3399";
222 /* Adjustments to things in the gru baseboard */
Drk3399-gru-chromebook.dtsi8 #include "rk3399-gru.dtsi"
248 * set this here, because rk3399-gru.dtsi ensures we can generate this
Drk3399-gru-scarlet.dtsi8 #include "rk3399-gru.dtsi"
800 &clk_32k /* This pin is always 32k on gru boards */
Drk3399-gru.dtsi288 compatible = "rockchip,rk3399-gru-sound";
700 &clk_32k /* This pin is always 32k on gru boards */
/linux-6.6.21/sound/soc/rockchip/
DMakefile16 snd-soc-rk3399-gru-sound-objs := rk3399_gru_sound.o
21 obj-$(CONFIG_SND_SOC_RK3399_GRU_SOUND) += snd-soc-rk3399-gru-sound.o
/linux-6.6.21/drivers/misc/
DMakefile25 obj-$(CONFIG_SGI_GRU) += sgi-gru/
/linux-6.6.21/drivers/gpu/drm/ci/
Dtest.yml161 DEVICE_TYPE: rk3399-gru-kevin
166 RUNNER_TAG: mesa-ci-x86-64-lava-rk3399-gru-kevin
/linux-6.6.21/arch/x86/kernel/apic/
Dx2apic_uv_x.c899 union uvh_rh_gam_gru_overlay_config_u gru; in map_gru_high() local
904 gru.v = uv_read_local_mmr(UVH_RH_GAM_GRU_OVERLAY_CONFIG); in map_gru_high()
908 gru.v = uv_read_local_mmr(UVH_RH10_GAM_GRU_OVERLAY_CONFIG); in map_gru_high()
916 if (!gru.s.enable) { in map_gru_high()
921 base = (gru.v & mask) >> shift; in map_gru_high()
/linux-6.6.21/Documentation/userspace-api/ioctl/
Dioctl-number.rst138 'G' 00-3F drivers/misc/sgi-gru/grulib.h conflict!

12