Skip to content

drm/rockchip: VOP interrupt fixes

Marc Zyngier dri-devel linux-arm-kernel linux-rockchip lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/rockchip: Clear all interrupts before requesting the IRQdrivers/gpu/drm/rockchip/rockchip_drm_vop.c+12 -110 replies
2/3drm/rockchip: Do not use memcpy for MMIO addressesdrivers/gpu/drm/rockchip/rockchip_drm_vop.c+7 -40 replies
3/3drm/rockchip: Don't use spin_lock_irqsave in interrupt contextdrivers/gpu/drm/rockchip/rockchip_drm_vop.c+4 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm/rockchip: VOP interrupt fixes

This small series fixes a number of issues that I found while trying to get kexec working on the Chromebook Plus (aka rk3399-gru-kevin) in order to use it as some sort of interactive bootloader.

The main issue is that the vop driver expects the interrupts to be cleared and disabled when booting. Nothing could be more wrong. The device should be expected to be alive and screaming, and it is the driver's job to put it back into a sane state.

This is what the first patch does, making sure the interrupt is requested only when the device has been put back into a known state. Given that this is an observable bug that has been around for a while, I've tagged it with a Cc: stable.

The two following patches are less important: Using memcpy on MMIO ranges is plain wrong, and using spin_lock_irqsave in irq context is slightly pointless.

With these patches in, I'm able to get kexec to work. There is still some funny issues at the iommu level, but that's for another day.

Patches on top of 4.16-rc2.

Marc Zyngier (3):
drm/rockchip: Clear all interrupts before requesting the IRQ drm/rockchip: Do not use memcpy for MMIO addresses drm/rockchip: Don't use spin_lock_irqsave in interrupt context

 drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 44 +++++++++++++++--------------
 1 file changed, 23 insertions(+), 21 deletions(-)
Signature · 1 line
2.14.2