[PATCH] Fix cpupower reporting uninitialized values for offline cpus

2015-10-01 Thread Jacob Tanenbaum
cpupower monitor reports uninitialized values for offline cpus [root@hp-dl980g7-02 linux]# cpupower monitor ... 5472| 0| 1|**|**|**|**||**|**|**|| 0.00| 0.00| 0.00| 0.00| 0.00 *is offline 10567| 0| 159|**|**|**|**||**|**|**||

Re: [PATCH] arm: perf: Fix userspace call stack walking

2015-10-01 Thread Russell King - ARM Linux
On Thu, Oct 01, 2015 at 10:26:47AM -0700, Drew Richardson wrote: > The layout of stack frames has changed over time. Testing using a > arm-linux-gnueabi gcc-4.2 from 2007 the original code didn't work but > this new code does. It also works with clang as well as newer versions > of gcc. Can you

Re: [PATCH 02/12] net: stmmac: avoid using timespec

2015-10-01 Thread Richard Cochran
On Wed, Sep 30, 2015 at 01:26:32PM +0200, Arnd Bergmann wrote: > We want to deprecate the use of 'struct timespec' on 32-bit > architectures, as it is will overflow in 2038. The stmmac > driver uses it to read the current time, and can simply > be changed to use ktime_get_real_ts64() instead. > >

Re: [PATCH 01/12] net: fec: avoid timespec use

2015-10-01 Thread Richard Cochran
On Wed, Sep 30, 2015 at 01:26:31PM +0200, Arnd Bergmann wrote: > The fec_ptp_enable_pps uses an open-coded implementation of ns_to_timespec, > which will be removed eventually as it is not y2038-safe on 32-bit > architectures. Two more instances of the same code in this file were > already

Re: [PATCH] cris: arch-v10: kgdb: Use BAR instead of DTP0 for register P12

2015-10-01 Thread Jesper Nilsson
Hi, On Sat, Jul 11, 2015 at 05:47:24AM +0800, Chen Gang wrote: > For arch-v10, there is no DTP0 register, and at present, assembler know > BAR, so use BAR instead of DTP0, the related error (with allmodconfig): > > CC arch/cris/arch-v10/kernel/kgdb.o > {standard input}: Assembler

Re: [PATCH] clk: qcom: Make oxili GDSC parent of oxili_cx GDSC

2015-10-01 Thread Stephen Boyd
On 10/01, Stephen Boyd wrote: > On 10/01, Rajendra Nayak wrote: > > On 09/24/2015 12:39 AM, Stephen Boyd wrote: > > >+ > > >+ ret = pm_genpd_add_subdomain(_gdsc.pd, _gdsc.pd); > > > > We'll need pm_genpd_add_subdomain() to be EXPORT_SYMBOL_GPL'ed so > > clk-qcom can be built as a module. > >

[PATCH] PM / clk: Do not __clk_get passed in clock-references

2015-10-01 Thread Heiko Stübner
From: Stephen Boyd Clock references are on a per-user basis now, so they are not supposed to be refcounted by itself anymore. Therefore multiple cascaded get and put calls will fail. When a clock reference gets passed into pm_clk_add_clk we can assume that the pm clock handling will take

[PATCH 1/5] SCSI: sd: simplify ida usage

2015-10-01 Thread Lee Duncan
Simplify ida index allocation and removal by using the ida_simple_* helper functions. Signed-off-by: Lee Duncan --- drivers/scsi/sd.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index

[PATCH 5/5] base: soc: siplify ida usage

2015-10-01 Thread Lee Duncan
Simplify ida index allocation and removal by using the ida_simple_* helper functions Signed-off-by: Lee Duncan --- drivers/base/soc.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/base/soc.c b/drivers/base/soc.c index

Re: [PATCH v2 00/14] RDS: connection scalability and performance improvements

2015-10-01 Thread santosh.shilim...@oracle.com
On 10/1/15 9:19 AM, David Laight wrote: From: Santosh Shilimkar Sent: 30 September 2015 18:24 ... This is being addressed by simply using per bucket rw lock which makes the locking simple and very efficient. The hash table size is still an issue and I plan to address it by using re-sizable

[PATCH 2/5] block: rsxx: core: simplify ida usage

2015-10-01 Thread Lee Duncan
Simplify ida index allocation and removal by using the ida_simple_* helper functions. Signed-off-by: Lee Duncan --- drivers/block/rsxx/core.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c index

[PATCH 4/5] block: mtip32xx: simplify ida usage

2015-10-01 Thread Lee Duncan
Simplify ida index allocation and removal by using the ida_simple_* helper functions Signed-off-by: Lee Duncan --- drivers/block/mtip32xx/mtip32xx.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c

