RE: [tip:perf/core] perf: Add pmu specific data for perf task context

2015-12-09 Thread Liang, Kan
> > On Wed, Dec 09, 2015 at 02:59:21PM +, Liang, Kan wrote: > > > diff --git a/kernel/events/core.c b/kernel/events/core.c index > > > 36babfd..97aa610 100644 > > > --- a/kernel/events/core.c > > > +++ b/kernel/events/core.c > > > @@ -3508,11 +3515,6 @@ retry: > > > if (!ctx) > > >

Re: [PATCH v2] PCI: dra7xx: mark dra7xx_pcie_msi irq as IRQF_NO_THREAD

2015-12-09 Thread Bjorn Helgaas
On Tue, Dec 08, 2015 at 10:05:56AM +0100, Sebastian Andrzej Siewior wrote: > * Bjorn Helgaas | 2015-12-04 12:46:19 [-0600]: > > >The backtrace might be OK (maybe slightly overkill), but all the > >stack addresses are certainly irrelevant and distracting. We only > >need enough to recognize the pr

[PATCH net] ipv6: sctp: clone options to avoid use after free

2015-12-09 Thread Eric Dumazet
From: Eric Dumazet SCTP is lacking proper np->opt cloning at accept() time. TCP and DCCP use ipv6_dup_options() helper, do the same in SCTP. We might later factorize this code in a common helper to avoid future mistakes. Reported-by: Dmitry Vyukov Signed-off-by: Eric Dumazet --- net/sctp/ip

Re: [PATCH perf/core 22/22] perf: Fix write_numa_topology to put cpu_map instead of free

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:35AM +0900, Masami Hiramatsu escreveu: > Fix write_numa_topology to put cpu_map instead of free because > cpu_map is managed based on refcnt. thanks, applied! > Signed-off-by: Masami Hiramatsu > --- > tools/perf/util/header.c |2 +- > 1 file changed, 1 inserti

Re: [Xen-devel] [PATCH] x86: Xen PV guests don't have the rtc_cmos platform device

2015-12-09 Thread Jan Beulich
>>> On 09.12.15 at 16:15, wrote: > On 12/09/2015 10:00 AM, Sander Eikelenboom wrote: >> On 2015-12-09 15:42, Jan Beulich wrote: >> On 09.12.15 at 15:32, wrote: --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void)

[PATCH] staging: unisys: visorchipset.c fixed spacing around operator

2015-12-09 Thread Bhaktipriya Shridhar
This patch fixes checkpatch.pl warning for visorchipset.c CHECK: spaces preferred around that '*' (ctx:VxV) +#define MAX_CONTROLVM_PAYLOAD_BYTES (1024*128) Signed-off-by: Bhaktipriya Shridhar --- drivers/staging/unisys/visorbus/visorchipset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: Generic DT binding for IPIs

2015-12-09 Thread Qais Yousef
Hi, On 10/22/2015 12:55 PM, Jason Cooper wrote: On Thu, Oct 22, 2015 at 11:44:16AM +0100, Qais Yousef wrote: Is there anything more I can do to get more attention about this? I think Marc's suggestion is more generic and future proof, if I send RFC patches for that would this be better? Please

Re: [PATCH v2 1/1] drm: modes: fix DRM modes analysis regression

2015-12-09 Thread Jani Nikula
On Wed, 09 Dec 2015, LABBE Corentin wrote: > My latest commit introduce some case where a valid mode, could be > rejected. > simple_strtox functions stop at first non-digit character, but kstrtox not. > So args like "video=HDMI-A-1:720x480-16@60" will be reject when checking 16@. > The proper solu

Re: [PATCH net] ipv6: sctp: clone options to avoid use after free

2015-12-09 Thread Vlad Yasevich
On 12/09/2015 10:25 AM, Eric Dumazet wrote: > From: Eric Dumazet > > SCTP is lacking proper np->opt cloning at accept() time. > > TCP and DCCP use ipv6_dup_options() helper, do the same > in SCTP. > > We might later factorize this code in a common helper to avoid > future mistakes. > > Reporte

Re: [PATCH v2 4/9] ARM: dts: add dts files for hi3519-demb board

2015-12-09 Thread Arnd Bergmann
On Tuesday 08 December 2015 11:54:51 xuejiancheng wrote: > On 2015/12/7 14:37, xuejiancheng wrote: > > > > On 2015/12/4 18:49, Arnd Bergmann wrote: > >> On Friday 04 December 2015 10:27:58 xuejiancheng wrote: > > >> Maybe split out the sysctrl binding from > >> Documentation/devicetree/bindin

