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

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

[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

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

[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

[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

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

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

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

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

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

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

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

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.

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

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.

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

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

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

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

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

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

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

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?

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

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

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

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

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

[PATCH] of/irq: move of_msi_map_rid declaration to the correct ifdef section

2015-12-09 Thread Rob Herring
In checking fixes for of_irq_find_parent declaration location, I found that of_msi_map_rid is also wrong. of_msi_map_rid is not implemented for Sparc, so it should not be in the Sparc specific section of the header. Move it to just depend on OF_IRQ. Cc: Frank Rowand Signed-off-by: Rob Herring

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

2015-12-09 Thread Vitaly Kuznetsov
Sander Eikelenboom writes: > 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) >>> } >>> #endif >>> >>> + if (paravirt_enabled()) >>> +

Re: [PATCH perf/core 21/22] perf: Fix machine.vmlinux_maps to make sure to clear the old one

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:33AM +0900, Masami Hiramatsu escreveu: > 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 > --- >

Re: [PATCH] powerpc/nvram: Fix a memory leak in err path

2015-12-09 Thread Nathan Fontenot
On 12/09/2015 04:00 AM, xinhui wrote: > > If kmemdup fails, We need kfree *buff* first then return -ENOMEM. > Otherwise there is a memory leak. > > Signed-off-by: Pan Xinhui Reviewed-by: Nathan Fontenot > --- > arch/powerpc/kernel/nvram_64.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Michal Hocko
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, we suppose that something that was >

Re: [PATCH] gpio: pl061: add support for wakeup configuration

2015-12-09 Thread Sudeep Holla
On 09/12/15 15:08, Linus Walleij wrote: On Fri, Nov 27, 2015 at 6:19 PM, Sudeep Holla wrote: The PL061 supports interrupts and those can be wakeup interrupts. We need to provide support for configuring those interrupts as wakeup sources. This patch adds irq_set_wake callback for PL061 so

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

2015-12-09 Thread Boris Ostrovsky
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) } #endif +if (paravirt_enabled()) +return

Re: [PATCH v2] pinctrl: mvebu: complain about missing group after checking variant

2015-12-09 Thread Linus Walleij
On Sat, Nov 28, 2015 at 11:26 AM, Sebastian Hesselbarth wrote: > Common MVEBU pinctrl driver core gets an array of controls to modify > a specific set of registers and an array of modes for each pingroup > from each of the different SoC families of MVEBU. > > Some SoC families comprise different

Re: [PATCH] gpio: pl061: add support for wakeup configuration

2015-12-09 Thread Linus Walleij
On Fri, Nov 27, 2015 at 6:19 PM, Sudeep Holla wrote: > The PL061 supports interrupts and those can be wakeup interrupts. We > need to provide support for configuring those interrupts as wakeup > sources. > > This patch adds irq_set_wake callback for PL061 so that GPIO interrupts > can be

Re: [PATCH perf/core 20/22] perf: Fix maps__fixup_overlappings to put used maps

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:31AM +0900, Masami Hiramatsu escreveu: > Since the __map_groups__insert got the given map, we don't > need to keep it. So put the maps. > > Refcnt debugger shows that the map_groups__fixup_overlappings > got a map twice but the group released it once. This pattern >

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

2015-12-09 Thread Peter Zijlstra
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] printk: help pr_debug and pr_devel to optimize out arguments

2015-12-09 Thread Aaron Conole
Arnd Bergmann writes: > 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 use whilst maintaining >> - * gcc's

Re: [PATCH perf/core 19/22] perf: fix hists_evsel to release hists

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:29AM +0900, Masami Hiramatsu escreveu: > 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

Applied "regmap: fix the warning about unused variable" to the regmap tree

2015-12-09 Thread Mark Brown
The patch regmap: fix the warning about unused variable has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH v2] gpiolib: tighten up ACPI legacy gpio lookups

