[PATCHv2 1/4] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-04 Thread Xiubo Li
Since the Flextimer device will be implemented in BE mode on LS1 SoC, and in LE mode on Vybrid, LS2 SoCs, so here we need the endianness judgment before doing the mmio. Signed-off-by: Xiubo Li --- drivers/clocksource/fsl_ftm_timer.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

[PATCHv2 0/4] Clocksource: Flextimer: add LS1 support

2014-09-04 Thread Xiubo Li
Change in v2: - Follows Thomas Gleixner advice. Xiubo Li (4): Clocksource: Flextimer: Use internal clocksource read API. Clocksource: Flextimer: Remove the useless code. Clocksource: Flextimer: Set cpumask to cpu_possible_mask Clocksource: Flextimer: Fix counter clock prescaler

[PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection

2014-09-04 Thread jianqun
From: xujianqun For RK3288, core clock pll source select APLL when bit value is 1, select GPLL when bit value is 0; CRU_CLKSEL0_CON [15] - core_clk_pll_sel - CORE clock pll source selection -- 1'b1: select ARM PLL -- 1'b0: select GENERAL PLL BUG=none TEST= "cat

Re: [PATCH -v4] x86: only load initrd above 4g on second try

2014-09-04 Thread Anders Darander
* Yinghai Lu [140905 03:19]: > On Thu, Sep 4, 2014 at 2:29 PM, Matt Fleming wrote: > > On Thu, 04 Sep, at 01:59:05PM, H. Peter Anvin wrote: > >> I am fine with this patch, but at the same time I do want to note that > >> there is an alternative to double-buffer the patch and/or (if that > >>

Re: [PATCH] blk-merge: fix blk_recount_segments

2014-09-04 Thread Rusty Russell
Ming Lei writes: > On Tue, 02 Sep 2014 10:24:24 -0600 > Jens Axboe wrote: > >> On 09/02/2014 10:21 AM, Christoph Hellwig wrote: >> > Btw, one thing we should reconsider is where we set >> > QUEUE_FLAG_NO_SG_MERGE. At least for virtio-blk it seems to me that >> > doing the S/G merge should be a

Re: [PATCH 1/1] Drivers: scsi: storvsc: Get rid of warning messages

2014-09-04 Thread Christoph Hellwig
Looks good to me. Olaf, Hannes - can I get another review for this (and the older hyperv scanning patch set)? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v3 6/6] mm/hugetlb: remove unused argument of follow_huge_addr()

2014-09-04 Thread Naoya Horiguchi
On Wed, Sep 03, 2014 at 02:26:37PM -0700, Hugh Dickins wrote: > On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > > > follow_huge_addr()'s parameter write is not used, so let's remove it. > > > > Signed-off-by: Naoya Horiguchi > > I think this patch is a waste of time: that it should be replaced >

Re: [PATCH v3 4/6] mm/hugetlb: add migration entry check in hugetlb_change_protection

2014-09-04 Thread Naoya Horiguchi
On Wed, Sep 03, 2014 at 06:06:34PM -0700, Hugh Dickins wrote: > On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > > > There is a race condition between hugepage migration and > > change_protection(), > > where hugetlb_change_protection() doesn't care about migration entries and > > wrongly

Re: [PATCH v3 3/6] mm/hugetlb: fix getting refcount 0 page in hugetlb_fault()

2014-09-04 Thread Naoya Horiguchi
On Wed, Sep 03, 2014 at 05:20:59PM -0700, Hugh Dickins wrote: > On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > > > When running the test which causes the race as shown in the previous patch, > > we can hit the BUG "get_page() on refcount 0 page" in hugetlb_fault(). > > > > This race happens when

deb-pkg: Add support for powerpc little endian

2014-09-04 Thread Michael Neuling
The Debian powerpc little endian architecture is called ppc64le. This is the default architecture used by Ubuntu for powerpc. The below checks the kernel config to see if we are compiling little endian and sets the Debian arch appropriately. Signed-off-by: Michael Neuling diff --git

Re: [PATCH v3 5/6] mm/hugetlb: add migration entry check in __unmap_hugepage_range

2014-09-04 Thread Naoya Horiguchi
On Wed, Sep 03, 2014 at 06:47:38PM -0700, Hugh Dickins wrote: > On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > > > If __unmap_hugepage_range() tries to unmap the address range over which > > hugepage migration is on the way, we get the wrong page because pte_page() > > doesn't work for migration

Re: [PATCH v3 2/6] mm/hugetlb: take page table lock in follow_huge_(addr|pmd|pud)()

2014-09-04 Thread Naoya Horiguchi
Hi Hugh, Thank you very much for you close looking and valuable comments. And I can't help feeling shame on many mistakes/misunderstandings and lack of thoughts throughout the patchset. I promise that all these will be fixed in the next version. On Wed, Sep 03, 2014 at 02:17:41PM -0700, Hugh

Re: [PATCH] scsi_debug: deadlock between completions and surprise module removal

2014-09-04 Thread Christoph Hellwig
Can I get another review for this one? On Sun, Aug 31, 2014 at 07:09:59PM -0400, Douglas Gilbert wrote: > A deadlock has been reported when the completion > of SCSI commands (simulated by a timer) was surprised > by a module removal. This patch removes one half of > the offending locks around

[PATCH v10 net-next 1/2] net: filter: add "load 64-bit immediate" eBPF instruction

2014-09-04 Thread Alexei Starovoitov
add BPF_LD_IMM64 instruction to load 64-bit immediate value into a register. All previous instructions were 8-byte. This is first 16-byte instruction. Two consecutive 'struct bpf_insn' blocks are interpreted as single instruction: insn[0].code = BPF_LD | BPF_DW | BPF_IMM insn[0].dst_reg =

[PATCH v10 net-next 2/2] net: filter: split filter.h and expose eBPF to user space

2014-09-04 Thread Alexei Starovoitov
allow user space to generate eBPF programs uapi/linux/bpf.h: eBPF instruction set definition linux/filter.h: the rest This patch only moves macro definitions, but practically it freezes existing eBPF instruction set, though new instructions can still be added in the future. These eBPF

[PATCH v10 net-next 0/2] load imm64 insn and uapi/linux/bpf.h

2014-09-04 Thread Alexei Starovoitov
Hi, V9->V10 - no changes, added Daniel's ack Note they're on top of Hannes's patch in the same area [1] V8 thread with 'why' reasoning and end goal [2] Original set [3] of ~28 patches I'm planning to present in 4 stages: I. this 2 patches to fork off llvm upstreaming II. bpf syscall with

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-04 Thread Junxiao Bi
On 09/05/2014 10:32 AM, Junxiao Bi wrote: > On 09/04/2014 05:23 PM, Dave Chinner wrote: >> On Wed, Sep 03, 2014 at 01:54:54PM +0800, Junxiao Bi wrote: >>> commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O >>> during memory allocation") >>> introduces PF_MEMALLOC_NOIO flag

Re: [PATCH v7] pcie: Add Xilinx PCIe Host Bridge IP driver

2014-09-04 Thread Srikanth Thokala
On Wed, Sep 3, 2014 at 11:35 PM, Bjorn Helgaas wrote: > On Wed, Aug 20, 2014 at 09:56:02PM +0530, Srikanth Thokala wrote: >> This is the driver for Xilinx AXI PCIe Host Bridge Soft IP >> >> Signed-off-by: Srikanth Thokala >> Acked-by: Arnd Bergmann > > Applied to pci/host-xilinx for v3.18,

[PATCH v2] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Namhyung Kim
There's a problem on finding correct kernel symbols when perf report runs on a different kernel. Although a part of the problem was solved by the prior commit 0a7e6d1b6844 ("perf tools: Check recorded kernel version when finding vmlinux"), there's a remaining problem still. When perf records

Re: [PATCH] pinctrl: st: Add remove function and remove gpio_chip on failure

2014-09-04 Thread Pramod Gurav
Hi Srini, Thanks for review. On 04-09-2014 11:38 PM, Srinivas Kandagatla wrote: > Pramod, > sorry for delay in reply as I was travelling, still in Jet lag. >> Signed-off-by: Pramod Gurav >> --- >> drivers/pinctrl/pinctrl-st.c | 25 + >> 1 files changed, 25

[RFC PATCH 4/5] ARM: dts: Add PPMU dt node for Exynos4 SoC

2014-09-04 Thread Chanwoo Choi
This patch add PPMU (Performance Profiling Monitoring Unit) dt node for Exynos4 (Exynos4210/4212/4412) SoC. PPMU dt node is used to monitor the utilization of each IP. The Exynos4210/Exynos4212/Exynos4412 SoC includes following PPMUs: - PPMU_DMC0 0x106A_ - PPMU_DMC1 0x106B_ -

Re: [PATCH] i2c: rk3x: fix divisor calculation for SCL frequency

2014-09-04 Thread Doug Anderson
Addy, On Thu, Sep 4, 2014 at 7:32 PM, Addy Ke wrote: > I2C_CLKDIV register descripted in the previous version of > RK3x chip manual is incorrect. Plus 1 is required. > > The correct formula: > - T(SCL_HIGH) = T(PCLK) * (CLKDIVH + 1) * 8 > - T(SCL_LOW) = T(PCLK) * (CLKDIVL + 1) * 8 > - (SCL

[RFC PATCH 0/5] devfreq: Add devfreq-event class to provide raw data for devfreq device

2014-09-04 Thread Chanwoo Choi
This patchset add new devfreq_event class to provide raw data to determine current utilization of device which is used for devfreq governor. But, This patchset is just initial version and must need more implementaion and updates. Although this patchset has not enough feature to support

[RFC PATCH 2/5] devfreq: event: Add exynos-ppmu devfreq evnet driver

2014-09-04 Thread Chanwoo Choi
This patch add exynos-ppmu devfreq event driver to provider raw data about the utilization of each IP in Exynos SoC series. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- drivers/devfreq/Kconfig | 10 + drivers/devfreq/event/Makefile | 1 +

[RFC PATCH 3/5] ARM: dts: Add PPMU dt node for Exynos3250

2014-09-04 Thread Chanwoo Choi
This patch add PPMU (Performance Profiling Monitoring Units) dt node to estimate the utilization of each IP in Exynos SoC throught DEVFREQ Event subsystem. This patch adds following PPMU dt nodes: - PPMU_DMC0 0x106a - PPMU_DMC1 0x106b - PPMU_RIGHTBUS 0x112A - PPMU_LEFTBUS

[RFC PATCH 1/5] devfreq: Add new devfreq_event class to provide basic data for devfreq governor

2014-09-04 Thread Chanwoo Choi
This patch add new devfreq_event class for devfreq_event device which provide raw data (e.g., memory bus utilization/GPU utilization). This raw data from devfreq_event data would be used for the governor of devfreq subsystem. - devfreq_event device : Provide raw data for governor of existing

[RFC PATCH 5/5] ARM: dts: Add dt node fo PPMU_CPU/DMC0/DMC1 for exynos4412-trats2

2014-09-04 Thread Chanwoo Choi
This patch add dt node for PPMU_CPU/DMC0/DMC1 for exynos4412-trats2 board. Each PPMU dt node includes one event of 'PPMU Count 3' Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- arch/arm/boot/dts/exynos4412-trats2.dts | 29 + 1 file changed, 29 insertions(+)

[PATCH v2.2 1/7] regulator: sky81452: Adding Skyworks SKY81452 MFD driver

2014-09-04 Thread Gyungoh Yoo
This patch adds SKY81452 MFD driver. SKY81452 has 2 functions : backlight LED driver and boost converter. The MFD driver registers I2C regmap and registers the child drivers. Signed-off-by: Gyungoh Yoo --- drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 +

[PATCH] perf tool: fix compilation for ARM

2014-09-04 Thread Stephane Eranian
This patch fixes ARM compile of the perf tool. The debug.h header file was missing from a couple of unwind related modules. Signed-off-by: Stephane Eranian -- diff --git a/tools/perf/arch/arm/tests/dwarf-unwind.c b/tools/perf/arch/arm/tests/dwarf-unwind.c index 9f870d2..62eff84 100644 ---

[PATCH 1/1] staging/lustre: Fixed checkpatch warning: Use #include instead of

2014-09-04 Thread Filipe Gonçalves
Signed-off-by: Filipe Gonçalves --- drivers/staging/lustre/lustre/lmv/lproc_lmv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/lmv/lproc_lmv.c b/drivers/staging/lustre/lustre/lmv/lproc_lmv.c index 310df44..a7814f1 100644 ---

Re: [PATCH] kernel: add support for gcc 5

2014-09-04 Thread Hannes Frederic Sowa
On Do, 2014-09-04 at 23:37 -0400, Sasha Levin wrote: > On 09/04/2014 07:47 PM, Joe Perches wrote: > > On Fri, 2014-09-05 at 00:43 +0200, Hannes Frederic Sowa wrote: > >> > Most statements are already depending on GCC_VERSION, maybe we can just > >> > unify all gcc specific headers to one, still

Re: bit fields && data tearing

2014-09-04 Thread Paul E. McKenney
On Thu, Sep 04, 2014 at 10:47:24PM -0400, Peter Hurley wrote: > Hi James, > > On 09/04/2014 10:11 PM, James Bottomley wrote: > > On Thu, 2014-09-04 at 17:17 -0700, Paul E. McKenney wrote: > >> +And there are anti-guarantees: > >> + > >> + (*) These guarantees do not apply to bitfields, because

Re: [PATCH] kernel: add support for gcc 5

2014-09-04 Thread Joe Perches
On Thu, 2014-09-04 at 23:37 -0400, Sasha Levin wrote: > On 09/04/2014 07:47 PM, Joe Perches wrote: > > On Fri, 2014-09-05 at 00:43 +0200, Hannes Frederic Sowa wrote: > >> > Most statements are already depending on GCC_VERSION, maybe we can just > >> > unify all gcc specific headers to one, still

Re: [PATCHv4 0/3] new APIs to allocate buffer-cache with user specific flag

2014-09-04 Thread Theodore Ts'o
Joonson, Thanks for the update. I've applied Gioh's patches to the ext4 tree, but I'd appreciate a further clarification. My understanding with the problem you were trying to address is that with the current CMA implementation, kswapd was getting activiated too early, yes? But it would still

Re: + mm-slab_common-move-kmem_cache-definition-to-internal-header-fix-2.patch added to -mm tree

2014-09-04 Thread Randy Dunlap
On 09/04/14 17:44, Joonsoo Kim wrote: > On Wed, Sep 03, 2014 at 12:40:52PM -0700, a...@linux-foundation.org wrote: >> >> The patch titled >> Subject: mm: fix kmemcheck.c build errors >> has been added to the -mm tree. Its filename is >>

[PATCH] openvswitch: Remove redundant comment in file net/openvswitch/vport.h

2014-09-04 Thread Lawrance Jing
From: lawrancejing In file net/openvswitch/vport.h, line#35 and line#37 are the same, the patch will remove one to make code more clean. Signed-off-by: lawrancejing --- --- net/openvswitch/vport.h.orig 2014-08-22 02:45:36.474929300 +0800 +++ net/openvswitch/vport.h 2014-08-22

Re: [PATCH] kernel: add support for gcc 5

2014-09-04 Thread Sasha Levin
On 09/04/2014 07:47 PM, Joe Perches wrote: > On Fri, 2014-09-05 at 00:43 +0200, Hannes Frederic Sowa wrote: >> > Most statements are already depending on GCC_VERSION, maybe we can just >> > unify all gcc specific headers to one, still trying to keep the file >> > organized? ;) > Maybe something

Re: [PULL] seccomp update (3.18)

2014-09-04 Thread James Morris
On Wed, 3 Sep 2014, Kees Cook wrote: > Hi, > > Please pull these seccomp changes for 3.18. > > Thanks! > > -Kees > > The following changes since commit c3ce6dfa48e3879206382cdfdc015bffc50dce30: > > KEYS: Set pr_fmt() in asymmetric key signature handling (2014-09-03 > 11:08:45 +1000) > >

Re: [PATCH 1/1] add selftest for virtio-net v1.0

2014-09-04 Thread Jason Wang
On 09/05/2014 09:51 AM, Hengjinxiao wrote: > Selftest is an important part of network driver, this patch adds > selftest for > virtio-net, including loopback test, negotiate test and reset test. Loopback > test checks whether virtio-net can send and receive packets normally. > Negotiate

Re: [PATCH v4 2/6] perf/x86: add support for sampling PEBS machine state registers

2014-09-04 Thread Stephane Eranian
On Fri, Sep 5, 2014 at 4:16 AM, Chuck Ebbert wrote: > On Wed, 3 Sep 2014 16:59:07 +0200 > Stephane Eranian wrote: > >> PEBS can capture machine state regs at retiremnt of the sampled >> instructions. When precise sampling is enabled on an event, PEBS >> is used, so substitute the interrupted

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Stephane Eranian
On Fri, Sep 5, 2014 at 2:23 AM, Namhyung Kim wrote: > Hi Stephane, > > On Thu, 4 Sep 2014 16:37:51 +0200, Stephane Eranian wrote: >> On Tue, Aug 26, 2014 at 8:38 AM, Namhyung Kim wrote: >>> >>> There's a problem on finding correct kernel symbols when perf report >>> runs on a different kernel.

Re: [PATCH v2 2/4] Input: misc: Add haptic driver on max77693

2014-09-04 Thread Jaewon Kim
Hi Dmitry Torokhov thanks to review my patchs. 2014년 09월 05일 01:59에 Dmitry Torokhov 이(가) 쓴 글: Hi Jaewon, On Fri, Sep 05, 2014 at 12:01:29AM +0900, Jaewon Kim wrote: This patch add max77693-haptic device driver to support the haptic controller on MAX77693. The MAX77693 is a Multifunction

Re: bit fields && data tearing

2014-09-04 Thread Peter Hurley
Hi James, On 09/04/2014 10:11 PM, James Bottomley wrote: > On Thu, 2014-09-04 at 17:17 -0700, Paul E. McKenney wrote: >> +And there are anti-guarantees: >> + >> + (*) These guarantees do not apply to bitfields, because compilers often >> + generate code to modify these using non-atomic

Re: [PATCHv4 2/3] ext4: use non-movable memory for the ext4 superblock

2014-09-04 Thread Theodore Ts'o
On Thu, Sep 04, 2014 at 04:29:40PM +0900, Gioh Kim wrote: > A buffer-cache for superblock is disturbing page migration, > because the buffer-cache is not released until unmount. > The buffer-cache must be allocated from non-movable area. > > Signed-off-by: Gioh Kim > Reviewed-by: Jan Kara

Re: [PATCHv4 1/3] fs.c: support buffer cache allocations with gfp modifiers

2014-09-04 Thread Theodore Ts'o
On Thu, Sep 04, 2014 at 04:29:39PM +0900, Gioh Kim wrote: > A buffer cache is allocated from movable area > because it is referred for a while and released soon. > But some filesystems are taking buffer cache for a long time > and it can disturb page migration. > > New APIs are introduced to

Re: [PATCH] IBM Akebono: Remove obsolete config select

2014-09-04 Thread Alistair Popple
On Fri, 5 Sep 2014 00:20:42 Paul Bolle wrote: > > On Fri, 13 Jun 2014 13:56:32 Paul Bolle wrote: > > > On Fri, 2014-05-02 at 18:06 +1000, Alistair Popple wrote: > > > > The original implementation of MMC support for Akebono introduced a > > > > new configuration symbol (MMC_SDHCI_OF_476GTR).

Re: [PATCHv4 3/3] jbd/jbd2: use non-movable memory for the jbd superblock

2014-09-04 Thread Theodore Ts'o
On Thu, Sep 04, 2014 at 04:29:41PM +0900, Gioh Kim wrote: > A long-lasting buffer-cache can distrub page migration so that > it must be allocated from non-movable area. > > The journal_init_inode is creating a buffer-cache for superblock journaling. > The superblock exists until system shutdown

Re: [PATCH] moduleparam: Resolve missing-field-initializer warning

2014-09-04 Thread Rusty Russell
"Rustad, Mark D" writes: > On Aug 31, 2014, at 5:52 PM, Rusty Russell wrote: > >> Jeff Kirsher writes: >>> From: Mark Rustad >>> >>> Resolve a missing-field-initializer warning, that is produced >>> by every reference to module_param_call, by using designated >>> initialization for the first

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-04 Thread Junxiao Bi
On 09/04/2014 05:23 PM, Dave Chinner wrote: > On Wed, Sep 03, 2014 at 01:54:54PM +0800, Junxiao Bi wrote: >> commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O >> during memory allocation") >> introduces PF_MEMALLOC_NOIO flag to avoid doing I/O inside memory >> allocation,

[PATCH] i2c: rk3x: fix divisor calculation for SCL frequency

2014-09-04 Thread Addy Ke
I2C_CLKDIV register descripted in the previous version of RK3x chip manual is incorrect. Plus 1 is required. The correct formula: - T(SCL_HIGH) = T(PCLK) * (CLKDIVH + 1) * 8 - T(SCL_LOW) = T(PCLK) * (CLKDIVL + 1) * 8 - (SCL Divsor) = 8 * ((CLKDIVL + 1) + (CLKDIVH + 1)) - SCL = PCLK / (CLK Divsor)

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Namhyung Kim
On Fri, Sep 5, 2014 at 10:42 AM, Namhyung Kim wrote: > On Fri, Sep 5, 2014 at 10:18 AM, Arnaldo Carvalho de Melo > wrote: >> Em Fri, Sep 05, 2014 at 09:09:49AM +0900, Namhyung Kim escreveu: >>> The perf report rebuilds machine states from the event records only. In >>> this case, the kernel map

Re: [PATCH v4 2/6] perf/x86: add support for sampling PEBS machine state registers

2014-09-04 Thread Chuck Ebbert
On Wed, 3 Sep 2014 16:59:07 +0200 Stephane Eranian wrote: > PEBS can capture machine state regs at retiremnt of the sampled > instructions. When precise sampling is enabled on an event, PEBS > is used, so substitute the interrupted state with the PEBS state. > Note that not all registers are

Re: bit fields && data tearing

2014-09-04 Thread James Bottomley
On Thu, 2014-09-04 at 17:17 -0700, Paul E. McKenney wrote: > +And there are anti-guarantees: > + > + (*) These guarantees do not apply to bitfields, because compilers often > + generate code to modify these using non-atomic read-modify-write > + sequences. Do not attempt to use bitfields

Re: [PATCH] PM / sleep: add configurable delay for pm_test

2014-09-04 Thread Chirantan Ekbote
On Thu, Sep 4, 2014 at 10:54 AM, Brian Norris wrote: > On Thu, Sep 04, 2014 at 09:14:12AM +0200, Pavel Machek wrote: >> > When CONFIG_PM_DEBUG=y, we provide a sysfs file (/sys/power/pm_test) for >> > selecting one of a few suspend test modes, where rather than entering a >> > full suspend state,

Re: bit fields && data tearing

2014-09-04 Thread H. Peter Anvin
On 09/04/2014 05:59 PM, Peter Hurley wrote: > I have no idea how prevalent the ev56 is compared to the ev5. > Still we're talking about a chip that came out in 1996. Ah yes, I stand corrected. According to Wikipedia, the affected CPUs were all the 2106x CPUs (EV4, EV45, LCA4, LCA45) plus the

RE: [PATCH 3/3] GPIO: gpio-dwapb: Suspend & Resume PM enabling

2014-09-04 Thread Chen, Alvin
> > > +#if defined CONFIG_PM_SLEEP > > I wonder whether it's worth #ifdef:in out such things, it clutters the place. OK. I will use '#ifdef'. > > > +/* Store GPIO context across system-wide suspend/resume transitions > > +*/ static struct gpio_saved_regs { > > Call the struct: > > struct

Re: bit fields && data tearing

2014-09-04 Thread H. Peter Anvin
On 09/04/2014 05:59 PM, Peter Hurley wrote: > I have no idea how prevalent the ev56 is compared to the ev5. > Still we're talking about a chip that came out in 1996. Ah yes, I stand corrected. According to Wikipedia, the affected CPUs were all the 2106x CPUs (EV4, EV45, LCA4, LCA45) plus the

Re: [PATCH 1/3] blk-mq: Cleanup blk_mq_tag_busy() and blk_mq_tag_idle()

2014-09-04 Thread Chuck Ebbert
On Thu, 04 Sep 2014 19:30:18 -0600 Jens Axboe wrote: > On 09/04/2014 07:26 PM, Chuck Ebbert wrote: > > On Wed, 03 Sep 2014 14:35:29 -0600 > > Jens Axboe wrote: > > > >> On 09/03/2014 02:33 PM, Alexander Gordeev wrote: > > > >>> diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h > >>> index

Re: bit fields && data tearing

2014-09-04 Thread Peter Hurley
[ +cc linux-alpha ] Hi Paul, On 09/04/2014 08:17 PM, Paul E. McKenney wrote: > On Thu, Sep 04, 2014 at 03:16:03PM -0700, H. Peter Anvin wrote: >> On 09/04/2014 12:42 PM, Peter Hurley wrote: >>> >>> Or we could give up on the Alpha. >>> >> >> If Alpha is turning into Voyager (kept alive only as a

Re: [PATCH v2.2 2/2] dt-bindings: Adding compatible attribute for SKY81452 regulator

2014-09-04 Thread Gyungoh Yoo
On Mon, Sep 01, 2014 at 11:31:58AM +0100, Mark Brown wrote: > On Mon, Sep 01, 2014 at 11:40:18AM +0900, Gyungoh Yoo wrote: > > Adding compatible attribute for SKY81452 regulator driver. > > > Required properties: > > +- compatible : Must be "skyworks,sky81452-regulator" > > Why is this a

[PATCH 1/1] add selftest for virtio-net v1.0

2014-09-04 Thread Hengjinxiao
Selftest is an important part of network driver, this patch adds selftest for virtio-net, including loopback test, negotiate test and reset test. Loopback test checks whether virtio-net can send and receive packets normally. Negotiate test executes feature negotiation between virtio-net

Re: [PATCHv4 0/3] new APIs to allocate buffer-cache with user specific flag

2014-09-04 Thread Joonsoo Kim
On Thu, Sep 04, 2014 at 09:14:19PM -0400, Theodore Ts'o wrote: > On Fri, Sep 05, 2014 at 09:37:05AM +0900, Gioh Kim wrote: > > >But what were the problems which were observed in standard kernels and > > >what effect did this patchset have upon them? Some quantitative > > >measurements will really

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Namhyung Kim
On Fri, Sep 5, 2014 at 10:18 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 05, 2014 at 09:09:49AM +0900, Namhyung Kim escreveu: >> The perf report rebuilds machine states from the event records only. In >> this case, the kernel map was recorded in the name of [kernel.kallsyms] >> so it

Re: [PATCH v9 2/3] clk: RK808: Add clkout driver for RK808

2014-09-04 Thread Mike Turquette
Quoting Chris Zhong (2014-09-03 18:12:38) > +static int rk808_clkout1_is_prepared(struct clk_hw *hw) > +{ > + return 1; > +} > + > +static const struct clk_ops rk808_clkout1_ops = { > + .is_prepared = rk808_clkout1_is_prepared, > + .recalc_rate = rk808_clkout_recalc_rate, >

[PATCH net v6 4/4] tg3: Fix tx_pending checks for tg3_tso_bug

2014-09-04 Thread Benjamin Poirier
In tg3_set_ringparam(), the tx_pending test to cover the cases where tg3_tso_bug() is entered has two problems 1) the check is only done for certain hardware whereas the workaround is now used more broadly. IOW, the check may not be performed when it is needed. 2) the check is too optimistic. For

[PATCH net v6 3/4] tg3: Move tx queue stop logic to its own function

2014-09-04 Thread Benjamin Poirier
It is duplicated. Also, the first instance in tg3_start_xmit() is racy. Consider: tg3_start_xmit() if budget <= ... tg3_tx() (free up the entire ring) tx_cons =

[PATCH net v6 2/4] tg3: Fix tx_pending check for MAX_SKB_FRAGS

2014-09-04 Thread Benjamin Poirier
The rest of the driver assumes at least one free descriptor in the tx ring. Therefore, since an skb with max frags takes up (MAX_SKB_FRAGS + 1) descriptors, tx_pending must be > (MAX_SKB_FRAGS + 1). Signed-off-by: Benjamin Poirier --- Changes v1->v2 Moved ahead in the series from 3/3 to 2/3,

[PATCH net v6 1/4] tg3: Limit minimum tx queue wakeup threshold

2014-09-04 Thread Benjamin Poirier
tx_pending may be set by the user (via ethtool -G) to a low enough value that TG3_TX_WAKEUP_THRESH becomes smaller than MAX_SKB_FRAGS + 1. This may cause the tx queue to be waked when there are in fact not enough descriptors to handle an skb with max frags. This in turn causes tg3_start_xmit() to

[PATCH net v6 0/4] tg3: tx_pending fixes

2014-09-04 Thread Benjamin Poirier
Extra info regarding patch 4: This version of the series calls gso_segment() without NETIF_F_SG. This avoids the need for desc_cnt_est in tg3_tso_bug() as in previous versions of this patch series. Since Michael had previously raised concerns about gso_segment without SG, I ran some netperf

Re: [PATCH v8] usb:serial:pl2303: add GPIOs interface on PL2303

2014-09-04 Thread Wang YanQing
On Thu, Sep 04, 2014 at 06:44:31PM +0200, Benjamin Henrion wrote: > On Thu, Sep 4, 2014 at 6:14 PM, Benjamin Henrion wrote: > > I have subscribed to the lkml. > > > > Can you make me a favour, send me your email as you posted on the LKML > > in mbox format attached to an email? > > > > I am

Re: [PATCH 1/3] blk-mq: Cleanup blk_mq_tag_busy() and blk_mq_tag_idle()

2014-09-04 Thread Jens Axboe
On 09/04/2014 07:26 PM, Chuck Ebbert wrote: > On Wed, 03 Sep 2014 14:35:29 -0600 > Jens Axboe wrote: > >> On 09/03/2014 02:33 PM, Alexander Gordeev wrote: > >>> diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h >>> index 6206ed1..795ec3f 100644 >>> --- a/block/blk-mq-tag.h >>> +++

Re: [PATCH 1/3] blk-mq: Cleanup blk_mq_tag_busy() and blk_mq_tag_idle()

2014-09-04 Thread Chuck Ebbert
On Wed, 03 Sep 2014 14:35:29 -0600 Jens Axboe wrote: > On 09/03/2014 02:33 PM, Alexander Gordeev wrote: > > diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h > > index 6206ed1..795ec3f 100644 > > --- a/block/blk-mq-tag.h > > +++ b/block/blk-mq-tag.h > > @@ -66,23 +66,22 @@ enum { > >

Re: [PATCH -v4] x86: only load initrd above 4g on second try

2014-09-04 Thread Yinghai Lu
On Thu, Sep 4, 2014 at 2:29 PM, Matt Fleming wrote: > On Thu, 04 Sep, at 01:59:05PM, H. Peter Anvin wrote: >> >> I am fine with this patch, but at the same time I do want to note that >> there is an alternative to double-buffer the patch and/or (if that >> applies to the buggy BIOS) round up the

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 05, 2014 at 09:09:49AM +0900, Namhyung Kim escreveu: > >> Before: > >> $ perf record -a usleep 1 > >> $ perf buildid-list > >> 00d5ff078efe1d30b8492854f259215fd877ce30 > >> /lib/modules/3.16.0-rc2+/build/vmlinux > >> 78186287bba77069a056a5ccbeb14b7fd2ca3a4b

[PATCH] regulator: max77802: Remove duplicate rdev_get_id() call

2014-09-04 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/max77802.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c index 967e109..d89792b 100644 --- a/drivers/regulator/max77802.c +++ b/drivers/regulator/max77802.c @@

Re: [PATCHv4 0/3] new APIs to allocate buffer-cache with user specific flag

2014-09-04 Thread Theodore Ts'o
On Fri, Sep 05, 2014 at 09:37:05AM +0900, Gioh Kim wrote: > >But what were the problems which were observed in standard kernels and > >what effect did this patchset have upon them? Some quantitative > >measurements will really help here. > > The problem is that I cannot allocate entire CMA

[PATCH] regulator: hi6421: Fix misleading comment

2014-09-04 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/hi6421-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index e389920..a8c362c 100644 --- a/drivers/regulator/hi6421-regulator.c +++

[PATCH] regulator: da9211: Set of_match_table and export device table

2014-09-04 Thread Axel Lin
Also move da9211_i2c_id and da9211_dt_ids close to the user for better readability. Signed-off-by: Axel Lin --- drivers/regulator/da9211-regulator.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/regulator/da9211-regulator.c

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 05, 2014 at 09:23:56AM +0900, Namhyung Kim escreveu: > Hmm.. now I'm curious that why the -H option is needed at all.. the perf > record already wrote build-ids that are actually hits.. Probably because when 'perf buildid-list' was introduced 'perf record' was inserting all the

[PATCH] HID: Add Holtek USB ID 04d9:a0c2 ETEKCITY Scroll

2014-09-04 Thread John DeSilva
The report descriptor for the HOLTEK USB ID 04d9:a0c2 (ETEKCITY Scroll T-140 Gaming Mouse) is set to a very large amount of consumer usages (2^16), exceeding HID_MAX_USAGES. Added id, bindings and comments for the mouse, and reduced the usage and logical maximums to 0x2fff, consistent with the

Re: bit fields && data tearing

2014-09-04 Thread Peter Hurley
[ +cc linux-alpha ] On 09/04/2014 06:14 PM, H. Peter Anvin wrote: > On 09/04/2014 02:52 AM, Benjamin Herrenschmidt wrote: >> >> Yeah correct, alpha and bytes right ? Is there any other ? That's why I >> suggested int. >> > > Even for Alpha it is only the 21064 AFAIK. For -mcpu=ev5 (21164) and

Re: [PATCH 1/5] x86, mm, pat: Set WT to PA4 slot of PAT MSR

2014-09-04 Thread Andy Lutomirski
On Thu, Sep 4, 2014 at 5:29 PM, Toshi Kani wrote: > On Thu, 2014-09-04 at 16:34 -0700, Andy Lutomirski wrote: >> On Thu, Sep 4, 2014 at 4:19 PM, Henrique de Moraes Holschuh >> wrote: >> > On Thu, 04 Sep 2014, H. Peter Anvin wrote: >> >> On 09/04/2014 01:11 PM, Henrique de Moraes Holschuh wrote:

Re: [PATCH V1 1/2] ARM: clk-imx6q: refine clock tree for ASRC

2014-09-04 Thread Shawn Guo
On Thu, Sep 04, 2014 at 05:48:58PM +0800, Shengjiu Wang wrote: > ASRC has "asrc", "asrc_ipg", "asrc_mem" clocks, and they share > the same gate bits. > > Signed-off-by: Shengjiu Wang Applied both, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: + mm-slab_common-move-kmem_cache-definition-to-internal-header-fix-2.patch added to -mm tree

2014-09-04 Thread Joonsoo Kim
On Wed, Sep 03, 2014 at 12:40:52PM -0700, a...@linux-foundation.org wrote: > > The patch titled > Subject: mm: fix kmemcheck.c build errors > has been added to the -mm tree. Its filename is > mm-slab_common-move-kmem_cache-definition-to-internal-header-fix-2.patch > > This patch

Re: [PATCH] ARM: clk-imx6sl: correct the pxp and epdc axi clock selections

2014-09-04 Thread Shawn Guo
On Thu, Sep 04, 2014 at 04:33:12PM +0800, Fancy Fang wrote: > The parent clocks of IMX6SL_CLK_PXP_AXI_SEL and IMX6SL_CLK_EPDC_AXI_SEL > clocks are not the same. So split the epdc_pxp_sels into two different > clock selections 'pxp_axi_sels' and 'epdc_axi_sels'. > > Signed-off-by: Fancy Fang >

Re: [PATCH 1/5] x86, mm, pat: Set WT to PA4 slot of PAT MSR

2014-09-04 Thread Toshi Kani
On Thu, 2014-09-04 at 16:34 -0700, Andy Lutomirski wrote: > On Thu, Sep 4, 2014 at 4:19 PM, Henrique de Moraes Holschuh > wrote: > > On Thu, 04 Sep 2014, H. Peter Anvin wrote: > >> On 09/04/2014 01:11 PM, Henrique de Moraes Holschuh wrote: > >> > I am worried of uncharted territory, here. I'd

Re: [PATCH 1/2] x86: reimplement ___preempt_schedule*() using THUNK helpers

2014-09-04 Thread Andy Lutomirski
On Thu, Sep 4, 2014 at 6:42 AM, Oleg Nesterov wrote: > > ___preempt_schedule() does SAVE_ALL/RESTORE_ALL but this is suboptimal, > we do not need to save/restore the callee-saved register. And we already > have arch/x86/lib/thunk_*.S which implements the similar asm wrappers, > so it makes sense

Re: [PATCHv4 0/3] new APIs to allocate buffer-cache with user specific flag

2014-09-04 Thread Gioh Kim
2014-09-05 오전 7:16, Andrew Morton 쓴 글: On Thu, 4 Sep 2014 16:29:38 +0900 Gioh Kim wrote: This patch try to solve problem that a long-lasting page caches of ext4 superblock and journaling of superblock disturb page migration. I've been testing CMA feature on my ARM-based platform and found

Re: [PATCH v3] zram: add num_discards for discarded pages stat

2014-09-04 Thread Minchan Kim
Hi Sergey, On Fri, Sep 05, 2014 at 12:43:31AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (09/04/14 11:25), Minchan Kim wrote: > > Hello Sergey, > > > > First of all, Sorry for late response. > > > > On Tue, Aug 26, 2014 at 11:15:43PM +0900, Sergey Senozhatsky wrote: > > > Hello, > > > >

Re: [PATCH v4 1/4] thermal: rockchip: add driver for thermal

2014-09-04 Thread Caesar Wang
在 2014年09月05日 01:06, Dmitry Torokhov 写道: Hi Caesar, On Wed, Sep 03, 2014 at 10:10:36AM +0800, Caesar Wang wrote: +static int rockchip_thermal_remove(struct platform_device *pdev) +{ + struct rockchip_thermal_data *data = platform_get_drvdata(pdev); + +

Re: [PATCH v2 05/17] locks: generic_delete_lease doesn't need a file_lock at all

2014-09-04 Thread Jeff Layton
On Thu, 4 Sep 2014 13:14:24 -0700 Christoph Hellwig wrote: > On Thu, Sep 04, 2014 at 08:38:31AM -0400, Jeff Layton wrote: > > Ensure that it's OK to pass in a NULL file_lock double pointer on > > a F_UNLCK request and convert the vfs_setlease F_UNLCK callers to > > do just that. > > > >

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Namhyung Kim
Hi Stephane, On Thu, 4 Sep 2014 16:37:51 +0200, Stephane Eranian wrote: > On Tue, Aug 26, 2014 at 8:38 AM, Namhyung Kim wrote: >> >> There's a problem on finding correct kernel symbols when perf report >> runs on a different kernel. Although a part of the problem was solved >> by the prior

[PATCH] dm cache: fix race causing dirty blocks to be marked as clean

2014-09-04 Thread Anssi Hannula
When a writeback or a promotion of a block is completed, the cell of that block is removed from the prison, the block is marked as clean, and the clear_dirty() callback of the cache policy is called. Unfortunately, performing those actions in this order allows an incoming new write bio for that

Re: bit fields && data tearing

2014-09-04 Thread Paul E. McKenney
On Thu, Sep 04, 2014 at 03:16:03PM -0700, H. Peter Anvin wrote: > On 09/04/2014 12:42 PM, Peter Hurley wrote: > > > > Or we could give up on the Alpha. > > > > If Alpha is turning into Voyager (kept alive only as a museum piece, but > actively causing problems) then please let's kill it. Sorry

Re: [PATCH] genirq: Introduce irq_read_line()

2014-09-04 Thread Bjorn Andersson
On Tue, Aug 19, 2014 at 1:23 PM, Bjorn Andersson wrote: > Introduce the irq_read_line() function to allow device drivers to read > the current logical state of an input when the hardware only exposes > this through status bits in the interrupt controller. > > The new function is backed by a new

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-04 Thread Namhyung Kim
Hi Arnaldo, On Thu, 4 Sep 2014 11:18:45 -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 26, 2014 at 03:38:39PM +0900, Namhyung Kim escreveu: >> There's a problem on finding correct kernel symbols when perf report >> runs on a different kernel. Although a part of the problem was solved >> by

Re: [RFC 3/3] zram: add swap_get_free hint

2014-09-04 Thread Minchan Kim
Hi Heesub, On Thu, Sep 04, 2014 at 03:26:14PM +0900, Heesub Shin wrote: > Hello Minchan, > > First of all, I agree with the overall purpose of your patch set. Thank you. > > On 09/04/2014 10:39 AM, Minchan Kim wrote: > >This patch implement SWAP_GET_FREE handler in zram so that VM can > >know

Re: [PATCH] kernel: add support for gcc 5

2014-09-04 Thread Joe Perches
On Fri, 2014-09-05 at 00:43 +0200, Hannes Frederic Sowa wrote: > Most statements are already depending on GCC_VERSION, maybe we can just > unify all gcc specific headers to one, still trying to keep the file > organized? ;) Maybe something like: gnu development of gcc will be more frequent and

[git pull] drm fixes (resend + one patch)

2014-09-04 Thread Dave Airlie
Hi Linus, send one yesterday, it bounced due to LF mail fail (linux-foundation.org), hopefully this one makes it. i915 fixes, a few display regressions vmwgfx, possible loop forever fix nouveau, one userspace interface fix. Dave. The following changes since commit

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-04 Thread Nix
On 1 Sep 2014, Oliver Neukum stated: > >> I'll do a bisection of the cdc-acm changes since 3.15 tomorrow night and >> see if I can find the commit at fault. > > Thank you for the report. Please let me know the results of your > bisection. Bisection underway (fifth attempt -- I *may* have

  1   2   3   4   5   6   7   8   9   10   >