[PATCH] hwmon: max31790: fix dereference of ERR_PTR

2015-09-16 Thread Sudip Mukherjee
max31790_update_device() return the error code in ERR_PTR. We were checking if it has returned error or not but before checking we have dereferenced it. Signed-off-by: Sudip Mukherjee --- drivers/hwmon/max31790.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v2 1/5] ACPI / processor : add support for ACPI0010 processor container

2015-09-16 Thread Sudeep Holla
ACPI 6.0 adds support for optional processor container device which may contain child objects that are either processor devices or other processor containers. This allows representing hierarchical processor topologies. It is declared using the _HID of ACPI0010. It is an abstract container used to

[PATCH v2 3/5] ACPI / processor_idle: replace PREFIX with pr_fmt

2015-09-16 Thread Sudeep Holla
Like few of the other ACPI modules, replace PREFIX with pr_fmt and change all the printk call sites to use pr_* companion functions in processor_idle. Cc: "Rafael J. Wysocki" Signed-off-by: Sudeep Holla --- drivers/acpi/processor_idle.c | 25 +++-- 1 file changed, 11 inserti

[PATCH v2 0/5] ACPI / processor_idle: Add ACPIv6.0 LPI support

2015-09-16 Thread Sudeep Holla
ACPI 6.0 introduced LPI(Low Power Idle) states that provides an alternate method to describe processor idle states. It extends the specification to allow the expression of idle states like C-states selectable by the OSPM when a processor goes idle, but may affect more than one processor, and may af

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread David Ahern
On 9/16/15 7:59 AM, Richard Alpe wrote: Sorry about that kvm cmdline was a copy-paste error. Here's the right one using virtio. I was just about to respond to that as well... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.k

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread Richard Alpe
On 2015-09-16 15:53, Richard Alpe wrote: > On 2015-09-16 15:07, David Ahern wrote: >> On 9/16/15 5:50 AM, Richard Alpe wrote: >>> On 2015-09-16 11:24, Sergey Senozhatsky wrote: >>>> Hi, >>>> >>>> 4.3.0-rc1-next-20150916 >>>> >

[PATCH v2 5/5] ACPI / processor_idle: Add support for Low Power Idle(LPI) states

2015-09-16 Thread Sudeep Holla
ACPI 6.0 introduced an optional object _LPI that provides an alternate method to describe Low Power Idle states. It defines the local power states for each node in a hierarchical processor topology. The OSPM can use _LPI object to select a local power state for each level of processor hierarchy in

[PATCH v2 4/5] ACPI / processor_idle : introduce ARCH_SUPPORTS_ACPI_PROCESSOR_CSTATE

2015-09-16 Thread Sudeep Holla
ACPI 6.0 adds a new method to specify the CPU idle states(C-states) called Low Power Idle(LPI) states. Since new architectures like ARM64 use only LPIs, introduce ARCH_SUPPORTS_ACPI_PROCESSOR_CSTATE to encapsulate all the code supporting the old style C-states(_CST) This patch will help to extend

[PATCH v2 2/5] ACPI / sleep: move acpi_processor_sleep to sleep.c

2015-09-16 Thread Sudeep Holla
acpi_processor_sleep is neither related nor used by CPUIdle framework. It's used in system suspend/resume path as a syscore operation. It makes more sense to move it to acpi/sleep.c where all the S-state transition (a.k.a. Linux system suspend/hiberate) related code are present. Also make it depen

Re: [PATCH 3.12 00/33] 3.12.48-stable review

2015-09-16 Thread Jiri Slaby
On 09/15/2015, 04:53 PM, Nikolay Borisov wrote: > Maybe you would want to consider this: > https://patchwork.ozlabs.org/patch/459088/ > > It has already found its ways in other stable kernels, despite not being > cc'ed to stable. Hi, it does not apply to 3.12 and is not in 3.14 where I source pat

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread David Ahern
On 9/16/15 7:53 AM, Richard Alpe wrote: I to get an Oops in ip_route_input_noref(). It happens occasionally during bootup. KVM environment using virtio driver. Let me know if you need any additional info or if you want me to try to bisect it. Starting network... ... [0.877040] BUG: unable

Re: [Y2038] [PATCH V2] hp_sdc_rtc: fixed y2038 problem in proc_show

2015-09-16 Thread Arnd Bergmann
On Wednesday 16 September 2015 21:45:38 WEN Pingbo wrote: > hp_sdc_rtc_proc_show() use timeval to store the time, which will > overflowed in 2038. > > This patch fixes this problem by replacing timeval with timespec64. > hp_sdc_rtc_proc_show() only output string, so that userspace will work > norm

Re: [PATCH] drivers: of: check input parameter name for __of_find_property

2015-09-16 Thread Peng Fan
On Tue, Sep 15, 2015 at 09:27:59PM -0500, Rob Herring wrote: > On 09/15/2015 07:16 PM, Peng Fan wrote: > > Hi Rob, > > > > On Tue, Sep 15, 2015 at 10:56:28AM -0500, Rob Herring wrote: > >> On 09/11/2015 08:44 AM, Peng Fan wrote: > >>> Check input parameter 'name' for __of_find_property. If name is

