mirror of
https://github.com/torvalds/linux.git
synced 2026-04-29 20:12:38 -04:00
GSC FW is loaded by submitting a dedicated command via the GSC engine.
The memory area used for loading the FW is then re-purposed as local
memory for the GSC itself, so we use a separate allocation instead of
using the one where we keep the firmware stored for reload.
The GSC is not reset as part of GT reset, so we only need to load it on
first boot and S3/S4 exit.
v2: use REG_* for register fields definitions (Rodrigo), move to WQ
immediately
v3: mark worker function as static
Bspec: 63347, 65346
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221208200521.2928378-4-daniele.ceraolospurio@intel.com
16 lines
300 B
C
16 lines
300 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_GSC_FW_H_
|
|
#define _INTEL_GSC_FW_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct intel_gsc_uc;
|
|
|
|
int intel_gsc_uc_fw_upload(struct intel_gsc_uc *gsc);
|
|
bool intel_gsc_uc_fw_init_done(struct intel_gsc_uc *gsc);
|
|
#endif
|