Re: [PATCH v4 0/2] ASoC: da7219: Convert driver to use generic FW functions

2016-06-21 Thread Mark Brown
On Tue, Jun 21, 2016 at 10:54:39PM +, Opensource [Adam Thomson] wrote: > On 21 June 2016 23:30, Rafael J. Wysocki wrote: > > I'm fine with the first patch and the second one carries a couple of > > ACKs already, so do you want me to apply them both? None of whom are from anyone who works on t

Re: cmpxchg and x86 flags output

2016-06-21 Thread H. Peter Anvin
On 06/21/16 10:24, H. Peter Anvin wrote: > On 06/21/16 02:06, David Howells wrote: >> >> However, there's probably not a great deal of difference to be had if the >> inline asm codes the appropriate instruction in each case for something like >> x86*. The emitted code ought to look the same. The

[PATCH -next 0/4] cgroup: bpf: cgroup2 membership test on skb

2016-06-21 Thread Martin KaFai Lau
This series is to implement a bpf-way to check the cgroup2 membership of a skb (sk_buff). It is similar to the feature added in netfilter: c38c4597e4bf ("netfilter: implement xt_cgroup cgroup2 path match") The current target is the tc-like usage.

[PATCH -next 3/4] cgroup: bpf: Add bpf_skb_in_cgroup_proto

2016-06-21 Thread Martin KaFai Lau
Adds a bpf helper, bpf_skb_in_cgroup, to decide if a skb->sk belongs to a descendant of a cgroup2. It is similar to the feature added in netfilter: commit c38c4597e4bf ("netfilter: implement xt_cgroup cgroup2 path match") The user is expected to populate a BPF_MAP_TYPE_CGROUP_ARRAY which will be

[PATCH -next 4/4] cgroup: bpf: Add an example to do cgroup checking in BPF

2016-06-21 Thread Martin KaFai Lau
test_cgrp2_array_pin.c: A userland program that creates a bpf_map (BPF_MAP_TYPE_GROUP_ARRAY), pouplates/updates it with a cgroup2's backed fd and pins it to a bpf-fs's file. The pinned file can be loaded by tc and then used by the bpf prog later. This program can also update an existing pinned ar

