summarylogtreecommitdiffstats
path: root/mpss-modules-rcu-lockup.patch
diff options
context:
space:
mode:
authorMarcel Huber2016-08-02 15:52:23 +0200
committerMarcel Huber2016-08-05 08:18:28 +0200
commitec74303d1f40e37209d71a7fff32ad9c9e70b2e6 (patch)
tree724fdf4881d48f4dbdc6f8ef9245af445f359f91 /mpss-modules-rcu-lockup.patch
parentfc830822e0e7c5ec00455ffbd63203e04a4d27b7 (diff)
downloadaur-ec74303d1f40e37209d71a7fff32ad9c9e70b2e6.tar.gz
build everything needed to start using the card
- not use github repos but patch files directly - added download urls - as we already need to have all three *master* tar files present, it is easier to apply changes directly
Diffstat (limited to 'mpss-modules-rcu-lockup.patch')
-rw-r--r--mpss-modules-rcu-lockup.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/mpss-modules-rcu-lockup.patch b/mpss-modules-rcu-lockup.patch
new file mode 100644
index 00000000000..61a9975fd8d
--- /dev/null
+++ b/mpss-modules-rcu-lockup.patch
@@ -0,0 +1,45 @@
+From ab23490f38613aa80cfa811b384f29094b5f3672 Mon Sep 17 00:00:00 2001
+From: Marcel Huber <marcelhuberfoo@gmail.com>
+Date: Thu, 4 Aug 2016 13:33:05 +0200
+Subject: remove rcu_lockup
+ https://github.com/bradyjoh/mpss-modules/commit/70560c893e8acc8d834f04dd2eee0d9e1780c840
+
+---
+ host/vhost/vhost.h | 14 +-------------
+ 1 file changed, 1 insertion(+), 13 deletions(-)
+
+diff --git host/vhost/vhost.h host/vhost/vhost.h
+index ad61802..0d9abf9 100644
+--- mpss-modules/host/vhost/vhost.h
++++ mpss-modules/host/vhost/vhost.h
+@@ -205,18 +205,6 @@ int vhost_zerocopy_signal_used(struct vhost_virtqueue *vq);
+ eventfd_signal((vq)->error_ctx, 1);\
+ } while (0)
+
+-#ifndef __rcu_dereference_index_check
+-#define __rcu_dereference_index_check(p, c) \
+- ({ \
+- typeof(p) _________p1 = ACCESS_ONCE(p); \
+- rcu_lockdep_assert(c, \
+- "suspicious rcu_dereference_index_check()" \
+- " usage"); \
+- smp_read_barrier_depends(); \
+- (_________p1); \
+- })
+-#endif
+-
+ enum {
+ VHOST_FEATURES = (1ULL << VIRTIO_F_NOTIFY_ON_EMPTY) |
+ (1ULL << VIRTIO_RING_F_INDIRECT_DESC) |
+@@ -238,7 +226,7 @@ static inline int vhost_has_feature(struct vhost_dev *dev, int bit)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0))
+ unsigned acked_features = rcu_dereference_index_check(dev->acked_features, rcu_read_lock_held());
+ #else
+- unsigned acked_features = __rcu_dereference_index_check(dev->acked_features, rcu_read_lock_held());
++ unsigned acked_features = smp_load_acquire(&(dev->acked_features));
+ #endif
+ #endif
+ return acked_features & (1 << bit);
+--
+2.9.2
+