[PATCH] perf tools: Remove BUG_ON char[] to bool implicit conversions

2017-08-28 Thread David Carrillo-Cisneros
When compiling with LLVM, errors like this are shown: builtin-lock.c:46:10: error: implicit conversion turns string literal into bool: 'const char [39]' to 'bool' due to error message implicit conversion into bool. Fix it printing the error message and returning an error when possible. Signed

Re: [PATCH 5/7] RDS: make rhashtable_params const

2017-08-28 Thread David Miller
From: Bhumika Goyal Date: Fri, 25 Aug 2017 19:51:45 +0530 > Make this const as it is either used during a copy operation or passed > to a const argument of the function rhltable_init > > Signed-off-by: Bhumika Goyal Applied.

Re: [PATCH 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor

2017-08-28 Thread Sören Brinkmann
On Mon, 2017-08-28 at 14:22:03 -0400, Nicolas Dufresne wrote: > Le lundi 28 août 2017 à 08:15 -0700, Soren Brinkmann a écrit : [...] > > diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig > > index 94153895fcd4..4e8b64575b2a 100644 > > --- a/drivers/media/i2c/Kconfig > > +++ b/drive

Re: [PATCH 4/7] ipv4: make net_protocol const

2017-08-28 Thread David Miller
From: Bhumika Goyal Date: Fri, 25 Aug 2017 19:51:44 +0530 > Make these const as they are only passed to a const argument of the > function inet_add_protocol. > > Signed-off-by: Bhumika Goyal Applied.

Re: [PATCH 0/6] perf tools: Minor build fixes

2017-08-28 Thread David Carrillo-Cisneros
On Mon, Aug 28, 2017 at 7:16 AM, Arnaldo Carvalho de Melo wrote: > Em Mon, Aug 28, 2017 at 11:34:21AM +0200, Jiri Olsa escreveu: >> On Sun, Aug 27, 2017 at 12:54:36AM -0700, David Carrillo-Cisneros wrote: >> > Collection of minor fixes to compile with LLVM and >> > non-standard tool names. >> > >>

Re: [PATCH v3 56/59] KVM: arm/arm64: GICv4: Prevent heterogenous systems from using GICv4

2017-08-28 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:34PM +0100, Marc Zyngier wrote: > The GICv4 architecture doesn't prevent CPUs implementing GICv4 to > cohabit with CPUs limited to GICv3 in the same system. > > This is mad (the sheduler would have to be made aware of the v4 *scheduler > capability), and we're certa

Re: [PATCH] tty: hvcs: make ktermios const

2017-08-28 Thread Tyrel Datwyler
On 08/28/2017 11:30 AM, Bhumika Goyal wrote: > Make this const as it is not modified anywhere. > > Signed-off-by: Bhumika Goyal Reviewed-by: Tyrel Datwyler

Re: [PATCH] IPMI: make ipmi_poweroff_handler const

2017-08-28 Thread Corey Minyard
On 08/28/2017 01:08 PM, Bhumika Goyal wrote: Make this const as it is only passed to a const argument of the function ipmi_create_user. Queued for the next kernel release. -corey Signed-off-by: Bhumika Goyal --- drivers/char/ipmi/ipmi_poweroff.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] packet: Don't write vnet header beyond end of buffer

2017-08-28 Thread Willem de Bruijn
On Mon, Aug 28, 2017 at 2:29 PM, Benjamin Poirier wrote: > ... which may happen with certain values of tp_reserve and maclen. > > Fixes: 58d19b19cd99 ("packet: vnet_hdr support for tpacket_rcv") > Signed-off-by: Benjamin Poirier > Cc: Willem de Bruijn Acked-by: Willem de Bruijn Thanks for fix

boot failure with 4.13.0-rc6 due to ATA errors

2017-08-28 Thread David Ahern
Not sure why mailing list to direct this bug report to, so starting with libata based on the error messages. Some where between v4.12 and 4.13.0-rc6 a Celestica redstone switch fails to boot due to ATA errors: [9.185203] ata1.00: failed to set xfermode (err_mask=0x40) [9.500825] ata1.00:

Re: [PATCH 3/5] [media] solo6x10: make video_device const

2017-08-28 Thread Ismael Luceno
On 26/Aug/2017 16:43, Bhumika Goyal wrote: > Make this const as it is only used in a copy operation. > > Signed-off-by: Bhumika Goyal > --- > drivers/media/pci/solo6x10/solo6x10-v4l2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/pci/solo6x10/solo6x10-v

Re: [PATCH v2] [media] pci: make video_device const

2017-08-28 Thread Ismael Luceno
On 26/Aug/2017 18:38, Bhumika Goyal wrote: > Make these const as they are either used during a copy operation or > passed to a const argument of the function cx88_vdev_init. > > Signed-off-by: Bhumika Goyal > --- > * Combine the patch series sent for drivers/media/pci/ into a > single patch. > >

Re: linux-next: manual merge of the scsi tree with the staging tree

