[PATCH 7/8] arm: mach-pxa: Convert pr_warning to pr_warn

2014-09-13 Thread Joe Perches
Use the more common pr_warn. Other miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches --- arch/arm/mach-pxa/em-x270.c | 4 ++-- arch/arm/mach-pxa/gumstix.c | 3 +-- arch/arm/mach-pxa/mfp-pxa2xx.c | 12 +--- arch/arm/mach-pxa/poodle.c | 2 +-

[PATCH 5/8] arm: mach-omap2: Convert pr_warning to pr_warn

2014-09-13 Thread Joe Perches
Use the more common pr_warn. Other miscellanea: o Realign arguments Signed-off-by: Joe Perches --- arch/arm/mach-omap2/display.c| 2 +- arch/arm/mach-omap2/hdq1w.c | 4 ++-- arch/arm/mach-omap2/i2c.c| 2 +- arch/arm/mach-omap2/msdi.c |

[PATCH 8/8] arm: mach-u300: Convert pr_warning to pr_warn

2014-09-13 Thread Joe Perches
Use the more common pr_warn. Other miscellanea: o Coalesce formats o Realign arguments o typo fixes of Siple to Simple Signed-off-by: Joe Perches --- arch/arm/mach-u300/dummyspichip.c | 65 +-- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git

[PATCH 1/8] arm: Convert pr_warning to pr_warn

2014-09-13 Thread Joe Perches
Use the more common pr_warn. Other miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches --- arch/arm/include/asm/syscall.h | 8 arch/arm/kernel/atags_parse.c| 2 +- arch/arm/kernel/hw_breakpoint.c | 18 +- arch/arm/kernel/irq.c

[PATCH 0/8] arm: Convert pr_warning to pr_warn

2014-09-13 Thread Joe Perches
pr_warn is used about 3:1 over pr_warning and is mixed use in arch/arm. Standardize on pr_warn. Joe Perches (8): arm: Convert pr_warning to pr_warn arm: mach-davinci: Convert pr_warning to pr_warn arm: mach-ep93xx: Convert pr_warning to pr_warn arm: mach-imx: Convert pr_warning to

REPLY IMMEDIATELY.

2014-09-13 Thread Alif Tomar
Dear,   I know that this letter may come to you as a surprise, I got your contact address from the computerized search. My name is Mr Alif Tomar, I am the Bill and Exchange (assistant) Manager of Bank of Africa Ouagadougou, Burkina Faso. In my department I discovered an abandoned sum of 

Re: [PATCH RFC] x86_64: per-cpu memory for user-space

2014-09-13 Thread Dmitry Vyukov
On Sat, Sep 13, 2014 at 7:35 AM, Konstantin Khlebnikov wrote: > This patch implements user-space per-cpu memory in the same manner as in > kernel-space: each cpu has its own %gs base address. On x86_64 %fs is used > for thread local storage, %gs usually is free. > > User-space application cannot

Re: [PATCH] scsi: fix regression that accidentally disabled block-based tcq

2014-09-13 Thread Christoph Hellwig
On Sat, Sep 13, 2014 at 12:28:41PM +0200, Hans de Goede wrote: > Yes this one does the trick and fixes things. Note the git tree I used for > testing also had your previous fix to split up the blk_tcq union in 2 > separate struct members. Let me know if you want me to re-test without that > fix.

Re: [PATCH] mtd: nand: gpmi: add proper raw access support

2014-09-13 Thread Brian Norris
On Sat, Sep 13, 2014 at 11:36:24PM +0800, Huang Shijie wrote: > On Fri, Sep 12, 2014 at 02:30:50PM +0200, Boris BREZILLON wrote: > > This test validates what's returned by ecc_strength file in sysfs > > (which in turn is specified by the NAND controller when initializing > > the NAND chip). > > >

[PATCH] tpm: merge duplicate transmit_cmd() functions

2014-09-13 Thread Jarkko Sakkinen
Replaced transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c with a single tpm_transmit_cmd() that can be used in both files. This patch is preliminary clean up work for the TPM2 support. This function is needed for implementing TPM2 versions of the in-kernel TPM utility functions.

Re: [PATCH v2 2/2] DT: iio: vadc: document dt binding

2014-09-13 Thread Jonathan Cameron
On 13/09/14 00:35, Hartmut Knaack wrote: > Stanimir Varbanov schrieb, Am 11.09.2014 17:13: >> Document DT binding for Qualcomm SPMI PMIC voltage ADC >> driver. >> > Still one typo left. >> Signed-off-by: Stanimir Varbanov >> Signed-off-by: Ivan T. Ivanov >> --- >>

