Re: [PATCH tip/core/rcu 9/9] rcu: Provide counterpart to rcu_dereference() for non-RCU situations

2014-10-29 Thread Paul E. McKenney
On Wed, Oct 29, 2014 at 08:15:19PM +0100, Oleg Nesterov wrote: > On 10/29, Paul E. McKenney wrote: > > > > On Wed, Oct 29, 2014 at 11:57:04AM +0100, Peter Zijlstra wrote: > > > On Tue, Oct 28, 2014 at 03:10:02PM -0700, Paul E. McKenney wrote: > > > > From: "Paul E. McKenney" > > > > > > > > Althou

Re: [PATCH RESEND 10/12] ARM: dts: berlin: Add SDHCI controller nodes to BG2/BG2CD

2014-10-29 Thread Sebastian Hesselbarth
On 21.10.2014 11:22, Sebastian Hesselbarth wrote: Marvell Berlin BG2 has three, BG2CD just one pxav3 compatible sdhci controllers, add them to the corresponding DT SoC includes. Signed-off-by: Sebastian Hesselbarth Applied the three DT patches to berlin/dt. Sebastian --- Cc: Chris Ball Cc

Re: [PATCH v2 6/9] ARM: berlin: Add BG2 ethernet DT nodes

2014-10-29 Thread Sebastian Hesselbarth
On 22.10.2014 20:26, Sebastian Hesselbarth wrote: Marvell BG2 has two fast ethernet controllers with internal PHY, add the corresponding nodes to SoC dtsi. Tested-by: Antoine Ténart Reviewed-by: Florian Fainelli Signed-off-by: Sebastian Hesselbarth Applied the four DT patches to berlin/dt.

Re: [PATCH] mfd: tc6393xb fail ohci suspend if full state restore is required

2014-10-29 Thread Dmitry Eremin-Solenikov
2014-10-24 20:19 GMT+03:00 Dmitry Eremin-Solenikov : > Some boards with TC6393XB chip require full state restore during system > resume thanks to chip's VCC being cut off during suspend (Sharp SL-6000 > tosa is one of them). Failing to do so would result in ohci Oops on > resume due to internal mem

[RFC PATCH 2/5] block: ioprio hint to low-level device drivers

2014-10-29 Thread Jason B. Akers
From: Dan Williams The priority in the io_context is consumed by the io scheduler. For caching advice we need the request->ioprio field to be up-to-date. Set the bio ioprio at submit time. Signed-off-by: Dan Williams Signed-off-by: Jason B. Akers --- block/bio.c|1 + block/ioprio.c

[RFC PATCH 4/5] block, mm: Added the necessary plumbing to take ioprio hints down to block layer

2014-10-29 Thread Jason B. Akers
From: Kapil Karkra Added the necessary plumbing to take the ioprio hints down to the block layer from where they further flow down into the libata. For reads or direct IO, bio_associate_ioprio (invoked from blk_throtl_bio) copies the ioprio from the current io context into the bio in the submit_b

[RFC PATCH 5/5] libata: Enabling Solid State Hybrid Drives (SSHDs) based on SATA 3.2 standard

2014-10-29 Thread Jason B. Akers
From: Jason B. Akers Augment the libata to add support for SSHDs--hard disks with a small embedded NAND memory in them. The hybrid information feature is part of the SATA standard 3.2 that specifies a way for host drivers to pass hints to the drives over the SATA interface to guide the placement

[RFC PATCH 1/5] block, ioprio: include caching advice via ionice

2014-10-29 Thread Jason B. Akers
From: Dan Williams Steal one unused bit from the priority class and two bits from the priority data, to implement a 3 bit cache-advice field. Similar to the page cache advice from fadvise() these hints are meant to be consumed by hybrid drives. Solid State Hyrbid-Drives, as defined by the SATA-

Re: [GIT PULL] Fix for Integrity subsystem null pointer deref

2014-10-29 Thread Dan Carpenter
On Wed, Oct 29, 2014 at 09:23:45AM -0700, Andy Lutomirski wrote: > I have no idea what the semantics are. All I'm saying is that it > looks like the code still accesses memory past the end of the buffer. > The buffer isn't a null pointer, so the symptom is different, but it > may still be a securi

[RFC PATCH 3/5] block: untangle ioprio from BLK_CGROUP and BLK_DEV_THROTTLING

2014-10-29 Thread Jason B. Akers
From: Dan Williams If BLK_CGROUP is disabled, still enable ionice to set advice on bios. Signed-off-by: Dan Williams Signed-off-by: Jason B. Akers --- block/bio.c | 43 +++- block/blk.h |2 ++ include/linux/bio.h | 68 +++

[RFC PATCH 0/5] Enable use of Solid State Hybrid Drives

2014-10-29 Thread Jason B. Akers
The following series enables the use of Solid State hybrid drives ATA standard 3.2 defines the hybrid information feature, which provides a means for the host driver to provide hints to the SSHDs to guide what to place on the SSD/NAND portion and what to place on the magnetic media. This impleme

Re: e1000_netpoll(): disable_irq() triggers might_sleep() on linux-next

2014-10-29 Thread Thomas Gleixner
xe0 > > Preemption disabled at:[] printk_emit+0x31/0x33 > > > > CPU: 1 PID: 1 Comm: systemd Not tainted 3.18.0-rc2-next-20141029-dirty #222 > > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > > 1.7.5-20140617_173321-var-lib-archbuild-testing-x86_64-tobias 04/01/

