Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-07 Thread Peter Zijlstra
On Mon, Oct 07, 2013 at 11:04:38PM +0200, Stephane Eranian wrote: > Peter, > > Ok, so I tried this. It does not cover shmat() cases unfortunately. > We need that same ++global_mm_id somewhere on that code path. > Haven't looked at it in details just yet. shmat() is a regular shared memory thingy

Re: [PATCH 2/2] mmc: sdhci-esdhc-imx: Remove custom properties

2013-10-07 Thread Shawn Guo
On Mon, Oct 07, 2013 at 02:32:24PM -0300, Fabio Estevam wrote: > According to Documentation/devicetree/bindings/mmc/mmc.txt: > > "Card detection: > If no property below is supplied, host native card detect is used. > Only one of the properties in this section should be supplied: > - broken-cd: T

Re: [Bug] 12.864681 BUG: lock held when returning to user space!

2013-10-07 Thread vaughan
Hi Madper, CC to Douglas to get comments. I use the rw_semaphore o_sem to protect excl open, introduced in commit 15b06f9a02406e5460001db6d5af5c738cd3d4e7 since v3.12-rc1. Is it forbidden to do like that in kernel?... Regards, Vaughan On 10/08/2013 01:57 PM, Madper Xie wrote: > Howdy Vaughan Cao

[PATCH v4 3/4] ACPI / video: Do not register backlight if win8 and native interface exists

2013-10-07 Thread Aaron Lu
According to Matthew Garrett, "Windows 8 leaves backlight control up to individual graphics drivers rather than making ACPI calls itself. There's plenty of evidence to suggest that the Intel driver for Windows [8] doesn't use the ACPI interface, including the fact that it's broken on a bunch of mac

Re: [PATCH] mpc85xx_edac: Remove unused function

2013-10-07 Thread Johannes Thumshirn
On Mon, Oct 07, 2013 at 05:13:55PM +0200, Thierry Reding wrote: > Commit 905e75c (powerpc/fsl-pci: Unify pci/pcie initialization code) > removed the struct platform_driver that held the last reference to the > mpc85xx_pci_err_remove() function. Remove the function since it is > effectively dead cod

[PATCH v4 4/4] thinkpad-acpi: fix handle locate for video and query of _BCL

2013-10-07 Thread Aaron Lu
The tpacpi_acpi_handle_locate function makes use of acpi_get_devices to locate handle for ACPI video by HID, the problem is, ACPI video node doesn't really have HID defined(i.e. no _HID control method is defined for video device), so.. that function would fail. This can be solved by enhancing the c

[PATCH v4 2/4] ACPI / video: seperate backlight control and event interface

2013-10-07 Thread Aaron Lu
The backlight control and event delivery functionality provided by ACPI video module is mixed together and registered all during video device enumeration time. As a result, the two functionality are also removed together on module unload time or by the acpi_video_unregister function. The two functi

[PATCH v4 0/4] Fix Win8 backlight issue

2013-10-07 Thread Aaron Lu
v4: Remove decleration and stub for acpi_video_unregister_backlight in video.h of patch 2/4 since that function doesn't exist anymore in v3. v3: 1 Add a new patch 4/4 to fix some problems in thinkpad-acpi module; 2 Remove unnecessary function acpi_video_unregister_backlight introduced in patch 2

[PATCH v4 1/4] backlight: introduce backlight_device_registered