Re: [PATCH 1/1] regulator: tps65218: Fix missing zero typo

2015-09-16 Thread Nishanth Menon
On 09/15/2015 03:34 PM, Andrew F. Davis wrote: > Add missing zero to value. This will be needed when range checking > is implemented. > > Signed-off-by: Andrew F. Davis Care about Fixes tag? > --- > drivers/regulator/tps65218-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread Richard Alpe
On 2015-09-16 15:07, David Ahern wrote: > On 9/16/15 5:50 AM, Richard Alpe wrote: >> On 2015-09-16 11:24, Sergey Senozhatsky wrote: >>> Hi, >>> >>> 4.3.0-rc1-next-20150916 >>> >>> oops after removal of rndis usb device > > Hi Sergey: &g

Re: [PATCH] KVM: vmx: fix VPID is 0000H in non-root operation

2015-09-16 Thread Wanpeng Li
On 9/16/15 8:42 PM, Paolo Bonzini wrote: On 16/09/2015 14:32, Jan Kiszka wrote: BTW, what will happen if allocate_vpid runs out of free slots and returns 0? Will we always fail then...? The return value of vmx_secondary_exec_control will not have SECONDARY_EXEC_ENABLE_VPID, so it's okay. Howe

Re: [PATCH] c6x: Use generic clkdev.h header

2015-09-16 Thread Mark Salter
On Tue, 2015-09-15 at 16:09 -0700, Stephen Boyd wrote: > The c6x clkdev.h header is the same as the asm-generic header, so > just use the asm-generic one. > > Signed-off-by: Stephen Boyd > --- Pulled into c6x tree for next merge window. Thanks! -- To unsubscribe from this list: send the line "

Re: [GIT PULL 0/8] perf/core improvements and fixes

2015-09-16 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 16, 2015 at 09:25:44AM +0200, Ingo Molnar escreveu: > > * Arnaldo Carvalho de Melo wrote: > > > Hi Ingo, > > > > Please consider pulling, > > > > - Arnaldo > > > > The following changes since commit 9059b284caecb628fac826c2c5cc8ee85708eec1: > > > > Merge tag 'perf-core-for-

Re: [RFC 08/14] sched/tune: add detailed documentation

2015-09-16 Thread Vincent Guittot
On 16 September 2015 at 11:26, Juri Lelli wrote: > > Hi Steve, > > thanks a lot for this interesting discussion. > > On 16/09/15 00:55, Steve Muckle wrote: > > On 09/15/2015 08:00 AM, Patrick Bellasi wrote: > >>> Agreed, though I also think those tunable values might also change for a > >>> given

Re: [Bugfix 3/3] eata: Enhance eata driver to support PCI device hot-removal

2015-09-16 Thread Christoph Hellwig
On Mon, Sep 14, 2015 at 10:21:14AM +0200, Hannes Reinecke wrote: > Welll ... if you don't have hardware (and I strongly hope you refer to > 'hardware able to do hotplugging', not 'hardware for the eata driver' > ...) why add the code at all? > Chances are no-one will ever need eata PCI hotplug; SCS

[PATCH V2] hp_sdc_rtc: fixed y2038 problem in proc_show