Re: [GIT PULL] Fix for Integrity subsystem null pointer deref

2014-10-29 Thread Mimi Zohar
On Wed, 2014-10-29 at 09:23 -0700, Andy Lutomirski wrote: > On Oct 29, 2014 6:00 AM, "Mimi Zohar" wrote: > > > > On Tue, 2014-10-28 at 22:08 -0700, Andy Lutomirski wrote: > > > On Tue, Oct 28, 2014 at 8:55 PM, James Morris wrote: > > > > These changes fix a bug in xattr handling, where the evm a

Re: [PATCH] sched: Fix race between task_group and sched_task_group

2014-10-29 Thread Oleg Nesterov
On 10/29, Kirill Tkhai wrote: > > On 29.10.2014 01:52, Oleg Nesterov wrote: > > > And cgroup_task_migrate() can free ->cgroups via call_rcu(). Of course, > > in practice raw_spin_lock_irq() should also act as rcu_read_lock(), but > > we should not rely on implementation details. > > Do you mean cgr

Re: [PATCH v3 00/15] net: dsa: Fixes and enhancements

2014-10-29 Thread Florian Fainelli
On 10/29/2014 10:44 AM, Guenter Roeck wrote: > Patch 01/15 addresses a bug indicated by an an annoying and unhelpful > log message. > > Patches 02/15 and 03/15 are minor enhancements, adding support for > known switch revisions. > > Patches 04/15 and 05/15 add support for MV88E6352 and MV88E6176.

Re: Cache Allocation Technology Design

2014-10-29 Thread Tejun Heo
On Wed, Oct 29, 2014 at 10:41:47AM -0700, Vikas Shivappa wrote: > Was wondering if it is a requirement of the 'full hierarchy' for the child > to inherit the cbm of parent ? . > Alternately we can allocate the CLOSid when a cgroup is created and have an > empty cbm - but dont let the tasks to be ad

Re: [PATCH tip/core/rcu 9/9] rcu: Provide counterpart to rcu_dereference() for non-RCU situations

2014-10-29 Thread Oleg Nesterov
On 10/29, Paul E. McKenney wrote: > > On Wed, Oct 29, 2014 at 11:57:04AM +0100, Peter Zijlstra wrote: > > On Tue, Oct 28, 2014 at 03:10:02PM -0700, Paul E. McKenney wrote: > > > From: "Paul E. McKenney" > > > > > > Although rcu_dereference() and friends can be used in situations where > > > object

Re: Cache Allocation Technology Design

2014-10-29 Thread Peter Zijlstra
On Wed, Oct 29, 2014 at 10:26:16AM -0700, Vikas Shivappa wrote: > >It appears to me this 'mode' thing is entirely superfluous and can be > >constructed by voluntary operation of this and cpusets or manual > >affinity calls. > > Do you mean user would would just user the cpusets for cpu affinity an

[PATCH 1/2] tty: serial: msm: Fix sysrq spinlock recursion on non-DM

2014-10-29 Thread Stephen Boyd
The handle_rx() path calls uart_handle_sysrq_char() with the port lock held. This causes a spinlock recursion. Release and reacquire the lock here to avoid this. BUG: spinlock recursion on CPU#0, swapper/0 lock: msm_uart_ports+0x1e0/0x2d0, .magic: dead4ead, .owner: swapper/0, .owner_cpu: 0 CPU:

[PATCH] of/fdt: Don't clear initial_boot_params if fdt_check_header() fails

2014-10-29 Thread Bjorn Helgaas
If the device tree pointer is NULL, early_init_dt_verify() fails, leaving initial_boot_params unchanged. If the device tree pointer is non-NULL but invalid, early_init_dt_verify() again fails but this time it also clears initial_boot_params. Leave initial_boot_params unchanged if the device tree

[PATCH 2/2] tty: serial: msm: Support sysrq on uartDM devices

2014-10-29 Thread Stephen Boyd
To properly support sysrq on uartDM hardware we need to properly handle break characters. With the DM hardware the fifo can pack 4 characters at a time, where a break is indicated by an all zero byte. Unfortunately, we can't differentiate between an all zero byte for a break and an all zero byte of

Re: [PATCH V2 4/5] cpuidle: menu: Fix the get_typical_interval

2014-10-29 Thread Daniel Lezcano
On 10/28/2014 03:48 AM, Len Brown wrote: On Thu, Oct 23, 2014 at 5:01 AM, Daniel Lezcano wrote: The first time the 'get_typical_function' is called, it computes an average of zero as no data is filled yet. That leads the 'data->predicted_us' variable to be set to zero too. The caller, 'menu_se

[PATCH] CodingStyle: Add a chapter on conditional compilation

2014-10-29 Thread Josh Triplett
Document several common practices and conventions regarding conditional compilation, most notably the preference for ifdefs in headers rather than .c files. Signed-off-by: Josh Triplett --- I found myself explaining a few of these unwritten rules in patch feedback, so I figured I'd document them

Re: [PATCH 00/13] HID: add support of Logitech touchpads and special devices

2014-10-29 Thread Benjamin Tissoires
On Wed, Oct 29, 2014 at 12:14 PM, Jiri Kosina wrote: > On Wed, 29 Oct 2014, Benjamin Tissoires wrote: > >> No worries. I definitively understand. Being close to the merge window >> is never a good time to send you patches and I am sure SuSE asks you a >> lot also :) > > Indeed, sometimes the flow