[PATCH 0/5] Modify ida_* users to use ida_simple_*

2015-10-01 Thread Lee Duncan
The ida index management routines are used in several driver modules to manage allocation and release of index values. Reviewing the way in which the ida routines were called, together with the small number of such clients, led to the belief that these users should all be able to share a simple

[PATCH 3/5] block: nvme-core: simplify ida usage

2015-10-01 Thread Lee Duncan
Simplify ida index allocation and removal by using the ida_simple_* helper functions. Signed-off-by: Lee Duncan --- drivers/block/nvme-core.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index

[PATCH] arm: perf: Fix userspace call stack walking

2015-10-01 Thread Drew Richardson
I got some undeliverable responses the first time, sorry if you get this twice --- The layout of stack frames has changed over time. Testing using a arm-linux-gnueabi gcc-4.2 from 2007 the original code didn't work but this new code does. It also works with clang as well as newer versions of

Re: [PATCH 1/5] mm: uncharge kmem pages from generic free_page path

2015-10-01 Thread Vladimir Davydov
On Wed, Sep 30, 2015 at 12:51:18PM -0700, Greg Thelen wrote: > > Vladimir Davydov wrote: ... > > diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h > > index 416509e26d6d..a190719c2f46 100644 > > --- a/include/linux/page-flags.h > > +++ b/include/linux/page-flags.h > > @@ -594,6

[PATCH] ver_linux: module-init-tools.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation relies on 'depmod' to be available in the PATH. It also expects the version number to be found in the last field as seen by 'awk'. Should the output format be different, this approach would no longer be reliable. The proposed implementation locates 'depmod', and uses

Re: [RFC] pwm: core: unsigned or signed ints for pwm_config

2015-10-01 Thread Olliver Schinagl
Hey Thierry, On 29-09-15 09:45, Thierry Reding wrote: On Tue, Sep 29, 2015 at 09:19:27AM +0200, Olliver Schinagl wrote: Hey Thierry, list I'm going over the pwm core and notice that in the pwm header, duty_ns and period_ns is internally stored as an unsigned int. struct pwm_device {

[PATCH] ver_linux: binutils.patch

2015-10-01 Thread Alexander Kapshuk
Fix broken output. Current implementation output on Gentoo Linux: binutils 2.25.1 1.1 2.25.1 Proposed implementation: binutils2.25.1 Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk --- ---

Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy

2015-10-01 Thread Tejun Heo
Hello, Paul. Sorry about the delay. Things were kinda hectic in the past couple weeks. On Fri, Sep 18, 2015 at 04:27:07AM -0700, Paul Turner wrote: > On Sat, Sep 12, 2015 at 7:40 AM, Tejun Heo wrote: > > On Wed, Sep 09, 2015 at 05:49:31AM -0700, Paul Turner wrote: > >> I do not think this is a

[PATCH] ver_linux: echo.patch

2015-10-01 Thread Alexander Kapshuk
While not a problem in itself, I was not sure why 'echo space' was used. Not being aware of any immediate benifits to this, I thought using 'echo' by itself would suffice in printing a newline, which I believe is the desired behaivior. Signed-off-by: Alexander Kapshuk --- ---

[PATCH] ver_linux: e2fsprogs.patch

2015-10-01 Thread Alexander Kapshuk
'tune2fs' is located in varying places depending on the distro. Current implementation output on distros where 'tune2fs' is found at a location that is not available in the PATH for the regular user, e.g. '/sbin', will have nothing to display. While running 'ver_linux' as user 'root' should be OK.

[PATCH] ver_linux: gcc.patch

2015-10-01 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'gcc -dumpversion' vary on another disto, or change overtime, it may no longer be available at field 1, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying output

[PATCH] ver_linux: sh-utils.patch

2015-10-01 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'expr --v' vary on another disto, or change overtime, it may no longer be available in the last field, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying output as

[PATCH] ver_linux: wireless-tools.patch

2015-10-01 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'iwconfig --version' vary on another disto, or change overtime, it may no longer be available in field 4, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying

[PATCH] ver_linux: xfsprogs.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH] ver_linux: udev.patch

2015-10-01 Thread Alexander Kapshuk
'udevinfo' no longer seems to be available across various distros. 'udevadm' seems to be the currently valid way to look up the 'udev' version. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux Signed-off-by: Alexander Kapshuk --- --- linux/scripts/ver_linux.orig

[PATCH] kernel/params.c: remove confusing cast

2015-10-01 Thread Rasmus Villemoes
Both sides of the assignment are const char*, so this cast is unnecessary and confusing. Signed-off-by: Rasmus Villemoes --- kernel/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/params.c b/kernel/params.c index b6554aa71094..0b433fdb45eb 100644 ---