2017-08-28 Thread g...@kroah.com
On Mon, Aug 28, 2017 at 06:51:59PM +0100, James Bottomley wrote: > On Mon, 2017-08-28 at 18:44 +0200, g...@kroah.com wrote: > > On Mon, Aug 28, 2017 at 04:36:06PM +, Bart Van Assche wrote: > > > > > > On Mon, 2017-08-28 at 18:05 +0200, g...@kroah.com wrote: > > > > > > > > On Mon, Aug 28, 201

Re: [PATCH] hugetlbfs: change put_page/unlock_page order in hugetlbfs_fallocate()

2017-08-28 Thread Mike Kravetz
On 08/28/2017 11:09 AM, Michal Hocko wrote: > On Mon 28-08-17 10:45:58, Mike Kravetz wrote: >> Adding Andrew, Michal on CC >> >> On 08/27/2017 01:08 PM, Nadav Amit wrote: >>> Mike Kravetz wrote: >>> On 08/26/2017 12:11 PM, Nadav Amit wrote: > hugetlfs_fallocate() currently performs put_pa

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-28 Thread Waiman Long
On 08/28/2017 01:58 PM, Waiman Long wrote: > On 07/28/2017 02:34 PM, Waiman Long wrote: >> v2->v3: >> - Add a faster pruning rate when the free pool is closed to depletion. >> - As suggested by James Bottomley, add an artificial delay waiting >> loop before killing a negative dentry and pr

Re: [PATCH v2 11/14] power: supply: bq24190_charger: Get input_current_limit from our supplier

2017-08-28 Thread Hans de Goede
Hi, On 28-08-17 20:07, Liam Breck wrote: Hi Hans, I sent too soon... On Mon, Aug 28, 2017 at 9:04 AM, Hans de Goede wrote: Hi, On 16-08-17 22:28, Liam Breck wrote: Hi Hans, On Tue, Aug 15, 2017 at 1:04 PM, Hans de Goede wrote: On some devices the USB Type-C port power (USB PD 2.0) neg

Re: [PATCH V3] acpi: apei: clear error status before acknowledging the error

2017-08-28 Thread Andy Shevchenko
On Mon, Aug 28, 2017 at 9:27 PM, Borislav Petkov wrote: > On Mon, Aug 28, 2017 at 08:44:21PM +0300, Andy Shevchenko wrote: >> For my opinion, since you asked, the either case needs a comment on >> top of that additional check. > > That's because the comment belongs to the v2 part of the check. > >

Re: [PATCH V3] acpi: apei: clear error status before acknowledging the error

2017-08-28 Thread Andy Shevchenko
On Mon, Aug 28, 2017 at 9:27 PM, Borislav Petkov wrote: > On Mon, Aug 28, 2017 at 08:44:21PM +0300, Andy Shevchenko wrote: >> For my opinion, since you asked, the either case needs a comment on >> top of that additional check. > > That's because the comment belongs to the v2 part of the check. So

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Bjorn Helgaas
On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: > PCIe spec r3.1, sec 2.3.2 > If CRS software visibility is not enabled, the RC must reissue the > config request as a new request. > > - If CRS software visibility is enabled, > - for a config read of Vendor ID, the RC must return 0x0

Re: [PATCH v2 4/5] cramfs: add mmap support

