Pull drm updates from Dave Airlie:
"Highlights:
- New driver for logicvc - which is a display IP core.
- EDID parser rework to add new extensions
- fbcon scrolling improvements
- i915 has some more DG2 work but not enabled by default, but should
have enough features for userspace to work now.
Otherwise it's lots of work all over the place. Detailed summary:
New driver:
- logicvc
vfio:
- use aperture API
core:
- of: Add data-lane helpers and convert drivers
- connector: Remove deprecated ida_simple_get()
media:
- Add various RGB666 and RGB888 format constants
panel:
- Add HannStar HSD101PWW
- Add ETML0700Y5DHA
dma-buf:
- add sync-file API
- set dma mask for udmabuf devices
fbcon:
- Improve scrolling performance
- Sanitize input
fbdev:
- device unregistering fixes
- vesa: Support COMPILE_TEST
- Disable firmware-device registration when first native driver loads
aperture:
- fix segfault during hot-unplug
- export for use with other subsystems
client:
- use driver validated modes
dp:
- aux: make probing more reliable
- mst: Read extended DPCD capabilities during system resume
- Support waiting for HDP signal
- Port-validation fixes
edid:
- CEA data-block iterators
- struct drm_edid introduction
- implement HF-EEODB extension
gem:
- don't use fb format non-existing planes
probe-helper:
- use 640x480 as displayport fallback
scheduler:
- don't kill jobs in interrupt context
bridge:
- Add support for i.MX8qxp and i.MX8qm
- lots of fixes/cleanups
- Add TI-DLPC3433
- fy07024di26a30d: Optional GPIO reset
- ldb: Add reg and reg-name properties to bindings, Kconfig fixes
- lt9611: Fix display sensing;
- tc358767: DSI/DPI refactoring and DSI-to-eDP support, DSI lane handling
- tc358775: Fix clock settings
- ti-sn65dsi83: Allow GPIO to sleep
- adv7511: I2C fixes
- anx7625: Fix error handling; DPI fixes; Implement HDP timeout via callback
- fsl-ldb: Drop DE flip
- ti-sn65dsi86: Convert to atomic modesetting
amdgpu:
- use atomic fence helpers in DM
- fix VRAM address calculations
- export CRTC bpc via debugfs
- Initial devcoredump support
- Enable high priority gfx queue on asics which support it
- Adjust GART size on newer APUs for S/G display
- Soft reset for GFX 11 / SDMA 6
- Add gfxoff status query for vangogh
- Fix timestamps for cursor only commits
- Adjust GART size on newer APUs for S/G display
- fix buddy memory corruption
amdkfd:
- MMU notifier fixes
- P2P DMA support using dma-buf
- Add available memory IOCTL
- HMM profiler support
- Simplify GPUVM validation
- Unified memory for CWSR save/restore area
i915:
- General driver clean-up
- DG2 enabling (still under force probe)
- DG2 small BAR memory support
- HuC loading support
- DG2 workarounds
- DG2/ATS-M device IDs added
- Ponte Vecchio prep work and new blitter engines
- add Meteorlake support
- Fix sparse warnings
- DMC MMIO range checks
- Audio related fixes
- Runtime PM fixes
- PSR fixes
- Media freq factor and per-gt enhancements
- DSI fixes for ICL+
- Disable DMC flip queue handlers
- ADL_P voltage swing updates
- Use more the VBT for panel information
- Fix on Type-C ports with TBT mode
- Improve fastset and allow seamless M/N changes
- Accept more fixed modes with VRR/DMRRS panels
- Disable connector polling for a headless SKU
- ADL-S display PLL w/a
- Enable THP on Icelake and beyond
- Fix i915_gem_object_ggtt_pin_ww regression on old platforms
- Expose per tile media freq factor in sysfs
- Fix dma_resv fence handling in multi-batch execbuf
- Improve on suspend / resume time with VT-d enabled
- export CRTC bpc settings via debugfs
msm:
- gpu: a619 support
- gpu: Fix for unclocked GMU register access
- gpu: Devcore dump enhancements
- client utilization via fdinfo support
- fix fence rollover issue
- gem: Lockdep false-positive warning fix
- gem: Switch to pfn mappings
- WB support on sc7180
- dp: dropped custom bulk clock implementation
- fix link retraining on resolution change
- hdmi: dropped obsolete GPIO support
tegra:
- context isolation for host1x engines
- tegra234 soc support
mediatek:
- add vdosys0/1 for mt8195
- add MT8195 dp_intf driver
exynos:
- Fix resume function issue of exynos decon driver by calling
clk_disable_unprepare() properly if clk_prepare_enable() failed.
nouveau:
- set of misc fixes/cleanups
- display cleanups
gma500:
- Cleanup connector I2C handling
hyperv:
- Unify VRAM allocation of Gen1 and Gen2
meson:
- Support YUV422 output; Refcount fixes
mgag200:
- Support damage clipping
- Support gamma handling
- Protect concurrent HW access
- Fixes to connector
- Store model-specific limits in device-info structure
- fix PCI register init
panfrost:
- Valhall support
r128:
- Fix bit-shift overflow
rockchip:
- Locking fixes in error path
ssd130x:
- Fix built-in linkage
udl:
- Always advertize VGA connector
ast:
- Support multiple outputs
- fix black screen on resume
sun4i:
- HDMI PHY cleanups
vc4:
- Add support for BCM2711
vkms:
- Allocate output buffer with vmalloc()
mcde:
- Fix ref-count leak
mxsfb/lcdif:
- Support i.MX8MP LCD controller
stm/ltdc:
- Support dynamic Z order
- Support mirroring
ingenic:
- Fix display at maximum resolution"
* tag 'drm-next-2022-08-03' of git://anongit.freedesktop.org/drm/drm: (1480 commits)
drm/amd/display: Fix a compilation failure on PowerPC caused by FPU code
drm/amdgpu: enable support for psp 13.0.4 block
drm/amdgpu: add files for PSP 13.0.4
drm/amdgpu: add header files for MP 13.0.4
drm/amdgpu: correct RLC_RLCS_BOOTLOAD_STATUS offset and index
drm/amdgpu: send msg to IMU for the front-door loading
drm/amdkfd: use time_is_before_jiffies(a + b) to replace "jiffies - a > b"
drm/amdgpu: fix hive reference leak when reflecting psp topology info
drm/amd/pm: enable GFX ULV feature support for SMU13.0.0
drm/amd/pm: update driver if header for SMU 13.0.0
drm/amdgpu: move mes self test after drm sched re-started
drm/amdgpu: drop non-necessary call trace dump
drm/amdgpu: enable VCN cg and JPEG cg/pg
drm/amdgpu: vcn_4_0_2 video codec query
drm/amdgpu: add VCN_4_0_2 firmware support
drm/amdgpu: add VCN function in NBIO v7.7
drm/amdgpu: fix a vcn4 boot poll bug in emulation mode
drm/amd/amdgpu: add memory training support for PSP_V13
drm/amdkfd: remove an unnecessary amdgpu_bo_ref
drm/amd/pm: Add get_gfx_off_status interface for yellow carp
...
468 lines
14 KiB
C
468 lines
14 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2014-2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_GUC_H_
|
|
#define _INTEL_GUC_H_
|
|
|
|
#include <linux/delay.h>
|
|
#include <linux/iosys-map.h>
|
|
#include <linux/xarray.h>
|
|
|
|
#include "intel_guc_ct.h"
|
|
#include "intel_guc_fw.h"
|
|
#include "intel_guc_fwif.h"
|
|
#include "intel_guc_log.h"
|
|
#include "intel_guc_reg.h"
|
|
#include "intel_guc_slpc_types.h"
|
|
#include "intel_uc_fw.h"
|
|
#include "intel_uncore.h"
|
|
#include "i915_utils.h"
|
|
#include "i915_vma.h"
|
|
|
|
struct __guc_ads_blob;
|
|
struct intel_guc_state_capture;
|
|
|
|
/**
|
|
* struct intel_guc - Top level structure of GuC.
|
|
*
|
|
* It handles firmware loading and manages client pool. intel_guc owns an
|
|
* i915_sched_engine for submission.
|
|
*/
|
|
struct intel_guc {
|
|
/** @fw: the GuC firmware */
|
|
struct intel_uc_fw fw;
|
|
/** @log: sub-structure containing GuC log related data and objects */
|
|
struct intel_guc_log log;
|
|
/** @ct: the command transport communication channel */
|
|
struct intel_guc_ct ct;
|
|
/** @slpc: sub-structure containing SLPC related data and objects */
|
|
struct intel_guc_slpc slpc;
|
|
/** @capture: the error-state-capture module's data and objects */
|
|
struct intel_guc_state_capture *capture;
|
|
|
|
/** @sched_engine: Global engine used to submit requests to GuC */
|
|
struct i915_sched_engine *sched_engine;
|
|
/**
|
|
* @stalled_request: if GuC can't process a request for any reason, we
|
|
* save it until GuC restarts processing. No other request can be
|
|
* submitted until the stalled request is processed.
|
|
*/
|
|
struct i915_request *stalled_request;
|
|
/**
|
|
* @submission_stall_reason: reason why submission is stalled
|
|
*/
|
|
enum {
|
|
STALL_NONE,
|
|
STALL_REGISTER_CONTEXT,
|
|
STALL_MOVE_LRC_TAIL,
|
|
STALL_ADD_REQUEST,
|
|
} submission_stall_reason;
|
|
|
|
/* intel_guc_recv interrupt related state */
|
|
/** @irq_lock: protects GuC irq state */
|
|
spinlock_t irq_lock;
|
|
/**
|
|
* @msg_enabled_mask: mask of events that are processed when receiving
|
|
* an INTEL_GUC_ACTION_DEFAULT G2H message.
|
|
*/
|
|
unsigned int msg_enabled_mask;
|
|
|
|
/**
|
|
* @outstanding_submission_g2h: number of outstanding GuC to Host
|
|
* responses related to GuC submission, used to determine if the GT is
|
|
* idle
|
|
*/
|
|
atomic_t outstanding_submission_g2h;
|
|
|
|
/** @interrupts: pointers to GuC interrupt-managing functions. */
|
|
struct {
|
|
void (*reset)(struct intel_guc *guc);
|
|
void (*enable)(struct intel_guc *guc);
|
|
void (*disable)(struct intel_guc *guc);
|
|
} interrupts;
|
|
|
|
/**
|
|
* @submission_state: sub-structure for submission state protected by
|
|
* single lock
|
|
*/
|
|
struct {
|
|
/**
|
|
* @lock: protects everything in submission_state,
|
|
* ce->guc_id.id, and ce->guc_id.ref when transitioning in and
|
|
* out of zero
|
|
*/
|
|
spinlock_t lock;
|
|
/**
|
|
* @guc_ids: used to allocate new guc_ids, single-lrc
|
|
*/
|
|
struct ida guc_ids;
|
|
/**
|
|
* @num_guc_ids: Number of guc_ids, selftest feature to be able
|
|
* to reduce this number while testing.
|
|
*/
|
|
int num_guc_ids;
|
|
/**
|
|
* @guc_ids_bitmap: used to allocate new guc_ids, multi-lrc
|
|
*/
|
|
unsigned long *guc_ids_bitmap;
|
|
/**
|
|
* @guc_id_list: list of intel_context with valid guc_ids but no
|
|
* refs
|
|
*/
|
|
struct list_head guc_id_list;
|
|
/**
|
|
* @destroyed_contexts: list of contexts waiting to be destroyed
|
|
* (deregistered with the GuC)
|
|
*/
|
|
struct list_head destroyed_contexts;
|
|
/**
|
|
* @destroyed_worker: worker to deregister contexts, need as we
|
|
* need to take a GT PM reference and can't from destroy
|
|
* function as it might be in an atomic context (no sleeping)
|
|
*/
|
|
struct work_struct destroyed_worker;
|
|
/**
|
|
* @reset_fail_worker: worker to trigger a GT reset after an
|
|
* engine reset fails
|
|
*/
|
|
struct work_struct reset_fail_worker;
|
|
/**
|
|
* @reset_fail_mask: mask of engines that failed to reset
|
|
*/
|
|
intel_engine_mask_t reset_fail_mask;
|
|
} submission_state;
|
|
|
|
/**
|
|
* @submission_supported: tracks whether we support GuC submission on
|
|
* the current platform
|
|
*/
|
|
bool submission_supported;
|
|
/** @submission_selected: tracks whether the user enabled GuC submission */
|
|
bool submission_selected;
|
|
/** @submission_initialized: tracks whether GuC submission has been initialised */
|
|
bool submission_initialized;
|
|
/**
|
|
* @rc_supported: tracks whether we support GuC rc on the current platform
|
|
*/
|
|
bool rc_supported;
|
|
/** @rc_selected: tracks whether the user enabled GuC rc */
|
|
bool rc_selected;
|
|
|
|
/** @ads_vma: object allocated to hold the GuC ADS */
|
|
struct i915_vma *ads_vma;
|
|
/** @ads_map: contents of the GuC ADS */
|
|
struct iosys_map ads_map;
|
|
/** @ads_regset_size: size of the save/restore regsets in the ADS */
|
|
u32 ads_regset_size;
|
|
/**
|
|
* @ads_regset_count: number of save/restore registers in the ADS for
|
|
* each engine
|
|
*/
|
|
u32 ads_regset_count[I915_NUM_ENGINES];
|
|
/** @ads_regset: save/restore regsets in the ADS */
|
|
struct guc_mmio_reg *ads_regset;
|
|
/** @ads_golden_ctxt_size: size of the golden contexts in the ADS */
|
|
u32 ads_golden_ctxt_size;
|
|
/** @ads_capture_size: size of register lists in the ADS used for error capture */
|
|
u32 ads_capture_size;
|
|
/** @ads_engine_usage_size: size of engine usage in the ADS */
|
|
u32 ads_engine_usage_size;
|
|
|
|
/** @lrc_desc_pool_v69: object allocated to hold the GuC LRC descriptor pool */
|
|
struct i915_vma *lrc_desc_pool_v69;
|
|
/** @lrc_desc_pool_vaddr_v69: contents of the GuC LRC descriptor pool */
|
|
void *lrc_desc_pool_vaddr_v69;
|
|
|
|
/**
|
|
* @context_lookup: used to resolve intel_context from guc_id, if a
|
|
* context is present in this structure it is registered with the GuC
|
|
*/
|
|
struct xarray context_lookup;
|
|
|
|
/** @params: Control params for fw initialization */
|
|
u32 params[GUC_CTL_MAX_DWORDS];
|
|
|
|
/** @send_regs: GuC's FW specific registers used for sending MMIO H2G */
|
|
struct {
|
|
u32 base;
|
|
unsigned int count;
|
|
enum forcewake_domains fw_domains;
|
|
} send_regs;
|
|
|
|
/** @notify_reg: register used to send interrupts to the GuC FW */
|
|
i915_reg_t notify_reg;
|
|
|
|
/**
|
|
* @mmio_msg: notification bitmask that the GuC writes in one of its
|
|
* registers when the CT channel is disabled, to be processed when the
|
|
* channel is back up.
|
|
*/
|
|
u32 mmio_msg;
|
|
|
|
/** @send_mutex: used to serialize the intel_guc_send actions */
|
|
struct mutex send_mutex;
|
|
|
|
/**
|
|
* @timestamp: GT timestamp object that stores a copy of the timestamp
|
|
* and adjusts it for overflow using a worker.
|
|
*/
|
|
struct {
|
|
/**
|
|
* @lock: Lock protecting the below fields and the engine stats.
|
|
*/
|
|
spinlock_t lock;
|
|
|
|
/**
|
|
* @gt_stamp: 64 bit extended value of the GT timestamp.
|
|
*/
|
|
u64 gt_stamp;
|
|
|
|
/**
|
|
* @ping_delay: Period for polling the GT timestamp for
|
|
* overflow.
|
|
*/
|
|
unsigned long ping_delay;
|
|
|
|
/**
|
|
* @work: Periodic work to adjust GT timestamp, engine and
|
|
* context usage for overflows.
|
|
*/
|
|
struct delayed_work work;
|
|
|
|
/**
|
|
* @shift: Right shift value for the gpm timestamp
|
|
*/
|
|
u32 shift;
|
|
|
|
/**
|
|
* @last_stat_jiffies: jiffies at last actual stats collection time
|
|
* We use this timestamp to ensure we don't oversample the
|
|
* stats because runtime power management events can trigger
|
|
* stats collection at much higher rates than required.
|
|
*/
|
|
unsigned long last_stat_jiffies;
|
|
} timestamp;
|
|
|
|
#ifdef CONFIG_DRM_I915_SELFTEST
|
|
/**
|
|
* @number_guc_id_stolen: The number of guc_ids that have been stolen
|
|
*/
|
|
int number_guc_id_stolen;
|
|
#endif
|
|
};
|
|
|
|
static inline struct intel_guc *log_to_guc(struct intel_guc_log *log)
|
|
{
|
|
return container_of(log, struct intel_guc, log);
|
|
}
|
|
|
|
static
|
|
inline int intel_guc_send(struct intel_guc *guc, const u32 *action, u32 len)
|
|
{
|
|
return intel_guc_ct_send(&guc->ct, action, len, NULL, 0, 0);
|
|
}
|
|
|
|
static
|
|
inline int intel_guc_send_nb(struct intel_guc *guc, const u32 *action, u32 len,
|
|
u32 g2h_len_dw)
|
|
{
|
|
return intel_guc_ct_send(&guc->ct, action, len, NULL, 0,
|
|
MAKE_SEND_FLAGS(g2h_len_dw));
|
|
}
|
|
|
|
static inline int
|
|
intel_guc_send_and_receive(struct intel_guc *guc, const u32 *action, u32 len,
|
|
u32 *response_buf, u32 response_buf_size)
|
|
{
|
|
return intel_guc_ct_send(&guc->ct, action, len,
|
|
response_buf, response_buf_size, 0);
|
|
}
|
|
|
|
static inline int intel_guc_send_busy_loop(struct intel_guc *guc,
|
|
const u32 *action,
|
|
u32 len,
|
|
u32 g2h_len_dw,
|
|
bool loop)
|
|
{
|
|
int err;
|
|
unsigned int sleep_period_ms = 1;
|
|
bool not_atomic = !in_atomic() && !irqs_disabled();
|
|
|
|
/*
|
|
* FIXME: Have caller pass in if we are in an atomic context to avoid
|
|
* using in_atomic(). It is likely safe here as we check for irqs
|
|
* disabled which basically all the spin locks in the i915 do but
|
|
* regardless this should be cleaned up.
|
|
*/
|
|
|
|
/* No sleeping with spin locks, just busy loop */
|
|
might_sleep_if(loop && not_atomic);
|
|
|
|
retry:
|
|
err = intel_guc_send_nb(guc, action, len, g2h_len_dw);
|
|
if (unlikely(err == -EBUSY && loop)) {
|
|
if (likely(not_atomic)) {
|
|
if (msleep_interruptible(sleep_period_ms))
|
|
return -EINTR;
|
|
sleep_period_ms = sleep_period_ms << 1;
|
|
} else {
|
|
cpu_relax();
|
|
}
|
|
goto retry;
|
|
}
|
|
|
|
return err;
|
|
}
|
|
|
|
static inline void intel_guc_to_host_event_handler(struct intel_guc *guc)
|
|
{
|
|
intel_guc_ct_event_handler(&guc->ct);
|
|
}
|
|
|
|
/* GuC addresses above GUC_GGTT_TOP also don't map through the GTT */
|
|
#define GUC_GGTT_TOP 0xFEE00000
|
|
|
|
/**
|
|
* intel_guc_ggtt_offset() - Get and validate the GGTT offset of @vma
|
|
* @guc: intel_guc structure.
|
|
* @vma: i915 graphics virtual memory area.
|
|
*
|
|
* GuC does not allow any gfx GGTT address that falls into range
|
|
* [0, ggtt.pin_bias), which is reserved for Boot ROM, SRAM and WOPCM.
|
|
* Currently, in order to exclude [0, ggtt.pin_bias) address space from
|
|
* GGTT, all gfx objects used by GuC are allocated with intel_guc_allocate_vma()
|
|
* and pinned with PIN_OFFSET_BIAS along with the value of ggtt.pin_bias.
|
|
*
|
|
* Return: GGTT offset of the @vma.
|
|
*/
|
|
static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
|
|
struct i915_vma *vma)
|
|
{
|
|
u32 offset = i915_ggtt_offset(vma);
|
|
|
|
GEM_BUG_ON(offset < i915_ggtt_pin_bias(vma));
|
|
GEM_BUG_ON(range_overflows_t(u64, offset, vma->size, GUC_GGTT_TOP));
|
|
|
|
return offset;
|
|
}
|
|
|
|
void intel_guc_init_early(struct intel_guc *guc);
|
|
void intel_guc_init_late(struct intel_guc *guc);
|
|
void intel_guc_init_send_regs(struct intel_guc *guc);
|
|
void intel_guc_write_params(struct intel_guc *guc);
|
|
int intel_guc_init(struct intel_guc *guc);
|
|
void intel_guc_fini(struct intel_guc *guc);
|
|
void intel_guc_notify(struct intel_guc *guc);
|
|
int intel_guc_send_mmio(struct intel_guc *guc, const u32 *action, u32 len,
|
|
u32 *response_buf, u32 response_buf_size);
|
|
int intel_guc_to_host_process_recv_msg(struct intel_guc *guc,
|
|
const u32 *payload, u32 len);
|
|
int intel_guc_auth_huc(struct intel_guc *guc, u32 rsa_offset);
|
|
int intel_guc_suspend(struct intel_guc *guc);
|
|
int intel_guc_resume(struct intel_guc *guc);
|
|
struct i915_vma *intel_guc_allocate_vma(struct intel_guc *guc, u32 size);
|
|
int intel_guc_allocate_and_map_vma(struct intel_guc *guc, u32 size,
|
|
struct i915_vma **out_vma, void **out_vaddr);
|
|
int intel_guc_self_cfg32(struct intel_guc *guc, u16 key, u32 value);
|
|
int intel_guc_self_cfg64(struct intel_guc *guc, u16 key, u64 value);
|
|
|
|
static inline bool intel_guc_is_supported(struct intel_guc *guc)
|
|
{
|
|
return intel_uc_fw_is_supported(&guc->fw);
|
|
}
|
|
|
|
static inline bool intel_guc_is_wanted(struct intel_guc *guc)
|
|
{
|
|
return intel_uc_fw_is_enabled(&guc->fw);
|
|
}
|
|
|
|
static inline bool intel_guc_is_used(struct intel_guc *guc)
|
|
{
|
|
GEM_BUG_ON(__intel_uc_fw_status(&guc->fw) == INTEL_UC_FIRMWARE_SELECTED);
|
|
return intel_uc_fw_is_available(&guc->fw);
|
|
}
|
|
|
|
static inline bool intel_guc_is_fw_running(struct intel_guc *guc)
|
|
{
|
|
return intel_uc_fw_is_running(&guc->fw);
|
|
}
|
|
|
|
static inline bool intel_guc_is_ready(struct intel_guc *guc)
|
|
{
|
|
return intel_guc_is_fw_running(guc) && intel_guc_ct_enabled(&guc->ct);
|
|
}
|
|
|
|
static inline void intel_guc_reset_interrupts(struct intel_guc *guc)
|
|
{
|
|
guc->interrupts.reset(guc);
|
|
}
|
|
|
|
static inline void intel_guc_enable_interrupts(struct intel_guc *guc)
|
|
{
|
|
guc->interrupts.enable(guc);
|
|
}
|
|
|
|
static inline void intel_guc_disable_interrupts(struct intel_guc *guc)
|
|
{
|
|
guc->interrupts.disable(guc);
|
|
}
|
|
|
|
static inline int intel_guc_sanitize(struct intel_guc *guc)
|
|
{
|
|
intel_uc_fw_sanitize(&guc->fw);
|
|
intel_guc_disable_interrupts(guc);
|
|
intel_guc_ct_sanitize(&guc->ct);
|
|
guc->mmio_msg = 0;
|
|
|
|
return 0;
|
|
}
|
|
|
|
static inline void intel_guc_enable_msg(struct intel_guc *guc, u32 mask)
|
|
{
|
|
spin_lock_irq(&guc->irq_lock);
|
|
guc->msg_enabled_mask |= mask;
|
|
spin_unlock_irq(&guc->irq_lock);
|
|
}
|
|
|
|
static inline void intel_guc_disable_msg(struct intel_guc *guc, u32 mask)
|
|
{
|
|
spin_lock_irq(&guc->irq_lock);
|
|
guc->msg_enabled_mask &= ~mask;
|
|
spin_unlock_irq(&guc->irq_lock);
|
|
}
|
|
|
|
int intel_guc_wait_for_idle(struct intel_guc *guc, long timeout);
|
|
|
|
int intel_guc_deregister_done_process_msg(struct intel_guc *guc,
|
|
const u32 *msg, u32 len);
|
|
int intel_guc_sched_done_process_msg(struct intel_guc *guc,
|
|
const u32 *msg, u32 len);
|
|
int intel_guc_context_reset_process_msg(struct intel_guc *guc,
|
|
const u32 *msg, u32 len);
|
|
int intel_guc_engine_failure_process_msg(struct intel_guc *guc,
|
|
const u32 *msg, u32 len);
|
|
int intel_guc_error_capture_process_msg(struct intel_guc *guc,
|
|
const u32 *msg, u32 len);
|
|
|
|
struct intel_engine_cs *
|
|
intel_guc_lookup_engine(struct intel_guc *guc, u8 guc_class, u8 instance);
|
|
|
|
void intel_guc_find_hung_context(struct intel_engine_cs *engine);
|
|
|
|
int intel_guc_global_policies_update(struct intel_guc *guc);
|
|
|
|
void intel_guc_context_ban(struct intel_context *ce, struct i915_request *rq);
|
|
|
|
void intel_guc_submission_reset_prepare(struct intel_guc *guc);
|
|
void intel_guc_submission_reset(struct intel_guc *guc, intel_engine_mask_t stalled);
|
|
void intel_guc_submission_reset_finish(struct intel_guc *guc);
|
|
void intel_guc_submission_cancel_requests(struct intel_guc *guc);
|
|
|
|
void intel_guc_load_status(struct intel_guc *guc, struct drm_printer *p);
|
|
|
|
void intel_guc_write_barrier(struct intel_guc *guc);
|
|
|
|
#endif
|