linux/drivers
Ville Syrjälä 7b0faa541f drm/i915: Fix remapped stride with CCS on ADL+
commit 0ccd963fe5 upstream.

On ADL+ the hardware automagically calculates the CCS AUX surface
stride from the main surface stride, so when remapping we can't
really play a lot of tricks with the main surface stride, or else
the AUX surface stride would get miscalculated and no longer
match the actual data layout in memory.

Supposedly we could remap in 256 main surface tile units
(AUX page(4096)/cachline(64)*4(4x1 main surface tiles per
AUX cacheline)=256 main surface tiles), but the extra complexity
is probably not worth the hassle.

So let's just make sure our mapping stride is calculated from
the full framebuffer stride (instead of the framebuffer width).
This way the stride we program into PLANE_STRIDE will be the
original framebuffer stride, and thus there will be no change
to the AUX stride/layout.

Cc: stable@vger.kernel.org
Cc: Imre Deak <imre.deak@intel.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231205180308.7505-1-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
(cherry picked from commit 2c12eb36f8)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-20 17:00:26 +01:00
..
accessibility
acpi iommu: Avoid more races around device probe 2023-12-13 18:39:17 +01:00
amba
android binder: fix memory leaks of spam and pending work 2023-12-13 18:39:22 +01:00
ata scsi: sd: Fix system start for ATA devices 2023-12-08 08:51:14 +01:00
atm atm: solos-pci: Fix potential deadlock on &tx_queue_lock 2023-12-20 17:00:16 +01:00
auxdisplay auxdisplay: hd44780: move cursor home after clear display command 2023-12-08 08:51:16 +01:00
base devcoredump: Send uevent once devcd is ready 2023-12-13 18:39:28 +01:00
bcma
block nbd: pass nbd_sock to nbd_read_reply() instead of index 2023-12-20 17:00:23 +01:00
bluetooth Bluetooth: btusb: Add 0bda:b85b for Fn-Link RTL8852BE 2023-11-28 17:07:17 +00:00
bus
cdrom
char
clk clk: visconti: Fix undefined behavior bug in struct visconti_pll_provider 2023-11-28 17:07:16 +00:00
clocksource
comedi
connector
counter
cpufreq cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily 2023-12-08 08:51:19 +01:00
cpuidle
crypto crypto: hisilicon/qm - prevent soft lockup in receive loop 2023-11-28 17:07:00 +00:00
cxl cxl/port: Fix NULL pointer access in devm_cxl_add_port() 2023-11-28 17:07:23 +00:00
dax
dca
devfreq
dio
dma dmaengine: stm32-dma: avoid bitfield overflow assertion 2023-12-20 17:00:25 +01:00
dma-buf dma-buf: fix check in dma_resv_add_fence 2023-12-08 08:51:15 +01:00
edac
eisa
extcon
firewire scsi: Change SCSI device boolean fields to single bit flags 2023-12-08 08:51:14 +01:00
firmware firmware: qcom_scm: use 64-bit calling convention only when client is 64-bit 2023-11-28 17:07:12 +00:00
fpga
fsi
gnss
gpio gpiolib: sysfs: Fix error handling on failed export 2023-12-13 18:39:24 +01:00
gpu drm/i915: Fix remapped stride with CCS on ADL+ 2023-12-20 17:00:26 +01:00
greybus
hid HID: hid-asus: add const to read-only outgoing usb buffer 2023-12-20 17:00:24 +01:00
hsi
hte
hv
hwmon hwmon: (nzxt-kraken2) Fix error handling path in kraken2_probe() 2023-12-13 18:39:14 +01:00
hwspinlock
hwtracing hwtracing: hisi_ptt: Add dummy callback pmu::read() 2023-12-13 18:39:22 +01:00
i2c i2c: designware: Fix corrupted memory seen in the ISR 2023-12-13 18:39:03 +01:00
i3c i3c: master: svc: fix random hot join failure since timeout error 2023-11-28 17:07:17 +00:00
idle
iio iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe() 2023-11-28 17:07:01 +00:00
infiniband RDMA/irdma: Avoid free the non-cqp_request scratch 2023-12-13 18:39:15 +01:00
input Input: xpad - add HyperX Clutch Gladiate Support 2023-12-08 08:51:16 +01:00
interconnect
iommu iommu: Avoid more races around device probe 2023-12-13 18:39:17 +01:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb mcb: fix error handling for different scenarios when parsing 2023-11-28 17:07:13 +00:00
md bcache: avoid NULL checking to c->root in run_cache_set() 2023-12-20 17:00:22 +01:00
media media: qcom: camss: Fix genpd cleanup 2023-12-03 07:32:10 +01:00
memory
memstick
message
mfd mfd: qcom-spmi-pmic: Fix revid implementation 2023-11-28 17:07:12 +00:00
misc misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write 2023-12-13 18:39:23 +01:00
mmc mmc: sdhci-sprd: Fix vqmmc not shutting down after the card was pulled 2023-12-08 08:51:19 +01:00
most
mtd mtd: cfi_cmdset_0001: Byte swap OTP info 2023-11-28 17:07:14 +00:00
mux
net team: Fix use-after-free when an option instance allocation fails 2023-12-20 17:00:25 +01:00
nfc
ntb
nubus
nvdimm
nvme nvme: catch errors from nvme_configure_metadata() 2023-12-20 17:00:22 +01:00
nvmem
of of: dynamic: Fix of_reconfig_get_state_change() return value documentation 2023-12-13 18:39:05 +01:00
opp
parisc parisc/power: Fix power soft-off when running on qemu 2023-11-28 17:07:14 +00:00
parport parport: Add support for Brainboxes IX/UC/PX parallel cards 2023-12-13 18:39:26 +01:00
pci PCI: loongson: Limit MRRS to 256 2023-12-20 17:00:20 +01:00
pcmcia
peci
perf
phy
pinctrl pinctrl: avoid reload of p state in list iteration 2023-12-08 08:51:13 +01:00
platform platform/x86: intel_telemetry: Fix kernel doc descriptions 2023-12-20 17:00:23 +01:00
pnp
power
powercap powercap: DTPM: Fix missing cpufreq_cpu_put() calls 2023-12-13 18:39:21 +01:00
pps
ps3
ptp ptp: annotate data-race around q->head and q->tail 2023-11-28 17:07:05 +00:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 s390/dasd: protect device queue against concurrent access 2023-12-03 07:32:11 +01:00
sbus
scsi scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle() 2023-12-13 18:39:16 +01:00
sh
siox
slimbus
soc pmdomain: imx: Make imx pgc power domain also set the fwnode 2023-11-28 17:07:16 +00:00
soundwire soundwire: stream: fix NULL pointer dereference for multi_link 2023-12-20 17:00:25 +01:00
spi spi: Fix null dereference on suspend 2023-12-08 08:51:19 +01:00
spmi
ssb
staging net: vlan: introduce skb_vlan_eth_hdr() 2023-12-20 17:00:16 +01:00
target
tc
tee tee: optee: Fix supplicant based device enumeration 2023-12-13 18:39:12 +01:00
thermal
thunderbolt thunderbolt: Apply USB 3.x bandwidth quirk only in software connection manager 2023-11-28 17:07:01 +00:00
tty serial: 8250_omap: Add earlycon support for the AM654 UART controller 2023-12-13 18:39:28 +01:00
ufs
uio
usb USB: gadget: core: adjust uevent timing on gadget unbind 2023-12-13 18:39:28 +01:00
vdpa vdpa/mlx5: preserve CVQ vringh index 2023-12-13 18:39:03 +01:00
vfio
vhost vhost-vdpa: fix use after free in vhost_vdpa_probe() 2023-11-28 17:07:04 +00:00
video fbdev: stifb: Make the STI next font pointer a 32-bit signed offset 2023-12-08 08:51:19 +01:00
virt
virtio
vlynq
w1
watchdog sbsa_gwdt: Calculate timeout with 64-bit math 2023-11-28 17:07:18 +00:00
xen xen: simplify evtchn_do_upcall() call maze 2023-12-08 08:51:20 +01:00
zorro
Kconfig
Makefile