Re: [PATCH v2] drbd: fix throttling on newly created DM backing devices

2014-09-04 Thread Lars Ellenberg
On Thu, Sep 04, 2014 at 09:59:09PM +0200, Imre Palik wrote: > From: "Palik, Imre" > > If the drbd backing device is a new device mapper device (e.g., a > dm-linear mapping of an existing block device that contains data), the > counters are initially 0 even though the device contains useful > data

[PATCH] audit: vfs: fix audit records error when write to a file

2014-09-04 Thread hujianyang
commit 33e2208acfc1 audit: vfs: fix audit_inode call in O_CREAT case of do_last fix a regression in auditing of open(..., O_CREAT) syscalls but import a new problem which lead the records of write operation confusion. This error can be reproduced by these steps: touch /etc/test

Re: [PATCH] arm64, dts: Add dtbs_install make target

2014-09-04 Thread Robert Richter
Olof, On 29.08.14 15:49:42, Robert Richter wrote: > On 29.08.14 14:10:23, Robert Richter wrote: > > On 28.08.14 16:01:08, Olof Johansson wrote: > > > Thinking about it a bit more, the even more obvious solution that I > > > for some reason didn't think of at the time, is to have the > > > dtbs_ins

[PATCH 2/6] dts, kbuild: Factor out dtbs install rules to Makefile.dtbinst

2014-09-04 Thread Robert Richter
From: Robert Richter Move dtbs install rules to Makefile.dtbinst. This change is needed to implement support for dts vendor subdirs. The change makes Makefiles easier and smaller as no longer the dtbs_install rule needs to be defined. Another advantage is that install goals are not encoded in tar

[PATCH 5/6] dts, arm64: Move dts files to vendor subdirs

2014-09-04 Thread Robert Richter
From: Robert Richter Moving dts files to vendor subdirs. Signed-off-by: Robert Richter --- arch/arm64/boot/dts/Makefile | 4 +- arch/arm64/boot/dts/apm-mustang.dts | 34 -- arch/arm64/boot/dts/apm-storm.dtsi | 425 --- arch/

[PATCH 1/6] dts, arm64: Add dtbs_install make target

2014-09-04 Thread Robert Richter
From: Robert Richter This adds the dtbs_install make target to arm64. The target has been introduced already to arch/arm with the following commit: f4d4ffc03efc kbuild: dtbs_install: new make target Implementation for arm64 is the same as for arm. With 'dtbs_install' all config enabled dtb fi

[PATCH 3/6] dts, arm/arm64: Remove dtbs build rules in sub-makes

2014-09-04 Thread Robert Richter
From: Robert Richter Add dtb files to build targets and let kbuild handle them. Thus, special dtbs rules can be removed. This eases Makefiles and the implementation of the support of vendor dtb subdirectories. Signed-off-by: Robert Richter --- arch/arm/Makefile| 2 +- arch/arm/boo

[PATCH 0/6] dts, kbuild: Implement support for dtb vendor subdirs

2014-09-04 Thread Robert Richter
From: Robert Richter For arm64 we want to put dts files into vendor's subdirectories from the beginning. This patch set implements this. As this is a generic kbuild implementation, vendor subdirs will be also available for arch/arm and other architectures. The subdirectory tree is also reflected

[PATCH 4/6] dts, kbuild: Implement support for dtb vendor subdirs

2014-09-04 Thread Robert Richter
From: Robert Richter This patch adds support of vendor sub directories for dtb files. Subdirectories can be specified in $(dts-dirs). Kbuild traverses over all directories while building and installing dtb files. The directory tree is also reflected in the install path. Signed-off-by: Robert Ric

[PATCH 6/6] dts, arm: Remove $(MACHINE) variable from dtbs make recipes

2014-09-04 Thread Robert Richter
From: Robert Richter The machine description is not needed to build dtb files. Signed-off-by: Robert Richter --- arch/arm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 4d13c6d0a0cc..422c9aa34382 100644 --- a/arch/ar

oops on kernel 3.14.17 seems related to EFI

