Christoph Hellwig
9aa9cc4221
scsi: remove the disable_blk_mq host flag
...
We've had scsi-mq for 2.5 years now, so we can remove the unused flag to
disable the code on a per-host basis that was put in for unexpected
emergencies during bringup.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
2016-07-15 15:11:20 -04:00
Philipp Zabel
77501a79ce
net: phy: micrel: Add KSZ8041FTL fiber mode support
...
We can't detect the FXEN (fiber mode) bootstrap pin, so configure
it via a boolean device tree property "micrel,fiber-mode".
If it is enabled, auto-negotiation is not supported.
The only available modes are 100base-fx (full duplex and half duplex).
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-15 11:53:02 -07:00
Sean Young
4f253cecf8
[media] redrat3: make hardware timeout configurable
...
Instead of hardcoding a timeout, let userspace change it dynamically
by adding a s_timeout ops.
Signed-off-by: Sean Young <sean@mess.org >
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
2016-07-15 12:01:46 -03:00
Mark Brown
efeb1a3ab9
Merge remote-tracking branches 'regmap/topic/bulk', 'regmap/topic/i2c', 'regmap/topic/iopoll', 'regmap/topic/irq' and 'regmap/topic/maintainers' into regmap-next
2016-07-15 13:44:47 +01:00
Philipp Zabel
08188ba882
regmap: add iopoll-like polling macro
...
This patch adds a macro regmap_read_poll_timeout that works similar
to the readx_poll_timeout defined in linux/iopoll.h, except that this
can also return the error value returned by a failed regmap_read.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
Signed-off-by: Mark Brown <broonie@kernel.org >
2016-07-15 13:44:22 +01:00
Hannes Reinecke
5b844b63dd
ata: Handle ATA NCQ NO-DATA commands correctly
...
Add a new taskfile protocol ATA_PROT_NCQ_NODATA to handle
ATA NCQ NO-DATA commands correctly.
And fixup ata_scsi_zbc_out_xlat() to use it.
Signed-off-by: Hannes Reinecke <hare@suse.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Tejun Heo <tj@kernel.org >
2016-07-15 08:08:13 -04:00
Anna-Maria Gleixner
ecd8081f6f
ARC/time: Convert to hotplug state machine
...
Install the callbacks via the state machine.
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Vineet Gupta <vgupta@synopsys.com >
Cc: linux-snps-arc@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153338.391826254@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:46 +02:00
Richard Cochran
eb0a9d8c67
clocksource/atlas7: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Barry Song <baohua@kernel.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153338.310333816@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:45 +02:00
Richard Cochran
2c48fef74c
clocksource/armada-370-xp: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153338.229913786@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:45 +02:00
Richard Cochran
d11b3a60fc
clocksource/exynos_mct: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com >
Cc: Kukjin Kim <kgene@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-samsung-soc@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153338.147940411@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:44 +02:00
Richard Cochran
b8a12296ac
clocksource/arm_global_timer: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Maxime Coquelin <maxime.coquelin@st.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: kernel@stlinux.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153338.062741642@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:44 +02:00
Thomas Gleixner
4df8374254
rcu: Convert rcutree to hotplug state machine
...
Straight forward conversion to the state machine. Though the question arises
whether this needs really all these state transitions to work.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.982013161@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:44 +02:00
Anna-Maria Gleixner
15d7e3d349
KVM/arm/arm64/vgic-new: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Cc: Andre Przywara <andre.przywara@arm.com >
Cc: Christoffer Dall <christoffer.dall@linaro.org >
Cc: Eric Auger <eric.auger@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Paolo Bonzini <pbonzini@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Radim Krcmar <rkrcmar@redhat.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: kvm@vger.kernel.org
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.900484868@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:43 +02:00
Richard Weinberger
31487f8328
smp/cfd: Convert core to hotplug state machine
...
Install the callbacks via the state machine. They are installed at runtime so
smpcfd_prepare_cpu() needs to be invoked by the boot-CPU.
Signed-off-by: Richard Weinberger <richard@nod.at >
[ Added the dropped CPU dying case back in. ]
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Davidlohr Bueso <dave@stgolabs>
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Mel Gorman <mgorman@techsingularity.net >
Cc: Oleg Nesterov <oleg@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.818376366@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:43 +02:00
Sebastian Andrzej Siewior
6b2c28471d
x86/x2apic: Convert to CPU hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Cc: Len Brown <len.brown@intel.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Mathias Krause <minipli@googlemail.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.736898691@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:42 +02:00
Sebastian Andrzej Siewior
e722d8daaf
profile: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs. A lot of code is removed because
the for-loop is used and create_hash_tables() is removed since its purpose
is covered by the startup / teardown hooks.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Mel Gorman <mgorman@techsingularity.net >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Vlastimil Babka <vbabka@suse.cz >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.649867675@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:42 +02:00
Richard Cochran
24f73b9971
timers/core: Convert to hotplug state machine
...
When tearing down, call timers_dead_cpu() before notify_dead().
There is a hidden dependency between:
- timers
- block multiqueue
- rcutree
If timers_dead_cpu() comes later than blk_mq_queue_reinit_notify()
that latter function causes a RCU stall.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: John Stultz <john.stultz@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Oleg Nesterov <oleg@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.566790058@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:42 +02:00
Thomas Gleixner
27590dc17b
hrtimer: Convert to hotplug state machine
...
Split out the clockevents callbacks instead of piggybacking them on
hrtimers.
This gets rid of a POST_DEAD user. See commit:
54e88fad22
("sched: Make sure timers have migrated before killing the migration_thread")
We just move the callback state to the proper place in the state machine.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Oleg Nesterov <oleg@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.485419196@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:41:37 +02:00
Richard Cochran
ae6a8a2ed7
x86/tboot: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Gang Wei <gang.wei@intel.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Ning Sun <ning.sun@intel.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Richard L Maliszewski <richard.l.maliszewski@intel.com >
Cc: Shane Wang <shane.wang@intel.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Cc: tboot-devel@lists.sourceforge.net
Link: http://lkml.kernel.org/r/20160713153337.400227322@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:30 +02:00
Sebastian Andrzej Siewior
27c01a8c73
arm64/armv8 deprecated: Convert to hotplug state machine
...
Install the callbacks via the state machine.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Cc: Catalin Marinas <catalin.marinas@arm.com >
Cc: James Morse <james.morse@arm.com >
Cc: Jisheng Zhang <jszhang@marvell.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Shengjiu Wang <shengjiu.wang@freescale.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Will Deacon <will.deacon@arm.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.311115906@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:30 +02:00
Sebastian Andrzej Siewior
58eb457be0
hwtracing/coresight-etm4x: Convert to hotplug state machine
...
This driver has an asymmetry of ONLINE code without any corresponding tear
down code. Otherwise, this is a straightforward conversion.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.228918408@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:30 +02:00
Richard Cochran
2b5283d12f
hwtracing/coresight-etm3x: Convert to hotplug state machine
...
This driver has an asymmetry of ONLINE code without any corresponding tear
down code. Otherwise, this is a straightforward conversion.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.147128995@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:29 +02:00
Richard Cochran
65264e3bc3
MIPS/Loongson-3: Convert oprofile to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Acked-by: Ralf Baechle <ralf@linux-mips.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Robert Richter <rric@kernel.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-mips@linux-mips.org
Cc: oprofile-list@lists.sf.net
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153337.054827168@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:29 +02:00
Richard Cochran
4761adb6f4
arm/xen: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
The get_cpu() in xen_starting_cpu() boils down to preempt_disable() since
we already know the CPU we run on. Disabling preemption shouldn't be required
here from what I see since it we don't switch CPUs while invoking the function.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Russell King <linux@armlinux.org.uk >
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Cc: xen-devel@lists.xenproject.org
Link: http://lkml.kernel.org/r/20160713153336.971559670@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:28 +02:00
Richard Cochran
26b8768868
arm/twd: Convert to hotplug state machine
...
Install the callbacks via the state machine. The callbacks won't be invoked on
already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Eric Anholt <eric@anholt.net >
Cc: Felipe Balbi <balbi@ti.com >
Cc: Heiko Stuebner <heiko@sntech.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Marc Gonzalez <marc_gonzalez@sigmadesigns.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Vineet Gupta <vgupta@synopsys.com >
Cc: Viresh Kumar <viresh.kumar@linaro.org >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.881124821@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:28 +02:00
Richard Cochran
9eeb226477
arm/l2c: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Brad Mouring <brad.mouring@ni.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Marek Szyprowski <m.szyprowski@samsung.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Rob Herring <robh@kernel.org >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.801270887@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:28 +02:00
Richard Cochran
04d045a681
metag/perf: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com >
Cc: Arnaldo Carvalho de Melo <acme@kernel.org >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-metag@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.717395164@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:27 +02:00
Richard Cochran
b3c9950a5c
arm/kvm/arch_timer: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Christoffer Dall <christoffer.dall@linaro.org >
Cc: Gleb Natapov <gleb@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Paolo Bonzini <pbonzini@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Radim Krcmar <rkrcmar@redhat.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: kvm@vger.kernel.org
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.634155707@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:27 +02:00
Richard Cochran
42ec50b5f2
arm/kvm/vgic: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
The VGIC callback is run after KVM's main callback since it reflects the
makefile order.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Christoffer Dall <christoffer.dall@linaro.org >
Cc: Gleb Natapov <gleb@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Paolo Bonzini <pbonzini@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Radim Krcmar <rkrcmar@redhat.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: kvm@vger.kernel.org
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.546953286@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:26 +02:00
Richard Cochran
911a359de9
leds/trigger/cpu: Convert to hotplug state machine
...
This is a straightforward conversion. We place this callback last
in the list so that the LED illuminates only after a successful
bring up sequence.
( NOTE: The patch adds a FIXME question about the callback used,
this question should probably be revisited later on.)
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Paul Gortmaker <paul.gortmaker@windriver.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Richard Purdie <rpurdie@rpsys.net >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-leds@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.465496902@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:26 +02:00
Richard Cochran
2dab90932f
clocksource/mips-gic: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.380737946@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:26 +02:00
Richard Cochran
b04041655d
clocksource/qcom-timer: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.295486558@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:25 +02:00
Richard Cochran
31e8e5db88
clocksource/metag: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: linux-metag@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.215137642@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:25 +02:00
Richard Cochran
00c1d17aab
clocksource/dummy_timer: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.130385842@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:24 +02:00
Richard Cochran
7e86e8bd8d
clocksource/arm_arch_timer: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
Signed-off-by: Richard Cochran <rcochran@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153336.048259040@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:24 +02:00
Thomas Gleixner
8c18b2d2d0
virt: Convert kvm hotplug to state machine
...
Install the callbacks via the state machine. The core won't invoke the
callbacks on already online CPUs.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Cc: Gleb Natapov <gleb@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Radim Krcmar <rkrcmar@redhat.com >
Cc: kvm@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153335.886159080@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:23 +02:00
Thomas Gleixner
7d88eb695a
arm/perf: Convert to hotplug state machine
...
Straight forward conversion w/o bells and whistles.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Mark Rutland <mark.rutland@arm.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Will Deacon <will.deacon@arm.com >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153335.794097159@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:23 +02:00
Thomas Gleixner
e5b61bafe7
arm: Convert VFP hotplug notifiers to state machine
...
Straight forward conversion plus commentary why code which is executed
in hotplug callbacks needs to be invoked before installing them.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: linux-arm-kernel@lists.infradead.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153335.713612993@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:22 +02:00
Sebastian Andrzej Siewior
148b9e2abe
x86/apb_timer: Convert to hotplug state machine
...
Install the callbacks via the state machine. There is no setup just one
teardown callback. Remove the silly comment about the workqueue up dependency.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153335.625342983@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:22 +02:00
Sebastian Andrzej Siewior
251a5fd64b
x86/kvm/kvmclock: Convert to hotplug state machine
...
Install the callbacks via the state machine and let the core invoke
the callbacks on the already online CPUs.
We assumed that the priority ordering was ment to invoke the online
callback as the last step. In the original code this also invoked the
down prepare callback as the last step. With the symmetric state
machine the down prepare callback is now the first step.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Cc: Gleb Natapov <gleb@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Radim Krcmar <rkrcmar@redhat.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: kvm@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153335.542880859@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:40:21 +02:00
Ingo Molnar
38452af242
Merge branch 'x86/asm' into x86/mm, to resolve conflicts
...
Conflicts:
tools/testing/selftests/x86/Makefile
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2016-07-15 10:26:04 +02:00
Linus Torvalds
fa3a9f5744
Merge branch 'akpm' (patches from Andrew)
...
Merge misc fixes from Andrew Morton:
"20 fixes"
* emailed patches from Andrew Morton <akpm@linux-foundation.org >:
m32r: fix build warning about putc
mm: workingset: printk missing log level, use pr_info()
mm: thp: refix false positive BUG in page_move_anon_rmap()
mm: rmap: call page_check_address() with sync enabled to avoid racy check
mm: thp: move pmd check inside ptl for freeze_page()
vmlinux.lds: account for destructor sections
gcov: add support for gcc version >= 6
mm, meminit: ensure node is online before checking whether pages are uninitialised
mm, meminit: always return a valid node from early_pfn_to_nid
kasan/quarantine: fix bugs on qlist_move_cache()
uapi: export lirc.h header
madvise_free, thp: fix madvise_free_huge_pmd return value after splitting
Revert "scripts/gdb: add documentation example for radix tree"
Revert "scripts/gdb: add a Radix Tree Parser"
scripts/gdb: Perform path expansion to lx-symbol's arguments
scripts/gdb: add constants.py to .gitignore
scripts/gdb: rebuild constants.py on dependancy change
scripts/gdb: silence 'nothing to do' message
kasan: add newline to messages
mm, compaction: prevent VM_BUG_ON when terminating freeing scanner
2016-07-15 16:00:18 +09:00
Hugh Dickins
5a49973d71
mm: thp: refix false positive BUG in page_move_anon_rmap()
...
The VM_BUG_ON_PAGE in page_move_anon_rmap() is more trouble than it's
worth: the syzkaller fuzzer hit it again. It's still wrong for some THP
cases, because linear_page_index() was never intended to apply to
addresses before the start of a vma.
That's easily fixed with a signed long cast inside linear_page_index();
and Dmitry has tested such a patch, to verify the false positive. But
why extend linear_page_index() just for this case? when the avoidance in
page_move_anon_rmap() has already grown ugly, and there's no reason for
the check at all (nothing else there is using address or index).
Remove address arg from page_move_anon_rmap(), remove VM_BUG_ON_PAGE,
remove CONFIG_DEBUG_VM PageTransHuge adjustment.
And one more thing: should the compound_head(page) be done inside or
outside page_move_anon_rmap()? It's usually pushed down to the lowest
level nowadays (and mm/memory.c shows no other explicit use of it), so I
think it's better done in page_move_anon_rmap() than by caller.
Fixes: 0798d3c022
("mm: thp: avoid false positive VM_BUG_ON_PAGE in page_move_anon_rmap()")
Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1607120444540.12528@eggly.anvils
Signed-off-by: Hugh Dickins <hughd@google.com >
Reported-by: Dmitry Vyukov <dvyukov@google.com >
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com >
Cc: Mika Westerberg <mika.westerberg@linux.intel.com >
Cc: Andrea Arcangeli <aarcange@redhat.com >
Cc: Rik van Riel <riel@redhat.com >
Cc: <stable@vger.kernel.org > [4.5+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-07-15 14:54:27 +09:00
Naoya Horiguchi
33f4751e99
mm: thp: move pmd check inside ptl for freeze_page()
...
I found a race condition triggering VM_BUG_ON() in freeze_page(), when
running a testcase with 3 processes:
- process 1: keep writing thp,
- process 2: keep clearing soft-dirty bits from virtual address of process 1
- process 3: call migratepages for process 1,
The kernel message is like this:
kernel BUG at /src/linux-dev/mm/huge_memory.c:3096!
invalid opcode: 0000 [#1 ] SMP
Modules linked in: cfg80211 rfkill crc32c_intel ppdev serio_raw pcspkr virtio_balloon virtio_console parport_pc parport pvpanic acpi_cpufreq tpm_tis tpm i2c_piix4 virtio_blk virtio_net ata_generic pata_acpi floppy virtio_pci virtio_ring virtio
CPU: 0 PID: 28863 Comm: migratepages Not tainted 4.6.0-v4.6-160602-0827-+ #2
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
task: ffff880037320000 ti: ffff88007cdd0000 task.ti: ffff88007cdd0000
RIP: 0010:[<ffffffff811f8e06>] [<ffffffff811f8e06>] split_huge_page_to_list+0x496/0x590
RSP: 0018:ffff88007cdd3b70 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88007c7b88c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000700000200 RDI: ffffea0003188000
RBP: ffff88007cdd3bb8 R08: 0000000000000001 R09: 00003ffffffff000
R10: ffff880000000000 R11: ffffc000001fffff R12: ffffea0003188000
R13: ffffea0003188000 R14: 0000000000000000 R15: 0400000000000080
FS: 00007f8ec241d740(0000) GS:ffff88007dc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ec1f3ed20 CR3: 000000003707b000 CR4: 00000000000006f0
Call Trace:
? list_del+0xd/0x30
queue_pages_pte_range+0x4d1/0x590
__walk_page_range+0x204/0x4e0
walk_page_range+0x71/0xf0
queue_pages_range+0x75/0x90
? queue_pages_hugetlb+0x190/0x190
? new_node_page+0xc0/0xc0
? change_prot_numa+0x40/0x40
migrate_to_node+0x71/0xd0
do_migrate_pages+0x1c3/0x210
SyS_migrate_pages+0x261/0x290
entry_SYSCALL_64_fastpath+0x1a/0xa4
Code: e8 b0 87 fb ff 0f 0b 48 c7 c6 30 32 9f 81 e8 a2 87 fb ff 0f 0b 48 c7 c6 b8 46 9f 81 e8 94 87 fb ff 0f 0b 85 c0 0f 84 3e fd ff ff <0f> 0b 85 c0 0f 85 a6 00 00 00 48 8b 75 c0 4c 89 f7 41 be f0 ff
RIP split_huge_page_to_list+0x496/0x590
I'm not sure of the full scenario of the reproduction, but my debug
showed that split_huge_pmd_address(freeze=true) returned without running
main code of pmd splitting because pmd_present(*pmd) in precheck somehow
returned 0. If this happens, the subsequent try_to_unmap() fails and
returns non-zero (because page_mapcount() still > 0), and finally
VM_BUG_ON() fires. This patch tries to fix it by prechecking pmd state
inside ptl.
Link: http://lkml.kernel.org/r/1466990929-7452-1-git-send-email-n-horiguchi@ah.jp.nec.com
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com >
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-07-15 14:54:27 +09:00
Dmitry Vyukov
e41f501d39
vmlinux.lds: account for destructor sections
...
If CONFIG_KASAN is enabled and gcc is configured with
--disable-initfini-array and/or gold linker is used, gcc emits
.ctors/.dtors and .text.startup/.text.exit sections instead of
.init_array/.fini_array. .dtors section is not explicitly accounted in
the linker script and messes vvar/percpu layout.
We want:
ffffffff822bfd80 D _edata
ffffffff822c0000 D __vvar_beginning_hack
ffffffff822c0000 A __vvar_page
ffffffff822c0080 0000000000000098 D vsyscall_gtod_data
ffffffff822c1000 A __init_begin
ffffffff822c1000 D init_per_cpu__irq_stack_union
ffffffff822c1000 A __per_cpu_load
ffffffff822d3000 D init_per_cpu__gdt_page
We got:
ffffffff8279a600 D _edata
ffffffff8279b000 A __vvar_page
ffffffff8279c000 A __init_begin
ffffffff8279c000 D init_per_cpu__irq_stack_union
ffffffff8279c000 A __per_cpu_load
ffffffff8279e000 D __vvar_beginning_hack
ffffffff8279e080 0000000000000098 D vsyscall_gtod_data
ffffffff827ae000 D init_per_cpu__gdt_page
This happens because __vvar_page and .vvar get different addresses in
arch/x86/kernel/vmlinux.lds.S:
. = ALIGN(PAGE_SIZE);
__vvar_page = .;
.vvar : AT(ADDR(.vvar) - LOAD_OFFSET) {
/* work around gold bug 13023 */
__vvar_beginning_hack = .;
Discard .dtors/.fini_array/.text.exit, since we don't call dtors.
Merge .text.startup into init text.
Link: http://lkml.kernel.org/r/1467386363-120030-1-git-send-email-dvyukov@google.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com >
Reviewed-by: Andrey Ryabinin <aryabinin@virtuozzo.com >
Cc: <stable@vger.kernel.org > [4.0+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-07-15 14:54:27 +09:00
Mauro Carvalho Chehab
12cb22bb8a
uapi: export lirc.h header
...
This header contains the userspace API for lirc.
This is a fixup for commit b7be755733
("[media] bz#75751: Move
internal header file lirc.h to uapi/"). It moved the header to the
right place, but it forgot to add it at Kbuild. So, despite being at
uapi, it is not copied to the right place.
Fixes: b7be755733
("[media] bz#75751: Move internal header file lirc.h to uapi/")
Link: http://lkml.kernel.org/r/320c765d32bfc82c582e336d52ffe1026c73c644.1468439021.git.mchehab@s-opensource.com
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
Cc: Alec Leamas <leamas.alec@gmail.com >
Cc: <stable@vger.kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-07-15 14:54:27 +09:00
Arnd Bergmann
caeccd5180
devlink: fix trace format string
...
Including devlink.h on ARM and probably other 32-bit architectures results in
a harmless warning:
In file included from ../include/trace/define_trace.h:95:0,
from ../include/trace/events/devlink.h:51,
from ../net/core/devlink.c:30:
include/trace/events/devlink.h: In function 'trace_raw_output_devlink_hwmsg':
include/trace/events/devlink.h:42:12: error: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t {aka unsigned int}' [-Werror=format=]
The correct format string for 'size_t' is %zu, not %lu, this works on all
architectures.
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Fixes: e5224f0fe2
("devlink: add hardware messages tracing facility")
Signed-off-by: Jiri Pirko <jiri@mellanox.com >
Acked-by: Randy Dunlap <rdunlap@infradead.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-14 22:16:05 -07:00
Jiri Pirko
0e1824c98a
tracing: change owner name to driver name for devlink hwmsg tracepoint
...
Turned on that driver->owner which is struct module is not available when
modules are disabled. Better to depend on a driver name which is
always available.
Reported-by: Randy Dunlap <rdunlap@infradead.org >
Fixes: e5224f0fe2
("devlink: add hardware messages tracing facility")
Signed-off-by: Jiri Pirko <jiri@mellanox.com >
Acked-by: Randy Dunlap <rdunlap@infradead.org >
Acked-by: Steven Rostedt <rostedt@goodmis.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-07-14 22:16:05 -07:00
Sergei Shtylyov
e0c3f92a08
ARM: dts: r8a7792: remove ADSP clock
...
Simon Horman told me that R8A7792 has ADSP clock based on an incorrect
table in the most recent R-Car gen2 manual. But when I received that manual
I discovered that this is false: R8A7792 is the only Gen 2 SoC that doesn't
have ADSP at all. Accordingly remove the ADSP clock from DT for the
r8a7792.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com >
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be >
Signed-off-by: Simon Horman <horms+renesas@verge.net.au >
2016-07-15 13:22:45 +09:00
Dave Airlie
d2e1204f89
Merge branch 'drm-vmwgfx-fixes' of git://people.freedesktop.org/~syeh/repos_linux into drm-fixes
...
A bunch of vmwgfx fixes that fix a black screen issue on latest distros/hw combos.
* 'drm-vmwgfx-fixes' of git://people.freedesktop.org/~syeh/repos_linux:
drm/vmwgfx: Fix error paths when mapping framebuffer
drm/vmwgfx: Fix corner case screen target management
drm/vmwgfx: Delay pinning fbdev framebuffer until after mode set
drm/vmwgfx: Check pin count before attempting to move a buffer
drm/ttm: Make ttm_bo_mem_compat available
drm/vmwgfx: Add an option to change assumed FB bpp
drm/vmwgfx: Work around mode set failure in 2D VMs
drm/vmwgfx: Add a check to handle host message failure
2016-07-15 13:51:55 +10:00