[PATCH 0/2] Two msm_serial break fixes

2014-10-29 Thread Stephen Boyd
The first patch fixes a spinlock recursion. I suppose we can ship it back to stable but I doubt anyone has noticed or cares. The second one adds break support to the DM path, and allows sysrq to work. Stephen Boyd (2): tty: serial: msm: Fix sysrq spinlock recursion on non-DM tty: serial: msm:

Re: [PATCH v2] all arches, signal: Move restart_block to struct task_struct

2014-10-29 Thread Thomas Gleixner
On Wed, 29 Oct 2014, Andy Lutomirski wrote: > If an attacker can cause a controlled kernel stack overflow, > overwriting the restart block is a very juicy exploit target. > Moving the restart block to struct task_struct prevents this > exploit. > > Note that there are other fields in thread_info

Re: e1000_netpoll(): disable_irq() triggers might_sleep() on linux-next

2014-10-29 Thread Peter Zijlstra
it+0x77/0x6a0 > softirqs last enabled at (10102342): [] > __do_softirq+0x27a/0x6f0 > softirqs last disabled at (10102337): [] irq_exit+0x56/0xe0 > Preemption disabled at:[] printk_emit+0x31/0x33 > > CPU: 1 PID: 1 Comm: systemd Not tainted 3.18.0-rc2-next-20141029-dirty #222 &

[GIT PULL rcu/urgent-for-mingo] Regression fixes

2014-10-29 Thread Paul E. McKenney
Hello, Ingo, This pull request contains a couple of fixes for RCU regressions: 1. Complete the work of commit dd56af42bd82 (rcu: Eliminate deadlock between CPU hotplug and expedited grace periods), which was intended to allow synchronize_sched_expedited() to be safely

Re: [PATCH RESEND V4 2/9] mailbox: Add NVIDIA Tegra XUSB mailbox driver

2014-10-29 Thread Andrew Bresticker
>> + for (i = 0; i < ARRAY_SIZE(mbox->vchan_allocated); i++) { >> + if (mbox->vchan_allocated[i]) >> + mbox_chan_received_data(&mbox->mbox.chans[i], &msg); >> + } > > It seems like the only reason why you need to explicitly check for an > allocated channel is

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Mark Rutland
On Wed, Oct 29, 2014 at 04:55:56PM +, Andrew Bresticker wrote: > Hi James, > > On Wed, Oct 29, 2014 at 2:21 AM, James Hogan wrote: > > Hi Andrew, > > > > On 29/10/14 00:12, Andrew Bresticker wrote: > >> - changed compatible string to include CPU version > > > >> +Required properties: > >> +-

Re: [PATCH] serial: msm: Add magic SysRq support in dmmode

2014-10-29 Thread Stephen Boyd
On 10/29/2014 09:38 AM, Daniel Thompson wrote: > Currently the _dm RX handler detects breaks but does not pass any > characters to uart_handle_sysrq_char(). > > The _dm optimizations combined with the port's spin lock make if > difficult to pass all characters to the sysrq logic because we cannot >

Re: [PATCH tip/core/rcu 0/5] Documentation updates for 3.19

2014-10-29 Thread Pranith Kumar
On Tue, Oct 28, 2014 at 5:59 PM, Paul E. McKenney wrote: > Hello! > > This series contains a few documentation updates: > > 1. Records limitations of bitfields and small variables. > Also rules out pre-EV56 Alpha, which lack 8- and 16-bit > memory-reference instructions. Late

Re: [PATCH v3 3/3] x86: Support compiling out userspace I/O (iopl and ioperm)

2014-10-29 Thread josh
On Wed, Oct 29, 2014 at 10:20:28AM -0700, H. Peter Anvin wrote: > On 10/29/2014 10:17 AM, j...@joshtriplett.org wrote: > >> > >> But this is entirely a style decision, so I leave it up to the x86 > >> maintainers ... > > > > I can certainly do that if the x86 maintainers prefer, but that tends to

Re: [PATCH] PM / Runtime: Rework RPM get callback routines

2014-10-29 Thread Kevin Hilman
Andrzej Hajda writes: > PM uses three separate functions to fetch RPM callbacks. > These functions uses quite complicated macro in their body. > The patch replaces these routines with one small macro and > one helper function. > > Signed-off-by: Andrzej Hajda Acked-by: Kevin Hilman -- To unsub

Re: [Qemu-devel] [PATCH 00/17] RFC: userfault v2

2014-10-29 Thread Peter Maydell
On 29 October 2014 17:46, Andrea Arcangeli wrote: > After some chat during the KVMForum I've been already thinking it > could be beneficial for some usage to give userland the information > about the fault being read or write ...I wonder if that would let us replace the current nasty mess we use

Re: [RFCv1] Media Token API needs - Was: Re: [alsa-devel] [PATCH v2 5/6] sound/usb: pcm changes to use media token api

2014-10-29 Thread Mauro Carvalho Chehab
Em Wed, 29 Oct 2014 10:06:51 -0600 Shuah Khan escreveu: > On 10/28/2014 05:42 PM, Mauro Carvalho Chehab wrote: > > Hi Shuah, > > > > I'm understanding that you're collecting comments to write a RFC with the > > needs by the media token, right? > > > > I'm sending you my contributions to such te