Re: [PATCH RESEND v3 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-12-09 Thread Marc Zyngier
On 24/11/15 22:31, J. German Rivera wrote: > Added platform-specific MSI support layer for FSL-MC devices. > > Signed-off-by: J. German Rivera > --- > CHANGE HISTORY > > Changes in v3: none > > Changes in v2: none > > drivers/staging/fsl-mc/bus/Makefile| 1 + > .../staging/f

Re: [PATCH V8] ACPI, PCI, irq: support IRQ numbers greater than 256

2015-12-09 Thread Sinan Kaya
On 12/8/2015 3:15 PM, Bjorn Helgaas wrote: > On Thu, Dec 03, 2015 at 01:58:55PM -0500, Sinan Kaya wrote: >> The ACPI compiler uses the extended format when used interrupt numbers >> are greater than 15. The extended IRQ is 32 bits according to the ACPI >> spec. The code supports parsing the extende

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Sebastian Frias
On 12/09/2015 04:12 PM, Michal Hocko wrote: On Wed 09-12-15 15:53:22, Sebastian Frias wrote: [...] 2) Now that VM_RESERVED was removed, is there another recommended flag to replace it for the purposes above? VM_IO + potentially others depending on your usecase. 3) Since it was working before

Re: [PATCH v2 3/9] ARM: hisi: enable Hi3519 soc

2015-12-09 Thread Arnd Bergmann
On Tuesday 08 December 2015 11:03:20 xuejiancheng wrote: > >> > >> I think we should come up with a way to handle this in general for > >> ARCH_HISI. It's not problem to have a couple of sub-options, but I'd > >> rather not have one for each SoC because I'm sure that hisilicon has > >> made dozens

Re: [PATCH v2 05/14] perf: Remove unused pager_use_color variable

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 07, 2015 at 10:21:43PM -0600, Josh Poimboeuf escreveu: > Signed-off-by: Josh Poimboeuf Thanks, applied, trying to go thru the cherry pickable ones in this kit. - Arnaldo > --- > tools/perf/util/Build | 1 - > tools/perf/util/cache.h | 1 - > tools/perf/util/color.c

Re: [PATCH RESEND v3 01/11] irqdomain: Added domain bus token DOMAIN_BUS_FSL_MC_MSI

2015-12-09 Thread Marc Zyngier
On 24/11/15 22:31, J. German Rivera wrote: > Since an FSL-MC bus is a new bus type that is neither PCI nor > PLATFORM, we need a new domain bus token to disambiguate the > IRQ domain for FSL-MC MSIs. > > Signed-off-by: J. German Rivera Acked-by: Marc Zyngier M. -- Jazz is not dead. It

