Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2019-07-18 11:02:34 +0200
committerPetr Tesarik <ptesarik@suse.cz>2019-07-19 14:09:51 +0200
commit240d75e192e635bb80328ae057929a9d260d5104 (patch)
tree957728dd5309b29e1fb501f1dfc2bb95f0b18a75
parentf33c33608dd6c2418da26fe515aa8dca17edd18f (diff)
virtio/s390: use cacheline aligned airq bit vectors
(jsc#SLE-6197 FATE#327012 bsc#1140559 LTC#173150).
-rw-r--r--patches.suse/virtio-s390-use-cacheline-aligned-airq-bit-vectors33
-rw-r--r--series.conf1
2 files changed, 34 insertions, 0 deletions
diff --git a/patches.suse/virtio-s390-use-cacheline-aligned-airq-bit-vectors b/patches.suse/virtio-s390-use-cacheline-aligned-airq-bit-vectors
new file mode 100644
index 0000000000..0cef5fad15
--- /dev/null
+++ b/patches.suse/virtio-s390-use-cacheline-aligned-airq-bit-vectors
@@ -0,0 +1,33 @@
+From: Halil Pasic <pasic@linux.ibm.com>
+Date: Thu, 23 May 2019 16:50:07 +0200
+Subject: virtio/s390: use cacheline aligned airq bit vectors
+Git-commit: 01b3fb1ea00d5b2af77f41da69dd9dc859c12748
+Patch-mainline: v5.2-rc1
+References: jsc#SLE-6197 FATE#327012 bsc#1140559 LTC#173150
+
+The flag AIRQ_IV_CACHELINE was recently added to airq_iv_create(). Let
+us use it! We actually wanted the vector to span a cacheline all along.
+
+Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
+Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
+Reviewed-by: Cornelia Huck <cohuck@redhat.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>
+Acked-by: Petr Tesarik <ptesarik@suse.com>
+---
+ drivers/s390/virtio/virtio_ccw.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/s390/virtio/virtio_ccw.c
++++ b/drivers/s390/virtio/virtio_ccw.c
+@@ -219,7 +219,8 @@ static struct airq_info *new_airq_info(v
+ if (!info)
+ return NULL;
+ rwlock_init(&info->lock);
+- info->aiv = airq_iv_create(VIRTIO_IV_BITS, AIRQ_IV_ALLOC | AIRQ_IV_PTR);
++ info->aiv = airq_iv_create(VIRTIO_IV_BITS, AIRQ_IV_ALLOC | AIRQ_IV_PTR
++ | AIRQ_IV_CACHELINE);
+ if (!info->aiv) {
+ kfree(info);
+ return NULL;
diff --git a/series.conf b/series.conf
index 4624a0938e..c8aa0df2be 100644
--- a/series.conf
+++ b/series.conf
@@ -47724,6 +47724,7 @@
patches.suse/s390-cio-introduce-dma-pools-to-cio
patches.suse/s390-cio-add-basic-protected-virtualization-support
patches.suse/s390-airq-use-dma-memory-for-adapter-interrupts
+ patches.suse/virtio-s390-use-cacheline-aligned-airq-bit-vectors
patches.fixes/crypto-ccp-fix-AES-CFB-error-exposed-by-new-test-vec.patch
patches.fixes/crypto-ccp-Fix-3DES-complaint-from-ccp-crypto-module.patch
patches.fixes/crypto-talitos-rename-alternative-AEAD-algos.patch