WSL2-Linux-Kernel/drivers
Tvrtko Ursulin bb6287cb18 drm/i915: Track context current active time
Track context active (on hardware) status together with the start
timestamp.

This will be used to provide better granularity of context
runtime reporting in conjunction with already tracked pphwsp accumulated
runtime.

The latter is only updated on context save so does not give us visibility
to any currently executing work.

As part of the patch the existing runtime tracking data is moved under the
new ce->stats member and updated under the seqlock. This provides the
ability to atomically read out accumulated plus active runtime.

v2:
 * Rename and make __intel_context_get_active_time unlocked.

v3:
 * Use GRAPHICS_VER.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Aravind Iddamsetty <aravind.iddamsetty@intel.com> #  v1
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220401142205.3123159-6-tvrtko.ursulin@linux.intel.com
2022-04-05 08:39:10 +01:00
..
accessibility speakup-dectlk: Restore pitch setting 2022-02-08 12:15:04 +01:00
acpi arm64 fixes: 2022-02-11 11:55:26 -08:00
amba
android
ata ata: libata-core: Disable TRIM on M88V29 2022-02-08 17:06:14 +09:00
atm
auxdisplay
base PM: s2idle: ACPI: Fix wakeup interrupts handling 2022-02-07 21:02:31 +01:00
bcma
block loop: revert "make autoclear operation asynchronous" 2022-02-11 05:51:23 -07:00
bluetooth
bus bus: mhi: pci_generic: Add mru_default for Cinterion MV31-W 2022-02-06 13:19:46 +01:00
cdrom
char Linux 5.17-rc4 2022-02-14 10:52:27 +10:00
clk
clocksource Fixes for omaps 2022-02-07 17:42:44 +01:00
comedi
connector
counter
cpufreq
cpuidle
crypto crypto: octeontx2 - Avoid stack variable overflow 2022-01-31 11:22:53 +11:00
cxl
dax
dca
devfreq
dio
dma
dma-buf drm-misc-next for v5.18: 2022-02-25 05:50:18 +10:00
edac EDAC/xgene: Fix deferred probing 2022-01-30 01:06:35 +01:00
eisa
extcon
firewire
firmware drm-misc-next for v5.18: 2022-02-01 19:02:41 +10:00
fpga
fsi
gnss
gpio gpio: sim: fix hogs with custom chip labels 2022-02-09 11:41:29 +01:00
gpu drm/i915: Track context current active time 2022-04-05 08:39:10 +01:00
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL 2022-02-11 12:13:22 +01:00
infiniband RDMA/mlx4: Don't continue event handler after memory allocation failure 2022-02-01 10:12:26 -04:00
input ASoC: Fixes for v5.17 2022-02-01 16:52:54 +01:00
interconnect
iommu iommu/amd: Fix loop timeout issue in iommu_ga_log_enable() 2022-02-04 12:57:26 +01:00
ipack
irqchip irqchip/sifive-plic: Add missing thead,c900-plic match string 2022-02-02 10:49:29 +00:00
isdn
leds
macintosh
mailbox
mcb
md md: fix NULL pointer deref with nowait but no mddev->queue 2022-02-02 10:14:07 -08:00
media dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
memory
memstick
message
mfd
misc Linux 5.17-rc4 2022-02-14 10:52:27 +10:00
mmc moxart: fix potential use-after-free on remove path 2022-01-31 15:36:34 +01:00
most
mtd
mux
net USB fixes for 5.17-rc4 2022-02-12 09:56:18 -08:00
nfc
ntb
nubus
nvdimm
nvme nvme-tcp: fix bogus request completion when failing to send AER 2022-02-09 14:50:42 +01:00
nvmem
of
opp
parisc
parport
pci pci-v5.17-fixes-4 2022-02-11 12:55:17 -08:00
pcmcia
perf
phy phy: dphy: Correct clk_pre parameter 2022-02-02 10:33:04 +05:30
pinctrl pinctrl: microchip-sgpio: Fix support for regmap 2022-01-31 12:07:31 +01:00
platform Linux 5.17-rc4 2022-02-14 10:52:27 +10:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 s390/cio: verify the driver availability for path_event call 2022-02-09 22:55:01 +01:00
sbus
scsi scsi: lpfc: Reduce log messages seen after firmware download 2022-02-07 23:45:02 -05:00
sh
siox
slimbus
soc soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-08 09:52:59 +01:00
soundwire
spi spi: Fixes for v5.17 2022-02-01 12:39:37 -08:00
spmi
ssb
staging drm-misc-next for v5.18: 2022-02-25 05:50:18 +10:00
target
tc
tee OP-TE fixes for v5.17 2022-02-08 09:48:44 +01:00
thermal
thunderbolt
tty vt_ioctl: add array_index_nospec to VT_ACTIVATE 2022-02-04 15:36:02 +01:00
uio
usb Revert "usb: dwc2: drd: fix soft connect when gadget is unconfigured" 2022-02-12 10:08:54 +01:00
vdpa
vfio
vhost
video drm-misc-next for v5.18: 2022-02-25 05:50:18 +10:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen xen/pci: Make use of the helper macro LIST_HEAD() 2022-02-10 11:10:23 +01:00
zorro
Kconfig
Makefile