[PATCH] tty: fix data race on tty_buffer.commit

2015-09-07 Thread Dmitry Vyukov
Race on buffer data happens when newly committed data is picked up by an old flush work in the following scenario: __tty_buffer_request_room does a plain write of tail->commit, no barriers were executed before that. At this point flush_to_ldisc reads this new value of commit, and reads buffer

Re: [PATCH v2 5/7] staging: board: Add support for devices with complex dependencies

2015-09-07 Thread Geert Uytterhoeven
Hi Ulf, On Mon, Sep 7, 2015 at 1:45 PM, Ulf Hansson wrote: > On 4 September 2015 at 17:03, Geert Uytterhoeven wrote: >> On Fri, 4 Sep 2015, Ulf Hansson wrote: >>> On 3 September 2015 at 15:35, Geert Uytterhoeven >>> wrote: >>> > On Thu, Sep 3, 2015 at 2:53 PM, Ulf Hansson >>> > wrote: >>>

Re: [PATCH-v2 1/3] mmc: sdhci-pxav3: Fix tabbing issue

2015-09-07 Thread Jisheng Zhang
On Mon, 7 Sep 2015 17:01:09 +0530 Vaibhav Hiremath wrote: > There were some coding style issues where spaces have been used instead > of tabs, for example, in macro definitions, alignment of function > declarations/definitions, etc... > > This patch fixes all such occurrences in the code. > >

Re: Kernel 4.1.6 Panic due to slab corruption

2015-09-07 Thread Holger Hoffstätte
On Mon, 07 Sep 2015 11:49:12 +, Holger Hoffstätte wrote: > On Mon, 07 Sep 2015 14:30:49 +0300, Nikolay Borisov wrote: > >> If you have the vmlinux image for the kernel you were running at the >> time, the crash occured, could you post the output of addr2line -f -e >> path/to/vmlinux

[PATCH] drm/mgag200: fix memory leak

2015-09-07 Thread Sudip Mukherjee
If drm_fb_helper_alloc_fbi() fails then we were directly returning without freeing sysram. Also if drm_fb_helper_alloc_fbi() succeeds but mgag200_framebuffer_init() fails then we were not releasing sysram and we were not releasing fbi helper also. Signed-off-by: Sudip Mukherjee ---

Re: Kernel 4.1.6 Panic due to slab corruption

2015-09-07 Thread Holger Hoffstätte
On Mon, 07 Sep 2015 14:30:49 +0300, Nikolay Borisov wrote: > If you have the vmlinux image for the kernel you were running at the > time, the crash occured, could you post the output of addr2line -f -e > path/to/vmlinux 8115bd4d to see if it also fails in > get_freepointer. Had to

