[PATCH] hwrng: pseries - port to new read API and fix stack corruption

2014-10-30 Thread Greg Kurz
The add_early_randomness() function in drivers/char/hw_random/core.c passes a 16-byte buffer to pseries_rng_data_read(). Unfortunately, plpar_hcall() returns four 64-bit values and trashes 16 bytes on the stack. This bug has been lying around for a long time. It got unveiled by: commit d3cc799647

Re: Mistake in commit 0d961b3b52f566f823070ce2366511a7f64b928c breaks cpsw non dual_emac mode.

2014-10-30 Thread Heiko Schocher
Hello David, Lennart, Am 30.10.2014 20:43, schrieb David Miller: From: "Lennart Sorensen" Date: Tue, 28 Oct 2014 13:02:42 -0400 I believe commit 0d961b3b52f566f823070ce2366511a7f64b928c made a mistake while correcting a bug. Seems I missed your original patch ... looked in it here: https://

Re: [PATCH v2] KVM: x86: fix access memslots w/o hold srcu read lock

2014-10-30 Thread Chen, Tiejun
On 2014/10/31 14:26, Wanpeng Li wrote: The srcu read lock must be held while accessing memslots (e.g. when using gfn_to_* functions), however, commit c24ae0dcd3e8 ("kvm: x86: Unpin and remove kvm_arch->apic_access_page") call gfn_to_page() in kvm_vcpu_reload_apic_access_page() w/o hold it in vmx_

[PATCH 2/2] hwmon: (ibmpowernv) Make the driver name more recognisable

2014-10-30 Thread Michael Ellerman
Seeing "ibmpowernv" in dmesg is not very useful, that is just the name of the platform and doesn't identify the message as coming from the hwmon driver. Change DRVNAME to "powernv-hwmon" to make it clearer. Signed-off-by: Michael Ellerman --- drivers/hwmon/ibmpowernv.c | 2 +- 1 file changed, 1

[PATCH 1/2] hwmon: (ibmpowernv) Quieten when probing finds no device

2014-10-30 Thread Michael Ellerman
Because we build kernels with drivers built in for many platforms, it's normal for the ibmpowernv driver to be loaded on systems that don't have the appropriate hardware. Currently the driver spams the log with: ibmpowernv ibmpowernv.0: Opal node 'sensors' not found ibmpowernv: Platfrom drive

[PATCH] Staging: android: ion: fix typos in comments

2014-10-30 Thread Tristan Lelong
Fix some coding style warnings detected by checkpatch.pl in ion. Signed-off-by: Tristan Lelong --- drivers/staging/android/ion/ion.c | 2 +- drivers/staging/android/ion/ion.h | 2 +- drivers/staging/android/ion/ion_priv.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff

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