2015-12-09 Thread Linus Walleij
Hi Dmitry, Sorry for me being so damned slow. On Fri, Nov 27, 2015 at 6:37 PM, Dmitry Torokhov wrote: > On Tue, Nov 17, 2015 at 02:43:14PM +0100, Linus Walleij wrote: >> On Wed, Nov 11, 2015 at 8:45 PM, Dmitry Torokhov >> wrote: >> >> > We should not fall back to the legacy unnamed gpio lookup

[PATCH] genksyms: Handle string literals with spaces in reference files

2015-12-09 Thread Michal Marek
The reference files use spaces to separate tokens, however, we must preserve spaces inside string literals. Currently the only case in the tree is struct edac_raw_error_desc in : $ KBUILD_SYMTYPES=1 make -s drivers/edac/amd64_edac.symtypes $ mv drivers/edac/amd64_edac.{symtypes,symref} $

Re: [PATCH 4/4] arm64: dts: add .dts for GICv3 Foundation model

2015-12-09 Thread Marc Zyngier
On 13/10/15 10:37, Andre Przywara wrote: > The ARMv8 Foundation model sports a command line parameter to use > a GICv3 emulation instead of the default GICv2 interrupt controller. > Add a new .dts file which reuses most of the definitions of the > existing model while just adding the required

Re: [PATCH 3/4] arm64: dts: split Foundation model dts to put the GIC separately

2015-12-09 Thread Marc Zyngier
On 13/10/15 10:37, Andre Przywara wrote: > The ARMv8 Foundation model can be run with a GICv2 or a GICv3. > To prepare for the GICv3 version of the .dts without code duplication, > move most of the nodes of the existing DT (except the GIC) into an > include file and just keep that include

Re: [PATCH 2/4] arm64: dts: Foundation model: increate GICC region to allow EOImode=1

2015-12-09 Thread Marc Zyngier
Hey Andre, On 13/10/15 10:37, Andre Przywara wrote: > Recent commits made the GIC driver use EOImode=1 for all GICs > that advertise the proper GICC region size. > To let the model benefit from the blessings of that mode, increase > the GICC region to its actual size of 8K. > > Signed-off-by:

Re: [PATCH 1/4] arm64: dts: prepare foundation-v8.dts to cope with GICv3

2015-12-09 Thread Marc Zyngier
On 13/10/15 10:37, Andre Przywara wrote: > To prepare the ARM foundation model to support GICv3, we adjust > the #address-cells property of the current GICv2 node to be > compatible with the two cells required for GICv3 later. > > Signed-off-by: Andre Przywara Acked-by: Marc Zyngier

Re: use-after-free in inet6_destroy_sock

2015-12-09 Thread Eric Dumazet
On Wed, Dec 9, 2015 at 6:59 AM, Marcelo Ricardo Leitner wrote: > On Wed, Dec 09, 2015 at 06:43:28AM -0800, Eric Dumazet wrote: > >> I can certainly send a patch, but maybe someone already cooked it and >> is testing it ? > > Speaking for me, I don't have it yet, at least not that fast. ;) > > But

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

2015-12-09 Thread Sander Eikelenboom
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) } #endif + if (paravirt_enabled()) + return -ENODEV; What about Xen Dom0? Jan

Re: [PATCH] regmap: speed up the regcache_init()

2015-12-09 Thread Mark Brown
On Wed, Dec 09, 2015 at 11:17:22AM +0800, Xiubo Li wrote: > Yes, usually when the register cache is not used, the number of the > defaults should be zero, but for some drivers like drv2267.c/led_lp8860.c > will add the defaults register values though the cache type is > REGCACHE_NONE for some

Re: [patch] blk-integrity: checking for NULL instead of IS_ERR

2015-12-09 Thread Jens Axboe
On 12/09/2015 03:21 AM, Dan Carpenter wrote: We recently changed bio_integrity_alloc() to return ERR_PTRs instead of NULL but these calls were missed. Fixes: 06c1e3902aa7 ('blk-integrity: empty implementation when disabled') Signed-off-by: Dan Carpenter Thanks, applied. -- Jens Axboe -- To

Re: [PATCH perf/core 18/22] perf stat: Fix cmd_stat to release cpu_map

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:27AM +0900, Masami Hiramatsu escreveu: > 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:

