]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: intel/ipu6: Fix dma mask for non-secure mode
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 10 Apr 2025 09:47:06 +0000 (11:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:11:17 +0000 (11:11 +0100)
commita2d4fdef06669949dd668435ef7c399ccd94c28e
tree17372b9f5a382b590648010b64b143de5957b823
parent2a2bd7df402decbdefd0acb64ba4e17a0a2a4117
media: intel/ipu6: Fix dma mask for non-secure mode

commit 0209916ebe2475079ce6d8dc4114afbc0ccad1c2 upstream.

We use dma_get_mask() of auxdev device for calculate iova pfn limit.
This is always 32 bit mask as we do not initialize the mask (and we can
not do so, since dev->dev_mask is NULL anyways for auxdev).

Since we need 31 bit mask for non-secure mode use mmu_info->aperture_end
which is properly initialized to correct mask for both modes.

Fixes: daabc5c64703 ("media: ipu6: not override the dma_ops of device in driver")
Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/intel/ipu6/ipu6-dma.c