Re: [PATCH tip/core/rcu 10/10] cpu: Avoid puts_pending overflow

2014-10-29 Thread Pranith Kumar
On Tue, Oct 28, 2014 at 5:53 PM, Paul E. McKenney wrote: > From: "Paul E. McKenney" > > A long string of get_online_cpus() with each followed by a > put_online_cpu() that fails to acquire cpu_hotplug.lock can result in > overflow of the cpu_hotplug.puts_pending counter. Although this is > perhap

Re: [PATCH tip/core/rcu 0/9] Per-CPU-variable updates

2014-10-29 Thread Pranith Kumar
On Tue, Oct 28, 2014 at 5:51 PM, Paul E. McKenney wrote: > Hello! > > This series updates RCU's handling of per-CPU variables, mostly > moving from "cpu" function arguments to various "this_"-style accessors > for per-CPU variables: > > 1. Drop the rdtp argument from RCU's dyntick-idle and sy

[PATCH v3 01/15] net: dsa: Don't set skb->protocol on outgoing tagged packets

2014-10-29 Thread Guenter Roeck
Setting skb->protocol to a private protocol type may result in warning messages such as e1000e :00:19.0 em1: checksum_partial proto=dada! This happens if the L3 protocol is IP or IPv6 and skb->ip_summed is set to CHECKSUM_PARTIAL. Looking through the code, it appears that changing skb-

Re: [PATCH] staging: skein: skein_api.c: removed space before ','

2014-10-29 Thread Jason Cooper
Mikael, On Wed, Oct 29, 2014 at 05:55:34PM +0100, Mikael Svantesson wrote: > Signed-off-by: Mikael Svantesson > --- > drivers/staging/skein/skein_api.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Jason Cooper For future patches, please remember to add the 'V3' to the sub

[PATCH v3 00/15] net: dsa: Fixes and enhancements

2014-10-29 Thread Guenter Roeck
Patch 01/15 addresses a bug indicated by an an annoying and unhelpful log message. Patches 02/15 and 03/15 are minor enhancements, adding support for known switch revisions. Patches 04/15 and 05/15 add support for MV88E6352 and MV88E6176. Patch 06/15 adds support for hardware monitoring, specifi

[PATCH v3 02/15] net: dsa: Report known silicon revisions for Marvell 88E6060

2014-10-29 Thread Guenter Roeck
Report known silicon revisions when probing Marvell 88E6060 switches. Signed-off-by: Guenter Roeck --- v3: - No change v2: - No change drivers/net/dsa/mv88e6060.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c in

Re: [PATCH V3 4/4] clocksource: mips-gic: Add device-tree support

2014-10-29 Thread Mark Rutland
On Wed, Oct 29, 2014 at 12:12:42AM +, Andrew Bresticker wrote: > Parse the GIC timer frequency and interrupt from the device-tree. > > Signed-off-by: Andrew Bresticker > --- > New for v3. > --- > drivers/clocksource/Kconfig | 1 + > drivers/clocksource/mips-gic-timer.c | 37 >

[PATCH v3 05/15] net: dsa/mv88e6352: Add support for MV88E6176

2014-10-29 Thread Guenter Roeck
MV88E6176 is mostly compatible to MV88E6352 and is documented in the same functional specification. Add support for it. Signed-off-by: Guenter Roeck --- v3: - No change v2: - No change drivers/net/dsa/Kconfig | 5 +++-- drivers/net/dsa/mv88e6352.c | 2 ++ 2 files changed, 5 insertions(+), 2

[PATCH v3 09/15] net: dsa: Add support for switch EEPROM access

2014-10-29 Thread Guenter Roeck
On some chips it is possible to access the switch eeprom. Add infrastructure support for it. Signed-off-by: Guenter Roeck --- v3: - Fix bug seen if devicetree is enabled; eeprom-length property is attached to switch devicetree node, not to dsa node. v2: - Add support for configuring switch EEPR

[PATCH v3 08/15] net: dsa/mv88e6123_61_65: Report chip temperature

2014-10-29 Thread Guenter Roeck
MV88E6123 and compatible chips support reading the chip temperature from PHY register 6:26. Signed-off-by: Guenter Roeck --- v3: - No change v2: - Make new functionality optional, depending on CONFIG_NET_DSA_HWMON drivers/net/dsa/mv88e6123_61_65.c | 68 +-- 1

[PATCH v3 04/15] net: dsa: Add support for Marvell 88E6352

2014-10-29 Thread Guenter Roeck
Marvell 88E6352 is mostly compatible to MV88E6123/61/65, but requires indirect phy access. Also, its configuration registers are a bit different. Signed-off-by: Guenter Roeck --- v3: - No change v2: - No change MAINTAINERS | 5 + drivers/net/dsa/Kconfig | 8 + drivers/ne

[PATCH v3 03/15] net: dsa: Report known silicon revisions for Marvell 88E6131

2014-10-29 Thread Guenter Roeck
Report known silicon revisions when probing Marvell 88E6131 switches. Signed-off-by: Guenter Roeck --- v3: - No change v2: - No change drivers/net/dsa/mv88e6131.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e

[PATCH v3 07/15] net: dsa/mv88e6352: Report chip temperature