[PATCH] ver_linux: util-linux_mount.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation relies on 'fdformat' to output the version of 'util-linux'. This does not seem to be reliable, as 'fdformat' is not available across all ditros these days. The proposed implementation uses 'mount', which is a part of 'util-linux', to output both the version of

[PATCH] ver_linux: jfsutils.patch

2015-10-01 Thread Alexander Kapshuk
Not to be critical of anyone, I believe that using 'grep' along with 'sed', and 'awk' in this kind of context as a one-off quick solution to be run on the command line may very well be justified. However, in a script, 'awk' or 'sed' are more than capable of doing most of the things we may be

[PATCH] ver_linux: kbd_console-tools.patch

2015-10-01 Thread Alexander Kapshuk
'loadkeys -h' no longer prints the version number across all distros, despite the claim to do so in the manpage, which I found to be the case on a Debian Linux system. The proposed implementation utilises the output of 'loadkeys -V' to acquire the version of both 'Kbd' and 'Console-tools'.

[PATCH] ver_linux: ldd.patch

2015-10-01 Thread Alexander Kapshuk
Not to be critical of anyone, I believe that using 'head' along with 'awk' in this kind of context as a one-off quick solution to be run on the command line may very well be justified. However, in a script, 'awk' or 'sed' alone are more than capable of doing most of the things we may be looking to

Re: [PATCH 1/2] mm: fix the racy mm->locked_vm change in

2015-10-01 Thread Hugh Dickins
On Thu, 1 Oct 2015, Oleg Nesterov wrote: > On 09/30, Hugh Dickins wrote: > > > > On Tue, 29 Sep 2015, Oleg Nesterov wrote: > > > > > "mm->locked_vm += grow" and vm_stat_account() in acct_stack_growth() > > > are not safe; multiple threads using the same ->mm can do this at the > > > same time

[PATCH] ver_linux: libc.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation has been found not to work across all distros. The proposed implementation relies on 'sed' to both output the string 'Linux C Library' as well as to open '/proc/self/maps' without having to use output redirection. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux

[PATCH] ver_linux: make.patch

2015-10-01 Thread Alexander Kapshuk
Calling 'awk' more then once is redundant. The output of 'make --version' already has the data we are after, why not utilise it. The proposed implementation uses 'sed' to utilise the data output modifying the white space formatting only. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server

Re: [RFC v2 4/7] powerpc: atomic: Implement xchg_* and atomic{,64}_xchg_* variants

2015-10-01 Thread Peter Zijlstra
On Thu, Oct 01, 2015 at 11:03:01AM -0700, Paul E. McKenney wrote: > On Thu, Oct 01, 2015 at 07:13:04PM +0200, Peter Zijlstra wrote: > > On Thu, Oct 01, 2015 at 08:09:09AM -0700, Paul E. McKenney wrote: > > > On Thu, Oct 01, 2015 at 02:24:40PM +0200, Peter Zijlstra wrote: > > > > > > I must say

[PATCH] ver_linux: net-tools.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation relies on 'ifconfig' to be available in the PATH. It also uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current

[PATCH] ver_linux: procps.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

Re: [PATCH] lockd: create NSM handles per net namespace

2015-10-01 Thread J. Bruce Fields
On Thu, Oct 01, 2015 at 07:36:19PM +0300, Andrey Ryabinin wrote: > On 09/29/2015 09:47 PM, J. Bruce Fields wrote: > > On Wed, Sep 23, 2015 at 03:49:29PM +0300, Andrey Ryabinin wrote: > >> Commit cb7323fffa85 ("lockd: create and use per-net NSM > >> RPC clients on MON/UNMON requests") introduced

Re: [PATCH 2/2] uio: new driver to support PCI MSI-X

2015-10-01 Thread Michael S. Tsirkin
On Thu, Oct 01, 2015 at 10:26:19AM -0700, Stephen Hemminger wrote: > On Thu, 1 Oct 2015 19:31:08 +0300 > "Michael S. Tsirkin" wrote: > > > On Thu, Oct 01, 2015 at 11:33:06AM +0300, Michael S. Tsirkin wrote: > > > On Wed, Sep 30, 2015 at 03:28:58PM -0700, Stephen Hemminger wrote: > > > > This

[PATCH] ver_linux: reiserfsprogs.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH] ver_linux: quota-tools.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH] ver_linux: proc-modules.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation used a combination of both 'cat' and 'sed' to generate an unsorted list of kernel modules separated by while space. The proposed implementation uses 'sort' and 'sed' to generate a sort list of kernel modules separated by while space. Tested on: Gentoo Linux Debian

[PATCH] ver_linux: pcmciautils.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

[PATCH] ver_linux: ppp.patch

