]> git.baikalelectronics.ru Git - kernel.git/commit
s390/airq: use DMA memory for adapter interrupts
authorHalil Pasic <pasic@linux.ibm.com>
Thu, 13 Sep 2018 16:57:16 +0000 (18:57 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 15 Jun 2019 10:25:05 +0000 (12:25 +0200)
commite29de78dd7687c5553d7f1a1d0105c1f1eff2e5f
tree338d7c361dc8b6c3ec9c7d2d9e4fd421fab755dd
parentff5dfe0b67e79ba072e0d68c44ca4ebed3bd0151
s390/airq: use DMA memory for adapter interrupts

Protected virtualization guests have to use shared pages for airq
notifier bit vectors, because the hypervisor needs to write these bits.

Let us make sure we allocate DMA memory for the notifier bit vectors by
replacing the kmem_cache with a dma_cache and kalloc() with
cio_dma_zalloc().

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Sebastian Ott <sebott@linux.ibm.com>
Reviewed-by: Michael Mueller <mimu@linux.ibm.com>
Tested-by: Michael Mueller <mimu@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/include/asm/airq.h
drivers/s390/cio/airq.c
drivers/s390/cio/cio.h
drivers/s390/cio/css.c