2014-10-29 Thread Guenter Roeck
MV88E6352 supports reading the chip temperature from two PHY registers, 6:26 and 6:27. Report it using the more accurate register 6:27. Also report temperature limit and alarm. Signed-off-by: Guenter Roeck --- v3: - No change v2: - Make new functionality optional, depending on CONFIG_NET_DSA_HWMO

[PATCH v3 06/15] net: dsa: Add support for reporting switch chip temperatures

2014-10-29 Thread Guenter Roeck
Some switches provide chip temperature data. Add support for reporting it through the hwmon subsystem. Signed-off-by: Guenter Roeck --- v3: - No change v2: - Updated headline to reflect what is reported, not how. - Make added functionality optional with new Kconfig flag - Register with hwmon subs

[PATCH v3 10/15] dsa: Add new optional devicetree property to describe EEPROM size

2014-10-29 Thread Guenter Roeck
The dsa core now supports reading from and writing to a switch EEPROM if connected. Describe optional devicetree property indicating that an EEPROM is present and its size. Signed-off-by: Guenter Roeck --- v3: - eeprom-length property is attached to switch devicetree node, not to dsa node. v2:

[PATCH v3 11/15] net: dsa/mv88e6352: Implement EEPROM access functions

2014-10-29 Thread Guenter Roeck
MV88E6352 supports read and write access to its configuration eeprom. There is no means to detect if an EEPROM is connected to the switch. Also, the switch supports EEPROMs with different sizes, but can not detect or report the type or size of connected EEPROMs. Therefore, do not implement the get

[PATCH v3 15/15] net: dsa: Provide additional RMON statistics

2014-10-29 Thread Guenter Roeck
Display sw_in_discards, sw_in_filtered, and sw_out_filtered for chips supported by mv88e6123_61_65 and mv88e6352 drivers. The variables are provided in port registers, not the normal status registers. Mark by adding 0x100 to the register offset and add special handling code to mv88e6xxx_get_ethtoo

[PATCH v3 13/15] net: dsa/mv88e6123_61_65: Add support for reading switch registers

2014-10-29 Thread Guenter Roeck
The infrastructure can now report switch registers to ethtool. Add support for it to the mv88e6123_61_65 driver. Signed-off-by: Guenter Roeck --- v3: - No change v2: - No change drivers/net/dsa/mv88e6123_61_65.c | 2 ++ drivers/net/dsa/mv88e6xxx.c | 24 drivers/n

[PATCH v3 14/15] net: dsa/mv88e6352: Add support for reading switch registers

2014-10-29 Thread Guenter Roeck
Report switch register values to ethtool. Signed-off-by: Guenter Roeck --- v3: - No change v2: - No change drivers/net/dsa/mv88e6352.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c index 8a956f9..d5bbe49 100644 --- a/drivers/net/

[PATCH] ALSA: es1968: Replace timeval with ktime_t

2014-10-29 Thread Tina Ruchandani
es1968_measure_clock uses struct timeval, which on 32-bit systems will overflow in 2038, leading to incorrect interpretation of time.This patch changes the function to use ktime_t instead of struct timeval, which implies: - no y2038: ktime_t uses a 64-bit datatype explicitly. - efficent subtraction

Re: [PATCH 00/17] RFC: userfault v2

2014-10-29 Thread Andrea Arcangeli
Hi Zhanghailiang, On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: > Hi Andrea, > > Thanks for your hard work on userfault;) > > This is really a useful API. > > I want to confirm a question: > Can we support distinguishing between writing and reading memory for > userfault? > Th

[PATCH v3 12/15] net: dsa: Add support for reading switch registers with ethtool

2014-10-29 Thread Guenter Roeck
Add support for reading switch registers with 'ethtool -d'. Signed-off-by: Guenter Roeck --- v3: - No change v2: - Do not compare new function pointers against NULL - Check if get_regs is set before calling it include/net/dsa.h | 7 +++ net/dsa/slave.c | 23 +++ 2 fil

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Mark Rutland
On Wed, Oct 29, 2014 at 05:23:59PM +, Qais Yousef wrote: > On 10/29/2014 05:08 PM, Andrew Bresticker wrote: > > On Wed, Oct 29, 2014 at 4:09 AM, Qais Yousef wrote: > >> On 10/29/2014 12:12 AM, Andrew Bresticker wrote: > >>> +- reg : Base address and length of the GIC registers. > >>> > >> Also

[PATCH] staging: skein: skein_api.c: removed space before ','

2014-10-29 Thread Mikael Svantesson
Signed-off-by: Mikael Svantesson --- drivers/staging/skein/skein_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/skein/skein_api.c b/drivers/staging/skein/skein_api.c index 6e700ee..5bfce07 100644 --- a/drivers/staging/skein/skein_api.c +++ b/drivers/sta

Re: [RFC 1/2] PM / Domains: Power on domain early during system resume

2014-10-29 Thread Kevin Hilman
Krzysztof Kozlowski writes: > When resuming the system the power domain has to be powered on early so > any runtime PM aware devices could resume. > > This fixes following scenario reproduced on Exynos DRM: > 1. Power domain is off before suspending the system. > 2. System is suspended to RAM. >

Re: Cache Allocation Technology Design

2014-10-29 Thread Vikas Shivappa
On Wed, 29 Oct 2014, Peter Zijlstra wrote: On Wed, Oct 29, 2014 at 04:32:04PM +, Auld, Will wrote: I maybe repeating what Peter has just said but for elements in the hierarchy where the mask is the same as its parents mask there is no need for a separate CLOS even in the case where there