2015-10-01 Thread Alexander Kapshuk
The current implementation uses both 'grep' and 'awk' for text processing here, which may be alright as a quick solution to be run on the command line. While in a script, 'sed' or 'awk' would be a better choice. On top of that, the current implementation expects the version number to be found in

Re: [PATCH] jbd2: gate checksum calculations on crc driver presence, not sb flags

2015-10-01 Thread Darrick J. Wong
On Thu, Oct 01, 2015 at 12:35:12AM -0600, Andreas Dilger wrote: > On Sep 30, 2015, at 11:47 AM, Darrick J. Wong wrote: > > > > Change the journal's checksum functions to gate on whether or not the > > crc32c driver is loaded, and gate the loading on the superblock bits. > > This prevents a

[PATCH] ver_linux: libcpp.patch

2015-10-01 Thread Alexander Kapshuk
Neither 'libg++.so', nor 'libstdc++.so' were found where the current implementation expects them to be found in the distros below. Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 The proposed implementation relies on 'ldconfig' to locate the libraries in question. 'Sed' is used to

Re: [PATCH v2] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread kbuild test robot
Hi Boris, [auto build test results on next-20151001 -- if it's inappropriate base, please ignore] config: i386-randconfig-s1-201539 (attached as .config) reproduce: git checkout 425b29816a0dba028eef09be5cb531a187e256a1 # save the attached .config to linux build tree make

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

2015-10-01 Thread Grygorii Strashko
On 09/17/2015 06:59 PM, Rafael J. Wysocki wrote: > Hi, > > On Thu, Sep 17, 2015 at 5:48 PM, Grygorii Strashko > wrote: >> Hi, >> >> On 09/17/2015 03:07 AM, Rafael J. Wysocki wrote: >>> On Wednesday, September 16, 2015 03:27:55 PM Alan Stern wrote: On Wed, 16 Sep 2015, Grygorii Strashko

megaraid_sas module, no /dev entries for partitions

2015-10-01 Thread Mathias Burén
Hi, I'm using megaraid_sas 06.807.10.00-rc1 from Linux 4.3.0-rc3. The /dev entries get created for the devices, but not for the partitions on the devices. I'm using systemd 226 The LSI card is a 02:0e.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 1068 which is being used in JBOD

[GIT PULL] KVM changes for 4.3-rc4

2015-10-01 Thread Paolo Bonzini
Linus, The following changes since commit 9ffecb10283508260936b96022d4ee43a7798b4c: Linux 4.3-rc3 (2015-09-27 07:50:08 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to

Re: [PATCH] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
On Thu, 1 Oct 2015 10:17:50 -0700 Brian Norris wrote: > On Mon, Aug 24, 2015 at 07:10:19PM +0200, Boris Brezillon wrote: > > The ->read_xxx() methods are all passed the page number the NAND controller > > is supposed to read, but ->write_xxx() do not have such a parameter. > > > > This is a

Re: linux-next: Tree for Oct 1 (arch/x86/ras/mce_amd_inj.c)

2015-10-01 Thread Randy Dunlap
On 10/01/15 10:49, Borislav Petkov wrote: > On Thu, Oct 01, 2015 at 10:39:32AM -0700, Randy Dunlap wrote: >> On 09/30/15 23:50, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20150930: >>> >> >> >> on x86_64: >> >> ../arch/x86/ras/mce_amd_inj.c: In function 'toggle_nb_mca_mst_cpu': >>

Re: [PATCH v3] clk: add devm_of_clk_get() and devm_of_clk_get_by_name() functions

2015-10-01 Thread Stephen Boyd
On 10/01, Paul Osmialowski wrote: > From: Paul Osmialowski > > These two functions are added to ease management of clocks obtained > from OF device nodes. > > They are particulary useful while iterating over DT subnodes using e.g. > for_each_child_of_node(dev->of_node, child) in order do get

[PATCH v2] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Boris Brezillon
The ->read_xxx() methods are all passed the page number the NAND controller is supposed to read, but ->write_xxx() do not have such a parameter. This is a problem if we want to properly implement data scrambling/randomization in order to mitigate MLC sensibility to repeated pattern: to prevent

Re: [PATCH 0/1] add devm_of_clk_get() and devm_of_clk_get_by_name() functions

2015-10-01 Thread Stephen Boyd
On 10/01, Paul Osmialowski wrote: > Hi Stephen, > > On Wed, 30 Sep 2015, Stephen Boyd wrote: > > > In the pinctrl node we would have > > > > pinctrl { > > compatible = "fsl,kenetis70-pinctrl"; > > reg = <0x40049000 0x2000>; > > clocks = <

Re: [RFC v2 4/7] powerpc: atomic: Implement xchg_* and atomic{,64}_xchg_* variants

2015-10-01 Thread Paul E. McKenney
On Thu, Oct 01, 2015 at 07:13:04PM +0200, Peter Zijlstra wrote: > On Thu, Oct 01, 2015 at 08:09:09AM -0700, Paul E. McKenney wrote: > > On Thu, Oct 01, 2015 at 02:24:40PM +0200, Peter Zijlstra wrote: > > > > I must say I'm somewhat surprised by this level of relaxation, I had > > > expected to

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 12:58:49PM -0500, Felipe Balbi wrote: > Hi, > > On Thu, Oct 01, 2015 at 06:43:08PM +0100, Mark Brown wrote: > > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > > > > Frankly, I wanted all of this to be decided in userland with the > > > kernel just

Re: linux-next: Tree for Oct 1 (arch/x86/ras/mce_amd_inj.c)

2015-10-01 Thread Borislav Petkov
On Thu, Oct 01, 2015 at 10:39:32AM -0700, Randy Dunlap wrote: > On 09/30/15 23:50, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20150930: > > > > > on x86_64: > > ../arch/x86/ras/mce_amd_inj.c: In function 'toggle_nb_mca_mst_cpu': > ../arch/x86/ras/mce_amd_inj.c:214:42: warning:

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Felipe Balbi
Hi, On Thu, Oct 01, 2015 at 06:43:08PM +0100, Mark Brown wrote: > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > > Frankly, I wanted all of this to be decided in userland with the > > kernel just providing notification and basic safety checks (we don't > > want to allow a

Re: [PATCH 8/8] mfd: lm3533: Simplify function return logic

2015-10-01 Thread Johan Hovold
On Thu, Oct 01, 2015 at 08:17:00AM +0100, Lee Jones wrote: > On Wed, 30 Sep 2015, Johan Hovold wrote: > > > On Tue, Sep 29, 2015 at 01:26:08PM +0200, Javier Martinez Canillas wrote: > > > The invoked functions already return zero on success or a negative > > > errno code so there is no need to

Re: [PATCH] staging: rtl8192e: rtl_wx: fix negative noise value

2015-10-01 Thread Mateusz Kulikowski
On 30.09.2015 14:12, Luis de Bethencourt wrote: > wstats->qual.noise is of type uint8, so it shouldn't be assigned a > negative number. Assigning it 0x100 - 100, which is the equivalent > to -100 dBm when IW_QUAL_DBM is set. > > Signed-off-by: Luis de Bethencourt > --- >

[PATCH v2 5/5] firmware: add an extensible system data helpers

2015-10-01 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" The firmware API has evolved over the years slowly, as it grows we extend it by adding new routines or at times we extend existing routines with more or less arguments. This doesn't scale well, when new arguments are added to existing routines it means we need to

Re: [PATCH -mm v2 1/3] mm/oom_kill: remove the wrong fatal_signal_pending() check in oom_kill_process()

2015-10-01 Thread Oleg Nesterov
On 10/01, Michal Hocko wrote: > > zap_process will add SIGKILL to all threads but the > current which will go on without being killed and if this is not a > thread group leader then we would miss it. Yes. And note that de_thread() does the same. Speaking of oom-killer this is mostly fine, the

[PATCH v2 4/5] firmware: generalize reading file contents as a helper

2015-10-01 Thread Luis R. Rodriguez
From: David Howells We'll want to reuse this same code later in order to read two separate types of file contents. This generalizes fw_read_file() for reading a file rebrands it as fw_read_file(). This caller lets us pegs arbitrary data onto the target buffer and size if the file is found.

[PATCH v2 3/5] firmware: fold successful fw read early

2015-10-01 Thread Luis R. Rodriguez
From: David Howells We'll be folding in some more checks on fw_read_file_contents(), this will make the success case easier to follow. Signed-off-by: David Howells Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 16 +++- 1 file changed, 7 insertions(+), 9

Re: [PATCH] clk: qcom: Make oxili GDSC parent of oxili_cx GDSC

2015-10-01 Thread Stephen Boyd
On 10/01, Rajendra Nayak wrote: > On 09/24/2015 12:39 AM, Stephen Boyd wrote: > >The oxili_cx GDSC is inside the power domain of the oxili GDSC. > >Add the dependency so that the CX domain can properly power up. > > > >Reported-by: Rob Clark > >Cc: Rajendra Nayak > >Signed-off-by: Stephen Boyd

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Mark Brown
On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > Frankly, I wanted all of this to be decided in userland with the > kernel just providing notification and basic safety checks (we don't > want to allow a bogus userspace daemon frying anybody's devices). What's the advantage of

Re: [PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S

2015-10-01 Thread Josh Poimboeuf
On Thu, Oct 01, 2015 at 07:36:54PM +0200, Mathias Krause wrote: > On Do, Okt 01, 2015 at 08:29:50 -0500, Josh Poimboeuf wrote: > > On Thu, Oct 01, 2015 at 08:10:26AM +0200, mini...@ld-linux.so wrote: > > > On Tue, Sep 22, 2015 at 10:47:04AM -0500, Josh Poimboeuf wrote: > > > >

[PATCH v2 2/5] firmware: move completing fw into a helper

2015-10-01 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This will be re-used later through a new extensible interface. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/base/firmware_class.c

[PATCH v2 1/5] firmware: generalize "firmware" as "system data" helpers

2015-10-01 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Historically firmware_class code was added to help get device driver firmware binaries but these days request_firmware*() helpers are being repurposed for general system data needed by the kernel. Annotate this before we extend firmare_class more, as this is expected.

Re: [PATCH 04/16] clk: at91: make use of syscon to share PMC registers in several drivers

2015-10-01 Thread Stephen Boyd
On 09/30, Alexandre Belloni wrote: > From: Boris Brezillon > > The PMC block is providing several functionnalities: > - system clk management > - cpuidle > - platform suspend > > Replace the void __iomem *regs field by a regmap (retrieved using syscon) > so that we can later share the regmap

Re: [PATCH] Revert "backlight: pwm: Handle EPROBE_DEFER while requesting the PWM"

2015-10-01 Thread Robert Jarzmik
Nicolas Ferre writes: > Le 30/09/2015 21:29, Robert Jarzmik a écrit : >> Robert Jarzmik writes: >> >>> This reverts commit 68feaca0b13e453aa14ee064c1736202b48b342f. >>> This commit breaks legacy platforms, for which : >>> (a) no pwm table is added (legacy platforms) >>> (b) in this case, in

[RFC PATCHv2] x86/pci: Initial commit for new VMD device driver

2015-10-01 Thread Keith Busch
The Intel Volume Management Device (VMD) is an integrated endpoint on the platform's PCIe root complex that acts as a host bridge to a secondary PCIe domain. BIOS can reassign one or more root ports to appear within a VMD domain instead of the primary domain. This driver enumerates and enables

[PATCH v2 0/5] firmware_class: extensible firmware API

2015-10-01 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This v2 series pushes together a few simple code shifts me and David worked on with a new extensible firmware API. I have bundled these changes together as in my last v1 series [0] it was not clear why the first simple set of changes were being made, and I had sent out

Re: [PATCH] coccinelle: misc: remove "complex return code" warnings

2015-10-01 Thread Johan Hovold
On Thu, Oct 01, 2015 at 07:20:10AM +0200, Julia Lawall wrote: > On Wed, 30 Sep 2015, Johan Hovold wrote: > > > This effectively reverts 932058a5d5f9 ("coccinelle: misc: semantic patch > > to delete overly complex return code processing"). > > > > There can be both symmetry and readability

Re: rwx mapping between ex_table and rodata

2015-10-01 Thread Kees Cook
On Thu, Oct 1, 2015 at 2:12 AM, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > >> On Mon, 28 Sep 2015, Kees Cook wrote: >> > > --- a/arch/x86/mm/init_64.c >> > > +++ b/arch/x86/mm/init_64.c >> > > @@ -1132,7 +1132,7 @@ void mark_rodata_ro(void) >> > > * has been zapped already via

Re: linux-next: Tree for Oct 1 (arch/x86/ras/mce_amd_inj.c)

2015-10-01 Thread Randy Dunlap
On 09/30/15 23:50, Stephen Rothwell wrote: > Hi all, > > Changes since 20150930: > on x86_64: ../arch/x86/ras/mce_amd_inj.c: In function 'toggle_nb_mca_mst_cpu': ../arch/x86/ras/mce_amd_inj.c:214:42: warning: dereferencing 'void *' pointer [enabled by default] struct pci_dev *F3 =

Re: [PATCH v13 13/23] x86/asm/crypto: Create stack frames in aesni-intel_asm.S

2015-10-01 Thread Mathias Krause
On Do, Okt 01, 2015 at 08:29:50 -0500, Josh Poimboeuf wrote: > On Thu, Oct 01, 2015 at 08:10:26AM +0200, mini...@ld-linux.so wrote: > > On Tue, Sep 22, 2015 at 10:47:04AM -0500, Josh Poimboeuf wrote: > > > ENTRY(aesni_set_key) > > > + FRAME_BEGIN > > > #ifndef __x86_64__ > > > pushl KEYP > > >

Re: [PATCH] iommu/s390: add iommu api for s390 pci devices

2015-10-01 Thread Gerald Schaefer
On Tue, 29 Sep 2015 14:40:30 +0200 Joerg Roedel wrote: > Hi Gerald, > > thanks for your patch. It looks pretty good and addresses my previous > review comments. I have a few questions, first one is how this > operates with DMA-API on s390. Is there a seperate DMA-API > implementation besides

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Felipe Balbi
On Thu, Sep 24, 2015 at 10:39:23AM -0700, Baolin Wang wrote: > The usb charger framework is based on usb gadget. The usb charger > need to be notified the state changing of usb gadget to confirm the > usb charger state. > > Thus this patch adds a notifier mechanism for usb gadget to report a >

Re: [PATCH] x86: Fix thermal throttling reporting after kexec

2015-10-01 Thread Andi Kleen
On Thu, Oct 01, 2015 at 02:15:54PM +0200, Thomas Gleixner wrote: > On Thu, 24 Sep 2015, Andi Kleen wrote: > > The per CPU thermal vector init code checks if the thermal > > vector is already installed and complains and bails out if > > it is. > > > > This happens after kexec, as kernel shut down

Re: linux-next: Tree for Oct 1 (ipvs)

2015-10-01 Thread Randy Dunlap
On 09/30/15 23:50, Stephen Rothwell wrote: > Hi all, > > Changes since 20150930: > on x86_64: ../net/netfilter/ipvs/ip_vs_core.c: In function 'ip_vs_leave': ../net/netfilter/ipvs/ip_vs_core.c:584:6: error: implicit declaration of function 'ip_vs_addr_is_unicast'

Re: [PATCH 2/2] uio: new driver to support PCI MSI-X

2015-10-01 Thread Stephen Hemminger
On Thu, 1 Oct 2015 19:31:08 +0300 "Michael S. Tsirkin" wrote: > On Thu, Oct 01, 2015 at 11:33:06AM +0300, Michael S. Tsirkin wrote: > > On Wed, Sep 30, 2015 at 03:28:58PM -0700, Stephen Hemminger wrote: > > > This driver allows using PCI device with Message Signalled Interrupt > > > from

Force mkiss to reset the line discipline when serial device is removed

2015-10-01 Thread Jean-Christian de Rivaz
Hi Greg and Jiri, I try to fix a kernel panic bug related to the AX25 (and probably SLIP) line discipline when the corresponding serial device is removed [1]. I proposed some patches [2] [3] on the linux-hams mailing list but I think there raise more questions about how tty_ldisc_hangup()

Re: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free bug

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 12:01:48PM +, Kaukab, Yousaf wrote: > > From: Mian Yousaf Kaukab > > Date: Tue, Sep 29, 2015 at 12:25 PM > > Subject: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free > > bug > > To: linux-...@vger.kernel.org, ba...@ti.com, john.y...@synopsys.com, > >

Re: [PATCH] mtd: nand: remove unused ->init_size() hook

2015-10-01 Thread Brian Norris
On Thu, Oct 01, 2015 at 04:58:27PM +0200, Boris Brezillon wrote: > The ->init_size() hook was introduced to let NAND controller drivers > support NAND devices that could not be described in the nand_ids table. > Since then, the core has added support for extended-id parsing and > full-id

Re: [RFC PATCH 0/3] net: dsa: Complete and fix the dsa unbinding

2015-10-01 Thread Vivien Didelot
Hi Neil, On Oct. Thursday 01 (40) 05:06 PM, Neil Armstrong wrote: > On 09/30/2015 07:43 PM, Florian Fainelli wrote: > > On 30/09/15 01:21, Neil Armstrong wrote: > >> In order to cleanly unbind the dsa core, either as a module removal, > >> or a platform device unbind, switch the allocation the

Re: [PATCH 07/25] x86, pkeys: new page fault error code bit: PF_PK

2015-10-01 Thread Dave Hansen
On 10/01/2015 04:54 AM, Thomas Gleixner wrote: > On Mon, 28 Sep 2015, Dave Hansen wrote: >> > >> > /* >> > @@ -916,7 +918,10 @@ static int spurious_fault_check(unsigned >> > >> >if ((error_code & PF_INSTR) && !pte_exec(*pte)) >> >return 0; >> > - >> > + /* >> > + * Note: We

Re: GPF in do_raw_spin_lock on Linux 4.1

2015-10-01 Thread Cong Wang
On Wed, Sep 30, 2015 at 9:02 PM, Cong Wang wrote: > (Cc'ing Jamal) > > On Wed, Sep 30, 2015 at 5:49 PM, Vinson Lee wrote: >> Hi. >> >> We've hit this GPF on several different machines on Linux 4.1. >> >> general protection fault: [#1] SMP >> Modules linked in: sch_htb cls_basic act_mirred

Re: [PATCH] mtd: nand: pass page number to ecc->write_xxx() methods

2015-10-01 Thread Brian Norris
On Mon, Aug 24, 2015 at 07:10:19PM +0200, Boris Brezillon wrote: > The ->read_xxx() methods are all passed the page number the NAND controller > is supposed to read, but ->write_xxx() do not have such a parameter. > > This is a problem if we want to properly implement data >

Re: [RFC v2 4/7] powerpc: atomic: Implement xchg_* and atomic{,64}_xchg_* variants

2015-10-01 Thread Peter Zijlstra
On Thu, Oct 01, 2015 at 08:09:09AM -0700, Paul E. McKenney wrote: > On Thu, Oct 01, 2015 at 02:24:40PM +0200, Peter Zijlstra wrote: > > I must say I'm somewhat surprised by this level of relaxation, I had > > expected to only loose SMP barriers, not the program order ones. > > > > Is there a

Re: [RFC v2 5/7] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-01 Thread Peter Zijlstra
On Thu, Oct 01, 2015 at 08:12:19AM -0700, Paul E. McKenney wrote: > What C11 does is to allow the developer to specify different orderings > on success and failure. But it is no harder to supply a barrier (if > needed) on the failure path, right? Quite right. -- To unsubscribe from this list:

Re: [PATCH 05/25] x86, pkey: add PKRU xsave fields and data structure(s)

2015-10-01 Thread Dave Hansen
On 10/01/2015 04:50 AM, Thomas Gleixner wrote: > On Mon, 28 Sep 2015, Dave Hansen wrote: >> +/* >> + * State component 9: 32-bit PKRU register. >> + */ >> +struct pkru { >> +u32 pkru; >> +} __packed; >> + >> +struct pkru_state { >> +union { >> +struct pkru pkru; >>

pull-request: wireless-drivers 2015-10-01

2015-10-01 Thread Kalle Valo
Hi Dave, few very small fixes I would like to get to 4.3, nothing really special. Please let me know if you have any problems. Kalle The following changes since commit bdb06cbf77cb01911694cc9076ffa8196b7b9b61: net: Fix panic in icmp_route_lookup (2015-09-25 21:44:02 -0700) are available in

Re: CPU hotplug and chained interrupts on x86

2015-10-01 Thread Jiang Liu
On 2015/10/1 22:31, Thomas Gleixner wrote: > On Thu, 1 Oct 2015, Mika Westerberg wrote: >> Now if I plug/unplug the card I may get few interrupts to CPU0 but rest >> of the interrupts never happen. Probably because IO-APIC forwards them >> to the lowest priority CPU which is offline at this point.

Re: [v2 PATCH] arm64: replace read_lock to rcu lock in call_break_hook

2015-10-01 Thread Steven Rostedt
On Thu, 1 Oct 2015 09:37:37 -0700 Yang Shi wrote: > BUG: sleeping function called from invalid context at > kernel/locking/rtmutex.c:917 > in_atomic(): 0, irqs_disabled(): 128, pid: 342, name: perf > 1 lock held by perf/342: > #0: (break_hook_lock){+.+...}, at: [] >

Re: [PATCH v3 1/3] powerpc/512x: add LocalPlus Bus FIFO device driver

2015-10-01 Thread Timur Tabi
On 09/30/2015 04:24 PM, Alexander Popov wrote: Can you test for "!cs" here instead? +e = -EFAULT; +goto err_param; +} Unfortunately no: 0 is a valid value for Chip Select. Is it OK to leave it like that? Yes. +lpbfifo.ram_bus_addr = sg_dma_address(); /* For

Re: [PATCH] drm/gma500: fix double freeing

2015-10-01 Thread Patrik Jakobsson
On Wed, Sep 30, 2015 at 8:12 AM, Sudip Mukherjee wrote: > On Tue, Sep 29, 2015 at 03:20:35PM +0200, Patrik Jakobsson wrote: >> On Thu, Sep 24, 2015 at 5:57 PM, Sudip Mukherjee >> wrote: >> > On Wed, Sep 09, 2015 at 06:20:40PM +0530, Sudip Mukherjee wrote: >> >> If backing->stolen is true then we

Re: [PATCH v7 02/11] task_isolation: add initial support

2015-10-01 Thread Chris Metcalf
On 10/01/2015 08:18 AM, Thomas Gleixner wrote: On Thu, 1 Oct 2015, Frederic Weisbecker wrote: On Mon, Sep 28, 2015 at 11:17:17AM -0400, Chris Metcalf wrote: + + while (READ_ONCE(dev->next_event.tv64) != KTIME_MAX) { You should add a function in tick-sched.c to get the next tick. This is

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