Re: [GIT PULL] KVM fixes for 4.10 merge window

2016-12-17 Thread Paolo Bonzini
> On Fri, Dec 16, 2016 at 8:57 AM, Paolo Bonzini wrote: > > > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus > > This piece-of-shit branch has obviously never been even compile-tested: > > arch/x86/kernel/kvm.c: In function ‘__kvm_vcpu_is_preempted’: > arch/x86/kernel/kvm.

Re: [GIT PULL] KVM fixes for 4.10 merge window

2016-12-17 Thread Paolo Bonzini
- Original Message - > From: "Pan Xinhui" > To: "Linus Torvalds" , "Paolo Bonzini" > > Cc: "Linux Kernel Mailing List" , "Radim > Krčmář" , "KVM list" > > Sent: Saturday, December 17, 2016 4:09:16 AM > Subject: Re: [GIT PULL] KVM fixes for 4.10 merge window > > > > 在 2016/12/17 03

Re: [PATCH] scsi: esas2r: Fix format string type mistakes

2016-12-17 Thread Bart Van Assche
On 12/16/2016 10:50 PM, Kees Cook wrote: > diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c > b/drivers/scsi/esas2r/esas2r_ioctl.c > index 3e8483410f61..34976f9a1a10 100644 > --- a/drivers/scsi/esas2r/esas2r_ioctl.c > +++ b/drivers/scsi/esas2r/esas2r_ioctl.c > @@ -1301,7 +1301,7 @@ int esas2r_ioctl

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Miklos Szeredi
On Sat, Dec 17, 2016 at 12:08 AM, Al Viro wrote: > On Fri, Dec 16, 2016 at 11:48:59PM +0100, Miklos Szeredi wrote: > >> This is a rework of the readlink cleanup patchset from the last cycle. Now >> readlink(2) does the following: >> >> - if i_op->readlink() is non-NULL (only proc and afs mountpo

Re: [PATCH 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-17 Thread Matt Ranostay
On Tue, Dec 13, 2016 at 10:02 AM, Andreas Klinger wrote: > This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting > cells. First off cool that this is finally getting a driver... I'll have to get the SparkFun breakout and really cheap scale to test :). > > The protocol is q

Re: [TSN RFC v2 5/9] Add TSN header for the driver

2016-12-17 Thread Henrik Austad
On Fri, Dec 16, 2016 at 11:09:38PM +0100, Richard Cochran wrote: > On Fri, Dec 16, 2016 at 06:59:09PM +0100, hen...@austad.us wrote: > > +/* > > + * List of current subtype fields in the common header of AVTPDU > > + * > > + * Note: AVTPDU is a remnant of the standards from when it was AVB. > > + *

Re: [GIT PULL] kbuild changes for v4.9-rc1

2016-12-17 Thread Jiri Slaby
On 12/16/2016, 08:57 PM, Linus Torvalds wrote: > On Fri, Dec 16, 2016 at 11:55 AM, Jiri Slaby wrote: >> >> what happened to this? I had to apply this to fix 4.9-pae kernel here. > > Did you actually have to do that? Yes, disk drivers won't load: [2.141973] virtio_pci: disagrees about version

Re: [TSN RFC v2 0/9] TSN driver for the kernel

2016-12-17 Thread Henrik Austad
Hi Richard, On Fri, Dec 16, 2016 at 11:05:30PM +0100, Richard Cochran wrote: > On Fri, Dec 16, 2016 at 06:59:04PM +0100, hen...@austad.us wrote: > > The driver is directed via ConfigFS as we need userspace to handle > > stream-reservation (MSRP), discovery and enumeration (IEEE 1722.1) and > > wha

Re: [PATCH 3.12 00/38] 3.12.69-stable review

2016-12-17 Thread Jiri Slaby
On 12/14/2016, 01:51 AM, Shuah Khan wrote: > Compiled and booted on my test system. No dmesg regressions. On 12/14/2016, 04:42 AM, Guenter Roeck wrote: > Build results: > total: 128 pass: 128 fail: 0 > Qemu test results: > total: 93 pass: 93 fail: 0 > > Details are available at http://kern

Re: Document accounting of FDs passed over UNIX domain sockets

2016-12-17 Thread Michael Kerrisk (man-pages)
Hi Willy, On 12/17/2016 08:04 AM, Willy Tarreau wrote: > Hi Michael, > > On Fri, Dec 16, 2016 at 12:08:33PM +0100, Michael Kerrisk (man-pages) wrote: >> Hello Willy, >> >> Your commit 712f4aad406bb1 ("unix: properly account for FDs passed over >> unix sockets" added accounting to ensure that the

Re: wl1251 NVS calibration data format

2016-12-17 Thread Sebastian Reichel
Hi, On Fri, Dec 16, 2016 at 12:01:48PM +0100, Pali Rohár wrote: > Hi! Do you know format of wl1251 NVS calibration data file? > > I found that there is tool for changing NVS file for wl1271 and newer > chips (so not for wl1251!) at: https://github.com/gxk/ti-utils > > And wl1271 has in NVS data

Re: [GIT PULL] kbuild changes for v4.9-rc1

2016-12-17 Thread Adam Borowski
On Sat, Dec 17, 2016 at 09:57:47AM +0100, Jiri Slaby wrote: > On 12/16/2016, 08:57 PM, Linus Torvalds wrote: > > On Fri, Dec 16, 2016 at 11:55 AM, Jiri Slaby wrote: > >> > >> what happened to this? I had to apply this to fix 4.9-pae kernel here. > > > > Did you actually have to do that? > > Yes,

Re: [PATCH] ALSA: use designated initializers

2016-12-17 Thread Takashi Sakamoto
On Dec 17 2016 09:59, Kees Cook wrote: Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by

Re: Revised request_key(2) man page for review

2016-12-17 Thread Michael Kerrisk (man-pages)
Hello David, On 12/15/2016 11:10 AM, David Howells wrote: > Michael Kerrisk (man-pages) wrote: > >>>│Is 'keyring' allowed to be 0? Reading the source, it │ >>>│appears so. In this case, by default, the key is │ >>>│assigned to the session keyring. But, the

[PATCH] block: loose check on sg gap

2016-12-17 Thread Ming Lei
If the last bvec of the 1st bio and the 1st bvec of the next bio are contineous physically, and the latter can be merged to last segment of the 1st bio, we should think they don't violate sg gap(or virt boundary) limit. Both Vitaly and Dexuan reported lots of unmergeable small bios are observed wh

Re: [PATCH v1 2/2] firmware: dmi_scan: Pass dmi_entry_point to kexec'ed kernel

2016-12-17 Thread Dave Young
On 12/16/16 at 02:18pm, Andy Shevchenko wrote: > On Fri, 2016-12-16 at 10:32 +0800, Dave Young wrote: > > On 12/15/16 at 12:28pm, Jean Delvare wrote: > > > Hi Andy, > > > > > > On Fri,  2 Dec 2016 21:54:16 +0200, Andy Shevchenko wrote: > > > > Until now kexec'ed kernel has no clue where to look fo

Re: [PATCH v1 2/2] firmware: dmi_scan: Pass dmi_entry_point to kexec'ed kernel

2016-12-17 Thread Dave Young
Ccing efi people. On 12/16/16 at 02:33pm, Jean Delvare wrote: > On Fri, 16 Dec 2016 14:18:58 +0200, Andy Shevchenko wrote: > > On Fri, 2016-12-16 at 10:32 +0800, Dave Young wrote: > > > On 12/15/16 at 12:28pm, Jean Delvare wrote: > > > > I am no kexec expert but this confuses me. Shouldn't the sec

Re: wl1251 NVS calibration data format

2016-12-17 Thread Pali Rohár
On Saturday 17 December 2016 10:37:05 Sebastian Reichel wrote: > Hi, > > On Fri, Dec 16, 2016 at 12:01:48PM +0100, Pali Rohár wrote: > > Hi! Do you know format of wl1251 NVS calibration data file? > > > > I found that there is tool for changing NVS file for wl1271 and > > newer chips (so not for

Re: [PATCH 2/2] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2016-12-17 Thread Tetsuo Handa
Michal Hocko wrote: > On Fri 16-12-16 12:31:51, Johannes Weiner wrote: >>> @@ -3737,6 +3752,16 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int >>> order, >>> */ >>> WARN_ON_ONCE(order > PAGE_ALLOC_COSTLY_ORDER); >>> >>> + /* >>> +* Help non-f

Re: [RFC] minimum gcc version for kernel: raise to gcc-4.3 or 4.6?

2016-12-17 Thread Sebastian Andrzej Siewior
On 2016-12-16 23:00:27 [+0100], Arnd Bergmann wrote: > On Friday, December 16, 2016 6:00:43 PM CET Sebastian Andrzej Siewior wrote: > > On 2016-12-16 11:56:21 [+0100], Arnd Bergmann wrote: > > > The original gcc-4.3 release was in early 2008. If we decide to still > > > support that, we probably wa

[PATCH] drivers: remoteproc: constify rproc_ops structures

2016-12-17 Thread Bhumika Goyal
Declare rproc_ops structures as const as they are only passed as an argument to the function rproc_alloc. This argument is of type const, so rproc_ops structures having this property can be declared const too. Done using Coccinelle: @r1 disable optional_qualifier @ identifier i; position p; @@ sta

Re: [PATCH 32/60] block: implement sp version of bvec iterator helpers

2016-12-17 Thread Ming Lei
Hi Guys, On Sat, Oct 29, 2016 at 7:06 PM, kbuild test robot wrote: > Hi Ming, Thanks for the report! > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.9-rc2 next-20161028] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the sy

[tip:x86/urgent] x86/mpx: Move bd_addr to mm_context_t

2016-12-17 Thread tip-bot for Mark Rutland
Commit-ID: cb02de96ec724b84373488dd349e53897ab432f5 Gitweb: http://git.kernel.org/tip/cb02de96ec724b84373488dd349e53897ab432f5 Author: Mark Rutland AuthorDate: Fri, 16 Dec 2016 12:40:55 + Committer: Thomas Gleixner CommitDate: Sat, 17 Dec 2016 12:29:56 +0100 x86/mpx: Move bd_addr t

RE: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-12-17 Thread Li, Liang Z
> On Fri, Dec 16, 2016 at 01:12:21AM +, Li, Liang Z wrote: > > There still exist the case if the MAX_ORDER is configured to a large > > value, e.g. 36 for a system with huge amount of memory, then there is only > 28 bits left for the pfn, which is not enough. > > Not related to the balloon but

Re: [PATCH] staging: android: ion: return -ENOMEM in ion_cma_heap allocation failure

2016-12-17 Thread Jaewon Kim
2016-12-14 1:04 GMT+09:00 Laura Abbott : > On 12/08/2016 09:05 PM, Jaewon Kim wrote: >> Initial Commit 349c9e138551 ("gpu: ion: add CMA heap") returns -1 in >> allocation >> failure. The returned value is passed up to userspace through ioctl. So user >> can >> misunderstand error reason as -EPERM

Re: wl1251 NVS calibration data format

2016-12-17 Thread Sebastian Reichel
Hi, On Sat, Dec 17, 2016 at 12:14:50PM +0100, Pali Rohár wrote: > On Saturday 17 December 2016 10:37:05 Sebastian Reichel wrote: > > On Fri, Dec 16, 2016 at 12:01:48PM +0100, Pali Rohár wrote: > > > Hi! Do you know format of wl1251 NVS calibration data file? > > > > > > I found that there is tool

Re: netfilter regression causes lost pings "operation not permitted"

2016-12-17 Thread Florian Westphal
Trevor Cordes wrote: Sorry for late reply. > On 2016-12-07 Trevor Cordes wrote: > > Bisected down to: > > 870190a9ec9075205c0fa795a09fa931694a3ff1 > > 7c9664351980aaa6a4b8837a314360b3a4ad382a > > Oh! I forgot to mention the most important point: iptable_nat module > MUST be loaded for the bug

RE: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-12-17 Thread Li, Liang Z
> Subject: Re: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for > fast (de)inflating & fast live migration > > On Thu, Dec 15, 2016 at 05:40:45PM -0800, Dave Hansen wrote: > > On 12/15/2016 05:38 PM, Li, Liang Z wrote: > > > > > > Use 52 bits for 'pfn', 12 bits for 'length', when the 1

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-17 Thread George Spelvin
BTW, here's some SipHash code I wrote for Linux a while ago. My target application was ext4 directory hashing, resulting in different implementation choices, although I still think that a rolled-up implementation like this is reasonable. Reducing I-cache impact speeds up the calling code. One th

Re: [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB device controller

2016-12-17 Thread Sergio Prado
On Tue, Dec 13, 2016 at 12:59:15PM -0600, Rob Herring wrote: > > +Samsung S3C2410 and compatible USB device controller > > + > > +Required properties: > > + - compatible: Should be one of the following > > + "samsung,s3c2410-udc" > > + "samsung,s3c2440-udc" > > + - reg: address an

Re: OOM: Better, but still there on

2016-12-17 Thread Nils Holland
On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > On Fri 16-12-16 19:47:00, Nils Holland wrote: > > > > Dec 16 18:56:24 boerne.fritz.box kernel: Purging GPU memory, 37 pages > > freed, 10219 pages still pinned. > > Dec 16 18:56:29 boerne.fritz.box kernel: kthreadd invoked oom-killer

MAC address in wl1251 NVS data (Was: Re: wl1251 NVS calibration data format)

2016-12-17 Thread Pali Rohár
> On Sat, Dec 17, 2016 at 12:14:50PM +0100, Pali Rohár wrote: > > > [1] http://notaz.gp2x.de/misc/pnd/wl1251/nvs_map.txt > > In that description is something about STA mac address: > > 019 02 //length > > 01a 6d //STA_ADDR_L Register Address. (STA MAC > > Add

[PATCH] livepatch: fixup klp-convert tool integration

2016-12-17 Thread Konstantin Khlebnikov
I've found some minor problems, this patch fixes: * save cmd_ld_ko_o into .module.cmd, if_changed_rule doesn't do that * fix bashisms for debian where /bin/sh is a symlink to /bin/dash * rename rule_link_module to rule_ld_ko_o, otherwise arg-check inside if_changed_rule compares cmd_link_module

RE: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-17 Thread Matthew Wilcox
From: Matthew Wilcox > From: Rasmus Villemoes [mailto:li...@rasmusvillemoes.dk] > > This sounds good. I think there may still be a lot of users that never > > allocate more than a handful of IDAs, making a 128 byte allocation still > > somewhat excessive. One thing I considered was (exactly as it's

Re: [PATCH v2 04/11] locking/ww_mutex: Set use_ww_ctx even when locking without a context

2016-12-17 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 02:17:25PM +0100, Nicolai Hähnle wrote: > On 06.12.2016 16:25, Peter Zijlstra wrote: > >On Thu, Dec 01, 2016 at 03:06:47PM +0100, Nicolai Hähnle wrote: > > > >>@@ -640,10 +640,11 @@ __mutex_lock_common(struct mutex *lock, long state, > >>unsigned int subclass, > >>struc

Re: [PATCH -v4 00/10] FUTEX_UNLOCK_PI wobbles

2016-12-17 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 03:31:40PM -0800, Darren Hart wrote: > On Tue, Dec 13, 2016 at 09:36:38AM +0100, Peter Zijlstra wrote: > > That way, when we drop hb->lock to wait, futex and rt_mutex wait state is > > consistent. > > > > > > In any case, it passes our inadequate testing. > > It passed my

Re: [PATCH -v4 02/10] futex: Add missing error handling to FUTEX_REQUEUE_PI

2016-12-17 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 04:06:39PM -0800, Darren Hart wrote: > On Tue, Dec 13, 2016 at 09:36:40AM +0100, Peter Zijlstra wrote: > > Thomas spotted that fixup_pi_state_owner() can return errors and we > > fail to unlock the rt_mutex in that case. > > > > We handled this explicitly before Patch 1/10

Re: [alsa-devel] [PATCH v6 1/3] clk: x86: Add Atom PMC platform clocks

2016-12-17 Thread Andy Shevchenko
On Sat, Dec 17, 2016 at 3:33 AM, Stephen Boyd wrote: > On 12/15, Pierre-Louis Bossart wrote: >>Clients use devm_clk_get() with a "pmc_plt_clk_" >> argument. > > This is the problem. Clients should be calling clk_get() like: > > clk_get(dev, "signal name in datasheet") > > where the first

Re: [PATCH] rbtree: use designated initializers

2016-12-17 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 05:02:53PM -0800, Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from

[PATCH v3 0/7] Runtime PM for Thunderbolt on Macs

2016-12-17 Thread Lukas Wunner
Power down Thunderbolt controllers on Macs when nothing is plugged in to save around 2W per controller. Apple provides an ACPI-based (but nonstandard) mechanism to cut power and signal hotplug during powerdown. The usual way to implement such nonstandard mechanisms seems to be a struct dev_pm_dom

[PATCH v3 2/7] PCI: Allow runtime PM on Thunderbolt ports

2016-12-17 Thread Lukas Wunner
Currently PCIe ports are only allowed to go to D3 if the BIOS is dated 2015 or newer to avoid potential issues with old chipsets. However for Thunderbolt we know that even the oldest controller, Light Ridge (2010), is able to suspend its ports to D3 just fine. We're about to add runtime PM for Th

[PATCH v3 3/7] PCI: Don't block runtime PM for Thunderbolt host hotplug ports

2016-12-17 Thread Lukas Wunner
Hotplug ports generally block their parents from suspending to D3hot as otherwise their interrupts couldn't be delivered. An exception are Thunderbolt host controllers: They have a separate GPIO pin to side-band signal plug events even if the controller is powered down or its parent ports are sus

[PATCH v3 1/7] PCI: Recognize Thunderbolt devices

2016-12-17 Thread Lukas Wunner
We're about to allow runtime PM on Thunderbolt ports in pci_bridge_d3_possible() and unblock runtime PM for Thunderbolt host hotplug ports in pci_dev_check_d3cold(). In both cases we need to uniquely identify if a PCI device belongs to a Thunderbolt controller. We also have the need to detect pre

[PATCH v3 6/7] thunderbolt: Power down controller when idle

2016-12-17 Thread Lukas Wunner
Document and implement Apple's ACPI-based (but nonstandard) pm mechanism for Thunderbolt. Briefly, an ACPI method provided by Apple is used to cut power to the controller. A GPE is enabled while the controller is powered down which sideband-signals a plug event, whereupon we reinstate power using

[PATCH v3 4/7] Revert "PM / Runtime: Remove the exported function pm_children_suspended()"

2016-12-17 Thread Lukas Wunner
This reverts commit 62006c1702b3b1be0c0726949e0ee0ea2326be9c which removed pm_children_suspended() because it had only a single caller. We're about to add a second caller, so establish the status quo ante. Cc: Ulf Hansson Cc: Rafael J. Wysocki Signed-off-by: Lukas Wunner --- drivers/base/power

[PATCH v3 5/7] PM: Make requirements of dev_pm_domain_set() more precise

2016-12-17 Thread Lukas Wunner
Since commit 989561de9b51 ("PM / Domains: add setter for dev.pm_domain") a PM domain may only be assigned to unbound devices. The motivation was not made explicit in the changelog other than "in the general case that can cause problems and also [...] we can simplify code quite a bit if we can alwa

[PATCH v3 7/7] thunderbolt: Runtime suspend NHI when idle

2016-12-17 Thread Lukas Wunner
Runtime suspend the NHI when no Thunderbolt devices have been plugged in for 10 sec (user-configurable via autosuspend_delay_ms in sysfs). The NHI is not able to detect plug events while suspended, it relies on the GPE handler to resume it on hotplug. After the NHI resumes, it takes about 700 ms

Re: OOM: Better, but still there on

2016-12-17 Thread Tetsuo Handa
On 2016/12/17 21:59, Nils Holland wrote: > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: >> mount -t tracefs none /debug/trace >> echo 1 > /debug/trace/events/vmscan/enable >> cat /debug/trace/trace_pipe > trace.log >> >> should help >> [...] > > No problem! I enabled writing the t

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Chanwoo Choi
Hi Lin, 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : > Hi Lin, > > On 2016년 11월 24일 18:28, Chanwoo Choi wrote: >> Hi Lin, >> >> On 2016년 11월 24일 17:34, hl wrote: >>> Hi Chanwoo Choi, >>> >>> >>> On 2016年11月24日 16:16, Chanwoo Choi wrote: Hi Lin, On 2016년 11월 24일 16:34, hl wrote: > H

Re: [PATCH v4] dt-bindings: power: supply: bq24735: reverse the polarity of ac-detect

2016-12-17 Thread Sebastian Reichel
Hi, On Fri, Dec 16, 2016 at 10:44:00AM +0100, Peter Rosin wrote: > The ACOK pin on the bq24735 is active-high, of course meaning that when > AC is OK the pin is high. However, all Tegra dts files have incorrectly > specified active-high even though the signal is inverted on the Tegra > boards. Thi

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-17 Thread Jeffrey Walton
> diff --git a/lib/test_siphash.c b/lib/test_siphash.c > new file mode 100644 > index ..93549e4e22c5 > --- /dev/null > +++ b/lib/test_siphash.c > @@ -0,0 +1,83 @@ > +/* Test cases for siphash.c > + * > + * Copyright (C) 2016 Jason A. Donenfeld . All Rights > Reserved. > + * > + * This

Re: [PATCH v3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

2016-12-17 Thread Sebastian Reichel
Hi, On Thu, Dec 15, 2016 at 10:28:46AM +0100, Peter Rosin wrote: > If the ac-detect gpio does not support interrupts, provide a fallback > to poll the gpio at a configurable interval. > > Signed-off-by: Peter Rosin Thanks for your patch. We are currently in the merge window and your patch will

Re: [PATCH v2 1/2] mfd: axp20x: Add a few missing defines for AXP288 specific registers

2016-12-17 Thread Chen-Yu Tsai
On Thu, Dec 15, 2016 at 10:07 PM, Hans de Goede wrote: > Add defines for the AXP288_POWER_REASON and AXP288_RT_BATT_V_H and > AXP288_RT_BATT_V_L registers. While at it also move the > AXP288_TS_ADC_H-AXP288_GP_ADC_L defines, which for some reason where > in a different place, together with the res

Re: [PATCH v2 2/2] mfd: axp20x: Fix axp288 volatile ranges

2016-12-17 Thread Chen-Yu Tsai
On Thu, Dec 15, 2016 at 10:07 PM, Hans de Goede wrote: > The axp288 pmic has a lot more volatile registers then we were > listing in axp288_volatile_ranges, fix this. > > Signed-off-by: Hans de Goede Acked-by: Chen-Yu Tsai

Re: [PATCH v3 1/2] mfd: axp20x: Add a few missing defines for AXP288 specific registers

2016-12-17 Thread Chen-Yu Tsai
On Sat, Dec 17, 2016 at 4:09 AM, Hans de Goede wrote: > Add defines for the AXP288_POWER_REASON and AXP288_RT_BATT_V_H and > AXP288_RT_BATT_V_L and AXP288_BC_* registers. While at it also move the > AXP288_TS_ADC_H-AXP288_GP_ADC_L defines, which for some reason where > in a different place, togeth

Re: [PATCH v3 2/2] mfd: axp20x: Fix axp288 volatile ranges

2016-12-17 Thread Chen-Yu Tsai
On Sat, Dec 17, 2016 at 4:09 AM, Hans de Goede wrote: > The axp288 pmic has a lot more volatile registers then we were > listing in axp288_volatile_ranges, fix this. > > Signed-off-by: Hans de Goede Acked-by: Chen-Yu Tsai FYI, if you're going to add support for the battery charger detection mo

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Tobias Jakobi
Hey guys, Chanwoo Choi wrote: > Hi Lin, > > 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : >> Hi Lin, >> >> On 2016년 11월 24일 18:28, Chanwoo Choi wrote: >>> Hi Lin, >>> >>> On 2016년 11월 24일 17:34, hl wrote: Hi Chanwoo Choi, On 2016年11月24日 16:16, Chanwoo Choi wrote: > Hi Lin, >>>

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-17 Thread George Spelvin
To follow up on my comments that your benchmark results were peculiar, here's my benchmark code. It just computes the hash of all n*(n+1)/2 possible non-empty substrings of a buffer of n (called "max" below) bytes. "cpb" is "cycles per byte". (The average length is (n+2)/3, c.f. https://oeis.org

Re: [PATCH v3] net: macb: Added PCI wrapper for Platform Driver.

2016-12-17 Thread David Miller
From: Bartosz Folta Date: Wed, 14 Dec 2016 06:39:15 + > There are hardware PCI implementations of Cadence GEM network > controller. This patch will allow to use such hardware with reuse of > existing Platform Driver. > > Signed-off-by: Bartosz Folta > --- > Changed in v3: > Fixed dependenci

Re: [kernel-hardening] Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-17 Thread Theodore Ts'o
On Fri, Dec 16, 2016 at 09:15:03PM -0500, George Spelvin wrote: > >> - Ted, Andy Lutorminski and I will try to figure out a construction of > >> get_random_long() that we all like. We don't have to find the most optimal solution right away; we can approach this incrementally, after all. So long

Re: [PATCH v2 00/11] add support for VBUS max current and min voltage limits AXP20X and AXP22X PMICs

2016-12-17 Thread Sebastian Reichel
Hi Quentin, On Fri, Dec 09, 2016 at 12:04:08PM +0100, Quentin Schulz wrote: > The X-Powers AXP209 and AXP20X PMICs are able to set a limit for the > VBUS power supply for both max current and min voltage supplied. This > series of patch adds the possibility to set these limits from sysfs. > > Als

Re: [kernel-hardening] Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-17 Thread Jeffrey Walton
> As far as half-siphash is concerned, it occurs to me that the main > problem will be those users who need to guarantee that output can't be > guessed over a long period of time. For example, if you have a > long-running process, then the output needs to remain unguessable over > potentially mont

Re: [PATCH] x86/floppy: use designated initializers

2016-12-17 Thread Ingo Molnar
* Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grsecurity. > > Signed-off-by: Kees

Re: [PATCH 4/5] irda: irnet: Remove unused IRNET_MAJOR define

2016-12-17 Thread David Miller
From: Corentin Labbe Date: Thu, 15 Dec 2016 11:42:49 +0100 > The IRNET_MAJOR define is not used, so this patch remove it. > > Signed-off-by: Corentin Labbe Applied.

Re: [PATCH 5/5] irda: irnet: add member name to the miscdevice declaration

2016-12-17 Thread David Miller
From: Corentin Labbe Date: Thu, 15 Dec 2016 11:42:50 +0100 > Since the struct miscdevice have many members, it is dangerous to init > it without members name relying only on member order. > > This patch add member name to the init declaration. > > Signed-off-by: Corentin Labbe Applied.

Re: [PATCH 1/5] irda: irproc.c: Remove unneeded linux/miscdevice.h include

2016-12-17 Thread David Miller
From: Corentin Labbe Date: Thu, 15 Dec 2016 11:42:46 +0100 > irproc.c does not use any miscdevice so this patch remove this > unnecessary inclusion. > > Signed-off-by: Corentin Labbe Applied.

Re: [PATCH 3/5] irnet: ppp: move IRNET_MINOR to include/linux/miscdevice.h

2016-12-17 Thread David Miller
From: Corentin Labbe Date: Thu, 15 Dec 2016 11:42:48 +0100 > This patch move the define for IRNET_MINOR to include/linux/miscdevice.h > It is better that all minor number definitions are in the same place. > > Signed-off-by: Corentin Labbe Applied.

Re: [PATCH 2/5] irda: irnet: Move linux/miscdevice.h include

2016-12-17 Thread David Miller
From: Corentin Labbe Date: Thu, 15 Dec 2016 11:42:47 +0100 > The only use of miscdevice is irda_ppp so no need to include > linux/miscdevice.h for all irda files. > This patch move the linux/miscdevice.h include to irnet_ppp.h > > Signed-off-by: Corentin Labbe Applied.

[RFC][PATCH] spinlock_debug: report spinlock lockup from unlock

2016-12-17 Thread Sergey Senozhatsky
There is a race window between the point when __spin_lock_debug() detects spinlock lockup and the time when CPU that caused the lockup receives its backtrace interrupt. Before __spin_lock_debug() triggers all_cpu_backtrace() it calls spin_dump() to printk() the current state of the lock and CPU ba

Re: [PATCH net 0/3] dpaa_eth: a couple of fixes

2016-12-17 Thread David Miller
From: Madalin Bucur Date: Thu, 15 Dec 2016 15:13:03 +0200 > This patch set introduces big endian accessors in the dpaa_eth driver > making sure accesses to the QBMan HW are correct on little endian > platforms. Removing a redundant Kconfig dependency on FSL_SOC. > Adding myself as maintainer of t

Re: [PATCH v2 0/8] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Sebastian Reichel
Hi, On Fri, Dec 09, 2016 at 04:48:58PM +0900, Milo Kim wrote: > TPS65217 device supports two charger inputs - AC and USB. > Currently, only AC charger is supported. This patch-set adds USB charger > feature. Tested on Beaglebone black. > > Patch 1: Main patch > Patch 2, 3: Clean up for charger d

Re: [PATCH v3 2/2] dt-bindings: power: add bindings for sbs-charger

2016-12-17 Thread Sebastian Reichel
Hi, On Thu, Nov 24, 2016 at 01:33:43PM +0100, Nicolas Saenz Julienne wrote: > Adds device tree documentation for SBS charger compilant devices as defined > here: http://sbs-forum.org/specs/sbc110.pdf > > Signed-off-by: Nicolas Saenz Julienne > --- > v2 -> v3: > - add part number as compatible >

Re: [PATCH v3 0/2] power: supply: add sbs-charger driver

2016-12-17 Thread Sebastian Reichel
Hi, On Tue, Dec 13, 2016 at 11:41:01AM +0100, Nicolas Saenz Julienne wrote: > On 24/11/16 13:33, Nicolas Saenz Julienne wrote: > > Hi, > > > > This series adds support for all SBS compatible battery chargers, as defined > > here: http://sbs-forum.org/specs/sbc110.pdf. > > > > The first patch cha

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Chanwoo Choi
2016-12-18 0:13 GMT+09:00 Tobias Jakobi : > Hey guys, > > Chanwoo Choi wrote: >> Hi Lin, >> >> 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : >>> Hi Lin, >>> >>> On 2016년 11월 24일 18:28, Chanwoo Choi wrote: Hi Lin, On 2016년 11월 24일 17:34, hl wrote: > Hi Chanwoo Choi, > > >

Re: [PATCH] block: loose check on sg gap

2016-12-17 Thread Jens Axboe
On 12/17/2016 03:49 AM, Ming Lei wrote: > If the last bvec of the 1st bio and the 1st bvec of the next > bio are contineous physically, and the latter can be merged > to last segment of the 1st bio, we should think they don't > violate sg gap(or virt boundary) limit. > > Both Vitaly and Dexuan rep

Re: [PATCH] net: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:58:58 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] isdn/gigaset: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:58:06 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] ATM: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:58:43 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] net/x25: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 17:03:39 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] isdn: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 17:01:42 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] WAN: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:59:18 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] bna: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 17:00:54 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: OOM: Better, but still there on

2016-12-17 Thread Nils Holland
On Sat, Dec 17, 2016 at 11:44:45PM +0900, Tetsuo Handa wrote: > On 2016/12/17 21:59, Nils Holland wrote: > > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > >> mount -t tracefs none /debug/trace > >> echo 1 > /debug/trace/events/vmscan/enable > >> cat /debug/trace/trace_pipe > trace

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-17 Thread Andrey Konovalov
On Fri, Dec 16, 2016 at 7:01 PM, Alan Stern wrote: > On Mon, 12 Dec 2016, Andrey Konovalov wrote: > >> Hi! >> >> While running the syzkaller fuzzer I've got the following error report. >> >> On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dev 2). >> >> WARNING: CPU: 2 PID: 865 at fs/sysfs/dir.

Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock

2016-12-17 Thread Pavel Machek
On Thu 2016-12-15 23:33:22, Lino Sanfilippo wrote: > On 15.12.2016 22:32, Lino Sanfilippo wrote: > > > Ah ok. Then maybe priv->hw->dma->stop_tx() does not do the job correctly > > (stop the > > tx path properly) and the HW is still active on the tx path while the tx > > buffers are > > freed. OT

Re: [PATCH v4 2/3] perf tool: add PERF_RECORD_NAMESPACES to include namespaces related info

2016-12-17 Thread Jiri Olsa
On Fri, Dec 16, 2016 at 12:07:20AM +0530, Hari Bathini wrote: SNIP > + > +int thread__set_namespaces(struct thread *thread, u64 timestamp, > +struct namespaces_event *event) > +{ > + struct namespaces *new, *curr = thread__namespaces(thread); > + > + new = namespac

Documentation/unaligned-memory-access.txt: fix incorrect comparison operator

2016-12-17 Thread Cihangir Akturk
In the actual implementation ether_addr_equal function tests for equality to 0 when returning. It seems in commit 0d74c4 it is somehow overlooked to change this operator to reflect the actual function. Signed-off-by: Cihangir Akturk --- Documentation/unaligned-memory-access.txt | 2 +- 1 file ch

[RFC 0/1] New PCI Switch Management Driver

2016-12-17 Thread Logan Gunthorpe
Hi, [Appologies: this is a resend for some people. Due to a configuration error the original email was rejected by the mailing lists. I hope this one makes it!] We're looking to get some initial feedback on a new driver for a line of PCIe switches produced and produced and sold by Microsemi. The

[RFC 1/1] MicroSemi Switchtec management interface driver

2016-12-17 Thread Logan Gunthorpe
Microsemi's "Switchtec" line of PCI switch devices is already supported by the kernel with standard PCI switch drivers. However, the Switchtec device advertises a special management endpoint which enables some additional functionality. This includes: * Packet and Byte Counters * Firmware Upgrade

What is the function of arch/x86/purgatory/purgatory.c?

2016-12-17 Thread Larry Finger
While checking the rtlwifi family of drivers using Sparse, I got the following warnings: CHECK arch/x86/purgatory/purgatory.c arch/x86/purgatory/purgatory.c:21:15: warning: symbol 'backup_dest' was not declared. Should it be static? arch/x86/purgatory/purgatory.c:22:15: warning: symbol 'bac

Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-17 Thread Andy Lutomirski
Hi all- I apologize for being rather late with this. I didn't realize that cgroup-bpf was going to be submitted for Linux 4.10, and I didn't see it on the linux-api list, so I missed the discussion. I think that the inet ingress, egress etc filters are a neat feature, but I think the API has som

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Tobias Jakobi
Hey Chanwoo, Chanwoo Choi wrote: > 2016-12-18 0:13 GMT+09:00 Tobias Jakobi : >> Hey guys, >> >> Chanwoo Choi wrote: >>> Hi Lin, >>> >>> 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : Hi Lin, On 2016년 11월 24일 18:28, Chanwoo Choi wrote: > Hi Lin, > > On 2016년 11월 24일 17:34, hl

Re: [PATCH V1] i2c: xgene: Fix missing code of DTB support

2016-12-17 Thread Wolfram Sang
On Wed, Dec 14, 2016 at 02:17:26PM +0700, Tin Huynh wrote: > In DTB case, i2c-core doesn't create slave device which is installed > on i2c-xgene bus because of missing code in this driver. > This patch fixes this issue. > > Signed-off-by: Tin Huynh Applied to for-current, thanks! signature.as

Re: [PATCH V5] i2c: designware: fix wrong Tx/Rx FIFO for ACPI

2016-12-17 Thread Wolfram Sang
On Wed, Dec 14, 2016 at 04:23:58PM +0700, Tin Huynh wrote: > ACPI always sets Tx/Rx FIFO to 32. This configuration will > cause problem if the IP core supports a FIFO size of less than 32. > The driver should read the FIFO size from the IP and select the smaller > one of the two. > > Signed-off-by

[GIT PULL] ARM: exynos: Late mach/soc for v4.10

2016-12-17 Thread Krzysztof Kozlowski
Hi, After our discussions about not-breaking out-of-tree DTB with SCU change in DeviceTree, I prepared an updated pull request without the questioned changes. Ten days ago I prepared a tag, pushed it... and apparently forgot to send pull request. At least, I don't have such email in my outbox. D

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-17 Thread Mickaël Salaün
On 17/12/2016 19:18, Andy Lutomirski wrote: > Hi all- > > I apologize for being rather late with this. I didn't realize that > cgroup-bpf was going to be submitted for Linux 4.10, and I didn't see > it on the linux-api list, so I missed the discussion. > > I think that the inet ingress, egress

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dri

Re: What is the function of arch/x86/purgatory/purgatory.c?

2016-12-17 Thread Al Viro
On Sat, Dec 17, 2016 at 11:52:05AM -0600, Larry Finger wrote: > Upon examination of the routine, I can see that if purgatory() should be > static, then none of the code here will ever be accessed by any part of the > kernel. Is there some bit of magic that is above my understanding, or is > this a

probably serious conntrack/netfilter panic, 4.8.14, timers and intel turbo

2016-12-17 Thread Denys Fedoryshchenko
Hi, I posted recently several netfilter related crashes, didn't got any answers, one of them started to happen quite often on loaded NAT (17Gbps), so after trying endless ways to make it stable, i found out that in backtrace i can often see timers, and this bug probably appearing on older rel

Re: What is the function of arch/x86/purgatory/purgatory.c?

2016-12-17 Thread Larry Finger
On 12/17/2016 01:46 PM, Al Viro wrote: On Sat, Dec 17, 2016 at 11:52:05AM -0600, Larry Finger wrote: Upon examination of the routine, I can see that if purgatory() should be static, then none of the code here will ever be accessed by any part of the kernel. Is there some bit of magic that is ab

  1   2   >