Re: [PATCH 2/3] hwmon: (adt7475) fan stall prevention

2017-05-02 Thread Guenter Roeck
On Tue, May 02, 2017 at 05:45:35PM +1200, Chris Packham wrote: > By default adt7475 will stop the fans (pwm duty cycle 0%) when the > temperature drops past Tmin - hysteresis. Some systems want to keep the > fans moving even when the temperature drops so add new sysfs attributes > that configure th

[patch] perf_event DRAM RAPL uses wrong units on Broadwell-EP

2017-05-02 Thread Vince Weaver
It appears as though the Broadwell-EP DRAM units share the special units quirk with Haswell-EP/KNL. Without this patch, you get really high results (a single DRAM using 20W of power). The powercap driver in drivers/powercap/intel_rapl.c already has this change. Signed-off-by: Vince Weaver

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Darren Hart
On Tue, May 02, 2017 at 02:04:03PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drivers-x86 tree got a conflict in: > > drivers/watchdog/iTCO_wdt.c > > between commit: > > 38a700fa1df9 ("watchdog: iTCO_wdt: cleanup set/unset no_reboot_bit > functions") > (wh

Re: [PATCH 1/2] Input: pwm-vibra: new driver

2017-05-02 Thread Dmitry Torokhov
Hi Sebastian, On Tue, May 02, 2017 at 06:27:25PM +0200, Sebastian Reichel wrote: > Provide a simple driver for PWM controllable vibrators. It > will be used by Motorola Droid 4. > > Signed-off-by: Sebastian Reichel > --- > .../devicetree/bindings/input/pwm-vibrator.txt | 60 > drivers

Re: [PATCH] usb: host: remove unnecessary null check

2017-05-02 Thread Alan Stern
On Tue, 2 May 2017, Gustavo A. R. Silva wrote: > Remove unnecessary null check. udev->tt cannot ever be NULL when this > section of code runs. > > Addresses-Coverity-ID: 100828 > Cc: Alan Stern > Signed-off-by: Gustavo A. R. Silva > --- > drivers/usb/host/ehci-sched.c | 2 +- > 1 file changed,

[PATCH trivial] security: Grammar s/allocates/allocated/

2017-05-02 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- security/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Kconfig b/security/Kconfig index 213df4d4f2c1527a..1bb0c5bc9caadf8c 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -134,7 +134,7 @@ config HARDENED_USERCOPY

Re: [PATCH] x86/xen: Improve failed hypercall debugging

2017-05-02 Thread Boris Ostrovsky
On 05/02/2017 01:59 PM, Andy Lutomirski wrote: > When fiddling with xen_exit_mmap(), I noticed that failed multicall > debugging doesn't work if the multicall is just one call. Fix it. That wouldn't be a multicall though, we'll end up making the desired hypercall directly. Besides, b->debug[] i

Re: [PATCH 4.10 00/62] 4.10.14-stable review

2017-05-02 Thread Greg Kroah-Hartman
On Tue, May 02, 2017 at 10:36:22AM -0700, Guenter Roeck wrote: > On Mon, May 01, 2017 at 02:34:13PM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.10.14 release. > > There are 62 patches in this series, all will be posted as a response > > to this one.

Re: error value for "internal error"

2017-05-02 Thread Linus Torvalds
On Tue, May 2, 2017 at 7:03 AM, Miklos Szeredi wrote: > I've been wondering what to return for soft asserts like this: > > if (WARN_ON(something unexpected)) > return -E; > > EINVAL doesn't fit because it means the input from userspace was > wrong. EIO means something

Re: [PATCH] driver-core: remove lock for platform devices during probe

2017-05-02 Thread Greg Kroah-Hartman
On Tue, May 02, 2017 at 10:18:25AM +0800, we...@codeaurora.org wrote: > Hi Greg K-H, > > On 2017-04-25 19:36, Greg Kroah-Hartman wrote: > > On Tue, Apr 25, 2017 at 04:43:33PM +0800, we...@codeaurora.org wrote: > > > Hi Greg K-H, > > > > > > On 2017-04-24 16:46, Greg Kroah-Hartman wrote: > > > >

Re: [git pull] vfs.git pile 3: splice-related bits and pieces

2017-05-02 Thread Linus Torvalds
On Mon, May 1, 2017 at 3:39 PM, Al Viro wrote: > Those actually missed the last cycle; the branch itself is > from last December. > > Al Viro (4): > splice/tee/vmsplice: validate flags I'm not convinced every user does this right, and this might break some splice-using app. But wit

Re: [PATCH v2] usb: gadget: udc: add null check before pointer dereference

2017-05-02 Thread Alan Stern
On Tue, 2 May 2017, Gustavo A. R. Silva wrote: > Add null check before dereferencing dev->regs pointer inside > net2280_led_shutdown() function. > > Addresses-Coverity-ID: 101783 > Cc: Alan Stern > Signed-off-by: Gustavo A. R. Silva > --- > Changes in v2: > Move the net2280_led_shutdown() cal

[PATCH 0/4] ima: builtin policy requiring file signatures

2017-05-02 Thread Mimi Zohar
The builtin "ima_appraise_tcb" policy should require file signatures for at least a few of the hooks (eg. kernel modules, firmware, kexec kernel image, and the IMA policy), but changing it would break the existing userspace/kernel ABI. This patch set extends the "ima_policy=" boot command line opt

[PATCH 2/4] ima: define a set of appraisal rules requiring file signatures

2017-05-02 Thread Mimi Zohar
The builtin "ima_appraise_tcb" policy should require file signatures for at least a few of the hooks (eg. kernel modules, firmware, and the kexec kernel image), but changing it would break the existing userspace/kernel ABI. This patch defines a new builtin policy named "secure_boot", which can be

[PATCH 4/4] ima: define is_ima_appraise_enabled()

2017-05-02 Thread Mimi Zohar
Only return enabled if in enforcing mode, not fix or log modes. Signed-off-by: Mimi Zohar Changes: - Define is_ima_appraise_enabled() as a bool (Thiago Bauermann) --- include/linux/ima.h | 6 ++ security/integrity/ima/ima_appraise.c | 10 ++ 2 files changed, 16 in

[PATCH 3/4] ima: define Kconfig IMA_APPRAISE_BOOTPARAM option

2017-05-02 Thread Mimi Zohar
Permit enabling the different "ima_appraise=" modes (eg. log, fix) from the boot command line. Signed-off-by: Mimi Zohar --- security/integrity/ima/Kconfig| 8 security/integrity/ima/ima_appraise.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/security/integrity/ima/Kc

Re: [GIT PULL] PCI fixes for v4.10

2017-05-02 Thread Bjorn Helgaas
On Tue, May 02, 2017 at 12:49:29PM +0200, Lukas Wunner wrote: > On Mon, May 01, 2017 at 10:41:20PM -0400, Sinan Kaya wrote: > > On 5/1/2017 9:54 PM, Lukas Wunner wrote: > > > (b) ASPM L1 enabled on boot, but disabled after powering off and back on > > > => I believe Sinan is working on this (+c

[PATCH 1/4] ima: extend the "ima_policy" boot command line to support multiple policies

2017-05-02 Thread Mimi Zohar
Add support for providing multiple builtin policies on the "ima_policy=" boot command line. Use "|" as the delimitor separating the policy names. Signed-off-by: Mimi Zohar --- Documentation/admin-guide/kernel-parameters.txt | 17 +++-- security/integrity/ima/ima_policy.c

Re: [PATCH] drm/rockchip: analogix_dp: Remove unused check and variables

2017-05-02 Thread Sean Paul
On Sat, Apr 29, 2017 at 08:39:07PM +0800, Jeffy Chen wrote: > Remove unused check and variables after: > drm/rockchip: Set line flag config register in vop_crtc_enable > > Signed-off-by: Jeffy Chen > > --- Applied to -misc-next, thanks. Sean > > drivers/gpu/drm/rockchip/analogix_dp-rockchip

Re: [PATCH] arm64: Fix multiple 'asm-operand-widths' warnings

2017-05-02 Thread Matthias Kaehlcke
Hi, El Tue, May 02, 2017 at 06:29:48PM +0100 Mark Rutland ha dit: > On Mon, May 01, 2017 at 02:26:22PM -0700, Matthias Kaehlcke wrote: > > diff --git a/arch/arm64/include/asm/uaccess.h > > b/arch/arm64/include/asm/uaccess.h > > index 5308d696311b..7db143689694 100644 > > --- a/arch/arm64/include

[PATCH] bonding: Use seq_putc() in bond_info_show_master()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 20:48:36 +0200 A few single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/bonding/bond_procfs.c | 6 ++

Re: [PATCH v8 05/10] media: venus: adding core part and helper functions

2017-05-02 Thread Bjorn Andersson
On Tue 02 May 01:52 PDT 2017, Stanimir Varbanov wrote: > Hei Sakari, > > On 04/30/2017 01:21 AM, Sakari Ailus wrote: > > Hi, Stan!! > > > > On Fri, Apr 28, 2017 at 12:13:52PM +0300, Stanimir Varbanov wrote: > > ... > >> +int helper_get_bufreq(struct venus_inst *inst, u32 type, > >> +

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 16:59:30, Laurent Dufour wrote: > On 28/04/2017 15:48, Michal Hocko wrote: [...] > > This is getting quite hairy. What is the expected page count of the > > hwpoison page? OK, so from the quick check of the hwpoison code it seems that the ref count will be > 1 (from get_hwpoison_pa

Re: [PATCH v6 07/23] drivers/fsi: Implement slave initialisation

2017-05-02 Thread Christopher Bostic
On 5/2/17 1:24 AM, Joel Stanley wrote: On Tue, Apr 11, 2017 at 5:16 AM, Christopher Bostic wrote: From: Jeremy Kerr Implement fsi_slave_init: if we can read a chip ID, create fsi_slave devices and register with the driver core. Includes changes from Chris Bostic . Signed-off-by: Jeremy Ke

Re: [PATCH 09/24] kexec_file: Disable at runtime if securelevel has been set

2017-05-02 Thread Mimi Zohar
Hi David, On Mon, 2017-04-10 at 14:19 +0100, David Howells wrote: > Mimi Zohar wrote: > > > From an IMA perspective, either a file hash or signature are valid, > > but for this usage it must be a signature. > > Not necessarily. If IMA can guarantee that a module is the same based on its > hash

Re: [PATCH net v2] net: hns: fix ethtool_get_strings overflow in hns driver

2017-05-02 Thread David Miller
From: Timmy Li Date: Tue, 2 May 2017 10:46:52 +0800 > hns_get_sset_count() returns HNS_NET_STATS_CNT and the data space allocated > is not enough for ethtool_get_strings(), which will cause random memory > corruption. > > When SLAB and DEBUG_SLAB are both enabled, memory corruptions like the > t

[GIT PULL] HID for 4.12

2017-05-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID subsystem updates for 4.12 Thanks. = - the need for HID_QUIRK_NO_INIT_REPORTS per-device quirk has been growing dramatically during past years, so the time has come to switch o

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Guenter Roeck
On Tue, May 02, 2017 at 11:09:40AM -0700, Darren Hart wrote: > On Tue, May 02, 2017 at 02:04:03PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the drivers-x86 tree got a conflict in: > > > > drivers/watchdog/iTCO_wdt.c > > > > between commit: > > > > 38a700

Re: [RFC PATCH 3/3] hwmon: (adt7475) temperature smoothing

2017-05-02 Thread Guenter Roeck
On Tue, May 02, 2017 at 05:45:36PM +1200, Chris Packham wrote: > When enabled temperature smoothing allows ramping the fan speed over a > configurable period of time instead of jumping to the new speed > instantaneously. > > Signed-off-by: Chris Packham > --- > Documentation/hwmon/adt7475 | 5

[GIT PULL] trivial for 4.12

2017-05-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial.git for-linus to receive trivial tree updates for 4.12 Andrew F. Davis (2): UBI: Fix typos net: phy: dp83848: Fix Typo Chijun Sima

[GIT PULL] livepatching for 4.12

2017-05-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus to receive live patching updates for 4.12 merge window. Notice (not to go into the merge log): all the patches that are touching other code (especially arch-specific) have been Reviewed/Ac

Re: [PATCH v8 01/10] firmware: qcom_scm: Fix to allow COMPILE_TEST-ing

2017-05-02 Thread Bjorn Andersson
On Fri 28 Apr 02:13 PDT 2017, Stanimir Varbanov wrote: > Unfortunatly previous attempt to allow consumer drivers to > use COMPILE_TEST option in Kconfig is not enough, because in the > past the consumer drivers used 'depends on' Kconfig option but > now they are using 'select' Kconfig option which

Re: [PATCH v2] stmmac: Add support for SIMATIC IOT2000 platform

2017-05-02 Thread David Miller
From: Jan Kiszka Date: Tue, 2 May 2017 09:58:00 +0200 > The IOT2000 is industrial controller platform, derived from the Intel > Galileo Gen2 board. The variant IOT2020 comes with one LAN port, the > IOT2040 has two of them. They can be told apart based on the board asset > tag in the DMI table. >

Re: [PATCH 0/9] net: thunderx: Adds XDP support

2017-05-02 Thread David Miller
From: sunil.kovv...@gmail.com Date: Tue, 2 May 2017 18:36:49 +0530 > From: Sunil Goutham > > This patch series adds support for XDP to ThunderX NIC driver > which is used on CN88xx, CN81xx and CN83xx platforms. > > Patches 1-4 are performance improvement and cleanup patches > which are done k

Re: [RFC] AT_NO_JUMPS/LOOKUP_NO_JUMPS

2017-05-02 Thread Pavel Machek
On Sun 2017-03-19 17:24:15, Al Viro wrote: > Bringing back an old conversation - what do you think about the > potential usefulness of the following ...at() option: > * no mountpoint crossings allowed (mount --bind included) Returning error or returning the object that should be hidden

Re: [PATCH 1/2] sched/fair: Fix how load gets propagated from cfs_rq to its sched_entity

2017-05-02 Thread Tejun Heo
Hello, Peter. Your changes need the following fix patch. With the fix and "sched/fair: Always propagate runnable_load_avg" applied, it seems to work fine. The propagated number is a bit different but I don't see noticeable difference in behavior and the new number seems to better represent what

[PATCH v2] iio: adc: Add support for TI ADC1x8s102

2017-05-02 Thread Jan Kiszka
This is an upstream port of an IIO driver for the TI ADC108S102 and ADC128S102. The former can be found on the Intel Galileo Gen2 and the Siemens SIMATIC IOT2000. For those boards, ACPI-based enumeration is included. Original author: Bogdan Pricop Ported from Intel Galileo Gen2 BSP to Intel Yocto

[PATCH 0/3] GPU-DRM-Radeon: Fine-tuning for three function implementations

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 22:00:02 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use seq_putc() in radeon_sa_bo_dump_debug_info() Use seq_puts() in radeon_debugfs_pm_info() Use seq_puts() in r100_debugfs_cp_csq

Re: [RFC PATCH 8/9] debugfs: defer debugfs_fsdata allocation to first usage

2017-05-02 Thread Nicolai Stange
On Tue, Apr 18 2017, Johannes Berg wrote: > On Sun, 2017-04-16 at 11:51 +0200, Nicolai Stange wrote: >> >> +++ b/fs/debugfs/file.c >> @@ -53,6 +53,7 @@ const struct file_operations >> *debugfs_real_fops(const struct file *filp) >>  { >>  struct debugfs_fsdata *fsd = F_DENTRY(filp)->d_fsdata;

[PATCH 1/3] GPU-DRM-Radeon: Use seq_putc() in radeon_sa_bo_dump_debug_info()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 21:35:48 +0200 A few single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/radeon/radeon_sa.c | 9 +

Re: [PATCH 2/2] iio: adc: Fix bad GENMASK use, typos, whitespace

2017-05-02 Thread Andrew F. Davis
On 05/01/2017 06:19 AM, Stefan Brüns wrote: > Commit 7906dd52c5a0 ("iio: ina2xx: Fix whitespace and re-order code") > changed the register number of the MASK_ENABLE register from 0x06 to the > value equivalent GENMASK(2,1), although its no mask. > Also fix a typo (INA2_6_6 instead of INA2_2_6), and

[PATCH 2/3] GPU-DRM-Radeon: Use seq_puts() in radeon_debugfs_pm_info()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 21:50:14 +0200 Two strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- dri

[PATCH 3/3] GPU-DRM-Radeon: Use seq_puts() in r100_debugfs_cp_csq_fifo()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 21:54:49 +0200 Strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers

Re: [PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-02 Thread Jon Hunter
On 02/05/17 18:43, Laxman Dewangan wrote: > > On Tuesday 02 May 2017 08:53 PM, Jon Hunter wrote: >> On 02/05/17 15:05, Laxman Dewangan wrote: >>> The PWM hardware IP is taped-out with different maximum frequency >>> on different SoCs. >>> >>> From HW team: >>> Before Tegra186, it is 38.4MHz.

WARNING: CPU: 2 PID: 23409 at mm/filemap.c:260 __delete_from_page_cache+0x5fc/0x610

2017-05-02 Thread Dave Jones
Just hit this on Linus tree pulled this afternoon. WARNING: CPU: 2 PID: 23409 at mm/filemap.c:260 __delete_from_page_cache+0x5fc/0x610 CPU: 2 PID: 23409 Comm: trinity-c1 Not tainted 4.11.0-think+ #4 Call Trace: dump_stack+0x68/0x93 __warn+0xcb/0xf0 warn_slowpath_null+0x1d/0x20 __delete_from_

[ANNOUNCE] Jailhouse 0.7 released

2017-05-02 Thread Jan Kiszka
We are happy to announce a new version of the partitioning hypervisor Jailhouse. It's a smaller update than the last release, 86 patches (105 files changed, 2420 insertions, 1155 deletions), mostly fixing smaller issues and adding few features, also nothing major. Key changes since the last releas

Re: [PATCH man-pages 1/2] userfaultfd.2: start documenting non-cooperative events

2017-05-02 Thread Michael Kerrisk (man-pages)
On 05/02/2017 11:22 AM, Mike Rapoport wrote: > On Mon, May 01, 2017 at 08:34:16PM +0200, Michael Kerrisk (man-pages) wrote: >> Hi Mike, >> >> On 04/28/2017 11:45 AM, Mike Rapoprt wrote: >>> >>> >>> On April 27, 2017 8:26:16 PM GMT+03:00, "Michael Kerrisk (man-pages)" >>> wrote: Hi Mike,

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Darren Hart
On Tue, May 02, 2017 at 12:12:17PM -0700, Guenter Roeck wrote: > On Tue, May 02, 2017 at 11:09:40AM -0700, Darren Hart wrote: > > On Tue, May 02, 2017 at 02:04:03PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > Today's linux-next merge of the drivers-x86 tree got a conflict in: > > > >

Re: [PATCHv3 2/3] drm/prime: Introduce drm_gem_prime_import_platform

2017-05-02 Thread Chris Wilson
On Tue, May 02, 2017 at 10:02:07AM -0700, Laura Abbott wrote: > The existing drm_gem_prime_import function uses the underlying > struct device of a drm_device for attaching to a dma_buf. Some drivers > (notably vgem) may not have an underlying device structure. Offer > an alternate function to atta

Re: [PATCH man-pages 1/5] ioctl_userfaultfd.2: update description of shared memory areas

2017-05-02 Thread Michael Kerrisk (man-pages)
On 05/02/2017 11:31 AM, Mike Rapoport wrote: > On Mon, May 01, 2017 at 08:33:31PM +0200, Michael Kerrisk (man-pages) wrote: >> Hello Mike, >> >> I've applied this patch, but have a question. >> >> On 05/01/2017 07:43 AM, Mike Rapoport wrote: >>> Signed-off-by: Mike Rapoport >>> --- >>> man2/ioct

Re: [PATCH 2/4] PCI: add functionality for resizing resources v3

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 6:51 PM, Christian König wrote: > Am 26.04.2017 um 19:00 schrieb Andy Shevchenko: >> On Tue, Apr 25, 2017 at 4:19 PM, Christian König >> wrote: >>> +int pci_reassign_bridge_resources(struct pci_dev *bridge, unsigned long >>> type) >>> +{ >>> + const unsigned long typ

[PATCH] arm64: Add translation functions for /dev/mem read/write

2017-05-02 Thread Sameer Goel
Port architecture specific xlate and unxlate functions for /dev/mem read/write. This sets up the mapping for a valid physical address if a kernel direct mapping is not already present. This is a generic issue as a user space app should not be allowed to crash the kernel. This issue was observed wh

Re: [PATCH man-pages 4/5] userfaultfd.2: add note about asynchronios events delivery

2017-05-02 Thread Michael Kerrisk (man-pages)
On 05/02/2017 11:46 AM, Mike Rapoport wrote: > On Mon, May 01, 2017 at 08:33:45PM +0200, Michael Kerrisk (man-pages) wrote: >> Hi Mike, >> >> On 05/01/2017 07:43 AM, Mike Rapoport wrote: >>> Signed-off-by: Mike Rapoport >> >> Thanks. Applied. One question below. >> >>> --- >>> man2/userfaultfd.2

Re: [PATCH man-pages 0/5] {ioctl_}userfaultfd.2: yet another update

2017-05-02 Thread Michael Kerrisk (man-pages)
On 05/02/2017 11:48 AM, Mike Rapoport wrote: > On Mon, May 01, 2017 at 08:34:07PM +0200, Michael Kerrisk (man-pages) wrote: >> Hi Mike, >> >> On 05/01/2017 07:43 AM, Mike Rapoport wrote: >>> Hi Michael, >>> >>> These updates pretty much complete the coverage of 4.11 additions, IMHO. >> >> Thanks fo

Re: [RFC PATCH 3/3] hwmon: (adt7475) temperature smoothing

2017-05-02 Thread Chris Packham
On 03/05/17 07:14, Guenter Roeck wrote: > On Tue, May 02, 2017 at 05:45:36PM +1200, Chris Packham wrote: >> When enabled temperature smoothing allows ramping the fan speed over a >> configurable period of time instead of jumping to the new speed >> instantaneously. >> >> Signed-off-by: Chris Packha

Re: [patch v2] mm, vmscan: avoid thrashing anon lru when free + file is low

2017-05-02 Thread David Rientjes
On Tue, 2 May 2017, Michal Hocko wrote: > I have already asked and my questions were ignored. So let me ask again > and hopefuly not get ignored this time. So Why do we need a different > criterion on anon pages than file pages? The preference in get_scan_count() as already implemented is to recl

Re: [PATCH] userns,pidns: Verify the userns for new pid namespaces

2017-05-02 Thread Eric W. Biederman
Kirill Tkhai writes: >>> diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c >>> index 2f735cbe05e8..7d8658fbabc8 100644 >>> --- a/kernel/user_namespace.c >>> +++ b/kernel/user_namespace.c >>> @@ -986,19 +986,25 @@ bool userns_may_setgroups(const struct user_namespace >>> *ns) >>> } >

[usb-gadget-udc] question about null check after calling phys_to_virt() function

2017-05-02 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 145958 I ran into the following piece of code at drivers/usb/gadget/udc/amd5536udc.c:852: } else if (i == buf_len) { /* first td */ td = (struct udc_data_dma *)phys_to_virt( req->td_data->next);

Re: [RFC] AT_NO_JUMPS/LOOKUP_NO_JUMPS

2017-05-02 Thread Al Viro
On Tue, May 02, 2017 at 09:57:40PM +0200, Pavel Machek wrote: > On Sun 2017-03-19 17:24:15, Al Viro wrote: > > Bringing back an old conversation - what do you think about the > > potential usefulness of the following ...at() option: > > * no mountpoint crossings allowed (mount --bind includ

Re: [PATCH v2] iio: adc: Add support for TI ADC1x8s102

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 11:02 PM, Jan Kiszka wrote: > This is an upstream port of an IIO driver for the TI ADC108S102 and > ADC128S102. The former can be found on the Intel Galileo Gen2 and the > Siemens SIMATIC IOT2000. For those boards, ACPI-based enumeration is > included. > > Original author: B

Re: [RESENT PATCH] x86/mem: fix the offset overflow when read/write mem

2017-05-02 Thread David Rientjes
On Thu, 27 Apr 2017, zhongjiang wrote: > From: zhong jiang > > Recently, I found the following issue, it will result in the panic. > > [ 168.739152] mmap1: Corrupted page table at address 7f3e6275a002 > [ 168.745039] PGD 61f4a1067 > [ 168.745040] PUD 61ab19067 > [ 168.747730] PMD 61fb8b067

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-02 Thread Tejun Heo
Hello, Vincent. On Tue, May 02, 2017 at 08:56:52AM +0200, Vincent Guittot wrote: > On 28 April 2017 at 18:14, Tejun Heo wrote: > > I'll follow up in the other subthread but there really is fundamental > > difference in how we calculate runnable_avg w/ and w/o cgroups. > > Indepndent of whether we

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 11:21 PM, Darren Hart wrote: > On Tue, May 02, 2017 at 12:12:17PM -0700, Guenter Roeck wrote: >> On Tue, May 02, 2017 at 11:09:40AM -0700, Darren Hart wrote: >> > On Tue, May 02, 2017 at 02:04:03PM +1000, Stephen Rothwell wrote: > From my perspective, the most direct soluti

[PATCH 1/2] remoteproc: Introduce rproc_{start,stop}() functions

2017-05-02 Thread Sarangdhar Joshi
In the context of recovering from crash, rproc_trigger_recovery() does rproc_shutdown() followed by rproc_boot(). The remoteproc resources are cleaned up in rproc_shutdown() and immediately reallocated in rproc_boot() which is an unnecessary overhead. Furthermore, we want the memory regions to be

[PATCH 2/2] remoteproc: Rearrange code to avoid duplication

2017-05-02 Thread Sarangdhar Joshi
Lot of code from rproc_fw_boot() and rproc_shutdown() has been duplicated in rproc_start() and rproc_stop() respectively. Refactor the code, so that rproc_start() and rproc_stop() can be called from boot up and shutdown path directly, instead of having the unnecessary duplication of code. Signed-o

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 3:15 PM, Eva Rachel Retuya wrote: > On Mon, May 01, 2017 at 02:31:00PM +0300, Andy Shevchenko wrote: > [...] >> > -int adxl345_core_probe(struct device *dev, struct regmap *regmap, >> > +int adxl345_core_probe(struct device *dev, struct regmap *regmap, int irq, >> >

Re: [PATCH 2/2] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-05-02 Thread Eric W. Biederman
Kirill Tkhai writes: > On 02.05.2017 19:33, Oleg Nesterov wrote: >> sorry for delay, vacation... >> >> On 04/28, Kirill Tkhai wrote: >>> >>> On 27.04.2017 19:22, Oleg Nesterov wrote: Ah, OK, I didn't notice the ns->child_reaper check in pidns_for_children_get(). But not

Re: [PATCH v4] fpga manager: Add Altera CvP driver

2017-05-02 Thread Andy Shevchenko
On Tue, May 2, 2017 at 12:53 PM, Anatolij Gustschin wrote: > On Mon, 1 May 2017 23:06:16 +0300 > Andy Shevchenko andy.shevche...@gmail.com wrote: >>On Sun, Apr 30, 2017 at 10:08 PM, Anatolij Gustschin wrote: >>> +#define VSEC_CVP_MODE_CTRL (VSEC_OFFSET + 0x20)/* 32bit */ >>> +#de

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Darren Hart
On Tue, May 02, 2017 at 11:57:18PM +0300, Andy Shevchenko wrote: > On Tue, May 2, 2017 at 11:21 PM, Darren Hart wrote: > > On Tue, May 02, 2017 at 12:12:17PM -0700, Guenter Roeck wrote: > >> On Tue, May 02, 2017 at 11:09:40AM -0700, Darren Hart wrote: > >> > On Tue, May 02, 2017 at 02:04:03PM +100

Re: [PATCH v3] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-05-02 Thread Eric W. Biederman
Kirill Tkhai writes: > On 29.04.2017 22:12, Eric W. Biederman wrote: >> Kirill Tkhai writes: >> >>> On 27.04.2017 19:07, Eric W. Biederman wrote: Kirill Tkhai writes: > On 27.04.2017 18:15, Eric W. Biederman wrote: >> Kirill Tkhai writes: >> >>> On implementing of ne

Re: [PATCH RFC] hugetlbfs 'noautofill' mount option

2017-05-02 Thread Dave Hansen
On 05/01/2017 11:00 AM, Prakash Sangappa wrote: > This patch adds a new hugetlbfs mount option 'noautofill', to indicate that > pages should not be allocated at page fault time when accessed thru mmapped > address. I think the main argument against doing something like this is further specializing

Re: [PATCH 0/6] md: Fine-tuning for some function implementations

2017-05-02 Thread NeilBrown
On Tue, May 02 2017, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 2 May 2017 16:12:34 +0200 > > Some update suggestions were taken into account > from static source code analysis. > > Markus Elfring (6): > Replace seven seq_printf() calls by seq_putc() > Replace 17 seq_printf(

Re: [PATCH] x86: kvm: Avoid guest page table walk when gpa_available is set

2017-05-02 Thread Brijesh Singh
Hi Paolo, I've tried the below patch and it seems to work fine. This does not consider PIO case and as you rightly pointed PIO should trigger #NPF relatively rarely. At least so far in my runs I have not seen PIO causing #NPF. If this sounds acceptable approach then I can submit v2 with these c

Re: [PATCH] bitops.h: use BITS_PER_LONG to simplify BITS_TO_LONGS

2017-05-02 Thread NeilBrown
On Tue, May 02 2017, Wei Yang wrote: > Hi, masters > > Not sure this one is acceptable? You'd have better luck getting a response if you post things like this to akpm - he tends to collect miscellaneous bits and pieces. I don't think the patch makes more that a tiny improvement and I wouldn't bot

Re: [PATCH 02/13] blk: replace bioset_create_nobvec() with a flags arg to bioset_create()

2017-05-02 Thread NeilBrown
On Tue, May 02 2017, Christoph Hellwig wrote: >> diff --git a/include/linux/bio.h b/include/linux/bio.h >> index d1b04b0e99cf..0975da6bebd9 100644 >> --- a/include/linux/bio.h >> +++ b/include/linux/bio.h >> @@ -373,8 +373,10 @@ static inline struct bio *bio_next_split(struct bio >> *bio, int sec

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-02 Thread Tejun Heo
Hello, On Tue, May 02, 2017 at 09:18:53AM +0200, Vincent Guittot wrote: > > dbg_odd: odd: dst=28 idle=2 brk=32 lbtgt=0-31 type=2 > > dbg_odd_dump: A: grp=1,17 w=2 avg=7.247 grp=8.337 sum=8.337 pertask=2.779 > > dbg_odd_dump: A: gcap=1.150 gutil=1.095 run=3 idle=0 gwt=2 type=2 nocap=1 > > dbg_o

Re: [PATCH 09/13] lightnvm/pblk-read: use bio_clone_fast()

2017-05-02 Thread NeilBrown
On Tue, May 02 2017, Javier González wrote: >> On 2 May 2017, at 05.42, NeilBrown wrote: >> >> pblk_submit_read() uses bio_clone_bioset() but doesn't change the >> io_vec, so bio_clone_fast() is a better choice. >> >> It also uses fs_bio_set which is intended for filesystems. Using it >> in a

Re: [GIT PULL] TTY/Serial driver fixes for 4.11-rc4

2017-05-02 Thread Vegard Nossum
On 2 May 2017 at 18:35, Dmitry Vyukov wrote: > On Fri, Apr 14, 2017 at 2:30 PM, Greg KH wrote: >> On Fri, Apr 14, 2017 at 11:41:26AM +0200, Vegard Nossum wrote: >>> On 13 April 2017 at 20:34, Greg KH wrote: >>> > On Thu, Apr 13, 2017 at 09:07:40AM -0700, Linus Torvalds wrote: >>> >> On Thu, Apr

Re: [RFC PATCH 0/4] PM / Domains: Add support for explicit control of PM domains

2017-05-02 Thread Rafael J. Wysocki
On Tuesday, May 02, 2017 11:10:29 AM Jon Hunter wrote: > > On 25/04/17 22:17, Rafael J. Wysocki wrote: > > On Tue, Apr 25, 2017 at 9:34 PM, Ulf Hansson wrote: > >> On 25 April 2017 at 13:13, Jon Hunter wrote: > >>> > >>> On 28/03/17 15:13, Jon Hunter wrote: > The current generic PM domain f

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Guenter Roeck
On Tue, May 02, 2017 at 02:30:46PM -0700, Darren Hart wrote: > On Tue, May 02, 2017 at 11:57:18PM +0300, Andy Shevchenko wrote: > > On Tue, May 2, 2017 at 11:21 PM, Darren Hart wrote: > > > On Tue, May 02, 2017 at 12:12:17PM -0700, Guenter Roeck wrote: > > >> On Tue, May 02, 2017 at 11:09:40AM -07

[PATCH] sound: core: move exports next to corresponding symbols

2017-05-02 Thread Seraphime Kirkovski
With this patch all files in sound/core export symbols next to their definition, as the kernel coding style mandates. Signed-off-by: Seraphime Kirkovski --- sound/core/memalloc.c | 14 -- sound/core/seq/seq_midi_emul.c | 9 - sound/core/seq/seq_midi_event.c | 21 +

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-02 Thread Tejun Heo
Hello, On Mon, May 01, 2017 at 05:56:13PM +0200, Peter Zijlstra wrote: > On Fri, Apr 28, 2017 at 04:33:47PM -0400, Tejun Heo wrote: > > I'm attaching the debug patch. With your change (avg instead of > > runnable_avg), the following trace shows why it's wrong. > > Ah, OK. So you really want runn

Re: [PATCH 03/13] blk: make the bioset rescue_workqueue optional.

2017-05-02 Thread NeilBrown
On Tue, May 02 2017, Ming Lei wrote: > On Tue, May 02, 2017 at 01:42:24PM +1000, NeilBrown wrote: >> This patch converts bioset_create() and >> bioset_create_nobvec() to not create a workqueue so >> alloctions will never trigger punt_bios_to_rescuer(). It >> also introduces bioset_create_rescued(

linux-next: manual merge of the kbuild tree with Linus' tree

2017-05-02 Thread Stephen Rothwell
Hi Masahiro, Today's linux-next merge of the kbuild tree got a conflict in: arch/avr32/include/uapi/asm/Kbuild between commit: 26202873bb51 ("avr32: remove support for AVR32 architecture") from Linus' tree and commit: 65017bab8a9e ("uapi: export all headers under uapi directories") fro

Re: [PATCH v2 2/3] firmware: google: memconsole: Escape unprintable characters

2017-05-02 Thread Julius Werner
> Binary sysfs files are supposed to be "pass through" only, the kernel > should not be touching the data at all, it's up to userspace to do what > it wants to do with things. So don't escape anything at all, that's not > the kernel's job here. Okay, I'll drop this patch.

[PATCH 1/2] firmware: google: memconsole: Make memconsole interface more flexible

2017-05-02 Thread Julius Werner
This patch redesigns the interface between the generic memconsole driver and its implementations to become more flexible than a flat memory buffer with unchanging bounds. This allows memconsoles like coreboot's to include lines that were added by runtime firmware after the driver was initialized. S

[PATCH v3 0/2] Memconsole changes for new coreboot format

2017-05-02 Thread Julius Werner
This series enhances the memconsole driver to work well with the new persistent ring buffer console introduced in coreboot with https://review.coreboot.org/#/c/18301. It needs to be applied on top of the other memconsole patches currently queued up in char-misc-next (ending in 049a59db34e). Julius

[PATCH 2/2] firmware: google: memconsole: Adapt to new coreboot ring buffer format

2017-05-02 Thread Julius Werner
The upstream coreboot implementation of memconsole was enhanced from a single-boot console to a persistent ring buffer (https://review.coreboot.org/#/c/18301). This patch changes the kernel memconsole driver to be able to read the new format in all cases. Signed-off-by: Julius Werner --- drivers

[PATCH -next] soc/qbman: fix implicit header dependency now causing build fails

2017-05-02 Thread Paul Gortmaker
In commit 461a6946b1f9 ("iommu: Remove pci.h include from trace/events/iommu.h") that header shuffle uncovered an implicit include in this driver, manifesting as: CC drivers/soc/fsl/qbman/qman_portal.o drivers/soc/fsl/qbman/qman_portal.c: In function 'qman_portal_probe': drivers/s

[PATCH v2 6/6] Documentation/dev-tools: Add kselftest_harness documentation

2017-05-02 Thread Mickaël Salaün
Add metadata to kselftest_harness.h to be able to include the comments in the Sphinx documentation. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Jonathan Corbet Cc: Kees Cook Cc: Shuah Khan Cc: Will Drewry --- Documentation/dev-tools/kselftest.rst | 57 ++ tools/testing/

[PATCH v2 2/6] selftests: Cosmetic renames in kselftest_harness.h

2017-05-02 Thread Mickaël Salaün
Keep the content consistent with the new name. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Kees Cook Cc: Shuah Khan Cc: Will Drewry --- tools/testing/selftests/kselftest_harness.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftest

[PATCH v2 1/6] selftests: Make test_harness.h more generally available

2017-05-02 Thread Mickaël Salaün
The seccomp/test_harness.h file contains useful helpers to build tests. Moving it to the selftest directory should benefit to other test components. Keep seccomp maintainers for this file. Changes since v1: * rename to kselftest_harness.h (suggested by Shuah Khan) * keep maintainers Signed-off-b

[PATCH v2 3/6] selftests/seccomp: Force rebuild according to dependencies

2017-05-02 Thread Mickaël Salaün
Rebuild the seccomp tests when kselftest_harness.h is updated. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Kees Cook Cc: Shuah Khan Cc: Will Drewry --- tools/testing/selftests/seccomp/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/seccomp/Mak

[PATCH v2 0/6] Add kselftest_harness.h

2017-05-02 Thread Mickaël Salaün
Hi, This second patch series make the seccomp/test_harness.h more generally available [1] and update the kselftest documentation with the Sphinx format. It also improve the Makefile of seccomp tests to take into account any kselftest_harness.h update. [1] https://lkml.kernel.org/r/CAGXu5j+8CVz8v

[PATCH v2 5/6] Documentation/dev-tools: Use reStructuredText markups for kselftest

2017-05-02 Thread Mickaël Salaün
Include and convert kselftest to the Sphinx format. Signed-off-by: Mickaël Salaün Cc: Jonathan Corbet Cc: Shuah Khan --- Documentation/dev-tools/index.rst | 1 + Documentation/dev-tools/kselftest.rst | 77 --- 2 files changed, 55 insertions(+), 23 deletions

[PATCH v2 4/6] Documentation/dev-tools: Add kselftest

2017-05-02 Thread Mickaël Salaün
Move kselftest.txt to dev-tools/kselftest.rst . Signed-off-by: Mickaël Salaün Cc: Jonathan Corbet Cc: Shuah Khan --- Documentation/00-INDEX | 2 -- Documentation/{kselftest.txt => dev-tools/kselftest.rst} | 0 2 files changed, 2 deletions(-) rename Documentat

[PATCH 03/13 V2] blk: make the bioset rescue_workqueue optional.

2017-05-02 Thread NeilBrown
From 09017acf74ec4df674b78ca66f0924187f10d8a4 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 10 Mar 2017 13:59:50 +1100 Subject: [PATCH] blk: make the bioset rescue_workqueue optional. This patch converts bioset_create() to not create a workqueue by default, so alloctions will never trigger

Re: linux-next: manual merge of the drivers-x86 tree with the watchdog tree

2017-05-02 Thread Darren Hart
On Tue, May 02, 2017 at 02:58:22PM -0700, Guenter Roeck wrote: > On Tue, May 02, 2017 at 02:30:46PM -0700, Darren Hart wrote: > > On Tue, May 02, 2017 at 11:57:18PM +0300, Andy Shevchenko wrote: > > > On Tue, May 2, 2017 at 11:21 PM, Darren Hart wrote: > > > > On Tue, May 02, 2017 at 12:12:17PM -0

Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg

2017-05-02 Thread Tejun Heo
Hello, Vincent. On Tue, May 02, 2017 at 03:26:12PM +0200, Vincent Guittot wrote: > > IMHO, we should better improve load balance selection. I'm going to > > add smarter group selection in load_balance. that's something we > > should have already done but it was difficult without load/util_avg > >

Re: [PATCH v8 1/5] x86: add simple udelay calibration

2017-05-02 Thread Boris Ostrovsky
On 03/21/2017 04:01 AM, Lu Baolu wrote: > Add a simple udelay calibration in x86 architecture-specific > boot-time initializations. This will get a workable estimate > for loops_per_jiffy. Hence, udelay() could be used after this > initialization. This breaks Xen PV guests since at this point, and

<    1   2   3   4   5   6   7   >