OSDN Git Service

media: staging: imgu: do not hold spinlock during freeing mmu page table
authorBingbu Cao <bingbu.cao@intel.com>
Tue, 24 Mar 2020 04:16:48 +0000 (05:16 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 10:32:26 +0000 (12:32 +0200)
commite1ebe9f9c88e5a78fcc4670a9063c9b3cd87dda4
tree0a3839765a9d631bda0d63ba25bdedc2c57a04fd
parent9611ba28d8508dcb92837a47a639b79598cbcc53
media: staging: imgu: do not hold spinlock during freeing mmu page table

ImgU need set the mmu page table in memory as uncached, and set back
to write-back when free the page table by set_memory_wb(),
set_memory_wb() can not do flushing without interrupt, so the spinlock
should not be hold during ImgU page alloc and free, the interrupt
should be enabled during memory cache flush.

This patch release spinlock before freeing pages table.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/ipu3/ipu3-mmu.c