Re: [PATCH v2] MIPS: fix DMA contiguous allocation

2015-12-09 Thread Mel Gorman
On Wed, Dec 09, 2015 at 02:54:05PM +, Qais Yousef wrote: > Recent changes to how GFP_ATOMIC is defined seems to have broken the condition > to use mips_alloc_from_contiguous() in mips_dma_alloc_coherent(). > > I couldn't bottom out the exact change but I think it's this one > > d0164adc89f6

Re: use-after-free in inet6_destroy_sock

2015-12-09 Thread Marcelo Ricardo Leitner
On Wed, Dec 09, 2015 at 06:43:28AM -0800, Eric Dumazet wrote: > On Wed, Dec 9, 2015 at 6:15 AM, Dmitry Vyukov wrote: > > Hello, > > > > The following program causes use-after-free in inet6_destroy_sock: > > > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > > #include > >

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

2015-12-09 Thread Liang, Kan
> > On Wed, Feb 18, 2015 at 09:15:06AM -0800, tip-bot for Yan, Zheng wrote: > > +find_get_context(struct pmu *pmu, struct task_struct *task, > > + struct perf_event *event) > > { > > struct perf_event_context *ctx, *clone_ctx = NULL; > > struct perf_cpu_context *cpuctx; > > +

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Sebastian Frias
On 12/09/2015 03:32 PM, Michal Hocko wrote: On Wed 09-12-15 15:07:50, Marc Gonzalez wrote: On 09/12/2015 14:55, Michal Hocko wrote: On Tue 08-12-15 18:25:31, Sebastian Frias wrote: Hi, We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. The driver maps kmalloc'ed memory

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-12-09 Thread Radim Krčmář
2015-12-09 08:19+, Wu, Feng: >> -Original Message- >> From: Radim Krčmář [mailto:rkrc...@redhat.com] >> Sent: Tuesday, November 17, 2015 3:03 AM >> To: Wu, Feng >> Cc: pbonz...@redhat.com; k...@vger.kernel.org; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH] KVM: x86: Add

[PATCH v2] MIPS: fix DMA contiguous allocation

2015-12-09 Thread Qais Yousef
Recent changes to how GFP_ATOMIC is defined seems to have broken the condition to use mips_alloc_from_contiguous() in mips_dma_alloc_coherent(). I couldn't bottom out the exact change but I think it's this one d0164adc89f6 (mm, page_alloc: distinguish between being unable to sleep, unwilling to

Re: [PATCH v10 0/17] Add Analogix Core Display Port Driver

2015-12-09 Thread Heiko Stübner
Hi Yakir, Am Mittwoch, 9. Dezember 2015, 11:49:10 schrieb Yakir Yang: > Thanks a lot for great debugging. > > On 12/08/2015 11:33 PM, Heiko Stübner wrote: > > Hi Yakir, > > > > Am Montag, 7. Dezember 2015, 14:37:19 schrieb Yakir Yang: > >> The Samsung Exynos eDP controller and Rockchip

Re: [PATCH] cpufreq: tegra: add regulator dependency for T124

2015-12-09 Thread Mark Brown
On Wed, Dec 09, 2015 at 12:03:27PM +, Jon Hunter wrote: > On 08/12/15 21:52, Arnd Bergmann wrote: > > My first attempt was to implement a helper for this function > > for regulator_sync_voltage, but Mark Brown explained: > >We don't do this for *all* regulator API functions - there's

Re: use-after-free in inet6_destroy_sock

2015-12-09 Thread Eric Dumazet
On Wed, Dec 9, 2015 at 6:15 AM, Dmitry Vyukov wrote: > Hello, > > The following program causes use-after-free in inet6_destroy_sock: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > #include > #include > #include >

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 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) > } > #endif > > + if (paravirt_enabled()) > + return -ENODEV; What about Xen Dom0? Jan -- To unsubscribe from this

Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration

2015-12-09 Thread Johannes Weiner
On Tue, Dec 08, 2015 at 01:56:42PM -0800, David Rientjes wrote: > On Tue, 8 Dec 2015, Johannes Weiner wrote: > > > /home/hannes/src/linux/linux/mm/page_alloc.c: In function ‘build_zonelists’: > > /home/hannes/src/linux/linux/mm/page_alloc.c:4171:16: warning: comparison > > between ‘enum

Re: [PATCH v2 1/3] dt-binding: power: Add otg regulator binding

2015-12-09 Thread Rob Herring
On Wed, Dec 9, 2015 at 6:55 AM, Tim Bird wrote: > On 12/08/2015 08:11 PM, Rob Herring wrote: >> On Tue, Dec 08, 2015 at 04:40:16PM -0800, Tim Bird wrote: >>> Add a binding for the regulator which controls the OTG chargepath switch. >>> The OTG switch gets its power from pm8941_5vs1, and that

Re: [PATCH v2] usb: Use memdup_user to reuse the code

2015-12-09 Thread gre...@linuxfoundation.org
On Wed, Dec 09, 2015 at 08:02:53AM +, Pathak, Rahul (R.) wrote: > Hello Alan, > > Should I resend this patch version with the tear line correction? Why wouldn't you? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH perf/core 17/22] perf: Fix __machine__addnew_vdso to put dso after add to dsos

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:25AM +0900, Masami Hiramatsu escreveu: > Fix __machine__addnew_vdso to put dso after add to dsos because > the dso is already gotten by the dsos via __dsos__add(). > > This function is called finally from machine__findnew_vdso() > which locks machine->dsos.lock. And

Re: [PATCH -mm] net: drop tcp_memcontrol.c

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 03:50:00PM +0300, Vladimir Davydov wrote: > tcp_memcontrol.c only contains legacy memory.tcp.kmem.* file definitions > and mem_cgroup->tcp_mem init/destroy stuff. This doesn't belong to > network subsys. Let's move it to memcontrol.c. This also allows us to > reuse generic

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

2015-12-09 Thread Boris Ostrovsky
Adding the rtc platform device in a Xen PV guests causes an IRQ conflict because these guests do not have a legacy PIC. In a single VCPU Xen PV guest we should have: /proc/interrupts: CPU0 0: 4934 xen-percpu-virq timer0 1: 0 xen-percpu-ipi spinlock0

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Michal Hocko
On Wed 09-12-15 15:07:50, Marc Gonzalez wrote: > On 09/12/2015 14:55, Michal Hocko wrote: > > On Tue 08-12-15 18:25:31, Sebastian Frias wrote: > >> Hi, > >> > >> We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. > >> > >> The driver maps kmalloc'ed memory to user space. > >

Re: [PATCH 7/8] mm: memcontrol: account "kmem" consumers in cgroup2 memory controller

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 02:30:38PM +0300, Vladimir Davydov wrote: > On Tue, Dec 08, 2015 at 01:34:24PM -0500, Johannes Weiner wrote: > > The original cgroup memory controller has an extension to account slab > > memory (and other "kernel memory" consumers) in a separate "kmem" > > counter, once

Re: [PATCH] MIPS: Fix DMA contiguous allocation

