Re: [PATCH] drivers: cpuidle: assign enter_freeze to same as enter callback function

2016-11-09 Thread Lorenzo Pieralisi
On Wed, Nov 09, 2016 at 05:43:30PM +, Sudeep Holla wrote: > enter_freeze() callback is expected atleast to do the same as enter() > but it has to guarantee that interrupts aren't enabled at any point > in its execution, as the tick is frozen. > > CPUs execute ->enter_freeze with the local tick

Re: [PATCH v2 2/2] mmc: sdhci-iproc: support standard byte register accesses

2016-11-09 Thread Scott Branden
Hi Adrian/Ulf, On 16-11-08 01:55 AM, Adrian Hunter wrote: On 01/11/16 18:37, Scott Branden wrote: Add bytewise register accesses support for newer versions of IPROC SDHCI controllers. Previous sdhci-iproc versions of SDIO controllers (such as Raspberry Pi and Cygnus) only allowed for 32-bit reg

Re: linux-next: Tree for Nov 9 (netdev, netfilter v6)

2016-11-09 Thread Randy Dunlap
On 11/08/16 20:40, Stephen Rothwell wrote: > Hi all, > > Changes since 20161108: > > The drm-misc tree gained a build failure, so I used the version from > next-20161108. > > The sound-asoc tree still had its build failure, so I used the version > from next-20161028. (similar to yesterday, ipv6

Re: [PATCH] x86/cpuid: Deal with broken firmware once more

2016-11-09 Thread Thomas Gleixner
On Wed, 9 Nov 2016, Charles (Chas) Williams wrote: > On 11/09/2016 11:03 AM, Peter Zijlstra wrote: > > On Wed, Nov 09, 2016 at 04:35:51PM +0100, Thomas Gleixner wrote: > > > Both ACPI and MP specifications require that the APIC id in the respective > > > tables must be the same as the APIC id in CP

Re: [ppdev] sysfs warning on qemu boot

2016-11-09 Thread Joe Lawrence
On 11/09/2016 12:04 PM, Sudip Mukherjee wrote: > Hi Joe, > > On 09/11/16 16:00, Joe Lawrence wrote: >> Hi Sudip, >> >> I hit a sysfs_warn_dup inside QEMU running 4.9.0-rc4 (I suspect earlier >> versions as well, but this is the first upstream I've run in a while). >> This warning looks like someth

Re: [RFC PATCH v2 1/5] net: mdio-mux-mmioreg: Add support for 16bit and 32bit register sizes

2016-11-09 Thread Rob Herring
On Mon, Oct 31, 2016 at 05:56:23PM +0100, Neil Armstrong wrote: > In order to support PHY switching on Amlogic GXL SoCs, add support for > 16bit and 32bit registers sizes. > > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindings/net/mdio-mux-mmioreg.txt | 4 +- > drivers/net/phy/mdio

Re: [PATCH v4] KVM: x86: emulate FXSAVE and FXRSTOR

2016-11-09 Thread kbuild test robot
Hi Radim, [auto build test ERROR on kvm/linux-next] [also build test ERROR on v4.9-rc4 next-20161109] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Radim-Kr-m/KVM-x86-emulate-FXSAVE-and

Re: [PATCH v2 2/2] mmc: sdhci-iproc: support standard byte register accesses

2016-11-09 Thread Scott Branden
Hi Adrian/Ulf, Please ignore my comments in last email I sent out. The v2 patch documentation matches the code and is good. I am confusing myself between internal versions and external upstream versions of this code. On 16-11-09 10:38 AM, Scott Branden wrote: Hi Adrian/Ulf, On 16-11-08 01

Re: [PATCH v4] KVM: x86: emulate FXSAVE and FXRSTOR

2016-11-09 Thread Radim Krčmář
2016-11-10 02:42+0800, kbuild test robot: > Hi Radim, And I even replied to the series, so this would happen ... Btw. would the tool recognize it if the header was [PATCH v4 4/4]? > [auto build test ERROR on kvm/linux-next] > [also build test ERROR on v4.9-rc4 next-20161109] > [if y

Re: [PATCH v8 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-11-09 Thread Marek Vasut
On 11/09/2016 07:37 PM, Joel Holdsworth wrote: > On 09/11/16 05:01, Marek Vasut wrote: >> On 11/08/2016 06:30 PM, Joel Holdsworth wrote: >> On the whole, I don't think the zero-length transfers are too >> egregiously bad, and all the alternatives seem worse to me. > > So why not tur

Re: KASAN & the vmalloc area

2016-11-09 Thread Dmitry Vyukov
On Wed, Nov 9, 2016 at 10:30 AM, Mark Rutland wrote: >> >> I've seen the same iteration slowness problem on x86 with >> >> CONFIG_DEBUG_RODATA which walks all pages. The is about 1 minute, but >> >> it is enough to trigger rcu stall warning. >> > >> > Interesting; do you know where that happens? I

Re: [PATCH] drivers: cpuidle: assign enter_freeze to same as enter callback function

2016-11-09 Thread Sudeep Holla
On 09/11/16 18:39, Lorenzo Pieralisi wrote: On Wed, Nov 09, 2016 at 05:43:30PM +, Sudeep Holla wrote: enter_freeze() callback is expected atleast to do the same as enter() but it has to guarantee that interrupts aren't enabled at any point in its execution, as the tick is frozen. CPUs exe

Re: [PATCH v8 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-11-09 Thread Joel Holdsworth
On 09/11/16 11:39, Marek Vasut wrote: On 11/09/2016 07:37 PM, Joel Holdsworth wrote: On 09/11/16 05:01, Marek Vasut wrote: On 11/08/2016 06:30 PM, Joel Holdsworth wrote: On the whole, I don't think the zero-length transfers are too egregiously bad, and all the alternatives seem worse to me.

Re: [PATCH 00/13] mmc: dw_mmc: cleans the codes for dwmmc controller

2016-11-09 Thread Heiko Stuebner
Am Donnerstag, 3. November 2016, 15:21:22 CET schrieb Jaehoon Chung: > This patchset is modified the some minor fixing and cleaning code. > If needs to split the patches, i will re-send the patches. > > * Major changes > - Use the cookie enum values like sdhci controller. > - Remove the unnecessar

Re: task isolation discussion at Linux Plumbers

2016-11-09 Thread Will Deacon
Hi Paul, Just a couple of comments, but they be more suited to Andy. On Wed, Nov 09, 2016 at 09:38:08AM -0800, Paul E. McKenney wrote: > @@ -355,10 +373,33 @@ static bool rcu_dynticks_in_eqs_since(struct > rcu_dynticks *rdtp, int snap) > static void rcu_dynticks_momentary_idle(void) > { >

Re: [srcu] Can we suppress sparse warning?

2016-11-09 Thread Paul E. McKenney
On Wed, Nov 09, 2016 at 08:36:31PM +0900, Tetsuo Handa wrote: > Hello. > > When I build > > -- test/test.c -- > #include > > static int __init test_init(void) > { > DEFINE_SRCU(srcu); > int idx = srcu_read_lock(&srcu); > void *ptr = srcu_dereference(ptr,

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-09 Thread Don Dutile
On 11/09/2016 12:03 PM, Will Deacon wrote: On Tue, Nov 08, 2016 at 09:52:33PM -0500, Don Dutile wrote: On 11/08/2016 06:35 PM, Alex Williamson wrote: On Tue, 8 Nov 2016 21:29:22 +0100 Christoffer Dall wrote: Is my understanding correct, that you need to tell userspace about the location of th

[GIT PULL] sound fixes for 4.9-rc5

2016-11-09 Thread Takashi Iwai
Linus, please pull sound fixes for v4.9-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.9-rc5 The topmost commit is 6809cd682b82dfff47943850d1a8c714f971b5ca sound fixes for 4.9-rc5 this be

[PATCH] perf/core: introduce context per CPU event list

2016-11-09 Thread kan . liang
From: Kan Liang The perf per-process monitoring overhead increases rapidly with the increasing of events# and CPU#. Here is some data from the overhead test on Skylake server which has 64 logical CPU. Elapsed time of AIM7 is used to measure the overhead. perf record -e $event_list -p $pi

Re: [PATCH] net/mlx4_en: Fix bpf_prog_add ref_cnt in mlx4

2016-11-09 Thread Daniel Borkmann
On 11/09/2016 06:06 PM, Brenden Blanco wrote: On Wed, Nov 09, 2016 at 10:57:32AM +0100, Daniel Borkmann wrote: On 11/09/2016 10:45 AM, Zhiyi Sun wrote: On Wed, Nov 09, 2016 at 10:05:31AM +0100, Daniel Borkmann wrote: On 11/09/2016 08:35 AM, Zhiyi Sun wrote: There are rx_ring_num queues. Each

[PATCH 0/3] Stop sched tick in idle injection task

2016-11-09 Thread Jacob Pan
Idle injection drivers today use RT threads to run idle loop. There are efficiency and accounting issues with the current intel_powerclamp.c and acpi_pad.c. A while ago, I posted CFS based idle injection patch trying to address them: https://lkml.org/lkml/2015/11/13/576 Peter proposed another appr

[PATCH 3/3] thermal/powerclamp: use PF_IDLE in injection kthread

2016-11-09 Thread Jacob Pan
With the introduction of play_idle(), idle injection kthread can go through the normal idle task processing to get correct accounting and turn off scheduler tick when possible. Hrtimer is used to wake up since timeout is most likely to occur during idle injection. Signed-off-by: Jacob Pan --- d

Re: [v4.9-rc4] dvb-usb/cinergyT2 NULL pointer dereference

2016-11-09 Thread Linus Torvalds
On Wed, Nov 9, 2016 at 3:09 AM, Jörg Otte wrote: > > Tried patch with no success. Again a NULL ptr dereferece. That patch was pure garbage, I think. Pretty much all the other drivers that use the same approach will have the same issue. Adding that init function just for the semaphore is crazy. I

[PATCH 2/3] cpuidle: allow setting deepest idle

2016-11-09 Thread Jacob Pan
When idle injection is used to cap power, we need to override governor's choice of idle states. This patch allows caller to select the deepest idle state on a CPU therefore achieve the maximum potential power saving. Signed-off-by: Jacob Pan --- drivers/cpuidle/cpuidle.c | 12 inclu

[PATCH 1/3] idle: add support for tasks that inject idle

2016-11-09 Thread Jacob Pan
From: Peter Zijlstra Idle injection drivers such as Intel powerclamp and ACPI PAD drivers use realtime tasks to take control of CPU then inject idle. There are two issues with this approach: 1. Low efficiency: injected idle task is treated as busy so sched ticks do not stop during injected i

Re: [PATCH 2/2] kasan: improve error reports

2016-11-09 Thread Andrey Ryabinin
On 11/08/2016 10:37 PM, Andrey Konovalov wrote: > 1. Change header format. > 2. Unify header format between different kinds of bad accesses. > 3. Add empty lines between parts of the report to improve readability. > 4. Improve slab object description. > 5. Improve mm/kasan/report.c readability. >

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-09 Thread Dan Williams
On Wed, Nov 9, 2016 at 9:36 AM, John Garry wrote: > On 09/11/2016 12:28, John Garry wrote: >> >> On 03/11/2016 14:58, John Garry wrote: >>> >>> The following patch introduces an annoying WARN >>> when a device is removed from the SAS topology: >>> [SCSI] libsas: prevent domain rediscovery competin

Re: [PATCH 2/2] ASoC: axentia: tse850: add ASoC driver for the Axentia TSE-850

2016-11-09 Thread Peter Rosin
On 2016-11-09 17:27, Peter Rosin wrote: > On 2016-11-09 14:38, Mark Brown wrote: >> On Tue, Nov 08, 2016 at 05:20:57PM +0100, Peter Rosin wrote: >>> + struct snd_soc_pcm_runtime *rtd = substream->private_data; >>> + struct device *dev = rtd->dev; >>> + struct snd_soc_dai *cpu_dai = rtd->cpu_d

Re: task isolation discussion at Linux Plumbers

2016-11-09 Thread Paul E. McKenney
On Wed, Nov 09, 2016 at 06:57:43PM +, Will Deacon wrote: > Hi Paul, > > Just a couple of comments, but they be more suited to Andy. > > On Wed, Nov 09, 2016 at 09:38:08AM -0800, Paul E. McKenney wrote: > > @@ -355,10 +373,33 @@ static bool rcu_dynticks_in_eqs_since(struct > > rcu_dynticks *r

Re: linux-next: manual merge of the akpm tree with the jc_docs tree

2016-11-09 Thread Mimi Zohar
On Wed, 2016-11-09 at 15:19 +1100, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm tree got a conflict in: > > Documentation/admin-guide/kernel-parameters.rst > > between commit: > > e52347bd66f6 ("Documentation/admin-guide: split the kernel parameter list > t

Re: [PATCH v2] irqchip/renesas-irqc: Postpone driver initialization

2016-11-09 Thread Florian Fainelli
On 11/08/2016 11:50 AM, Geert Uytterhoeven wrote: > Hi Florian, > > On Tue, Nov 8, 2016 at 8:42 PM, Florian Fainelli wrote: >> On 11/08/2016 11:35 AM, Geert Uytterhoeven wrote: >>> Currently the renesas-irqc driver uses postcore_initcall(). >>> >>> However, the new CPG/MSSR driver uses subsys_ini

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-09 Thread Christoffer Dall
On Wed, Nov 09, 2016 at 01:59:07PM -0500, Don Dutile wrote: > On 11/09/2016 12:03 PM, Will Deacon wrote: > >On Tue, Nov 08, 2016 at 09:52:33PM -0500, Don Dutile wrote: > >>On 11/08/2016 06:35 PM, Alex Williamson wrote: > >>>On Tue, 8 Nov 2016 21:29:22 +0100 > >>>Christoffer Dall wrote: > Is my

PM regression with LED changes in next-20161109

2016-11-09 Thread Tony Lindgren
Hi, Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing the sysfs brightness attr for changes.") breaks runtime PM for me. On my omap dm3730 based test system, idle power consumption is over 70 times higher now with this patch! It goes from about 6mW for the core system to over

Re: net/sctp: null-ptr-deref in sctp_inet_listen

2016-11-09 Thread Andrey Konovalov
On Wed, Nov 9, 2016 at 4:32 AM, Xin Long wrote: > this fix may break TYPE_SCTP_PRIMITIVE_SHUTDOWN statetable, > could you give the following one a try ? thanks. This one also works. Thanks. > > --- a/net/sctp/socket.c > +++ b/net/sctp/socket.c > @@ -4288,9 +4288,9 @@ static void sctp_shutdown(s

Re: [PATCHv2] PCI: QDF2432 32 bit config space accessors

2016-11-09 Thread Christopher Covington
Hi Bjorn, On 11/02/2016 12:08 PM, Bjorn Helgaas wrote: > On Tue, Nov 01, 2016 at 07:06:31AM -0600, c...@codeaurora.org wrote: >> Hi Bjorn, >> >> On 2016-10-31 15:48, Bjorn Helgaas wrote: >>> On Wed, Sep 21, 2016 at 06:38:05PM -0400, Christopher Covington wrote: The Qualcomm Technologies QDF24

Re: [PATCH v3 1/3] hwmon: (mcp3021) add devicetree support

2016-11-09 Thread Guenter Roeck
On Wed, Nov 09, 2016 at 06:16:13PM +0100, Clemens Gruber wrote: > Support setting the reference voltage from the device tree. > > Signed-off-by: Clemens Gruber > --- > drivers/hwmon/mcp3021.c | 46 -- > 1 file changed, 36 insertions(+), 10 deletions(-)

Re: [PATCH 4.4 00/69] 4.4.31-stable review

2016-11-09 Thread Guenter Roeck
On Wed, Nov 09, 2016 at 11:43:38AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.31 release. > There are 69 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.8 000/138] 4.8.7-stable review

2016-11-09 Thread Guenter Roeck
On Wed, Nov 09, 2016 at 11:44:43AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.7 release. > There are 138 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 1/2] stacktrace: fix print_stack_trace printing timestamp twice

2016-11-09 Thread Andrey Ryabinin
On 11/08/2016 10:37 PM, Andrey Konovalov wrote: > Right now print_stack_trace prints timestamp twice, the first time > it's done by printk when printing spaces, the second - by print_ip_sym. > As a result, stack traces in KASAN reports have double timestamps: > [ 18.822232] Allocated by task 3838

Re: [PATCH v2] irqchip/renesas-irqc: Postpone driver initialization

2016-11-09 Thread Geert Uytterhoeven
Hi Florian, On Wed, Nov 9, 2016 at 8:17 PM, Florian Fainelli wrote: > On 11/08/2016 11:50 AM, Geert Uytterhoeven wrote: >> On Tue, Nov 8, 2016 at 8:42 PM, Florian Fainelli >> wrote: >>> On 11/08/2016 11:35 AM, Geert Uytterhoeven wrote: Currently the renesas-irqc driver uses postcore_initca

Re: [PATCH v2] fs/nfsd/nfs4callback: Remove deprecated create_singlethread_workqueue

2016-11-09 Thread J. Bruce Fields
On Wed, Nov 09, 2016 at 12:33:35PM -0500, Jeff Layton wrote: > On Wed, 2016-11-09 at 11:27 -0500, J. Bruce Fields wrote: > > On Wed, Nov 09, 2016 at 08:18:08AM -0500, Jeff Layton wrote: > > > > > > On Tue, 2016-11-08 at 20:27 -0500, J. Bruce Fields wrote: > > > > > > > > On Tue, Nov 08, 2016 at 0

Re: [PATCH 6/8] block: add scalable completion tracking of requests

2016-11-09 Thread Jens Axboe
On 11/09/2016 09:09 AM, Jens Axboe wrote: On 11/09/2016 02:01 AM, Jan Kara wrote: On Tue 08-11-16 08:25:52, Jens Axboe wrote: On 11/08/2016 06:30 AM, Jan Kara wrote: On Tue 01-11-16 15:08:49, Jens Axboe wrote: For legacy block, we simply track them in the request queue. For blk-mq, we track t

Re: [PATCH 7/8] blk-wbt: add general throttling mechanism

2016-11-09 Thread Jens Axboe
On 11/09/2016 09:07 AM, Jens Axboe wrote: On 11/09/2016 01:40 AM, Jan Kara wrote: So for devices with write cache, you will completely drain the device before waking anybody waiting to issue new requests. Isn't it too strict? In particular may_queue() will allow new writers to issue new writes o

Re: [PATCH] arm64: mm: Fix memmap to be initialized for the entire section

2016-11-09 Thread Robert Richter
Will, On 07.11.16 21:05:14, Will Deacon wrote: > Just to reiterate here, but your patch as it stands will break other parts > of the kernel. For example, acpi_os_ioremap relies on being able to ioremap > these regions afaict. > > I think any solution involving pfn_valid is just going to move the

Re: [PATCH 2/3] vhost: better detection of available buffers

2016-11-09 Thread Michael S. Tsirkin
On Wed, Nov 09, 2016 at 03:38:32PM +0800, Jason Wang wrote: > We should use vq->last_avail_idx instead of vq->avail_idx in the > checking of vhost_vq_avail_empty() since latter is the cached avail > index from guest but we want to know if there's pending available > buffers in the virtqueue. > > S

Re: [v4.9-rc4] dvb-usb/cinergyT2 NULL pointer dereference

2016-11-09 Thread Malcolm Priestley
On 08/11/16 21:38, Mauro Carvalho Chehab wrote: Em Tue, 8 Nov 2016 22:15:24 +0100 Benjamin Larsson escreveu: On 11/08/2016 09:22 PM, Mauro Carvalho Chehab wrote: Em Tue, 8 Nov 2016 10:42:03 -0800 Linus Torvalds escreveu: On Sun, Nov 6, 2016 at 7:40 AM, Jörg Otte wrote: Since v4.9-rc4 I g

[PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h

2016-11-09 Thread Wei Huang
This patch moves ARMv8-related perf event definitions from perf_event.c to asm/perf_event.h; so KVM code can use them directly. This also help remove a duplicated definition of SW_INCR in perf_event.h. Signed-off-by: Wei Huang --- arch/arm64/include/asm/perf_event.h | 161 +++

[PATCH 2/2] KVM: ARM64: Fix the issues when guest PMCCFILTR is configured

2016-11-09 Thread Wei Huang
KVM calls kvm_pmu_set_counter_event_type() when PMCCFILTR is configured. But this function can't deals with PMCCFILTR correctly because the evtCount bit of PMCCFILTR, which is reserved 0, conflits with the SW_INCR event type of other PMXEVTYPER registers. To fix it, when eventsel == 0, this functio

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-09 Thread Alex Williamson
On Wed, 9 Nov 2016 20:23:03 +0100 Christoffer Dall wrote: > On Wed, Nov 09, 2016 at 01:59:07PM -0500, Don Dutile wrote: > > On 11/09/2016 12:03 PM, Will Deacon wrote: > > >On Tue, Nov 08, 2016 at 09:52:33PM -0500, Don Dutile wrote: > > >>On 11/08/2016 06:35 PM, Alex Williamson wrote: > > >>

Re: [PATCH 2/2] clk: pxa: fix pxa2xx_determine_rate return

2016-11-09 Thread Stephen Boyd
On 11/08, Arnd Bergmann wrote: > The new pxa2xx_determine_rate() function seems lacking in a few > regards: > > - For an exact match or no match at all, the rate is uninitialized > as reported by gcc -Wmaybe-unintialized: >drivers/clk/pxa/clk-pxa.c: In function 'pxa2xx_determine_rate': >

Re: [PATCH 3/3] vhost_net: tx support batching

2016-11-09 Thread Michael S. Tsirkin
On Wed, Nov 09, 2016 at 03:38:33PM +0800, Jason Wang wrote: > This patch tries to utilize tuntap rx batching by peeking the tx > virtqueue during transmission, if there's more available buffers in > the virtqueue, set MSG_MORE flag for a hint for tuntap to batch the > packets. The maximum number of

Re: [PATCHv2] PCI: QDF2432 32 bit config space accessors

2016-11-09 Thread Bjorn Helgaas
On Wed, Nov 09, 2016 at 02:25:56PM -0500, Christopher Covington wrote: > Hi Bjorn, > > On 11/02/2016 12:08 PM, Bjorn Helgaas wrote: > > On Tue, Nov 01, 2016 at 07:06:31AM -0600, c...@codeaurora.org wrote: > >> Hi Bjorn, > >> > >> On 2016-10-31 15:48, Bjorn Helgaas wrote: > >>> On Wed, Sep 21, 2016

Re: [PATCH 10/13] ARM: dts: exynos: replace to "max-frequecy" instead of "clock-freq-min-max"

2016-11-09 Thread Krzysztof Kozlowski
On Mon, Nov 07, 2016 at 09:38:15AM +0900, Jaehoon Chung wrote: > On 11/05/2016 12:04 AM, Krzysztof Kozlowski wrote: > > On Fri, Nov 04, 2016 at 12:19:49PM +0100, Heiko Stuebner wrote: > >> Hi Jaehoon, > >> > >> Am Freitag, 4. November 2016, 19:21:30 CET schrieb Jaehoon Chung: > >>> On 11/04/2016 03

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-09 Thread Robin Murphy
On 09/11/16 18:59, Don Dutile wrote: > On 11/09/2016 12:03 PM, Will Deacon wrote: >> On Tue, Nov 08, 2016 at 09:52:33PM -0500, Don Dutile wrote: >>> On 11/08/2016 06:35 PM, Alex Williamson wrote: On Tue, 8 Nov 2016 21:29:22 +0100 Christoffer Dall wrote: > Is my understanding correct,

Re: [PATCH 2/2] soc: qcom: smem_state: Fix include for ERR_PTR()

2016-11-09 Thread Andy Gross
On 9 November 2016 at 12:02, Bjorn Andersson wrote: > The correct include file for getting errno constants and ERR_PTR() is > linux/err.h, rather than linux/errno.h, so fix the include. > > Fixes: e8b123e60084 ("soc: qcom: smem_state: Add stubs for disabled > smem_state") > Signed-off-by: Bjorn A

Re: [PATCH] kvm: kvmclock: let KVM_GET_CLOCK return whether the master clock is in use

2016-11-09 Thread Marcelo Tosatti
On Wed, Nov 09, 2016 at 05:48:15PM +0100, Paolo Bonzini wrote: > Userspace can read the exact value of kvmclock by reading the TSC > and fetching the timekeeping parameters out of guest memory. This > however is brittle and not necessary anymore with KVM 4.11. Hi Paolo, Can you point to commit

Re: [PATCH v6 4/4] of/fdt: mark hotpluggable memory

2016-11-09 Thread Reza Arbab
On Wed, Nov 09, 2016 at 12:12:55PM -0600, Rob Herring wrote: On Mon, Nov 7, 2016 at 5:44 PM, Reza Arbab wrote: + hotpluggable = of_get_flat_dt_prop(node, "linux,hotpluggable", NULL); Memory being hotpluggable doesn't seem like a linux property to me. I'd drop the linux prefix. Also, thi

Re: [PATCH] serial: 8250_pxa: hide early console setup when disabled

2016-11-09 Thread Robert Jarzmik
Arnd Bergmann writes: > The newly added pxa glue driver for 8250 supports console output, but > fails to build if the 8250 console is disabled: > > drivers/tty/serial/8250/8250_pxa.o: In function `early_serial_pxa_setup': > 8250_pxa.c:(.init.text+0x50): undefined reference to `early_serial8250_se

Re: [PATCH] kvm: kvmclock: let KVM_GET_CLOCK return whether the master clock is in use

2016-11-09 Thread Marcelo Tosatti
On Wed, Nov 09, 2016 at 06:12:50PM -0200, Marcelo Tosatti wrote: > On Wed, Nov 09, 2016 at 05:48:15PM +0100, Paolo Bonzini wrote: > > Userspace can read the exact value of kvmclock by reading the TSC > > and fetching the timekeeping parameters out of guest memory. This > > however is brittle and n

Re: [PATCH] clk: pxa: Use __iomem properly and staticize lock variable

2016-11-09 Thread Robert Jarzmik
Stephen Boyd writes: > This function is passed an __iomem pointer but we use a u32 > pointer instead which makes checkers like spare complain. > Furthermore, "lock" is a pretty poor variable name for a string > that will go into lockdep reports and the symbol isn't marked > static. Cleanup all th

Re: [v4.9-rc4] dvb-usb/cinergyT2 NULL pointer dereference

2016-11-09 Thread Mauro Carvalho Chehab
Em Wed, 9 Nov 2016 11:07:35 -0800 Linus Torvalds escreveu: > On Wed, Nov 9, 2016 at 3:09 AM, Jörg Otte wrote: > > > > Tried patch with no success. Again a NULL ptr dereferece. > > That patch was pure garbage, I think. Pretty much all the other > drivers that use the same approach will have th

Re: [PATCH v2] fs/nfsd/nfs4callback: Remove deprecated create_singlethread_workqueue

2016-11-09 Thread J. Bruce Fields
On Wed, Nov 09, 2016 at 02:47:24PM -0500, J. Bruce Fields wrote: > For now I wish we could just like to continue assuming the workqueue > processes only one item at a time. Do we have that now, or do we need > to switch to (looking at workqueue.h...) alloc_ordered workqueue()? Oh, wait, I missed

Re: [v4.9-rc4] dvb-usb/cinergyT2 NULL pointer dereference

2016-11-09 Thread Mauro Carvalho Chehab
Em Wed, 9 Nov 2016 19:57:58 + Malcolm Priestley escreveu: > > Yeah, I avoided serializing the logic that detects if the firmware is > > loaded, but forgot that the power control had the same issue. The > > newer dvb usb drivers use the dvb-usb-v2, so I didn't touch this > > code for a while.

Re: [PATCH] leds: Add mutex protection in brightness_show()

2016-11-09 Thread Pavel Machek
Hi! > > Thanks for the analysis. Either way, this patch, with the modification > > I mentioned in my previous message is required to assure proper > > LED sysfs locking. > > > > Regarding the races between user and atomic context, I think that > > it should be system root's responsibility to defi

[tip:x86/urgent] x86/cpu: Deal with broken firmware (VMWare/XEN)

2016-11-09 Thread tip-bot for Thomas Gleixner
Commit-ID: d49597fd3bc7d9534de55e9256767f073be1b33a Gitweb: http://git.kernel.org/tip/d49597fd3bc7d9534de55e9256767f073be1b33a Author: Thomas Gleixner AuthorDate: Wed, 9 Nov 2016 16:35:51 +0100 Committer: Thomas Gleixner CommitDate: Wed, 9 Nov 2016 21:05:01 +0100 x86/cpu: Deal with bro

Re: [PATCHv2] PCI: QDF2432 32 bit config space accessors

2016-11-09 Thread Ard Biesheuvel
Hi Bjorn, On 9 November 2016 at 20:06, Bjorn Helgaas wrote: > On Wed, Nov 09, 2016 at 02:25:56PM -0500, Christopher Covington wrote: >> Hi Bjorn, >> [...] >> >> We're working to add the PNP0C02 resource to future firmware, but it's >> not in the current firmware. Are dmesg and /proc/iomem from th

Re: Summary of LPC guest MSI discussion in Santa Fe

2016-11-09 Thread Will Deacon
On Wed, Nov 09, 2016 at 08:23:03PM +0100, Christoffer Dall wrote: > On Wed, Nov 09, 2016 at 01:59:07PM -0500, Don Dutile wrote: > > On 11/09/2016 12:03 PM, Will Deacon wrote: > > >On Tue, Nov 08, 2016 at 09:52:33PM -0500, Don Dutile wrote: > > >>On 11/08/2016 06:35 PM, Alex Williamson wrote: > > >>

Re: [PATCH 1/2] wcn36xx: Correct Kconfig dependency

2016-11-09 Thread Marcel Holtmann
Hi Bjorn, > In the case SMD or WCNSS_CTRL are compiled as modules, wcn36xx must be > compiled as module as well, so we need to mention this dependency. > But we still want allow the driver to be compiled in case either of > those are =n, for compile testing reasons. > > Signed-off-by: Bjorn Ander

[PATCH net-next 01/17] Doc: hisi: hns adds mc-mac-mask property

2016-11-09 Thread Salil Mehta
From: Kejian Yan Since there is not enough tcam table entries for every vlan and multicast address, HNS needs to add support of fuzzy matching of TCAM tables. Adding the property to mask the bits to be fuzzy matched, so update the bindings document Signed-off-by: Kejian Yan Reviewed-by: Yisen Z

[PATCH net-next 16/17] net: hns: add multicast tcam table clear

2016-11-09 Thread Salil Mehta
From: Kejian Yan There is no clear operation before add a new multicast tcam table, so the tcam table will be overflow when add more entries. Reported-by: Daode Huang Signed-off-by: Kejian Yan Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.h

[PATCH net-next 12/17] net: hns: modify table index to get mac entry

2016-11-09 Thread Salil Mehta
From: Qianqian Xie Big-endian is not supported by the current definition of table index to get mac entry. It needs to be modified to support both Little-endian and Big-endian. Signed-off-by: Qianqian Xie Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/

Re: [PATCH v3] PM / devfreq: Restart previous governor if new governor fails to start

2016-11-09 Thread Saravana Kannan
On 11/08/2016 06:38 PM, Chanwoo Choi wrote: On 2016년 11월 09일 11:36, Chanwoo Choi wrote: Hi, On 2016년 11월 09일 10:33, Chanwoo Choi wrote: On 2016년 11월 09일 05:52, Saravana Kannan wrote: On 11/08/2016 01:02 AM, Chanwoo Choi wrote: Hi, On 2016년 11월 08일 03:57, Saravana Kannan wrote: On 10/26/201

[PATCH net-next 03/17] net: hns: fix for promisc mode in HNS driver

2016-11-09 Thread Salil Mehta
From: Kejian Yan If set promisc mode when there is some traffic, The service nic will cause system halted. We reserve the last 6 tcam entry for the 6 ports. If promisc mode is enabled, we can config the relative tcam as fuzzy matching and set to be valid, or set the tcam to be invalid Signed-off

[PATCH net-next 17/17] net: hns: add the support to add/remove the ucast entry to/from table

2016-11-09 Thread Salil Mehta
From: Kejian Yan This patch adds the support to add or remove the unicast entries to the table and remove from the table. Reported-by: Daode Huang Signed-off-by: Kejian Yan Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.h |8 +++

[PATCH net-next 02/17] net: hns: add fuzzy match of tcam table for hns

2016-11-09 Thread Salil Mehta
From: Kejian Yan Since there is not enough tcam table entries for vlan and multicast address, HNSv2 needs to add support of fuzzy matching of TCAM tables. To add fuzzy match of TCAM, we Add the property to mask the bits to be fuzzy matched Signed-off-by: Kejian Yan Reviewed-by: Yisen Zhuang Si

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-09 Thread Dan Williams
On Wed, Nov 9, 2016 at 11:09 AM, Dan Williams wrote: > On Wed, Nov 9, 2016 at 9:36 AM, John Garry wrote: >> On 09/11/2016 12:28, John Garry wrote: >>> >>> On 03/11/2016 14:58, John Garry wrote: The following patch introduces an annoying WARN when a device is removed from the SAS to

[PATCH net-next 00/17] Bug fixes & Code improvements in HNS driver

2016-11-09 Thread Salil Mehta
This patch-set introduces some bug fixes and code improvements. These have been identified during internal review or testing of the driver by internal Hisilicon teams. Daode Huang (3): net: hns: set default mac pause time to 0x net: hns: bug fix about restart auto-negotiation net: hns: f

[PATCH] staging: vc04_services: rework ioctl code path

2016-11-09 Thread Michael Zoran
VCHIQ/vc04_services has a userland device interface that includes ioctls. The current ioctl implementation is a single monolithic function over 1,000+ lines that handles 17 different ioctls through a complex maze of switch and if statements. The change reimplements that code path by breaking up th

Re: [PATCH] firmware: fix async/manual firmware loading

2016-11-09 Thread Luis R. Rodriguez
On Sun, Oct 30, 2016 at 06:28:58PM +0100, Yves-Alexis Perez wrote: > On Sun, 2016-10-30 at 15:50 +0100, Yves-Alexis Perez wrote: > > wait_for_completion_interruptible_timeout() return value is either > > -ERESTARTSYS (in case it was interrupted), 0 (in case the timeout expired) > > or the number of

Re: [PATCH] firmware: fix async/manual firmware loading

2016-11-09 Thread Luis R. Rodriguez
On Sun, Oct 30, 2016 at 03:50:48PM +0100, Yves-Alexis Perez wrote: > From: Yves-Alexis Perez > > wait_for_completion_interruptible_timeout() return value is either > -ERESTARTSYS (in case it was interrupted), 0 (in case the timeout expired) > or the number of jiffies left until timeout. The retur

[tip:mm/pat] x86/pat, mm: Make track_pfn_insert() return void

2016-11-09 Thread tip-bot for Borislav Petkov
Commit-ID: 308a047c3f6b61cc4007c0051fe420197ea58f86 Gitweb: http://git.kernel.org/tip/308a047c3f6b61cc4007c0051fe420197ea58f86 Author: Borislav Petkov AuthorDate: Wed, 26 Oct 2016 19:43:43 +0200 Committer: Thomas Gleixner CommitDate: Wed, 9 Nov 2016 21:36:07 +0100 x86/pat, mm: Make tra

Re: [PATCH] clk: pxa: Use __iomem properly and staticize lock variable

2016-11-09 Thread Stephen Boyd
On 11/08, Stephen Boyd wrote: > This function is passed an __iomem pointer but we use a u32 > pointer instead which makes checkers like spare complain. > Furthermore, "lock" is a pretty poor variable name for a string > that will go into lockdep reports and the symbol isn't marked > static. Cleanup

[PATCH v2] MIPS: fix duplicate define

2016-11-09 Thread Sudip Mukherjee
The mips build of ip27_defconfig is failing with the error: In file included from ../arch/mips/include/asm/mach-ip27/spaces.h:29:0, from ../arch/mips/include/asm/page.h:12, from ../arch/mips/vdso/vdso.h:26, from ../arch/mips/vdso/gettimeofday.c:11:

Re: [PATCH 1/2] wcn36xx: Correct Kconfig dependency

2016-11-09 Thread Bjorn Andersson
On Wed 09 Nov 12:32 PST 2016, Marcel Holtmann wrote: > Hi Bjorn, > > > In the case SMD or WCNSS_CTRL are compiled as modules, wcn36xx must be > > compiled as module as well, so we need to mention this dependency. > > But we still want allow the driver to be compiled in case either of > > those ar

Re: PM regression with LED changes in next-20161109

2016-11-09 Thread Jacek Anaszewski
Hi Tony, On 11/09/2016 08:23 PM, Tony Lindgren wrote: Hi, Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing the sysfs brightness attr for changes.") breaks runtime PM for me. On my omap dm3730 based test system, idle power consumption is over 70 times higher now with this

Re: [PATCH] phy: rockchip-inno-usb2: correct 480MHz output clock stable time

2016-11-09 Thread Doug Anderson
Hi, On Mon, Nov 7, 2016 at 5:00 AM, William Wu wrote: > We found that the system crashed due to 480MHz output clock of > USB2 PHY was unstable after clock had been enabled by gpu module. > > Theoretically, 1 millisecond is a critical value for 480MHz > output clock stable time, so we try to chang

[PATCH] f2fs: support multiple devices

2016-11-09 Thread Jaegeuk Kim
This patch implements multiple devices support for f2fs. Given multiple devices by mkfs.f2fs, f2fs shows them entirely as one big volume under one f2fs instance. Internal block management is very simple, but we will modify block allocation and background GC policy to boost IO speed by exploiting t

Re: [PATCH v2] video: backlight: pwm_bl: Initialize fb_bl_on[x] and use_count during pwm_backlight_probe()

2016-11-09 Thread Lukasz Majewski
Hi Lee, > On Tue, 08 Nov 2016, Lukasz Majewski wrote: > > > Dear All, > > > > > The commit a55944ca82d2 ("backlight: update bd state & fb_blank > > > properties when necessary") has posed some extra restrictions on > > > blanking and unblanking frame buffer device. > > > > > > Unfortunately, pw

Re: [PATCH] staging: vc04_services: rework ioctl code path

2016-11-09 Thread Arnd Bergmann
On Wednesday, November 9, 2016 12:37:27 PM CET Michael Zoran wrote: > static long > -vchiq_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > +vchiq_ioctl_shutdown(VCHIQ_INSTANCE_T instance, > + unsigned int cmd, > + unsigned long arg) { This does n

[tip:x86/apic] x86/msr: Add wrmsr_notrace()

2016-11-09 Thread tip-bot for Wanpeng Li
Commit-ID: b2c5ea4f759190ee9f75687a00035c1a66d0d743 Gitweb: http://git.kernel.org/tip/b2c5ea4f759190ee9f75687a00035c1a66d0d743 Author: Wanpeng Li AuthorDate: Mon, 7 Nov 2016 11:13:39 +0800 Committer: Thomas Gleixner CommitDate: Wed, 9 Nov 2016 22:03:14 +0100 x86/msr: Add wrmsr_notrace(

[tip:x86/apic] x86/apic: Prevent tracing on apic_msr_write_eoi()

2016-11-09 Thread tip-bot for Wanpeng Li
Commit-ID: 8ca225520e278e41396dab0524989f4848626f83 Gitweb: http://git.kernel.org/tip/8ca225520e278e41396dab0524989f4848626f83 Author: Wanpeng Li AuthorDate: Mon, 7 Nov 2016 11:13:40 +0800 Committer: Thomas Gleixner CommitDate: Wed, 9 Nov 2016 22:03:14 +0100 x86/apic: Prevent tracing o

Re: [PATCH 1/2] x86/tsc: add X86_FEATURE_TSC_KNOWN_FREQ flag

2016-11-09 Thread Thomas Gleixner
On Tue, 1 Nov 2016, Bin Gao wrote: > The X86_FEATURE_TSC_RELIABLE flag in Linux kernel implies both reliable > (at runtime) and trustable (at calibration). But reliable running and > trustable calibration are logically irrelevant. Per Thomas Gleixner's > suggestion we would like to split this flag

Re: [PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-09 Thread Arnd Bergmann
On Wednesday, November 9, 2016 6:19:06 PM CET Geert Uytterhoeven wrote: > On Wed, Nov 9, 2016 at 5:56 PM, Arnd Bergmann wrote: > > On Wednesday, November 9, 2016 2:34:33 PM CET Geert Uytterhoeven wrote: > >> > And Samsung. > >> > Shall I create the immutable branch now? > >> > >> Arnd: are you hap

Re: [PATCH v6 1/6] firmware: move umh locking code into fw_load_from_user_helper()

2016-11-09 Thread Luis R. Rodriguez
Not trimming the thread as others were not Cc'd so letting them review my review at the bottom. This review also includes quite a bit of a huge summary of some serious complexities of the UMH which are not really well understood or documented. This all relates to your patch and the ongoing conversa

Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration

2016-11-09 Thread Grygorii Strashko
On 11/08/2016 07:10 AM, Ivan Khoronzhuk wrote: > The dma ctlr is reseted to 0 while cpdma start, thus cpdma ctlr I assume this is because cpdma_ctlr_start() does soft reset. Is it correct? > cannot be configured after cpdma is stopped. So, restore content > of cpdma ctlr while off/on procedure.

[swiotlb PATCH v3 0/3] Add support for DMA writable pages being writable by the network stack.

2016-11-09 Thread Alexander Duyck
This patch series is a subset of the patches originally submitted with the above patch title. Specifically all of these patches relate to the swiotlb. I wasn't sure if I needed to resubmit this series or not. I see that v2 is currently sitting in the for-linus-4.9 branch of the swiotlb git repo.

[swiotlb PATCH v3 3/3] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-09 Thread Alexander Duyck
As a first step to making DMA_ATTR_SKIP_CPU_SYNC apply to architectures beyond just ARM I need to make it so that the swiotlb will respect the flag. In order to do that I also need to update the swiotlb-xen since it heavily makes use of the functionality. In addition I am applying the attribute t

Re: linux-next: build warning after merge of the akpm-current tree

2016-11-09 Thread Andrew Morton
On Wed, 9 Nov 2016 15:18:24 +0800 Huang Shijie wrote: > On Wed, Nov 09, 2016 at 03:10:06PM +1100, Stephen Rothwell wrote: > Hi Stephen, > > Hi Andrew, > > > > After merging the akpm-current tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > mm/hugetlb.c:

[swiotlb PATCH v3 1/3] swiotlb: remove unused swiotlb_map_sg and swiotlb_unmap_sg functions

2016-11-09 Thread Alexander Duyck
From: Christoph Hellwig Signed-off-by: Christoph Hellwig Acked-by: Konrad Rzeszutek Wilk --- include/linux/swiotlb.h |8 lib/swiotlb.c | 16 2 files changed, 24 deletions(-) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 5f81f8a.

[swiotlb PATCH v3 2/3] swiotlb-xen: Enforce return of DMA_ERROR_CODE in mapping function

2016-11-09 Thread Alexander Duyck
The mapping function should always return DMA_ERROR_CODE when a mapping has failed as this is what the DMA API expects when a DMA error has occurred. The current function for mapping a page in Xen was returning either DMA_ERROR_CODE or 0 depending on where it failed. On x86 DMA_ERROR_CODE is 0, bu

<    2   3   4   5   6   7   8   9   10   >