Re: [tpmdd-devel] [PATCH] tpm: fix rollback/cleanup before tpm_chip_register()

2016-02-02 Thread Jason Gunthorpe
On Sat, Jan 30, 2016 at 06:05:42PM -0800, Jarkko Sakkinen wrote: > The release-callback is not used before the device is attached to the > device hierarchy. This caused resources not to cleanup properly if the > device driver initialization failed before tpm_chip_register(). This commentary is

[PATCH] dax: allow DAX to look up an inode's block device

2016-02-02 Thread Ross Zwisler
There are a number of places in dax.c that look up the struct block_device associated with an inode. Previously this was done by just using inode->i_sb->s_bdev. This is correct in some cases, such as when using ext2 and ext4. However, for raw block devices and for XFS with a real-time device,

Re: [PATCH] media: Media Controller fix to not let stream_count go negative

2016-02-02 Thread Sakari Ailus
Hi Shuah, On Tue, Feb 02, 2016 at 04:04:50PM -0700, Shuah Khan wrote: > On 02/02/2016 03:53 PM, Sakari Ailus wrote: > > Hi Shuah, > > > > On Sat, Jan 30, 2016 at 01:10:52PM -0700, Shuah Khan wrote: > >> Change media_entity_pipeline_stop() to not decrement > >> stream_count of an inactive media

Re: [PATCH v2 00/17] Add a bakvol module in UBI layer for MLC paired page power loss issue

2016-02-02 Thread Richard Weinberger
Bean, Am 02.02.2016 um 03:30 schrieb Bean Huo: > This version patches based on Linux kernel 4.2-rc7. > > v2: >1.Add CRC32 protection for user OOB area data. >2.Move recovery action from attach step to ubifs mount step. >3.Add more comments for some key function. >4.standard

Re: [PATCH v3 2/3] x86: query dynamic DEBUG_PAGEALLOC setting

2016-02-02 Thread Andrew Morton
On Tue, 2 Feb 2016 23:37:50 +0100 Christian Borntraeger wrote: > On 02/02/2016 11:21 PM, Andrew Morton wrote: > > On Tue, 2 Feb 2016 22:53:36 +0100 Christian Borntraeger > > wrote: > > > I don't think we should have a CONFIG_DEBUG_PAGEALLOC that does some > stuff > and then

Re: [PATCH] media: Media Controller fix to not let stream_count go negative

2016-02-02 Thread Shuah Khan
On 02/02/2016 03:53 PM, Sakari Ailus wrote: > Hi Shuah, > > On Sat, Jan 30, 2016 at 01:10:52PM -0700, Shuah Khan wrote: >> Change media_entity_pipeline_stop() to not decrement >> stream_count of an inactive media pipeline. Doing so, >> results in preventing starting the pipeline. >> >>

Re: [PATCH] Staging: fix coding style in rtl8188eu/core

2016-02-02 Thread Colin Vidal
On Tue, 2016-02-02 at 23:54 +0100, Colin Vidal wrote: > Set constant operand on right of test, and refactor the code in a > more > compact and readable way. > > Signed-off-by: Colin Vidal > --- >  drivers/staging/rtl8188eu/core/rtw_iol.c | 13 + >  1 file changed, 5 insertions(+), 8

Re: [PATCH] mm/hugetlb: fix gigantic page initialization/allocation

2016-02-02 Thread David Rientjes
On Tue, 2 Feb 2016, Mike Kravetz wrote: > Attempting to preallocate 1G gigantic huge pages at boot time with > "hugepagesz=1G hugepages=1" on the kernel command line will prevent > booting with the following: > > kernel BUG at mm/hugetlb.c:1218! > > When mapcount accounting was reworked, the

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Alexey Brodkin
Hi Vineet, On Tue, 2016-02-02 at 18:36 +0300, Alexey Brodkin wrote: > Hi Vineet, > > On Tue, 2016-02-02 at 19:59 +0530, Vineet Gupta wrote: > > Hi Alexey, > > > > On Tuesday 02 February 2016 06:45 PM, Alexey Brodkin wrote: > > > Hi Vineet, > > > > > > On Tue, 2016-02-02 at 16:28 +0530, Vineet

Re: [PATCH 1/2] mm, oom: introduce oom reaper

2016-02-02 Thread David Rientjes
On Tue, 2 Feb 2016, Tetsuo Handa wrote: > Maybe we all agree with introducing OOM reaper without queuing, but I do > want to see a guarantee for scheduling for next OOM-kill operation before > trying to build a reliable queuing chain. > The race can be fixed in two ways which I've already

[PATCH] Staging: fix coding style in rtl8188eu/core

2016-02-02 Thread Colin Vidal
Set constant operand on right of test, and refactor the code in a more compact and readable way. Signed-off-by: Colin Vidal --- drivers/staging/rtl8188eu/core/rtw_iol.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c

Re: [PATCH] media: Media Controller fix to not let stream_count go negative

2016-02-02 Thread Sakari Ailus
Hi Shuah, On Sat, Jan 30, 2016 at 01:10:52PM -0700, Shuah Khan wrote: > Change media_entity_pipeline_stop() to not decrement > stream_count of an inactive media pipeline. Doing so, > results in preventing starting the pipeline. > > Signed-off-by: Shuah Khan > --- > drivers/media/media-entity.c

Re: [PATCH] Staging: fix coding style in rtl8188eu/core