Re: [PATCH RESEND v3 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2015-12-09 Thread Marc Zyngier
On 24/11/15 22:31, J. German Rivera wrote: > FSL-MC is a bus type different from PCI and platform, so it needs > its own member in the msi_desc's union. > > Signed-off-by: J. German Rivera Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny... -- To unsubscribe from th

Re: [PATCH 26/34] mm: implement new mprotect_key() system call

2015-12-09 Thread Dave Hansen
Hi Michael, Thanks for all the comments! I'll fix most of it when I post a new version of the manpage, but I have a few general questions. On 12/09/2015 03:08 AM, Michael Kerrisk (man-pages) wrote: >> >> +is the protection or storage key to assign to the memory. > > Why "protection or storage k

Re: [PATCH 5/7] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-09 Thread Tejun Heo
Hello, Serge. On Tue, Dec 08, 2015 at 05:21:24PM -0600, Serge E. Hallyn wrote: > > Heh, is kernfs_obtain_root() the right name? Maybe > > kernfs_node_to_inode()? > > kernfs_node_to_dentry? > > This would presumably make the question of whether to pass in a namespace > moot? Sounds good. Thank

Re: [PATCH v2] printk: help pr_debug and pr_devel to optimize out arguments

2015-12-09 Thread Joe Perches
On Wed, 2015-12-09 at 12:52 +0100, Arnd Bergmann wrote: > On Friday 04 December 2015 16:51:42 Aaron Conole wrote: > > --- a/include/linux/printk.h > > +++ b/include/linux/printk.h > > @@ -106,13 +106,14 @@ struct va_format { > >   > >  /* > >   * Dummy printk for disabled debugging statements to us

RE: [PATCH net] ipv6: sctp: clone options to avoid use after free

2015-12-09 Thread David Laight
> SCTP is lacking proper np->opt cloning at accept() time. > > TCP and DCCP use ipv6_dup_options() helper, do the same in SCTP. > > We might later factorize this code in a common helper to avoid > future mistakes. I'm wondering what the real impact of this and the other recent SCTP bugs/patches

Re: [PATCH v2 04/14] perf: Move term functions out of util.c

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 07, 2015 at 10:21:42PM -0600, Josh Poimboeuf escreveu: > The term functions are needed by help.c which is going to be moved into > a separate library. Move them out of util.c and into their own file. Applied, after some minor fixups due to the fact that the previous patch is still bei

Re: [PATCH V1 00/11] MMCONFIG refactoring and ARM64 PCI hostbridge init based on ACPI

2015-12-09 Thread Lorenzo Pieralisi
On Wed, Dec 09, 2015 at 03:31:41PM +0530, Jayachandran C. wrote: > [trimmed the cc list a bit] > On Mon, Dec 07, 2015 at 02:31:17PM -0600, Bjorn Helgaas wrote: > > On Tue, Oct 27, 2015 at 05:38:31PM +0100, Tomasz Nowicki wrote: > [...] > > > > > > Tomasz Nowicki (10): > > > x86, pci: Reorder log

Re: [PATCH RESEND v3 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-12-09 Thread Marc Zyngier
On 24/11/15 22:31, J. German Rivera wrote: > Created an MSI domain for the fsl-mc bus-- including functions > to create a domain, find a domain, alloc/free domain irqs, and > bus specific overrides for domain and irq_chip ops. > > Signed-off-by: J. German Rivera > --- > CHANGE HISTORY > > Change

Re: [PATCH v2 14/14] perf tools: Move subcommand framework and related utils to libapi

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 06:33:15AM -0600, Josh Poimboeuf escreveu: > On Wed, Dec 09, 2015 at 09:03:43AM +0100, Ingo Molnar wrote: > > > > * Josh Poimboeuf wrote: > > > > > > > wouldn't necessarily be a clean split. It would also possibly create > > > > > more > > > > > room for error for the

[PATCH] drm/qxl: add locking to prevent race on garbage collection

2015-12-09 Thread Colin King
From: Colin Ian King I've seen the driver break a few times in qxl_garbage_collect and I believe this is a race condition on qxl_release_free. Adding extra locking around the release free addresses the breakage. Signed-off-by: Colin Ian King --- drivers/gpu/drm/qxl/qxl_cmd.c | 3 +++ drive

[PATCH v6 00/10] cpufreq: Introduce ST's CPUFreq driver

2015-12-09 Thread Lee Jones
This is a re-write of the original submission, hence why the change-log is omitted. Basically almost everything has changed. We are now using the new OPP framework and generic bindings written by Viresh. There are 'ARM' patches in the set which are not necessarily related to CPUFreq, but are requ

[PATCH v6 03/10] ARM: multi_v7_defconfig: Enable support for PWM Regulators

2015-12-09 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index f62dcb1..648ef57 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/co

[PATCH v6 04/10] ARM: STi: STiH407: Provide generic (safe) DVFS configuration

2015-12-09 Thread Lee Jones
You'll notice that the voltage cell is populated with 0's. Voltage information is very platform specific, even depends on 'cut' and 'substrate' versions. Thus it is left blank for a generic (safe) implementation. If other nodes/properties are provided by the bootloader, the ST CPUFreq driver wil

[PATCH v6 05/10] ARM: STi: STiH407: Provide CPU with clocking information

2015-12-09 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 9fa1e58..af9233b 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/d

[PATCH] edac: Don't call mpc85xx_pci_err_probe() from fsl_pci_probe()

2015-12-09 Thread Johannes Thumshirn
Don't call mpc85xx_pci_err_probe() from fsl_pci_probe() but instantiate the PCI EDAC driver via the OpenFirmware interface. Signed-off-by: Johannes Thumshirn --- Patch is untested due to lack of hardware and against Boris' for-next branch, please test. Thanks, Johannes arch/powerpc/sy

Re: [PATCH net] ipv6: sctp: clone options to avoid use after free

2015-12-09 Thread Eric Dumazet
On Wed, 2015-12-09 at 15:49 +, David Laight wrote: > > SCTP is lacking proper np->opt cloning at accept() time. > > > > TCP and DCCP use ipv6_dup_options() helper, do the same in SCTP. > > > > We might later factorize this code in a common helper to avoid > > future mistakes. > > I'm wonderi

[PATCH v6 07/10] ARM: STi: STiH407: Provide CPU with a means to look-up Major number

2015-12-09 Thread Lee Jones
This is used for CPU Frequency Scaling. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index d0e639cd..eb2601f 100644 --- a/arch/arm/boot/dts/sti

[PATCH 2/2] Doc:devicetree/ti: Fix typo in ti

2015-12-09 Thread Masanari Iida
This patch fix some spelling typos found in Documentation/devicetree/bindings/clock/ti. Signed-off-by: Masanari Iida --- Documentation/devicetree/bindings/clock/ti/fapll.txt | 2 +- Documentation/devicetree/bindings/clock/ti/mux.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) dif

[GIT PULL] PCI fixes for v4.4

2015-12-09 Thread Bjorn Helgaas
Hi Linus, These are more fixes I'd like to have in v4.4. Several for the Altera driver added for v4.4, and one for an MSI domain problem that affects several arm64 platforms. Bjorn The following changes since commit 7c7a0e945349a3d0d497d7f32db6ed33d4031110: ARM/PCI: Move align_resource func

[PATCH v6 06/10] ARM: STi: STiH407: Link CPU with its voltage supply

2015-12-09 Thread Lee Jones
Used for Voltage Scaling using CPUFreq. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index af9233b..d0e639cd 100644 --- a/arch/arm/boot/dts/sti

[PATCH 1/2] Doc: treewide: Fix grammar "a" to "an"

2015-12-09 Thread Masanari Iida
This patch fix some grammar mistake. Signed-off-by: Masanari Iida --- Documentation/filesystems/sharedsubtree.txt | 2 +- Documentation/vm/slub.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/sharedsubtree.txt b/Documentatio

[PATCH v6 10/10] MAINTAINERS: Add ST's CPUFreq driver to the STI file list

2015-12-09 Thread Lee Jones
Signed-off-by: Lee Jones --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e9caa4b..ebc0562 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1562,6 +1562,7 @@ F:arch/arm/boot/dts/sti* F: drivers/char/hw_random/st-rng.c F: drivers/c

[PATCH v6 09/10] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation

2015-12-09 Thread Lee Jones
Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Lee Jones --- .../devicetree/bindings/cpufreq/cpufreq-st.txt | 91 ++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt diff --git a/Documentat

[PATCH v6 08/10] cpufreq: st: Provide runtime initialised driver for ST's platforms

2015-12-09 Thread Lee Jones
The bootloader is charged with the responsibility to provide platform specific Dynamic Voltage and Frequency Scaling (DVFS) information via Device Tree. This driver takes the supplied configuration and registers it with the new generic OPP framework, to then be used with CPUFreq. Signed-off-by: L

Re: [PATCH] net : To avoid execution of extra instructions in NET RX path when rps_map is not set but rps_needed is true.

2015-12-09 Thread kbuild test robot
Hi Ashutosh, [auto build test ERROR on net-next/master] [also build test ERROR on v4.4-rc4 next-20151209] url: https://github.com/0day-ci/linux/commits/Rahul-Jain/net-To-avoid-execution-of-extra-instructions-in-NET-RX-path-when-rps_map-is-not-set-but-rps_needed-is-true/20151209-183932 config

[GIT PULL] USB fixes for v4.4-rc5

2015-12-09 Thread Felipe Balbi
Hi Greg, Here's what I hope to be the last set of fixes for current -rc. Let me know if you want anything to be changed. cheers The following changes since commit f74875dc36135ebae82a8e005f4b7f52289d2c40: usb: dwc2: fix kernel oops during driver probe (2015-11-20 09:29:47 -0600) are availabl

[PATCH v6 02/10] ARM: multi_v7_defconfig: Enable ST's Power Reset driver

2015-12-09 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 99b87b6..f62dcb1 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_d

[PATCH v6 01/10] ARM: multi_v7_defconfig: Enable ST's PWM driver

2015-12-09 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 69a22fd..99b87b6 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/co

Re: corruption causing crash in __queue_work

2015-12-09 Thread Tejun Heo
Hello, Nikolay. On Wed, Dec 09, 2015 at 02:08:56PM +0200, Nikolay Borisov wrote: > 73309.529940] BUG: unable to handle kernel NULL pointer dereference at >(null) > [73309.530238] IP: [] __queue_work+0xb3/0x390 ... > [73309.537319] > [73309.537373] [] ? __queue_work+0x390/0x390 > [7

Re: Crash caused by "EDAC: Rip out the edac_subsys reference counting" (was Re: linux-next: Tree for Dec 8)

2015-12-09 Thread Borislav Petkov
On Wed, Dec 09, 2015 at 12:17:47PM +0100, Borislav Petkov wrote: > On Wed, Dec 09, 2015 at 09:32:47PM +1100, Michael Ellerman wrote: > > Presumably caused by the fact that edac_init() is subsys_initcall(), whereas > > corenet_gen_publish_devices() is arch_initcall(). > > Thanks for the report! >

Re: occasional kernel hang on shutdown - kernel/cgroup_pids.c

2015-12-09 Thread Tejun Heo
On Wed, Dec 09, 2015 at 02:22:53PM +0100, Michal Hocko wrote: > [CCing Tejun] > > Seems to be the same issue as reported here? > http://lkml.kernel.org/r/20151208145851.GJ9837@bark Patches just got merged into mainline. Please let me know if the current git master doesn't fix the issue. Thanks.

Re: Ques: [kernel/time/*] Is there any disadvantage in using sleep_range for more than 20ms delay ?

2015-12-09 Thread Aniroop Mathur
Sorry for multiple emails as those were not in plain text so ignored by linux-kernel@vger.kernel.org Please consider this email for reply. On Wed, Dec 9, 2015 at 2:17 AM, Thomas Gleixner wrote: > On Tue, 8 Dec 2015, Aniroop Mathur wrote: >> On Tue, Dec 8, 2015 at 4:18 PM, Thomas Gleixner wrote:

Re: [PATCH 2/2] keys, trusted: seal with a policy

2015-12-09 Thread Mimi Zohar
On Wed, 2015-12-09 at 16:24 +0200, Jarkko Sakkinen wrote: > On Tue, Dec 08, 2015 at 06:56:17PM -0500, Mimi Zohar wrote: > > On Tue, 2015-12-08 at 22:24 +0200, Jarkko Sakkinen wrote: > > > On Tue, Dec 08, 2015 at 01:01:02PM +0200, Jarkko Sakkinen wrote: > > > > On Tue, Dec 08, 2015 at 09:35:05AM +11

[PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2015-12-09 Thread Sinan Kaya
Code currently supports 256 maximum interrupts at this moment. The patch is reconfiguring the penalty array as a dynamic list to remove this limitation. A new penalty linklist has been added for all other interrupts greater than 16. If an IRQ is not found in the link list, an IRQ info structure wi

[PATCH V9 2/2] ACPI, PCI, irq: remove interrupt number restriction

2015-12-09 Thread Sinan Kaya
The ACPI compiler uses the extended format when used interrupt numbers are greater than 15. The extended IRQ syntax is 32 bits according to the ACPI spec. The code supports parsing the extended interrupt numbers. However, due to used data structure type; the code silently truncates interrupt number

[PATCH] ARM: uncompress: mark putc as inline

2015-12-09 Thread Arnd Bergmann
When CONFIG_DEBUG_ICEDCC is set, we don't use the platform specific putc() function, but use icedcc_putc() instead, so putc is unused and causes a compile time warning: In file included from ../arch/arm/boot/compressed/misc.c:28:0: arch/arm/mach-rpc/include/mach/uncompress.h:79:13: warning: 'putc'

Re: [PATCH v3 1/3] resource: Add @flags to region_intersects()

2015-12-09 Thread Dan Williams
On Thu, Dec 3, 2015 at 12:35 PM, Toshi Kani wrote: > On Thu, 2015-12-03 at 11:01 -0800, Linus Torvalds wrote: >> On Thu, Dec 3, 2015 at 10:40 AM, Borislav Petkov wrote: >> > On Thu, Dec 03, 2015 at 11:54:19AM -0700, Toshi Kani wrote: >> > > Adding a new type for regular memory will require inspec

[PATCH 2/2] x86/mm/pat: Change free_memtype() to free shrinking range

2015-12-09 Thread Toshi Kani
mremap() to shrink the map size of a VM_PFNMAP range causes the following error message, and leaves the pfn range allocated. x86/PAT: test:3493 freeing invalid memtype [mem 0x48320-0x4863f] rbt_memtype_erase(), called from free_memtype() with spin_lock held, only accepts to free a whole

[PATCH 1/2] x86/mm/pat: Change untrack_pfn() to handle unmapped vma

2015-12-09 Thread Toshi Kani
mremap() with MREMAP_FIXED, remapping to a new virtual address, on a VM_PFNMAP range causes the following WARN_ON_ONCE() message in untrack_pfn(). WARNING: CPU: 1 PID: 3493 at arch/x86/mm/pat.c:985 untrack_pfn+0xbd/0xd0() Call Trace: [] dump_stack+0x45/0x57 [] warn_slowpath_common+0x86/0xc

[PATCH 0/2] Change PAT to support mremap use-cases

2015-12-09 Thread Toshi Kani
This patch-set fixes issues found in the pfn tracking code of PAT when mremap() is used on a VM_PFNMAP range. Patch 1/2 changes untrack_pfn() to handle the case of mremap() with MREMAP_FIXED, i.e. remapping virtual address on a VM_PFNMAP range. Patch 2/2 changes the free_memtype() path to handle

Re: corruption causing crash in __queue_work

2015-12-09 Thread Tejun Heo
Hello, On Wed, Dec 09, 2015 at 06:23:15PM +0200, Nikolay Borisov wrote: > I think we are seeing this at least daily on at least 1 server (we have > multiple servers like that). So adding printk's would likely be the way > to go, anything in particular you might be interested in knowing? I see > RC

Re: corruption causing crash in __queue_work

2015-12-09 Thread Nikolay Borisov
On 12/09/2015 06:08 PM, Tejun Heo wrote: > Hello, Nikolay. > > On Wed, Dec 09, 2015 at 02:08:56PM +0200, Nikolay Borisov wrote: >> 73309.529940] BUG: unable to handle kernel NULL pointer dereference at >> (null) >> [73309.530238] IP: [] __queue_work+0xb3/0x390 > ... >> [73309.537319]

Re: [PATCH 00/14] mm: memcontrol: account socket memory in unified hierarchy v4-RESEND

2015-12-09 Thread Arnd Bergmann
On Tuesday 08 December 2015 10:30:10 Johannes Weiner wrote: > Hi Andrew, > > there was some build breakage in CONFIG_ combinations I hadn't tested > in the last revision, so here is a fixed-up resend with minimal CC > list. The only difference to the previous version is a section in > memcontrol.h

[patch] perf: remove l1-dcache-stores event for AMD

2015-12-09 Thread Vince Weaver
This is a long standing bug with the l1-dcache-stores generic event on AMD machines. My perf_event testsuite has been complaining about this for years and I'm finally getting around to trying to get it fixed. The data_cache_refills:system event does not make sense for l1-dcache-stores. Maybe thi

[PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Arnd Bergmann
When IPV4 support is disabled, the memcg->socket_pressure field is not defined and we get a build error from the vmpressure code: mm/vmpressure.c: In function 'vmpressure': mm/vmpressure.c:287:9: error: 'struct mem_cgroup' has no member named 'socket_pressure' memcg->socket_pressure = jiffies

[PATCH] mm: memcontrol: MEMCG no longer works with SLOB

2015-12-09 Thread Arnd Bergmann
The change to move the kmem accounting into the normal memcg code means we can no longer use memcg with slob, which lacks the memcg_params member in its struct kmem_cache: ../mm/slab.h: In function 'is_root_cache': ../mm/slab.h:187:10: error: 'struct kmem_cache' has no member named 'memcg_params'

[PATCH] nwflash: use no_seek_end_llseek_size

2015-12-09 Thread Arnd Bergmann
The recently introduced no_seek_end_llseek was wrong, it should be no_seek_end_llseek_size: drivers/char/nwflash.c: In function 'flash_llseek': drivers/char/nwflash.c:280:8: error: too many arguments to function 'no_seek_end_llseek' Signed-off-by: Arnd Bergmann Fixes: 00c1b53c0e61 ("new helpers

[PATCH] ARM: pxa: use PWM lookup table for all machines

2015-12-09 Thread Arnd Bergmann
The recent change to use a pwm lookup table for the ezx machines was incomplete and only changed the a780 model, but not the other ones in the same file. This adds the missing calls to pwm_add_table(). Signed-off-by: Arnd Bergmann Fixes: c3322022897c ("ARM: pxa: ezx: Use PWM lookup table") Acked

RE: [PATCH net] ipv6: sctp: clone options to avoid use after free

2015-12-09 Thread David Laight
From: Eric Dumazet [mailto:eric.duma...@gmail.com] > Sent: 09 December 2015 16:00 > On Wed, 2015-12-09 at 15:49 +, David Laight wrote: > > > SCTP is lacking proper np->opt cloning at accept() time. > > > > > > TCP and DCCP use ipv6_dup_options() helper, do the same in SCTP. > > > > > > We might

[PATCH] ARM: pxa: mark ezx structures as __maybe_unused

2015-12-09 Thread Arnd Bergmann
The ezx platform contains multiple machine descriptors, but not all of them use all of the data structures, and it's possible to disable all of the machines, which produces some harmless warnings: mach-pxa/ezx.c:53:26: warning: 'ezx_pwm_lookup' defined but not used [-Wunused-variable] mach-pxa/ez

Re: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-12-09 Thread Alexander Duyck
On Wed, Dec 9, 2015 at 1:28 AM, Lan, Tianyu wrote: > > > On 12/8/2015 1:12 AM, Alexander Duyck wrote: >> >> On Mon, Dec 7, 2015 at 7:40 AM, Lan, Tianyu wrote: >>> >>> On 12/5/2015 1:07 AM, Alexander Duyck wrote: > > > > We still need to support Windows guest for migration and this

randconfig build error with next-20151209, in drivers/tty/serial/kgdboc.c

2015-12-09 Thread Jim Davis
Building with the attached random configuration file, drivers/built-in.o: In function `kgdboc_pre_exp_handler': kgdboc.c:(.text+0x7b5aa): undefined reference to `fg_console' kgdboc.c:(.text+0x7b5ce): undefined reference to `vc_cons' kgdboc.c:(.text+0x7b5d5): undefined reference to `vc_cons' -- J

[PATCH] iwlegacy: mark il_adjust_beacon_interval as noinline

2015-12-09 Thread Arnd Bergmann
With the new optimized do_div() code, some versions of gcc produce obviously incorrect code that leads to a link error in iwlegacy/common.o: drivers/built-in.o: In function `il_send_rxon_timing': :(.text+0xa6b4d4): undefined reference to `ilog2_NaN' :(.text+0xa6b4f0): undefined reference to `_

Re: [PATCH 26/34] mm: implement new mprotect_key() system call

2015-12-09 Thread Michael Kerrisk (man-pages)
Hi Dave, On 9 December 2015 at 16:48, Dave Hansen wrote: > Hi Michael, > > Thanks for all the comments! I'll fix most of it when I post a new > version of the manpage, but I have a few general questions. > > On 12/09/2015 03:08 AM, Michael Kerrisk (man-pages) wrote: >>> >>> +is the protection or

Re: Crash caused by "EDAC: Rip out the edac_subsys reference counting" (was Re: linux-next: Tree for Dec 8)

2015-12-09 Thread Scott Wood
On Wed, 2015-12-09 at 17:03 +0100, Borislav Petkov wrote: > On Wed, Dec 09, 2015 at 12:17:47PM +0100, Borislav Petkov wrote: > > On Wed, Dec 09, 2015 at 09:32:47PM +1100, Michael Ellerman wrote: > > > Presumably caused by the fact that edac_init() is subsys_initcall(), > > > whereas > > > corenet_g

Re: [PATCH v7 4/7] PCI: Add fwnode_handle to pci_sysdata

2015-12-09 Thread Marc Zyngier
On 05/12/15 00:36, ja...@microsoft.com wrote: > From: Jake Oshins > > This patch adds an fwnode_handle to struct pci_sysdata, which is > used by the next patch in the series when trying to locate an > IRQ domain associated with a root PCI bus. > > Signed-off-by: Jake Oshins > --- > arch/x86/in

Re: [PATCH] x86/PCI: simplify pci_bios_{read,write}

2015-12-09 Thread Bjorn Helgaas
On Mon, Dec 07, 2015 at 10:24:24PM +0800, Geliang Tang wrote: > There are some repetitive code in the switch/case statement in > pci_bios_read() and pci_bios_write(). I drop it to simplify the > code. > > Signed-off-by: Geliang Tang Applied to pci/misc for v4.5 with Thomas' Reviewed-by, thanks!

Re: Generic DT binding for IPIs

2015-12-09 Thread Rob Herring
On Wed, Dec 9, 2015 at 9:27 AM, Qais Yousef wrote: > Hi, > > On 10/22/2015 12:55 PM, Jason Cooper wrote: >> >> On Thu, Oct 22, 2015 at 11:44:16AM +0100, Qais Yousef wrote: >>> >>> Is there anything more I can do to get more attention about this? I >>> think Marc's suggestion is more generic and fu

[PATCH 08/11] perf tools: Remove unused pager_use_color variable

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/e540c61b3068761181db6d9b1b3411990bafdb2f.1449548395.git.jpoim...@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/Build | 1 - t

[PATCH 10/11] perf tools: Save cmdline arguments earlier

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf perf_env__set_cmdline() only saves the arguments the first time it's called. It doesn't need to be called every time the options and suboptions are parsed. Instead it can just be called once. This also has the advantage of making the option parsing code less perf-specific

[PATCH 06/11] perf machine: Fix machine.vmlinux_maps to make sure to clear the old one

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix machine.vmlinux_maps to make sure to clear the old one if it is renewal. This can leak the previous maps on the vmlinux_maps because those are just overwritten. Signed-off-by: Masami Hiramatsu Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Lin

[PATCH 11/11] perf tools: Move cmd_version() to builtin-version.c

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf Move cmd_version() to its own file so that help.c can be moved to a library. Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/e908b1b68f20ab6d8d33941d5571c23110622e60.1449548395.git.jpoim...@redhat.com Signed

[PATCH 03/11] perf stat: Fix cmd_stat to release cpu_map

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix cmd_stat() to release cpu_map objects (aggr_map and cpus_aggr_map) afterwards. refcnt debugger shows that the cmd_stat initializes cpu_map but not puts it. # ./perf stat -v ls REFCNT: BUG: Unreclaimed objects found. [0] Unreclaimed cpu_m

RE: [PATCH v7 4/7] PCI: Add fwnode_handle to pci_sysdata

2015-12-09 Thread Jake Oshins
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Wednesday, December 9, 2015 8:51 AM > To: Jake Oshins ; gre...@linuxfoundation.org; KY > Srinivasan ; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...@

[PATCH] ARM: pxa: mark raumfeld init functions as __maybe_unused

2015-12-09 Thread Arnd Bergmann
The raumfeld.c file contains three similar machine definitions, each with their own init function. If one or more of them are disabled, we get compile-time warnings: arm/mach-pxa/raumfeld.c:1070:123: warning: 'raumfeld_connector_init' defined but not used [-Wunused-function] arm/mach-pxa/raumfeld

[GIT PULL 00/11] perf/core improvements and fixes

2015-12-09 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit a30c99a0beb3030ba42dab38cad6273cd090805d: Merge branch 'perf/urgent' into perf/core, to pick up fixes (2015-12-08 06:06:20 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/li

[PATCH 04/11] perf hists: Fix hists_evsel to release hists

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Since hists__init doesn't set the destructor of hists_evsel (which is an extended evsel structure), when hists_evsel is released, the extended part of the hists_evsel is not deleted (note that the hists_evsel object itself is freed). This fixes it to add a destructor for h

[PATCH] ARM: pxa: cm-x2xx: avoid duplicate macro warnings

2015-12-09 Thread Arnd Bergmann
In an old commit, we worked around the duplicate definition of GPIO24_SSP1_SFRM in cm-x2xx.c, which includes files for both pxa25x and pxa27x. Apparently the problem has come back and we now have four additional duplicate symbols that cause warnings: In file included from /git/arm-soc/arch/arm/mac

[PATCH 07/11] perf tools: Fix write_numa_topology to put cpu_map instead of free

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix write_numa_topology to put cpu_map instead of free because cpu_map is managed based on refcnt. Signed-off-by: Masami Hiramatsu Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20151209021135.10245.79046.stgit@loca

Re: [PATCH v2] powercap, intel_rapl.c, fix BIOS lock check

2015-12-09 Thread Jacob Pan
On Wed, 9 Dec 2015 08:31:12 -0500 Prarit Bhargava wrote: > Intel RAPL initialized on several systems where the BIOS lock bit (msr > 0x610, bit 63) was set. This occured because the return value of > rapl_read_data_raw() was being checked, rather than the value of the > variable passed in, locke

[PATCH 05/11] perf tools: Fix maps__fixup_overlappings to put used maps

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Since the __map_groups__insert got the given map, we don't need to keep it. So put the maps. Refcnt debugger shows that map_groups__fixup_overlappings() got a map twice but the group released it just once. This pattern usually indicates the leak happens in caller site.

[PATCH 01/11] perf tui: Change default selection background color to yellow

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Boris reported that 'perf top' is unusable on his default 'black on white' terminal, which uses (eye friendly) light-grey as a background color. The reason is that the TUI cursor for the current selection line uses HE_COLORSET_SELECTED, and that has a default background color o

[PATCH 02/11] perf tools: Fix map_groups__clone to put cloned map

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix map_groups__clone to put cloned map after inserting it to the map_groups. Refcnt debugger shows: [0] Unreclaimed map: 0x2a27ee0 Refcount +1 => 1 at ./perf(map_groups__clone+0x8d) [0x4bb7ed] ./perf(thread__fork+0xbe) [0x4c1f9e] ./perf(

[PATCH 09/11] perf tools: Move term functions out of util.c

2015-12-09 Thread Arnaldo Carvalho de Melo
From: Josh Poimboeuf The term functions are needed by help.c which is going to be moved into a separate library. Move them out of util.c and into their own file. Signed-off-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/9a39c854dd156b55e

Re: [Questions] perf c2c: What's the current status of perf c2c?

2015-12-09 Thread Andi Kleen
> > the plan for me is to to use it some more to prove it's useful > > and kick it to be merged with perf at some point > > So I never really liked the c2c tool because it was so narrowly > focussed, it only works on NUMA thingies IIRC. It should work on all systems with an Intel Core (not Atom)

Re: [PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2015-12-09 Thread Andy Shevchenko
On Wed, Dec 9, 2015 at 6:18 PM, Sinan Kaya wrote: > Code currently supports 256 maximum interrupts at this moment. The patch is > reconfiguring the penalty array as a dynamic list to remove this > limitation. > > A new penalty linklist has been added for all other interrupts greater than > 16. If

Re: [Resend: PATCH v2 0/3] Fix rcar-pcie for arm64

2015-12-09 Thread Bjorn Helgaas
On Thu, Nov 26, 2015 at 08:32:43AM +, Phil Edworthy wrote: > HI Bjorn, > > On 25 November 2015 16:41, Bjorn Helgaas wrote: > > Hi Phil, > > > > On Wed, Nov 25, 2015 at 03:30:36PM +, Phil Edworthy wrote: > > > The first patches fixes the build problem > > > > I'm trying to figure out if v

Re: [PATCH 26/34] mm: implement new mprotect_key() system call

2015-12-09 Thread Dave Hansen
On 12/09/2015 08:45 AM, Michael Kerrisk (man-pages) wrote: >>> >> * Explanation of what a protection domain is. >> > >> > A protection domain is a unique view of memory and is represented by the >> > value in the PKRU register. > Out something about this in pkey(7), but explain what you mean by a >

Re: [PATCH v7 4/7] PCI: Add fwnode_handle to pci_sysdata

2015-12-09 Thread Marc Zyngier
On 09/12/15 16:54, Jake Oshins wrote: >> -Original Message- >> From: Marc Zyngier [mailto:marc.zyng...@arm.com] >> Sent: Wednesday, December 9, 2015 8:51 AM >> To: Jake Oshins ; gre...@linuxfoundation.org; KY >> Srinivasan ; linux-kernel@vger.kernel.org; >> de...@linuxdriverproject.org; o..

[PATCH] staging: lustre/lustre/libcfs: Fix type mismatch reported by sparse

2015-12-09 Thread Niranjan Dighe
The third argument to function kportal_memhog_alloc is expected to be gfp_t whereas the actual argument was unsigned int. Fix this by explicitly typecasting to gfp_t Signed-off-by: Niranjan Dighe --- drivers/staging/lustre/lustre/libcfs/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2015-12-09 Thread Christopher Covington
Hi Sinan, On 12/09/2015 12:09 PM, Sinan Kaya wrote: > On 12/9/2015 11:59 AM, Andy Shevchenko wrote: >>> + if (trigger != ACPI_MADT_TRIGGER_LEVEL || + polarity != ACPI_MADT_POLARITY_ACTIVE_LOW) + penalty = PIRQ_PENALTY_ISA_ALWAYS; + else +

Re: [Questions] perf c2c: What's the current status of perf c2c?

2015-12-09 Thread Stephane Eranian
Hi, On Wed, Dec 9, 2015 at 8:58 AM, Andi Kleen wrote: >> > the plan for me is to to use it some more to prove it's useful >> > and kick it to be merged with perf at some point >> >> So I never really liked the c2c tool because it was so narrowly >> focussed, it only works on NUMA thingies IIRC. >

Re: [PATCH V9 1/2] ACPI, PCI, irq: remove interrupt count restriction

2015-12-09 Thread Sinan Kaya
On 12/9/2015 11:59 AM, Andy Shevchenko wrote: >> + if (trigger != ACPI_MADT_TRIGGER_LEVEL || >> > + polarity != ACPI_MADT_POLARITY_ACTIVE_LOW) >> > + penalty = PIRQ_PENALTY_ISA_ALWAYS; >> > + else >> > + penalty = PIRQ_PENALTY_PCI_USING; >> > + >> >

Re: [v9, 6/6] fsl/fman: Add FMan MAC driver

2015-12-09 Thread Scott Wood
On Wed, 2015-12-09 at 04:10 -0600, Bucur Madalin-Cristian-B32716 wrote: > > -Original Message- > > From: David Miller [mailto:da...@davemloft.net] > > > > From: Scott Wood > > Date: Tue, 8 Dec 2015 16:44:38 -0600 > > > > > On Tue, 2015-12-08 at 14:18 -0600, Andy Fleming wrote: > > > > On

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