2014-10-30 Thread Stephen Boyd
On 10/30, Daniel Thompson wrote: > On 29/10/14 18:14, Stephen Boyd wrote: > > + r_count = min_t(int, count, sizeof(buf)); > > + > > + for (i = 0; i < r_count; i++) { > > + char flag = TTY_NORMAL; > > > > - /* TODO: handle sysrq */ > > - tt

Re: [PATCH] KVM: x86: fix access memslots w/o hold srcu read lock

2014-10-30 Thread Wanpeng Li
Hi Tiejun, On Fri, Oct 31, 2014 at 01:30:35PM +0800, Chen, Tiejun wrote: >On 2014/10/31 12:33, Wanpeng Li wrote: >>The srcu read lock must be held while accessing memslots (e.g. >>when using gfn_to_* functions), however, commit c24ae0dcd3e8 >>("kvm: x86: Unpin and remove kvm_arch->apic_access_page"

Re: [PATCH 3/3] I2C: mediatek: Add driver for MediaTek I2C controller

2014-10-30 Thread xudong chen
On Thu, 2014-10-30 at 14:16 +0100, Matthias Brugger wrote: > 2014-10-29 6:37 GMT+01:00 Xudong Chen : > > The mediatek SoCs have I2C controller that handle I2C transfer. > > This patch include common I2C bus driver. > > This driver is compatible with I2C controller on mt65xx/mt81xx. > > > > Signed-o

Re: [PATCH v2] KVM: x86: fix access memslots w/o hold srcu read lock

2014-10-30 Thread Wanpeng Li
On Fri, Oct 31, 2014 at 02:26:59PM +0800, Wanpeng Li wrote: >The srcu read lock must be held while accessing memslots (e.g. >when using gfn_to_* functions), however, commit c24ae0dcd3e8 >("kvm: x86: Unpin and remove kvm_arch->apic_access_page") call >gfn_to_page() in kvm_vcpu_reload_apic_access_pag

[PATCH v2] KVM: x86: fix access memslots w/o hold srcu read lock

2014-10-30 Thread Wanpeng Li
The srcu read lock must be held while accessing memslots (e.g. when using gfn_to_* functions), however, commit c24ae0dcd3e8 ("kvm: x86: Unpin and remove kvm_arch->apic_access_page") call gfn_to_page() in kvm_vcpu_reload_apic_access_page() w/o hold it in vmx_vcpu_reset() path which leads to suspici

[PATCH 2/4] f2fs: avoid race condition in handling wait_io

2014-10-30 Thread Jaegeuk Kim
__submit_merged_biof2fs_write_end_iof2fs_write_end_io wait_io = X wait_io = x complete(X) complete(X) wait_io = NULL wait_for_completion() free(X)

[PATCH 1/4] f2fs: send discard commands in larger extent

2014-10-30 Thread Jaegeuk Kim
If there is a chance to make a huge sized discard command, we don't need to split it out, since each blkdev_issue_discard should wait one at a time. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 44 +++- 1 file changed, 27 insertions(+), 17 deletions(

[PATCH 3/4] f2fs: remove unnecessary macro

2014-10-30 Thread Jaegeuk Kim
Let's remove unused macro. Signed-off-by: Jaegeuk Kim --- include/linux/f2fs_fs.h | 4 1 file changed, 4 deletions(-) diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index cc1064f..87f14e9 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h @@ -177,10 +177,6 @

[PATCH 4/4] f2fs: introduce -o fastboot for reducing booting time only

2014-10-30 Thread Jaegeuk Kim
If a system wants to reduce the booting time as a top priority, now we can use a mount option, -o fastboot. With this option, f2fs conducts a little bit slow write_checkpoint, but it can avoid the node page reads during the next mount time. Signed-off-by: Jaegeuk Kim --- Documentation/filesystem

Re: [PATCH v2] cpufreq: allow powersave governor as the default without expert mode

2014-10-30 Thread Dirk Brandewie
On 10/30/2014 02:18 PM, Rafael J. Wysocki wrote: On Thursday, October 16, 2014 07:37:11 AM James Geboski wrote: The intel_pstate driver only supports the performance and the powersave governors. With the performance governor ensuring the highest possible performance settings, userspace tools fai

[PATCH 0/3] Support PMIC operation region for CrystalCove and XPower

2014-10-30 Thread Aaron Lu
On Intel Baytrail-T and Baytrail-T-CR platforms, there are two customized ACPI operation regions defined for the Power Management Integrated Circuit device, one is for power resource handling and one is for thermal: sensor temperature reporting, trip point setting, etc. There are different PMIC chi

[PATCH 2/3] ACPI / pmic_opregion: support PMIC operation region for XPower AXP288

2014-10-30 Thread Aaron Lu
The Baytrail-T-CR platform firmware has defined two customized operation regions for PMIC chip Dollar Cove XPower - one is for power resource handling and one is for thermal just like the CrystalCove one. This patch adds support for them on top of the common PMIC opregion region code. Signed-off-b

[PATCH 3/3] ACPI / pmic_opregion: AXP288: support virtual GPIO in ACPI table

2014-10-30 Thread Aaron Lu
The same virtual GPIO strategy is also used for the AXP288 PMIC in that various control methods that are used to do power rail handling and sensor reading/setting will touch GPIO fields defined under the PMIC device. The GPIO fileds are only defined by the ACPI code while the actual hardware doesn'

[PATCH 1/3] ACPI / pmic_opregion: support PMIC operation region for CrystalCove

2014-10-30 Thread Aaron Lu
The Baytrail-T platform firmware has defined two customized operation regions for PMIC chip Crystal Cove - one is for power resource handling and one is for thermal: sensor temperature reporting, trip point setting, etc. This patch adds support for them on top of the existing Crystal Cove PMIC driv

Re: [PATCH] virtio_net: fix use after free

2014-10-30 Thread Jason Wang
On 10/31/2014 11:36 AM, Eric Dumazet wrote: > On Wed, 2014-10-15 at 16:23 +0300, Michael S. Tsirkin wrote: >> commit 0b725a2ca61bedc33a2a63d0451d528b268cf975 >> net: Remove ndo_xmit_flush netdev operation, use signalling instead. >> >> added code that looks at skb->xmit_more after the skb has >

[PATCH net-next 1/3] r8152: remove the duplicate init for the list of rx_done

2014-10-30 Thread Hayes Wang
The INIT_LIST_HEAD(&tp->rx_done) would be done in rtl_start_rx(), so remove the unnecessary one in alloc_all_mem(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index f116335..ff54098 10

[PATCH net-next 0/3] Code adjustment

2014-10-30 Thread Hayes Wang
Adjust some codes to make them more reasonable. Hayes Wang (3): r8152: remove the duplicate the init for the list of rx_done r8152: clear the flag of SCHEDULE_TASKLET in tasklet r8152: check RTL8152_UNPLUG and netif_running before autoresume drivers/net/usb/r8152.c | 13 + 1 fi

[PATCH net-next 3/3] r8152: check RTL8152_UNPLUG and netif_running before autoresume

2014-10-30 Thread Hayes Wang
If the device is unplugged or !netif_running(), the workqueue doesn't neet to wake the device, and could return directly. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r

[PATCH net-next 2/3] r8152: clear the flag of SCHEDULE_TASKLET in tasklet

2014-10-30 Thread Hayes Wang
Clear the flag of SCHEDULE_TASKLET in bottom_half() to avoid re-schedule the tasklet again by workqueue. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index ff54098..670279a 100644 --

RE: [PATCH 1/2 v3] SPI: spi-pxa2xx: Add helpers for regiseters' accessing

2014-10-30 Thread Chen, Alvin
> > > > All of those patches are in v3.18-rc1, so you may rebase on top of > > 3.18-rcX safely I guess. > > > Andy, I remember you ask me to rebase on the slave-dma tree (git.infraded.org) > for-linus branch, and the slave-dma for-linus branch will be reapplied on top > of > v3.19-rc1. > Just to

[RFC V6 2/3] arm:add bitrev.h file to support rbit instruction

2014-10-30 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bitrev.h | 21 + 2 files changed, 22 insertions(+) create mode 100644 arch/arm/in

[RFC V6 3/3] arm64:add bitrev.h file to support rbit instruction

2014-10-30 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/bitrev.h | 21 + 2 files changed, 22 insertions(+) create mode 100644 arch/ar

[RFC V6 2/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-30 Thread Wang, Yalin
This patch add bitrev.h file to support rbit instruction, so that we can do bitrev operation by hardware. Signed-off-by: Yalin Wang --- arch/arm/Kconfig | 1 + arch/arm/include/asm/bitrev.h | 21 + 2 files changed, 22 insertions(+) create mode 100644 arch/arm/in

[RFC V6 1/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-30 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use some architecture's bitrev hardware instruction to do bitrev operation. Introduce __constant_bitrev* macro for constant bitrev operation. Change __bitrev16() __bitrev32() to be inline function, don't need export symbol

[PATCH net] r8152: stop submitting intr for -EPROTO

2014-10-30 Thread Hayes Wang
For Renesas USB 3.0 host controller, when unplugging the usb hub which has the RTL8153 plugged, the driver would get -EPROTO for interrupt transfer. There is high probability to get the information of "HC died; cleaning up", if the driver continues to submit the interrupt transfer before the discon

Re: net: fec: fix regression on i.MX28 introduced by rx_copybreak support

2014-10-30 Thread Lothar Waßmann
Hi, David Miller wrote: > From: Lothar Waßmann > Date: Thu, 30 Oct 2014 07:51:04 +0100 > > >> Also, I don't thnk your DIV_ROUND_UP() eliminate for the loop > >> in swap_buffer() is valid. The whole point is that the current > >> code handles buffers which have a length which is not a multiple >

Re: [PATCH] KVM: x86: fix access memslots w/o hold srcu read lock

2014-10-30 Thread Chen, Tiejun
On 2014/10/31 12:33, Wanpeng Li wrote: The srcu read lock must be held while accessing memslots (e.g. when using gfn_to_* functions), however, commit c24ae0dcd3e8 ("kvm: x86: Unpin and remove kvm_arch->apic_access_page") call gfn_to_page() in kvm_vcpu_reload_apic_access_page() w/o hold it which l

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-30 Thread Kishon Vijay Abraham I
On Friday 31 October 2014 06:17 AM, Felipe Balbi wrote: > Hi, > > On Fri, Oct 31, 2014 at 08:38:14AM +0800, Peter Chen wrote: >> On Thu, Oct 30, 2014 at 12:47:34PM -0500, Felipe Balbi wrote: >>> On Thu, Oct 30, 2014 at 06:42:54PM +0100, Antoine Tenart wrote: Hi Felipe, On Thu, Oct

Re: [for-next][PATCH 1/4] ftrace/x86: Add dynamic allocated trampoline for ftrace_ops

2014-10-30 Thread Masami Hiramatsu
Hi Steven, (2014/10/28 3:27), Steven Rostedt wrote: > +static unsigned long create_trampoline(struct ftrace_ops *ops) > +{ > + unsigned const char *jmp; > + unsigned long start_offset; > + unsigned long end_offset; > + unsigned long op_offset; > + unsigned long offset; > +

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

2014-10-30 Thread Andres Lagar-Cavilla
On Thu, Oct 30, 2014 at 9:38 PM, zhanghailiang wrote: > On 2014/10/31 11:29, zhanghailiang wrote: >> >> On 2014/10/31 10:23, Peter Feiner wrote: >>> >>> On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: > > On Mon, Oct 27,

Re: [PATCH v2] mmc: dw_mmc: add support for the other bit of sdio interrupt

2014-10-30 Thread Doug Anderson
Addy, On Thu, Oct 30, 2014 at 8:50 PM, Addy Ke wrote: > +static int dw_mci_rk3288_parse_dt(struct dw_mci *host) > +{ > + struct device_node *np = host->dev->of_node; > + int sdio_id0; > + > + if (!of_property_read_u32(np, "rockchip,sdio-interrupt-slot0", > +

linux-next: Tree for Oct 31

2014-10-30 Thread Stephen Rothwell
Hi all, Changes since 20141030: The hid tree gained a conflict against Linus' tree. The akpm-current tree lost its build failure. Non-merge commits (relative to Linus' tree): 3051 2487 files changed, 79125 insertions(+), 103302

[PATCH v3] clk: rockchip: disable unused clocks

2014-10-30 Thread Kever Yang
The rockchip clock driver use CLK_IGNORE_UNUSED flag to make sure all the clocks are available like default power on state. We have implement the clock manage in most of rockchip drivers, it is time to remove it for power save. Instead we add CLK_IGNORE_UNUSED for some clock nodes which should be o

Re: [PATCH] USB: simple: add Google simple serial SubClass support

2014-10-30 Thread Anton Staaf
On Thu, Oct 30, 2014 at 7:33 AM, Greg Kroah-Hartman wrote: > > On Wed, Oct 29, 2014 at 02:21:56PM -0700, Anton Staaf wrote: > > Add support for Google devices that export simple serial > > interfaces using the vendor specific SubClass/Protocol pair > > 0x50/0x01. > > > > Signed-off-by: Anton Staaf

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

2014-10-30 Thread zhanghailiang
On 2014/10/31 11:29, zhanghailiang wrote: On 2014/10/31 10:23, Peter Feiner wrote: On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: I want to confirm a question: Can we sup

[PATCH] KVM: x86: fix access memslots w/o hold srcu read lock

2014-10-30 Thread Wanpeng Li
The srcu read lock must be held while accessing memslots (e.g. when using gfn_to_* functions), however, commit c24ae0dcd3e8 ("kvm: x86: Unpin and remove kvm_arch->apic_access_page") call gfn_to_page() in kvm_vcpu_reload_apic_access_page() w/o hold it which leads to suspicious rcu_dereference_che

[PATCH 0/5] ARM: imx: ventana: enable LDO-bypass mode

2014-10-30 Thread Tim Harvey
The IMX6 has some internal LDO regulators provided by the anatop regulator block that can regulate the arm, soc, gpu/vpu core supplies. Alternatively a design can supply vdd_arm and vdd_soc externally via a PMIC to provide a lower power draw (switches are more efficient that ldo's). The first two

[RFC patch] mm: hugetlb: fix __unmap_hugepage_range

2014-10-30 Thread Hillf Danton
First, after flushing TLB, we have no need to scan pte from start again. Second, before bail out loop, the address is forwarded one step. Signed-off-by: Hillf Danton --- --- a/mm/hugetlb.c Fri Oct 31 11:47:25 2014 +++ b/mm/hugetlb.c Fri Oct 31 11:52:42 2014 @@ -2641,8 +2641,9 @@ void _

[PATCH 2/5] regulator: add function to determine if a regulator is in bypass mode

2014-10-30 Thread Tim Harvey
Regulators can be configured to allow bypass mode and can be told by a consumer that they are allowed to go into bypass mode from that consumer's perspective. This adds a function to determine if the regulator actually has gone into bypass mode (meaning all consumers allowed it to do so). Cc: lin

[PATCH 5/5] ARM: imx: ventana: enable LDO bypass mode for GW54xx

2014-10-30 Thread Tim Harvey
The GW54xx baseboard has a PFUZE100 PMIC capable of regulating the core voltages (VDD_ARM, VDD_SOC) externally such that the internal IMX6 anatop LDO regulators are not needed. This provides a power reduction (as the PMIC is more efficient than the LDO's) as well as moves some of the power/thermal

[PATCH 1/5] regulator: add function to determine if 2 regulators are the same

2014-10-30 Thread Tim Harvey
Regulator structures can point to the same internal regulator dev's but as that information is private we need to expose a function to determine if two regulators do so. Cc: linux...@vger.kernel.org Signed-off-by: Tim Harvey --- drivers/regulator/core.c | 17 + include/

[PATCH 3/5] ARM: dts: imx: add cpu0 alias

2014-10-30 Thread Tim Harvey
Adding an alias on the cpu0 node allows devicetree files to modify the regulators for LDO-bypass mode. Cc: devicet...@vger.kernel.org Cc: Philipp Zabel Cc: Shawn Guo Signed-off-by: Tim Harvey --- arch/arm/boot/dts/imx6dl.dtsi | 2 +- arch/arm/boot/dts/imx6q.dtsi | 2 +- 2 files changed, 2 ins

[PATCH 4/5] cpufreq: imx6q: add ldo-bypass support

2014-10-30 Thread Tim Harvey
When an external PMIC is used for VDD_SOC and VDD_ARM you can save power by bypassing the internal LDO's provided by the anantop regulator as long as you are running less than 1.2GHz. If running at 1.2GHz the IMX6 datasheets state that you must use the internal LDO's to reduce ripple on the suplies

Re: [PATCH] UBI: vtbl: Use ubi_eba_atomic_leb_change()

2014-10-30 Thread hujianyang
On 2014/10/30 16:55, Artem Bityutskiy wrote: > On Sat, 2014-10-25 at 19:43 +0200, Richard Weinberger wrote: >> This is more a cosmetic change than a fix. >> By using ubi_eba_atomic_leb_change() >> we can guarantee that the first VTBL record is always >> correct and we don't really need the second o

Re: [PATCH 1/2] mailbox: Avoid NULL-pointer dereference in mbox_chan_received_data()

2014-10-30 Thread Jassi Brar
On 31 October 2014 01:31, Andrew Bresticker wrote: > If a message has been received on a channel, but no client has yet bound > to it, mbox_chan_received_data() will dereference a NULL client pointer. > Check for the presence of a client first. > Let me quote from the documentation of the API

Re: [PATCH] net: ethtool: Return -EOPNOTSUPP if user space tries to read EEPROM with lengh 0

2014-10-30 Thread Andrew Lunn
On Thu, Oct 30, 2014 at 08:50:15PM -0700, Guenter Roeck wrote: > If a driver supports reading EEPROM but no EEPROM is installed in the system, > the driver's get_eeprom_len function returns 0. ethtool will subsequently > try to read that zero-length EEPROM anyway. If the driver does not support > E

Re: [RFC v4] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-10-30 Thread Kiran Raparthy
HI Felipe, On 27 October 2014 15:06, Kiran Raparthy wrote: > Hi Felipe, > > On 10 October 2014 20:50, Felipe Balbi wrote: >> Hi, >> >> On Fri, Oct 10, 2014 at 11:37:31AM +0530, Kiran Raparthy wrote: >>> Hi Felipe, >>> Thank you very much for taking time in reviewing the patch. >>> I will try to

[PATCH v2] mmc: dw_mmc: add support for the other bit of sdio interrupt

2014-10-30 Thread Addy Ke
The bit of sdio interrupt is 16 in designware implementation, but it is 24 in RK3288. This patch add sdio_id0 for the number of slot0 in the SDIO interrupt registers, which can be set in platform DT table, such as: - rockchip,sdio-interrupt-slot0 = <8>; Signed-off-by: Addy Ke --- Changes in v2: -

[PATCH] net: ethtool: Return -EOPNOTSUPP if user space tries to read EEPROM with lengh 0

2014-10-30 Thread Guenter Roeck
If a driver supports reading EEPROM but no EEPROM is installed in the system, the driver's get_eeprom_len function returns 0. ethtool will subsequently try to read that zero-length EEPROM anyway. If the driver does not support EEPROM access at all, this operation will return -EOPNOTSUPP. If the dri

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-30 Thread Paul E. McKenney
On Thu, Oct 30, 2014 at 09:54:34PM +, Alexander Gordeev wrote: > On Thu, Oct 30, 2014 at 01:43:18PM -0700, Paul E. McKenney wrote: > > > > Have you done any testing of this change? > > > > > > Just booted to a unicore kernel and dd'ed 1G of /dev/sda to /dev/null. > > > > OK, that is a start.

Re: [PATCH v2] Security: smack: replace kzalloc with kmem_cache for inode_smack

2014-10-30 Thread Rohit
On Wed, 29 Oct 2014 08:12:05 -0700 Casey Schaufler wrote: > On 10/29/2014 2:11 AM, Rohit wrote: > > On Mon, 27 Oct 2014 09:25:28 -0700 > > Casey Schaufler wrote: > > > >> On 10/26/2014 11:54 PM, Rohit wrote: > >>> On Sun, 26 Oct 2014 17:41:37 -0700 > >>> Casey Schaufler wrote: > >>> > On 1

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

2014-10-30 Thread David Miller
From: Guenter Roeck Date: Thu, 30 Oct 2014 19:53:17 -0700 > On 10/30/2014 07:40 PM, Andrew Lunn wrote: >>> As suspected, ethtool will attempt to read a zero-length eeprom. >>> >>> The following patch should solve the problem. Not sure if it is worth >>> it, >>> though, since this will change beha

Re: [PATCH] virtio_net: fix use after free

2014-10-30 Thread Eric Dumazet
On Wed, 2014-10-15 at 16:23 +0300, Michael S. Tsirkin wrote: > commit 0b725a2ca61bedc33a2a63d0451d528b268cf975 > net: Remove ndo_xmit_flush netdev operation, use signalling instead. > > added code that looks at skb->xmit_more after the skb has > been put in TX VQ. Since some paths process the

Re: [PATCH 3/3] ARM: dts: mt8135: Add Reset Controller for MediaTek SoC

2014-10-30 Thread Flora Fu
Hi, Philipp, On Thu, 2014-10-30 at 10:02 +0100, Philipp Zabel wrote: > Since the reset controller driver accesses registers solely through the > syscon regmap, I'd prefer to keep with the device tree control graph > concept and make the reset-controller nodes children of the syscon > nodes. I've b

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

2014-10-30 Thread zhanghailiang
On 2014/10/31 10:23, Peter Feiner wrote: On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wrote: On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: I want to confirm a question: Can we support distinguishing between writing and rea

Re: [PATCH 6/8] regulator: max77686: Add external GPIO control

2014-10-30 Thread Alexandre Courbot
On Fri, Oct 31, 2014 at 12:03 AM, Krzysztof Kozlowski wrote: > On czw, 2014-10-30 at 22:56 +0900, Alexandre Courbot wrote: >> Hi, and thanks for bringing this issue to us! >> >> On Wed, Oct 29, 2014 at 7:49 PM, Javier Martinez Canillas >> wrote: >> > [adding Linus and Alexandre to the cc list] >>

[PATCH v5 2/8] usb: dwc3: add disable usb3 suspend phy quirk

2014-10-30 Thread Huang Rui
This patch adds disable usb3 suspend phy quirk, and some special platforms can configure that if it is needed. Signed-off-by: Huang Rui --- Documentation/devicetree/bindings/usb/dwc3.txt | 1 + drivers/usb/dwc3/core.c| 6 ++ drivers/usb/dwc3/core.h

[PATCH v5 1/8] usb: dwc3: add Tx de-emphasis quirk

2014-10-30 Thread Huang Rui
This patch adds Tx de-emphasis quirk, and the Tx de-emphasis value is configurable according to PIPE3 specification. Value Description 0 -6dB de-emphasis 1 -3.5dB de-emphasis 2 No de-emphasis 3 Reserved It can be configured on DT o

[PATCH v5 5/8] PCI: Prevent xHCI driver from claiming AMD Nolan USB3 DRD device

2014-10-30 Thread Huang Rui
The AMD Nolan (NL) SoC contains a DesignWare USB3 Dual-Role Device that can be operated either as a USB Host or a USB Device. In the AMD NL platform, this device ([1022:7912]) has a class code of PCI_CLASS_SERIAL_USB_XHCI (0x0c0330), which means the xhci driver will claim it. But the dwc3 driver

[PATCH v5 8/8] usb: dwc3: point host-mode hibernation enablement not device-mode

2014-10-30 Thread Huang Rui
Since the discussion of below thread, current enablement works for host-mode, device-mode hibernation is not implemented yet. http://marc.info/?l=linux-usb&m=141452396814414&w=2 Signed-off-by: Huang Rui --- drivers/usb/dwc3/core.c | 7 ++- drivers/usb/dwc3/gadget.c | 2 +- 2 files changed

[PATCH v5 3/8] usb: dwc3: add disable usb2 suspend phy quirk

2014-10-30 Thread Huang Rui
This patch adds disable usb2 suspend phy quirk, and some special platforms can configure that if it is needed. Signed-off-by: Huang Rui --- Documentation/devicetree/bindings/usb/dwc3.txt | 1 + drivers/usb/dwc3/core.c| 6 ++ drivers/usb/dwc3/core.h

[PATCH v5 7/8] usb: dwc3: make HIRD threshold configurable

2014-10-30 Thread Huang Rui
HIRD threshold should be configurable by different platforms. >From DesignWare databook: When HIRD_Threshold[4] is set to 1b1 and HIRD value is greater than or equal to the value in HIRD_Threshold[3:0], dwc3 asserts output signals utmi_l1_suspend_n to put PHY into Deep Low-Power mode in L1. When

[PATCH v5 6/8] usb: dwc3: add support for AMD Nolan platform

2014-10-30 Thread Huang Rui
This patch adds support for AMD Nolan (NL) FPGA and SoC platform. Cc: Jason Chang Signed-off-by: Huang Rui --- drivers/usb/dwc3/dwc3-pci.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index ada975f..7c4

[PATCH v5 4/8] PCI: Add support for AMD Nolan USB3 DRD

2014-10-30 Thread Huang Rui
This patch adds PCI id for USB3 Dual-Role Device of AMD Nolan (NL) SoC. It will be used for PCI quirks and DWC3 device driver. Signed-off-by: Jason Chang Signed-off-by: Huang Rui Acked-by: Bjorn Helgaas --- include/linux/pci_ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/lin

[PATCH v5 0/8] usb: dwc3: add support for AMD Nolan SoC

2014-10-30 Thread Huang Rui
Hi, The series of patches add AMD Nolan (NL) SoC support for DesignWare USB3 OTG IP with PCI bus glue layer. This controller supported hibernation, LPM erratum and used the 2.80a IP version and amd own phy. Current implementation support both simulation and SoC platform. And already tested with ga

Re: [PATCH 01/32] perf tools powerpc: Cache the DWARF debug info

2014-10-30 Thread Namhyung Kim
Hi Sukadev, On Wed, 29 Oct 2014 14:26:20 -0700, Sukadev Bhattiprolu wrote: > Namhyung Kim [namhy...@kernel.org] wrote: > | I don't know how dwfl_report_offline() can make it to find out a mod > | from pc as it's an (loaded) virtual address. Maybe I miss something or > | is your dso's are prelinke

Re: [PATCH] kernel crypto API interface specification

2014-10-30 Thread Marek Vasut
On Thursday, October 16, 2014 at 03:10:07 PM, Herbert Xu wrote: > On Tue, Oct 14, 2014 at 09:46:50PM +0200, Stephan Mueller wrote: > > The update adds a complete interface documentation of the kernel crypto > > API. All cipher types supported by the kernel crypto API are documented. > > > > In add

Re: [PATCH v4 14/20] usb: dwc3: add Tx de-emphasis quirk

2014-10-30 Thread Felipe Balbi
Hi, On Fri, Oct 31, 2014 at 09:29:55AM +0800, Huang Rui wrote: > On Thu, Oct 30, 2014 at 11:42:10AM -0500, Felipe Balbi wrote: > > On Thu, Oct 30, 2014 at 06:08:39PM +0800, Huang Rui wrote: > > > This patch adds Tx de-emphasis quirk, and the Tx de-emphasis value is > > > configurable according to

Re: [PATCH] VNIC: Adding support for Cavium ThunderX network controller

2014-10-30 Thread Stephen Hemminger
On Thu, 30 Oct 2014 17:54:34 +0100 Robert Richter wrote: > +#ifdef VNIC_RSS_SUPPORT > +static int rss_config = RSS_IP_HASH_ENA | RSS_TCP_HASH_ENA | > RSS_UDP_HASH_ENA; > +module_param(rss_config, int, S_IRUGO); > +MODULE_PARM_DESC(rss_config, > + "RSS hash config [bits 8:0] (B

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

2014-10-30 Thread Guenter Roeck
On 10/30/2014 07:40 PM, Andrew Lunn wrote: As suspected, ethtool will attempt to read a zero-length eeprom. The following patch should solve the problem. Not sure if it is worth it, though, since this will change behavior for existing drivers. Yes, it changes behaviour, but it does make it mor

[PATCH 1/3] usb: xhci: Revert "xhci: clear root port wake on bits if controller isn't wake-up capable"

2014-10-30 Thread Lu Baolu
This reverts commit ff8cbf250b448aac35589f6075082c3fcad8a8fe. Commit ff8cbf250b448aac35589f6075082c3fcad8a8fe triggers the bug logged at https://bugzilla.kernel.org/show_bug.cgi?id=85701 Reported-by: Dmitry Nezhevenko Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-hub.c | 5 + 1 file c

[PATCH 2/3] usb: xhci: This reworks ff8cbf250b448aac35589f6075082c3fcad8a8fe

2014-10-30 Thread Lu Baolu
xhci: clear root port wake on bits if controller isn't wake-up capable When xHCI PCI host is suspended, if do_wakeup is false in xhci_pci_suspend, xhci_pci_suspend needs to clear all root port wake on bits. Otherwise some Intel platforms may get a spurious wakeup, even if PCI PME# is disabled. Si

[PATCH 0/3] Rework "xhci: clear root port wake on bits if controller isn't wake-up capable"

2014-10-30 Thread Lu Baolu
This serie of patch reworks commit ff8cbf250b448aac35589f6075082c3fcad8a8fe. This has been discussed at http://www.spinics.net/lists/linux-usb/msg114986.html It also includes a patch to fix a comment in drivers/usb/host/xhci.h. Lu Baolu (3): usb: xhci: Revert "xhci: clear root port wake on bits

[PATCH 3/3] usb: xhci: fix comment for PORT_DEV_REMOVE

2014-10-30 Thread Lu Baolu
According to xHCI specification, PORT_DEV_REMOVE(bit 30) in PORTSC true means "Device is non-removable". Reported-by: Juro Bystricky Signed-off-by: Lu Baolu --- drivers/usb/host/xhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host

Re: [PATCHv6 1/8] usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

2014-10-30 Thread Kever Yang
Hi Dinh On 10/29/2014 07:25 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen Adds the gadget data structure and appropriate data structure pointers to the common dwc2_hsotg data structure. To keep the driver data dereference code looking clean, the gadget variable declares are only a

Re: [PATCH] VNIC: Adding support for Cavium ThunderX network controller

2014-10-30 Thread Stephen Hemminger
On Thu, 30 Oct 2014 17:54:34 +0100 Robert Richter wrote: > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index 1fa99a301817..80bd3336691e 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2324,6 +2324,8 @@ > #define PCI_DEVICE_ID_ALTIMA_AC9100 0x03e

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

2014-10-30 Thread Andrew Lunn
> As suspected, ethtool will attempt to read a zero-length eeprom. > > The following patch should solve the problem. Not sure if it is worth it, > though, since this will change behavior for existing drivers. Yes, it changes behaviour, but it does make it more consistent. Probably it should be u

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-30 Thread Kever Yang
Hi Dinh, On 10/29/2014 07:25 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen Since the dwc2 hcd driver is currently not looking for a clock node during init, we should not completely fail if there isn't a clock provided. For dual-role mode, we will only fail init for a non-clock no

Re: [PATCH 01/10] power: charger-manager: Use thermal subsystem interface only to get temperature.

2014-10-30 Thread jonghwa3 . lee
Hi, On 2014년 10월 30일 22:11, Krzysztof Kozłowski wrote: > On 30.10.2014 13:43, Jonghwa Lee wrote: >> It drops the way of using power_supply interface to reference battery's >> temperature. Then it tries to use thermal subsystem's only. This makes driver >> more simple and also can remove ifdeferies

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

2014-10-30 Thread Peter Feiner
On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: > On 2014/10/30 1:46, Andrea Arcangeli wrote: > >On Mon, Oct 27, 2014 at 05:32:51PM +0800, zhanghailiang wrote: > >>I want to confirm a question: > >>Can we support distinguishing between writing and reading memory for > >>userfault? >

[PATCH V2 00/13] clk: mmp: clock device tree support

2014-10-30 Thread Chao Xie
From: Chao Xie The patch set focuses at support device tree for clock. The first part of the patches clk: mmp: add prefix "mmp" for structures defined for clk-frac clk: mmp: add spin lock for clk-frac clk: mmp: add init callback for clk-frac clk: mmp: move definiton of mmp_clk_frac to cl

[PATCH V2 02/13] clk: mmp: add spin lock for clk-frac

2014-10-30 Thread Chao Xie
From: Chao Xie The register used by clk-frac may be shared with other clocks. So it needs to use spin lock to protect the register access. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-frac.c | 11 ++- drivers/clk/mmp/clk-mmp2.c | 2 +- drivers/clk/mmp/clk-pxa168.c | 2 +- driv

[PATCH V2 07/13] clk: mmp: add basic support functions for DT support

2014-10-30 Thread Chao Xie
From: Chao Xie In order to support DT for mmp SOC clocks, it defines some basic APIs which are shared by all mmp SOC clock units. Signed-off-by: Chao Xie --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk.c| 192 +++ drivers/clk/mmp/clk.h

[PATCH V2 01/13] clk: mmp: add prefix "mmp" for structures defined for clk-frac

2014-10-30 Thread Chao Xie
From: Chao Xie The structures defined for clk-frac will be used out side of clk-frac.c. To avoid conflicts, add prefix "mmp" for these structures' name. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-frac.c | 23 --- drivers/clk/mmp/clk-mmp2.c | 4 ++-- drivers/clk/mm

[PATCH V2 03/13] clk: mmp: add init callback for clk-frac

2014-10-30 Thread Chao Xie
From: Chao Xie For the clk-frac, we need to make sure that the initial clock rate is one item of the table. If it is not, we use the first item in the table by default. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-frac.c | 40 1 file changed, 40 inse

Re: [PATCH v9 09/12] x86, mpx: decode MPX instruction to get bound violation information

2014-10-30 Thread Ren Qiaowei
On 10/31/2014 06:38 AM, Dave Hansen wrote: +void do_mpx_bounds(struct pt_regs *regs, siginfo_t *info, + struct xsave_struct *xsave_buf) +{ + struct mpx_insn insn; + uint8_t bndregno; + unsigned long addr_vio; + + addr_vio = mpx_insn_decode(&insn, regs); + +

[PATCH V2 04/13] clk: mmp: move definiton of mmp_clk_frac to clk.h

2014-10-30 Thread Chao Xie
From: Chao Xie Move the definition of structure of mmp_clk_frac to clk.h. So device tree support can use this structure. Signed-off-by: Chao Xie --- drivers/clk/mmp/clk-frac.c | 8 drivers/clk/mmp/clk.h | 32 ++-- 2 files changed, 22 insertions(+), 18

[PATCH V2 06/13] clk: mmp: add mmp private gate clock

2014-10-30 Thread Chao Xie
From: Chao Xie Some SOCes have this kind of the gate clock 1. There are some bits to control the gate not only one bit. 2. It is not always that "1" is to enable while "0" is to disable when write register. So we have to define the "mask", "enable_val", "disable_val" for this kind of gate clo

[PATCH V2 08/13] clk: mmp: add reset support

2014-10-30 Thread Chao Xie
From: Chao Xie Some clock control regsiter has bit to reset the cotroller. So before enable the clock, we need deassert the reset pin. Make use of reset controller framework to export reset interface for device drivers, then device driver can control the reset action. Signed-off-by: Chao Xie --

[PATCH V2 12/13] arm: mmp: Make all the dts file to be compiled by Makefile

2014-10-30 Thread Chao Xie
From: Chao Xie Add items in arch/arm/boot/dt/Makefile to compile the dtb for mach-mmp. Change the dts and dtsi file to use #include instead of \include\ Signed-off-by: Chao Xie --- arch/arm/boot/dts/Makefile| 3 +++ arch/arm/boot/dts/mmp2-brownstone.dts | 2 +- arch/arm/boot/dts/mm

Re: [PATCH] kbuild: collect shorthands into the top Makefile

2014-10-30 Thread Masahiro Yamada
Hi Sam, On Wed, 29 Oct 2014 19:59:07 +0100 Sam Ravnborg wrote: > On Wed, Oct 29, 2014 at 04:27:31PM +0900, Masahiro Yamada wrote: > > The motivation of this commit is to avoid duplicated definitions > > of "clean" and "hdr-inst" shorthands. > > > > The shorthand "clean" is defined in both the t

[PATCH V2 11/13] clk: mmp: add mmp2 DT support for clock driver

2014-10-30 Thread Chao Xie
From: Chao Xie It adds the DT support for mmp2 clock subsystem. Signed-off-by: Chao Xie --- .../devicetree/bindings/clock/marvell,mmp2.txt | 21 ++ drivers/clk/mmp/Makefile | 1 + drivers/clk/mmp/clk-of-mmp2.c | 334 + i

Re: [RFC PATCH] fs: allow open(dir, O_TMPFILE|..., 0) with mode 0

2014-10-30 Thread Eric Rannaud
On Thu, Oct 30, 2014 at 6:04 PM, Linus Torvalds wrote: > On Thu, Oct 30, 2014 at 5:57 PM, Eric Rannaud wrote: >> Yes, there definitely is a glibc bug: a fix is being worked on and it >> looks like it will go in. The change replaces the test for O_CREAT by >> a test for either O_CREAT or O_TMPFILE

[PATCH V2 10/13] clk: mmp: add pxa910 DT support for clock driver

2014-10-30 Thread Chao Xie
From: Chao Xie It adds the DT support for pxa910 clock subsystem. Signed-off-by: Chao Xie --- .../devicetree/bindings/clock/marvell,pxa910.txt | 21 ++ drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-pxa910.c| 301 +

  1   2   3   4   5   6   7   8   9   >