2015-12-09 Thread Qais Yousef
On 12/09/2015 11:36 AM, Mel Gorman wrote: On Tue, Dec 08, 2015 at 02:19:39PM -0800, Andrew Morton wrote: On Tue, 8 Dec 2015 10:18:50 + Qais Yousef wrote: --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c @@ -145,7 +145,7 @@ static void *mips_dma_alloc_coherent(struct

Re: [PATCH perf/core 16/22] perf: Fix __cmd_top and perf_session__process_events to put the idle thread

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:23AM +0900, Masami Hiramatsu escreveu: > Since perf_session__register_idle_thread() got the idle thread, > caller functions have to put it afterwards. > Note that since the thread was already inserted to the session > list, it will be released when the session is

Re: [PATCH perf/core 15/22] perf: Fix map_groups__clone to put cloned map

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:20AM +0900, Masami Hiramatsu escreveu: > Fix map_groups__clone to put cloned map after > inserting it to the map_groups. Thanks, applied! - Arnaldo > Refcnt debugger shows: > > [0] > Unreclaimed map: 0x2a27ee0 > Refcount +1 => 1 at >

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

2015-12-09 Thread Jarkko Sakkinen
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 +1100, James Morris wrote: > > > > On Mon, 7 Dec 2015, Jarkko

Re: [PATCH 0/2] ARM: dts: Use MMC pwrseq instead regulators for IGEP WiFi init

2015-12-09 Thread Agustí Fontquerni
> I guess will be interesting cc'ing the ISEE people. Added Agusti and Pau. > > Thanks, > Enric Thank you. Ack. We will try with new versions (wilink8) Agusti -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [v7] serial: 8250_dw: Add support for big-endian MMIO accesses

2015-12-09 Thread Andy Shevchenko
On Wed, Dec 9, 2015 at 12:57 AM, Noam Camus wrote: > From: Greg KH > Sent: Sunday, October 18, 2015 8:57 AM > >> Please make it against my tty-testing branch of tty.git on > git.kernel.org, that is the issue here, you are working against a > "clean" tree, not one with all of the other tty/serial

Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()

2015-12-09 Thread One Thousand Gnomes
On Wed, 9 Dec 2015 16:45:12 +0300 Dan Carpenter wrote: > Everyone knows I didn't test it but it's an obvious one line fix for > memory corruption. If no one uses the code, at least this is harmless > and silences a static checker warning. > > In olden times we used to say, "Oh this bounds

use-after-free in inet6_destroy_sock

2015-12-09 Thread Dmitry Vyukov
Hello, The following program causes use-after-free in inet6_destroy_sock: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include #include #include int cfd = -1; void *thr(void *arg) { cfd = syscall(SYS_socket,

Re: [PATCH perf/core 14/22] perf: Fix dso__load_sym to put dso

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:11:18AM +0900, Masami Hiramatsu escreveu: > +++ b/tools/perf/util/symbol-elf.c > @@ -1045,6 +1045,8 @@ int dso__load_sym(struct dso *dso, struct map *map, > /* kmaps already got it */ > map__put(curr_map); >

Re: [PATCH 3/3] irqchip/gic: assign irqchip dynamically

2015-12-09 Thread Marc Zyngier
On 23/10/15 23:15, Linus Walleij wrote: > Instead of having the irqchip being a static struct, make it part > of the per-instance data so we can assign it a dynamic name. This > has the usable side effect of displaying the GIC with an instance > number as GIC0, GIC1 ... GICn in /proc/interrupts,

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Marc Gonzalez
On 09/12/2015 14:55, Michal Hocko wrote: > On Tue 08-12-15 18:25:31, Sebastian Frias wrote: >> Hi, >> >> We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. >> >> The driver maps kmalloc'ed memory to user space. > > This sounds like a terrible idea to me. Why don't you simply

[no subject]

2015-12-09 Thread Fabrice Triboix
unsubscribe Company registration number: 08121803 Place of registration: England This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient,

Re: [PATCH 2/3] irqchip/gic: support RealView variant setup

2015-12-09 Thread Marc Zyngier
Hi Linus, On 23/10/15 23:15, Linus Walleij wrote: > The ARM RealView PB11MPCore reference design has some special > bits in a system controller register to set up the GIC in one > of three modes: legacy, new with DCC, new without DCC. The > register is also used to enable FIQ. > > Since the

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

2015-12-09 Thread Peter Zijlstra
On Wed, Dec 09, 2015 at 06:02:44AM -0500, Joe Mario wrote: > Yes, that would be a great enhancement, This is hardly new though; I've outlined the very same the first time the c2c thing got mentioned. > but is it any reason to hold up the current implementation? I just wonder how much of c2c is

Re: [PATCH 3.16.y-ckt 059/126] thermal: exynos: Fix unbalanced regulator disable on probe failure

2015-12-09 Thread Luis Henriques
On Wed, Dec 09, 2015 at 10:22:37PM +0900, Krzysztof Kozlowski wrote: > W dniu 09.12.2015 o 18:37, Luis Henriques pisze: > > 3.16.7-ckt21 -stable review patch. If anyone has any objections, please > > let me know. > > > > -- > > > > From: Krzysztof Kozlowski > > > > commit

Re: [PATCH 01/20] drm: use __u{32,64} instead of uint{32,64}_t in virtgpu_drm.h

2015-12-09 Thread Gabriel Laskar
On Mon, 7 Dec 2015 13:29:41 + Emil Velikov wrote: > On 5 December 2015 at 21:03, Dave Airlie wrote: > > On 5 December 2015 at 00:22, Emil Velikov wrote: > > > >> On 30 November 2015 at 14:10, Gabriel Laskar wrote: > >> > >>> Signed-off-by: Gabriel Laskar > >>> CC: Emil Velikov >

Re: m(un)map kmalloc buffers to userspace

2015-12-09 Thread Michal Hocko
On Tue 08-12-15 18:25:31, Sebastian Frias wrote: > Hi, > > We are porting a driver from Linux 3.4.39+ to 4.1.13+, CPU is Cortex-A9. > > The driver maps kmalloc'ed memory to user space. This sounds like a terrible idea to me. Why don't you simply use the page allocator directly? Try to imagine

Re: [PATCH] netfilter: Initialize local variables to NULL, to prevent using them when uninitialized.

2015-12-09 Thread Pablo Neira Ayuso
We already have this: http://git.kernel.org/cgit/linux/kernel/git/pablo/nf.git/commit/?id=8e662164abb4a8fde701a46e1431980f9e325742 We'll be sending this today to David to avoid this annoyance. Thanks for you patch anyway. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 0/7] perf stat: Change event enable code

2015-12-09 Thread Adrian Hunter
On 08/12/15 15:53, Arnaldo Carvalho de Melo wrote: > Em Tue, Dec 08, 2015 at 09:29:51AM +0200, Adrian Hunter escreveu: >> On 07/12/15 23:09, Arnaldo Carvalho de Melo wrote: >>> Em Thu, Dec 03, 2015 at 10:06:39AM +0100, Jiri Olsa escreveu: while testing ftrace:function event I noticed we

Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()

2015-12-09 Thread Dan Carpenter
Everyone knows I didn't test it but it's an obvious one line fix for memory corruption. If no one uses the code, at least this is harmless and silences a static checker warning. In olden times we used to say, "Oh this bounds checking is crap but it's root only so let's leave it alone." But

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

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 10:55:16AM +0100, Borislav Petkov escreveu: > Hey acme, > > it seems you've forgotten this one. > > I still need it please :-) Applying it now, thanks for the reminder. - Arnaldo > On Thu, Mar 05, 2015 at 11:32:13AM +0100, Ingo Molnar wrote: > > > > Boris reported

Re: [PATCH perf/core 00/22] perf refcnt debugger API and fixes

2015-12-09 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 09, 2015 at 11:10:48AM +0900, Masami Hiramatsu escreveu: > Hi Arnaldo, > > Here is a series of patches for perf refcnt debugger and > some fixes. > > In this series I've replaced all atomic reference counters > with the refcnt interface, including dso, map, map_groups, > thread,

Re: [PATCH v2 2/2] ARM: dts: exynos542x: add GSCL block parent clock management to pm domain

2015-12-09 Thread Krzysztof Kozlowski
W dniu 09.12.2015 o 17:07, Marek Szyprowski pisze: > Add support for restoring GScaler parent clocks configuration when GSCL > power domain is turned on. > > Signed-off-by: Marek Szyprowski > --- > arch/arm/boot/dts/exynos5420.dtsi | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-)

Re: [PATCH v2 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-09 Thread Ondrej Zary
On Tuesday 08 December 2015 03:05:11 Finn Thain wrote: > > On Sun, 6 Dec 2015, Ondrej Zary wrote: > > > Add I/O register mapping for NCR53C400A and enable PDMA mode to > > improve performance and fix non-working IRQ. > > > > Tested with HP C2502 (and user-space enabler). > > > > Signed-off-by:

<    3   4   5   6   7   8   9   10   11   12   >