Re: [PATCH v2 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-09-13 Thread Jonathan Cameron
On 13/09/14 00:27, Hartmut Knaack wrote: > Stanimir Varbanov schrieb, Am 11.09.2014 17:13: >> The voltage ADC is peripheral of Qualcomm SPMI PMIC chips. It has >> 15bits resolution and register space inside PMIC accessible across >> SPMI bus. >> >> The vadc driver registers itself through IIO

Re: [PATCH] Documentation: support glibc versions without htole macros

2014-09-13 Thread Randy Dunlap
On 09/10/14 11:31, Peter Foley wrote: > glibc 2.9 introduced the htole<16/32/64> macros, add them to > tools/include to support older versions of glibc. > > Reported-by: Andrew Morton > Signed-off-by: Peter Foley Applied. Thanks. > --- > Documentation/arm/SH-Mobile/Makefile | 2 +- >

Re: [PATCH v2 3/3] staging: iio: light: isl29018: add ACPI support

2014-09-13 Thread Jonathan Cameron
On 01/09/14 10:20, Laurentiu Palcu wrote: > Add support for enumerating the device through ACPI. > > Signed-off-by: Laurentiu Palcu Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play. Thanks, Jonathan > --- > > Changes in v2: > * fix the

Re: [PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()

2014-09-13 Thread David Miller
From: Rusty Russell Date: Sat, 13 Sep 2014 15:10:03 +0930 > David Miller writes: >> Do you guys want me to take this series directly into net-next? > > Actually, yes. Since I'm going to be travelling, that makes it much > easier for me. And no other patches I have depend on it. Series

Re: [PATCH 6/8] arm64: Tell irq work about self IPI support

2014-09-13 Thread Frederic Weisbecker
On Thu, Sep 11, 2014 at 10:00:37AM +0100, Catalin Marinas wrote: > On Wed, Sep 10, 2014 at 10:33:26PM +0100, Frederic Weisbecker wrote: > > ARM64 irq work self-IPI support depends on __smp_cross_call to point to > > some relevant IRQ controller operations. This information should be > > available

Re: [PATCH] ASoC: rockchip-i2s: dt: swap tx and rx channed request number

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 09:04:41AM +0800, Jianqun wrote: > Reference to RK3288 TRM, fix an error channel id for i2s tx and rx > Table 10-1 DMAC_BUS Request Mapping Table > Req numberSource Polarity > 0 I2S tx High level > 1 I2S rx High level Applied, thanks. The

Re: [PATCH 3/5] ASoC: rockchip-i2s: add dma data to snd_soc_dai

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 08:41:38AM +0800, Jianqun wrote: > Add playback/capture dma data to snd_soc_dai. > Test on RK3288 with max98090. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH 1/5] ASoC: rockchip-i2s: fix rockchip i2s defination more reasonable

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 08:40:19AM +0800, Jianqun wrote: > Fix SND_ROCKCHIP_I2S to be more reasonable - SND_SOC_ROCKCHIP_I2S, > SND_SOC_ROCKCHIP_I2S should select by audio driver, instead of > SND_SOC_ROCKCHIP. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH 5/5] ASoC: rockchip-i2s: enable "hclk" for rockchip I2S controller

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 08:43:13AM +0800, Jianqun wrote: > +++ b/sound/soc/rockchip/rockchip_i2s.c > @@ -423,6 +423,11 @@ static int rockchip_i2s_probe(struct platform_device > *pdev) > dev_err(>dev, "Can't retrieve i2s bus clock\n"); > return PTR_ERR(i2s->hclk); >

Re: [PATCH 4/5] ASoC: rockchip-i2s: fix registers' property of rockchip i2s controller

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 08:42:12AM +0800, Jianqun wrote: > Reference rockchip I2S controller TRM, modify some registers' property > I2S_FIFOLR: read / write, but not volatile, not precious > I2S_INTSR: read / write > I2S_CLR: volatile, register value will be cleared by read Applied, again this is

Re: [PATCH v4 1/3] ARM: dts: Add Peach Pit dts entry for Atmel touchpad