[PATCH -next 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

2016-06-21 Thread Martin KaFai Lau
Add a BPF_MAP_TYPE_CGROUP_ARRAY and its bpf_map_ops's implementations. To update an element, the caller is expected to obtain a cgroup2 backed fd by open(cgroup2_dir) and then update the array with that fd. Signed-off-by: Martin KaFai Lau Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Tejun Heo

[PATCH -next 1/4] cgroup: Add cgroup_get_from_fd

2016-06-21 Thread Martin KaFai Lau
Add a helper function to get a cgroup2 from a fd. It will be stored in a bpf array (BPF_MAP_TYPE_CGROUP_ARRAY) which will be introduced in the later patch. Signed-off-by: Martin KaFai Lau Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Tejun Heo --- include/linux/cgroup.h | 1 + kernel/cgrou

Re: [PATCH v7 3/5] tpm: Clean up reading of timeout and duration capabilities

2016-06-21 Thread Ed Swierk
On Mon, Jun 20, 2016 at 6:54 PM, Ed Swierk wrote: > --- a/drivers/char/tpm/tpm-interface.c > +++ b/drivers/char/tpm/tpm-interface.c > @@ -461,9 +461,19 @@ ssize_t tpm_getcap(struct device *dev, __be32 subcap_id, > cap_t *cap, > tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(4)

[PATCH] media: s5p-mfc fix null pointer deference in clk_core_enable()

2016-06-21 Thread Shuah Khan
Fix null pointer deference in clk_core_enable() when driver unbind is run when there is an application has an active pipeline playing. At this point, system hangs and needs to be power cycled. s5p_mfc_release() gets called after s5p_mfc_final_pm() disables and does clk_put() and s5p_mfc_release()

Re: [PATCH v3 5/8] scripts: add Linux .cocciconfig for coccinelle

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:12:54PM +0200, Julia Lawall wrote: > On Tue, 21 Jun 2016, Nicolas Palix (LIG) wrote: > > > Le 21/06/16 à 21:21, Luis R. Rodriguez a écrit : > > > Help Coccinelle when used against Linux with a set of sensible defaults > > > options for Linux. This hints to coccinelle git

Re: [4.7-rc3 June 16th code][EXT4] Rename file corruption?

2016-06-21 Thread Al Viro
On Thu, Jun 16, 2016 at 01:47:57AM -0700, Christoph Hellwig wrote: > We see somewhat similar rename corruption on XFS, also under heavy > compile workloads. The reporters have already ruled out the XFS changes > from the 4.7 merge window, so this looks a lot like the VFS changes > that went into t

Re: [PATCH v3 7/8] coccicheck: refer to coccicheck bottest wiki for documentation

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:18:41PM +0200, Julia Lawall wrote: > > > On Tue, 21 Jun 2016, Nicolas Palix (LIG) wrote: > > > Hi, > > > > Le 21/06/16 à 21:21, Luis R. Rodriguez a écrit : > > > Sprinkling *tons* of documentation on the script is not a good > > > idea, instead refer to a wiki for fur

Re: [PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-21 Thread John Stultz
On Tue, Jun 14, 2016 at 3:43 PM, John Stultz wrote: > From: Jorge Ramirez-Ortiz > > This driver provides a input driver for the power button on the > HiSi 65xx SoC for boards like HiKey. > > This driver was originally by Zhiliang Xue > then basically rewritten by Jorge, but preserving the origin

Re: camera application for testing (was Re: v4l subdevs without big device)

2016-06-21 Thread Laurent Pinchart
Hi Sakari, On Sunday 01 May 2016 17:08:31 Sakari Ailus wrote: > On Sat, Apr 30, 2016 at 12:13:59AM +0200, Pavel Machek wrote: > > Hi! > > > > What is reasonable camera application for testing? > > > > N900 looks like a low-end digital camera. I have now have the hardware > > working (can set foc

Re: [PATCH] ACPI: Execute the _PTS method when system reboot

2016-06-21 Thread Rafael J. Wysocki
On Monday, May 09, 2016 05:50:11 AM Ocean HY1 He wrote: > The _PTS control method is defined in the section 7.4.1 of acpi 6.0 > spec. The _PTS control method is executed by the OS during the sleep > transition process for S1, S2, S3, S4, and for orderly S5 shutdown. > The sleeping state value (For

Re: [PATCH v2 00/17] DS1341 support and code cleanup

2016-06-21 Thread Andrey Smirnov
>> >> Andrey Smirnov (17): >> RTC: ds1307: Add DS1341 variant >> RTC: ds1307: Disable square wave and timers as default >> RTC: ds1307: Add devicetree bindings for DS1341 >> RTC: ds1307: Add DS1341 specific power-saving options >> RTC: ds1307: Convert ds1307_can_wakeup_device into a predi

[PATCH v2] ASoC: cs53l30: Add MUTE pin control support via GPIO

2016-06-21 Thread Nicolin Chen
The codec chip has a physical MUTE pin to let users control it via GPIO. So this patch add a mute control support to the driver. Signed-off-by: Nicolin Chen --- Changelog: v1->v2 * Revise the DT binding part regarding the active state of the mute pin .../devicetree/bindings/sound/cs53l30.txt

Re: [PATCH v2 02/17] RTC: ds1307: Disable square wave and timers as default

2016-06-21 Thread Andrey Smirnov
On Tue, Jun 21, 2016 at 2:17 PM, Alexandre Belloni wrote: > On 21/06/2016 at 00:22:35 -0700, Andrey Smirnov wrote : >> Disable square wave and timers as default for DS1337/39/41 and >> DS3231. The rationale being that configuring a chip this way puts it >> into a known state with lower power consu

Re: [PATCH v3 5/8] scripts: add Linux .cocciconfig for coccinelle

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 10:29:53PM +0200, Julia Lawall wrote: [...] > mkid -i C --output .id-utils.index > > [...] Coccinelle searches for the index in the directory > on which it is working Can you clarify if this is $PWD from which we spawn spatch or the --dir, or the current directory that s

Re: [PATCH] compat: remove compat_printk

2016-06-21 Thread Andrew Morton
On Fri, 17 Jun 2016 16:26:21 +0200 Arnd Bergmann wrote: > After 7e8e385aaf6e ("x86/compat: Remove sys32_vm86_warning"), this > function has become unused, so we can remove it as well. hm, > @@ -1077,15 +1076,6 @@ static struct ctl_table kern_table[] = { > .extra1 = &neg_on

Re: [LKP] [lkp] [x86 tsc] 19fa5e7364: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80

2016-06-21 Thread Wanpeng Li
2016-06-21 21:59 GMT+08:00 Wanpeng Li : > Hi Paolo, > 2016-06-21 18:24 GMT+08:00 Wanpeng Li : >> 2016-06-21 18:10 GMT+08:00 Paolo Bonzini : >>> >>> >>> On 21/06/2016 08:08, Wanpeng Li wrote: Cc KVM ML, Paolo, Radim, >> FYI, raw QEMU command line is: >> >> qemu-system-x86_64

Re: [PATCH v4 0/5] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-06-21 Thread Rafael J. Wysocki
On Mon, Jun 20, 2016 at 12:56 PM, Aleksey Makarov wrote: > Hi Rafael, > > You said you are ok with the ACPI part of the patches [4]. > The patchset has received ACK from Will [5]. Can you consider pulling it > please? I've queued this up for v4.8, but can you please base your patches on the Lin

Re: ktime_get_ts64() splat during resume

2016-06-21 Thread Rafael J. Wysocki
On Tuesday, June 21, 2016 11:04:41 AM Kees Cook wrote: > On Mon, Jun 20, 2016 at 9:35 PM, Logan Gunthorpe wrote: > > Hey Rafael, > > > > This patch appears to be working on my laptop. Thanks. > > Same for me: resume still works with KASLR in my tests too. Thanks for the confirmation! Rafael

Re: [PATCH 03/13] RTC: ds1307: Add DS1341 specific power-saving options

2016-06-21 Thread Andrey Smirnov
> So wouldn't you want to set one mode while running and the lower power > mode while suspended? I'm trying to understand the frequency of changing > this. If it is always one setting for a board, then yes it belongs in > DT. If it is a user decision, then it probably shouldn't be in DT. I don't r

RE: [PATCH v4 0/2] ASoC: da7219: Convert driver to use generic FW functions

2016-06-21 Thread Opensource [Adam Thomson]
On 21 June 2016 23:30, Rafael J. Wysocki wrote: > > This patch set converts the da7219 codec driver to use device/fwnode > > functions > > to access properties, instead of the DT only of_* functions, allowing ACPI > > to be used as well. > > > > The DT bindings for da7219 have a device node for t

[PATCH] Input: elantech - add more IC body types to the list

2016-06-21 Thread Dmitry Torokhov
The touchpad in HP Pavilion 14-ab057ca reports it's version as 12 and according to Elan both 11 and 12 are valid IC types and should be identified as hw_version 4. Reported-by: Patrick Lessard Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/elantech.c | 8 +--- 1 file changed, 1 inse

sparse bad constant expression caused by 7322dd755e7d ("byteswap: try to avoid __builtin_constant_p gcc bug", 2016-05-05)

2016-06-21 Thread Keller, Jacob E
Hi, I recently ran into a sparse error when running sparse on Intel's i40e kernel driver against v4.7-rc3. CC [M] drivers/net/ethernet/intel/i40e/i40e_nvm.o include/linux/sctp.h:172:51: error: bad constant expression include/linux/sctp.h:174:51: error: bad constant expression include/linux/sc

Re: [PATCH 0/5] Fix and improve clock controller for the RK322x SoCs

2016-06-21 Thread Heiko Stuebner
Am Dienstag, 21. Juni 2016, 12:53:26 schrieb Xing Zheng: > Hi, > These patchset fix some clocks bugs, and improve clock configuration > for i2s/spdif/MAC on RK322x SoCs. applied to my clock-branch with the following changes: - fixed the error in patch1 - missing ")" in COMPOSITE_FRAC(0, "

Re: [PATCH v2 13/17] RTC: ds1307: Report oscillator problems more intelligently

2016-06-21 Thread Andrey Smirnov
On Tue, Jun 21, 2016 at 2:22 PM, Alexandre Belloni wrote: > On 21/06/2016 at 00:22:46 -0700, Andrey Smirnov wrote : >> Report oscillator problems more intelligently, by printing more >> information about what cause the issue and not yelling "SET TIME!" at >> the user. >> > > Well, the proper way o

[PATCH] clk: qcom: Remove gcc_aggre1_pnoc_ahb_clk from msm8996

2016-06-21 Thread Stephen Boyd
This clk is critical to operation of the SoC and should never be turned off. Furthermore, there are no consumers of this clk so let's just delete it so things like eMMC work. Reported-by: Srinivas Kandagatla Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-msm8996.c | 16 1

Re: [PATCH v02 2/5] perf/x86/intel: fix for MSR_LAST_BRANCH_FROM_x bug when no TSX

2016-06-21 Thread Andi Kleen
> This patch introduces it for wrmsrl's done for testing LBR support. > Future patch in series adds the quirk for context switch, that would > be required if LBR callstack is to be enabled for ring 0. Patches are fine for me. Reviewed-by: Andi Kleen -Andi

Re: [PATCH 5/5] irqtime: drop local_irq_save/restore from irqtime_account_irq

2016-06-21 Thread Peter Zijlstra
On Tue, Jun 21, 2016 at 06:23:34PM -0400, Rik van Riel wrote: > > >   cpu = smp_processor_id(); > > Per this smp_processor_id() usage, preemption is disabled. > > This code is called from the timer code. Surely preemption > is already disabled? That's what I said. > > > > > > + /* > > > +  * So

Re: [PATCH] ACPI: don't show an error when we're not in charge of PCIe hotplug.

2016-06-21 Thread Rafael J. Wysocki
On Tue, Jun 21, 2016 at 8:07 PM, Andy Lutomirski wrote: > On Tue, Jun 21, 2016 at 11:01 AM, wrote: >>> -Original Message- >>> From: Peter Jones [mailto:pjo...@redhat.com] >>> Sent: Tuesday, June 21, 2016 10:19 AM >>> To: Rafael J. Wysocki >>> Cc: ACPI Devel Maling List ; Limonciello, Ma

Re: [PATCH] ACPI: don't show an error when we're not in charge of PCIe hotplug.

2016-06-21 Thread Rafael J. Wysocki
On Tue, Jun 21, 2016 at 8:01 PM, wrote: >> -Original Message- >> From: Peter Jones [mailto:pjo...@redhat.com] >> Sent: Tuesday, June 21, 2016 10:19 AM >> To: Rafael J. Wysocki >> Cc: ACPI Devel Maling List ; Limonciello, Mario >> ; Linux Kernel Mailing List > ker...@vger.kernel.org>; Len

Re: [PATCH] ASoC: cs53l30: Add MUTE pin control support via GPIO

2016-06-21 Thread Nicolin Chen
On Tue, Jun 21, 2016 at 04:34:37PM -0500, Rob Herring wrote: > On Mon, Jun 20, 2016 at 06:54:44PM -0700, Nicolin Chen wrote: > > The codec chip has a physical MUTE pin to let users control it via > > GPIO. So this patch add a mute control support to the driver. > > > > Signed-off-by: Nicolin Chen

[PATCH v2 1/6] Documentation: hid: Intel ISH HID document

2016-06-21 Thread Srinivas Pandruvada
Document explaining ISH HID operation and implementation. Signed-off-by: Srinivas Pandruvada --- Documentation/hid/intel-ish-hid.txt | 449 1 file changed, 449 insertions(+) create mode 100644 Documentation/hid/intel-ish-hid.txt diff --git a/Documentation/h

[PATCH v2 2/6] hid: intel_ish-hid: ISH Transport layer

2016-06-21 Thread Srinivas Pandruvada
From: Daniel Drubin The ISH transport layer (ishtp) is a bi-directional protocol implemented on the top of PCI based inter processor communication layer. This layer offers: - Connection management - Flow control with the firmware - Multiple client sessions - Client message transfer - Client messa

[PATCH v2 6/6] hid: hid-sensor-hub: Add ISH quirk

2016-06-21 Thread Srinivas Pandruvada
Need enum quirk to change the base of enums to 1 for power and report descriptors. Signed-off-by: Srinivas Pandruvada --- drivers/hid/hid-sensor-hub.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 3d5ba5b..658a607 100644

[PATCH v2 3/6] hid: intel-ish-hid: ipc layer

2016-06-21 Thread Srinivas Pandruvada
From: Daniel Drubin This layer is responsible for - Enumerating over PCI bus - Inform FW about host readiness - Provide HW interface to transport layer for control and messages - Interrupt handling and routing Signed-off-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/Makefile |

[PATCH v2 0/6] Intel Integrated Sensor Hub Support (ISH)

2016-06-21 Thread Srinivas Pandruvada
Change log v2: - Overview in documentation show analogy with usbhid implementation - sparse errors for statics. Also pointed by Jiri - Clearly marking exported function header file. Clean up all exports unused inteface functions - Changed to tristate from boolean as pointed by Jiri: this required r

[PATCH v2 4/6] hid: intel-ish-hid: ISH HID client driver

2016-06-21 Thread Srinivas Pandruvada
From: Daniel Drubin This driver is responsible for implementing ISH HID client, which gets HID description and report. Once it has completely gets report descriptors, it registers as a HID LL drivers. This implements necessary callbacks so that it can be used by HID sensor hub driver. Signed-off

[PATCH v2 5/6] iio: hid-sensors: use asynchronous resume

2016-06-21 Thread Srinivas Pandruvada
Some platforms power off sensor hubs during S3 suspend, which will require longer time to resume. This hurts system resume time, so resume asynchronously. Signed-off-by: Srinivas Pandruvada --- drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 21 - include/linux/hid-sens

Re: [PATCH v3 0/6] Introduce pci_(request|release)_(mem|io)_regions

2016-06-21 Thread Bjorn Helgaas
On Tue, Jun 07, 2016 at 09:44:00AM +0200, Johannes Thumshirn wrote: > The first patch in this series introduces the following 4 helper functions to > the PCI core: > > * pci_request_mem_regions() > * pci_request_io_regions() > * pci_release_mem_regions() > * pci_release_io_regions() > > which enc

Re: [PATCH 5/5] irqtime: drop local_irq_save/restore from irqtime_account_irq

2016-06-21 Thread Peter Zijlstra
On Thu, Jun 16, 2016 at 12:06:07PM -0400, r...@redhat.com wrote: > @@ -53,36 +56,72 @@ DEFINE_PER_CPU(seqcount_t, irq_time_seq); > * softirq -> hardirq, hardirq -> softirq > * > * When exiting hardirq or softirq time, account the elapsed time. > + * > + * When exiting softirq time, subtract t

Re: [PATCH 16/27] mm: Move page mapped accounting to the node

2016-06-21 Thread Andrew Morton
On Tue, 21 Jun 2016 15:15:55 +0100 Mel Gorman wrote: > Reclaim makes decisions based on the number of pages that are mapped > but it's mixing node and zone information. Account NR_FILE_MAPPED and > NR_ANON_PAGES pages on the node. Boy, the difference between __mod_zone_page_state(pag

Re: [PATCH 5/5] irqtime: drop local_irq_save/restore from irqtime_account_irq

2016-06-21 Thread Rik van Riel
On Wed, 2016-06-22 at 00:28 +0200, Peter Zijlstra wrote: > On Tue, Jun 21, 2016 at 06:23:34PM -0400, Rik van Riel wrote: > >  > > > > + /* > > > > +  * Softirq context may get interrupted by hardirq > > > > context, > > > > +  * on the same CPU. At softirq entry time the amount >

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:44:09PM +0200, Julia Lawall wrote: > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > On Tue, Jun 21, 2016 at 11:32:11PM +0200, Julia Lawall wrote: > > > > > > > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > > > > On Tue, Jun 21, 2016 at 11:00:53P

[PATCH 1/2] net: ethernet: macb: use phydev from struct net_device

2016-06-21 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

Re: camera application for testing (was Re: v4l subdevs without big device)

2016-06-21 Thread Pavel Machek
Hi! > > What is reasonable camera application for testing? > > > > N900 looks like a low-end digital camera. I have now have the hardware > > working (can set focus to X cm using command line), but that's not > > going to be useful for taking photos. > > I guess you already knew about omap3camd;

[PATCH 2/2] net: ethernet: macb: use phy_ethtool_{get|set}_link_ksettings

2016-06-21 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/cadence/macb.c | 30 -- 1 files changed, 4 insertions(+), 26 deletions(

Re: [PATCH v4 0/2] ASoC: da7219: Convert driver to use generic FW functions

2016-06-21 Thread Rafael J. Wysocki
On 6/21/2016 7:50 PM, Adam Thomson wrote: This patch set converts the da7219 codec driver to use device/fwnode functions to access properties, instead of the DT only of_* functions, allowing ACPI to be used as well. The DT bindings for da7219 have a device node for the main codec properties, and

Re: [PATCH v3 2/6] NVMe: Use pci_(request|release)_mem_regions

2016-06-21 Thread Bjorn Helgaas
On Fri, Jun 17, 2016 at 01:27:16PM +0200, Johannes Thumshirn wrote: > On Tue, Jun 07, 2016 at 09:44:02AM +0200, Johannes Thumshirn wrote: > > Now that we do have pci_request_mem_regions() and pci_release_mem_regions() > > at > > hand, use it in the NVMe driver. > > > > Suggested-by: Christoph Hel

Re: [PATCH] ARM: AM33xx: PRM: Remove wrongly defined RSTST offset for PER Domain

2016-06-21 Thread Suman Anna
Hi Keerthy, On 06/21/2016 05:08 AM, Keerthy wrote: > As per the TRM: http://www.ti.com/lit/ug/spruh73m/spruh73m.pdf > offset 0x4 is reserved for PRM_PER. Hence removing the wrongly > defined address offset. Thanks for the patch. These macros are not used anywhere, so it should be safe to remove

Re: [PATCHv3 0/2] USB Type-C Connector class

2016-06-21 Thread Guenter Roeck
On Tue, Jun 21, 2016 at 05:51:49PM +0300, Heikki Krogerus wrote: > Hi, > > I'm considering all the RFCs I send after v1 as v2 (I don't remember > how many I send). Hope this is OK and hope there is nothing big > missing anymore (or broken). > > Sorry about the delay. I've been really busy with so

Re: [PATCH 5/5] irqtime: drop local_irq_save/restore from irqtime_account_irq

2016-06-21 Thread Rik van Riel
On Tue, 2016-06-21 at 23:49 +0200, Peter Zijlstra wrote: > On Thu, Jun 16, 2016 at 12:06:07PM -0400, r...@redhat.com wrote: > > > > @@ -53,36 +56,72 @@ DEFINE_PER_CPU(seqcount_t, irq_time_seq); > >   * softirq -> hardirq, hardirq -> softirq > >   * > >   * When exiting hardirq or softirq time, acc

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-21 Thread Wim Osterholt
On Tue, Jun 21, 2016 at 09:40:10AM -0400, Sinan Kaya wrote: > > Thanks, It was a guess with no proof. > > Let's undo the change above and start adding some print statements to collect > data from your system. > > Can you add this to the end of acpi_irq_get_penalty function and then send > the ou

Re: [PATCH 1/5] sched,time: count actually elapsed irq & softirq time

2016-06-21 Thread Rik van Riel
On Tue, 2016-06-21 at 23:21 +0200, Peter Zijlstra wrote: > On Thu, Jun 16, 2016 at 12:06:03PM -0400, r...@redhat.com wrote: > > > > +static unsigned long irqtime_account_hi_update(unsigned long > > max_jiffies) > >  { > >   u64 *cpustat = kcpustat_this_cpu->cpustat; > > + unsigned long irq_jif

Re: [PATCH v4 9/9] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-06-21 Thread Nick Dyer
On 20/06/2016 17:20, Hans Verkuil wrote: > On 06/17/2016 04:16 PM, Nick Dyer wrote: >> +static int rmi_f54_vidioc_enum_input(struct file *file, void *priv, >> + struct v4l2_input *i) >> +{ >> +struct f54_data *f54 = video_drvdata(file); >> +enum f54_report_ty

Re: [PATCH v2] net: stmmac: dwmac-rk: add rk3228-specific data

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 08:33:28PM +0800, Xing Zheng wrote: > Add constants and callback functions for the dwmac on rk3228/rk3229 socs. > As can be seen, the base structure is the same, only registers and the > bits in them moved slightly. > > Signed-off-by: Xing Zheng > --- > > Changes in v2: >

Re: [PATCH v2] scripts/gdb: add constants.py to .gitignore

2016-06-21 Thread Kieran Bingham
On 21/06/16 22:34, Omar Sandoval wrote: > $ git status > On branch master > Untracked files: > (use "git add ..." to include in what will be committed) > > asdf > > nothing added to commit but untracked files present (use "git add" to track) > > > tools/thermal/tmon/.gitignore als

Re: [PATCH 1/2] leds: ncp5623: Add device tree binding documentation

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 09:29:13AM +0200, Florian Vaussard wrote: > Add device tree binding documentation for On Semiconductor NCP5623 I2C > LED driver. The driver can independently control the PWM of the 3 > channels with 32 levels of intensity. > > The current delivered by the current source can

Re: [PATCH v2] scripts/gdb: add constants.py to .gitignore

2016-06-21 Thread Omar Sandoval
On Tue, Jun 21, 2016 at 11:03:39PM +0100, Kieran Bingham wrote: > On 21/06/16 22:34, Omar Sandoval wrote: > > $ git status > > On branch master > > Untracked files: > > (use "git add ..." to include in what will be committed) > > > > asdf > > > > nothing added to commit but untracked fi

Re: [RFC] capabilities: add capability cgroup controller

2016-06-21 Thread Serge E. Hallyn
Quoting Topi Miettinen (toiwo...@gmail.com): > On 06/21/16 15:45, Serge E. Hallyn wrote: > > Quoting Topi Miettinen (toiwo...@gmail.com): > >> On 06/19/16 20:01, se...@hallyn.com wrote: > >>> apologies for top posting, this phone doesn't support inline) > >>> > >>> Where are you preventing less pri

Re: [PATCH 2/3] iio: adc: max1363: Add device tree binding documentation

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 09:09:28AM +0200, Florian Vaussard wrote: > Add the device tree documentation for all the supported parts. Mandatory > binding is the compatible string and the slave I2C address. > > Optional properties can be used to specify the Vcc / Vref regulators, as > well as the IRQ

Re: [PATCH] scripts/gdb: add constants.py to .gitignore

2016-06-21 Thread Kieran Bingham
Hi Omar, Thanks for spotting, and submitting this. On 20/06/16 21:00, Omar Sandoval wrote: > From: Omar Sandoval > > Since scripts/gdb/linux/constants.py is autogenerated, this should have > been added to .gitignore when it was introduced. Absolutely! - This never hit me, as I always build out

Re: [PATCH] mm: slab.h: use ilog2() in kmalloc_index()

2016-06-21 Thread Andrew Morton
On Tue, 21 Jun 2016 02:33:06 +0300 Yury Norov wrote: > kmalloc_index() uses simple straightforward way to calculate > bit position of nearest or equal upper power of 2. > This effectively results in generation of 24 episodes of > compare-branch instructions in assembler. > > There is shorter way

Re: [PATCH v8 6/8] perf tools: Enable overwrite settings

2016-06-21 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 20, 2016 at 10:47:23AM +, Wang Nan escreveu: > This patch allows following config terms and option: > > Globally setting events to overwrite; > > # perf record --overwrite ... > > Set specific events to be overwrite or no-overwrite. > > # perf record --event cycles/overwrite/

Re: [PATCH 1/2] devicetree: Add vendor prefix for Inverse Path

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 04:50:52PM +0200, and...@inversepath.com wrote: > From: Andrej Rosano > > Inverse Path is an information security consulting company: > https://inversepath.com > > Signed-off-by: Andrej Rosano > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file

Re: [PATCHv3] wlcore: spi: add wl18xx support

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 12:02:06PM +, Reizer, Eyal wrote: > Add support for using with both wl12xx and wl18xx. > > - all wilink family needs special init command for entering wspi mode. > extra clock cycles should be sent after the spi init command while the > cs pin is high. > - Use inver

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:32:11PM +0200, Julia Lawall wrote: > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > On Tue, Jun 21, 2016 at 11:00:53PM +0200, Nicolas Palix (LIG) wrote: > > > Hi, > > > > > > Le 21/06/16 à 22:43, Julia Lawall a écrit : > > > > > > > > > > > >On Tue, 21 Jun 20

Re: mm, oom_reaper: How to handle race with oom_killer_disable() ?

2016-06-21 Thread Tetsuo Handa
Michal Hocko wrote: > On Wed 22-06-16 00:32:29, Tetsuo Handa wrote: > > Michal Hocko wrote: > [...] > > > Hmm, what about the following instead. It is rather a workaround than a > > > full flaged fix but it seems much more easier and shouldn't introduce > > > new issues. > > > > Yes, I think that

Re: [PATCH v3 8/8] scripts/coccinelle: require coccinelle >= 1.0.4 on device_node_continue.cocci

2016-06-21 Thread Nicolas Palix (LIG)
Le 21/06/16 à 22:36, Julia Lawall a écrit : On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: Make use of the new Requires: tag to be able to specify coccinelle binary version requirements. The cocci file device_node_continue.cocci requires at least coccinelle 1.0.4. Signed-off-by: Luis R. Rodri

Re: [PATCH v3 6/8] coccicheck: add support for requring a coccinelle version

2016-06-21 Thread Nicolas Palix (LIG)
Le 21/06/16 à 21:21, Luis R. Rodriguez a écrit : Enable Coccinelle SmPL patches to require a specific version of Coccinelle. In the event that the version does not match we just inform the user, if the user asked to go through all SmPL patches we just inform them of the need for a new version of

[patch -mm 2/2] mm, compaction: abort free scanner if split fails

2016-06-21 Thread David Rientjes
If the memory compaction free scanner cannot successfully split a free page (only possible due to per-zone low watermark), terminate the free scanner rather than continuing to scan memory needlessly. If the per-zone watermark is insufficient for a free page of order <= cc->order, then terminate

[patch -mm 1/2] mm/compaction: split freepages without holding the zone lock fix

2016-06-21 Thread David Rientjes
If __isolate_free_page() fails, avoid adding to freelist so we don't call map_pages() with it. Signed-off-by: David Rientjes --- Fix for mm-compaction-split-freepages-without-holding-the-zone-lock.patch in -mm. mm/compaction.c | 29 + 1 file changed, 13 insertions(

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > On Tue, Jun 21, 2016 at 11:32:11PM +0200, Julia Lawall wrote: > > > > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > > On Tue, Jun 21, 2016 at 11:00:53PM +0200, Nicolas Palix (LIG) wrote: > > > > Hi, > > > > > > > > Le 21/06/16 à 22:

Re: [PATCH 2/3] iio: potentiometer: mcp4531: Add device tree binding documentation

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 08:55:36AM +0200, Florian Vaussard wrote: > Add the device tree documentation for all the supported parts. Apart the > compatible string and standard I2C binding, no other binding is currently > needed. > > Signed-off-by: Florian Vaussard > --- > .../bindings/iio/potentio

Re: [PATCH 15/16] arm64: dts: msm8996: add sdc2 pinctrl

2016-06-21 Thread Andy Gross
On Fri, Jun 17, 2016 at 04:14:12PM +0100, Srinivas Kandagatla wrote: > This patch adds pinctrl required for sdhci for external sd card > controller. > > Signed-off-by: Srinivas Kandagatla > --- I presume this is the right patch 15? As it matches the subject in your cover letter? Andy

Re: [PATCH v8 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-21 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 20, 2016 at 10:47:21AM +, Wang Nan escreveu: > Create an auxiliary evlist for overwritable events. > > Before mmap, build this evlist and set 'overwrite' and 'backward' > attribute. Since perf_evlist__mmap_ex() only maps events when > evsel->overwrite matches evlist's corresponding

Re: [PATCH] sched/fair: initialize throttle_count for new task-groups lazily

2016-06-21 Thread Peter Zijlstra
On Thu, Jun 16, 2016 at 03:57:01PM +0300, Konstantin Khlebnikov wrote: > Cgroup created inside throttled group must inherit current throttle_count. > Broken throttle_count allows to nominate throttled entries as a next buddy, > later this leads to null pointer dereference in pick_next_task_fair().

Re: Warning when compiling DTB on X-Gene platform with dtc 1.4.1-g53bf130b

2016-06-21 Thread Duc Dang
On Tue, Jun 21, 2016 at 6:25 AM, Andrew Lunn wrote: > On Tue, Jun 21, 2016 at 02:02:44AM -0700, Duc Dang wrote: >> Hi Rob, >> >> I got warning on unit_address_vs_reg similar to this >> https://lkml.org/lkml/2016/3/7/43 when using v4.7-rc2 dtc to build dtb >> for X-Gene Mustang: >> >> dhdang@xgene-

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-21 Thread Guenter Roeck
On Tue, Jun 21, 2016 at 09:43:20PM +0200, Oliver Neukum wrote: > On Tue, 2016-06-21 at 06:24 -0700, Guenter Roeck wrote: > > On 06/21/2016 06:08 AM, Oliver Neukum wrote: > > > On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > > >> The purpose of this class is to provide unified interface

Re: [PATCH 2/3] iio: potentiometer: mcp4531: Add device tree binding documentation

2016-06-21 Thread Rob Herring
On Tue, Jun 21, 2016 at 09:49:20AM +0200, Florian Vaussard wrote: > Hello, > > On 06/21/2016 09:38 AM, Peter Rosin wrote: > > On 2016-06-21 08:55, Florian Vaussard wrote: > >> Add the device tree documentation for all the supported parts. Apart the > >> compatible string and standard I2C binding,

Re: [Cocci] [PATCH v3 0/8] coccicheck: modernize

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:30:03PM +0200, Julia Lawall wrote: > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > On Tue, Jun 21, 2016 at 11:02:49PM +0200, Julia Lawall wrote: > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > That is sanitized as follows: > > > > > > > > # spatc

Re: [PATCH v2 16/16] arm64: dts: msm8996: add sdc2 support

2016-06-21 Thread Andy Gross
On Tue, Jun 21, 2016 at 06:39:53PM +0100, Srinivas Kandagatla wrote: > This patch adds support to sdc2 sdhci controller, which is used on some > of the boards. > > Signed-off-by: Srinivas Kandagatla > --- > Hi Andy, > > Am resending just this one patch, as It does not make sense > to resend ent

Re: [RFC] capabilities: add capability cgroup controller

2016-06-21 Thread Topi Miettinen
On 06/21/16 15:45, Serge E. Hallyn wrote: > Quoting Topi Miettinen (toiwo...@gmail.com): >> On 06/19/16 20:01, se...@hallyn.com wrote: >>> apologies for top posting, this phone doesn't support inline) >>> >>> Where are you preventing less privileged tasks from limiting the caps of a >>> more privi

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > On Tue, Jun 21, 2016 at 11:10:00PM +0200, Julia Lawall wrote: > > > > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > > On Tue, Jun 21, 2016 at 10:43:04PM +0200, Julia Lawall wrote: > > > > > > > > > > > > On Tue, 21 Jun 2016, Luis R

Re: [Cocci] [PATCH v3 0/8] coccicheck: modernize

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > On Tue, Jun 21, 2016 at 11:02:49PM +0200, Julia Lawall wrote: > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > That is sanitized as follows: > > > > > > # spatch only allows include directories with the syntax "-I include" > > >

Re: [PATCH v2] scripts/gdb: add constants.py to .gitignore

2016-06-21 Thread Omar Sandoval
On Tue, Jun 21, 2016 at 10:20:14PM +0100, Kieran Bingham wrote: > On 21/06/16 22:11, Omar Sandoval wrote: > > From: Omar Sandoval > > > > Since scripts/gdb/linux/constants.py is autogenerated, this should have > > been added to .gitignore when it was introduced. > > > > Fixes: f197d75fcad1 ("scr

Re: [PATCH] ASoC: cs53l30: Add MUTE pin control support via GPIO

2016-06-21 Thread Rob Herring
On Mon, Jun 20, 2016 at 06:54:44PM -0700, Nicolin Chen wrote: > The codec chip has a physical MUTE pin to let users control it via > GPIO. So this patch add a mute control support to the driver. > > Signed-off-by: Nicolin Chen > --- > .../devicetree/bindings/sound/cs53l30.txt | 2 ++ >

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > On Tue, Jun 21, 2016 at 11:00:53PM +0200, Nicolas Palix (LIG) wrote: > > Hi, > > > > Le 21/06/16 à 22:43, Julia Lawall a écrit : > > > > > > > > >On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > > >>On Tue, Jun 21, 2016 at 10:17:38PM +0200, J

Re: [PATCH v2 00/17] DS1341 support and code cleanup

2016-06-21 Thread Alexandre Belloni
Hi, On 21/06/2016 at 00:18:22 -0700, Andrey Smirnov wrote : > Hi everyone, > > This set is a v2 of the DS1307 driver patches. Changes since v1: > > - Devicetree bindings are separated into a separate commit > > - Device tree properties now have vendor specific prefixes and >documenatation

Re: [PATCH v7 3/5] tpm: Clean up reading of timeout and duration capabilities

2016-06-21 Thread Jarkko Sakkinen
On Mon, Jun 20, 2016 at 06:54:00PM -0700, Ed Swierk wrote: > Call tpm_getcap() from tpm_get_timeouts() to eliminate redundant > code. Return all errors to the caller rather than swallowing them > (e.g. when tpm_transmit_cmd() returns nonzero). > > Signed-off-by: Ed Swierk Reviewed-by: Jarkko Sak

Re: [PATCH v2] pwm: improve args checking in pwm_apply_state()

2016-06-21 Thread Boris Brezillon
On Tue, 21 Jun 2016 11:37:31 -0700 Brian Norris wrote: > Hi Geert, > > On Tue, Jun 21, 2016 at 04:42:04PM +0200, Geert Uytterhoeven wrote: > > On Fri, May 27, 2016 at 6:45 PM, Brian Norris > > wrote: > > > It seems like in the process of refactoring pwm_config() to utilize the > > > newly-in

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:00:53PM +0200, Nicolas Palix (LIG) wrote: > Hi, > > Le 21/06/16 à 22:43, Julia Lawall a écrit : > > > > > >On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > >>On Tue, Jun 21, 2016 at 10:17:38PM +0200, Julia Lawall wrote: > >>> > >>> > >>>On Tue, 21 Jun 2016, Luis R. Ro

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Luis R. Rodriguez
On Tue, Jun 21, 2016 at 11:10:00PM +0200, Julia Lawall wrote: > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > On Tue, Jun 21, 2016 at 10:43:04PM +0200, Julia Lawall wrote: > > > > > > > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > > > > On Tue, Jun 21, 2016 at 10:17:38P

[PATCH v6 2/4] drm/i915/vlv: Reset the ADPA in vlv_display_power_well_init()

2016-06-21 Thread Lyude
While VGA hotplugging worked(ish) before, it looks like that was mainly because we'd unintentionally enable it in valleyview_crt_detect_hotplug() when we did a force trigger. This doesn't work reliably enough because whenever the display powerwell on vlv gets disabled, the values set in VLV_ADPA ge

Re: [PATCH v2 01/17] RTC: ds1307: Add DS1341 variant

2016-06-21 Thread Alexandre Belloni
Please always include a commit message. On 21/06/2016 at 00:20:50 -0700, Andrey Smirnov wrote : > Signed-off-by: Andrey Smirnov > --- > drivers/rtc/rtc-ds1307.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c > index 821d9c0..7e6

Re: [PATCH v3 3/8] coccicheck: enable parmap support

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > On Tue, Jun 21, 2016 at 10:17:38PM +0200, Julia Lawall wrote: > > > > > > On Tue, 21 Jun 2016, Luis R. Rodriguez wrote: > > > > > Coccinelle has had parmap support since 1.0.2, this means > > > it supports --jobs, enabling built-in multithreaded

Re: [PATCH v3 5/8] scripts: add Linux .cocciconfig for coccinelle

2016-06-21 Thread Julia Lawall
On Tue, 21 Jun 2016, Nicolas Palix (LIG) wrote: > Le 21/06/16 à 21:21, Luis R. Rodriguez a écrit : > > Help Coccinelle when used against Linux with a set of sensible defaults > > options for Linux. This hints to coccinelle git can be used for 'git grep' > > queries over coccigrep. A timeout of 200

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