Re: [PATCH v3] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-09-07 Thread Ivan T. Ivanov
On Fri, 2015-06-05 at 17:26 +0800, Peter Chen wrote: > On Fri, Jun 05, 2015 at 10:37:07AM +0300, Ivan T. Ivanov wrote: > > > > > + > > > > +static int ci_id_notifier(struct notifier_block *nb, unsigned long > > > > event, > > > > + void *ptr) > > > > +{

Re: [RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-07 Thread Archit Taneja
Thierry, On 08/21/2015 11:39 AM, Archit Taneja wrote: On 08/20/2015 05:18 PM, Thierry Reding wrote: On Thu, Aug 20, 2015 at 09:46:14AM +0530, Archit Taneja wrote: Hi Thierry, Lucas, On 08/19/2015 08:32 PM, Thierry Reding wrote: On Wed, Aug 19, 2015 at 04:52:24PM +0200, Lucas Stach wrote:

[PATCH v4] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-09-07 Thread Ivan T. Ivanov
On recent Qualcomm platforms VBUS and ID lines are not routed to USB PHY LINK controller. Use extcon framework to receive connect and disconnect ID and VBUS notification. Signed-off-by: Ivan T. Ivanov --- Changes sice v3 [1]: * Migrate to new extcon framework API * Address comments from Peter

Re: [PATCH v2 5/7] staging: board: Add support for devices with complex dependencies

2015-09-07 Thread Ulf Hansson
On 4 September 2015 at 17:03, Geert Uytterhoeven wrote: > Hi Ulf, > > On Fri, 4 Sep 2015, Ulf Hansson wrote: >> On 3 September 2015 at 15:35, Geert Uytterhoeven >> wrote: >> > On Thu, Sep 3, 2015 at 2:53 PM, Ulf Hansson wrote: >> >> On 17 June 2015 at 10:38, Geert Uytterhoeven >> >>

Re: [PATCH 2/6] perf, tools, stat: Abstract stat metrics printing

2015-09-07 Thread Jiri Olsa
On Fri, Sep 04, 2015 at 03:45:13PM -0700, Andi Kleen wrote: SNIP > @@ -695,11 +743,7 @@ static void print_counter_aggr(struct perf_evsel > *counter, char *prefix) > } > > uval = avg * counter->scale; > - > - if (nsec_counter(counter)) > - nsec_printout(-1, 0,

Re: [PATCH v4 00/13] USB: OTG/DRD Core functionality

2015-09-07 Thread Roger Quadros
On 06/09/15 10:06, Peter Chen wrote: > On Mon, Aug 24, 2015 at 04:21:11PM +0300, Roger Quadros wrote: >> Hi, >> >> This series centralizes OTG/Dual-role functionality in the kernel. >> As of now I've got Dual-role functionality working pretty reliably on >> dra7-evm and am437x-gp-evm. >> >> DWC3

Re: [PATCH 0/7] gpio: omap: fixes and improvements

2015-09-07 Thread Grygorii Strashko
+Cc: Austin, Philipp On 08/26/2015 10:53 AM, Linus Walleij wrote: On Tue, Aug 18, 2015 at 1:10 PM, Grygorii Strashko wrote: This patch series contains set of trivial fixes and improvements, and also patches which fixes wrong APIs usage in atomic context as for -RT as for non-RT kernel. The

Re: perf: fuzzer PEBS record without PEBS event! crash

2015-09-07 Thread Stephane Eranian
On Mon, Sep 7, 2015 at 2:44 AM, Vince Weaver wrote: > On Sun, 6 Sep 2015, Stephane Eranian wrote: > >> > [ 1800.285152] [ cut here ] >> > [ 1800.290757] WARNING: CPU: 0 PID: 0 at >> > arch/x86/kernel/cpu/perf_event_intel_ds.c:1210 >> >

Re: [PATCH] ARM: fix bug which lowmem size is limited to 760MB

2015-09-07 Thread Arnd Bergmann
On Thursday 03 September 2015 21:24:00 Nicolas Pitre wrote: > If 768MB targets were common place then it could be worth changing the > default vmalloc size to accommodate this memory size and testing all the > other targets to make sure no regressions are introduced. But given it > is easy to

Multiple potential races on vma->vm_flags

2015-09-07 Thread Kirill A. Shutemov
On Sun, Sep 06, 2015 at 03:21:05PM -0400, Sasha Levin wrote: > == > ThreadSanitizer: data-race in munlock_vma_pages_range > > Write of size 8 by thread T378 (K2633, CPU3): > [] munlock_vma_pages_range+0x59/0x3e0 mm/mlock.c:425 > []

[PATCH] spi: mediatek: fix spi cs polarity error

2015-09-07 Thread Leilk Liu
Mediatek spi HW can't set cs inactive(keep cs high) directly. Instead, it supplies pause mode to do it indirectly. If driver unsets SPI_CMD_PAUSE_MODE in CMD_REG, it also needs to reset internal state machine to let cs inactive at once. Signed-off-by: Leilk Liu --- drivers/spi/spi-mt65xx.c | 27

Re: [PATCH V8 0/7] Freq/CPU%/CORE_BUSY% support

2015-09-07 Thread Jiri Olsa
On Thu, Sep 03, 2015 at 08:30:56AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > This patch set supports per-sample freq/CPU%/CORE_BUSY% print in perf > report -D and --stdio. > For printing these information, the perf.data file must have been obtained > by group read and using special

Re: [Xen-devel] [PATCH] xen-blkback: free requests on disconnection

2015-09-07 Thread Bob Liu
On 09/07/2015 07:10 PM, Julien Grall wrote: > On 07/09/15 07:07, Bob Liu wrote: >> Hi Julien, > > Hi Bob, > >> On 09/04/2015 09:51 PM, Julien Grall wrote: >>> Hi Roger, >>> >>> On 04/09/15 11:08, Roger Pau Monne wrote: Request allocation has been moved to connect_ring, which is called

[PATCH-v2 3/3] mmc: sdhci: print notice on -EPROBE_DEFER in sdhci_add_host() fn

2015-09-07 Thread Vaibhav Hiremath
This patch adds kernel notice/message to sdhci_host_add() fn on -EPROBE_DEFER. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1dbe932..37a5cd5 100644

[PATCH-v2 1/3] mmc: sdhci-pxav3: Fix tabbing issue

2015-09-07 Thread Vaibhav Hiremath
There were some coding style issues where spaces have been used instead of tabs, for example, in macro definitions, alignment of function declarations/definitions, etc... This patch fixes all such occurrences in the code. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci-pxav3.c | 46

[PATCH-v2 0/3] mmc: sdhci-pxav3: Fix tabbing issue

2015-09-07 Thread Vaibhav Hiremath
Trivial patch-series, which fixes the tabbing issue in the driver, uses the BIT macro for bit fields and prints notice on -EPROBE_DEFER in sdhci_add_host() function on regulator unavailability. V1 => V2 - Fixed all comments from Joe, mostly alignment changes - Separated BIT macro usage

[PATCH-v2 2/3] mmc: sdhci-pxav3: Use BIT macro for bit field definitions

2015-09-07 Thread Vaibhav Hiremath
Instead of using shift operation use BIT macro for bit field definitions. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci-pxav3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index

Re: Kernel 4.1.6 Panic due to slab corruption

2015-09-07 Thread Nikolay Borisov
Hi, If you have the vmlinux image for the kernel you were running at the time, the crash occured, could you post the output of addr2line -f -e path/to/vmlinux 8115bd4d to see if it also fails in get_freepointer. Regards, Nikolay On 09/07/2015 01:37 PM, Holger Hoffstätte wrote: > On Mon,

Re: [PATCH 6/9] KVM: VMX: simplify invpcid handling in vmx_cpuid_update()

2015-09-07 Thread Paolo Bonzini
On 21/08/2015 06:50, Xiao Guangrong wrote: > + if (vmx_invpcid_supported() && (!best || Please start the "(" subexpression on a new line. Paolo > + !(best->ebx & bit(X86_FEATURE_INVPCID)) || > + !guest_cpuid_has_pcid(vcpu))) { -- To unsubscribe from this list: send the

Re: [PATCH 8/9] KVM: VMX: introduce set_clear_2nd_exec_ctrl()

2015-09-07 Thread Paolo Bonzini
On 21/08/2015 06:50, Xiao Guangrong wrote: > > +static void set_clear_2nd_exec_ctrl(u32 ctrls, bool set) > +{ > + u32 exec_ctrl = vmcs_read32(SECONDARY_VM_EXEC_CONTROL); > + > + if (set) > + exec_ctrl |= ctrls; > + else > + exec_ctrl &= ~ctrls; > + > +

Re: [PATCH 1/4] ARM: multi_v7_defconfig: Enable common Rockchip devices/busses

2015-09-07 Thread Thierry Reding
On Mon, Sep 07, 2015 at 12:38:08PM +0200, Javier Martinez Canillas wrote: > Hello Sjoerd, > > On 09/07/2015 12:24 PM, Sjoerd Simons wrote: > > On Mon, 2015-09-07 at 11:26 +0200, Javier Martinez Canillas wrote: > >> Hello Sjoerd, > >> > >> On 09/06/2015 10:16 PM, Sjoerd Simons wrote: > >>> Enable

Re: [PATCH v2] QEMU fw_cfg DMA interface documentation

2015-09-07 Thread Laszlo Ersek
On 09/07/15 13:08, Gerd Hoffmann wrote: > Hi, > >> It's just simplicity. If you want to read a few times from the same >> field (like in ACPI tables, read the data size and then the data), you >> need a way to enable and disable the selector and manage the current >> offset for that entry. This

[PATCH] usb: phy: qcom: Switch to new extcon framework API

2015-09-07 Thread Ivan T. Ivanov
[un]register_interest and reading cable state by name have been deprecated. Switch to new API. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-qcom-8x16-usb.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/usb/phy/phy-qcom-8x16-usb.c

[PATCH-v2 1/7] mmc: sdhci-pxav3: Enable pxa1928 device support

2015-09-07 Thread Vaibhav Hiremath
SDHCI controller present in PXA1928 has few differences as far as register map is concerned. For example, PXAxxxPXA1928 ===== SDCLK_DELAY field 0x10A 0x114 SDCLK_DELAY

Re: [Xen-devel] [PATCH] xen-blkback: free requests on disconnection

2015-09-07 Thread Julien Grall
On 07/09/15 07:07, Bob Liu wrote: > Hi Julien, Hi Bob, > On 09/04/2015 09:51 PM, Julien Grall wrote: >> Hi Roger, >> >> On 04/09/15 11:08, Roger Pau Monne wrote: >>> Request allocation has been moved to connect_ring, which is called every >>> time blkback connects to the frontend (this can

[PATCH-v2 4/7] mmc: sdhci-pxav3: Add pinctl setting according to bus clock

2015-09-07 Thread Vaibhav Hiremath
Different bus clock may need different pin setting. For example, fast bus clock like 208Mhz need pin drive fast while slow bus clock prefer pin drive slow to guarantee signal quality. So this patch creates two states, - Default (slow/normal) pin state - And fast pin state for higher freq bus

[PATCH-v2 2/7] mmc: sdhci-pxav3: binding: Add pxa1928 compatible support

2015-09-07 Thread Vaibhav Hiremath
With support for pxa1928 family of devices , this patch updates the binding document with compatible property of "marvell,pxav3-1928-sdhci". Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree/bindings/mmc/sdhci-pxa.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH-v2 6/7] mmc: sdhci: add new quirk for setting BUS_POWER & BUS_VLT fields

2015-09-07 Thread Vaibhav Hiremath
IN case of Marvell 1928 family of devices, the SD_BUS_POWER and SD_BUS_VLT bits are used internally to gate the clocks, so we have to set these fields. Pasting Spec words here, The and fields should be configured to correct values. These actually do not do the voltage selection or switch power

[PATCH-v2 5/7] mmc: sdhci-pxav3: Fix HS200 mode support

2015-09-07 Thread Vaibhav Hiremath
From: Kevin Liu IN case of MMC HS200 mode, current code does not enable SD_CE_ATA_2.MMC_HS200 & SD_CE_ATA_2.MMC_CARD bit configurations. So this patch updates the above bit fields correctly. Signed-off-by: Tim Wang Signed-off-by: Kevin Liu Signed-off-by: Vaibhav Hiremath --- Note:

[PATCH-v2 7/7] mmc: sdhci: enable SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON for pxa1928

2015-09-07 Thread Vaibhav Hiremath
Card power is dependent on bus power, without that card wouldn't respond (No CARD_INT). So this patch enables the quirk SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci-pltfm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH-v2 3/7] mmc: sdhci-pxav3: Add platform specific set_clock ops

2015-09-07 Thread Vaibhav Hiremath
In case of PXA1928 & family of devices, the TX BUS and internal clock need to be set as part of ->set_clock() ops, so this patch adds platform specific ->set_clock() operation. Note that, in order to not break other platforms, this patch introduced the flag, which controls whether

[PATCH-v2 0/7] mmc: sdhci-pxav3: Enable support for PXA1928 SDCHI controller

2015-09-07 Thread Vaibhav Hiremath
PXA1928 SDHCI controller has few differences, for example, PXAxxxPXA1928 ===== SDCLK_DELAY field 0x10A 0x114 SDCLK_DELAY mask0x1F 0x3FF

Re: [PATCH 3/9] KVM: x86: add pcommit support

2015-09-07 Thread Paolo Bonzini
On 21/08/2015 06:50, Xiao Guangrong wrote: > Pass PCOMMIT CPU feature to guest to enable PCOMMIT instruction > > Currently we do not catch pcommit instruction for L1 guest and > allow L1 to catch this instruction for L2 > > The specification locates at: >

Re: [PATCH V8 7/7] perf,tools: Show freq/CPU%/CORE_BUSY% in perf report --stdio

2015-09-07 Thread Jiri Olsa
On Thu, Sep 03, 2015 at 08:31:03AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > Show frequency, CPU Utilization and percent performance for each symbol > in perf report by --stdio --show-freq-perf > > In sampling group, only group leader do sampling. So only need to print > group

Re: [PATCH V4 2/2] arm64: Change memcpy in kernel to use the copy template file

2015-09-07 Thread Catalin Marinas
On Fri, Aug 21, 2015 at 03:01:41PM -0700, Feng Kan wrote: > This converts the memcpy.S to use the copy template file. The copy > template file was based originally on the memcpy.S. Minor changes > was made to it to accommodate the copy to/from/in user files. I think it will be easier to follow if

Re: Kernel 4.1.6 Panic due to slab corruption

2015-09-07 Thread Nikolay Borisov
Did a bit more investigation and it turns out the corruption is happening in slab_alloc_node, in the 'else' branch when get_freepointer is being called: 0x81182a50 <+144>: movsxd rax,DWORD PTR [r12+0x20] 0x81182a55 <+149>: movrdi,QWORD PTR [r12] 0x81182a59

[PATCH] timerfd: Allow TFD_TIMER_CANCEL_ON_SET with relative timeouts

2015-09-07 Thread Jesper Nilsson
Allow TFD_TIMER_CANCEL_ON_SET on timerfd_settime() with relative as well as absolute timeout. Signed-off-by: Jesper Nilsson --- Longer background: One of the uses for TFD_TIMER_CANCEL_ON_SET is to get an event when the CLOCK_REALTIME changes (as by NTP or user action). In this case, the timeout

Re: [PATCH] zram: fix possible use after free in zcomp_create()

2015-09-07 Thread Sergey Senozhatsky
On (09/07/15 11:33), Luis Henriques wrote: > zcomp_create() verifies the success of zcomp_strm_{multi,siggle}_create() > through comp->stream, which can potentially be pointing to memory that was > freed if these functions returned an error. > good catch. we probably better start checking the

Re: [PATCH v2] QEMU fw_cfg DMA interface documentation

2015-09-07 Thread Gerd Hoffmann
Hi, > It's just simplicity. If you want to read a few times from the same > field (like in ACPI tables, read the data size and then the data), you > need a way to enable and disable the selector and manage the current > offset for that entry. This is already provided with the "old" > interface.

[RESEND PATCH 2/2] i2c: added I2C_FUNC_NO_CLK_STRETCH to i2c-algo-bit.c

2015-09-07 Thread Nicola Corna
Added I2C_FUNC_NO_CLK_STRETCH to drivers/i2c/algos/i2c-algo-bit.c when getscl is not available. Signed-off-by: Nicola Corna --- drivers/i2c/algos/i2c-algo-bit.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/algos/i2c-algo-bit.c

Re: [PATCH] vfio: Enable VFIO device for powerpc

2015-09-07 Thread Paolo Bonzini
On 26/08/2015 20:54, Paul Mackerras wrote: > On Wed, Aug 26, 2015 at 11:34:26AM +0200, Alexander Graf wrote: >> >> >> On 13.08.15 03:15, David Gibson wrote: >>> ec53500f "kvm: Add VFIO device" added a special KVM pseudo-device which is >>> used to handle any necessary interactions between KVM

Re: [PATCH 1/4] ARM: multi_v7_defconfig: Enable common Rockchip devices/busses

2015-09-07 Thread Javier Martinez Canillas
Hello Andy, On 09/07/2015 12:55 PM, Andy Yan wrote: > Hi > There are also many other devices like display and mmc and even > the cpu(if the cpu want run a high frequency when boot up)need to > get power supply from PMIC, so it is better to load PMIC as early as > possible.Built-in is a better

RE: [GIT] Networking

2015-09-07 Thread David Laight
From: Rustad, Mark D ... > >> static int smp_ah(struct crypto_blkcipher *tfm, const u8 irk[16], > >> const u8 r[3], u8 res[3]) > > > > Expect that it looks like you are passing arrays by value, > > but instead you are passing by reference. > > > > Explicitly pass by reference and

Re: [PATCH V8 3/7] perf, record: introduce --freq-perf option

2015-09-07 Thread Jiri Olsa
On Thu, Sep 03, 2015 at 08:30:59AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > To generate the frequency and performance output, perf must sample read > special events like cycles, ref-cycles, msr/tsc/, msr/aperf/ or > msr/mperf/. > With the --freq-perf option, perf record can

Re: [PATCH 1/4] ARM: multi_v7_defconfig: Enable common Rockchip devices/busses

2015-09-07 Thread Andy Yan
Hi There are also many other devices like display and mmc and even the cpu(if the cpu want run a high frequency when boot up)need to get power supply from PMIC, so it is better to load PMIC as early as possible.Built-in is a better choice. On 2015年09月07日 18:24, Sjoerd Simons wrote: On Mon,

Re: [PATCH v4 07/13] usb: otg: add OTG core

2015-09-07 Thread Roger Quadros
On 07/09/15 10:40, Li Jun wrote: > On Mon, Aug 24, 2015 at 04:21:18PM +0300, Roger Quadros wrote: >> The OTG core instantiates the OTG Finite State Machine >> per OTG controller and manages starting/stopping the >> host and gadget controllers based on the bus state. >> >> It provides APIs for the

Re: [PATCH 2/4] ARM: multi_v7_defconfig: Enable ACT8865 PMIC driver

2015-09-07 Thread Heiko Stübner
Hi Andy, Am Montag, 7. September 2015, 18:49:02 schrieb Andy Yan: > PMIC RK808 used on many rk3288 boards ,such as Popmetal. > It is a MFD with function regulator and RTC. So if you plan to enable > RK808, please also enable CONFIG_RTC_DRV_RK808. I think that could go into a separate patch5 ...

Re: [PATCH v5 1/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/smaps

2015-09-07 Thread Pádraig Brady
On 07/09/15 10:52, Pádraig Brady wrote: > On 07/09/15 07:46, Naoya Horiguchi wrote: >> On Mon, Sep 07, 2015 at 02:23:44AM +, Horiguchi Naoya(堀口 直也) wrote: >>> On Mon, Sep 07, 2015 at 02:29:53AM +0100, Pádraig Brady wrote: On 20/08/15 09:26, Naoya Horiguchi wrote: > Currently

Re: [PATCH 2/4] ARM: multi_v7_defconfig: Enable ACT8865 PMIC driver

2015-09-07 Thread Andy Yan
PMIC RK808 used on many rk3288 boards ,such as Popmetal. It is a MFD with function regulator and RTC. So if you plan to enable RK808, please also enable CONFIG_RTC_DRV_RK808. thanks. On 2015年09月07日 17:33, Heiko Stübner wrote: Hi, I guess one could rename that to something like "ARM:

Re: [PATCH 1/4] ARM: multi_v7_defconfig: Enable common Rockchip devices/busses

2015-09-07 Thread Javier Martinez Canillas
Hello Sjoerd, On 09/07/2015 12:24 PM, Sjoerd Simons wrote: > On Mon, 2015-09-07 at 11:26 +0200, Javier Martinez Canillas wrote: >> Hello Sjoerd, >> >> On 09/06/2015 10:16 PM, Sjoerd Simons wrote: >>> Enable Rockchip I2C, SPI, PWM, thermal drivers. >>> >>> Builtin are: >>> * I2C as it often

Re: Kernel 4.1.6 Panic due to slab corruption

2015-09-07 Thread Holger Hoffstätte
On Mon, 07 Sep 2015 11:41:17 +0300, Nikolay Borisov wrote: > Hello, > > On one of our servers I've observed the a kernel pannic > happening with the following backtrace: > > [654405.527070] BUG: unable to handle kernel paging request at > 00028001 > [654405.527076] IP: []

Re: [PATCH 0/5] mmc: sdhci-pxav3: Enable support for PXA1928 SDCHI controller

2015-09-07 Thread Vaibhav Hiremath
On Friday 04 September 2015 09:02 PM, Vaibhav Hiremath wrote: PXA1928 SDHCI controller has few differences, for example, PXAxxxPXA1928 ===== SDCLK_DELAY field 0x10A

[PATCH] zram: fix possible use after free in zcomp_create()

2015-09-07 Thread Luis Henriques
zcomp_create() verifies the success of zcomp_strm_{multi,siggle}_create() through comp->stream, which can potentially be pointing to memory that was freed if these functions returned an error. Fixes: beca3ec71fe5 ("zram: add multi stream functionality") Cc: sta...@vger.kernel.org Signed-off-by:

Re: [PATCH V3 1/3] kvm: use kmalloc() instead of kzalloc() during iodev register/unregister

2015-09-07 Thread Paolo Bonzini
On 25/08/2015 11:05, Jason Wang wrote: > All fields of kvm_io_range were initialized or copied explicitly > afterwards. So switch to use kmalloc(). > > Cc: Gleb Natapov > Cc: Paolo Bonzini > Cc: Michael S. Tsirkin > Signed-off-by: Jason Wang > --- > virt/kvm/kvm_main.c | 4 ++-- > 1 file

Re: [PATCH 1/7] selftests: rename jump label to static_keys

2015-09-07 Thread Michael Ellerman
On Thu, 2015-08-27 at 16:17 -0600, Shuah Khan wrote: > On 08/14/2015 07:43 AM, Bamvor Jian Zhang wrote: > > commit "2bf9e0a locking/static_keys: Provide a selftest" rename > > jump_label directory to static_keys. > > > > Signed-off-by: Bamvor Jian Zhang > > --- > >

[RESEND PATCH 1/2] i2c: added FUNC flag for unsupported clock stretching

2015-09-07 Thread Nicola Corna
Added I2C_FUNC_NO_CLK_STRETCH, to be used when clock stretching is not supported. Signed-off-by: Nicola Corna --- Documentation/i2c/functionality | 1 + include/uapi/linux/i2c.h| 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/i2c/functionality

Re: [PATCH 1/4] ARM: multi_v7_defconfig: Enable common Rockchip devices/busses

2015-09-07 Thread Sjoerd Simons
On Mon, 2015-09-07 at 11:26 +0200, Javier Martinez Canillas wrote: > Hello Sjoerd, > > On 09/06/2015 10:16 PM, Sjoerd Simons wrote: > > Enable Rockchip I2C, SPI, PWM, thermal drivers. > > > > Builtin are: > > * I2C as it often controls the pmic. > > Having I2C as a module will cause more probe

Re: [PATCH v4 07/13] usb: otg: add OTG core

2015-09-07 Thread Roger Quadros
On 07/09/15 04:23, Peter Chen wrote: > On Mon, Aug 24, 2015 at 04:21:18PM +0300, Roger Quadros wrote: >> + * This is used by the USB Host stack to register the Host controller >> + * to the OTG core. Host controller must not be started by the >> + * caller as it is left upto the OTG state machine

Re: Dealing with the NMI mess

2015-09-07 Thread Paolo Bonzini
On 07/09/2015 10:19, Maciej W. Rozycki wrote: >> > Essentially the ICE breakpoint instruction enters SMM mode? > I didn't do stuff at the probe firmware level so I can't say for sure, > but my gut feeling is the debug mode is indeed very close if not the same > as SMM. I think duplicating

[GIT PULL] MMC for v.4.3

2015-09-07 Thread Ulf Hansson
Hi Linus, Here are the PR for MMC for v4.3. Details about the MMC highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 2c6625cd545bdd66acff14f3394865d43920a5c7: Linux 4.2-rc7 (2015-08-16 16:34:13 -0700) are

Re: [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree"

2015-09-07 Thread Mark Brown
On Sun, Sep 06, 2015 at 03:22:43AM +0300, Alexey Klimov wrote: > Sorry. Right now I see how I screwed up. Should I re-send it as single > patch with all info included (marking as RESEND)? No, it's OK - the patch itself was clear enough and I already applied it. signature.asc Description:

Re: [RFC][PATCH RT 0/3] RT: Fix trylock deadlock without msleep() hack

2015-09-07 Thread Thomas Gleixner
On Mon, 7 Sep 2015, Thomas Gleixner wrote: > 1) The boosting is not related to anything. > >If the priority of taskB changes then nothing changes the boosting >of taskA. > > 2) The boosting stops Scratch that #2. Hit send too fast. #1 and #3 still hold. Thanks, tglx -- To

[GIT pull] irq updates for 4.3

2015-09-07 Thread Thomas Gleixner
Linus, please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus The second part of irq related updates: - Provide EOImode for GIC[V3] irq chips, which is a prerequisite for direct interrupt handling in [KVM]

RE: [PATCH] ARM: ls1021a: add platform notifier for dma-coherent requirement

2015-09-07 Thread Huan Wang
Hi, Shawn, > On Fri, Aug 07, 2015 at 06:01:59PM +0800, Alison Wang wrote: > > This patch adds platform notifier for dma-coherent requirement. > > Structure arm_coherent_dma_ops is used instead of arm_dma_ops. > > > > Signed-off-by: Alison Wang > > --- > > arch/arm/mach-imx/mach-ls1021a.c | 30

Re: [PATCH 05/11] x86, pci, acpi: Move arch-agnostic MMCONFIG (aka ECAM) and ACPI code out of arch/x86/ directory

2015-09-07 Thread Tomasz Nowicki
On 31.08.2015 13:01, Tomasz Nowicki wrote: On 08.06.2015 17:14, Lorenzo Pieralisi wrote: On Mon, Jun 08, 2015 at 03:57:38AM +0100, Hanjun Guo wrote: [...] Why can't we make use of the ECAM implementation used by pci-host-generic and drivers/pci/access.c? We had that question when I had

Re: [PATCH v4 04/13] otg-fsm: move usb_bus_start_enum into otg-fsm->ops

2015-09-07 Thread Roger Quadros
On 07/09/15 04:24, Peter Chen wrote: > On Mon, Aug 24, 2015 at 04:21:15PM +0300, Roger Quadros wrote: >> This is to prevent missing symbol build error if OTG is >> enabled (built-in) and HCD core (CONFIG_USB) is module. >> >> Signed-off-by: Roger Quadros >> Acked-by: Peter Chen >> --- >>

Re: [PATCH v5 1/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/smaps

2015-09-07 Thread Pádraig Brady
On 07/09/15 07:46, Naoya Horiguchi wrote: > On Mon, Sep 07, 2015 at 02:23:44AM +, Horiguchi Naoya(堀口 直也) wrote: >> On Mon, Sep 07, 2015 at 02:29:53AM +0100, Pádraig Brady wrote: >>> On 20/08/15 09:26, Naoya Horiguchi wrote: Currently /proc/PID/smaps provides no usage info for

Re: [PATCH v4 13/13] usb: otg: Add dual-role device (DRD) support

2015-09-07 Thread Roger Quadros
On 07/09/15 10:53, Li Jun wrote: > On Mon, Aug 24, 2015 at 04:21:24PM +0300, Roger Quadros wrote: >> DRD mode is a reduced functionality OTG mode. In this mode >> we don't support SRP, HNP and dynamic role-swap. >> >> In DRD operation, the controller mode (Host or Peripheral) >> is decided based

[PATCH] sched: fix lose fair sleeper bonus in switch_to_fair()

2015-09-07 Thread Wanpeng Li
The sleeper task will be normalized when moved from fair_sched_class, in order that vruntime will be adjusted either the task is running or sleeping when moved back. The nomalization in switch_to_fair for sleep task will result in lose fair sleeper bonus in place_entity() once the vruntime -

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-07 Thread Roger Quadros
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 04/09/15 12:06, Roger Quadros wrote: > Felipe, > > On 03/09/15 18:44, Felipe Balbi wrote: >> Hi, > >> On Thu, Sep 03, 2015 at 03:21:48PM +0300, Roger Quadros wrote: > + dwc->fsm->id = id; > + dwc->fsm->b_sess_vld = vbus; > +

[GIT PULL] xfs: updates for 4.3

2015-09-07 Thread Dave Chinner
Hi Linus, Can you please pull the XFS updates from the tag below? There isn't a whole lot to this update - it's mostly bug fixes and they are spread pretty much all over XFS. There are some corruption fixes, some fixes for log recovery, some fixes that prevent unount from hanging, a lockdep

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-07 Thread Roger Quadros
Peter, On 06/09/15 05:02, Peter Chen wrote: > On Wed, Sep 02, 2015 at 05:24:16PM +0300, Roger Quadros wrote: >> Register with the USB OTG core. Since we don't support >> OTG yet we just work as a dual-role device even >> if device tree says "otg". >> >> + >> +static int dwc3_drd_init(struct dwc3

Re: RT Scheduler - BUG_ON (idx >= MAX_RT_PRIO)

2015-09-07 Thread Sujit K M
On Mon, Sep 7, 2015 at 11:00 AM, Chinmay V S wrote: > Hello everyone, > > TL;DR: In Linux RT scheduler, how can rt_nr_running be non-zero AND > active-bitmap NOT have any valid bit set? > > Details: > Recently i encountered the following BUG() within the realtime > scheduler (sched_rt.c) on

Re: RT Scheduler - BUG_ON (idx >= MAX_RT_PRIO)

2015-09-07 Thread Sujit K M
On Mon, Sep 7, 2015 at 12:28 PM, Chinmay V S wrote: > Thanks for your quick response Mike. > >> Try without the proprietary modules. You may also want to audit futex >> fixes if you can't use a maintained stable tree. 3.2 has a bunch that >> 3.1 does not. > > I see that futex.c has 17 patches in

Re: [PATCH 4/4] ARM: multi_v7_defconfig: Enable DW USB2 support and rockchip phy

2015-09-07 Thread Javier Martinez Canillas
Hello Sjoerd, On 09/06/2015 10:16 PM, Sjoerd Simons wrote: > The DesignWare HS OTG USB 2.0 is used in various SoC families among wich > the various rockchip SoCs, enable the driver and the PHY glue for > rockchip > > Signed-off-by: Sjoerd Simons > > --- > >

Re: [PATCH 2/4] ARM: multi_v7_defconfig: Enable ACT8865 PMIC driver

2015-09-07 Thread Heiko Stübner
Hi, I guess one could rename that to something like "ARM: multi_v7_defconfig: Enable regulators used on most rockchip boards" and as well add CONFIG_REGULATOR_FAN53555=y CONFIG_MFD_RK808=y CONFIG_REGULATOR_RK808=y fan5355 is the driver providing support for the syr82x used on all rk3288

Re: [PATCH 3/4] ARM: multi_v7_defconfig: Enable Rockchip display support

2015-09-07 Thread Javier Martinez Canillas
Hello Sjoerd, On 09/06/2015 10:16 PM, Sjoerd Simons wrote: > Enable options needed for HDMI out on rockchip: DRM driver, Rockchip > DesignWare HDMI glue and the rockchip IOMMU (dependency of the DRM > driver). > > Signed-off-by: Sjoerd Simons > --- > > arch/arm/configs/multi_v7_defconfig | 3

Re: futex atomic vs ordering constraints

2015-09-07 Thread Will Deacon
On Sat, Sep 05, 2015 at 06:53:02PM +0100, Peter Zijlstra wrote: > On Wed, Sep 02, 2015 at 02:18:53PM -0700, Linus Torvalds wrote: > > So I think we could possibly relax the requirements (and document this > > very clearly) to say that the futex operation must be totally ordered > > wrt any other

Re: [PATCH 2/4] ARM: multi_v7_defconfig: Enable ACT8865 PMIC driver

2015-09-07 Thread Javier Martinez Canillas
Hello Sjoerd, On 09/06/2015 10:16 PM, Sjoerd Simons wrote: > Active Semi act8846 is used as the PMIC on various Rockchip boards, > enable the ACT8865 driver to support this. > > Signed-off-by: Sjoerd Simons > --- > > arch/arm/configs/multi_v7_defconfig | 1 + > 1 file changed, 1 insertion(+) >

Re: [v2,3/6] powerpc: kill mfvtb()

2015-09-07 Thread Michael Ellerman
On Mon, 2015-24-08 at 11:20:25 UTC, Kevin Hao wrote: > This function is only used by get_vtb(). They are almost the same > except the reading from the real register. Move the mfspr() to > get_vtb() and kill the function mfvtb(). With this, we can eliminate > the use of cpu_has_feature() in very

Re: [PATCH 1/4] ARM: multi_v7_defconfig: Enable common Rockchip devices/busses

2015-09-07 Thread Javier Martinez Canillas
Hello Sjoerd, On 09/06/2015 10:16 PM, Sjoerd Simons wrote: > Enable Rockchip I2C, SPI, PWM, thermal drivers. > > Builtin are: > * I2C as it often controls the pmic. Having I2C as a module will cause more probe deferrals due missing regulators and slow down the boot but it should not cause

Fwd: Re: eata fails to load on post 4.2 kernels

2015-09-07 Thread Arthur Marsh
Forwarding without image attachment to get below message size limit of the mailing lists. I've uploaded the image to: http://www.users.on.net/~arthur.marsh/20150907539.jpg Forwarded Message Subject: Re: eata fails to load on post 4.2 kernels Date: Mon, 07 Sep 2015 15:56:02

Re: [PATCH] gpu: host1x: Fix MLOCK's debug info

2015-09-07 Thread Dmitry Osipenko
28.06.2015 22:27, Dmitry Osipenko пишет: MLOCK's debug info, spewed on CDMA timeout, contains meaningless MLOCK owner channel ID because HOST1X_SYNC_MLOCK_OWNER_CHID_F() returns shifted value, while unshifted should be used. Fix it by changing '_F' to '_V'. Signed-off-by: Dmitry Osipenko ---

Re: [PATCH v2] ARM: tegra: paz00: use con_id's to refer GPIO's in gpiod_lookup table

2015-09-07 Thread Dmitry Osipenko
30.06.2015 17:15, Dmitry Osipenko пишет: Commit 72daceb9a10a ("net: rfkill: gpio: Add default GPIO driver mappings for ACPI") removed possibility to request GPIO by table index for non-ACPI platforms without changing it users. As result "shutdown" GPIO request will fail if request for "reset"

Re: [PATCH v4 13/13] usb: otg: Add dual-role device (DRD) support

2015-09-07 Thread Li Jun
On Mon, Aug 24, 2015 at 04:21:24PM +0300, Roger Quadros wrote: > DRD mode is a reduced functionality OTG mode. In this mode > we don't support SRP, HNP and dynamic role-swap. > > In DRD operation, the controller mode (Host or Peripheral) > is decided based on the ID pin status. Once a cable plug

Re: [PATCH v4 2/4] PCI: pci-host-generic: Fix lookup of linux,pci-probe-only property

2015-09-07 Thread Will Deacon
On Fri, Sep 04, 2015 at 05:50:09PM +0100, Marc Zyngier wrote: > When pci-host-generic looks for the probe-only property, it seems > to trust the DT to be correctly written, and assumes that there > is a parameter to the property. > > Unfortunately, this is not always the case, and some firmware

Re: [RFC][PATCH RT 0/3] RT: Fix trylock deadlock without msleep() hack

2015-09-07 Thread Thomas Gleixner
On Sat, 5 Sep 2015, Steven Rostedt wrote: > On Sat, 5 Sep 2015 08:18:36 -0400 > Steven Rostedt wrote: > > > On Sat, 5 Sep 2015 12:30:59 +0200 (CEST) > > Thomas Gleixner wrote: > > > > > > So instead of doing that proposed magic boost, we can do something > > > more straight forward: > > > >

Re: [PATCH RFC tip/core/rcu 3/9] rcu_sync: Add CONFIG_PROVE_RCU checks

2015-09-07 Thread Daniel Wagner
On 08/29/2015 05:35 AM, Paul E. McKenney wrote: > +extern bool __rcu_sync_is_idle(struct rcu_sync *); > + > /** > * rcu_sync_is_idle() - Are readers permitted to use their fastpaths? > * @rsp: Pointer to rcu_sync structure to use for synchronization > @@ -50,7 +52,11 @@ struct rcu_sync { >

[PATCH V2] audit: try harder to send to auditd upon netlink failure

2015-09-07 Thread Richard Guy Briggs
There are several reports of the kernel losing contact with auditd when it is, in fact, still running. When this happens, kernel syslogs show: "audit: *NO* daemon at audit_pid=" although auditd is still running, and is apparently happy, listening on the netlink socket. The pid in the

Re: [PATCH v4 07/13] usb: otg: add OTG core

2015-09-07 Thread Li Jun
On Mon, Aug 24, 2015 at 04:21:18PM +0300, Roger Quadros wrote: > The OTG core instantiates the OTG Finite State Machine > per OTG controller and manages starting/stopping the > host and gadget controllers based on the bus state. > > It provides APIs for the following tasks > > - Registering an

RE: [PATCH] net: tipc: fix stall during bclink wakeup procedure

2015-09-07 Thread Kolmakov Dmitriy
If an attempt to wake up users of broadcast link is made when there is no enough place in send queue than it may hang up inside the tipc_sk_rcv() function since the loop breaks only after the wake up queue becomes empty. This can lead to complete CPU stall with the following message generated by

Re: [PATCH v4 14/16] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2015-09-07 Thread Thierry Reding
On Fri, Sep 04, 2015 at 11:20:03AM +0100, Russell King - ARM Linux wrote: > On Thu, Sep 03, 2015 at 11:04:40AM +0200, Thierry Reding wrote: > > Conversely, if the panel isn't capable of generating an HPD signal, then > > I don't think it would be appropriate to make it a DT property. It would > >

Re: [PATCH] Staging: most: MOST and MOSTCORE should depend on HAS_DMA

2015-09-07 Thread Christian Gromm
On Tue, 1 Sep 2015 22:05:58 +0200 Geert Uytterhoeven wrote: > If NO_DMA=y: > > ERROR: "dma_free_coherent" [drivers/staging/most/mostcore/mostcore.ko] > undefined! > ERROR: "dma_alloc_coherent" [drivers/staging/most/mostcore/mostcore.ko] > undefined! > > As all MOST sub drivers use

Re: [PATCH v4 3/4] powerpc: PCI: Fix lookup of linux,pci-probe-only property

2015-09-07 Thread Michael Ellerman
On Fri, 2015-09-04 at 17:50 +0100, Marc Zyngier wrote: > When find_and_init_phbs() looks for the probe-only property, it seems > to trust the firmware to be correctly written, and assumes that there > is a parameter to the property. > > It is conceivable that the firmware could not be that

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