| /linux/drivers/gpu/drm/i915/gt/uc/ |
| H A D | intel_gsc_uc.c | 18 struct intel_gsc_uc *gsc = container_of(work, typeof(*gsc), work); in gsc_work() local 19 struct intel_gt *gt = gsc_uc_to_gt(gsc); in gsc_work() 27 actions = gsc->gsc_work_actions; in gsc_work() 28 gsc->gsc_work_actions = 0; in gsc_work() 32 ret = intel_gsc_uc_fw_upload(gsc); in gsc_work() 47 * first and do proxy later. The GSC will ack the HuC auth and in gsc_work() 50 * Note that we can only do the GSC auth if the GuC auth was in gsc_work() 59 if (!intel_gsc_uc_fw_init_done(gsc)) { in gsc_work() 60 gt_err(gt, "Proxy request received with GSC not loaded!\n"); in gsc_work() 64 ret = intel_gsc_proxy_request_handler(gsc); in gsc_work() [all …]
|
| H A D | intel_gsc_uc.h | 20 /* GSC-specific additions */ 23 * The GSC has 3 version numbers: 39 struct i915_vma *local; /* private memory for GSC usage */ 41 struct intel_context *ce; /* for submission to GSC FW via GSC engine */ 60 void intel_gsc_uc_init_early(struct intel_gsc_uc *gsc); 61 int intel_gsc_uc_init(struct intel_gsc_uc *gsc); 62 void intel_gsc_uc_fini(struct intel_gsc_uc *gsc); 63 void intel_gsc_uc_suspend(struct intel_gsc_uc *gsc); 64 void intel_gsc_uc_resume(struct intel_gsc_uc *gsc); 65 void intel_gsc_uc_flush_work(struct intel_gsc_uc *gsc); [all …]
|
| H A D | intel_huc.c | 33 * - DG2: load and authentication are both performed via GSC. 37 * workloads via GSC. 63 * MEI-GSC load is an async process. The probing of the exposed aux device 68 * MEI-PXP + HuC load usually takes ~300ms, but if the GSC needs to be resumed 110 /* MEI-GSC init is done, now we wait for MEI-PXP to bind */ in gsc_init_done() 124 huc_notice(huc, "timed out waiting for MEI GSC\n"); in huc_delayed_load_timer_callback() 143 * On resume we don't have to wait for MEI-GSC to be re-probed, but we in huc_delayed_load_start() 160 * GSC device to come up to load the HuC. We arm the fence here in huc_delayed_load_start() 177 struct intel_gsc_intf *intf = &huc_to_gt(huc)->gsc.intf[0]; in gsc_notifier() 207 huc_err(huc, "failed to register GSC notifier %pe\n", ERR_PTR(ret)); in intel_huc_register_gsc_notifier() [all …]
|
| H A D | intel_gsc_proxy.h | 13 int intel_gsc_proxy_init(struct intel_gsc_uc *gsc); 14 void intel_gsc_proxy_fini(struct intel_gsc_uc *gsc); 15 int intel_gsc_proxy_request_handler(struct intel_gsc_uc *gsc); 16 void intel_gsc_proxy_irq_handler(struct intel_gsc_uc *gsc, u32 iir);
|
| H A D | intel_gsc_fw.h | 16 int intel_gsc_uc_fw_upload(struct intel_gsc_uc *gsc); 17 bool intel_gsc_uc_fw_init_done(struct intel_gsc_uc *gsc); 18 bool intel_gsc_uc_fw_proxy_init_done(struct intel_gsc_uc *gsc, bool needs_wakeref); 19 int intel_gsc_uc_fw_proxy_get_status(struct intel_gsc_uc *gsc);
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gsc_proxy.c | 29 * GSC proxy: 30 * The GSC uC needs to communicate with the CSME to perform certain operations. 31 * Since the GSC can't perform this communication directly on platforms where it 33 * GSC to CSME and back. The proxy flow must be manually started after the GSC 34 * is loaded to signal to GSC that we're ready to handle its messages and allow 35 * it to query its init data from CSME; GSC will then trigger an HECI2 interrupt 38 * 1 - Xe submits a request to GSC asking for the message to CSME 39 * 2 - GSC replies with the proxy header + payload for CSME 40 * 3 - Xe sends the reply from GSC as-is to CSME via the mei proxy component 41 * 4 - CSME replies with the proxy header + payload for GSC [all …]
|
| H A D | xe_gsc_debugfs.c | 18 gsc_to_gt(struct xe_gsc *gsc) in gsc_to_gt() argument 20 return container_of(gsc, struct xe_gt, uc.gsc); in gsc_to_gt() 24 gsc_to_xe(struct xe_gsc *gsc) in gsc_to_xe() argument 26 return gt_to_xe(gsc_to_gt(gsc)); in gsc_to_xe() 36 struct xe_gsc *gsc = node_to_gsc(m->private); in gsc_info() local 37 struct xe_device *xe = gsc_to_xe(gsc); in gsc_info() 41 xe_gsc_print_info(gsc, &p); in gsc_info() 51 void xe_gsc_debugfs_register(struct xe_gsc *gsc, struct dentry *parent) in xe_gsc_debugfs_register() argument 53 struct drm_minor *minor = gsc_to_xe(gsc)->drm.primary; in xe_gsc_debugfs_register() 58 local = drmm_kmalloc(&gsc_to_xe(gsc)->drm, DEBUGFS_SIZE, GFP_KERNEL); in xe_gsc_debugfs_register() [all …]
|
| H A D | xe_gsc_submit.c | 30 * GSC FW allows us to define the host_session_handle as we see fit, as long 39 gsc_to_gt(struct xe_gsc *gsc) in gsc_to_gt() argument 41 return container_of(gsc, struct xe_gt, uc.gsc); in gsc_to_gt() 48 * Returns: random host_session_id which can be used to send messages to gsc cs 60 * xe_gsc_emit_header - write the MTL GSC header in memory 90 * xe_gsc_poison_header - poison the MTL GSC header in memory 132 * @min_payload_size: minimum size of the message excluding the gsc header 151 drm_err(&xe->drm, "GSC header readout indicates error: %d\n", in xe_gsc_read_out_header() 166 * xe_gsc_pkt_submit_kernel - submit a kernel heci pkt to the GSC 167 * @gsc: the GSC uC [all …]
|
| H A D | xe_gsc_proxy.h | 13 int xe_gsc_proxy_init(struct xe_gsc *gsc); 14 bool xe_gsc_proxy_init_done(struct xe_gsc *gsc); 15 int xe_gsc_wait_for_proxy_init_done(struct xe_gsc *gsc); 16 int xe_gsc_proxy_start(struct xe_gsc *gsc); 18 int xe_gsc_proxy_request_handler(struct xe_gsc *gsc); 19 void xe_gsc_proxy_irq_handler(struct xe_gsc *gsc, u32 iir);
|
| H A D | xe_gsc.h | 16 int xe_gsc_init(struct xe_gsc *gsc); 17 int xe_gsc_init_post_hwconfig(struct xe_gsc *gsc); 18 void xe_gsc_wait_for_worker_completion(struct xe_gsc *gsc); 19 void xe_gsc_stop_prepare(struct xe_gsc *gsc); 20 void xe_gsc_load_start(struct xe_gsc *gsc); 25 void xe_gsc_print_info(struct xe_gsc *gsc, struct drm_printer *p);
|
| H A D | xe_uc.c | 44 /* HuC and GSC have no early dependencies and will be initialized during xe_uc_init(). */ in xe_uc_init_noalloc() 57 * We call the GuC/HuC/GSC init functions even if GuC submission is off in xe_uc_init() 68 ret = xe_gsc_init(&uc->gsc); in xe_uc_init() 117 return xe_gsc_init_post_hwconfig(&uc->gsc); in xe_uc_init_post_hwconfig() 225 /* GSC load is async */ in xe_uc_load_hw() 226 xe_gsc_load_start(&uc->gsc); in xe_uc_load_hw() 251 xe_gsc_stop_prepare(&uc->gsc); in xe_uc_stop_prepare() 287 xe_gsc_wait_for_worker_completion(&uc->gsc); in xe_uc_suspend_prepare()
|
| /linux/drivers/mfd/ |
| H A D | gateworks-gsc.c | 3 * The Gateworks System Controller (GSC) is a multi-function 15 #include <linux/mfd/gsc.h> 26 * The GSC suffers from an errata where occasionally during 72 * gsc_powerdown - API to use GSC to power down board for a specific time 76 static int gsc_powerdown(struct gsc_dev *gsc, unsigned long secs) in gsc_powerdown() argument 81 dev_info(&gsc->i2c->dev, "GSC powerdown for %ld seconds\n", in gsc_powerdown() 85 ret = regmap_bulk_write(gsc->regmap, GSC_TIME_ADD, regs, 4); in gsc_powerdown() 89 ret = regmap_update_bits(gsc->regmap, GSC_CTRL_1, in gsc_powerdown() 95 ret = regmap_update_bits(gsc->regmap, GSC_CTRL_1, in gsc_powerdown() 108 struct gsc_dev *gsc = dev_get_drvdata(dev); in gsc_show() local [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_gsc.c | 43 gsc_ext_om_alloc(struct intel_gsc *gsc, struct intel_gsc_intf *intf, size_t size) in gsc_ext_om_alloc() argument 45 struct intel_gt *gt = gsc_to_gt(gsc); in gsc_ext_om_alloc() 53 gt_err(gt, "Failed to allocate gsc memory\n"); in gsc_ext_om_alloc() 59 gt_err(gt, "Failed to pin pages for gsc memory\n"); in gsc_ext_om_alloc() 94 /* gsc resources and definitions (HECI1 and HECI2) */ 108 .name = "mei-gsc", 129 struct intel_gsc *gsc, unsigned int intf_id) in gsc_destroy_one() argument 131 struct intel_gsc_intf *intf = &gsc->intf[intf_id]; in gsc_destroy_one() 137 intel_huc_unregister_gsc_notifier(&gsc_to_gt(gsc)->uc.huc, in gsc_destroy_one() 152 static void gsc_init_one(struct drm_i915_private *i915, struct intel_gsc *gsc, in gsc_init_one() argument [all …]
|
| H A D | intel_gsc.h | 24 * @intf: gsc interface 26 * @intf.gem_obj: scratch memory GSC operations 39 void intel_gsc_init(struct intel_gsc *gsc, struct drm_i915_private *i915); 40 void intel_gsc_fini(struct intel_gsc *gsc);
|
| /linux/drivers/media/platform/samsung/exynos-gsc/ |
| H A D | gsc-core.c | 25 #include "gsc-core.h" 339 void gsc_set_prefbuf(struct gsc_dev *gsc, struct gsc_frame *frm) in gsc_set_prefbuf() argument 390 struct gsc_dev *gsc = ctx->gsc_dev; in gsc_try_fmt_mplane() local 391 struct gsc_variant *variant = gsc->variant; in gsc_try_fmt_mplane() 519 struct gsc_dev *gsc = ctx->gsc_dev; in gsc_try_selection() local 520 struct gsc_variant *variant = gsc->variant; in gsc_try_selection() 699 struct gsc_dev *gsc = ctx->gsc_dev; in __gsc_s_ctrl() local 700 struct gsc_variant *variant = gsc->variant; in __gsc_s_ctrl() 861 struct gsc_dev *gsc = priv; in gsc_irq_handler() local 865 gsc_irq = gsc_hw_get_irq_status(gsc); in gsc_irq_handler() [all …]
|
| H A D | Makefile | 2 exynos-gsc-objs := gsc-core.o gsc-m2m.o gsc-regs.o 4 obj-$(CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC) += exynos-gsc.o
|
| /linux/Documentation/devicetree/bindings/media/ |
| H A D | samsung,exynos5250-gsc.yaml | 4 $id: http://devicetree.org/schemas/media/samsung,exynos5250-gsc.yaml# 26 - samsung,exynos5250-gsc 27 - samsung,exynos5420-gsc 28 - const: samsung,exynos5-gsc 30 - samsung,exynos5433-gsc 31 - const: samsung,exynos5-gsc 72 - samsung,exynos5-gsc 73 - samsung,exynos5250-gsc 74 - samsung,exynos5420-gsc 102 compatible = "samsung,exynos5250-gsc", "samsung,exynos5-gsc";
|
| /linux/drivers/parisc/ |
| H A D | Kconfig | 2 menu "Bus options (PCI, PCMCIA, EISA, GSC, ISA)" 4 config GSC config 5 bool "VSC/GSC/HSC bus support" 10 The VSC, GSC and HSC busses were used from the earliest 700-series 18 depends on GSC 25 depends on GSC 33 depends on GSC 44 depends on GSC 50 GSC bridge for an X.25 GSC card. 61 depends on PCI && GSC [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | gsc-hwmon.rst | 3 Kernel driver gsc-hwmon 6 Supported chips: Gateworks GSC 7 Datasheet: http://trac.gateworks.com/wiki/gsc 14 various ADC's connected to the GSC, and optional FAN controller available 22 on the GSC version and firmware. The values returned by the driver do not need 33 either internally or by the driver depending on the GSC version and firmware. 43 The GSC features 1 PWM output that operates in automatic mode where the
|
| /linux/include/drm/intel/ |
| H A D | i915_gsc_proxy_mei_interface.h | 15 * struct i915_gsc_proxy_component_ops - ops for GSC Proxy services. 17 * @send: sends a proxy message from GSC FW to ME FW 18 * @recv: receives a proxy message for GSC FW from ME FW 44 * MEI drivers for GSC proxy services 45 * @mei_dev: device that provide the GSC proxy service. 46 * @ops: Ops implemented by GSC proxy driver, used by i915 driver.
|
| /linux/drivers/gpu/drm/i915/pxp/ |
| H A D | intel_pxp_gsccs.c | 92 /* copy caller provided gsc message handle if this is polling for a prior msg completion */ in gsccs_send_message() 113 ret = intel_gsc_uc_heci_cmd_submit_nonpriv(>->uc.gsc, in gsccs_send_message() 117 drm_err(&i915->drm, "failed to send gsc PXP msg (%d)\n", ret); in gsccs_send_message() 123 drm_err(&i915->drm, "gsc PXP reply with invalid validity marker\n"); in gsccs_send_message() 128 drm_dbg(&i915->drm, "gsc PXP reply status has error = 0x%08x\n", in gsccs_send_message() 134 drm_dbg(&i915->drm, "gsc PXP reply is busy\n"); in gsccs_send_message() 136 * When the GSC firmware replies with pending bit, it means that the requested in gsccs_send_message() 174 * Keep sending request if GSC firmware was busy. Based on fw specs + in gsccs_send_message_retry_complete() 181 /* Only try again if gsc says so */ in gsccs_send_message_retry_complete() 194 * GSC-fw loading, HuC-fw loading, HuC-fw authentication and in intel_pxp_gsccs_is_ready_for_sessions() [all …]
|
| /linux/drivers/misc/mei/gsc_proxy/ |
| H A D | Kconfig | 5 tristate "Intel GSC Proxy services of ME Interface" 9 MEI Support for GSC Proxy Services on Intel platforms. 11 MEI GSC proxy enables messaging between GSC service on
|
| /linux/sound/parisc/ |
| H A D | Kconfig | 5 bool "GSC sound devices" 6 depends on GSC 9 Support for GSC sound devices on PA-RISC architectures. 18 chip found in most GSC-based PA-RISC workstations. It's frequently
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | imx8mm-venice-gw700x.dtsi | 34 interrupt-parent = <&gsc>; 41 interrupt-parent = <&gsc>; 48 interrupt-parent = <&gsc>; 55 interrupt-parent = <&gsc>; 62 interrupt-parent = <&gsc>; 154 gsc: gsc@20 { label 155 compatible = "gw,gsc"; 166 compatible = "gw,gsc-adc"; 262 compatible = "gw,gsc-fan"; 272 interrupt-parent = <&gsc>;
|
| H A D | imx8mp-venice-gw702x.dtsi | 35 interrupt-parent = <&gsc>; 42 interrupt-parent = <&gsc>; 49 interrupt-parent = <&gsc>; 56 interrupt-parent = <&gsc>; 63 interrupt-parent = <&gsc>; 140 gsc: gsc@20 { label 141 compatible = "gw,gsc"; 152 compatible = "gw,gsc-adc"; 247 compatible = "gw,gsc-fan"; 257 interrupt-parent = <&gsc>;
|