2016-02-02 Thread Joe Perches
On Tue, 2016-02-02 at 22:28 +0100, Colin Vidal wrote: > On Tue, 2016-02-02 at 13:14 -0800, Joe Perches wrote: > > On Tue, 2016-02-02 at 21:57 +0100, Colin Vidal wrote: > > > Set constant on the left of the test, and jump a new line to avoid to > > > exceed the 80 char length limit. > > [] > > >

Re: [PATCH 1/2] mm, oom: introduce oom reaper

2016-02-02 Thread David Rientjes
On Tue, 2 Feb 2016, Michal Hocko wrote: > > Not exclude them, but I would have expected untrack_pfn(). > > My understanding is that vm_normal_page will do the right thing for > those mappings - especially for CoW VM_PFNMAP which are normal pages > AFAIU. Wrt. to untrack_pfn I was relying that

Re: [PATCH] mm/hugetlb: fix gigantic page initialization/allocation

2016-02-02 Thread Kirill A. Shutemov
On Tue, Feb 02, 2016 at 02:33:40PM -0800, Mike Kravetz wrote: > Attempting to preallocate 1G gigantic huge pages at boot time with > "hugepagesz=1G hugepages=1" on the kernel command line will prevent > booting with the following: > > kernel BUG at mm/hugetlb.c:1218! > > When mapcount accounting

Re: [PATCH v6 20/22] usb: dwc2: host: Properly set even/odd frame