2017-08-28 Thread Nicolas Pitre
On Mon, 28 Aug 2017, Al Viro wrote: > On Mon, Aug 28, 2017 at 09:29:58AM -0400, Nicolas Pitre wrote: > > > > + /* Make sure the vma didn't change between the locks */ > > > > + vma = find_vma(mm, vmf->address); > > > > + if (vma->vm_ops != &cramfs_vmasplit_ops) { > > > > +

[PATCH net-next v2 06/10] net: dsa: debugfs: add port fdb

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "fdb" entry to query a port's hardware FDB entries through the .port_fdb_dump switch operation. This is really convenient to query directly the hardware or inspect DSA or CPU links, since these ports are not exposed to userspace. # cat port1/fdb vid 0 12:34:56:78:9

[PATCH net-next v2 04/10] net: dsa: debugfs: add port stats

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "stats" entry to query a port's hardware statistics through the DSA switch .get_sset_count, .get_strings and .get_ethtool_stats operations. This allows one to get statistics about DSA links interconnecting switches, which is very convenient because this kind of port is not e

[PATCH net-next v2 05/10] net: dsa: debugfs: add port regs

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "regs" entry to query a port's hardware registers through the .get_regs_len and .get_regs_len switch operations. This is very convenient because it allows one to dump the registers of DSA links, which are not exposed to userspace. Here are the registers of a zii-rev-b CPU a

[PATCH net-next v2 03/10] net: dsa: debugfs: add tag_protocol

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "tag_protocol" entry to query the switch tagging protocol through the .get_tag_protocol operation. # cat switch1/tag_protocol EDSA To ease maintenance of tag protocols, add a dsa_tag_protocol_name helper to the public API which to convert a tag protocol enum to a st

[PATCH net-next v2 09/10] net: dsa: restore VLAN dump

2017-08-28 Thread Vivien Didelot
This commit defines a dsa_vlan_dump_cb_t callback, similar to the FDB dump callback and partly reverts commit a0b6b8c9fa3c ("net: dsa: Remove support for vlan dump from DSA's drivers") to restore the DSA drivers VLAN dump operations. Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli Re

[PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-28 Thread Vivien Didelot
This patch series adds a generic debugfs interface for the DSA framework, so that all switch devices benefit from it, e.g. Marvell, Broadcom, Microchip or any other DSA driver. This is really convenient for debugging, especially CPU ports and DSA links which are not exposed to userspace as net dev

[PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-08-28 Thread Vivien Didelot
This commit adds the boiler plate to create a DSA related debug filesystem entry as well as a "tree" file, containing the tree index. # cat switch1/tree 0 Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- net/dsa/debugfs.c | 107 +

Re: [PATCH 02/10] perf: Fix leader for removed sibling event in perf_group_detach

2017-08-28 Thread Peter Zijlstra
On Thu, Aug 24, 2017 at 06:27:29PM +0200, Jiri Olsa wrote: > Mark reported warning in x86_perf_event_update caused > by reading unscheduled leader of an event that was > already removed from the group. > > As he pointed out we don't properly reset event's leader > once it's been detached from the

[PATCH net-next v2 10/10] net: dsa: debugfs: add port vlan

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "vlan" entry to query a port's hardware VLAN entries through the .port_vlan_dump switch operation. This is really convenient to query directly the hardware or inspect DSA or CPU links, since these ports are not exposed to userspace. Here are the VLAN entries for a CPU port:

[PATCH net-next v2 08/10] net: dsa: debugfs: add port mdb

2017-08-28 Thread Vivien Didelot
Add a debug filesystem "mdb" entry to query a port's hardware MDB entries through the .port_mdb_dump switch operation. This is really convenient to query directly the hardware or inspect DSA or CPU links, since these ports are not exposed to userspace. Signed-off-by: Vivien Didelot Reviewed-by:

Re: [PATCH 03/10] perf: Make sure we read only scheduled events

2017-08-28 Thread Peter Zijlstra
On Thu, Aug 24, 2017 at 06:27:30PM +0200, Jiri Olsa wrote: > Adding leader's state check into perf_output_read_group > to ensure we read only leader, which is scheduled in. > > Similar check is already there for siblings. > > Signed-off-by: Jiri Olsa > --- > kernel/events/core.c | 10 +++---

[PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Vivien Didelot
This commit adds a DEBUG_FS dependent DSA core file creating a generic debug filesystem interface for the DSA switch devices. The interface can be mounted with: # mount -t debugfs none /sys/kernel/debug The dsa directory contains one directory per switch chip: # cd /sys/kernel/debug/dsa

Re: [PATCH 01/10] perf/x86: Add warning on proper cpu during event's update

2017-08-28 Thread Peter Zijlstra
On Thu, Aug 24, 2017 at 06:27:28PM +0200, Jiri Olsa wrote: > Mark reported that we could actually call pmu->read on > unscheduled event. I think it's good idea to keep a > warning here to see if we've get it wrong again in > future. > > Reported-by: Mark Rutland > Signed-off-by: Jiri Olsa Yeah,

[PATCH net-next v2 07/10] net: dsa: restore mdb dump

2017-08-28 Thread Vivien Didelot
The same dsa_fdb_dump_cb_t callback is used since there is no distinction to do between FDB and MDB entries at this layer. Implement mv88e6xxx_port_mdb_dump so that multicast addresses associated to a switch port can be dumped. Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn --- drivers

Re: [PATCH] perf record: enable multiplexing scaling via -R

2017-08-28 Thread Stephane Eranian
Hi, On Tue, Aug 22, 2017 at 12:24 AM, Stephane Eranian wrote: > On Tue, Aug 22, 2017 at 12:03 AM, Jiri Olsa wrote: >> >> On Mon, Aug 21, 2017 at 06:25:45PM -0700, Andi Kleen wrote: >> > On Mon, Aug 21, 2017 at 05:13:29PM -0700, Stephane Eranian wrote: >> > > On Mon, Aug 21, 2017 at 4:02 PM, Andi

Re: [tip:perf/core] perf/x86: Export some PMU attributes in caps/ directory

2017-08-28 Thread Andi Kleen
> is not intel specific at all.. > > Not very nice. > > Boris, could you give this a spin? Thanks for fixing. I guess could also just have removed the warning, but your patch is better Reviewed-by: Andi Kleen -Andi

Re: [PATCH 3.18 00/22] 3.18.68-stable review

2017-08-28 Thread Shuah Khan
On 08/28/2017 02:05 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.68 release. > There are 22 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. > > Responses s

Re: [PATCH 4.4 00/53] 4.4.85-stable review

2017-08-28 Thread Shuah Khan
On 08/28/2017 02:05 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.85 release. > There are 53 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. > > Responses sh

Re: [PATCH 4.9 00/84] 4.9.46-stable review

2017-08-28 Thread Shuah Khan
On 08/28/2017 02:04 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.46 release. > There are 84 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. > > Responses sh

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas wrote: > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> PCIe spec r3.1, sec 2.3.2 >> If CRS software visibility is not enabled, the RC must reissue the >> config request as a new request. >> >> - If CRS software visibility is enabl

Re: [PATCH 4.12 00/99] 4.12.10-stable review

2017-08-28 Thread Shuah Khan
On 08/28/2017 02:03 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.12.10 release. > There are 99 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. > > Responses s

Re: [PATCH] KVM: MMU: speedup update_permission_bitmask

2017-08-28 Thread Jim Mattson
Looks okay to me, but I'm hoping Peter will chime in. Reviewed-by: Jim Mattson On Thu, Aug 24, 2017 at 8:56 AM, Paolo Bonzini wrote: > update_permission_bitmask currently does a 128-iteration loop to, > essentially, compute a constant array. Computing the 8 bits in parallel > reduces it to 16

[GIT PULL] (xen) stable/for-jens-4.13.. for 4.13-rc7 or 4.14-rc1 if you would like

2017-08-28 Thread Konrad Rzeszutek Wilk
Hey Jens, Please git pull the following branch: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/for-jens-4.13 .. which as a bug-fix when shutting down xen block backend driver with multiple queues and the driver not clearing all of them. Thank you! If you pull it in your

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Jiri Pirko
Mon, Aug 28, 2017 at 09:17:39PM CEST, vivien.dide...@savoirfairelinux.com wrote: >This commit adds a DEBUG_FS dependent DSA core file creating a generic >debug filesystem interface for the DSA switch devices. > >The interface can be mounted with: > ># mount -t debugfs none /sys/kernel/debug > >

Re: [PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-28 Thread Jiri Pirko
Mon, Aug 28, 2017 at 09:17:38PM CEST, vivien.dide...@savoirfairelinux.com wrote: >This patch series adds a generic debugfs interface for the DSA >framework, so that all switch devices benefit from it, e.g. Marvell, >Broadcom, Microchip or any other DSA driver. > >This is really convenient for debug

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Bjorn Helgaas
On Tue, Aug 29, 2017 at 01:09:53AM +0530, Oza Oza wrote: > On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas wrote: > > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: > >> PCIe spec r3.1, sec 2.3.2 > >> If CRS software visibility is not enabled, the RC must reissue the > >> config re

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Florian Fainelli
On 08/28/2017 12:50 PM, Jiri Pirko wrote: > Mon, Aug 28, 2017 at 09:17:39PM CEST, vivien.dide...@savoirfairelinux.com > wrote: >> This commit adds a DEBUG_FS dependent DSA core file creating a generic >> debug filesystem interface for the DSA switch devices. >> >> The interface can be mounted with

Re: boot failure with 4.13.0-rc6 due to ATA errors

2017-08-28 Thread Tejun Heo
(cc'ing Christoph) On Mon, Aug 28, 2017 at 12:40:39PM -0600, David Ahern wrote: > Not sure why mailing list to direct this bug report to, so starting with > libata based on the error messages. > > Some where between v4.12 and 4.13.0-rc6 a Celestica redstone switch > fails to boot due to ATA error

[PATCH] pwm_bl: Fix overflow condition

2017-08-28 Thread Derek Basehore
This fixes and overflow condition that happens with a high value of brightness-levels-scale by using a 64-bit variable. The issue would prevent a range of higher brightness levels from being set. Signed-off-by: Derek Basehore --- drivers/video/backlight/pwm_bl.c | 7 +-- 1 file changed, 5 in

Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit

2017-08-28 Thread Tim Chen
On 08/28/2017 09:48 AM, Linus Torvalds wrote: > On Mon, Aug 28, 2017 at 7:51 AM, Liang, Kan wrote: >> >> I tried this patch and https://lkml.org/lkml/2017/8/27/222 together. >> But they don't fix the issue. I can still get the similar call stack. > > So the main issue was that I *really* hated Ti

Re: [patch v1 0/2] JTAG driver introduction

2017-08-28 Thread Pavel Machek
Hi! > > Thanks a lot for review. > > > > > We used user space tool for that, which is an adaptation of some > > Lattice tools, which allows programming of SVF files. We are using > > it for Lattice CPLD burning, since we have for such devices on our > > system, but this tool could be used for pr

Re: [PATCH] initramfs: Fix disabling of initramfs (and its compression)

2017-08-28 Thread Florian Fainelli
On 05/21/2017 07:46 PM, Nicholas Piggin wrote: > On Sat, 20 May 2017 20:33:35 -0700 > Florian Fainelli wrote: > >> Commit db2aa7fd15e8 ("initramfs: allow again choice of the embedded >> initram compression algorithm") introduced the possibility to select the >> initramfs compression algorithm fro

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Jiri Pirko
Mon, Aug 28, 2017 at 09:58:12PM CEST, f.faine...@gmail.com wrote: >On 08/28/2017 12:50 PM, Jiri Pirko wrote: >> Mon, Aug 28, 2017 at 09:17:39PM CEST, vivien.dide...@savoirfairelinux.com >> wrote: >>> This commit adds a DEBUG_FS dependent DSA core file creating a generic >>> debug filesystem interf

Re: [PATCH net-next v2 00/10] net: dsa: add generic debugfs interface

2017-08-28 Thread Andrew Lunn
> I see this overlaps a lot with DPIPE. Why won't you use that to expose > your hw state? We took a look at dpipe and i talked to you about using it for this sort of thing at netconf/netdev. But dpipe has issues displaying the sort of information we have. I never figured out how to do two dimensio

Re: [PATCH net-next v2 03/10] net: dsa: debugfs: add tag_protocol

2017-08-28 Thread Andrew Lunn
On Mon, Aug 28, 2017 at 03:17:41PM -0400, Vivien Didelot wrote: > Add a debug filesystem "tag_protocol" entry to query the switch tagging > protocol through the .get_tag_protocol operation. > > # cat switch1/tag_protocol > EDSA > > To ease maintenance of tag protocols, add a dsa_tag_proto

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-08-28 Thread Andrew Lunn
On Mon, Aug 28, 2017 at 03:17:39PM -0400, Vivien Didelot wrote: > This commit adds a DEBUG_FS dependent DSA core file creating a generic > debug filesystem interface for the DSA switch devices. > > The interface can be mounted with: > > # mount -t debugfs none /sys/kernel/debug > > The dsa d

Re: [PATCH v2 0/2] leds: gpio: Allow retaining state on shutdown

2017-08-28 Thread Jacek Anaszewski
Hi Andrew, Thanks for the update. On 08/28/2017 02:17 AM, Andrew Jeffery wrote: > Hello, > > LEDs controlled by Baseboard Management Controllers (BMCs) are sometimes > required to retain their state across BMC resets. BMC resets may occur whilst > the host is alive, thus the chassis and host sys

Re: [PATCH] leds-PowerNV: Delete an error message for a failed memory allocation in powernv_led_create()

2017-08-28 Thread Jacek Anaszewski
Hi Markus, Thanks for the patch. On 08/27/2017 10:10 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 27 Aug 2017 22:00:22 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed

Re: boot failure with 4.13.0-rc6 due to ATA errors

2017-08-28 Thread David Ahern
On 8/28/17 1:59 PM, Tejun Heo wrote: > Can you please verify whether 818831c8b22f ("libata: implement > SECURITY PROTOCOL IN/OUT") is the culprit? ie. try to boot the commit > to verify that the problem is there, and try the one prior? That commit is the problem. a0fd2454a36ffab2ce39b3a91c1385a5f

Re: iov_iter_pipe warning.

2017-08-28 Thread Dave Jones
On Mon, Aug 07, 2017 at 04:18:18PM -0400, Dave Jones wrote: > On Fri, Apr 28, 2017 at 06:20:25PM +0100, Al Viro wrote: > > On Fri, Apr 28, 2017 at 12:50:24PM -0400, Dave Jones wrote: > > > currently running v4.11-rc8-75-gf83246089ca0 > > > > > > sunrpc bit is for the other unrelated probl

Re: [PATCH] mm, madvise: Ensure poisoned pages are removed from per-cpu lists

2017-08-28 Thread David Rientjes
On Mon, 28 Aug 2017, Mel Gorman wrote: > Wendy Wang reported off-list that a RAS HWPOISON-SOFT test case failed and > bisected it to the commit 479f854a207c ("mm, page_alloc: defer debugging > checks of pages allocated from the PCP"). The problem is that a page that > was poisoned with madvise() i

make linkcheckdocs error with 4.13-rc7

2017-08-28 Thread Jim Davis
On my Fedora 26 desktop (with Sphinx 1.6.3), make linkcheckdocs is failing with InputError: [Errno 2] No such file or directory: '/data/linux-rc/Documentation/output/cec.h.rst'. reST markup error: /data/linux-rc/Documentation/media/uapi/cec/cec-header.rst:9: (SEVERE/4) Problems with "kernel-inclu

Re: [PATCH] perf record: enable multiplexing scaling via -R

2017-08-28 Thread Andi Kleen
> So I think we are good to go. to capture multiplexing scaling factor > when sampling simply use the S > modifier. > But to my surprise, newer kernels are not happy with the cmdline: > $ perf record -e cycles:S noploop 1 > Error: > The sys_perf_event_open() syscall returned with 22 (Invalid argum

Re: [PATCH v8 2/3] PCI: iproc: retry request when CRS returned from EP

2017-08-28 Thread Oza Oza
On Tue, Aug 29, 2017 at 1:24 AM, Bjorn Helgaas wrote: > On Tue, Aug 29, 2017 at 01:09:53AM +0530, Oza Oza wrote: >> On Tue, Aug 29, 2017 at 12:47 AM, Bjorn Helgaas wrote: >> > On Thu, Aug 24, 2017 at 10:34:25AM +0530, Oza Pawandeep wrote: >> >> PCIe spec r3.1, sec 2.3.2 >> >> If CRS software visi

Re: [PATCH] libnvdimm: clean up command definitions

2017-08-28 Thread Jerry Hoemann
On Mon, Aug 28, 2017 at 08:45:32AM -0700, Dan Williams wrote: > Remove the command payloads that do not have an associated libnvdimm > ioctl. I.e. remove the payloads that would only ever be carried in the > ND_CMD_CALL envelope. This prevents userspace from growing unnecessary > dependencies on t

Re: [v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-28 Thread David Rientjes
On Thu, 24 Aug 2017, Roman Gushchin wrote: > > > Do you have an example, which can't be effectively handled by an approach > > > I'm suggesting? > > > > No, I do not have any which would be _explicitly_ requested but I do > > envision new requirements will emerge. The most probable one would be >

Re: [PATCH] acpi: apei: call into AER handling regardless of severity

2017-08-28 Thread Rafael J. Wysocki
On Monday, August 28, 2017 7:11:54 PM CEST Tyler Baicar wrote: > Currently the GHES code only calls into the AER driver for > recoverable type errors. This is incorrect because errors of > other severities do not get logged by the AER driver and do not > get exposed to user space via the AER trace

Re: [PATCH v4 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-28 Thread Rafael J. Wysocki
On Thursday, August 24, 2017 9:53:48 AM CEST Borislav Petkov wrote: > On Wed, Aug 23, 2017 at 04:54:43PM -0600, Toshi Kani wrote: > > ACPI OEM ID / OEM Table ID / Revision can be used to identify > > a platform based on ACPI firmware info. acpi_blacklisted(), > > intel_pstate_platform_pwr_mgmt_exi

Re: [PATCH v4] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

2017-08-28 Thread Rafael J. Wysocki
On Saturday, August 19, 2017 1:19:00 AM CEST Luck, Tony wrote: > From: Tony Luck > > The ACPI sysfs interface provides a way to read each ACPI table from > userspace via entries in /sys/firmware/acpi/tables/ > > The BERT table simply provides the size and address of the error > record in BIOS re

Re: [PATCH 1/6] ACPI: make device_attribute const

2017-08-28 Thread Rafael J. Wysocki
On Monday, August 21, 2017 1:43:07 PM CEST Bhumika Goyal wrote: > Make these const as they are only passed as an argument to the function > device_create_file and device_remove_file and the corresponding > arguments are of type const. > Done using Coccinelle > > Signed-off-by: Bhumika Goyal > ---

Re: [PATCH v4] acpi: apei: fix the wrong iteration of generic error status block

2017-08-28 Thread Rafael J. Wysocki
On Thursday, August 17, 2017 1:43:49 PM CEST Borislav Petkov wrote: > On Thu, Aug 17, 2017 at 08:07:18PM +0800, Dongjiu Geng wrote: > > The revision 0x300 generic error data entry is different > > from the old version, but currently iterating through the > > GHES estatus blocks does not take into a

Re: [PATCH] libnvdimm: clean up command definitions

2017-08-28 Thread Dan Williams
On Mon, Aug 28, 2017 at 1:50 PM, Jerry Hoemann wrote: > > On Mon, Aug 28, 2017 at 08:45:32AM -0700, Dan Williams wrote: >> Remove the command payloads that do not have an associated libnvdimm >> ioctl. I.e. remove the payloads that would only ever be carried in the >> ND_CMD_CALL envelope. This pr

Re: [PATCH] acpi/processor: make function acpi_processor_check_duplicates static

2017-08-28 Thread Rafael J. Wysocki
On Tuesday, August 15, 2017 11:46:30 AM CEST Colin King wrote: > From: Colin Ian King > > The function acpi_processor_check_duplicates is local to the source and > does not need to be in global scope, so make it static. > > Cleans up sparse warnings: > symbol 'acpi_processor_check_duplicates' wa

[PATCH 2/2] arm64: dts: marvell: Force 3byte addressing mode for SPI on A7040 DB

2017-08-28 Thread Marcin Wojtas
Armada 7040 DB boards can be shipped with various models of boot SPI flash devices. An issue can emerge, when their size exceeds 16MB - in such case the kernel driver will switch automatically to 4B addressing mode. Later, in case of soft reset, the Boot ROM will fail to fetch the firmware during t

[PATCH 0/2] SPI NOR - force 3byte addressing mode

2017-08-28 Thread Marcin Wojtas
Hi, This very short patchset introduces optional forcing via DT 3byte addressing mode for accessing the SPI flash, whose size exceeds 16MiB. It can be used in case the device does not support SPI_NOR_4B_OPCODES and helps overcome an issue, when the Boot ROM cannot handle non-default settings that

[PATCH 1/2] mtd: spi-nor: add an option to force 3byte adressing mode

2017-08-28 Thread Marcin Wojtas
Hitherto code set 4B addressing mode for all SPI flashes whose size exceeds 16MB. However, changing the default 3B access in some cases may be harmful - it may happen that the Boot ROM is not capable of handling non-default state of the SPI NOR (e.g. after soft reset). Some flash devices allow to a

Re: [PATCH v2 1/2] dt-bindings: leds: gpio: Add optional retain-state-shutdown property

2017-08-28 Thread Brandon Wyman
On Mon, Aug 28, 2017 at 5:19 AM, Pavel Machek wrote: > On Mon 2017-08-28 09:47:10, Andrew Jeffery wrote: >> On Baseboard Management Controller (BMC) systems it's sometimes >> necessary for a LED to retain its state across a BMC reset (which is >> independent of the host system state). Add a device

Re: [PATCH 1/2] mtd: spi-nor: add an option to force 3byte adressing mode

2017-08-28 Thread Geert Uytterhoeven
On Mon, Aug 28, 2017 at 11:14 PM, Marcin Wojtas wrote: > Hitherto code set 4B addressing mode for all SPI flashes whose > size exceeds 16MB. However, changing the default 3B access > in some cases may be harmful - it may happen that the Boot ROM > is not capable of handling non-default state of th

Re: [PATCH v4 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-28 Thread Borislav Petkov
On Mon, Aug 28, 2017 at 10:55:07PM +0200, Rafael J. Wysocki wrote: > So what about the [3-5/5] in this series? > > My current plan is to apply them too and expose a branch with them, can I > go ahead with that? No, please expose a branch with only the ACPI patches, i.e., 1 and 2 and I can merge i

Re: [PATCH 2/6] nbd: make device_attribute const

2017-08-28 Thread Jens Axboe
On 08/21/2017 05:43 AM, Bhumika Goyal wrote: > Make this const as is is only passed as an argument to the > function device_create_file and device_remove_file and the corresponding > arguments are of type const. > Done using Coccinelle Added for 4.14, thanks. -- Jens Axboe

Re: boot failure with 4.13.0-rc6 due to ATA errors

2017-08-28 Thread Tejun Heo
Hello, On Mon, Aug 28, 2017 at 02:26:52PM -0600, David Ahern wrote: > On 8/28/17 1:59 PM, Tejun Heo wrote: > > Can you please verify whether 818831c8b22f ("libata: implement > > SECURITY PROTOCOL IN/OUT") is the culprit? ie. try to boot the commit > > to verify that the problem is there, and try

Re: [PATCH v2 14/20] mm: Provide speculative fault infrastructure

2017-08-28 Thread Benjamin Herrenschmidt
On Mon, 2017-08-28 at 11:37 +0200, Peter Zijlstra wrote: > > Doing all this job and just give up because we cannot allocate page tables > > looks very wasteful to me. > > > > Have you considered to look how we can hand over from speculative to > > non-speculative path without starting from scratch

Re: [PATCH v2 1/2] PM: docs: Describe high-level PM strategies and sleep states

2017-08-28 Thread Rafael J. Wysocki
On Monday, August 21, 2017 3:14:56 PM CEST Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Reorganize the power management part of admin-guide by adding a > description of major power management strategies supported by the > kernel (system-wide and working-state power management) to it and

Re: [PATCH 0/3] cpuidle: Rework the handling of the poll state

2017-08-28 Thread Rafael J. Wysocki
On Thursday, August 24, 2017 11:48:19 AM CEST Sudeep Holla wrote: > > On 23/08/17 22:18, Rafael J. Wysocki wrote: > > Hi, > > > > On x86 the fist idle state is a polling one, but the way it is set up is far > > from straightforward and then it is avoided by governors in rather somewhat > > convol

Re: [PATCH v4 1/5] ACPI / blacklist: add acpi_match_platform_list()

2017-08-28 Thread Rafael J. Wysocki
On Monday, August 28, 2017 11:21:52 PM CEST Borislav Petkov wrote: > On Mon, Aug 28, 2017 at 10:55:07PM +0200, Rafael J. Wysocki wrote: > > So what about the [3-5/5] in this series? > > > > My current plan is to apply them too and expose a branch with them, can I > > go ahead with that? > > No, p

Re: [PATCH v2] PM / AVS: rockchip-io: add io selectors and supplies for RV1108

2017-08-28 Thread Rafael J. Wysocki
On Tuesday, August 22, 2017 12:00:02 AM CEST Heiko Stuebner wrote: > Am Montag, 21. August 2017, 18:58:33 CEST schrieb David Wu: > > This adds the necessary data for handling io voltage domains on the RV1108. > > > > Signed-off-by: David Wu > > Reviewed-by: Heiko Stuebner > Patch applied, tha

Re: [PATCH] cpufreq: ti: Fix 'of_node_put' being called twice in error handling path

2017-08-28 Thread Rafael J. Wysocki
On Sunday, August 20, 2017 3:21:06 PM CEST Viresh Kumar wrote: > On 19-08-17, 22:22, Christophe JAILLET wrote: > > If 'dev_pm_opp_set_supported_hw()' fails, 'opp_data->opp_node' refcount > > will be decremented 2 times. > > One, just a few lines above, and another one in the error handling path. >

Re: [PATCH v4 3/4] dt-bindings: PCI: rockchip: Add support for pcie wake irq

2017-08-28 Thread Rob Herring
On Fri, Aug 25, 2017 at 1:20 PM, Brian Norris wrote: > On Fri, Aug 25, 2017 at 01:14:39PM -0500, Rob Herring wrote: >> On Tue, Aug 22, 2017 at 11:19:33AM +0800, Jeffy Chen wrote: >> > Add an optional interrupt for PCIE_WAKE pin. >> > >> > Signed-off-by: Jeffy Chen >> > --- >> > >> > Changes in v4

Re: [PATCH] selinux: constify nf_hook_ops

2017-08-28 Thread Paul Moore
On Sat, Aug 26, 2017 at 6:47 AM, Arvind Yadav wrote: > nf_hook_ops are not supposed to change at runtime. nf_register_net_hooks > and nf_unregister_net_hooks are working with const nf_hook_ops. > So mark the non-const nf_hook_ops structs as const. > > Signed-off-by: Arvind Yadav > --- > security

[PATCH v2 17/30] scsi: Define usercopy region in scsi_sense_cache slab cache

2017-08-28 Thread Kees Cook
From: David Windsor SCSI sense buffers, stored in struct scsi_cmnd.sense and therefore contained in the scsi_sense_cache slab cache, need to be copied to/from userspace. cache object allocation: drivers/scsi/scsi_lib.c: scsi_select_sense_cache(...): return ... ? scsi_sens

[PATCH v2 00/30] Hardened usercopy whitelisting

2017-08-28 Thread Kees Cook
This series is modified from Brad Spengler/PaX Team's PAX_USERCOPY code in the last public patch of grsecurity/PaX based on our understanding of the code. Changes or omissions from the original code are ours and don't reflect the original grsecurity/PaX code. David Windsor did the bulk of the port

[PATCH v2 07/30] ext4: Define usercopy region in ext4_inode_cache slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The ext4 symlink pathnames, stored in struct ext4_inode_info.i_data and therefore contained in the ext4_inode_cache slab cache, need to be copied to/from userspace. cache object allocation: fs/ext4/super.c: ext4_alloc_inode(...): struct ext4_inode_info

[PATCH v2 20/30] caif: Define usercopy region in caif proto slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The CAIF channel connection request parameters need to be copied to/from userspace. In support of usercopy hardening, this patch defines a region in the struct proto slab cache in which userspace copy operations are allowed. example usage trace: net/caif/caif_socket.c:

[PATCH v2 08/30] ext2: Define usercopy region in ext2_inode_cache slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The ext2 symlink pathnames, stored in struct ext2_inode_info.i_data and therefore contained in the ext2_inode_cache slab cache, need to be copied to/from userspace. cache object allocation: fs/ext2/super.c: ext2_alloc_inode(...): struct ext2_inode_info

[PATCH v2 13/30] ufs: Define usercopy region in ufs_inode_cache slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The ufs symlink pathnames, stored in struct ufs_inode_info.i_u1.i_symlink and therefore contained in the ufs_inode_cache slab cache, need to be copied to/from userspace. cache object allocation: fs/ufs/super.c: ufs_alloc_inode(...): ... ei

[PATCH v2 15/30] xfs: Define usercopy region in xfs_inode slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The XFS inline inode data, stored in struct xfs_inode_t field i_df.if_u2.if_inline_data and therefore contained in the xfs_inode slab cache, needs to be copied to/from userspace. cache object allocation: fs/xfs/xfs_icache.c: xfs_inode_alloc(...): ...

[PATCH v2 16/30] cifs: Define usercopy region in cifs_request slab cache

2017-08-28 Thread Kees Cook
From: David Windsor CIFS request buffers, stored in the cifs_request slab cache, need to be copied to/from userspace. cache object allocation: fs/cifs/cifsfs.c: cifs_init_request_bufs(): ... cifs_req_poolp = mempool_create_slab_pool(cifs_min_rcv,

[PATCH v2 11/30] exofs: Define usercopy region in exofs_inode_cache slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The exofs short symlink names, stored in struct exofs_i_info.i_data and therefore contained in the exofs_inode_cache slab cache, need to be copied to/from userspace. cache object allocation: fs/exofs/super.c: exofs_alloc_inode(...): ... oi

[PATCH v2 12/30] orangefs: Define usercopy region in orangefs_inode_cache slab cache

2017-08-28 Thread Kees Cook
From: David Windsor orangefs symlink pathnames, stored in struct orangefs_inode_s.link_target and therefore contained in the orangefs_inode_cache, need to be copied to/from userspace. cache object allocation: fs/orangefs/super.c: orangefs_alloc_inode(...): ...

[PATCH v2 09/30] jfs: Define usercopy region in jfs_ip slab cache

2017-08-28 Thread Kees Cook
From: David Windsor The jfs symlink pathnames, stored in struct jfs_inode_info.i_inline and therefore contained in the jfs_ip slab cache, need to be copied to/from userspace. cache object allocation: fs/jfs/super.c: jfs_alloc_inode(...): ... jfs_inode = kmem_c

  1   2   3   4   5   6   7   8   9   10   >