mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
d1675198ed
GuC-based submission is mostly the same as execlist mode, up to intel_logical_ring_advance_and_submit(), where the context being dispatched would be added to the execlist queue; at this point we submit the context to the GuC backend instead. There are, however, a few other changes also required, notably: 1. Contexts must be pinned at GGTT addresses accessible by the GuC i.e. NOT in the range [0..WOPCM_SIZE), so we have to add the PIN_OFFSET_BIAS flag to the relevant GGTT-pinning calls. 2. The GuC's TLB must be invalidated after a context is pinned at a new GGTT address. 3. GuC firmware uses the one page before Ring Context as shared data. Therefore, whenever driver wants to get base address of LRC, we will offset one page for it. LRC_PPHWSP_PN is defined as the page number of LRCA. 4. In the work queue used to pass requests to the GuC, the GuC firmware requires the ring-tail-offset to be represented as an 11-bit value, expressed in QWords. Therefore, the ringbuffer size must be reduced to the representable range (4 pages). v2: Defer adding #defines until needed [Chris Wilson] Rationalise type declarations [Chris Wilson] v4: Squashed kerneldoc patch into here [Daniel Vetter] v5: Update request->tail in code common to both GuC and execlist modes. Add a private version of lr_context_update(), as sharing the execlist version leads to race conditions when the CPU and the GuC both update TAIL in the context image. Conversion of error-captured HWS page to string must account for offset from start of object to actual HWS (LRC_PPHWSP_PN). Issue: VIZ-4884 Signed-off-by: Alex Dai <yu.dai@intel.com> Signed-off-by: Dave Gordon <david.s.gordon@intel.com> Reviewed-by: Tom O'Rourke <Tom.O'Rourke@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> |
||
---|---|---|
.. | ||
media | ||
.gitignore | ||
80211.tmpl | ||
alsa-driver-api.tmpl | ||
crypto-API.tmpl | ||
debugobjects.tmpl | ||
device-drivers.tmpl | ||
deviceiobook.tmpl | ||
drm.tmpl | ||
filesystems.tmpl | ||
gadget.tmpl | ||
genericirq.tmpl | ||
kernel-api.tmpl | ||
kernel-hacking.tmpl | ||
kernel-locking.tmpl | ||
kgdb.tmpl | ||
libata.tmpl | ||
librs.tmpl | ||
lsm.tmpl | ||
Makefile | ||
media_api.tmpl | ||
mtdnand.tmpl | ||
networking.tmpl | ||
rapidio.tmpl | ||
regulator.tmpl | ||
s390-drivers.tmpl | ||
scsi.tmpl | ||
sh.tmpl | ||
stylesheet.xsl | ||
tracepoint.tmpl | ||
uio-howto.tmpl | ||
usb.tmpl | ||
w1.tmpl | ||
writing_musb_glue_layer.tmpl | ||
writing_usb_driver.tmpl | ||
writing-an-alsa-driver.tmpl | ||
z8530book.tmpl |