2016-02-02 Thread Doug Anderson
Kever, On Mon, Feb 1, 2016 at 11:46 PM, Kever Yang wrote: > Doug, > > > On 01/29/2016 10:20 AM, Douglas Anderson wrote: >> >> When setting up ISO and INT transfers dwc2 needs to specify whether the >> transfer is for an even or an odd frame (or microframe if the controller >> is running in high

Re: [PATCH 02/11] mfd: axp20x: Add bindings for AXP809 PMIC

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 06:27:35PM +0800, Chen-Yu Tsai wrote: > This patch adds the basic and regulator bindings for the X-Powers AXP809 > PMIC. > > Also update the DC-DC converter operating frequency for AXP22X/AXP80X. > > Signed-off-by: Chen-Yu Tsai > --- >

Re: [RFC 00/26] perf tools: Introduce hists specific format entries

2016-02-02 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 02, 2016 at 07:22:47PM -0300, Arnaldo Carvalho de Melo escreveu: > Ok, so I rebased it on top of my perf/core branch, adjusting some stuff > wrt recent patchkits from Namhyung (hist_entry__callchain_fprintf() is > no more, etc), and renaming that perf_hpp_list->{list,sort_list} to >

[PATCH net-next] hv_netvsc: Increase delay for RNDIS_STATUS_NETWORK_CHANGE

2016-02-02 Thread Haiyang Zhang
We simulates a link down period for RNDIS_STATUS_NETWORK_CHANGE message to trigger DHCP renew. User daemons may need multiple seconds to trigger the link down event. (e.g. ifplugd: 5sec, network-manager: 4sec.) So update this link down period to 10 sec to properly trigger DHCP renew.

Re: [PATCH v5 3/3] Add BUG_XX() debugging hard/soft lockup detection

2016-02-02 Thread Jeffrey Merkey
> > Please remember to add version history, so I can tell what changed. > What command do I give to git when it creates the patch from git format-patch that outputs what you are looking for or do I have to add that manually. The diff of files changed? > > I am not sure I am a fan of this. You

Re: [PATCH v2 3/3] input: touchscreen: ad7879: add device tree support

2016-02-02 Thread Stefan Agner
Hi Julia, On 2016-01-29 23:06, Julia Lawall wrote: > I haven't checked the entire context, but it look suspicious to have the > kfree in the remove function and not in the probe function. Oh, yes, clearly an error I introduced. Will take a look at that. > > Unrlatedly, do the probe and remove

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2016-02-02 Thread Paul E. McKenney
On Tue, Feb 02, 2016 at 06:23:37PM +0100, Peter Zijlstra wrote: > > > On 2 February 2016 07:44:33 CET, "Paul E. McKenney" > wrote: > > > > >> If so, do we also need to take the following pairing into > >consideration? > >> > >> o smp_store_release() -> READ_ONCE(); if ;smp_rmb(); > > >

Re: [PATCH v3 2/3] x86: query dynamic DEBUG_PAGEALLOC setting

2016-02-02 Thread Christian Borntraeger
On 02/02/2016 11:21 PM, Andrew Morton wrote: > On Tue, 2 Feb 2016 22:53:36 +0100 Christian Borntraeger > wrote: > I don't think we should have a CONFIG_DEBUG_PAGEALLOC that does some stuff and then a commandline parameter or CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT to enable more

[PATCH] mm/hugetlb: fix gigantic page initialization/allocation

2016-02-02 Thread Mike Kravetz
Attempting to preallocate 1G gigantic huge pages at boot time with "hugepagesz=1G hugepages=1" on the kernel command line will prevent booting with the following: kernel BUG at mm/hugetlb.c:1218! When mapcount accounting was reworked, the setting of compound_mapcount_ptr in

Re: [PATCH v3 1/2] dt-bindings: add sun4i SPDIF transceiver bindings

2016-02-02 Thread Maxime Ripard
Hi, On Tue, Feb 02, 2016 at 03:49:53PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Add devicetree bindings for the SPDIF transceiver found on > found on Allwinners A10 and A20 SoCs. > > Signed-off-by: Marcus Cooper > --- > .../devicetree/bindings/sound/sun4i,spdif.txt |

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2016-02-02 Thread Paul E. McKenney
On Tue, Feb 02, 2016 at 09:56:14AM -0800, Linus Torvalds wrote: > On Tue, Feb 2, 2016 at 4:02 AM, Paul E. McKenney > wrote: > > > > The sorts of things I am really worried about are abominations like this > > (and far worse): > > That one doesn't have any causal chain that I can see, so I agree

Re: [PATCH] add support for DWC UFS Host Controller

2016-02-02 Thread Julian Calaby
Hi Joao, On Wed, Feb 3, 2016 at 1:47 AM, Joao Pinto wrote: > Hi, > In order to make a ufs-dwc-pci glue driver I will need to create a "pci driver > lib" like we have already for platform (ufshcd-pltfm.c). Should I call the > samsung glue driver ufs-samsung-pci.c which will use common pci

Re: [RFC 00/26] perf tools: Introduce hists specific format entries

2016-02-02 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 02, 2016 at 07:22:47PM -0300, Arnaldo Carvalho de Melo escreveu: > Ok, so I rebased it on top of my perf/core branch, adjusting some stuff > wrt recent patchkits from Namhyung (hist_entry__callchain_fprintf() is > no more, etc), and renaming that perf_hpp_list->{list,sort_list} to >

Re: [RFC 00/26] perf tools: Introduce hists specific format entries

2016-02-02 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 25, 2016 at 03:37:43PM +0100, Jiri Olsa escreveu: > On Mon, Jan 25, 2016 at 11:24:24PM +0900, Namhyung Kim wrote: > > Hi Jiri, > > > > On Mon, Jan 25, 2016 at 08:15:52AM +0100, Jiri Olsa wrote: > > > On Mon, Jan 18, 2016 at 10:23:58AM +0100, Jiri Olsa wrote: > > > > hi, > > > >

Re: [PATCH v3 2/3] x86: query dynamic DEBUG_PAGEALLOC setting

2016-02-02 Thread Andrew Morton
On Tue, 2 Feb 2016 22:53:36 +0100 Christian Borntraeger wrote: > >> I don't think we should have a CONFIG_DEBUG_PAGEALLOC that does some stuff > >> and then a commandline parameter or CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT > >> to enable more stuff. It should either be all enabled by the

Re: [PATCH 2/5] cpufreq: governor: Create separate sysfs-ops

2016-02-02 Thread Saravana Kannan
On 02/02/2016 11:40 AM, Rafael J. Wysocki wrote: On Tue, Feb 2, 2016 at 6:01 PM, Juri Lelli wrote: Hi Rafael, On 02/02/16 17:35, Rafael J. Wysocki wrote: On Tue, Feb 2, 2016 at 4:47 PM, Juri Lelli wrote: Hi Viresh, On 02/02/16 16:27, Viresh Kumar wrote: Until now, governors

Re: [linux-sunxi] [PATCH v2 4/5] ARM: dts: sun8i-h3: Add R_PIO controller node to the dtsi

2016-02-02 Thread Julian Calaby
Hi Krzysztof, On Wed, Feb 3, 2016 at 8:21 AM, Krzysztof Adamski wrote: > Add the corresponding device node for R_PIO on H3 to the dtsi. Support > for the controller was added in earlier commit. > > Signed-off-by: Krzysztof Adamski > --- >

Re: [PATCH v4 4/4] pr_emerg add WARN_XX() debugger options

2016-02-02 Thread Jeffrey Merkey
On 2/2/16, Maciej W. Rozycki wrote: > On Mon, 1 Feb 2016, Jeffrey Merkey wrote: > >> If a debugger is loaded it will not crash, just enter the debugger. >> But yes, it will int3 if set and no debugger has been loaded to handle >> the int3 condition. Hmmm. Maybe its better just to skip calling

Re: [PATCH] rtlwifi: Fix reusable codes in core.c

2016-02-02 Thread Julian Calaby
Hi Byeoungwook, On Wed, Feb 3, 2016 at 2:48 AM, Byeoungwook Kim wrote: > rtl_*_delay() functions were reused same codes about addr variable. > So i have converted to rtl_addr_delay() from code about addr variable. > > Conditional codes in rtl_addr_delay() were improved in readability and >

[PATCH v2] ARM: dts: Add dts for Uniwest evi

2016-02-02 Thread Joshua Clayton
Uniwest evi is a portable electrical eddy current non-destructive testing device. Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-evi.dts | 506 2 files changed, 507 insertions(+) create mode 100644

Re: [PATCH] target: fix cast from pointer to phys_addr_t

2016-02-02 Thread Nicholas A. Bellinger
(Adding Andy CC') On Mon, 2016-02-01 at 17:29 +0100, Arnd Bergmann wrote: > The uio_mem structure has a member that is a phys_addr_t, but can > be a number of other types too. The target core driver attempts > to assign a pointer from vmalloc() to it, by casting it to > phys_addr_t, but that

Re: [PATCH 2/9] ARC: [dts] Introduce Timer bindings

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 04:28:52PM +0530, Vineet Gupta wrote: > ARC Timers have historically been probed directly. > As precursor to start probing Timers thru DT introduce these bindings > > Cc: Daniel Lezcano > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Signed-off-by: Vineet Gupta >

Re: [PATCHv2 2/2] mm: downgrade VM_BUG in isolate_lru_page() to warning

2016-02-02 Thread Kirill A. Shutemov
On Tue, Feb 02, 2016 at 12:58:44PM -0800, Andrew Morton wrote: > On Tue, 2 Feb 2016 19:21:01 +0300 "Kirill A. Shutemov" > wrote: > > > Calling isolate_lru_page() is wrong and shouldn't happen, but it not > > nessesary fatal: the page just will not be isolated if it's not on LRU. > > > > Let's

Re: [PATCH v3 2/3] x86: query dynamic DEBUG_PAGEALLOC setting

2016-02-02 Thread Christian Borntraeger
On 02/02/2016 10:51 PM, David Rientjes wrote: > On Thu, 28 Jan 2016, David Rientjes wrote: > >> On Thu, 28 Jan 2016, Christian Borntraeger wrote: >> >>> Indeed, I only touched the identity mapping and dump stack. >>> The question is do we really want to change free_init_pages as well? >>> The

Re: sound: another WARNING in rawmidi_transmit_ack

2016-02-02 Thread Dmitry Vyukov
On Mon, Feb 1, 2016 at 12:55 PM, Takashi Iwai wrote: > On Mon, 01 Feb 2016 12:31:20 +0100, > Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers a splash of WARNINGs in rawmidi_transmit_ack. >> Takashi, I am on commit 36f90b0a2ddd60823fe193a85e60ff1906c2a9b3 + a >> bunch of

Re: [PATCH 5/5] cpufreq: Get rid of ->governor_enabled and its lock

2016-02-02 Thread Rafael J. Wysocki
On Tue, Feb 2, 2016 at 11:57 AM, Viresh Kumar wrote: > Invalid state-transitions is verified by governor core now What about the governors that don't use cpufreq_governor_dbs()? > and there is no need to replicate that in cpufreq core. Also we don't drop > policy->rwsem anymore, which makes

Re: [PATCH v3 2/3] x86: query dynamic DEBUG_PAGEALLOC setting

2016-02-02 Thread David Rientjes
On Thu, 28 Jan 2016, David Rientjes wrote: > On Thu, 28 Jan 2016, Christian Borntraeger wrote: > > > Indeed, I only touched the identity mapping and dump stack. > > The question is do we really want to change free_init_pages as well? > > The unmapping during runtime causes significant overhead,

Re: [PATCH v2] unix: properly account for FDs passed over unix sockets

2016-02-02 Thread Hannes Frederic Sowa
Hi Willy, On 02.02.2016 21:39, Willy Tarreau wrote: On Tue, Feb 02, 2016 at 09:32:56PM +0100, Hannes Frederic Sowa wrote: But "struct pid *" in unix_skb_parms should be enough to get us to corresponding "struct cred *" so we can decrement the correct counter during skb destruction. So: We

Re: [PATCH 4/5] cpufreq: Don't drop rwsem before calling CPUFREQ_GOV_POLICY_EXIT

2016-02-02 Thread Rafael J. Wysocki
On Tue, Feb 2, 2016 at 11:57 AM, Viresh Kumar wrote: > Commit 955ef4833574 ("cpufreq: Drop rwsem lock around > CPUFREQ_GOV_POLICY_EXIT") dropped these because of some ABBA lockup > issues. > > The previous commit has fixed them all and we don't need to drop these > locks anymore. > >

Re: [PATCHv2] mm/slab: fix race with dereferencing NULL ptr in alloc_calls_show

2016-02-02 Thread David Rientjes
On Tue, 2 Feb 2016, Dmitry Safonov wrote: > diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h > index b7e57927..43634cd 100644 > --- a/include/linux/slub_def.h > +++ b/include/linux/slub_def.h > @@ -101,16 +101,6 @@ struct kmem_cache { > struct kmem_cache_node

Re: [PATCH 2/2] dax: fix bdev NULL pointer dereferences

2016-02-02 Thread Jared Hulbert
On Tue, Feb 2, 2016 at 8:51 AM, Dan Williams wrote: > On Tue, Feb 2, 2016 at 12:05 AM, Jared Hulbert wrote: > [..] >> Well... as CONFIG_BLOCK was not required with filemap_xip.c for a >> decade. This CONFIG_BLOCK dependency is a result of an incremental >> feature from a certain point of view

Re: [PATCH] Documentation: rockchip-dw-mshc: add RK3036 dw-mshc description

2016-02-02 Thread Heiko Stübner
Am Dienstag, 26. Januar 2016, 10:34:14 schrieb Shawn Lin: > rk3036 dtsi file add dw-mshc compatible "rockchip,rk3036-dw-mshc" > but didn't add it into rockchip-dw-mshc.txt. > > Signed-off-by: Shawn Lin applied to my dts32 branch for 4.6 with Rob's Ack Thanks Heiko

[PATCH v3 1/6] alienware-wmi: Clean up whitespace for ASM100 platform

2016-02-02 Thread Mario Limonciello
This brings them more in line with the usage of whitespace in other platforms. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/alienware-wmi.c

[PATCH v3 2/6] alienware-wmi: Add support for new platform: X51-R3

2016-02-02 Thread Mario Limonciello
The X51-R3 is in the X51 family. It includes 3 internal lighting zones as well as is the first AW desktop that includes support for a graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 24 +++- 1 file changed, 19 insertions(+), 5

[PATCH v3 6/6] alienware-wmi: whitespace improvements

2016-02-02 Thread Mario Limonciello
These were some items that were pointed out in previous patches that weren't caught be previous reviewers, but should be applied to other parts of the driver as well. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 20 +++- 1 file changed, 7

Re: [RFC PATCH] ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board

2016-02-02 Thread Heiko Stübner
Am Freitag, 29. Januar 2016, 16:49:21 schrieb Xing Zheng: > If we playback the 8KHz FS audio with the 256 mclk_fs, we need the > mclk = 256 * 8000 = 2.048MHz, the frac div is 594 / 2.048 = 290, > the frac div value 0x00809015 set to the CRU_CLKSEL7_CON will cause > to hang. > > We increase the

[PATCH v3 5/6] alienware-wmi: Add support for two new systems: ASM200 and ASM201.

2016-02-02 Thread Mario Limonciello
Both of these systems support: * 2 lighting control zones * HDMI mux control * deep sleep control (to enable wakup from controller) The ASM201 also supports the external graphics amplifier. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 32

[PATCH v3 4/6] alienware-wmi: Add support for deep sleep control.

2016-02-02 Thread Mario Limonciello
Allow for user configuration of BIOS settings that allow the system to be turned on via HID devices. The feature requires hardware architectural modifications and can not be supported on existing systems. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 95

[PATCH v3 3/6] alienware-wmi: Add initial support for alienware graphics amplifier.

2016-02-02 Thread Mario Limonciello
The alienware graphics amplifier is a device that provides external access to a full PCIe slot, USB hub, and additional control zone. This patch enables support for reading status whether the cable is plugged in as well as for setting the colors in the new zone on the amplifier. Signed-off-by:

[PATCH v3 0/6] alienware-wmi: new platform and feature support

2016-02-02 Thread Mario Limonciello
I've got some extensions for the alienware-wmi driver that have been introduced for a few new platforms and can be controlled via the WMI interface. Changes from V2: - add alienware-wmi to subjects (all patches) - fix indentation on 2 changing comments (patch 3/6) - remove goto error on amplifier

Re: [RFC PATCH 11/19] cpufreq: assert policy->rwsem is held in __cpufreq_governor

2016-02-02 Thread Saravana Kannan
On 02/01/2016 10:36 PM, Viresh Kumar wrote: On 01-02-16, 22:00, Rafael J. Wysocki wrote: I'm not sure what you mean by "the sysfs lock" here? The policy rwsem or something else? He perhaps referred to the s_active.lock that we see in traces. Yeah, that's what I mean. I generally don't use

Re: [PATCH v8 0/2] Add Rockchip Inno-HDMI driver

2016-02-02 Thread Heiko Stübner
Hi Mark, Am Freitag, 29. Januar 2016, 14:42:48 schrieb Yakir Yang: > Here are a brief introduction to Innosilicon HDMI IP: > - Support HDMI 1.4a, HDCP 1.2 and DVI 1.0 standard compliant transmitter > - Support HDMI1.4 a/b 3D function defined in HDMI 1.4 a/b spec > - Digital video interface

Re: [RFC PATCH 11/19] cpufreq: assert policy->rwsem is held in __cpufreq_governor

2016-02-02 Thread Saravana Kannan
On 02/01/2016 10:34 PM, Viresh Kumar wrote: On 01-02-16, 12:24, Saravana Kannan wrote: On 02/01/2016 02:22 AM, Rafael J. Wysocki wrote: I'm not sure whose idea you are referring to. Viresh's (I don't think I saw his proposal) or mine.

Re: [PATCH 3/5] cpufreq: governor: Remove unused sysfs attribute macros

2016-02-02 Thread Rafael J. Wysocki
On Tue, Feb 2, 2016 at 11:57 AM, Viresh Kumar wrote: > The older macros aren't used anymore, remove them. It doesn't follow from either the subject or the changelog which macros *in* *particular* are in question. What about changing the subject to something like "cpufreq: governor: Drop unused

Re: GPF in shm_lock ipc

2016-02-02 Thread Dmitry Vyukov
On Tue, Feb 2, 2016 at 4:25 AM, Andrew Morton wrote: > On Mon, 21 Dec 2015 16:44:34 +0100 Dmitry Vyukov wrote: > >> On Thu, Nov 5, 2015 at 3:23 PM, Kirill A. Shutemov >> wrote: >> > What about this: >> >> >> Ping. This is still happening for me on tip. Can we pull in this fix >> if it looks

Re: [PATCH] Optimize int_sqrt for small values for faster idle

2016-02-02 Thread Eric Dumazet
On Tue, 2016-02-02 at 21:46 +0100, Rasmus Villemoes wrote: > On Tue, Feb 02 2016, Eric Dumazet wrote: > > > On Tue, 2016-02-02 at 00:08 +0100, Rasmus Villemoes wrote: > > > >> Thanks. (Is there a good way to tell gcc that avg*avg is actually a > >> 32x32->64 multiplication?) > > > > If avg is

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-02 Thread Dmitry Vyukov
On Tue, Feb 2, 2016 at 10:24 PM, Jiri Kosina wrote: > On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > >> Original log from fuzzer contained the following WARNING in >> mm/rmap.c:412. But when I tried to reproduce it, I hit these hanged >> processes instead. I can't reliably detect what program

Re: [PATCH v5 8/8] ARM: dts: rockchip: support the spi for rk3036

2016-02-02 Thread Heiko Stübner
Am Dienstag, 2. Februar 2016, 11:40:53 schrieb Caesar Wang: > This patch adds the needed spi node for rk3036 dts. > > We have to use the 4 bus emmc to work if someone want to support > the spi devices, since the pins are re-used by emmc data[5-8] and spi. > In some caseswe need to support the spi

Re: [PATCH] Staging: fix coding style in rtl8188eu/core

2016-02-02 Thread Colin Vidal
On Tue, 2016-02-02 at 13:14 -0800, Joe Perches wrote: > On Tue, 2016-02-02 at 21:57 +0100, Colin Vidal wrote: > > Set constant on the left of the test, and jump a new line to avoid > > to > > exceed the 80 char length limit. > [] > > diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c > >

Re: [PATCH 05/10] Documentation: dt: Tidy up the Marvell related files

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 07:07:43PM +0100, Gregory CLEMENT wrote: > Over the last releases we have added more and more Marvell related binding > directly in the arm directory. It's time to have our proper directory > inside it, and move all the files in it. > > Signed-off-by: Gregory CLEMENT >

Re: sound: WARNING in snd_rawmidi_kernel_write1

2016-02-02 Thread Dmitry Vyukov
On Mon, Feb 1, 2016 at 11:36 AM, Takashi Iwai wrote: > On Mon, 01 Feb 2016 11:15:08 +0100, > Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers WARNING in snd_rawmidi_kernel_write1: >> >> // autogenerated by syzkaller (http://github.com/google/syzkaller) >> #include >>

[PATCH v2 5/5] pinctrl: sunxi: Use pin number when calling sunxi_pmx_set

2016-02-02 Thread Krzysztof Adamski
sunxi_pmx_set accepts pin number and then calculates offset by subtracting pin_base from it. sunxi_pinctrl_gpio_get, on the other hand, gets offset so we have to convert it to pin number so we won't get negative value in sunxi_pmx_set. This was only used on A10 so far, where there is only one

[PATCH v2 3/5] pinctrl: sunxi: Add H3 R_PIO controller support

2016-02-02 Thread Krzysztof Adamski
H3 has additional PIO controller similar to what we can find on A23. It's a 12 pin port, described in H3 Datasheet rev 1.1, pages 345-350. Signed-off-by: Krzysztof Adamski --- drivers/pinctrl/sunxi/Kconfig | 4 ++ drivers/pinctrl/sunxi/Makefile | 1 +

Re: [PATCH 06/10] devicetree: bindings: add DT binding for the Marvell Armada 3700 SoC family

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 07:07:44PM +0100, Gregory CLEMENT wrote: > The Marvell Armada 3700 is a family of ARMv8 CA53 SoCs. This commit > introduces the Device Tree binding that documents the top-level > compatible strings for Armada 3700 based platforms. > > Signed-off-by: Gregory CLEMENT > ---

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-02 Thread Jiri Kosina
On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > Original log from fuzzer contained the following WARNING in > mm/rmap.c:412. But when I tried to reproduce it, I hit these hanged > processes instead. I can't reliably detect what program triggered > what. So it may be related, or maybe a separate issue.

Re: sound: deadlock between snd_rawmidi_kernel_open/snd_seq_port_connect

2016-02-02 Thread Dmitry Vyukov
On Mon, Jan 25, 2016 at 11:47 AM, Takashi Iwai wrote: > On Sun, 24 Jan 2016 10:44:34 +0100, > Dmitry Vyukov wrote: >> >> Hello, >> >> While running syzkaller fuzzer I've got the following lockdep report: >> >> == >> [ INFO: possible circular

[PATCH v2 4/5] ARM: dts: sun8i-h3: Add R_PIO controller node to the dtsi

2016-02-02 Thread Krzysztof Adamski
Add the corresponding device node for R_PIO on H3 to the dtsi. Support for the controller was added in earlier commit. Signed-off-by: Krzysztof Adamski --- .../devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + arch/arm/boot/dts/sun8i-h3.dtsi | 12

Re: [PATCH 2/5] cpufreq: governor: Create separate sysfs-ops

2016-02-02 Thread Rafael J. Wysocki
On Tue, Feb 2, 2016 at 11:57 AM, Viresh Kumar wrote: First, the subject might be better. What about something like "cpufreq: governor: New sysfs show/store callbacks for governor tunables", for example? > Until now, governors (ondemand/conservative) were using the > 'global-attr' or

[PATCH v2 2/5] dts: sun8i-h3: Add APB0 related clocks and resets

2016-02-02 Thread Krzysztof Adamski
APB0 is bearly mentioned in H3 User Manual and it is only setup in the Allwinners kernel dump for CIR. I have verified experimentally that the gate for R_PIO exists and works, though. There are probably other gates there but I don't know their order right now and I don't have access to their

Re: [PATCH v5 4/8] ARM: dts: rockchip: add mclk for rt5616 on kylin board

2016-02-02 Thread Heiko Stübner
Am Dienstag, 2. Februar 2016, 11:40:52 schrieb Caesar Wang: > The I2S block that provide the output clock as the mclk for rt5616, > That will be the master clock input. > > Signed-off-by: Caesar Wang applied to my dts32- branch for 4.6 Thanks Heiko

[PATCH v2 1/5] clk: sunxi: Add apb0 gates for H3

2016-02-02 Thread Krzysztof Adamski
This patch adds support for APB0 in H3. It seems to be compatible with earlier SOCs. apb0 gates controls R_ block peripherals (R_PIO, R_IR, etc). Signed-off-by: Krzysztof Adamski --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-simple-gates.c | 2

[PATCH v2 0/5] pinctrl: sunxi: Add H3 R_PIO controller support

2016-02-02 Thread Krzysztof Adamski
This patch series is extension of my original single patch with the same subject. It adds support for R_PIO so that GPIO port L can be used in H3 based devices. It was tested on OrangePi PC where PL is connected amount others to an onboard led, a switch and IR receiver and some VCC controllers.

Re: [PATCH 2/2] ARM: dts: Add dts for Uniwest evi

2016-02-02 Thread Joshua Clayton
Shawn, thanks for the review. I've tried to address your concerns. I have a new dts which I will send once I've booted it. On Mon, 1 Feb 2016 20:11:45 +0800 Shawn Guo wrote: ... > > + regulators { > > + compatible = "simple-bus"; > > + #address-cells = <1>; > > +

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-02 Thread Dmitry Vyukov
On Tue, Feb 2, 2016 at 10:14 PM, Dmitry Vyukov wrote: > On Tue, Feb 2, 2016 at 10:08 PM, Jiri Kosina wrote: >> On Tue, 2 Feb 2016, Dmitry Vyukov wrote: >> >>> Hello, >>> >>> If the following program run in a parallel loop, eventually it leaves >>> hanged uninterruptable tasks on mmap_sem. >>>

Re: [PATCH 04/10] Documentation: dt-bindings: Add a new compatible for the Armada 3700

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 07:07:42PM +0100, Gregory CLEMENT wrote: > The AHCI interfaces used in the Armada 3700 has a few differences with > the one used in the Armada 38x, so it deserves its own compatible string. > > Signed-off-by: Gregory CLEMENT > Reviewed-by: Thomas Petazzoni > --- >

Re: [PATCH 01/10] serial: mvebu-uart: initial support for Armada-3700 serial port

2016-02-02 Thread Rob Herring
On Tue, Feb 02, 2016 at 07:07:39PM +0100, Gregory CLEMENT wrote: > From: Wilson Ding > > Armada-3700's uart is a simple serial port, which doesn't > support. Configuring the modem control lines. The uart port has a 32 > bytes Tx FIFO and a 64 bytes Rx FIFO > > The uart driver implements the

Re: [PATCH] soc: rockchip: power-domain: fix err handle while probing

2016-02-02 Thread Heiko Stübner
Am Montag, 1. Februar 2016, 16:18:40 schrieb Shawn Lin: > If we fail to probe the driver, we should not directly break > from the for_each_available_child_of_node since it calls of_node_get > while iterating. This patch add of_node_put to fix the unbalanced > call pair. > > Signed-off-by: Shawn

Re: [PATCH 14/26] perf tools: Introduce struct perf_hpp_list

2016-02-02 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 25, 2016 at 04:09:33PM +0100, Jiri Olsa escreveu: > On Tue, Jan 26, 2016 at 12:00:46AM +0900, Namhyung Kim wrote: > > SNIP > > > > void perf_hpp__cancel_cumulate(void) > > > diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h > > > index f3bcf2d38733..a9c8ccfcc284 100644 >

Re: [PATCH] locking/mutex: Avoid spinner vs waiter starvation

2016-02-02 Thread Davidlohr Bueso
On Mon, 01 Feb 2016, Peter Zijlstra wrote: Subject: locking/mutex: Avoid spinner vs waiter starvation From: Peter Zijlstra Date: Fri, 22 Jan 2016 12:06:53 +0100 Ding Tianhong reported that under his load the optimistic spinners would totally starve a task that ended up on the wait list. Fix

Re: CONFIG_UBSAN_ALIGNMENT breaks x86-64 kernel with lockdep enabled

2016-02-02 Thread Andrew Morton
On Tue, 2 Feb 2016 19:18:31 +0300 Andrey Ryabinin wrote: > > > On 02/02/2016 01:21 AM, Andrew Morton wrote: > > On Mon, 1 Feb 2016 18:10:38 +0300 Andrey Ryabinin > > wrote: > > > >> On 01/30/2016 03:36 AM, Mike Krinkin wrote: > >>> Hi, > >>> > >>> option CONFIG_UBSAN_ALIGNMENT breaks

Re: [PATCH v3 2/2] ASOC: sunxi: Add support for the SPDIF block

2016-02-02 Thread Maxime Ripard
Hi, It looks mostly good on my side, a few comments though. On Tue, Feb 02, 2016 at 03:49:54PM +0100, codekip...@gmail.com wrote: > +#ifdef CONFIG_PM > +static int sun4i_spdif_runtime_suspend(struct device *dev) > +{ > + struct sun4i_spdif_dev *host = dev_get_drvdata(dev); > + > +

Re: [PATCH v3] misc: Move panel driver out of staging

2016-02-02 Thread Willy Tarreau
On Tue, Feb 02, 2016 at 12:59:50PM -0800, Greg KH wrote: > On Tue, Feb 02, 2016 at 07:39:02PM +0100, Ksenija Stanojevic wrote: > > Move panel driver from drivers/staging/panel to drivers/misc. > > > > Signed-off-by: Ksenija Stanojevic > > --- > > Changes in v3: > > - modify driver location

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-02 Thread Dmitry Vyukov
On Tue, Feb 2, 2016 at 10:08 PM, Jiri Kosina wrote: > On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > >> Hello, >> >> If the following program run in a parallel loop, eventually it leaves >> hanged uninterruptable tasks on mmap_sem. >> >> [ 4074.740298] sysrq: SysRq : Show Locks Held >> [ 4074.740780]

Re: [PATCH] Staging: fix coding style in rtl8188eu/core

2016-02-02 Thread Joe Perches
On Tue, 2016-02-02 at 21:57 +0100, Colin Vidal wrote: > Set constant on the left of the test, and jump a new line to avoid to > exceed the 80 char length limit. [] > diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c > b/drivers/staging/rtl8188eu/core/rtw_iol.c [] > @@ -22,10 +22,11 @@ >   >  

Re: [PATCH] clk: rockchip: free memory for error handle

2016-02-02 Thread Heiko Stübner
Am Dienstag, 2. Februar 2016, 11:37:50 schrieb Shawn Lin: > Add free memeory if rockchip_clk_register_branch > failed. > > Fixes: a245fecbb806 ("clk: rockchip: add basic infrastructure...") > Signed-off-by: Shawn Lin applied to my clk-branch for 4.6 Thanks Heiko

Re: mm: uninterruptable tasks hanged on mmap_sem

2016-02-02 Thread Jiri Kosina
On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > Hello, > > If the following program run in a parallel loop, eventually it leaves > hanged uninterruptable tasks on mmap_sem. > > [ 4074.740298] sysrq: SysRq : Show Locks Held > [ 4074.740780] Showing all locks held in the system: > ... > [ 4074.762133]

Re: [PATCH 01/10] serial: mvebu-uart: initial support for Armada-3700 serial port

2016-02-02 Thread Arnd Bergmann
On Tuesday 02 February 2016 19:07:39 Gregory CLEMENT wrote: > diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig > index 39721ec4f415..b291f934d51b 100644 > --- a/drivers/tty/serial/Kconfig > +++ b/drivers/tty/serial/Kconfig > @@ -1606,6 +1606,28 @@ config SERIAL_STM32_CONSOLE >

Re: [PATCH v3] misc: Move panel driver out of staging

2016-02-02 Thread Greg KH
On Tue, Feb 02, 2016 at 07:39:02PM +0100, Ksenija Stanojevic wrote: > Move panel driver from drivers/staging/panel to drivers/misc. > > Signed-off-by: Ksenija Stanojevic > --- > Changes in v3: > - modify driver location in MAINTAINERS file > > Changes in v2: > - modify MAINTAINERS

mm: uninterruptable tasks hanged on mmap_sem

2016-02-02 Thread Dmitry Vyukov
Hello, If the following program run in a parallel loop, eventually it leaves hanged uninterruptable tasks on mmap_sem. [ 4074.740298] sysrq: SysRq : Show Locks Held [ 4074.740780] Showing all locks held in the system: ... [ 4074.762133] 1 lock held by a.out/1276: [ 4074.762427] #0:

[PATCH] Staging: fix coding style in rtl8188eu/core

2016-02-02 Thread Colin Vidal
Set constant on the left of the test, and jump a new line to avoid to exceed the 80 char length limit. Signed-off-by: Colin Vidal --- drivers/staging/rtl8188eu/core/rtw_iol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c

Re: [PATCH v2] unix: properly account for FDs passed over unix sockets

2016-02-02 Thread Willy Tarreau
On Tue, Feb 02, 2016 at 12:53:20PM -0800, Linus Torvalds wrote: > On Tue, Feb 2, 2016 at 12:49 PM, Willy Tarreau wrote: > > On Tue, Feb 02, 2016 at 12:44:54PM -0800, Linus Torvalds wrote: > >> > >> Umm. I think the "struct cred" may change in between, can't it? > > > > You mean for example in

Re: [PATCHv2 2/2] mm: downgrade VM_BUG in isolate_lru_page() to warning

2016-02-02 Thread Andrew Morton
On Tue, 2 Feb 2016 19:21:01 +0300 "Kirill A. Shutemov" wrote: > Calling isolate_lru_page() is wrong and shouldn't happen, but it not > nessesary fatal: the page just will not be isolated if it's not on LRU. > > Let's downgrade the VM_BUG_ON_PAGE() to WARN_RATELIMIT(). > > Signed-off-by:

Re: [PATCH v2] unix: properly account for FDs passed over unix sockets

2016-02-02 Thread Hannes Frederic Sowa
On 02.02.2016 21:44, Linus Torvalds wrote: On Tue, Feb 2, 2016 at 12:32 PM, Hannes Frederic Sowa wrote: Unfortunately we never transfer a scm_cookie via the skbs but merely use it to initialize unix_skb_parms structure in skb->cb and destroy it afterwards. Ok, I obviously didn't check very

Re: [RFC 8/8] Do not reclaim the whole CPU bandwidth

2016-02-02 Thread Luca Abeni
On Wed, 27 Jan 2016 15:44:22 +0100 Peter Zijlstra wrote: > On Tue, Jan 26, 2016 at 01:52:19PM +0100, luca abeni wrote: > > > > The trouble is with interfaces. Once we expose them we're stuck > > > with them. And from that POV I think an explicit SCHED_OTHER > > > server (or a minimum budget for

Re: [PATCH v2] unix: properly account for FDs passed over unix sockets

2016-02-02 Thread Linus Torvalds
On Tue, Feb 2, 2016 at 12:49 PM, Willy Tarreau wrote: > On Tue, Feb 02, 2016 at 12:44:54PM -0800, Linus Torvalds wrote: >> >> Umm. I think the "struct cred" may change in between, can't it? > > You mean for example in case of setuid() or something like this ? Yeah. I'd be worried about looking

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