2013-10-07 Thread Aaron Lu
Introduce a new API for modules to query if a specific type of backlight device has been registered. This is useful for some backlight device provider module(e.g. ACPI video) to know if a native control interface(e.g. the interface created by i915) is available and then do things accordingly(e.g. a

Re: [PATCH] serial: tegra: remove deprecated IRQF_DISABLED

2013-10-07 Thread Laxman Dewangan
On Monday 07 October 2013 10:37 PM, Stephen Warren wrote: On 10/06/2013 12:30 AM, Michael Opdenacker wrote: This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Laxman, care to comment? I'm not sure why the code explicitly spe

Re: [PATCH 2/8] ipack: convert bus code to use dev_groups

2013-10-07 Thread Samuel Iglesias Gonsálvez
On lun, 2013-10-07 at 18:27 -0700, Greg Kroah-Hartman wrote: > The dev_attrs field of struct bus_type is going away soon, dev_groups > should be used instead. This converts the ipack bus code to use the > correct field. > > Cc: Samuel Iglesias Gonsalvez > Cc: Jens Taprogge > Cc: > Signed-off-b

[PATCHv4 4/5] drm/tegra: Add runtime pm support for dc

2013-10-07 Thread Arto Merilainen
From: Mayuresh Kulkarni This patch adds initial runtime pm support for Tegra display controller. As of now, the dc clock is enabled in device probe via runtime pm and disabled in device remove. In case pm runtime is not configured, we simply enable the clock in device probe (..and disable it in r

[PATCHv4 2/5] gpu: host1x: shuffle job APIs

2013-10-07 Thread Arto Merilainen
From: Mayuresh Kulkarni This patch moves function host1x_job_submit() to job.c file where all other host1x_job_* functions are placed. This patch also introduces function host1x_job_complete(). Signed-off-by: Mayuresh Kulkarni Signed-off-by: Arto Merilainen --- drivers/gpu/host1x/cdma.c|

[PATCHv4 1/5] drm/tegra: Fix gr2d initialisation clean up

2013-10-07 Thread Arto Merilainen
gr2d initialisation clean up had missing steps (i.e. host1x channel was not released if we could not register gr2d as a host1x client) that could have lead to weird issues. This patch reworks the initialisation sequence to do clean up correctly. Signed-off-by: Arto Merilainen --- drivers/gpu/hos

[PATCHv4 5/5] gpu: host1x: Add runtime pm support for host1x

2013-10-07 Thread Arto Merilainen
From: Mayuresh Kulkarni This patch adds runtime pm support for host1x hardware unit. This allows host1x clock to be turned off when it is idle. If pm runtime is not configured, we enable host1x clock in device probe and disable it in remove. Signed-off-by: Mayuresh Kulkarni Signed-off-by: Arto

[PATCHv4 3/5] drm/tegra: Add runtime pm support for gr2d

2013-10-07 Thread Arto Merilainen
From: Mayuresh Kulkarni This far we have enabled gr2d clock on device probe and disabled it on device deinitialisation. This patch adds runtime pm support for the hardware unit allowing dynamic power management. If pm runtime is not enabled, gr2d clock is enabled in device probe and disabled in r

[PATCHv4 0/5] gpu: host1x: Add runtime pm support

2013-10-07 Thread Arto Merilainen
This series adds runtime pm support for host1x, gr2d and dc. It retains the current behaviour if CONFIG_PM_RUNTIME is not enabled. The gr2d clock is enabled when a new job is submitted and disabled when the work is done. Due to parent->child relations between host1x->gr2d, this scheme enables and

Re: [PATCH V3] PCI: exynos: add support for MSI

2013-10-07 Thread Kishon Vijay Abraham I
Hi Jingoo, On Friday 06 September 2013 12:24 PM, Jingoo Han wrote: > This patch adds support for Message Signaled Interrupt in the > Exynos PCIe diver using Synopsys designware PCIe core IP. > > Signed-off-by: Siva Reddy Kallam > Signed-off-by: Srikanth T Shivanand > Signed-off-by: Jingoo Han

About [PATCH 1/2] regulator: core: Provide a dummy regulator with full constraints

2013-10-07 Thread Wei Ni
Hi, Mark In the latest regulator framework, it default to provide dummy regulators with full constraints by your patch "regulator: core: Provide a dummy regulator with full constraints". I tried to use regulator_get() on lm90.c. If not set vcc-supply property in the dts file to assume the regulator

Re: [PATCH v2 0/3] Perf support to SDT markers

2013-10-07 Thread Masami Hiramatsu
Hi, (2013/10/07 15:46), Hemant Kumar wrote: > This patchset helps in probing dtrace style markers(SDT) present in user space > applications through perf. Notes/markes are placed at important places by the > developers. They have a negligible overhead when not enabled. We can enable > them and prob

Re: Re: Re: [PATCH] futex: Remove the owner check when waking task in handle_futex_death

2013-10-07 Thread zhang . yi20
Darren Hart wrote on 2013/09/27 23:32:27: > > Re: Re: [PATCH] futex: Remove the owner check when waking task in > handle_futex_death > > > > > The earlier patch cannot solve another problem: > > The owner wakes the next waiter through normal unlocking which make the > > futex value as zero, th

Re: [PATCH v2 1/3] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-07 Thread Magnus Damm
On Tue, Oct 8, 2013 at 2:32 PM, wrote: > Device tree clock binding document for EMMA Mobile EV2 SMU, > And Common clock framework based implementation of it. > Following nodes are defined to describe clock tree. > - renesas,emev2-smu > - renesas,emev2-smu-clkdiv > - renesas,emev2-smu-gclk > > The

Re: [Bug] 12.864681 BUG: lock held when returning to user space!

2013-10-07 Thread Madper Xie
Howdy Vaughan Cao, I can't meet this issue on both 3.11 and 3.11.4. There are only four patches between 3.11 and 3.12-rc2 and you are the author. Will you please check them if you have time. c...@redhat.com writes: > Hi all, >With kernel3.12-rc2 the dmesg shows following logs: > [

Re: [PATCH v2 2/3] ARM: shmobile: emev2: Add clock tree description in DT

2013-10-07 Thread Magnus Damm
On Tue, Oct 8, 2013 at 2:33 PM, wrote: > Add minimum clock tree description to .dts file. > This provides same set of clocks as current sh-clkfwk version .c > code does. > > Signed-off-by: Takashi Yoshii > --- > arch/arm/boot/dts/emev2.dtsi | 84 > >

Re: [PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-07 Thread Magnus Damm
On Tue, Oct 8, 2013 at 2:34 PM, wrote: > Use common clock framework version of clock > drivers/clk/shmobile/clk-emev2.c > instead of sh-clkfwk version > arch/arm/mach-shmobile/clock-emev2.c > when it is configured as a part of multi-platform. > > Signed-off-by: Takashi Yoshii > --- > arch/arm

Re: [PATCH] iscsi_iser: Add missing newlines to logging messages

2013-10-07 Thread Or Gerlitz
On 08/10/2013 01:44, Joe Perches wrote: Logging messages need terminating newlines to avoid possible message interleaving. Add them. Signed-off-by: Joe Perches --- Acked-by: Or Gerlitz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [PATCH v2 02/14] arc: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Vineet Gupta
Hi Mark, On 10/08/2013 10:40 AM, Mark Salter wrote: > Architectures which support CONFIG_PARPORT_PC should select > ARCH_MAY_HAVE_PC_PARPORT. > > Signed-off-by: Mark Salter > CC: Vineet Gupta > --- > arch/arc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arc/Kconfig b/

Re: [PATCH v2 13/14] x86: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Ingo Molnar
* Mark Salter wrote: > Architectures which support CONFIG_PARPORT_PC should select > ARCH_MAY_HAVE_PC_PARPORT. > > Signed-off-by: Mark Salter > CC: Thomas Gleixner > CC: Ingo Molnar > CC: "H. Peter Anvin" > CC: x...@kernel.org > --- > arch/x86/Kconfig | 1 + > 1 file changed, 1 insertion(+

Re: [PATCH v2 25/29] arc: use common of_flat_dt_match_machine

2013-10-07 Thread Vineet Gupta
Hi Rob, On 10/07/2013 09:59 PM, Rob Herring wrote: > From: Rob Herring > > Convert arc to use the common of_flat_dt_match_machine function. > > Signed-off-by: Rob Herring > > Acked-by: Vineet Gupta > --- > arch/arc/kernel/devtree.c | 65 > +-- >

Re: [PATCHv2 1/1] clk/zynq: Fix possible memory leak

2013-10-07 Thread Mike Turquette
Quoting Felipe Pena (2013-10-07 19:25:44) > The zynq_clk_register_fclk function can leak memory (fclk_lock) when unable > to alloc memory for fclk_gate_lock > > Signed-off-by: Felipe Pena > Acked-by: Sören Brinkmann Taken into clk-next. Thanks! Mike > --- > drivers/clk/zynq/clkc.c | 16 +++

[PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-07 Thread takasi-y
Use common clock framework version of clock drivers/clk/shmobile/clk-emev2.c instead of sh-clkfwk version arch/arm/mach-shmobile/clock-emev2.c when it is configured as a part of multi-platform. Signed-off-by: Takashi Yoshii --- arch/arm/mach-shmobile/board-kzm9d-reference.c | 5 ++--- 1 file c

[PATCH v2 2/3] ARM: shmobile: emev2: Add clock tree description in DT

2013-10-07 Thread takasi-y
Add minimum clock tree description to .dts file. This provides same set of clocks as current sh-clkfwk version .c code does. Signed-off-by: Takashi Yoshii --- arch/arm/boot/dts/emev2.dtsi | 84 1 file changed, 84 insertions(+) diff --git a/arch/arm/b

[PATCH v2 1/3] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-07 Thread takasi-y
Device tree clock binding document for EMMA Mobile EV2 SMU, And Common clock framework based implementation of it. Following nodes are defined to describe clock tree. - renesas,emev2-smu - renesas,emev2-smu-clkdiv - renesas,emev2-smu-gclk These bindings are designed manually based on 19UH0037EJ10

[PATCH v2 0/3] ARM: shmobile: kzm9d: migrate to common clock framework with DT

2013-10-07 Thread takasi-y
This patch series makes kzm9d to move to new clk implementation based on the common clock framework and device tree, when configured as a part of multi-platform. These patches do not remove sh-clkfwk version, even on emev2. Non multi-platform configuration still uses sh-clkfwk. Should be applie

Re: [GIT PULL 0/6] perf/urgent fixes

2013-10-07 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit d8b11a0cbd1c66ce283eb9dabe0498dfa6483f32: > > perf/x86: Clean up cap_user_time* setting (2013-10-04 09:58:55 +0200) > >

Re: [x86, kaslr] BUG: kernel early hang without any printk output

2013-10-07 Thread Kees Cook
On Mon, Oct 7, 2013 at 9:47 PM, Fengguang Wu wrote: > Greetings, > > I got the below dmesg and the first bad commit is > > commit 10fe632a9c6b9ade004c8b0c2ea2c3c562d24f18 > Author: Kees Cook > Date: Thu Apr 25 14:20:25 2013 -0700 > > x86, kaslr: find minimum safe relocation position > >

Re: [PATCH] gpu: host1x: check relocs after all gathers are consumed

2013-10-07 Thread Arto Merilainen
On 10/04/2013 11:18 PM, Erik Faye-Lund wrote: The num_relocs count are passed to the kernel per job, not per gather. For multi-gather jobs, we would previously fail if there were relocs in other gathers aside from the first one. Fix this by simply moving the check until all gathers have been co

[PATCH v2 03/14] arm: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Russell King CC: linux-arm-ker...@lists.infradead.org --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1ad6fb6..

[PATCH v2 05/14] m68k: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter Acked by: Geert Uytterhoeven CC: linux-m...@lists.linux-m68k.org --- arch/m68k/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index

[PATCH v2 07/14] mips: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Ralf Baechle CC: linux-m...@linux-mips.org --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index f75ab4a..199fde67

[PATCH v2 11/14] sparc: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: "David S. Miller" CC: sparcli...@vger.kernel.org --- arch/sparc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 78c4fdb.

[PATCH v2 08/14] parisc: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: "James E.J. Bottomley" CC: Helge Deller CC: linux-par...@vger.kernel.org --- arch/parisc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/parisc/Kconfig b/arch/p

[PATCH v2 02/14] arc: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Vineet Gupta --- arch/arc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 91dbb27..484b1a7 100644 --- a/arch/arc/Kconfig +++

[PATCH v2 00/14] Kconfig cleanup (PARPORT_PC dependencies)

2013-10-07 Thread Mark Salter
This patch series removes the messy dependencies from PARPORT_PC by having it depend on one symbol (ARCH_MAY_HAVE_PC_PARPORT) and having architectures which need it, select ARCH_MAY_HAVE_PC_PARPORT in arch/*/Kconfig. New architectures are unlikely to need PARPORT_PC, so this avoids having an ever

[PATCH v2 09/14] powerpc: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/a

[PATCH v2 06/14] microblaze: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Michal Simek CC: microblaze-ucli...@itee.uq.edu.au --- arch/microblaze/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconf

[PATCH v2 10/14] sh: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Paul Mundt CC: linux...@vger.kernel.org --- arch/sh/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 224f4bc..a5d1d2e 100644 --

[PATCH v2 13/14] x86: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Thomas Gleixner CC: Ingo Molnar CC: "H. Peter Anvin" CC: x...@kernel.org --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kc

[PATCH v2 12/14] unicore32: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Guan Xuetao --- arch/unicore32/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig index 82cdd89..9e0b8bd 100644 --- a/arc

[PATCH v2 04/14] ia64: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org --- arch/ia64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 774

[PATCH v2 01/14] alpha: select ARCH_MAY_HAVE_PC_PARPORT

2013-10-07 Thread Mark Salter
Architectures which support CONFIG_PARPORT_PC should select ARCH_MAY_HAVE_PC_PARPORT. Signed-off-by: Mark Salter Acked-by: Richard Henderson CC: linux-al...@vger.kernel.org --- arch/alpha/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 3

Re: [PATCH 1/8] ide: convert bus code to use dev_groups

2013-10-07 Thread David Miller
From: Greg Kroah-Hartman Date: Mon, 7 Oct 2013 18:27:35 -0700 > The dev_attrs field of struct bus_type is going away soon, dev_groups > should be used instead. This converts the ide bus code to use the > correct field. > > Cc: David S. Miller > Cc: > Signed-off-by: Greg Kroah-Hartman > ---

Re: [PATCH 2/5] gpiolib / ACPI: convert to gpiod interfaces

2013-10-07 Thread Alexandre Courbot
On Tue, Oct 1, 2013 at 7:58 AM, Mika Westerberg wrote: > The new GPIO descriptor based interface is now preferred over the old > integer based one. This patch converts the ACPI GPIO helpers to use this > new interface internally. In addition to that provide compatibility > functions acpi_get_gpio(

Re: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-10-07 Thread Cho KyongHo
On Mon, 07 Oct 2013 08:44:54 -0500, Rob Herring wrote: > On Fri, Jul 26, 2013 at 6:28 AM, Cho KyongHo wrote: > > Signed-off-by: Cho KyongHo > > --- > > .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++ > > arch/arm/boot/dts/exynos4.dtsi | 122 > > a

Re: [PATCH 05/14] vrange: Add new vrange(2) system call

2013-10-07 Thread KOSAKI Motohiro
(10/7/13 11:07 PM), Minchan Kim wrote: Hi KOSAKI, On Mon, Oct 07, 2013 at 10:51:18PM -0400, KOSAKI Motohiro wrote: Maybe, int madvise5(addr, length, MADV_DONTNEED|MADV_LAZY|MADV_SIGBUS, &purged, &ret); Another reason to make it hard is that madvise(2) is tight coupled with with vmas s

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-07 Thread Michael Ellerman
On Wed, Oct 02, 2013 at 12:29:04PM +0200, Alexander Gordeev wrote: > This series is against "next" branch in Bjorn's repo: > git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git > > Currently pci_enable_msi_block() and pci_enable_msix() interfaces > return a error code in case of failure,

Re: [RFC PATCH] checkpatch: Make the 80-character limit a --strict check only

2013-10-07 Thread Greg KH
On Mon, Oct 07, 2013 at 12:18:43PM -0700, Josh Triplett wrote: > The 80-character limit is not a hard-and-fast rule, nor should it be > applied blindly by people running checkpatch and fixing its warnings. > Sometimes it's better to violate the 80-character "limit" in the name of > readability, and

Re: [PATCH v2 12/15] KVM: MMU: allow locklessly access shadow page table out of vcpu thread

2013-10-07 Thread Xiao Guangrong
Hi Marcelo, On Oct 8, 2013, at 9:23 AM, Marcelo Tosatti wrote: >> >> +if (kvm->arch.rcu_free_shadow_page) { >> +kvm_mmu_isolate_pages(invalid_list); >> +sp = list_first_entry(invalid_list, struct kvm_mmu_page, link); >> +list_del_init(invalid_list); >> +

Re: [PATCH 5/9][v5] powerpc: implement is_instr_load_store().

2013-10-07 Thread Michael Ellerman
On Thu, Oct 03, 2013 at 12:03:25PM -0700, Sukadev Bhattiprolu wrote: > Michael Ellerman [mich...@ellerman.id.au] wrote: > | On Tue, Oct 01, 2013 at 05:15:06PM -0700, Sukadev Bhattiprolu wrote: > | > Implement is_instr_load_store() to detect whether a given instruction > | > is one of the fixed-poin

Re: [PATCH 2/9][v5] powerpc/perf: Export Power8 generic events in sysfs

2013-10-07 Thread Michael Ellerman
On Thu, Oct 03, 2013 at 10:57:57AM -0700, Sukadev Bhattiprolu wrote: > Michael Ellerman [mich...@ellerman.id.au] wrote: > | On Tue, Oct 01, 2013 at 05:15:03PM -0700, Sukadev Bhattiprolu wrote: > | > Export generic perf events for Power8 in sysfs. > | > > | > Signed-off-by: Sukadev Bhattiprolu > |

Re: [PATCH] powerpc/legacy_serial: fix incorrect placement of __initdata tag

2013-10-07 Thread Michael Ellerman
On Thu, Oct 03, 2013 at 01:51:27PM +0200, Bartlomiej Zolnierkiewicz wrote: > On Tuesday, October 01, 2013 04:13:25 PM Michael Ellerman wrote: > > On Mon, Sep 30, 2013 at 03:11:42PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > __initdata tag should be placed between the variable name and equal > >

Re: [PATCH 02/19] Make vma_dump_size() generic

2013-10-07 Thread Janani Venkataraman1
From: Ryan Mallon To: Janani Venkataraman1/India/IBM@IBMIN, linux-kernel@vger.kernel.org, Cc: amw...@redhat.com, rdun...@xenotime.net, a...@firstfloor.org, aravi...@linux.vnet.ibm.com, h...@lst.de, mhira...@redhat.com, jeremy.fitzhardi...@citrix.co

RE: [PATCH 2/7] iommu: add api to get iommu_domain of a device

2013-10-07 Thread Bhushan Bharat-R65777
> > > Do you really want module dependencies between vfio and your core > > > kernel MSI setup? Look at the vfio external user interface that we've > already defined. > > > That allows other components of the kernel to get a proper reference > > > to a vfio group. From there you can work out how

[PATCH net-next] fib_trie: only calc for the un-first node

2013-10-07 Thread baker . kernel
From: "baker.zhang" This is a enhancement. for the first node in fib_trie, newpos is 0, bit is 1. Only for the leaf or node with unmatched key need calc pos. Signed-off-by: baker.zhang --- net/ipv4/fib_trie.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/net/ipv4

Re: [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC

2013-10-07 Thread Fengguang Wu
On Mon, Oct 07, 2013 at 08:29:26PM -0700, Linus Torvalds wrote: > On Mon, Oct 7, 2013 at 8:11 PM, Fengguang Wu wrote: > > > > Yeah, I see no timer usage in parport_pc driver, so it's still questionable. > > The timer itself comes simply from the delayed_work that is used to > delay the freeing of

Re: [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC

2013-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2013 at 8:11 PM, Fengguang Wu wrote: > > Yeah, I see no timer usage in parport_pc driver, so it's still questionable. The timer itself comes simply from the delayed_work that is used to delay the freeing of the kobject. So that is not the surprising part. The surprising part is t

Re: [PATCH 5/9][v5] powerpc: implement is_instr_load_store().

2013-10-07 Thread Michael Ellerman
On Thu, 2013-10-03 at 14:52 -0500, Tom Musta wrote: > On 10/3/2013 2:03 PM, Sukadev Bhattiprolu wrote: > > Michael Ellerman [mich...@ellerman.id.au] wrote: > > > | > > | if (lower == 6) > > | if (upper <= 1) > > | return true; > > | return false; > >

Re: [PATCH 07/14] vrange: Purge volatile pages when memory is tight

2013-10-07 Thread Zhan Jianyu
On Thu, Oct 3, 2013 at 8:51 AM, John Stultz wrote: > static inline int page_referenced(struct page *page, int is_locked, > struct mem_cgroup *memcg, > - unsigned long *vm_flags) > + unsigned long *vm

Re: [PATCH v11 2/3] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-10-07 Thread Hongbo Zhang
Hi Mark, Stephen and other DT maintainers? The 1/3 had already been acked by Mark, and please have a further look at this patch 2/3. The DMA maintainer Vinod needs ack for the DT related patches so that he can take all this patch set. On 09/26/2013 05:33 PM, hongbo.zh...@freescale.com wrote:

[RESEND/PATCH 2/2] x86: asus-laptop: trivial style cleanups

2013-10-07 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- drivers/platform/x86/asus-laptop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 0e9c169..0210cf4 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/dri

[RESEND/PATCH 1/2] acpi: fan: trivial style cleanup

2013-10-07 Thread Felipe Contreras
Signed-off-by: Felipe Contreras --- drivers/acpi/fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 41ade65..ba3da88 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c @@ -168,7 +168,7 @@ static int acpi_fan_add(struct acp

[RESEND/PATCH 0/2] Trivial style cleanups

2013-10-07 Thread Felipe Contreras
Hi, Exactly the same as last time. Felipe Contreras (2): acpi: fan: trivial style cleanup x86: asus-laptop: trivial style cleanups drivers/acpi/fan.c | 2 +- drivers/platform/x86/asus-laptop.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) -- 1.8.4-fc -- To u

Re: [PATCH 2/7] iommu: add api to get iommu_domain of a device

2013-10-07 Thread Alex Williamson
On Mon, 2013-10-07 at 05:46 +, Bhushan Bharat-R65777 wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Friday, October 04, 2013 11:42 PM > > To: Bhushan Bharat-R65777 > > Cc: j...@8bytes.org; b...@kernel.crashing.org; ga...@kernel.c

Re: [PATCH V2] memstick: Fix memory leak in memstick_check() error path

2013-10-07 Thread Larry Finger
On 10/07/2013 09:13 PM, Greg Kroah-Hartman wrote: On Sun, Oct 06, 2013 at 10:21:51PM -0500, Larry Finger wrote: With kernel 3.12-rc3, kmemleak reports the following leak: unreferenced object 0x8800ae85c190 (size 16): comm "kworker/u4:3", pid 685, jiffies 4294916336 (age 2831.760s) he

Re: [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC

2013-10-07 Thread Linus Torvalds
I'll catch up with your emails if it kills me.. On Mon, Oct 7, 2013 at 7:36 PM, Fengguang Wu wrote: > On Tue, Oct 08, 2013 at 10:14:52AM +0800, Fengguang Wu wrote: > > Disabled PARPORT_PC: > > # CONFIG_PARPORT is not set > > and retest shows another call trace. Here are two run logs: Ugh. Ok. So

Re: [PATCH 05/14] vrange: Add new vrange(2) system call

2013-10-07 Thread Minchan Kim
Hi KOSAKI, On Mon, Oct 07, 2013 at 10:51:18PM -0400, KOSAKI Motohiro wrote: > >Maybe, int madvise5(addr, length, MADV_DONTNEED|MADV_LAZY|MADV_SIGBUS, > > &purged, &ret); > > > >Another reason to make it hard is that madvise(2) is tight coupled with > >with vmas split/merge. It needs mmap_s

Re: [PATCH 03/27] mmc: bfin_sdh: Move away from using deprecated APIs

2013-10-07 Thread Sonic Zhang
Acked-by: Sonic Zhang On Thu, Sep 26, 2013 at 10:54 PM, Ulf Hansson wrote: > Suspend and resume of cards are being handled from the protocol layer > and consequently the mmc_suspend|resume_host APIs are deprecated. > > This means we can simplify the suspend|resume callbacks by removing the > use

Re: [PATCH] serial: bfin_uart: remove deprecated IRQF_DISABLED

2013-10-07 Thread Sonic Zhang
Acked-by: Sonic Zhang On Sun, Oct 6, 2013 at 2:27 PM, Michael Opdenacker wrote: > This patch proposes to remove the use of the IRQF_DISABLED flag > > It's a NOOP since 2.6.35 and it will be removed one day. > > Signed-off-by: Michael Opdenacker > --- > drivers/tty/serial/bfin_uart.c | 2 +- >

Re: [PATCH 2/2] pinctrl: adi2: Fix dead lock in adi_gpio_direction_output

2013-10-07 Thread Sonic Zhang
Hi Linus, On Fri, Sep 27, 2013 at 8:20 PM, Linus Walleij wrote: > On Tue, Sep 24, 2013 at 9:47 AM, Axel Lin wrote: > >> Current code hold port->lock spinlock and then try to grab the lock again >> in adi_gpio_set_value(). Fix it. >> >> Signed-off-by: Axel Lin > > Patch applied, thanks Axel. > >

[PATCH 1/3] seq_file: Introduce seq_setwidth() and seq_pad()

2013-10-07 Thread Kees Cook
From: Tetsuo Handa There are several users who want to know bytes written by seq_*() for alignment purpose. Currently they are using %n format for knowing it because seq_*() returns 0 on success. This patch introduces seq_setwidth() and seq_pad() for allowing them to align without using %n forma

[PATCH 2/3] Remove "%n" usage from seq_file users.

2013-10-07 Thread Kees Cook
From: Tetsuo Handa All seq_printf() users are using "%n" for calculating padding size, convert them to use seq_setwidth() / seq_pad() pair. Signed-off-by: Tetsuo Handa Acked-by: Kees Cook --- fs/proc/consoles.c | 10 -- fs/proc/nommu.c | 12 +--- fs/proc/task_mmu.c

[PATCH 3/3] vsprintf: ignore %n again

2013-10-07 Thread Kees Cook
This ignores %n in printf again, as was originally documented. Implementing %n poses a greater security risk than utility, so it should stay ignored. To help anyone attempting to use %n, a warning will be emitted if it is encountered. Based on earlier patch by Joe Perches. Signed-off-by: Kees Coo

Re: [PATCH 1/2 v2] smaps: show VM_SOFTDIRTY flag in VmFlags line

2013-10-07 Thread Naoya Horiguchi
On Mon, Oct 07, 2013 at 05:51:25PM -0700, Andrew Morton wrote: > On Mon, 07 Oct 2013 10:15:04 -0400 Naoya Horiguchi > wrote: > > > From: Naoya Horiguchi > > Date: Fri, 4 Oct 2013 13:42:13 -0400 > > Subject: [PATCH] smaps: show VM_SOFTDIRTY flag in VmFlags line > > > > This flag shows that the

Re: [PATCH] tun: don't look at current when non-blocking

2013-10-07 Thread Jason Wang
On 10/07/2013 02:25 AM, Michael S. Tsirkin wrote: > We play with a wait queue even if socket is > non blocking. This is an obvious waste. > Besides, it will prevent calling the non blocking > variant when current is not valid. > > Signed-off-by: Michael S. Tsirkin > --- Acked-by: Jason Wang > d

Re: [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC

2013-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2013 at 7:14 PM, Fengguang Wu wrote: > > I got a call trace containing parport_pc_probe_port() (is it the > culprit?) after recompiling kernel with > > CONFIG_DEBUG_OBJECTS_TIMERS=y > > and booting with "ignore_loglevel". Here is the log for two kernel boots. Ok, so it's definitely

Re: [PATCH 05/14] vrange: Add new vrange(2) system call

2013-10-07 Thread KOSAKI Motohiro
Maybe, int madvise5(addr, length, MADV_DONTNEED|MADV_LAZY|MADV_SIGBUS, &purged, &ret); Another reason to make it hard is that madvise(2) is tight coupled with with vmas split/merge. It needs mmap_sem's write-side lock and it hurt anon-vrange test performance much heavily and userland mig

Re: [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC

2013-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2013 at 7:09 PM, Fengguang Wu wrote: > > Thanks for the hints! I run a kernel with pr_alert() for several times > and here is the screen log. Note that this kernel is compiled with gcc > 4.6.3 and the decoded code looks different than gcc 4.8.1 Ok, I think we have something. > NUL

[PATCHv2 1/1] clk/zynq: Fix possible memory leak

2013-10-07 Thread Felipe Pena
The zynq_clk_register_fclk function can leak memory (fclk_lock) when unable to alloc memory for fclk_gate_lock Signed-off-by: Felipe Pena Acked-by: Sören Brinkmann --- drivers/clk/zynq/clkc.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/clk/zynq

[PATCH] Squashfs: Refactor decompressor interface and code

2013-10-07 Thread Phillip Lougher
The decompressor interface and code was written from the point of view of single-threaded operation. In doing so it mixed a lot of single-threaded implementation specific aspects into the decompressor code and elsewhere which makes it difficult to seamlessly support multiple different decompressor

Re: Use of drivers/platform and matching include?

2013-10-07 Thread Greg Kroah-Hartman
On Mon, Oct 07, 2013 at 05:26:57PM -0700, Rohit Vaswani wrote: > On 10/5/2013 10:13 AM, Greg Kroah-Hartman wrote: > > On Fri, Oct 04, 2013 at 09:48:41AM -0700, Olof Johansson wrote: > >> On Fri, Oct 4, 2013 at 6:22 AM, Greg Kroah-Hartman > >> wrote: > >>> On Fri, Oct 04, 2013 at 12:41:28PM +0100,

Re: [PATCH V2] memstick: Fix memory leak in memstick_check() error path

2013-10-07 Thread Greg Kroah-Hartman
On Sun, Oct 06, 2013 at 10:21:51PM -0500, Larry Finger wrote: > With kernel 3.12-rc3, kmemleak reports the following leak: > > > unreferenced object 0x8800ae85c190 (size 16): > > comm "kworker/u4:3", pid 685, jiffies 4294916336 (age 2831.760s) > > hex dump (first 16 bytes): > > 6d 65 6

Re: [RFC] Add inline routine to free memory used in kobject name

2013-10-07 Thread Greg KH
On Mon, Oct 07, 2013 at 03:39:55PM -0500, Larry Finger wrote: > On 10/07/2013 03:10 PM, Greg KH wrote: > > On Mon, Oct 07, 2013 at 12:43:41PM -0500, Larry Finger wrote: > >> At present, if one wants to free the memory allocation used for > >> a dev->kobj name, it is necessary to go quite deeply int

[PATCH 0/8] driver core bus cleanup to use dev_groups, round 2

2013-10-07 Thread Greg Kroah-Hartman
Here is another series of patches to clean up the different bus code to not use 'dev_attr' and instead, use 'dev_groups' as dev_attr will be removed soon. greg k-h --- drivers/ide/ide-sysfs.c | 35 ++- drivers/ide/ide.c |2 +- drive

[PATCH 8/8] i2o: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the i2o bus code to use the correct field. Cc: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/message/i2o/core.h | 2 +- drivers/message/i2o/device.c | 32 +++

[PATCH 5/8] virtio: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the virtio bus code to use the correct field. Cc: Rusty Russell Cc: "Michael S. Tsirkin" Cc: Signed-off-by: Greg Kroah-Hartman --- Rusty and Michael, I can take this through my driver-

[PATCH 4/8] spi: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the spi bus code to use the correct field. Cc: Mark Brown Cc: Signed-off-by: Greg Kroah-Hartman --- Mark, I can take this through my driver-core tree if you don't want to take it throug

[PATCH 7/8] memstick: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the memstick bus code to use the correct field. Cc: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/memstick/core/memstick.c | 18 +- 1 file changed, 9 insert

[PATCH 6/8] tifm: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the tifm bus code to use the correct field. Cc: Alex Dubov Cc: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- Alex, I can take this through my driver-core tree if you don't want to

[PATCH 2/8] ipack: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the ipack bus code to use the correct field. Cc: Samuel Iglesias Gonsalvez Cc: Jens Taprogge Cc: Signed-off-by: Greg Kroah-Hartman --- Samuel and Jens, I can take this through my drive

[PATCH 1/8] ide: convert bus code to use dev_groups

2013-10-07 Thread Greg Kroah-Hartman
The dev_attrs field of struct bus_type is going away soon, dev_groups should be used instead. This converts the ide bus code to use the correct field. Cc: David S. Miller Cc: Signed-off-by: Greg Kroah-Hartman --- David, I can take this through my driver-core tree if you don't want to take it

  1   2   3   4   5   6   7   8   >