#ifndef __DT_BINDINGS_CLOCK_EFM32_CMU_H #define __DT_BINDINGS_CLOCK_EFM32_CMU_H #define clk_HFXO 0 #define clk_HFRCO 1 #define clk_LFXO 2 #define clk_LFRCO 3 #define clk_ULFRCO 4 #define clk_AUXHFRCO 5 #define clk_HFCLKNODIV 6 #define clk_HFCLK 7 #define clk_HFPERCLK 8 #define clk_HFCORECLK 9 #define clk_LFACLK 10 #define clk_LFBCLK 11 #define clk_WDOGCLK 12 #define clk_HFCORECLKDMA 13 #define clk_HFCORECLKAES 14 #define clk_HFCORECLKUSBC 15 #define clk_HFCORECLKUSB 16 #define clk_HFCORECLKLE 17 #define clk_HFCORECLKEBI 18 #define clk_HFPERCLKUSART0 19 #define clk_HFPERCLKUSART1 20 #define clk_HFPERCLKUSART2 21 #define clk_HFPERCLKUART0 22 #define clk_HFPERCLKUART1 23 #define clk_HFPERCLKTIMER0 24 #define clk_HFPERCLKTIMER1 25 #define clk_HFPERCLKTIMER2 26 #define clk_HFPERCLKTIMER3 27 #define clk_HFPERCLKACMP0 28 #define clk_HFPERCLKACMP1 29 #define clk_HFPERCLKI2C0 30 #define clk_HFPERCLKI2C1 31 #define clk_HFPERCLKGPIO 32 #define clk_HFPERCLKVCMP 33 #define clk_HFPERCLKPRS 34 #define clk_HFPERCLKADC0 35 #define clk_HFPERCLKDAC0 36 #endif /* __DT_BINDINGS_CLOCK_EFM32_CMU_H */ ='nds-private-remove'>nds-private-remove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Gigi <yotamg@mellanox.com>2017-01-31 15:14:29 +0200
committerDavid S. Miller <davem@davemloft.net>2017-02-01 11:57:33 -0500
commitfd62d9f5c575f0792f150109f1fd24a0d4b3f854 (patch)
treed040d634401cf38fcb447c13aff26d0f492a82a1
parent4993b39ab04b083ff6ee1147e7e7f120feb6bf7f (diff)
net/sched: matchall: Fix configuration race
In the current version, the matchall internal state is split into two structs: cls_matchall_head and cls_matchall_filter. This makes little sense, as matchall instance supports only one filter, and there is no situation where one exists and the other does not. In addition, that led to some races when filter was deleted while packet was processed. Unify that two structs into one, thus simplifying the process of matchall creation and deletion. As a result, the new, delete and get callbacks have a dummy implementation where all the work is done in destroy and change callbacks, as was done in cls_cgroup. Fixes: bf3994d2ed31 ("net/sched: introduce Match-all classifier") Reported-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat
-rw-r--r--net/sched/cls_matchall.c127
1 files changed, 45 insertions, 82 deletions
diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.cm_kms_helper] intel_atomic_commit_tail+0x749/0xfe0 [i915] intel_atomic_commit+0x3cb/0x4f0 [i915] drm_atomic_commit+0x4b/0x50 [drm] restore_fbdev_mode+0x14c/0x2a0 [drm_kms_helper] drm_fb_helper_restore_fbdev_mode_unlocked+0x34/0x80 [drm_kms_helper] drm_fb_helper_set_par+0x2d/0x60 [drm_kms_helper] intel_fbdev_set_par+0x18/0x70 [i915] fb_set_var+0x236/0x460 fbcon_blank+0x30f/0x350 do_unblank_screen+0xd2/0x1a0 vt_ioctl+0x507/0x12a0 tty_ioctl+0x355/0xc30 do_vfs_ioctl+0xa3/0x5e0 SyS_ioctl+0x79/0x90 entry_SYSCALL_64_fastpath+0x13/0x94 - i915 unpin_work workqueue: intel_unpin_work_fn+0x58/0x140 [i915] process_one_work+0x1f1/0x480 worker_thread+0x48/0x4d0 kthread+0x101/0x140 and this patch purely papers over the issue by adding a NULL pointer check and a WARN_ON_ONCE() to avoid the oops that would then generally make the machine unresponsive. Other callers of i915_gem_object_to_ggtt() seem to also check for the returned pointer being NULL and warn about it, so this clearly has happened before in other places. [ Reported it originally to the i915 developers on Jan 8, applying the ugly workaround on my own now after triggering the problem for the second time with no feedback. This is likely to be the same bug reported as https://bugs.freedesktop.org/show_bug.cgi?id=98829 https://bugs.freedesktop.org/show_bug.cgi?id=99134 which has a patch for the underlying problem, but it hasn't gotten to me, so I'm applying the workaround. ] Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Imre Deak <imre.deak@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/dt-bindings/interrupt-controller')