2014-09-13 Thread Kukjin Kim
On 09/11/14 18:44, Javier Martinez Canillas wrote: Hello Dmitry, Hi, On 09/11/2014 12:25 AM, Dmitry Torokhov wrote: +_8 { + status = "okay"; + clock-frequency =<333000>; + + /* Atmel mXT336S */ + trackpad@4b { + compatible = "atmel,maxtouch"; +

Re: [PATCH 5/5] ASoC: rockchip-i2s: enable "hclk" for rockchip I2S controller

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 08:43:13AM +0800, Jianqun wrote: > As "hclk" is used for rockchip I2S controller, driver must to enable > it in probe. Applied, again this is a bug fix. How did the original submission get tested? signature.asc Description: Digital signature

Re: [PATCH 2/5] ASoC: rockchip-i2s: fix master mode set bit error

2014-09-13 Thread Mark Brown
On Sat, Sep 13, 2014 at 08:41:03AM +0800, Jianqun wrote: > Fix error format set to I2S master or slave mode. > Test on RK3288 board with max98090. Applied. Since this is a bug fix it should be one of the first patches in the series so that it can be sent to Linus as a fix, bug fixes should go

Re: [PATCH] fs: don't remove inotify watchers from alive inode-s

2014-09-13 Thread Heinrich Schuchardt
On Tue 09-09-14 02:27:12, Al Viro wrote: http://lkml.org/lkml/2014/9/8/762 > I agree that it changes user-visible ABI and I agree the behavior > isn't really specified in the manpage. Shouldn't we start with putting the expected behavior into the manpage before patching the code? I am missing a

Re: [PATCH] regmap:change struct regmap's internal locks as union

2014-09-13 Thread Mark Brown
On Thu, Sep 11, 2014 at 04:19:49PM +0800, Wang, Yalin wrote: > this patch change struct regmap->mutex and struct regmap->spinlock > as an union, because these 2 members are only used one of them, > we change it to shrink the struct size. Applied, thanks. signature.asc Description: Digital

Re: [PATCH 0/2] rockchip-max98090: add driver for rockchip board with max98090

2014-09-13 Thread Mark Brown
On Fri, Sep 12, 2014 at 03:26:46PM +0800, Jianqun wrote: > This patch to add driver for rockchip board using a max98090. > > Tested on RK3288 using a max98090. This appears to have two slightly different copies of the patches threaded to it... that's a bit confusing. signature.asc

Re: [PATCH 1/2] ASoC: rockchip-max98090: add documentation for rockchip-max98090 driver

2014-09-13 Thread Mark Brown
On Fri, Sep 12, 2014 at 03:30:36PM +0800, Jianqun wrote: > Add documentation for rockchip-max98090 driver, which is need by rockchip > board using a max98090. Can this use simple-card (perhaps after a bit of extension)? > +- rockchip,audio-codec : The phandle of the MAX98090 audio codec. Is the

Re: SPI and module auto-loading

2014-09-13 Thread Mark Brown
On Fri, Sep 12, 2014 at 11:50:23AM +0200, Javier Martinez Canillas wrote: > On 09/11/2014 09:33 PM, Mark Brown wrote: > > I'm not sure I see that as an interesting use case, it seems better to > > have drivers usable without DT and it's trivial to do so. > Yes, it's trivial but seems like an

Re: [PATCH] ASoC: rockchip-max98090: add driver for rockchip board using a max98090

2014-09-13 Thread Mark Brown
On Fri, Sep 12, 2014 at 03:39:48PM +0800, Jianqun wrote: > +#define RK_PLAT_CLK_12M 1200 I'm not sure a define is adding anything here... it's just a define saying 12MHz that has the value 12MHz. > + struct snd_soc_dai *codec_dai = rtd->codec_dai; > + > +/* Set max98090 as master,

Re: [PATCH 1/2] regulator: rk808: Remove unused variables

2014-09-13 Thread Mark Brown
On Thu, Sep 11, 2014 at 06:21:10PM +0800, Axel Lin wrote: > Also remove non-informative comment. Applied both, thanks. signature.asc Description: Digital signature

Re: linux-3.16.y: acpi-battery fixes

2014-09-13 Thread Greg Kroah-Hartman
On Sat, Sep 13, 2014 at 05:32:50PM +0200, Sedat Dilek wrote: > > With jumping to Linux v3.16.y I have 1st seen that my battery reports > 85% whereas the LED shows me it's full (green vs. charging orange). > So, I hoped the fix from Bjorn fixes the issue for me but did not help here. > Those

Re: [PATCH] mtd: nand: gpmi: add proper raw access support

2014-09-13 Thread Huang Shijie
On Fri, Sep 12, 2014 at 02:30:50PM +0200, Boris BREZILLON wrote: > On Fri, 12 Sep 2014 08:45:50 +0800 > > My bad, capabilities might not be the appropriate word in this context. > I meant ECC algorithm strength, and that's exactly the purpose of > nandbiterrs testsuite: insert bitflips in in-band

Re: linux-3.16.y: acpi-battery fixes

2014-09-13 Thread Sedat Dilek
On Sat, Sep 13, 2014 at 5:24 PM, Greg Kroah-Hartman wrote: > On Sat, Sep 13, 2014 at 02:52:52PM +0200, Sedat Dilek wrote: >> Hi Greg, >> >> I hoped the acpi-fixes from [1] (especially [2]) would fix my shown >> "85% battery available", but a Ubuntu/trusty kernel reports the same >> (battery

Re: linux-3.16.y: acpi-battery fixes

2014-09-13 Thread Greg Kroah-Hartman
On Sat, Sep 13, 2014 at 02:52:52PM +0200, Sedat Dilek wrote: > Hi Greg, > > I hoped the acpi-fixes from [1] (especially [2]) would fix my shown > "85% battery available", but a Ubuntu/trusty kernel reports the same > (battery defect?). > The 2nd revert is applicable, the 1st not, both are labeled

Re: [PATCH] blk-merge: fix blk_recount_segments

2014-09-13 Thread Ming Lei
Hi Rusty, On Fri, Sep 12, 2014 at 9:43 AM, Rusty Russell wrote: > Ming Lei writes: >> On Thu, Sep 11, 2014 at 7:38 AM, Rusty Russell wrote: >>> Rusty Russell writes: Rusty Russell writes: Here's what I have. It seems to work as expected, but I haven't benchmarked it. >>> >>>

[for-nex][PATCH 1/2] ftrace: Add sanity check when unregistering last ftrace_ops

2014-09-13 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When the last ftrace_ops is unregistered, all the function records should have a zeroed flags value. Make sure that is the case when the last ftrace_ops is unregistered. Signed-off-by: Steven Rostedt --- kernel/trace/ftrace.c | 15 +++ 1 file

[for-nex][PATCH 2/2] ftrace: Only disable ftrace_enabled to test buffer in selftest

2014-09-13 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The ftrace_enabled variable is set to zero in the self tests to keep delayed functions from being traced and messing with the checks. This only needs to be done when the checks are being performed, otherwise, if ftrace_enabled is off when calls back to the

[for-nex][PATCH 0/2] ftrace: Therapy updates

2014-09-13 Thread Steven Rostedt
What? Me working? Um, no! This is just, um, my physical therapy. Yeah, that's it. Part of my therapy is to stare at a monitor and randomly raise and lower my fingers on top of a keyboard. Alright, alright, you caught me :-p Please don't tell my wife (me cleaning things up for more work to

[PATCH RFC] x86_64: per-cpu memory for user-space

2014-09-13 Thread Konstantin Khlebnikov
This patch implements user-space per-cpu memory in the same manner as in kernel-space: each cpu has its own %gs base address. On x86_64 %fs is used for thread local storage, %gs usually is free. User-space application cannot prevent preemption but x86 read-modify-write operations are atomic

Re: [PATCH] f2fs: Fix recover when nid of non-inode dnode < nid of inode

2014-09-13 Thread Huang Ying
On Fri, 2014-09-12 at 15:34 +0800, Huang Ying wrote: > On Thu, 2014-09-11 at 22:13 -0700, Jaegeuk Kim wrote: > > On Thu, Sep 11, 2014 at 08:25:17PM +0800, Huang Ying wrote: > > > > > > On Wed, 2014-09-10 at 22:37 -0700, Jaegeuk Kim wrote: > > > > On Wed, Sep 10, 2014 at 07:08:32PM +0800, huang

Re: [PATCH v2 4/6] mm: introduce common page state for ballooned memory

2014-09-13 Thread Sasha Levin
On 09/13/2014 01:26 AM, Konstantin Khlebnikov wrote: >> Did we really need to put the BalloonPages count into per-zone vmstat, >> > global vmstat and /proc/meminfo? Seems a bit overkillish - why so >> > important? > Balloon grabs random pages, their distribution among numa nodes might > be

Re: [PATCH v3 0/10] block: per-distpatch_queue flush machinery

2014-09-13 Thread Ming Lei
On Sat, Sep 13, 2014 at 11:07 AM, Ming Lei wrote: > Hi, > > As recent discussion, especially suggested by Christoph, this patchset > implements per-distpatch_queue flush machinery, so that: > > - current init_request and exit_request callbacks can > cover flush request too, then

Re: [RFC][PATCH] signal: replace !likely with unlikely!

2014-09-13 Thread Guenter Roeck
On 09/13/2014 03:04 AM, Richard Weinberger wrote: Am 13.09.2014 04:48, schrieb Li RongQing: I did not test, how to test it? Compare the object files of both variants to find out whether both create semantically equivalent code and whether the un/likely have an effect. i.e. objdump -S -d

linux-3.16.y: acpi-battery fixes

2014-09-13 Thread Sedat Dilek
Hi Greg, I hoped the acpi-fixes from [1] (especially [2]) would fix my shown "85% battery available", but a Ubuntu/trusty kernel reports the same (battery defect?). The 2nd revert is applicable, the 1st not, both are labeled with 3.16+. Wanna pick them or have it already on your to-do? Thanks.

Re: [percpu] BUG: unable to handle kernel NULL pointer dereference at (null)

2014-09-13 Thread Fengguang Wu
On Thu, Sep 04, 2014 at 09:04:28AM -0700, Paul E. McKenney wrote: > On Thu, Sep 04, 2014 at 08:38:45PM +0800, Fengguang Wu wrote: > > On Tue, Sep 02, 2014 at 10:16:57AM -0700, Paul E. McKenney wrote: > > > On Tue, Sep 02, 2014 at 11:55:58AM -0500, Christoph Lameter wrote: > > > > On Tue, 2 Sep

Re: [rcu] BUG: unable to handle kernel NULL pointer dereference at 000000da

2014-09-13 Thread Fengguang Wu
On Fri, Sep 12, 2014 at 05:38:37PM -0700, Paul E. McKenney wrote: > On Sat, Sep 13, 2014 at 08:20:05AM +0800, Fengguang Wu wrote: > > On Fri, Sep 12, 2014 at 12:26:59PM -0700, Paul E. McKenney wrote: > > > On Fri, Sep 12, 2014 at 02:19:57PM -0500, Christoph Lameter wrote: > > > > On Fri, 12 Sep

FAMILY TREASURE FOR SALE

2014-09-13 Thread Richie Nana Kojo
Good Day, We are village miners, we have AU Gold of 550kgs Dust/ Bars and 20,000 carats of Rough Uncut Diamonds available ready and willing to sell to use the proceeds to upgrade our mines by acquiring machinery ETC for increase in production. If you are interested to do business with us,

Re: [PATCH] staging: wlan-ng: fix coding style issues

2014-09-13 Thread Dan Carpenter
On Sat, Sep 13, 2014 at 12:42:43PM +0200, Aede Symen wrote: > Limited a long line to 80 columns. > > Signed-off-by: Aede Symen Hoekstra Patch is corrupt. Read the first paragraph of Documentation/email-clients.txt. regards, dan carpenter -- To unsubscribe from this list: send the line

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-13 Thread Daniel Thompson
On 12/09/14 18:14, Russell King - ARM Linux wrote: > On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: >> This patch introduces a new default FIQ handler that is structured in a >> similar way to the existing ARM exception handler and result in the FIQ >> being handled by C code

Re: [PATCH 3.17-rc4 v5 2/6] arm: fiq: Replace default FIQ handler

2014-09-13 Thread Daniel Thompson
On 12/09/14 18:03, Russell King - ARM Linux wrote: > On Thu, Sep 11, 2014 at 12:31:14PM +0100, Daniel Thompson wrote: >> -.macro svc_entry, stack_hole=0 >> +.macro svc_entry, stack_hole=0, call_trace=1 >> UNWIND(.fnstart) >> UNWIND(.save {r0 - pc} ) >>

Re: [tpmdd-devel] [PATCH] tpm: use tpm_pcr_read_dev() in tpm_do_selftest()

2014-09-13 Thread Jarkko Sakkinen
On Fri, Sep 12, 2014 at 09:59:05AM -0600, Jason Gunthorpe wrote: > On Fri, Sep 12, 2014 at 04:06:41PM +0300, Jarkko Sakkinen wrote: > > It does not make sense to construct the PCR read command in > > tpm_do_selftest() when there is already a function that does > > the job. > > This would seem to

Re: [PATCH] Freeing dst when the reference count <0 causes general protection fault, it could be a major security flaw as rogue app can modify dst to crash kernel.

2014-09-13 Thread Eric Dumazet
On Sat, 2014-09-13 at 01:27 -0700, Shakil A Khan wrote: > Signed-off-by: Shakil A Khan > --- > net/core/dst.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/net/core/dst.c b/net/core/dst.c > index a028409..6a848b0 100644 > --- a/net/core/dst.c > +++

[PATCH/RFC] rtc: rtc-twl: Fixed nested IRQ handling in resume from suspend

2014-09-13 Thread Laurent Pinchart
The TWL RTC interrupt is a double-nested threaded interrupt, handled through the TWL SIH (Secondary Interrupt Handler) and PIH (Primary Interrupt Handler). When the system is woken up from suspend by a TWL RTC alarm interrupt, the TWL PIH and SIH are enabled first (due to the normal IRQ enabling

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Alexandre Belloni
Hi, On 13/09/2014 at 10:26:18 +0100, Ezequiel Garcia wrote : > > + nfc->clk = devm_clk_get(>dev, NULL); > > + if (!IS_ERR(nfc->clk)) { > > + ret = clk_prepare_enable(nfc->clk); > > + if (ret) > > + return ret; > > + } else { > >

[PATCH] staging: wlan-ng: fix coding style issues

2014-09-13 Thread Aede Symen
Limited a long line to 80 columns. Signed-off-by: Aede Symen Hoekstra --- drivers/staging/wlan-ng/prism2fw.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index 6c38f79..8bd7c65 100644 ---

[PATCH 0/2] perf tool: improve error handling in perf_flag_probe()

2014-09-13 Thread Yann Droneaud
Hi, Following the EBUSY errors reported by Jiri Olsa [1], I've tryed to improve a bit the way perf_flag_probe() handle errors. In case EBUSY is returned by perf_event_open(), testing the function again without PERF_FLAG_FD_CLOEXEC is meaningless: EBUSY is not related to close-on-exec flag, so

[PATCH 2/2] perf tools: report PERF_FLAG_FD_CLOEXEC probing error once

2014-09-13 Thread Yann Droneaud
In case of failure, unrelated to PERF_FLAG_FD_CLOEXEC, perf_flag_probe() reports the error twice. For example: $ perf record ls Error: perf_event_open(..., PERF_FLAG_FD_CLOEXEC) failed with unexpected error 16 (Device or resource busy) perf_event_open(..., 0) failed unexpectedly with

[PATCH 1/2] perf tools: shortcut PERF_FLAG_FD_CLOEXEC probing in case of EBUSY error

2014-09-13 Thread Yann Droneaud
This patch is a simplification of the logic introduced as part of commit 63914aca8f7e7a75d0ee027af7b1755c69cc1e2c ('perf tools: Show better error message in case we fail to open counters due to EBUSY error'): if EBUSY is reported by perf_event_open(), it will not be possible to probe

Re: [PATCH] scsi: fix regression that accidentally disabled block-based tcq

2014-09-13 Thread Hans de Goede
Hi, On 09/13/2014 01:00 AM, Christoph Hellwig wrote: > Please try the fix below, looks like the commit broke TCQ for all drivers > using block-level tagging. Yes this one does the trick and fixes things. Note the git tree I used for testing also had your previous fix to split up the blk_tcq

Re: [PATCH] Freeing dst when the reference count <0 causes general protection fault, it could be a major security flaw as rogue app can modify dst to crash kernel.

2014-09-13 Thread Hannes Frederic Sowa
On Sa, 2014-09-13 at 01:27 -0700, Shakil A Khan wrote: > Signed-off-by: Shakil A Khan > --- > net/core/dst.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/net/core/dst.c b/net/core/dst.c > index a028409..6a848b0 100644 > --- a/net/core/dst.c > +++ b/net/core/dst.c

Re: [RFC][PATCH] signal: replace !likely with unlikely!

2014-09-13 Thread Richard Weinberger
Am 13.09.2014 04:48, schrieb Li RongQing: > I did not test, how to test it? Compare the object files of both variants to find out whether both create semantically equivalent code and whether the un/likely have an effect. i.e. objdump -S -d kernel/signal.o I guess you can just remove the likely as

Re: [PATCH v8 00/10] Intel MPX support

2014-09-13 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: > OK, here's some revised text for patch 00/10. Again, this will > obviously be updated for the next post, but comments before that would > be much appreciated. That looks good. So much of this wants to end up in documentation as well. Thanks,

Re: [BUG] Bisected Problem with LSI PCI FC Adapter

2014-09-13 Thread Dirk Gouders
Bjorn Helgaas writes: > I want to fix this regression before v3.17. Dirk, can you test the > following patch on top of v3.17-rc2? I'm hoping you can try this on your > test machine in conjunction with your acpi_pci_root_add() and > pci_scan_device() patches. If I understand correctly, you

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Ezequiel Garcia
On 13 September 2014 00:23, Alexandre Belloni wrote: > From: Boris BREZILLON > > Retrieve the NFC clock to make sure it is enabled. Make that optional to > ensure > compatibility with previous device trees but document it as mandatory so newer > device trees will include it. > > Signed-off-by:

Re: [PATCH] net: bpf: correctly handle errors in sk_attach_filter()

2014-09-13 Thread Hannes Frederic Sowa
On Sa, 2014-09-13 at 00:06 -0400, Sasha Levin wrote: > Commit "net: bpf: make eBPF interpreter images read-only" has changed bpf_prog > to be vmalloc()ed but never handled some of the errors paths of the old code. > > On error within sk_attach_filter (which userspace can easily trigger), we'd >

Re: [PATCH v8 00/10] Intel MPX support

2014-09-13 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: > On 09/12/2014 12:21 PM, Thomas Gleixner wrote: > > Yes, the most important question is WHY must the kernel handle the > > bound table memory allocation in the first place. The "documentation" > > patch completely fails to tell that. > > This will become

Re: [PATCH] net: bpf: correctly handle errors in sk_attach_filter()

2014-09-13 Thread Daniel Borkmann
On 09/13/2014 06:06 AM, Sasha Levin wrote: Commit "net: bpf: make eBPF interpreter images read-only" has changed bpf_prog to be vmalloc()ed but never handled some of the errors paths of the old code. On error within sk_attach_filter (which userspace can easily trigger), we'd kfree() the

Re: [3.14] core onlining/hotplug regression

2014-09-13 Thread Daniel J Blueman
On 07/25/2014 05:05 PM, Thomas Gleixner wrote: On Fri, 25 Jul 2014, Daniel J Blueman wrote: On a larger x86 system with 1728 cores, 3.15(.6) asserts on smpboot_thread_fn's td->cpu != smp_processor_id() consistently after ~1500 cores are online. Reverting the only directly related changes I

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-13 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: > On 09/12/2014 10:34 AM, Thomas Gleixner wrote: > > On Fri, 12 Sep 2014, Dave Hansen wrote: > >> There are two mappings in play: > >> 1. The mapping with the actual data, which userspace is munmap()ing or > >>brk()ing away, etc... (never tagged VM_MPX)

Re: [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice

2014-09-13 Thread Dan Carpenter
On Sat, Sep 13, 2014 at 10:10:26AM +0800, Cheng-Wei Lee wrote: > This patch fixs the sparse warning in rtl819x_TSProc.c: > drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:58: warning: > Initializer entry defined twice > drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:61: also

[PATCH] Freeing dst when the reference count <0 causes general protection fault, it could be a major security flaw as rogue app can modify dst to crash kernel.

2014-09-13 Thread Shakil A Khan
Signed-off-by: Shakil A Khan --- net/core/dst.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/core/dst.c b/net/core/dst.c index a028409..6a848b0 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -284,7 +284,10 @@ void dst_release(struct dst_entry *dst)

Re: [PATCH v2 4/6] mm: introduce common page state for ballooned memory

2014-09-13 Thread Konstantin Khlebnikov
On Sat, Sep 13, 2014 at 9:42 AM, Andrew Morton wrote: > On Sat, 13 Sep 2014 09:26:49 +0400 Konstantin Khlebnikov > wrote: > >> > >> > Did we really need to put the BalloonPages count into per-zone vmstat, >> > global vmstat and /proc/meminfo? Seems a bit overkillish - why so >> > important? >>

Re: [PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()

2014-09-13 Thread Rusty Russell
David Miller writes: > Do you guys want me to take this series directly into net-next? Actually, yes. Since I'm going to be travelling, that makes it much easier for me. And no other patches I have depend on it. Thanks! Rusty. -- To unsubscribe from this list: send the line "unsubscribe

[patch -next] blk-mq: NULL dereference in __blk_mq_alloc_rq_maps()

2014-09-13 Thread Dan Carpenter
We shouldn't set "set->tags" to NULL here because if we return -ENOMEM here then we call the function a second time. On the second time through the loop then the statement: set->tags[i] = blk_mq_init_rq_map(set, i); will Oops. Also it is a memory leak and a layering violation. There

Re: [PATCH 03/13] perf annotate: Move session handling out of __cmd_annotate()

2014-09-13 Thread taeung
Hi, I modified error code for the requirement as below. Author: taeung Date: Sat Sep 13 16:22:53 2014 +0900 modified error code when perf_session__new() fail Because perf_session__new() could fail for more reasons than just ENOMEM, I modified error code(ENOMEM

RE: [PATCH v8 04/10] x86, mpx: hook #BR exception handler to allocate bound tables

2014-09-13 Thread Ren, Qiaowei
On 2014-09-13, Hansen, Dave wrote: > On 09/11/2014 01:46 AM, Qiaowei Ren wrote: >> +static int allocate_bt(long __user *bd_entry) { >> +unsigned long bt_addr, old_val = 0; >> +int ret = 0; >> + >> +bt_addr = mpx_mmap(MPX_BT_SIZE_BYTES); >> +if (IS_ERR((void *)bt_addr)) >> +

RE: [PATCH v8 06/10] mips: sync struct siginfo with general version

2014-09-13 Thread Ren, Qiaowei
On 2014-09-12, Thomas Gleixner wrote: > On Fri, 12 Sep 2014, Ren, Qiaowei wrote: >> On 2014-09-12, Thomas Gleixner wrote: >>> On Thu, 11 Sep 2014, Qiaowei Ren wrote: >>> Due to new fields about bound violation added into struct siginfo, this patch syncs it with general version to

Re: [Patch v9 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-13 Thread Kishon Vijay Abraham I
Hi, On Saturday 13 September 2014 12:58 AM, Andy Gross wrote: > This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some > Qualcomm platforms. This driver uses the generic PHY framework and will > interact with the DWC3 controller. Do you have dt documentation for this

Re: [PATCH] [REGRESSION] i2c-acpi: Fix NULL Pointer dereference

2014-09-13 Thread Mika Westerberg
On Fri, Sep 12, 2014 at 09:09:47PM +0200, Peter Huewe wrote: > If adapter->dev.parent == NULL there is a NULL pointer dereference in > acpi_i2c_install_space_handler and acpi_i2c_remove_space_handler. > > This is present since introduction of this code: > 366047515c6e "i2c: rework kernel config

RE: [PATCH v4 7/9] usb: rename transceiver and phy to usb_phy in ChipIdea

2014-09-13 Thread Peter Chen
> On Thu, Sep 11, 2014 at 08:28:59AM +0800, Peter Chen wrote: > > On Wed, Sep 03, 2014 at 09:40:38AM +0200, Antoine Tenart wrote: > > > > Again, rebase my next-tree, and modify the msm part. > > git://github.com/hzpeterchen/linux-usb.git ci-for-usb-next ? > Yes. > I can do that. But that

RE: [PATCH v4 7/9] usb: rename transceiver and phy to usb_phy in ChipIdea

2014-09-13 Thread Peter Chen
On Thu, Sep 11, 2014 at 08:28:59AM +0800, Peter Chen wrote: On Wed, Sep 03, 2014 at 09:40:38AM +0200, Antoine Tenart wrote: Again, rebase my next-tree, and modify the msm part. git://github.com/hzpeterchen/linux-usb.git ci-for-usb-next ? Yes. I can do that. But that would be

Re: [PATCH] [REGRESSION] i2c-acpi: Fix NULL Pointer dereference

2014-09-13 Thread Mika Westerberg
On Fri, Sep 12, 2014 at 09:09:47PM +0200, Peter Huewe wrote: If adapter-dev.parent == NULL there is a NULL pointer dereference in acpi_i2c_install_space_handler and acpi_i2c_remove_space_handler. This is present since introduction of this code: 366047515c6e i2c: rework kernel config I2C_ACPI

Re: [Patch v9 3/3] phy: Add Qualcomm DWC3 HS/SS PHY driver

2014-09-13 Thread Kishon Vijay Abraham I
Hi, On Saturday 13 September 2014 12:58 AM, Andy Gross wrote: This patch adds a new driver for the Qualcomm USB 3.0 PHY that exists on some Qualcomm platforms. This driver uses the generic PHY framework and will interact with the DWC3 controller. Do you have dt documentation for this driver?

RE: [PATCH v8 06/10] mips: sync struct siginfo with general version

2014-09-13 Thread Ren, Qiaowei
On 2014-09-12, Thomas Gleixner wrote: On Fri, 12 Sep 2014, Ren, Qiaowei wrote: On 2014-09-12, Thomas Gleixner wrote: On Thu, 11 Sep 2014, Qiaowei Ren wrote: Due to new fields about bound violation added into struct siginfo, this patch syncs it with general version to avoid build issue.

RE: [PATCH v8 04/10] x86, mpx: hook #BR exception handler to allocate bound tables

2014-09-13 Thread Ren, Qiaowei
On 2014-09-13, Hansen, Dave wrote: On 09/11/2014 01:46 AM, Qiaowei Ren wrote: +static int allocate_bt(long __user *bd_entry) { +unsigned long bt_addr, old_val = 0; +int ret = 0; + +bt_addr = mpx_mmap(MPX_BT_SIZE_BYTES); +if (IS_ERR((void *)bt_addr)) +return

Re: [PATCH 03/13] perf annotate: Move session handling out of __cmd_annotate()

2014-09-13 Thread taeung
Hi, I modified error code for the requirement as below. Author: taeung treeze.tae...@gmail.com Date: Sat Sep 13 16:22:53 2014 +0900 modified error code when perf_session__new() fail Because perf_session__new() could fail for more reasons than just ENOMEM, I

[patch -next] blk-mq: NULL dereference in __blk_mq_alloc_rq_maps()

2014-09-13 Thread Dan Carpenter
We shouldn't set set-tags to NULL here because if we return -ENOMEM here then we call the function a second time. On the second time through the loop then the statement: set-tags[i] = blk_mq_init_rq_map(set, i); will Oops. Also it is a memory leak and a layering violation. There is a

Re: [PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()

2014-09-13 Thread Rusty Russell
David Miller da...@davemloft.net writes: Do you guys want me to take this series directly into net-next? Actually, yes. Since I'm going to be travelling, that makes it much easier for me. And no other patches I have depend on it. Thanks! Rusty. -- To unsubscribe from this list: send the line

Re: [PATCH v2 4/6] mm: introduce common page state for ballooned memory

2014-09-13 Thread Konstantin Khlebnikov
On Sat, Sep 13, 2014 at 9:42 AM, Andrew Morton a...@linux-foundation.org wrote: On Sat, 13 Sep 2014 09:26:49 +0400 Konstantin Khlebnikov koc...@gmail.com wrote: Did we really need to put the BalloonPages count into per-zone vmstat, global vmstat and /proc/meminfo? Seems a bit

[PATCH] Freeing dst when the reference count 0 causes general protection fault, it could be a major security flaw as rogue app can modify dst to crash kernel.

2014-09-13 Thread Shakil A Khan
Signed-off-by: Shakil A Khan shakilk1...@gmail.com --- net/core/dst.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/core/dst.c b/net/core/dst.c index a028409..6a848b0 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -284,7 +284,10 @@ void dst_release(struct

Re: [PATCH] staging: rtl819x_TSProc.c: Initializer entry defined twice

2014-09-13 Thread Dan Carpenter
On Sat, Sep 13, 2014 at 10:10:26AM +0800, Cheng-Wei Lee wrote: This patch fixs the sparse warning in rtl819x_TSProc.c: drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:58: warning: Initializer entry defined twice drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:244:61: also defined

Re: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER

2014-09-13 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: On 09/12/2014 10:34 AM, Thomas Gleixner wrote: On Fri, 12 Sep 2014, Dave Hansen wrote: There are two mappings in play: 1. The mapping with the actual data, which userspace is munmap()ing or brk()ing away, etc... (never tagged VM_MPX) It's

Re: [3.14] core onlining/hotplug regression

2014-09-13 Thread Daniel J Blueman
On 07/25/2014 05:05 PM, Thomas Gleixner wrote: On Fri, 25 Jul 2014, Daniel J Blueman wrote: On a larger x86 system with 1728 cores, 3.15(.6) asserts on smpboot_thread_fn's td-cpu != smp_processor_id() consistently after ~1500 cores are online. Reverting the only directly related changes I

Re: [PATCH] net: bpf: correctly handle errors in sk_attach_filter()

2014-09-13 Thread Daniel Borkmann
On 09/13/2014 06:06 AM, Sasha Levin wrote: Commit net: bpf: make eBPF interpreter images read-only has changed bpf_prog to be vmalloc()ed but never handled some of the errors paths of the old code. On error within sk_attach_filter (which userspace can easily trigger), we'd kfree() the

Re: [PATCH v8 00/10] Intel MPX support

2014-09-13 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: On 09/12/2014 12:21 PM, Thomas Gleixner wrote: Yes, the most important question is WHY must the kernel handle the bound table memory allocation in the first place. The documentation patch completely fails to tell that. This will become the

Re: [PATCH] net: bpf: correctly handle errors in sk_attach_filter()

2014-09-13 Thread Hannes Frederic Sowa
On Sa, 2014-09-13 at 00:06 -0400, Sasha Levin wrote: Commit net: bpf: make eBPF interpreter images read-only has changed bpf_prog to be vmalloc()ed but never handled some of the errors paths of the old code. On error within sk_attach_filter (which userspace can easily trigger), we'd kfree()

Re: [PATCHv5] mtd: nand: atmel_nand: retrieve NFC clock

2014-09-13 Thread Ezequiel Garcia
On 13 September 2014 00:23, Alexandre Belloni alexandre.bell...@free-electrons.com wrote: From: Boris BREZILLON boris.brezil...@free-electrons.com Retrieve the NFC clock to make sure it is enabled. Make that optional to ensure compatibility with previous device trees but document it as

Re: [BUG] Bisected Problem with LSI PCI FC Adapter

2014-09-13 Thread Dirk Gouders
Bjorn Helgaas bhelg...@google.com writes: I want to fix this regression before v3.17. Dirk, can you test the following patch on top of v3.17-rc2? I'm hoping you can try this on your test machine in conjunction with your acpi_pci_root_add() and pci_scan_device() patches. If I understand

Re: [PATCH v8 00/10] Intel MPX support

2014-09-13 Thread Thomas Gleixner
On Fri, 12 Sep 2014, Dave Hansen wrote: OK, here's some revised text for patch 00/10. Again, this will obviously be updated for the next post, but comments before that would be much appreciated. That looks good. So much of this wants to end up in documentation as well. Thanks, tglx

<    1   2   3   4   >