Re: [PATCH] netdev: Fix sleeping inside wait event

2014-10-29 Thread David Miller
From: Peter Zijlstra Date: Wed, 29 Oct 2014 18:31:10 +0100 > On Wed, Oct 29, 2014 at 06:13:45PM +0100, Peter Zijlstra wrote: >> On Wed, Oct 29, 2014 at 09:29:55AM -0700, Cong Wang wrote: >> > While you are on it, please fix rtnl_lock_unregistering_all() too? >> >> Ah, that's hidden someplace els

Re: [PATCH] netdev: Fix sleeping inside wait event

2014-10-29 Thread David Miller
From: Peter Zijlstra Date: Wed, 29 Oct 2014 17:16:57 +0100 > On Tue, Oct 28, 2014 at 10:25:41PM +0800, Fengguang Wu wrote: >> [ 122.247299] [ cut here ] >> [ 122.247328] WARNING: CPU: 0 PID: 61 at kernel/sched/core.c:7312 >> __might_sleep+0x50/0x249() >> [ 122.247334]

Re: [PATCH 01/11] irqchip: Allow irq_reg_{readl,writel} to use __raw_{readl_writel}

2014-10-29 Thread Florian Fainelli
On 10/29/2014 12:43 AM, Arnd Bergmann wrote: > On Tuesday 28 October 2014 20:58:48 Kevin Cernekee wrote: >> >> +#ifdef CONFIG_RAW_IRQ_ACCESSORS >> + >> +#ifndef irq_reg_writel >> +# define irq_reg_writel(val, addr) __raw_writel(val, addr) >> +#endif >> +#ifndef irq_reg_readl >> +# define irq_re

[PATCH v2] all arches, signal: Move restart_block to struct task_struct

2014-10-29 Thread Andy Lutomirski
If an attacker can cause a controlled kernel stack overflow, overwriting the restart block is a very juicy exploit target. Moving the restart block to struct task_struct prevents this exploit. Note that there are other fields in thread_info that are also easy targets, at least on some architecture

Re: [PATCH 2/4] mm: gup: add get_user_pages_locked and get_user_pages_unlocked