2015-09-16 Thread WEN Pingbo
hp_sdc_rtc_proc_show() use timeval to store the time, which will overflowed in 2038. This patch fixes this problem by replacing timeval with timespec64. hp_sdc_rtc_proc_show() only output string, so that userspace will work normally if we apply this patch. Not all timer in i8042 have y2038 risk(h

RE: tools: usbip: detach: avoid calling strlen() at each iteration

2015-09-16 Thread David Laight
From: Aaro Koskinen > Sent: 15 September 2015 21:56 ... > > - for (unsigned int i = 0; i < strlen(port); i++) > > + unsigned int port_len = strlen(port); > > + > > + for (unsigned int i = 0; i < port_len; i++) > > port is read only in this function, so maybe just use "const" and the > compil

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-16 Thread Grygorii Strashko
Hi Thierry, Alan, Rafael, On 09/12/2015 01:28 AM, Rafael J. Wysocki wrote: > On Friday, September 11, 2015 03:01:14 PM Alan Stern wrote: >> On Fri, 11 Sep 2015, Thierry Reding wrote: >> >>> On Fri, Sep 11, 2015 at 12:08:02AM +0200, Rafael J. Wysocki wrote: On Thursday, September 10, 2015 12:1

RE: [PATCH v2] futex: lower the lock contention on the HB lock during wake up

2015-09-16 Thread Thomas Gleixner
On Wed, 16 Sep 2015, Zhu Jefferry wrote: > > > The primary debugging shows the content of __lock is wrong in first. > > > After a call of Mutex_unlock, the value of __lock should not be this > > > thread self. But we observed The value of __lock is still self after > > > unlock. So, other threads w

Re: [PATCH] scsi: provide UAPI version of scsi/sg.h and scsi/scsi_ioctl.h

2015-09-16 Thread Christoph Hellwig
Hi Paolo, can you just move them to include/linux/ directly? Also scsi/scsi.h has some additional ioctl defintions that should be added to the UAPI scsi_ioctl.h. Otherwise this looks ok to me. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-16 Thread Grygorii Strashko
On 09/16/2015 04:28 AM, Rafael J. Wysocki wrote: > On Tuesday, September 15, 2015 03:18:19 PM Alan Stern wrote: >> On Tue, 15 Sep 2015, Thierry Reding wrote: >> There are a few things to watch out for. Since the dpm_list gets modified during system sleep transitions, we would have to mak

Re: [PATCH] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-16 Thread Ard Biesheuvel
On 16 September 2015 at 15:28, Borislav Petkov wrote: > On Wed, Sep 16, 2015 at 01:25:06PM +0200, Ard Biesheuvel wrote: >> ... so even if we wanted to, it would be intractible to find each >> cross-section relative reference and do the fixup. > > Hmm, maybe we should go and patch EFI code segments

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-16 Thread Grygorii Strashko
On 09/16/2015 04:18 AM, Rafael J. Wysocki wrote: On Tuesday, September 15, 2015 05:53:02 PM Thierry Reding wrote: On Sat, Sep 12, 2015 at 12:38:19AM +0200, Rafael J. Wysocki wrote: On Friday, September 11, 2015 02:03:46 PM Thierry Reding wrote: On Fri, Sep 11, 2015 at 12:08:02AM +0200, Rafael

Re: [PATCH] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-16 Thread James Bottomley
On Wed, 2015-09-16 at 13:25 +0200, Ard Biesheuvel wrote: > On 16 September 2015 at 12:08, Borislav Petkov wrote: > > On Wed, Sep 09, 2015 at 12:21:23PM +0100, Matt Fleming wrote: > >> On Wed, 09 Sep, at 08:33:07AM, joeyli wrote: > >> > > >> > Yes, the machine on my hand has EFI_PROPERTIES_TABLE en

Re: First kernel patch (optimization)

2015-09-16 Thread Greg KH
On Wed, Sep 16, 2015 at 07:45:53AM -0400, Austin S Hemmelgarn wrote: > On 2015-09-15 20:09, Steve Calfee wrote: > >On Tue, Sep 15, 2015 at 12:53 PM, Eric Curtin wrote: > >>Signed-off-by: Eric Curtin > >> > >>diff --git a/tools/usb/usbip/src/usbip_detach.c > >>b/tools/usb/usbip/src/usbip_detach.c

Re: [PATCH] arm64: mt8173.dtsi: correct i2c node names

2015-09-16 Thread Daniel Kurtz
On Wed, Sep 16, 2015 at 9:35 AM, Yingjoe Chen wrote: > Node name in device tree should describe general class of the > device. Correct incorrect i2c node names. > > Signed-off-by: Yingjoe Chen Reviewed-by: Daniel Kurtz > --- > This is based on v4.3-rc1. > All the other i2c node names are corre

Re: [PATCH v3] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-16 Thread Jarkko Sakkinen
On Wed, Sep 16, 2015 at 10:19:17AM +0300, Jarkko Sakkinen wrote: > On Tue, Sep 15, 2015 at 11:22:27AM -0600, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2015 at 08:05:40PM +0300, Jarkko Sakkinen wrote: > > > The command buffer address must be read with exactly two 32-bit reads. > > > Otherwise, on s

Re: [PATCH v2] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-16 Thread Julia Lawall
Acked-by: Julia Lawall On Wed, 16 Sep 2015, Andrzej Hajda wrote: > Code comparing unsigned variables with zero using operators < or >= does not > make sense. It is always false or true, respectively. However, its presence > often indicates bugs in the code. > gcc can detect it also using -Wtype

Re: [PATCH] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-16 Thread Borislav Petkov
On Wed, Sep 16, 2015 at 01:25:06PM +0200, Ard Biesheuvel wrote: > ... so even if we wanted to, it would be intractible to find each > cross-section relative reference and do the fixup. Hmm, maybe we should go and patch EFI code segments and fixup all relative references after mapping. I mean, if y

[PATCH v4 1/4] clk: qcom: Add MSM8916 iommu clocks

2015-09-16 Thread Georgi Djakov
Add support for the msm8916 TCU (Translation Control Unit) clocks that are needed for IOMMU. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 48 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 51 insertions(+)

[PATCH v4 4/4] clk: qcom: Add MSM8916 audio clocks

2015-09-16 Thread Georgi Djakov
Add support for the msm8916 audio clocks. This includes core bus, low-power audio and codec clocks. They are required for audio playback. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 388 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h

[PATCH v4 2/4] clk: qcom: Add support for RCGs with shared branches

2015-09-16 Thread Georgi Djakov
Some root clock generators may have child branches that are controlled by different CPUs. These RCGs require some special operations: - some enable bits have to be toggled when we set the rate; - if RCG is disabled we only cache the rate and set it later when enabled; - when the RCG is disabled,

[PATCH v4 0/4] Add support for more MSM8916 clocks

2015-09-16 Thread Georgi Djakov
This patchset adds support for iommu, gpu and audio clocks on the MSM8916 platforms. Changes since v3 (https://lkml.org/lkml/2015/8/13/393) * Use recalc_rate() to find current frequency when enabling a shared branch clock and there is no cached frequency yet. Changes since v2 (https://lkml.org/

Re: [PATCH 1/1] regulator: tps65218: Fix missing zero typo

2015-09-16 Thread Dan Murphy
On 09/15/2015 03:34 PM, Andrew F. Davis wrote: > Add missing zero to value. This will be needed when range checking > is implemented. > > Signed-off-by: Andrew F. Davis > --- > drivers/regulator/tps65218-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread David Ahern
On 9/16/15 3:24 AM, Sergey Senozhatsky wrote: Hi, 4.3.0-rc1-next-20150916 oops after removal of rndis usb device Sergey: Can you send me the oops output? Thanks, David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[PATCH v4 3/4] clk: qcom: Add MSM8916 gpu clocks

2015-09-16 Thread Georgi Djakov
Add support for the msm8916 BIMC (Bus Integrated Memory Controller) clocks that are needed for GPU. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 61 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 64 inserti

[PATCH v2] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-16 Thread Andrzej Hajda
Code comparing unsigned variables with zero using operators < or >= does not make sense. It is always false or true, respectively. However, its presence often indicates bugs in the code. gcc can detect it also using -Wtype-limits switch, but it warns also in correct cases, making too much noise. S

Guten Tag,

2015-09-16 Thread ruizhenwu2000
Guten Tag, Ich wende mich an Sie zu einem Vorhaben gegenseitigen Nutzen für uns beide. Bei Interesse können Sie mir auf meine e-Mail unten, um weitere Informationen und Erklärung über das Telefon zu erreichen. E-Mail: ruizhenw...@gmail.com -- To unsubscribe from this list: send the line "unsubs

[GIT PULL] pin control fixes for v4.3, take one

2015-09-16 Thread Linus Walleij
Hi Linus, here is a smallish set of pin control fixes for the v4.3 series. Nothing special to say, business as usual, details in the signed tag. Please pull them in! Yours, Linus Walleij The following changes since commit 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f: Linux 4.3-rc1 (2015-09-12

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-16 Thread Thierry Reding
On Tue, Sep 15, 2015 at 03:18:19PM -0400, Alan Stern wrote: > On Tue, 15 Sep 2015, Thierry Reding wrote: > > > > There are a few things to watch out for. Since the dpm_list gets > > > modified during system sleep transitions, we would have to make sure > > > that nothing gets probed during those

[PATCH] Fixes: 805de8f43c20 (atomic: Replace atomic_{set,clear}_mask() usage)

2015-09-16 Thread Jason J. Herne
The offending commit accidentally replaces an atomic_clear with an atomic_or instead of an atomic_andnot in kvm_s390_vcpu_request_handled. The symptom is that kvm guests on s390 hang on startup. This patch simply replaces the incorrect atomic_or with atomic_andnot Signed-off-by: Jason J. Herne --

[PATCH] Fix Geode LX timekeeping in generic build

2015-09-16 Thread David Woodhouse
In 2007, commit 07190a08eef36 ("Mark TSC on GeodeLX reliable") bypassed verification of the TSC on Geode LX. However, this code (now in the check_system_tsc_reliable() function in arch/x86/kernel/tsc.c) was only present if CONFIG_MGEODE_LX was set. OpenWRT has recently started building its generi

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread David Ahern
On 9/16/15 5:50 AM, Richard Alpe wrote: On 2015-09-16 11:24, Sergey Senozhatsky wrote: Hi, 4.3.0-rc1-next-20150916 oops after removal of rndis usb device Hi Sergey: Is this with KVM or baremetal? -8<- thanks for the analysis addr2line -e vmlinux -i 0x8146c0b1 net/i

Re: [RFC PATCH v2 3/7] arm64: alternative: Apply alternatives early in boot process

2015-09-16 Thread Will Deacon
On Mon, Sep 14, 2015 at 02:26:17PM +0100, Daniel Thompson wrote: > Currently alternatives are applied very late in the boot process (and > a long time after we enable scheduling). Some alternative sequences, > such as those that alter the way CPU context is stored, must be applied > much earlier in

[PATCH perf/core ] [BUGFIX] perf probe: Fix a segfault when removing uprobe events

2015-09-16 Thread Masami Hiramatsu
Fix a segfault bug and a small mistake in perf probe -d. Since the "ulist" in perf_del_probe_events is never initialized, strlist__add(ulist, *) always causes a segfault when removing uprobe events by perf probe -d. Also, the "str" local variable is never released if fail to allocate the "klist".

[PATCH v2 2/2] ACPI / tables : remove unused table_end parameter to acpi_tbl_entry_handler

2015-09-16 Thread Sudeep Holla
acpi_tbl_entiry_handler expects `table_end` pointer to be passed so that the individual subtable entry handler can use it to validate the entries. However, acpi_parse_entries now validates the end of an entry against the table end using the length in the sub-table entry. All the only user of that

[PATCH] Staging: lustre: lustre: mgc: mgc_request.c: Removed unnecessary space

2015-09-16 Thread Sakshi Vaid
Removed the unnecessary space in the declaration of a pointer. The following error was given. ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Sakshi Vaid --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH] kernel.h: make abs() work with 64-bit types

2015-09-16 Thread Michal Nazarewicz
For 64-bit arguments, abs macro casts it to an int which leads to lost precision and may cause incorrect results. To deal with 64-bit types abs64 macro has been introduced but still there are places where abs macro is used incorrectly. To deal with the problem, expand abs macro such that it opera

[PATCH v2 1/2] ACPI / tables: simplify acpi_parse_entries

2015-09-16 Thread Sudeep Holla
acpi_parse_entries passes the table end pointer to the sub-table entry handler. acpi_parse_entries itself could validate the end of an entry against the table end using the length in the sub-table entry. This patch adds the validation of the sub-table entry end using the length field.This will hel

RE: First kernel patch (optimization)

2015-09-16 Thread David Laight
From: Austin S Hemmelgarn > Sent: 16 September 2015 12:46 > On 2015-09-15 20:09, Steve Calfee wrote: > > On Tue, Sep 15, 2015 at 12:53 PM, Eric Curtin > > wrote: > >> Signed-off-by: Eric Curtin > >> > >> diff --git a/tools/usb/usbip/src/usbip_detach.c > >> b/tools/usb/usbip/src/usbip_detach.c >

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-16 Thread Christian Borntraeger
Am 16.09.2015 um 14:22 schrieb Oleg Nesterov: >> The issue is that rcu_sync doesn't eliminate synchronize_sched, > > Yes, but it eliminates _expedited(). This is good, but otoh this means > that (say) individual __cgroup_procs_write() can take much more time. > However, it won't block the readers

Re: [PATCH v3 3/6] iommu: add ARM short descriptor page table allocator.

2015-09-16 Thread Will Deacon
Hello Yong, On Mon, Sep 14, 2015 at 01:25:00PM +0100, Yong Wu wrote: > On Tue, 2015-07-21 at 18:11 +0100, Will Deacon wrote: > > > + ret = _arm_short_map(data, iova, paddr, pgdprot, pteprot, large); > > > + > > > + tlb->tlb_add_flush(iova, size, true, data->iop.cookie); > > > + t

Re: [RFC PATCH 0/3] fix *pbl format support

2015-09-16 Thread Maurizio Lombardi
Hi, On 09/16/2015 02:27 PM, Rasmus Villemoes wrote: > > If we want to fix the problem with 3/3, then this seems obviously > necessary. There may be stuff we want to optimize later (for example, I > don't think we should always make a local copy of the entire struct; Yes I know, I just tried not

[PATCH] Added multiplier for APERF and MPERF counters

2015-09-16 Thread Lukasz Anaczkowski
From: Hubert Chrzaniuk Intel(R) Xeon Phi x200 (KNL) increments APERF/MPERF every 1024 clocks, which is different than other Intel architectures (incremented every single clock). It results in understated values for %Busy and Avg_MHz values, thus multiplier for APERF/MPERF counters. Signed-off-by

Re: [PATCH] ARCNET: fix hard_header_len limit

2015-09-16 Thread Michael Grzeschik
On Wed, Aug 05, 2015 at 05:34:51PM +0200, Michael Grzeschik wrote: > On Thu, Jul 30, 2015 at 11:16:36AM -0700, David Miller wrote: > > From: Michael Grzeschik > > Date: Thu, 30 Jul 2015 15:34:36 +0200 > > > > > The commit <9c7077622dd9> ("packet: make packet_snd fail on len smaller > > > than l2

Re: [PATCH 1/5] spi: introduce mmap read support for spi flash devices

2015-09-16 Thread Jagan Teki
On 15 September 2015 at 00:05, Mark Brown wrote: > On Fri, Sep 04, 2015 at 04:55:33PM +0530, Jagan Teki wrote: >> On 4 September 2015 at 13:59, Vignesh R wrote: > >> > + * @spi_mtd_mmap_read: some spi-controller hardwares provide memory >> > + * mapped interface to communicate

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-16 Thread Oleg Nesterov
On 09/16, Paolo Bonzini wrote: > > > On 16/09/2015 14:22, Oleg Nesterov wrote: > > > The issue is that rcu_sync doesn't eliminate synchronize_sched, > > > > Yes, but it eliminates _expedited(). This is good, but otoh this means > > that (say) individual __cgroup_procs_write() can take much more ti

Re: [PATCH] KVM: vmx: fix VPID is 0000H in non-root operation

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 14:32, Jan Kiszka wrote: > > BTW, what will happen if allocate_vpid runs out of free slots and > returns 0? Will we always fail then...? The return value of vmx_secondary_exec_control will not have SECONDARY_EXEC_ENABLE_VPID, so it's okay. However, I think we need this in the nes

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 14:22, Oleg Nesterov wrote: > > The issue is that rcu_sync doesn't eliminate synchronize_sched, > > Yes, but it eliminates _expedited(). This is good, but otoh this means > that (say) individual __cgroup_procs_write() can take much more time. > However, it won't block the readers

[PATCH v2 7/7] usb: dwc2: refactor common low-level hw code to platform.c

2015-09-16 Thread Marek Szyprowski
DWC2 module on some platforms needs three additional hardware resources: phy controller, clock and power supply. All of them must be enabled/activated to properly initialize and operate. This was initially handled in s3c-hsotg driver, which has been converted to 'gadget' part of dwc2 driver. Unfort

[PATCH] remoteproc/wkup_m3: Use MODULE_DEVICE_TABLE to export alias

2015-09-16 Thread Dave Gerlach
Use MODULE_DEVICE_TABLE with wkup_m3_rproc_of_match so the module alias is exported and the wkup_m3_rproc driver can automatically probe. Signed-off-by: Dave Gerlach --- drivers/remoteproc/wkup_m3_rproc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/wkup_m3_rproc.c b/d

Re: [PATCH] KVM: vmx: fix VPID is 0000H in non-root operation

2015-09-16 Thread Jan Kiszka
On 2015-09-16 13:31, Wanpeng Li wrote: > Reference SDM 28.1: > > The current VPID is H in the following situations: > — Outside VMX operation. (This includes operation in system-management > mode under the default treatment of SMIs and SMM with VMX operation; > see Section 34.14.) > — In

[PATCH] Staging: lustre: lustre: mdc: lproc_mdc.c: declared file_operations struct as const

2015-09-16 Thread Sakshi Vaid
Declared the file_operations structure as const as done elsewhere in the kernel, as there are no modifiactions to this field. Following warning found by checkpatch WARNING: struct file_operations should normally be const Signed-off-by: Sakshi Vaid --- drivers/staging/lustre/lustre/mdc/lproc_mdc

Re: [PATCH v3 2/8] genirq: irqdomain: Remove irqdomain dependency on struct device_node

2015-09-16 Thread Rafael J. Wysocki
On Wednesday, September 16, 2015 08:49:27 AM Marc Zyngier wrote: > On 16/09/15 02:53, Rafael J. Wysocki wrote: > > On Tuesday, September 15, 2015 10:18:32 AM Marc Zyngier wrote: > >> On 15/09/15 00:15, Rafael J. Wysocki wrote: > >>> On Monday, September 14, 2015 05:44:01 PM Marc Zyngier wrote: > >>

Re: [RFC PATCH 0/3] fix *pbl format support

2015-09-16 Thread Rasmus Villemoes
On Wed, Sep 16 2015, Maurizio Lombardi wrote: > Hi, > > I tried to fix the "*pb[l]" format issue while taking care of the problems > discussed in this thread: > > https://lkml.org/lkml/2015/9/9/153 > > I would like to know whether this approach is more acceptable to you: > > PATCH 1 modifies the

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-16 Thread Oleg Nesterov
On 09/16, Paolo Bonzini wrote: > > > On 16/09/2015 10:57, Christian Borntraeger wrote: > > Am 16.09.2015 um 10:32 schrieb Paolo Bonzini: > >> > >> > >> On 15/09/2015 19:38, Paul E. McKenney wrote: > >>> Excellent points! > >>> > >>> Other options in such situations include the following: > >>> > >>

[PATCH 2/3] mm/oom_kill: introduce is_sysrq_oom helper

2015-09-16 Thread Yaowei Bai
Introduce is_sysrq_oom helper function indicating oom kill triggered by sysrq to improve readability. No functional changes. Signed-off-by: Yaowei Bai --- mm/oom_kill.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 1ec

[PATCH 1/3] mm/vmscan: make inactive_anon_is_low_global return directly

2015-09-16 Thread Yaowei Bai
Delete unnecessary if to let inactive_anon_is_low_global return directly. No functional changes. Signed-off-by: Yaowei Bai --- mm/vmscan.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 2d978b2..2785d8e 100644 --- a/mm/vmscan.c +++ b/mm/v

[PATCH 3/3] mm/compaction: add an is_via_compact_memory helper function

2015-09-16 Thread Yaowei Bai
Introduce is_via_compact_memory helper function indicating compacting via /proc/sys/vm/compact_memory to improve readability. To catch this situation in __compaction_suitable, use order as parameter directly instead of using struct compact_control. This patch has no functional changes. Signed-of

Re: [PATCH] KVM: add halt_attempted_poll to VCPU stats

2015-09-16 Thread Wanpeng Li
On 9/16/15 6:12 PM, Christian Borntraeger wrote: Am 15.09.2015 um 18:27 schrieb Paolo Bonzini: This new statistic can help diagnosing VCPUs that, for any reason, trigger bad behavior of halt_poll_ns autotuning. For example, say halt_poll_ns = 48, and wakeups are spaced exactly like 479us, 4

[PATCH] staging: wilc1000: Added new lines

2015-09-16 Thread Aparna Karuthodi
Added new lines after declarations for removing coding style warnings detected by checkpatch.The warnings are given below: 1561: WARNING: Missing a blank line after declarations 1551: WARNING: Missing a blank line after declarations 1329: WARNING: Missing a blank line after declarations 1213: WARN

RE: [PATCH 2/2] selftests/pstore: add pstore test scripts going with reboot

2015-09-16 Thread 阿口誠司 / AGUCHI,SEIJI
>+prlog "Causing kernel crash ..." >+ >+# enable all functions triggered by sysrq >+echo 1 > /proc/sys/kernel/sysrq >+# setting to reboot in 3 seconds after panic >+echo 3 > /proc/sys/kernel/panic >+# setting to cause panic when oops occurs >+echo 1 > /proc/sys/kernel/panic_on_oops >+ >+# create a

Re: [linux-next] oops in ip_route_input_noref

2015-09-16 Thread Richard Alpe
On 2015-09-16 11:24, Sergey Senozhatsky wrote: > Hi, > > 4.3.0-rc1-next-20150916 > > oops after removal of rndis usb device > > ... > 8146c052: 00 > 8146c053: 0f b6 55 8a movzbl -0x76(%rbp),%edx > 8146c057:

RE: [PATCH 1/2] selftests/pstore: add pstore test script for pre-reboot

2015-09-16 Thread 阿口誠司 / AGUCHI,SEIJI
Hi, > >> +prlog -n "Checking pstore backend is registered ... " > >> +be_msg=`dmesg | grep "pstore: Registered [a-zA-Z0-9]\+ as persistent > >> store backend$"` > >> +if [ $? -eq 0 ]; then > >> +backend=`echo ${be_msg} | sed -e 's/^.*Registered\ > >> \([a-zA-z0-9-]\+\)\ as.*$/\1/g'` > >> +

Re: [PATCH v6 1/4] mtd: nand: increase ready wait timeout and report timeouts

2015-09-16 Thread Niklas Cassel
On 09/16/2015 01:36 PM, Alex Smith wrote: > From: Alex Smith > > If nand_wait_ready() times out, this is silently ignored, and its > caller will then proceed to read from/write to the chip before it is > ready. This can potentially result in corruption with no indication as > to why. > > While a

[PATCH 2/2] zpool/zsmalloc/zbud: align on interfaces

2015-09-16 Thread Vitaly Wool
As a preparation step for zram to be able to use common zpool API, there has to be some alignment done on it. This patch adds functions that correspond to zsmalloc-specific API to the common zpool API and takes care of the callbacks that have to be introduced, too. This version of the patch uses s

[PATCH 1/2] zbud: allow PAGE_SIZE allocations

2015-09-16 Thread Vitaly Wool
For zram to be able to use zbud via the common zpool API, allocations of size PAGE_SIZE should be allowed by zpool. zbud uses the beginning of an allocated page for its internal structure but it is not a problem as long as we keep track of such special pages using a newly introduced page flag. To b

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-16 Thread Christian Borntraeger
Am 16.09.2015 um 13:03 schrieb Tejun Heo: > Hello, > > On Wed, Sep 16, 2015 at 12:58:00PM +0200, Christian Borntraeger wrote: >> FWIW, I added a printk to percpu_down_write. With KVM and uprobes disabled, >> just booting up a fedora20 gives me __6749__ percpu_down_write calls on 4.2. >> systemd se

Re: [PATCH] barriers: introduce smp_mb__release_acquire and update documentation

2015-09-16 Thread Boqun Feng
Hi Will, On Tue, Sep 15, 2015 at 05:13:30PM +0100, Will Deacon wrote: > As much as we'd like to live in a world where RELEASE -> ACQUIRE is > always cheaply ordered and can be used to construct UNLOCK -> LOCK > definitions with similar guarantees, the grim reality is that this isn't > even possibl

Re: First kernel patch (optimization)

2015-09-16 Thread Austin S Hemmelgarn
On 2015-09-15 20:09, Steve Calfee wrote: On Tue, Sep 15, 2015 at 12:53 PM, Eric Curtin wrote: Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c b/tools/usb/usbip/src/usbip_detach.c index 05c6d15..9db9d21 100644 --- a/tools/usb/usbip/src/usbip_detach.c +++ b/tools/usb

[PATCH 0/2] prepare zbud to be used by zram as underlying allocator

2015-09-16 Thread Vitaly Wool
Hi, as a follow-up to my previous patchset, I decided to first prepare zbud/zpool related patches and then have some testing rounds and performance measurements for zram running over both, and come up with improved/verified zram/zpool patches then. So for now, here comes the zbud/zpool part. --

[PATCH v2] staging: lustre: lnet: lnet: Removed a space

2015-09-16 Thread Anjali Menon
Removed a space to fix the following coding style warning detected by checkpatch: WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Anjali Menon --- Modified the subject drivers/staging/lustre/lnet/lnet/router.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH v6 0/4] mtd: nand: jz4780: Add NAND and BCH drivers

2015-09-16 Thread Alex Smith
Hi, This series adds support for the BCH controller and NAND devices on the Ingenic JZ4780 SoC. Tested on the MIPS Creator Ci20 board. All dependencies are now in mainline. This version of the series is based on 4.3-rc1. Review and feedback welcome. Thanks, Alex Alex Smith (4): mtd: nand: i

[PATCH v6 2/4] dt-bindings: binding for jz4780-{nand,bch}

2015-09-16 Thread Alex Smith
From: Alex Smith Add DT bindings for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller, used by the jz4780_{nand,bch} drivers. Signed-off-by: Alex Smith Cc: Zubair Lutfullah Kakakhel Cc: David Woodhouse Cc: Brian Norris Cc: linux-...@lists.infradead.or

[PATCH v6 4/4] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-09-16 Thread Alex Smith
From: Alex Smith Add device tree nodes for the NEMC and BCH to the JZ4780 device tree, and make use of them in the Ci20 device tree to add a node for the board's NAND. Note that since the pinctrl driver is not yet upstream, this includes neither pin configuration nor busy/write-protect GPIO pins

[PATCH v6 3/4] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-09-16 Thread Alex Smith
From: Alex Smith Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller. DMA is not currently implemented. While older 47xx SoCs also have a BCH controller, they are incompatible with the one in the 4780 due to differing register/bit positions,

[PATCH v6 1/4] mtd: nand: increase ready wait timeout and report timeouts

2015-09-16 Thread Alex Smith
From: Alex Smith If nand_wait_ready() times out, this is silently ignored, and its caller will then proceed to read from/write to the chip before it is ready. This can potentially result in corruption with no indication as to why. While a 20ms timeout seems like it should be plenty enough, certa

Re: [PATCH v4 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-09-16 Thread Andy Shevchenko
On Wed, 2015-09-16 at 13:21 +0200, Rasmus Villemoes wrote: > On Tue, Sep 15 2015, Andy Shevchenko < > andriy.shevche...@linux.intel.com> wrote: > > > On Tue, 2015-09-15 at 15:55 +0200, Vitaly Kuznetsov wrote: > > > +static __init void test_string_get_size_one(u64 size, u64 > > > blk_size, > > > +

Re: [PATCH] bcache: Fix writeback_thread never writing back incomplete stripes.

2015-09-16 Thread Kent Overstreet
On Sat, Sep 05, 2015 at 01:10:12PM +0200, Vojtech Pavlik wrote: > Fix writeback_thread never finishing writing back all dirty data in bcache > when > partial_stripes_expensive is set, and spinning, consuming 100% of CPU instead. > > Signed-off-by: Vojtech Pavlik > --- > > This is a fix for the

[PATCH] KVM: vmx: fix VPID is 0000H in non-root operation

2015-09-16 Thread Wanpeng Li
Reference SDM 28.1: The current VPID is H in the following situations: — Outside VMX operation. (This includes operation in system-management mode under the default treatment of SMIs and SMM with VMX operation; see Section 34.14.) — In VMX root operation. — In VMX non-root operation when

Re: [Bugfix 0/3] Convert eata driver to a normal PCI device driver

2015-09-16 Thread Arthur Marsh
Jiang Liu wrote on 16/09/15 17:51: Hi Arthur, It would be great if we could capture the text as in the picture posted by you at: http://www.users.on.net/~arthur.marsh/20150915547.jpg I guess a serial console could help us to capture those log messages. To use serial con

Re: [PATCH 4/6] PCI: generic: Correct, and avoid overflow, in bus_max calculation.

2015-09-16 Thread Lorenzo Pieralisi
On Wed, Sep 16, 2015 at 11:41:53AM +0100, Will Deacon wrote: [...] > > Here is the current code: > > > > >> bus_range = pci->cfg.bus_range; > > >> for (busn = bus_range->start; busn <= bus_range->end; ++busn) { > > >> u32 idx = busn - bus_range->start; > > > > The index is offset by

Re: [PATCH 3.12 16/33] isdn/gigaset: reset tty->receive_room when attaching ser_gigaset

2015-09-16 Thread Tilman Schmidt
Am 16.09.2015 um 03:18 schrieb Peter Hurley: > On Tue, Sep 15, 2015 at 8:37 PM, Tilman Schmidt wrote: >> Am 16.09.2015 um 01:08 schrieb Peter Hurley: >>> On Tue, Sep 15, 2015 at 10:22 AM, Jiri Slaby wrote: >>> >>> From: Tilman Schmidt >>> >>> 3.12-stable review patch. If anyone has any

Re: [PATCH v2] arm64: Introduce IRQ stack

2015-09-16 Thread Will Deacon
On Sun, Sep 13, 2015 at 03:42:17PM +0100, Jungseok Lee wrote: > Currently, kernel context and interrupts are handled using a single > kernel stack navigated by sp_el1. This forces many systems to use > 16KB stack, not 8KB one. Low memory platforms naturally suffer from > memory pressure accompanied

Re: [PATCH] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-16 Thread Ard Biesheuvel
On 16 September 2015 at 12:08, Borislav Petkov wrote: > On Wed, Sep 09, 2015 at 12:21:23PM +0100, Matt Fleming wrote: >> On Wed, 09 Sep, at 08:33:07AM, joeyli wrote: >> > >> > Yes, the machine on my hand has EFI_PROPERTIES_TABLE enabled, and it >> > doesn't >> > boot without your patch. >> >> Awe

<    2   3   4   5   6   7   8   9   10   >