]> asedeno.scripts.mit.edu Git - linux.git/commit
media: ti-vpe: vpdma: Use fixed type for address in descriptor
authorBenoit Parrot <bparrot@ti.com>
Mon, 7 Oct 2019 15:10:02 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 16:50:36 +0000 (13:50 -0300)
commit63728b1cab288da65234e9c9fac4e294cc95cdd9
treede5c05731f5ec7804e931be217509d1ff50db541
parentcf6acb73b050e98b5cc435fae0e8ae0157520410
media: ti-vpe: vpdma: Use fixed type for address in descriptor

Using dma_addr_t as the type to hold address inside of a fix sized
descriptor used by the vpdma firmware is prone to fail when the expected
width is 32 bits and suddenly when CONFIG_LPAE is enabled the data size
is now 64 bits shifted the remaining members of the descriptor in memory
which confuses the firmware.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/ti-vpe/vpdma_priv.h