2014-09-04 Thread Francis Moreau
Hello, Another day, another oops... [ +0.055412] BUG: unable to handle kernel NULL pointer dereference at (null) [ +0.62] IP: [< (null)>] (null) [ +0.34] PGD 2b3c067 PUD 2b3d067 PMD 2b3e067 PTE 8163 [ +0.47] Oops: 0011 [#1] SMP [ +0.27]

Re: 回复: Re: 回复: Re: 回复: Status of 'unicore32' architecture in Linux kernel

2014-09-04 Thread Guenter Roeck
On 09/03/2014 01:32 AM, Xuetao Guan wrote: [ ... ] Please try the following patch. That seems to do it. I am sure it can be improved, but it is a start. Thanks, Guenter Thanks. I'll test it. BTW, Qemu codestyle is different, and tab should be replaced with blanks. Here is where I am. U

Fwd: watchdog: WatchDog Timer Driver Core: ping a hardware watchdog in kernel's space [proposal]

2014-09-04 Thread Janusz Użycki
Hi, Some applications require to start watchdog before userspace software. This patch enables such feature. Only WATCHDOG_KERNEL_PING flag is necessary to enable it (attached example for stmp3xxx_rtc_wdt.c). Moreover kernel's ping is re-enabled when userspace software closed watchdog using the

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

2014-09-04 Thread Laszlo Ersek
On 09/05/14 07:47, Anders Darander wrote: > * 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 alternativ

[RFC v2 5/6] mptsas: use async probe

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Its reported that mptsas can at times take over 30 seconds to recognize SCSI storage devices [0], this is done on the driver's probe path. Use the the new asynch probe to circumvent systemd from killing this driver. [0] https://bugs.launchpad.net/ubuntu/+source/linux/+b

[RFC v2 6/6] pata_marvell: use async probe

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Alexander reported that on his Sony VAIO VPCZ23A4R laptop experiences long delays on boot when connected to its dock station on pre 3.9 kernels but anything after 3.9 will cause the device to not be detected at all ending with: [ 38.065673] pata_marvell :1a:00.0:

[RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" The new umh kill option has allowed kthreads to receive kill signals but they are generally accepting all sources of kill signals while the original motivation was to enable through the OOM from sending the kill. One particular user which has been found to send kill sign

[RFC v2 0/6] driver-core: add asynch probe support

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Here's a complete reimplementation of asynch loading support, it discards completely the hippie / pipe dream idea that we need asynch loading of modules / subsystems in general and just addresses running probe asynchronously. This respin is based on Tejun's recommendatio

[RFC v2 4/6] cxgb4: use async probe

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" cxgb4 probe can take up to over 1 minute when the firmware is is written and installed on the device, even after this the device driver still does some device probing and can take quite a bit. systemd will kill this driver when probe does take over 30 seconds, use the as

[RFC v2 2/6] driver-core: add driver async_probe support

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" We now have two documented use cases for probing asynchronously: 0) since we bundle together driver init() and probe() systemd's new 30 second timeout has put a limit on the amount of time a driver probe routine can take, we need to enable drivers to complete p

[RFC v2 1/6] driver-core: generalize freeing driver private member

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This will be used later. Signed-off-by: Luis R. Rodriguez --- drivers/base/bus.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 83e910a..a5f41e4 100644 --- a/drivers/base/bus.c +++ b/dri

Re: [PATCH 1/1] ARM: exynos_defconfig: Enable options for display panel support

2014-09-04 Thread Ajay kumar
Hi, On Wed, Sep 3, 2014 at 9:56 PM, Kukjin Kim wrote: > Javier Martinez Canillas wrote: >> >> Many Exynos devices have a display panel, most of them just have >> a simple panel while others have more complex configurations that >> requires an embedded DisplayPort (eDP) to LVDS display bridge. >>

Re: OT: Open letter to the Linux World

2014-09-04 Thread Alexander Holler
Am 04.09.2014 21:18, schrieb Rob Landley: What's actually wrong with C++ at a language design level. Short version: OMG. It's better than C. In almost every aspect. Stop. Nothing else. Of course, if you want to write something like systemd in Python, Perl, Pascal, Modula or Erlang, feel free

[PATCH] ARM: MVEBU: Netgear RN102: Use Hardware BCH ECC

2014-09-04 Thread klightspeed
The bootloader on the Netgear ReadyNAS RN102 uses Hardware BCH ECC (strength = 4), while the pxa3xx NAND driver by default uses Hamming ECC (strength = 1). This patch changes the ECC mode on these machines to match that of the bootloader and of the stock firmware, so that for example updating the

Re: [PATCH] blk-merge: fix blk_recount_segments

2014-09-04 Thread Ming Lei
On Fri, Sep 5, 2014 at 2:26 PM, Ming Lei wrote: > On Fri, Sep 5, 2014 at 1:43 PM, Rusty Russell wrote: > > The main problem is the extra kmalloc(), which might be > improved by a memory pool. Or use kind of EWMA model to cache previous allocated indirect descriptors. Thanks, -- To unsubscribe

[PATCHv2 3/4] Clocksource: Flextimer: Set cpumask to cpu_possible_mask

2014-09-04 Thread Xiubo Li
The Flextimer is not tied to CPU0, make it usable on any CPU. For Vybrid there is only one CPU, while for LS1+ there are more than one. Signed-off-by: Xiubo Li --- drivers/clocksource/fsl_ftm_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/fsl_ftm_

Re: [PATCH 3.10.y+] PM / sleep: Use valid_state() for platform-dependent sleep states only

2014-09-04 Thread Francis Moreau
Hello, On 09/04/2014 11:21 PM, Brian Norris wrote: > From: "Rafael J. Wysocki" > > [Upstream commit 43e8317b0bba1d6eb85f38a4a233d82d7c20d732] > > Use the observation that, for platform-dependent sleep states > (PM_SUSPEND_STANDBY, PM_SUSPEND_MEM), a given state is either > always supported or a

Re: [PATCH] blk-merge: fix blk_recount_segments

2014-09-04 Thread Ming Lei
On Fri, Sep 5, 2014 at 1:43 PM, Rusty Russell wrote: > 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-

[tip:sched/core] sched/fair: Replace rcu_assign_pointer() with RCU_INIT_POINTER()

2014-09-04 Thread tip-bot for Andreea-Cristina Bernat
Commit-ID: 35b123e2f701b28977db2cde7dbbdb3fad28cad1 Gitweb: http://git.kernel.org/tip/35b123e2f701b28977db2cde7dbbdb3fad28cad1 Author: Andreea-Cristina Bernat AuthorDate: Fri, 22 Aug 2014 17:50:43 +0300 Committer: Ingo Molnar CommitDate: Fri, 5 Sep 2014 08:11:57 +0200 sched/fair: Repla

Re: [GIT PULL] nohz: Fix warning with perf on full dynticks

2014-09-04 Thread Ingo Molnar
* Frederic Weisbecker wrote: > Ingo, > > Please pull the timers/urgent branch that can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > timers/urgent > > HEAD: 40bea039593dfc7f3f9814dab844f6db43ae580b > > Summary: > > * A patch merged in thi

[PATCH] fbdev: fsl-sii902x: HDMI support for Freescale SoCs

2014-09-04 Thread Xiubo Li
Some Freescale SoCs, there has an DVI/HDMI controller and a PHY, attached to one of their display controller unit's LCDC interfaces. This patch adds a preliminary static support for such controllers. This will support for many modes and a dynamic switching between them. Signed-off-by: Xiubo Li -

回复: Re: 回复: Re: 回复: Re: 回复: Status of 'unicore32' architecture in Linux kernel

2014-09-04 Thread Xuetao Guan
- Guenter Roeck 写道: > On 09/03/2014 01:32 AM, Xuetao Guan wrote: > > > [ ... ] > > >> Please try the following patch. That seems to do it. > >> I am sure it can be improved, but it is a start. > >> > >> Thanks, > >> Guenter > > > > Thanks. I'll test it. > > BTW, Qemu codestyle is different,

[PATCHv2 4/4] Clocksource: Flextimer: Fix counter clock prescaler calculation.

2014-09-04 Thread Xiubo Li
The old code will use the uncorrect clock prescaler after the loop and the 'ps' must minus one after the loop. This patch will use new style of this loop and will fix this bug at the same time. Signed-off-by: Xiubo Li --- drivers/clocksource/fsl_ftm_timer.c | 9 - 1 file changed, 4 inse

[PATCHv2 2/4] Clocksource: Flextimer: Remove the useless code.

2014-09-04 Thread Xiubo Li
The clock envnt counter will be enabled in proper time and proper place when needed. Signed-off-by: Xiubo Li --- drivers/clocksource/fsl_ftm_timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clocksource/fsl_ftm_timer.c b/drivers/clocksource/fsl_ftm_timer.c index 9c6e935..ccb8

RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-04 Thread li.xi...@freescale.com
Hi Thomas, > Subject: RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read > API. > > Hi Thomas, > > > > > > Since the FTM will be in BE mode on LS1 platform, but will be in LE > mode > > > > > On LS2 platform. > > > > > > > > > > And ftm_clocksource_read_up() will adapt to this

[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(-) di

[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 calculatio

[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 /sys/kernel/debug/clk/clk_summary

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 > >> a

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 l

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 http://vger.kernel.org/majordomo-i

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 overwrites

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 p

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 a/scripts/

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 en

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 Dick

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 time

[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 = destinati

[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 definitio

[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 ma

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 to

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, thank

[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 samp

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 insertions

[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_ - PPM

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 Divsor

[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 devfreq-ev

[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 + drivers/devfreq/event/exy

[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 0x11

[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 devfre

[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 + drivers/mf

[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 --- a/to

[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 --- a/drivers/staging/

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 try

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 com

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 tr

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 be

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 >> mm-slab_common-move-kmem_cache-definition-to-intern

[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 02:46:15.0419292

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 lik

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) > > a

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 te

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 sta

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. A

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 devic

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 read-mo

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 Thank

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 alloc

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). Thi

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 so

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 f

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 cap

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 t

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, t

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 2116

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 dwapb

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 2116

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 6

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 g

[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 couldn

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

  1   2   3   4   5   6   7   8   >