2014-10-29 Thread Andrea Arcangeli
On Thu, Oct 09, 2014 at 12:50:37PM +0200, Peter Zijlstra wrote: > On Wed, Oct 01, 2014 at 10:56:35AM +0200, Andrea Arcangeli wrote: > > > +static inline long __get_user_pages_locked(struct task_struct *tsk, > > + struct mm_struct *mm, > > +

[PATCH 2/2] staging: comedi: das16: use spin-lock when setting timer

2014-10-29 Thread Ian Abbott
"das16" sets a timer running in `das16_cmd_exec()` and sets `devpriv->timer_running` to indicate that it is running. The timer expiration routine `das16_timer_interrupt()` checks `devpriv->timer_running` to check whether it needs to reschedule the timer, but this is not synchronized with `das16_cm

[PATCH 0/2] staging: comedi: das16: fix some timer sync issues

2014-10-29 Thread Ian Abbott
"das16" uses a kernel timer but never removes it from the queue synchronously at the moment. Patch 1 makes sure this is done before it is destroyed. Patch 2 uses the comedi device's main spin-lock to ensure some state shared with the timer routine is updated in an SMP-safe manner. 1) staging: co

[PATCH 1/2] staging: comedi: das16: deschedule timer routine on detach

2014-10-29 Thread Ian Abbott
The "das16" driver optionally uses a kernel timer and a DMA channel to support asynchronous data acquisition, but currently never calls `del_timer_sync()`. There is some possibility the timer routine could still be scheduled to run when the comedi "detach" handler is run to clean up the device and

Re: [PATCH] pinctrl: at91: use own header

2014-10-29 Thread Alexandre Belloni
nctrl-at91.c. This > >> allows to remove the dependency on mach/at91_pio.h to be able to move at91 > >> to > >> multiplatform. > >> > >> Signed-off-by: Alexandre Belloni > > > > Patch applied to the pinctrl tree with Nicolas' ACK. >

Re: [PATCH] netdev: Fix sleeping inside wait event

2014-10-29 Thread Peter Zijlstra
On Wed, Oct 29, 2014 at 06:13:45PM +0100, Peter Zijlstra wrote: > On Wed, Oct 29, 2014 at 09:29:55AM -0700, Cong Wang wrote: > > While you are on it, please fix rtnl_lock_unregistering_all() too? > > Ah, that's hidden someplace else, sure I can do that. Thanks for > pointing it out. Here goes..

Re: Cache Allocation Technology Design

2014-10-29 Thread Peter Zijlstra
On Wed, Oct 29, 2014 at 04:32:04PM +, Auld, Will wrote: > I maybe repeating what Peter has just said but for elements in the > hierarchy where the mask is the same as its parents mask there is no > need for a separate CLOS even in the case where there are tasks in the > group. So we can inherit

Re: Cache Allocation Technology Design

2014-10-29 Thread Vikas Shivappa
On Fri, 24 Oct 2014, Peter Zijlstra wrote: On Mon, Oct 20, 2014 at 05:18:55PM +0100, Matt Fleming wrote: What is Cache Allocation Technology ( CAT ) --- Its a horrible name is what it is, please consider using the old name, that at least was clear in

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Andrew Bresticker
On Wed, Oct 29, 2014 at 10:13 AM, James Hogan wrote: > On 29/10/14 16:55, Andrew Bresticker wrote: >> Hi James, >> >> On Wed, Oct 29, 2014 at 2:21 AM, James Hogan wrote: >>> Hi Andrew, >>> >>> On 29/10/14 00:12, Andrew Bresticker wrote: - changed compatible string to include CPU version >>>

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Qais Yousef
On 10/29/2014 05:08 PM, Andrew Bresticker wrote: On Wed, Oct 29, 2014 at 4:09 AM, Qais Yousef wrote: On 10/29/2014 12:12 AM, Andrew Bresticker wrote: +- reg : Base address and length of the GIC registers. Also except for sead3, the base address should be properly reported by the hardware. Th

Re: [PATCH v3 3/3] x86: Support compiling out userspace I/O (iopl and ioperm)

2014-10-29 Thread H. Peter Anvin
On 10/29/2014 10:17 AM, j...@joshtriplett.org wrote: >> >> But this is entirely a style decision, so I leave it up to the x86 >> maintainers ... > > I can certainly do that if the x86 maintainers prefer, but that tends to > produce a net increase in lines of code, as well as duplicating all the >

Re: [PATCH v3 3/3] x86: Support compiling out userspace I/O (iopl and ioperm)

2014-10-29 Thread josh
On Wed, Oct 29, 2014 at 09:59:25AM -0700, Kees Cook wrote: > On Wed, Oct 29, 2014 at 9:10 AM, Josh Triplett wrote: > > --- a/arch/x86/kernel/process-io.h > > +++ b/arch/x86/kernel/process-io.h > > @@ -1,9 +1,17 @@ > > #ifndef _X86_KERNEL_PROCESS_IO_H > > #define _X86_KERNEL_PROCESS_IO_H > > > >

Re: [PATCH] pinctrl: at91: use own header

2014-10-29 Thread Kevin Hilman
1 to >> multiplatform. >> >> Signed-off-by: Alexandre Belloni > > Patch applied to the pinctrl tree with Nicolas' ACK. This patch broke the build for sama5_defconfig in next-20141029[1], as well as the other at91*defconfigs. Kevin [1] http://images.armcloud.us

Re: [PATCH 5/5] mm: gup: kvm use get_user_pages_unlocked

2014-10-29 Thread Andres Lagar-Cavilla
On Wed Oct 29 2014 at 9:35:34 AM Andrea Arcangeli wrote: > > Use the more generic get_user_pages_unlocked which has the additional > benefit of passing FAULT_FLAG_ALLOW_RETRY at the very first page fault > (which allows the first page fault in an unmapped area to be always > able to block indefini

Re: [PATCH] netdev: Fix sleeping inside wait event

2014-10-29 Thread Peter Zijlstra
On Wed, Oct 29, 2014 at 09:29:55AM -0700, Cong Wang wrote: > (Adding netdev@...) > > On Wed, Oct 29, 2014 at 9:16 AM, Peter Zijlstra wrote: > > > > Dave, this relies on bits currently in tip/sched/core, if you're ok I'll > > merge it through that tree. > > > > --- > > Subject: netdev: Fix sleepin

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread James Hogan
On 29/10/14 16:55, Andrew Bresticker wrote: > Hi James, > > On Wed, Oct 29, 2014 at 2:21 AM, James Hogan wrote: >> Hi Andrew, >> >> On 29/10/14 00:12, Andrew Bresticker wrote: >>> - changed compatible string to include CPU version >> >>> +Required properties: >>> +- compatible : Should be "mti,-

Re: [PATCH] clk: rockchip: change PLL setting for better clock jitter

2014-10-29 Thread Doug Anderson
Kever, On Thu, Oct 9, 2014 at 10:23 PM, Kever Yang wrote: > dclk_vop0/1 is the source of HDMI TMDS clock in rk3288, usually we > use 594MHz for clock source of dclk_vop0/1. > > HDMI CTS 7-9 require TMDS Clock jitter is lower than 0.25*Tbit: > TMDS clock(MHz) CTS require jitter (ps) >

Re: [PATCH 2/2] PM / Domains: Extract code to power off/on a PM domain

2014-10-29 Thread Kevin Hilman
Geert Uytterhoeven writes: > Hi Ulf, > > On Wed, Oct 29, 2014 at 2:25 PM, Ulf Hansson wrote: >> On 23 October 2014 14:12, Geert Uytterhoeven wrote: >>> PM domains are powered on/off from various places. Some callers do >>> latency measurements, others don't. Consolidate using two helper >>> fun

Re: [PATCH 4/6] sched/dl: push task away if the deadline is equal to curr during wakeup

2014-10-29 Thread Juri Lelli
Hi, On 27/10/14 01:41, Wanpeng Li wrote: > This patch pushes task away if the dealine of the task is equal > to current during wake up. The same behavior as rt class. > Right. Thanks, - Juri > Signed-off-by: Wanpeng Li > --- > kernel/sched/deadline.c | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH v7 1/2] mtd: nand: add sunxi NAND flash controller support

2014-10-29 Thread Brian Norris
On Wed, Oct 29, 2014 at 02:02:51PM +0100, Boris Brezillon wrote: > On Tue, 28 Oct 2014 11:13:11 -0700 Brian Norris > wrote: > > On Tue, Oct 21, 2014 at 03:08:41PM +0200, Boris Brezillon wrote: > > > +static int sunxi_nand_hw_ecc_ctrl_init(struct mtd_info *mtd, > > > +

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Andrew Bresticker
On Wed, Oct 29, 2014 at 4:09 AM, Qais Yousef wrote: > On 10/29/2014 12:12 AM, Andrew Bresticker wrote: >> >> +- reg : Base address and length of the GIC registers. >> > > Also except for sead3, the base address should be properly reported by the > hardware. The size is fixed (for a specific versio

Re: [PATCH 1/2] PM / Domains: Make genpd parameter of pm_genpd_present() const

2014-10-29 Thread Kevin Hilman
Geert Uytterhoeven writes: > Signed-off-by: Geert Uytterhoeven Acked-by: Kevin Hilman Though I tend to prefer a brief changlog that answers "why", even if it may seem obvious. Kevin > --- > drivers/base/power/domain.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff -

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Qais Yousef
On 10/29/2014 04:56 PM, Andrew Bresticker wrote: On Wed, Oct 29, 2014 at 4:01 AM, Qais Yousef wrote: On 10/29/2014 12:12 AM, Andrew Bresticker wrote: +- mti,available-cpu-vectors : Specifies the list of CPU interrupt vectors + to which the GIC may route interrupts. May contain up to 6 entrie

Re: [PATCH 3/6] sched/dl: add deadline rq status print

2014-10-29 Thread Juri Lelli
Hi, On 27/10/14 01:41, Wanpeng Li wrote: > This patch add deadline rq status print. > Don't know if useful, but we could add this, just to be consistent. Thanks, - Juri > Signed-off-by: Wanpeng Li > --- > kernel/sched/deadline.c | 9 + > kernel/sched/debug.c| 7 +++ > kernel

Re: [RFC] stating: ion: use hot page first in pool

2014-10-29 Thread Laura Abbott
On 10/28/2014 9:57 PM, Gioh Kim wrote: > > Hello, > > I found that ion insert freed-page at the tail of list > and extract at the head. > > I think it is good for cache to use the most recently used page > but these pages in pool are not cached memory. > So I'm not sure using hot page is better

Re: [PATCH v3 3/3] x86: Support compiling out userspace I/O (iopl and ioperm)

2014-10-29 Thread Kees Cook
On Wed, Oct 29, 2014 at 9:10 AM, Josh Triplett wrote: > On the vast majority of modern systems, no processes will use the > userspsace I/O syscalls, iopl and ioperm. Add a new config option, > CONFIG_X86_IOPORT, to support configuring them out of the kernel > entirely. Most current systems do no

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Andrew Bresticker
On Wed, Oct 29, 2014 at 4:01 AM, Qais Yousef wrote: > On 10/29/2014 12:12 AM, Andrew Bresticker wrote: >> >> +- mti,available-cpu-vectors : Specifies the list of CPU interrupt vectors >> + to which the GIC may route interrupts. May contain up to 6 entries, >> one >> + for each of the CPU's hard

Re: [PATCH 11/11] irqchip: Decouple bcm7120-l2 from brcmstb-l2

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > Some chips, such as BCM6328, only require the former driver. Some > BCM7xxx STB configurations only require the latter driver. Treat them > as two separate entities, and update the mach-bcm dependencies to > reflect the change. > > Signed-off-by: K

Re: [PATCH 04/11] irqchip: Remove ARM dependency for bcm7120-l2 and brcmstb-l2

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > This can compile for MIPS (or anything else) now. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > drivers/irqchip/Kconfig | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kco

Re: [PATCH 09/11] irqchip: bcm7120-l2: Use gc->mask_cache to simplify suspend/resume functions

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > The cached value already incorporates irq_fwd_mask, and was saved the > last time an IRQ was enabled/disabled. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > drivers/irqchip/irq-bcm7120-l2.c | 11 +++ > 1 file chang

Re: [PATCH V3 2/4] of: Add binding document for MIPS GIC

2014-10-29 Thread Andrew Bresticker
Hi James, On Wed, Oct 29, 2014 at 2:21 AM, James Hogan wrote: > Hi Andrew, > > On 29/10/14 00:12, Andrew Bresticker wrote: >> - changed compatible string to include CPU version > >> +Required properties: >> +- compatible : Should be "mti,-gic". Supported variants: >> + - "mti,interaptiv-gic" >

Re: [PATCH 08/11] irqchip: bcm7120-l2: Fix missing nibble in gc->unused mask

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > This mask should have been 0x_, not 0x0fff_. > > The change should not have an effect on current users (STB) because bits > 31:27 are unused. Nice catch! > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > drivers

Re: [PATCH 06/11] irqchip: bcm7120-l2: Use irq_reg_* accessors

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > This keeps things consistent between the "core" bcm7120-l2 driver and the > helpers in generic-chip.c. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > drivers/irqchip/irq-bcm7120-l2.c | 10 +- > 1 file changed, 5 ins

Re: [PATCH 02/11] irqchip: brcmstb-l2: Eliminate dependency on ARM code

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > The irq-brcmstb-l2 driver has a single dependency on the ARM code, the > do_bad_IRQ macro. Expand this macro in-place so that the driver can be > built on non-ARM platforms. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > d

<    1   2   3   4   5   6   7   8   9   10   >