Documenting ptrace access mode checking

2016-06-21 Thread Michael Kerrisk (man-pages)
Hi Jann, Stephen, et al. Jann, since you recently committed a patch in this area, and Stephen, since you committed 006ebb40d3d much further back in time, I wonder if you might help me by reviewing the text below that I propose to add to the ptrace(2) man page, in order to document "ptrace access

Re: [PATCH] iommu/mediatek: Do not call of_node_put in mtk_iommu_of_xlate

2016-06-21 Thread Joerg Roedel
On Wed, Jun 08, 2016 at 05:50:44PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > The device_node will be released in of_iommu_configure, it may be double > released if call of_node_put in mtk_iommu_of_xlate. > > Signed-off-by: Honghui Zhang

Re: [PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Heiko Stübner
Am Dienstag, 21. Juni 2016, 15:13:55 schrieb Xing Zheng: > Add constants and callback functions for the dwmac on rk322x socs. > As can be seen, the base structure is the same, only registers and > the bits in them moved slightly. > > Signed-off-by: Xing Zheng > --- > >

Re: cross compilers [was build failure of sorts]

2016-06-21 Thread Peter Zijlstra
On Tue, Jun 21, 2016 at 09:28:56AM +, Vineet Gupta wrote: > On Tuesday 21 June 2016 01:13 PM, Peter Zijlstra wrote: > > On Tue, Jun 21, 2016 at 05:29:28AM +, Vineet Gupta wrote: > >> > On Saturday 18 June 2016 03:47 PM, Peter Zijlstra wrote: > >>> > > As you can see, arc doesn't even build

Re: [PATCH v4 5/5] ARM: dts: mt2701: add iommu/smi dtsi node for mt2701

2016-06-21 Thread Joerg Roedel
On Wed, Jun 08, 2016 at 05:51:01PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > Add the dtsi node of iommu and smi for mt2701. > > Signed-off-by: Honghui Zhang > --- > arch/arm/boot/dts/mt2701.dtsi | 51 >

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-21 Thread Felipe Balbi
Hi, Peter Chen writes: >> >> So far, I haven't seen anybody talking about real USB OTG (the spec) >> >> when they say OTG. Usually they just mean "a method for swapping between >> >> host and peripheral roles, but we really don't want all the extra cost >> >> of the OTG

Re: [PATCH] HID: i2c-hid: set power sleep before shutdown

2016-06-21 Thread Jiri Kosina
On Tue, 21 Jun 2016, ghzhong wrote: > > > Some HW design is that the power to i2c hid device won't down > > > after device shutdown. Also the i2c-hid driver do not send suspend > > > cmd to the hid i2c device and disable its irq before shutdown.So > > > if We touch the touchscreen or some other

[RFC PATCH v2 0/9] scpi: Add SCPI registry to handle legacy protocol

2016-06-21 Thread Neil Armstrong
This patchset aims to support the legacy SCPI firmware implementation that was delivered as early technology preview for the JUNO platform. Finally a stable, maintained and public implementation for the SCPI protocol has been upstreamed part of the JUNO support and it is the recommended way of

[RFC PATCH v2 3/9] ARM64: dts: meson-gxbb: Add Meson MHU Node

2016-06-21 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 806b903..77381d0 100644 ---

[PATCH] net: ethernet: fix odd_ptr_err.cocci warnings

2016-06-21 Thread Julia Lawall
This patch refers to the following code: url: https://github.com/0day-ci/linux/commits/thloh-altera-com/net-ethernet-Add-T SE-PCS-support-to-dwmac-socfpga/20160621-164854 dwmac-socfpga.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c

[RFC PATCH v2 4/9] firmware: Add a SCPI registry to handle multiple implementations

2016-06-21 Thread Neil Armstrong
Add a thin registry layer to store the current scpi_ops pointer out of the arm_scpi.c location. Add a register/unregister and devres managed unregister calls, and their static inline disabled stubs. Add the SCPI_FW config to enable the registry layer build. Signed-off-by: Neil Armstrong

Re: [PATCH v2 1/3] coccinelle: also catch kzfree() issues

2016-06-21 Thread Michal Marek
Dne 20.6.2016 v 22:21 Julia Lawall napsal(a): > > > On Mon, 20 Jun 2016, Michal Marek wrote: > >> On 2016-05-23 17:18, Julia Lawall wrote: >>> >>> >>> On Mon, 23 May 2016, Yann Droneaud wrote: >>> Since commit 3ef0e5ba4673 ('slab: introduce kzfree()'), kfree() is no more the only

Re: cross compilers [was build failure of sorts]

2016-06-21 Thread Peter Zijlstra
On Tue, Jun 21, 2016 at 11:45:37AM +0200, Peter Zijlstra wrote: > Should arc-*-* list gdb in their noconfigdirs like many other archs do > too? Something like so I suppose. --- configure.ac |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac

Re: [PATCH v3 06/13] fork: Add generic vmalloced stack support

2016-06-21 Thread Jann Horn
On Tue, Jun 21, 2016 at 1:43 AM, Andy Lutomirski wrote: > If CONFIG_VMAP_STACK is selected, kernel stacks are allocated with > vmalloc_node. [...] > static struct thread_info *alloc_thread_info_node(struct task_struct *tsk, > int

Re: [PATCH v6 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-21 Thread Heiko Stübner
Hi Frank, Am Dienstag, 21. Juni 2016, 15:52:45 schrieb Frank Wang: > On 2016/6/20 12:56, Guenter Roeck wrote: > > On Sun, Jun 19, 2016 at 8:32 PM, Frank Wang wrote: > >>> Turns out my problem was one of terminology. Using "suspend" and > >>> "resume" to me suggested

[PATCH] PM / clk: Add support for adding a specific clock from device-tree

2016-06-21 Thread Jon Hunter
Some drivers using the PM clocks framework need to add specific clocks from device-tree using a name by calling the functions of_clk_get_by_name() and then pm_clk_add_clk(). Rather than having drivers call both functions, add a helper function of_pm_clk_add_clk() that will call these functions so

Re: [PATCH net-next 01/19] net: hns: bug fix of ge reset sequence

2016-06-21 Thread Andy Shevchenko
On Tue, 2016-06-21 at 11:56 +0800, Yisen Zhuang wrote: > From: Qianqian Xie > > The bit fileds of PPE reset register are different between HNS v1 and > HNS v2, but the current procedure just only match HNS v1. Here is a > patch to fix it. > > Signed-off-by: Kejian Yan

Re: [PATCH] memcg: mem_cgroup_migrate() may be called with irq disabled

2016-06-21 Thread Vladimir Davydov
On Mon, Jun 20, 2016 at 02:41:58PM -0400, Tejun Heo wrote: > mem_cgroup_migrate() uses local_irq_disable/enable() but can be called > with irq disabled from migrate_page_copy(). This ends up enabling irq > while holding a irq context lock triggering the following lockdep > warning. Fix it by

Re: [PATCH v1 19/25] PCI: rcar Gen2: Request host bridge window resources

2016-06-21 Thread Geert Uytterhoeven
Hi Bjorn, On Tue, Jun 7, 2016 at 1:07 AM, Bjorn Helgaas wrote: > Request host bridge window resources so they appear in ioport_resource and > iomem_resource and are reflected in /proc/ioports and /proc/iomem. > > Signed-off-by: Bjorn Helgaas > --- >

Re: [PATCH 21/27] [AARCH64] ILP32: introduce syscalls that pass off_t

2016-06-21 Thread Joseph Myers
On Tue, 21 Jun 2016, Yury Norov wrote: > create mode 100644 sysdeps/unix/sysv/linux/aarch64/ilp32/fallocate.c > create mode 100644 sysdeps/unix/sysv/linux/aarch64/ilp32/fallocate64.c > create mode 100644 sysdeps/unix/sysv/linux/aarch64/ilp32/ftruncate.c > create mode 100644

Re: [PATCH net-next 10/19] net: hns: bugfix about pfc pause frame statistics

2016-06-21 Thread Andy Shevchenko
On Tue, 2016-06-21 at 11:56 +0800, Yisen Zhuang wrote: > From: Daode Huang > > For SoC hip06, PFC pause handled in dsaf, while hip05 in XGMAC, > so change the statistics of pfc pause in dsaf and remove the old > pfc pause frame statistics. > > +static char

pull-request: wireless-drivers 2016-06-21

2016-06-21 Thread Kalle Valo
Hi Dave, here is a pull request for 4.7, really small fixes this time, some of them fix important regressions. Please let me know if there are any problems. Kalle The following changes since commit 182fd9eecb287e696c82b30d06c6150d80a49c5b: MAINTAINERS: Add file patterns for wireless device

Re: [LKP] [lkp] [x86 tsc] 19fa5e7364: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80

2016-06-21 Thread Wanpeng Li
2016-06-21 18:10 GMT+08:00 Paolo Bonzini : > > > On 21/06/2016 08:08, Wanpeng Li wrote: >> Cc KVM ML, Paolo, Radim, FYI, raw QEMU command line is: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -kernel

Re: Using DT overlays for adding virtual hardware

2016-06-21 Thread Pantelis Antoniou
Hi Jan, > On Jun 21, 2016, at 13:13 , Jan Kiszka wrote: > > Hi Pantelis, > > coming back to this topic: > > On 2016-06-09 08:03, Jan Kiszka wrote: >> OK, trial and error, and some interesting insights: I've played with DT >> fragments and the overlay configfs patch of

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-21 Thread Felipe Balbi
Hi, Tony Lindgren writes: > * Felipe Balbi [160621 03:06]: >> 8<-- >> vbus = read(VBUS_STATE); /* could be a gpio_get_value() */ >> id = read(ID_STATE); /* could be a

Re: ktime_get_ts64() splat during resume

2016-06-21 Thread Rafael J. Wysocki
On Monday, June 20, 2016 10:35:16 PM Logan Gunthorpe wrote: > Hey Rafael, Hi, > This patch appears to be working on my laptop. Thanks. Thanks for the confirmation! Rafael

Re: [PATCH] ppc: Fix BPF JIT for ABIv2

2016-06-21 Thread Michael Ellerman
On Tue, 2016-06-21 at 14:28 +0530, Naveen N. Rao wrote: > On 2016/06/20 03:56PM, Thadeu Lima de Souza Cascardo wrote: > > On Sun, Jun 19, 2016 at 11:19:14PM +0530, Naveen N. Rao wrote: > > > On 2016/06/17 10:00AM, Thadeu Lima de Souza Cascardo wrote: > > > > > > > > Hi, Michael and Naveen. > > >

Re: [PATCH v6 2/4] power: reset: add reboot mode driver

2016-06-21 Thread Krzysztof Kozlowski
On 06/21/2016 01:01 PM, Andy Yan wrote: (...) >>> +MODULE_AUTHOR("Andy Yan >> +MODULE_DESCRIPTION("System reboot mode driver"); >>> +MODULE_LICENSE("GPL v2"); >>> diff --git a/drivers/power/reset/reboot-mode.h >>> b/drivers/power/reset/reboot-mode.h >>> new file mode

Re: [PATCH 2/2] scsi: wd7000: print sector number as 64-bit

2016-06-21 Thread Arnd Bergmann
On Monday, June 20, 2016 9:12:50 PM CEST Martin K. Petersen wrote: > > "Arnd" == Arnd Bergmann writes: > > As sector_t can be 32-bit wide, this adds a cast to 'u64' and prints > that with the correct format. The change to use no_printk() > > [...] > > +

Re: [PATCH 4/9] ARM: dts: AM437X-GP-EVM: AM437X-SK-EVM: Make dcdc3 dcdc5 and dcdc6 enable during suspend

2016-06-21 Thread Tony Lindgren
* Keerthy [160620 01:46]: > dcdc3, dcdc5, dcdc6 supply ddr and rtc respectively. These > are required to be on during suspend. Hence set the state accordingly. Actually, please fix up the subject lines for the dts patches too :) Instead of "ARM: dts: AM437X-GP-EVM:

[PATCH] spi: imx: wait_for_completion_timeout(..) for PIO transfers

2016-06-21 Thread Christian Gmeiner
In some rare cases I see the following 'task blocked' information. It looks like the PIO transfer has some problems and never succeeds. Make use of wait_for_completion_timeout(..) to detect this case and return -ETIMEDOUT. [ 240.246067] INFO: task hexdump:1660 blocked for more than 120 seconds. [

Re: [PATCH] net: stmmac: dwmac-rk: add rk322x-specific data

2016-06-21 Thread Xing Zheng
Hi Heiko, On 2016年06月21日 17:43, Heiko Stübner wrote: devicetree names are normally expected to be real, aka no "x" as catchall. So I guess either just add compatibles for both the rk3228 and rk3229 which point to the same structure in the driver. (So driver-side can stay as it is below, just

Re: [PATCH v2 1/3] coccinelle: also catch kzfree() issues

2016-06-21 Thread Yann Droneaud
Hi, Le mardi 21 juin 2016 à 11:43 +0200, Michal Marek a écrit : > Dne 20.6.2016 v 22:21 Julia Lawall napsal(a): > > On Mon, 20 Jun 2016, Michal Marek wrote: > > On 2016-05-23 17:18, Julia Lawall wrote: > > > > On Mon, 23 May 2016, Yann Droneaud wrote: > > > > > > > > > Since commit 3ef0e5ba4673

Re: [PATCH] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-06-21 Thread Daniel Vetter
On Tue, Jun 21, 2016 at 08:04:00AM +0100, Chris Wilson wrote: > Rendering operations to the dma-buf are tracked implicitly via the > reservation_object (dmabuf->resv). This is used to allow poll() to > wait upon outstanding rendering (or just query the current status of > rendering). The dma-buf

Re: [PATCH] rxrpc: fix uninitialized variable use

2016-06-21 Thread David Howells
Arnd Bergmann wrote: > Hashing the peer key was introduced for AF_INET, but gcc > warns about the rxrpc_peer_hash_key function returning uninitialized > data for any other value of srx->transport.family: > > net/rxrpc/peer_object.c: In function 'rxrpc_peer_hash_key': >

Re: [PATCH v4 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-06-21 Thread William Wu
Dear Heiko, On 06/20/2016 10:44 PM, Heiko Stübner wrote: Hi William, Am Freitag, 17. Juni 2016, 17:18:59 schrieb William Wu: On 06/17/2016 07:15 AM, Heiko Stübner wrote: Am Donnerstag, 2. Juni 2016, 20:34:56 schrieb William Wu: This patch adds the devicetree documentation required for

Re: [PATCH 04/27] [AARCH64] Add PTR_REG, PTR_LOG_SIZE, and PTR_SIZE. Use it in LDST_PCREL and LDST_GLOBAL.

2016-06-21 Thread Andreas Schwab
Andreas Schwab writes: >> +/* Load or store to/from a got-relative EXPR into/from R, using T. >> + Note R and T are register numbers and not register names. */ >> +#define LDST_GLOBAL(OP, R, T, EXPR)\ >> +adrpx##T, :got:EXPR;

[PATCH v20 09/20] perf, tools: Add override support for event list CPUID

2016-06-21 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a PERF_CPUID variable to override the CPUID of the current CPU (within the current architecture). This is useful for testing, so that all event lists can be tested on a single system. Signed-off-by: Andi Kleen Signed-off-by:

Re: [PATCH v4 0/8] iommu/rockchip: Fix bugs and enable on ARM64

2016-06-21 Thread Joerg Roedel
On Tue, Jun 21, 2016 at 01:34:33PM +0900, Tomasz Figa wrote: > This series intends mostly to enable support for ARM64 architecture > in the rockchip-iommu driver. On the way to do so, some bugs are also > fixed. > > The most important changes here are: > - making the Rockchip IOMMU driver use

Re: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c

2016-06-21 Thread Takashi Iwai
On Tue, 21 Jun 2016 10:48:30 +0200, 高峰 wrote: > > The lastest CentOS7 platform, and the gcc version is gcc version 4.8.5 > 20150623 (Red Hat 4.8.5-4) (GCC). > It could pass compilation after append the lost semicolon. > > from sound/core/seq/seq_device.c:39: > include/linux/init.h:216:2: error:

Re: [Patch v6 0/2] Add Qualcomm ADM dmaengine driver

2016-06-21 Thread Neil Armstrong
Andy Gross codeaurora.org> writes: > > This patch set introduces the dmaengine driver for the Qualcomm Application > Data Mover (ADM) DMA controller present on MSM8x60, APQ8064, and IPQ8064 > devices. > > The initial version of this driver will only support slave DMA operations > between

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-21 Thread Arnd Bergmann
On Monday, June 20, 2016 4:43:30 PM CEST Andy Lutomirski wrote: > > On my laptop, this adds about 1.5µs of overhead to task creation, > which seems to be mainly caused by vmalloc inefficiently allocating > individual pages even when a higher-order page is available on the > freelist. Would it

Re: [RFC PATCH v3 2/2] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller

2016-06-21 Thread Duc Dang
On Tue, Jun 21, 2016 at 2:26 AM, Lorenzo Pieralisi wrote: > On Mon, Jun 20, 2016 at 12:12:24PM -0700, Duc Dang wrote: >> On Mon, Jun 20, 2016 at 10:17 AM, Christopher Covington >> wrote: >> > Hi Duc, >> > >> > On 06/20/2016 05:42 AM, Lorenzo

[PATCH 1/3] iio: adc: max1363: Fix missing i2c_device_id for MAX1164x parts

2016-06-21 Thread Florian Vaussard
The driver supports MAX11644, MAX11645, MAX11646 and MAX11647 parts. But the corresponding i2c_device_id are missing. Add them! Signed-off-by: Florian Vaussard --- drivers/iio/adc/max1363.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2] HID: i2c-hid: set power sleep before shutdown

2016-06-21 Thread Guohua Zhong
Add i2c_hid_shutdown for i2c-hid driver to send suspend cmd & free irq before device shutdown. Some HW design (i.e. Umaro, a chromebook model) is that the power to i2c hid device won't down after device shutdown. Also the i2c-hid driver do not send suspend cmd to the hid i2c device and free its

Re: [PATCH v3 05/13] mm: Fix memcg stack accounting for sub-page stacks

2016-06-21 Thread Vladimir Davydov
On Mon, Jun 20, 2016 at 04:43:35PM -0700, Andy Lutomirski wrote: > We should account for stacks regardless of stack size, and we need > to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the > units to kilobytes and Move it into account_kernel_stack(). > > Fixes: 12580e4b54ba8 ("mm:

Re: [Query] mwifiex: few observations to reduce number of endian conversions

2016-06-21 Thread Prasun Maiti
Hi Amitkumar, On Tue, Jun 21, 2016 at 3:47 PM, Amitkumar Karwar wrote: > I agree with your observations. We'll prepare a cleanup patch to address this. > > Regards, > Amitkumar I have already made some changes. I will send you a patch for this. -- Thanks, Prasun

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-21 Thread Tony Lindgren
* Felipe Balbi [160621 03:06]: > 8<-- > vbus = read(VBUS_STATE); /* could be a gpio_get_value() */ > id = read(ID_STATE); /* could be a gpio_get_value() */ > > set_role(id); >

Re: [PATCH 15/15] ARM: dts: am335x/am437x/dra7: use new "ti,cpsw-mdio" compat string

2016-06-21 Thread Tony Lindgren
* Grygorii Strashko [160615 05:05]: > Add "ti,cpsw-mdio" for am335x/am437x/dra7 SoCs where MDIO is > implemented as part of TI CPSW and, this way, enable PM runtime auto > suspend for Davinci MDIO driver on these paltforms. This one should not cause merge conflicts,

Re: 4.6.2 frequent crashes under memory + IO pressure

2016-06-21 Thread Tetsuo Handa
Johannes Stezenbach wrote: > Hi, > > a man's got to have a hobby, thus I'm running Android AOSP > builds on my home PC which has 4GB of RAM, 4GB swap. > Apparently it is not really adequate for the job but used to > work with a 4.4.10 kernel. Now I upgraded to 4.6.2 > and it crashes usually

[PATCH 03/27] mm, vmscan: Move LRU lists to node

2016-06-21 Thread Mel Gorman
This moves the LRU lists from the zone to the node and related data such as counters, tracing, congestion tracking and writeback tracking. Unfortunately, due to reclaim and compaction retry logic, it is necessary to account for the number of LRU pages on both zone and node logic. Most reclaim

[PATCH v1 1/3] drm/i915/debugfs: Move out pipe CRC code

2016-06-21 Thread Tomeu Vizoso
In preparation to using a generic API in the DRM core for continuous CRC generation, move the related code out of i915_debugfs.c into a new file. Eventually, only the Intel-specific code will remain in this new file. Signed-off-by: Tomeu Vizoso ---

Re: linux-next: Tree for Jun 21

2016-06-21 Thread Sudip Mukherjee
y to debug/solve this. > > I cannot reproduce, I tried both tip/master (which carries the patch you > fingered) and next/master. Thats strange. The log I gave is for next-20160621. BTW, I am using gcc-5.3.0 regards sudip

[PATCH 2/2] PCI: altera: Polling for link up status after retrain the link

2016-06-21 Thread Ley Foon Tan
Some PCIe devices take longer time to reach link up state after retrain. This patch polling for link up status after retrain the link. This is to make sure the link is stable and up before we access to configuration space registers after this. Signed-off-by: Ley Foon Tan ---

[PATCH v2] scsi: wd7000: print sector number as 64-bit

2016-06-21 Thread Arnd Bergmann
Enabling format checking in dprintk() shows that wd7000_biosparam uses an incorrect format string for sector_t: drivers/scsi/wd7000.c: In function 'wd7000_biosparam': drivers/scsi/wd7000.c:1594:21: error: format '%d' expects argument of type 'int', but argument 3 has type 'sector_t {aka long

Re: cmpxchg and x86 flags output

2016-06-21 Thread David Howells
H. Peter Anvin wrote: > Well, that sounds promising. I wonder how David's model, using > intrinsics (do we have enough intrinsics to actually be able to do this > "correctly"?), compare to using the flags output from assembly. There is an advantage to using the intriniscs on

Re: [PATCH 1/8] arm64: dts: db820c: add basic board support

2016-06-21 Thread Srinivas Kandagatla
On 21/06/16 00:23, Stephen Boyd wrote: On 06/20/2016 01:01 PM, Srinivas Kandagatla wrote: This patch adds apq8096 db820c basic support with serial port. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/Makefile| 2 +-

Re: [PATCH v2] scsi: wd7000: print sector number as 64-bit

2016-06-21 Thread Joe Perches
On Tue, 2016-06-21 at 11:02 +0200, Arnd Bergmann wrote: > Enabling format checking in dprintk() shows that wd7000_biosparam > uses an incorrect format string for sector_t: trivia: > diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c [] > @@ -192,7 +192,7 @@ >  #ifdef WD7000_DEBUG >  

Re: [PATCH v2] byteswap: try to avoid __builtin_constant_p gcc bug

2016-06-21 Thread Tomas Winkler
On Tue, May 3, 2016 at 9:36 AM, Arnd Bergmann wrote: > On Monday 02 May 2016 16:32:25 Andrew Morton wrote: >> On Tue, 03 May 2016 01:10:16 +0200 Arnd Bergmann wrote: >> >> > On Monday 02 May 2016 16:02:18 Andrew Morton wrote: >> > > On Mon, 02 May 2016 23:48:19

Re: [PATCH] rxrpc: fix uninitialized variable use

2016-06-21 Thread Arnd Bergmann
On Tuesday, June 21, 2016 9:48:52 AM CEST David Howells wrote: > Arnd Bergmann wrote: > > > Hashing the peer key was introduced for AF_INET, but gcc > > warns about the rxrpc_peer_hash_key function returning uninitialized > > data for any other value of srx->transport.family: > >

[PATCH] irqchip: fix the config HISILICON_IRQ_MBIGEN dependency error.

2016-06-21 Thread Jiancheng Xue
This patch fixes the compiling error caused when config HISILICON_IRQ_MBIGEN is selected but PCI_MSI is not seleted. Signed-off-by: Jiancheng Xue --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/Kconfig

Re: [PATCH v4 5/5] ARM: dts: mt2701: add iommu/smi dtsi node for mt2701

2016-06-21 Thread Joerg Roedel
On Wed, Jun 08, 2016 at 05:51:01PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > Add the dtsi node of iommu and smi for mt2701. > > Signed-off-by: Honghui Zhang > --- > arch/arm/boot/dts/mt2701.dtsi | 51 >

Re: [PATCH v2 1/3] Documentation: DT: Add iproc-static-adc binding

2016-06-21 Thread Raveendra Padasalagi
Hi Rob, Please find my reply inline. Regards, Raveendra On Mon, Jun 20, 2016 at 11:34 PM, Rob Herring wrote: > On Sun, Jun 19, 2016 at 03:36:28PM +0530, Raveendra Padasalagi wrote: >> The patch adds devicetree binding document for broadcom's >> iproc-static-adc controller

[RFC PATCH v2 1/9] mailbox: Add Amlogic Meson Message-Handling-Unit

2016-06-21 Thread Neil Armstrong
Add Amlogic Meson SoCs Message-Handling-Unit as mailbox controller with 2 independent channels/links to communicate with a remote processor. Signed-off-by: Neil Armstrong --- drivers/mailbox/Makefile| 2 + drivers/mailbox/meson_mhu.c | 199

Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss

2016-06-21 Thread Keerthy
On Tuesday 21 June 2016 01:22 PM, Mohammed, Afzal wrote: Hi Suman, Anna, Suman wrote on Monday, June 20, 2016 9:49 PM: It does happen when the pruss module is exercised. We found this when we tried to do a standby test on suspend, and while it worked on AM33xx, AM437x failed because of this

Re: [PATCH v2 00/15] clk: sunxi: introduce "modern" clock support

2016-06-21 Thread Jean-Francois Moine
On Tue, 7 Jun 2016 22:41:39 +0200 Maxime Ripard wrote: > The current code has been tested on the H3 and an Orange Pi PC, > including making sure that MMC still works, so the general approach > seems ok. > > Let me know what you think, Hi Maxime, I used your

[RFC PATCH v2 2/9] dt-bindings: mailbox: Add Amlogic Meson MHU Bindings

2016-06-21 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- .../devicetree/bindings/mailbox/meson-mhu.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/meson-mhu.txt diff --git

Re: [RFC 0/8] usb: phy: msm: various cleanups

2016-06-21 Thread Felipe Balbi
Hi, Arnd Bergmann writes: > I stumbled over this warning last week, which showed up after I had > removed an incorrect patch from my randconfig build setup: > > drivers/usb/phy/phy-msm-usb.c: In function 'msm_otg_probe': > drivers/usb/phy/phy-msm-usb.c:1735:14: error:

[PATCH] MAINTAINERS: update STi maintainer list

2016-06-21 Thread Maxime Coquelin
Remove myself as STi maintainer as I will no longer have access to STi platforms, and remove Srini too, who now works on other platforms. Patrice will manage the pull requests. Signed-off-by: Maxime Coquelin Cc: Patrice Chotard Cc: Srinivas

Re: [PATCH 01/27] [AARCH64] Fix utmp struct for compatibility reasons.

2016-06-21 Thread Szabolcs Nagy
On 21/06/16 06:06, Yury Norov wrote: > From: Andrew Pinski > > NOTE This is an ABI change for AARCH64. > If you have some AARCH32 and AARCH64 applications and they both use > utmp, one of them will fail due to the use of time_t inside the > utmp binary format. > > This fixes

Re: [LKP] [lkp] [x86 tsc] 19fa5e7364: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80

2016-06-21 Thread Paolo Bonzini
On 21/06/2016 08:08, Wanpeng Li wrote: > Cc KVM ML, Paolo, Radim, >>> FYI, raw QEMU command line is: >>> >>> qemu-system-x86_64 -enable-kvm -cpu SandyBridge -kernel >>>

Re: [lkp] [btrfs] 164a91c9be: xfstests.generic.088.fail

2016-06-21 Thread Anand Jain
Thanks for the report. > _check_btrfs_filesystem: filesystem on /dev/sda5 is inconsistent (see /lkp/benchmarks/xfstests/results//check.full) > generic/088 0s Ran tests again unfortunately I couldn't reproduce.. - generic/088 0s ... 0s generic/089 21s ... 39s generic/090 4s

Re: [PATCH 02/27] [AARCH64] Add header guards to sysdep.h headers.

2016-06-21 Thread Szabolcs Nagy
On 21/06/16 06:06, Yury Norov wrote: > From: Andrew Pinski > > * sysdeps/aarch64/sysdep.h: Add header guards. > the things listed below are not part of the patch (upstream glibc already has these fixes) > [AARCH64] Remove 64 from some relocation names as they have been

Re: [PATCH v12 1/4] gadget: Introduce the usb charger framework

2016-06-21 Thread Felipe Balbi
Hi, Baolin Wang writes: > This patch introduces the usb charger driver based on usb gadget that > makes an enhancement to a power driver. It works well in practice but > that requires a system with suitable hardware. > > The basic conception of the usb charger is that,

Re: [PATCH] ppc: Fix BPF JIT for ABIv2

2016-06-21 Thread Naveen N. Rao
On 2016/06/20 03:56PM, Thadeu Lima de Souza Cascardo wrote: > On Sun, Jun 19, 2016 at 11:19:14PM +0530, Naveen N. Rao wrote: > > On 2016/06/17 10:00AM, Thadeu Lima de Souza Cascardo wrote: > > > > > > Hi, Michael and Naveen. > > > > > > I noticed independently that there is a problem with BPF

RE: [PATCH] sparc64: Swap registers for fault code and address in mna trap

2016-06-21 Thread 神田 尚
Hi, David Thank you for your reply. > If you can really trigger this code path, please post the kernel log > backtrace that happens when the BUG() triggers. That way we can > figure out what the real problem is. I'm sorry I cannot show the information. I don't have now. In fact, BUG() in

Re: [PATCH] irqchip: fix the config HISILICON_IRQ_MBIGEN dependency error.

2016-06-21 Thread Jiancheng Xue
Hi Marc, On 2016/6/21 18:36, Marc Zyngier wrote: > On 21/06/16 10:26, Jiancheng Xue wrote: >> This patch fixes the compiling error caused when >> config HISILICON_IRQ_MBIGEN is selected but >> PCI_MSI is not seleted. >> >> Signed-off-by: Jiancheng Xue >> --- >>

Re: [PATCH v12 1/4] gadget: Introduce the usb charger framework

2016-06-21 Thread Baolin Wang
On 21 June 2016 at 18:25, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> This patch introduces the usb charger driver based on usb gadget that >> makes an enhancement to a power driver. It works well in practice but >> that requires a system with

Re: [PATCH v12 2/4] gadget: Support for the usb charger framework

2016-06-21 Thread Baolin Wang
On 21 June 2016 at 18:27, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> For supporting the usb charger, it adds the usb_charger_init() and >> usb_charger_exit() functions for usb charger initialization and exit. >> >> It will report to the usb

Re: [PATCH v12 4/4] power: wm831x_power: Support USB charger current limit management

2016-06-21 Thread Mark Brown
On Tue, Jun 21, 2016 at 01:30:49PM +0300, Felipe Balbi wrote: > Baolin Wang writes: > > @@ -607,8 +647,31 @@ static int wm831x_power_probe(struct platform_device > > *pdev) > > } > > } > > + if (wm831x_pdata && wm831x_pdata->usb_gadget) { > > +

Re: [PATCH v2 1/3] coccinelle: also catch kzfree() issues

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Yann Droneaud wrote: > Hi, > > Le mardi 21 juin 2016 à 11:43 +0200, Michal Marek a écrit : > > Dne 20.6.2016 v 22:21 Julia Lawall napsal(a): > > > On Mon, 20 Jun 2016, Michal Marek wrote: > > > On 2016-05-23 17:18, Julia Lawall wrote: > > > > > On Mon, 23 May 2016, Yann

Re: Using irq-crossbar.c

2016-06-21 Thread Sebastian Frias
Hi Marc, On 06/21/2016 12:18 PM, Marc Zyngier wrote: >> Since irq-tango_v2.c is similar to irq-crossbar.c from TI (since it >> is based on it), I was wondering what is the policy or recommendation >> in such cases? >> Should I attempt to merge the code (mainly the way to set up the >> registers)

Re: [PATCH 22/27] [AARCH64] ILP32: support stat syscall family

2016-06-21 Thread Joseph Myers
On Tue, 21 Jun 2016, Yury Norov wrote: > From: Yury Norov > > stat and statfs structures has their layouts identical to lp64 > after changing off_t, ino_t etc sizes to 64-bit. It means we can > pass it to kernel same way as lp64 does. This should be implemented in a way

Re: [PATCH 27/27] Fix PTRDIFF_MIN/PTRDIFF_MIN and PTRDIFF_MIN for ILP32.

2016-06-21 Thread Joseph Myers
On Tue, 21 Jun 2016, Yury Norov wrote: > +# ifdef __WORDSIZE32_PTRDIFF_LONG > +#define PTRDIFF_MIN (-2147483647L-1) > +#define PTRDIFF_MAX (2147483647L) > +# else > +#define PTRDIFF_MIN (-2147483647-1) > +#define PTRDIFF_MAX

Re: [RESEND PATCH v3 1/2] device property: Add function to search for named child of device

2016-06-21 Thread Rafael J. Wysocki
On Tuesday, June 21, 2016 02:11:26 PM Mika Westerberg wrote: > On Mon, Jun 20, 2016 at 12:38:58PM +0100, Adam Thomson wrote: > > For device nodes in both DT and ACPI, it possible to have named > > child nodes which contain properties (an existing example being > > gpio-leds). This adds a function

Re: [RFC 02/19] HSI: omap_ssi: do not reset module

2016-06-21 Thread Tony Lindgren
* Sebastian Reichel [160618 09:30]: > module reset and power management rule setup > is already done by hwmod. Remove this cruft, > which predates hwmod. Sounds good to me: Acked-by: Tony Lindgren

Re: [PATCH v12 4/4] power: wm831x_power: Support USB charger current limit management

2016-06-21 Thread Baolin Wang
On 21 June 2016 at 19:03, Mark Brown wrote: > On Tue, Jun 21, 2016 at 01:30:49PM +0300, Felipe Balbi wrote: >> Baolin Wang writes: >> > @@ -607,8 +647,31 @@ static int wm831x_power_probe(struct platform_device >> > *pdev) >> > } >> > }

Re: mm, oom_reaper: How to handle race with oom_killer_disable() ?

2016-06-21 Thread Michal Hocko
On Tue 21-06-16 20:03:17, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Mon 13-06-16 13:19:43, Michal Hocko wrote: > > [...] > > > I am trying to remember why we are disabling oom killer before kernel > > > threads are frozen but not really sure about that right away. > > > > OK, I guess I

Re: [PATCH 01/27] [AARCH64] Fix utmp struct for compatibility reasons.

2016-06-21 Thread Joseph Myers
On Tue, 21 Jun 2016, Yury Norov wrote: > From: Andrew Pinski > > NOTE This is an ABI change for AARCH64. My previous comments regarding symbol versioning and warnings in NEWS apply. -- Joseph S. Myers

Re: [RESEND PATCH v3 1/2] device property: Add function to search for named child of device

2016-06-21 Thread Mika Westerberg
On Tue, Jun 21, 2016 at 11:50:01AM +, Opensource [Adam Thomson] wrote: > 21 June 2016 12:42, Rafael J. Wysocki wrote: > > > > > +static inline bool acpi_data_node_match(struct fwnode_handle *fwnode, > > > > + const char *name) > > > > +{ > > > > +

Re: [PATCH 19/27] [AARCH64] Add typesizes.h for ILP32

2016-06-21 Thread Zhangjian (Bamvor)
Hi, On 2016/6/21 15:58, Andreas Schwab wrote: Yury Norov writes: diff --git a/sysdeps/unix/sysv/linux/sysdep-vdso.h b/sysdeps/unix/sysv/linux/sysdep-vdso.h index e8c4a7b..351d6bb 100644 --- a/sysdeps/unix/sysv/linux/sysdep-vdso.h +++

Re: divide error: 0000 [#1] SMP in task_numa_migrate - handle_mm_fault vanilla 4.4.6

2016-06-21 Thread Yannis Aribaud
Hi everyone, I recently it this bug in the kernel using a vanilla 4.6.2 release. It seems that somewhere in the load average calculation a division by 0 occurs (see the stack trace at the end). After digging a bit (be fair it's my first time) in the kernel sources, I found that we "recently"

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-21 Thread Andreas Schwab
"Zhangjian (Bamvor)" writes: > Hi, > > On 2016/6/21 15:56, Andreas Schwab wrote: >> Yury Norov writes: >> >>> diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h >>> b/sysdeps/unix/sysv/linux/aarch64/sysdep.h >>> index 1ffabc2..42f89c8

[patch] phy: phy-brcm-sata: fix a loop timeout

2016-06-21 Thread Dan Carpenter
Since this loop is a post op then it means we end with "try == -1" but afterward we test for if it's zero. Fix this by changing to a pre-op so we end on zero. Fixes: 024812889ad1 ('phy: Add SATA3 PHY support for Broadcom NSP SoC') Signed-off-by: Dan Carpenter diff

Re: [PATCH 22/27] [AARCH64] ILP32: support stat syscall family

2016-06-21 Thread Andreas Schwab
Yury Norov writes: > diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/statfs.h > b/sysdeps/unix/sysv/linux/aarch64/bits/statfs.h > new file mode 100644 > index 000..81a8626 > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/aarch64/bits/statfs.h > @@ -0,0 +1,72 @@ >

Re: [RFC PATCH v3 2/2] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller

2016-06-21 Thread Duc Dang
On Mon, Jun 20, 2016 at 12:12 PM, Duc Dang wrote: > On Mon, Jun 20, 2016 at 10:17 AM, Christopher Covington > wrote: >> Hi Duc, >> >> On 06/20/2016 05:42 AM, Lorenzo Pieralisi wrote: >>> On Fri, Jun 17, 2016 at 02:37:02PM -0700, Duc Dang wrote: On Thu,

Re: [RFC] IB/srp: Remove create_workqueue

2016-06-21 Thread Bart Van Assche
On 06/20/2016 08:59 PM, Tejun Heo wrote: On Tue, Jun 07, 2016 at 01:00:13PM -0700, Bart Van Assche wrote: srp_remove_wq is used for SRP target port removal work only. This work is neither queued from inside a shrinker nor by the page writeback code so I think it is safe to drop WQ_MEM_RECLAIM.

Re: [PATCH 2/4] sched/fair: Introduce idle enter/exit balance callbacks

2016-06-21 Thread Peter Zijlstra
On Mon, Jun 20, 2016 at 06:27:41PM +0200, Jiri Olsa wrote: > so it might not be that easy to switch it to use the easy > change I added as part of this RFC, but AFAIU it should be > the same idle mask, but this approach might be too naive > and miss some idle enter/exit paths.. CC-ing Frederic

Re: [PATCH] iommu/amd: Remove create_workqueue

2016-06-21 Thread Joerg Roedel
On Sat, Jun 18, 2016 at 01:58:30PM +0530, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_workqueue(). > > A dedicated workqueue has been used since the workitem (viz > >work), is involved in IO page-fault handling. > WQ_MEM_RECLAIM has been set to guarantee forward

Re: [PATCH v2] tty: serial: msm: Don't reconfigure same baud rate

2016-06-21 Thread Nicolas Dechesne
On Fri, Jun 17, 2016 at 1:02 PM, Nicolas Dechesne wrote: > wrote: >> msm_set_termios() is called whenever the tty is opened. Setting the baud >> rate requires a full reset of the msm serial block, even when the rate >> is unchanged. In the

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