Re: net/sunrpc: v4.14-rc4 lockdep warning

2017-10-10 Thread Trond Myklebust
On Tue, 2017-10-10 at 07:03 -0700, t...@kernel.org wrote: > Hello, Trond. > > On Mon, Oct 09, 2017 at 06:32:13PM +, Trond Myklebust wrote: > > On Mon, 2017-10-09 at 19:17 +0100, Lorenzo Pieralisi wrote: > > > I have run into the lockdep warning below while running v4.14- > > > rc3/rc4 > > > on

[PATCH] powerpc/perf: Fix IMC initialization crash

2017-10-10 Thread Anju T Sudhakar
Call trace observed with latest firmware, and upstream kernel. [ 14.499938] NIP [c00f318c] init_imc_pmu+0x8c/0xcf0 [ 14.499973] LR [c00f33f8] init_imc_pmu+0x2f8/0xcf0 [ 14.57] Call Trace: [ 14.500027] [c03fed18f710] [c00f33c8] init_imc_pmu+0x2c8/0xcf0 (unre

Re: [PATCHv2] thinkpad_acpi: Implement tablet mode resolving using GMMS method

2017-10-10 Thread Lyude Paul
Looks good to me Reviewed-by: Lyude Paul On Tue, 2017-10-10 at 11:12 +0200, Benjamin Berg wrote: > Many thinkpad laptops and convertibles provide the GMMS method to > resolve how far the laptop has been opened and whether it has been > converted into tablet mode. This allows reporting a more prec

Re: [PATCH v3] platform/chrome: Use proper protocol transfer function

2017-10-10 Thread Doug Anderson
Hi, On Tue, Oct 10, 2017 at 8:33 AM, Shawn N wrote: >> diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi >> b/arch/arm/boot/dts/tegra124-nyan.dtsi >> index 5cf987b5401e..0baa6bfc0f36 100644 >> --- a/arch/arm/boot/dts/tegra124-nyan.dtsi >> +++ b/arch/arm/boot/dts/tegra124-nyan.dtsi >> @@ -317,6 +

Re: [PATCH v2] mtd: spi-nor: add support for Gigadevice GD25LQ32

2017-10-10 Thread Cyrille Pitchen
Le 13/09/2017 à 10:25, Klaus Goger a écrit : > Tested against GD25LQ32D but the GD25LQ32C datasheet seems to be > identically feature-wise. Therefore dropping the suffix as it's > probably only indicating the die revision. > > Signed-off-by: Klaus Goger Applied to the spi-nor/next branch of l2-m

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-10 Thread Linus Torvalds
On Tue, Oct 10, 2017 at 9:22 AM, Linus Torvalds wrote: > > I really would like to see the sites that do cross-thread lock/unlock > pairs themselves be annotated. > > So when you lock in one thread, and then unlock in another, I'd > actually prefer to see something like > > - T1: > lock_mu

Re: [PATCH 6/6] drm: Add four ioctls for managing drm mode object leases [v4]

2017-10-10 Thread Keith Packard
Dave Airlie writes: >> +*/ >> + ret = idr_alloc(&leases, &drm_lease_idr_object , object_id, >> object_id + 1, GFP_KERNEL); > > In current kernels, the idr_alloc warns if start < 0, so if object_id > is a negative signed integer, which your > igt tests actually make

Re: [PATCH 13/13] rcutorture: formal: prepare for ACCESS_ONCE() removal

2017-10-10 Thread Joe Perches
On Tue, 2017-10-10 at 17:41 +0100, Mark Rutland wrote: > On Tue, Oct 10, 2017 at 09:27:54AM -0700, Joe Perches wrote: > > Once ACCESS_ONCE is removed from the code in the tree > > it can also be removed from checkpatch > > Sure thing. We're expecting to rip that out with the ACCESS_ONCE > definiti

Re: [PATCH v4 05/12] mmc: mediatek: add pad_tune0 support

2017-10-10 Thread Julien Thierry
Hi, On 10/10/17 10:30, Chaotian Jing wrote: from mt2701, the register of PAD_TUNE has been phased out, while there is a new register of PAD_TUNE0 Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 69 ++- 1 file changed, 51 insertions(+)

[PATCH] ACPI / PM: Combine two identical device resume routines

2017-10-10 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Notice that acpi_dev_runtime_resume() and acpi_dev_resume_early() are actually literally identical after some more-or-less recent changes, so rename acpi_dev_runtime_resume() to acpi_dev_resume(), use it everywhere instead of acpi_dev_resume_early() and drop the latter. S

[PATCH][net-next] ipv6: fix dereference of rt6_ex before null check error

2017-10-10 Thread Colin King
From: Colin Ian King Currently rt6_ex is being dereferenced before it is null checked hence there is a possible null dereference bug. Fix this by only dereferencing rt6_ex after it has been null checked. Detected by CoverityScan, CID#1457749 ("Dereference before null check") Fixes: 81eb8447daae

Re: [PATCH -tip v3 3/7] kprobes: Warn if optprobe handler tries to change execution path

2017-10-10 Thread Naveen N. Rao
On 2017/09/19 10:00AM, Masami Hiramatsu wrote: > Warn if optprobe handler tries to change execution path. > As described in Documentation/kprobes.txt, with optprobe > user handler can not change instruction pointer. In that > case user must avoid optimizing the kprobes by setting > post_handler or

Re: [PATCH] arm64: dts: rockchip: enable touchpad button for rk3399-gru-kevin

2017-10-10 Thread Brian Norris
+ Dmitry, who can probably answer better than I can On Tue, Oct 10, 2017 at 01:04:20PM +0200, Emil Renner Berthing wrote: > On 10 October 2017 at 11:33, Heiko Stuebner wrote: > > Am Montag, 9. Oktober 2017, 20:40:28 CEST schrieb Emil Renner Berthing: > >> Adding the linux,gpio-keymap entry also h

Re: [PATCH] arm64: dts: mediatek: Add cpuidle support for MT2712

2017-10-10 Thread Matthias Brugger
On 08/31/2017 07:44 AM, James Liao wrote: Add CPU idle state nodes to enable C1/C2 idle states. Signed-off-by: James Liao --- pushed to v4.14-next/dts64 Thanks. This patch bases on latest Matthias v4.13-next/dts64 branch [1], add CPU idle states for MT2712. [1] https://github.com/mbgg/l

Re: [PATCH v3 2/2] KVM: VMX: Don't expose unrestricted_guest is enabled if ept is disabled

2017-10-10 Thread Jim Mattson
Reviewed-by: Jim Mattson On Mon, Oct 9, 2017 at 3:51 PM, Wanpeng Li wrote: > From: Wanpeng Li > > SDM mentioned: > > "If either the “unrestricted guest” VM-execution control or the “mode-based > execute control for EPT” VM- execution control is 1, the “enable EPT” > VM-execution control mu

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-10 Thread Pavel Tatashin
Hi Will, Thank you for doing this work. How would you like to proceed? - If you OK for my series to be accepted as-is, so your patch can be added later on top, I think, I need an ack from you for kasan changes. - Otherwise, I can replace: 4267aaf1d279 arm64/kasan: add and use kasan_map_populate()

Re: [PATCH 13/13] rcutorture: formal: prepare for ACCESS_ONCE() removal

2017-10-10 Thread Mark Rutland
On Tue, Oct 10, 2017 at 09:57:25AM -0700, Joe Perches wrote: > On Tue, 2017-10-10 at 17:41 +0100, Mark Rutland wrote: > > On Tue, Oct 10, 2017 at 09:27:54AM -0700, Joe Perches wrote: > > > Once ACCESS_ONCE is removed from the code in the tree > > > it can also be removed from checkpatch > > > > Su

Re: [RFC] ARC: [plat-hsdk]: Increase SDIO CIU frequency to 50000000Hz

2017-10-10 Thread Vineet Gupta
On 10/10/2017 09:11 AM, Eugeniy Paltsev wrote: Increase SDIO CIU frequency from 1250Hz to 5000Hz by switching from the default divisor value (div-by-8) to the minimum possible value of the divisor (div-by-2) in HSDK platform code. Please describe the problem first not the solution. That

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-10 Thread Will Deacon
Hi Pavel, On Tue, Oct 10, 2017 at 01:07:35PM -0400, Pavel Tatashin wrote: > Thank you for doing this work. How would you like to proceed? > > - If you OK for my series to be accepted as-is, so your patch can be > added later on top, I think, I need an ack from you for kasan changes. > - Otherwise

Re: net/sunrpc: v4.14-rc4 lockdep warning

2017-10-10 Thread t...@kernel.org
Hello, On Tue, Oct 10, 2017 at 04:48:57PM +, Trond Myklebust wrote: > Thanks for the explanation. What I'm not really understanding here > though, is how the work item could be queued at all. We have a > wait_on_bit_lock() in xprt_destroy() that should mean the xprt- > >task_cleanup work item

[PATCH v3.1 2/3] livepatch: shuffle core.c function order

2017-10-10 Thread Jason Baron
In preparation for __klp_enable_patch() to call a number of 'static' functions, in a subsequent patch, move them earlier in core.c. This patch should be a nop from a functional pov. Signed-off-by: Jason Baron Cc: Josh Poimboeuf Cc: Jessica Yu Cc: Jiri Kosina Cc: Miroslav Benes Cc: Petr Mladek

Re: [PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread Stephen Hemminger
On Tue, 10 Oct 2017 12:58:52 +0530 Christina Jacob wrote: > +/* Get the mac address of the interface given interface name */ > +static long *getmac(char *iface) > +{ > + int fd; > + struct ifreq ifr; > + long *mac = NULL; > + > + fd = socket(AF_INET, SOCK_DGRAM, 0); > + ifr.if

Re: [PATCH v11 0/9] complete deferred page initialization

2017-10-10 Thread Pavel Tatashin
I wanted to thank you Michal for spending time and doing the in-depth reviews of every incremental change. Overall the series is in much better shape now because of your feedback. Pavel On 10/10/2017 10:15 AM, Michal Hocko wrote: Btw. thanks for your persistance and willingness to go over all

[PATCH v3.1 3/3] livepatch: add atomic replace

2017-10-10 Thread Jason Baron
Sometimes we would like to revert a particular fix. This is currently This is not easy because we want to keep all other fixes active and we could revert only the last applied patch. One solution would be to apply new patch that implemented all the reverted functions like in the original code. It

[PATCH 03/10] perf tool: new iterfaces to read event from ring buffer

2017-10-10 Thread kan . liang
From: Kan Liang The perf_evlist__mmap_read only support forward mode. It needs a common function to support both forward and backward mode. The perf_evlist__mmap_read_backward is buggy. Introduce a new mmap read interface to support both forward and backward mode. It can read event one by one fr

[PATCH 05/10] perf top: apply new mmap_read interfaces

2017-10-10 Thread kan . liang
From: Kan Liang no functional change Signed-off-by: Kan Liang --- tools/perf/builtin-top.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 477a869..be9ffae 100644 --- a/tools/perf/builtin-top.c +++ b/tools/pe

[PATCH 04/10] perf tool: perf_mmap__read_init wrapper for evlist

2017-10-10 Thread kan . liang
From: Kan Liang Add a wrapper perf_evlist__mmap_read_init for perf_mmap__read_init. Signed-off-by: Kan Liang --- tools/perf/util/evlist.c | 9 + tools/perf/util/evlist.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index b3

Re: [alsa-devel] [Patch v6 1/7] slimbus: Device management on SLIMbus

2017-10-10 Thread Srinivas Kandagatla
On 10/10/17 17:49, Vinod Koul wrote: On Tue, Oct 10, 2017 at 01:34:55PM +0100, Srinivas Kandagatla wrote: 9 files changed, 1192 insertions(+) thats a lot of code for review, consider splitting it up further for better reviews Its was suggested that parts of dtbindings and of_* wrapper me

Re: [PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread Stephen Hemminger
On Tue, 10 Oct 2017 12:58:52 +0530 Christina Jacob wrote: > + bzero(&route, sizeof(route)); > + bzero(dsts, sizeof(dsts)); > + bzero(dsts_len, sizeof(dsts_len)); > + bzero(gws, sizeof(gws)); > + bzero(ifs, sizeof(ifs)); > + b

[PATCH 02/10] perf tool: fix: Don't discard prev in backward mode

2017-10-10 Thread kan . liang
From: Kan Liang Perf record can switch output. The new output should only store the data after switching. However, in overwrite backward mode, the new output still have the data from old output. At the end of mmap_read, the position of processed ring buffer is saved in md->prev. Next mmap_read s

[PATCH 10/10] perf tool: remove stale mmap_read interfaces

2017-10-10 Thread kan . liang
From: Kan Liang No one use it Signed-off-by: Kan Liang --- tools/perf/util/evlist.c | 101 +-- tools/perf/util/evlist.h | 12 -- 2 files changed, 1 insertion(+), 112 deletions(-) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c

[PATCH 00/10] new mmap_read interfaces for ring buffer

2017-10-10 Thread kan . liang
From: Kan Liang The mmap_read interfaces for ring buffer has some issues - Not well organized. For example, perf record maintains some codes in builtin-record.c. Other perf tools use perf_mmap__read* functions to access ring buffer. Some of the codes should be shared. - Only support forwa

Re: [GIT PULL 0/3] perf/urgent fixes

2017-10-10 Thread Ingo Molnar
erf-urgent-for-mingo-4.14-20171005' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent > (2017-10-05 20:07:08 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-ur

Re: [PATCH 4.9 086/104] arm64: kasan: avoid bad virt_to_pfn()

2017-10-10 Thread Levin, Alexander (Sasha Levin)
(Cc'ed Julia) On Mon, Oct 09, 2017 at 09:33:01AM -0700, Laura Abbott wrote: >On 10/06/2017 08:10 PM, Levin, Alexander (Sasha Levin) wrote: >> We are experimenting with using neural network to aid with patch >> selection for stable kernel trees. There are quite a few commits that >> were not marked

[PATCH 09/10] perf tests: apply new mmap_read interfaces

2017-10-10 Thread kan . liang
From: Kan Liang no functional change backward-ring-buffer is the test case for backward mode. The rest of the test cases are forward mode. Signed-off-by: Kan Liang --- tools/perf/arch/x86/tests/perf-time-to-tsc.c | 9 - tools/perf/tests/backward-ring-buffer.c | 10 -- t

[PATCH 08/10] perf python: apply new mmap_read interfaces

2017-10-10 Thread kan . liang
From: Kan Liang no functional change Signed-off-by: Kan Liang --- tools/perf/util/python.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index c129e99..cfbaa86 100644 --- a/tools/perf/util/python.c +++ b/tools/p

[PATCH 01/10] perf record: new interfaces to read ring buffer to file

2017-10-10 Thread kan . liang
From: Kan Liang Factor out the mmap_read related codes into separate functions and move them to evlist.c struct perf_mmap_read is introduced to store the specific range of ring buffer information. The way to read specific range of ring buffer into file is as below, perf_mmap__read_init perf_

[PATCH 06/10] perf trace: apply new mmap_read interfaces

2017-10-10 Thread kan . liang
From: Kan Liang no functional change Signed-off-by: Kan Liang --- tools/perf/builtin-trace.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index afef6fe..cd5aaf2 100644 --- a/tools/perf/builtin-trace.c +++ b/

[PATCH 07/10] perf kvm: apply new mmap_read interfaces

2017-10-10 Thread kan . liang
From: Kan Liang no functional change Signed-off-by: Kan Liang --- tools/perf/builtin-kvm.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 721f4f9..397a6b6 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/

Re: [PATCH] arm64: dts: rockchip: enable touchpad button for rk3399-gru-kevin

2017-10-10 Thread Dmitry Torokhov
On Tue, Oct 10, 2017 at 10:03:57AM -0700, Brian Norris wrote: > + Dmitry, who can probably answer better than I can > > On Tue, Oct 10, 2017 at 01:04:20PM +0200, Emil Renner Berthing wrote: > > On 10 October 2017 at 11:33, Heiko Stuebner wrote: > > > Am Montag, 9. Oktober 2017, 20:40:28 CEST schr

[PATCH 1/3] tools: slabinfo: add "-U" option to show unreclaimable slabs only

2017-10-10 Thread Yang Shi
Add "-U" option to show unreclaimable slabs only. "-U" and "-S" together can tell us what unreclaimable slabs use the most memory to help debug huge unreclaimable slabs issue. Signed-off-by: Yang Shi Acked-by: Christoph Lameter Acked-by: David Rientjes --- tools/vm/slabinfo.c | 11 ++-

[PATCH 2/3] mm: slabinfo: dump CONFIG_SLABINFO

2017-10-10 Thread Yang Shi
According to the discussion with Christoph [1], it sounds it is pointless to keep CONFIG_SLABINFO around. This patch just remove CONFIG_SLABINFO config option, but /proc/slabinfo is still available. [1] https://marc.info/?l=linux-kernel&m=150695909709711&w=2 Signed-off-by: Yang Shi --- init/Kc

[PATCH 0/3 v11] oom: capture unreclaimable slab info in oom message

2017-10-10 Thread Yang Shi
Recently we ran into a oom issue, kernel panic due to no killable process. The dmesg shows huge unreclaimable slabs used almost 100% memory, but kdump doesn't capture vmcore due to some reason. So, it may sound better to capture unreclaimable slab info in oom message when kernel panic to aid tr

[PATCH 3/3] mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

2017-10-10 Thread Yang Shi
Kernel may panic when oom happens without killable process sometimes it is caused by huge unreclaimable slabs used by kernel. Although kdump could help debug such problem, however, kdump is not available on all architectures and it might be malfunction sometime. And, since kernel already panic it

Re: [PATCH][net-next] ipv6: fix dereference of rt6_ex before null check error

2017-10-10 Thread Eric Dumazet
On Tue, 2017-10-10 at 18:01 +0100, Colin King wrote: > From: Colin Ian King > > Currently rt6_ex is being dereferenced before it is null checked > hence there is a possible null dereference bug. Fix this by only > dereferencing rt6_ex after it has been null checked. > > Detected by CoverityScan,

Re: sysbench throughput degradation in 4.13+

2017-10-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 10, 2017 at 03:51:37PM +0100, Matt Fleming wrote: > > On Fri, 06 Oct, at 11:36:23AM, Matt Fleming wrote: > > > > > > It's a similar story for hackbench-threads-{pipes,sockets}, i.e. pipes > > > regress but performance is restored for sockets. > > > > > > O

Re: [ANNOUNCE] v4.11.12-rt13

2017-10-10 Thread Mike Galbraith
On Tue, 2017-10-10 at 18:47 +0200, Sebastian Andrzej Siewior wrote: > On 2017-10-10 18:24:55 [+0200], To Mike Galbraith wrote: > > > homer:..debug/tracing # time chrt -f 1 > > > /usr/local/ltp/conformance/interfaces/clock_settime/clock_settime_8-1.run-test > > > Ended too late. 1507351636 >> 1507

Re: [PATCH v3 2/2] livepatch: add atomic replace

2017-10-10 Thread Jason Baron
On 10/06/2017 06:32 PM, Josh Poimboeuf wrote: > On Wed, Sep 27, 2017 at 11:41:30PM -0400, Jason Baron wrote: >> Since 'atomic replace' has completely replaced all previous livepatch >> modules, it explicitly disables all previous livepatch modules. However, >> previous livepatch modules that have

Re: [RFC] ARC: [plat-hsdk]: Increase SDIO CIU frequency to 50000000Hz

2017-10-10 Thread Alexey Brodkin
Hi Vineet, On Tue, 2017-10-10 at 10:09 -0700, Vineet Gupta wrote: > On 10/10/2017 09:11 AM, Eugeniy Paltsev wrote: > > > > Increase SDIO CIU frequency from 1250Hz to 5000Hz by > > switching from the default divisor value (div-by-8) to the > > minimum possible value of the divisor (div-by-

[GIT PULL] Kselftest update for 4.14-rc5 fixes

2017-10-10 Thread Shuah Khan
Hi Linus, Please pull the following kselftest update for 4.14-rc5 fixes This update consists of: - fix for x86: sysret_ss_attrs test build failure preventing the x86 tests from running. - fix mqueue: fix regression in silencing test run output. Diff for the update attached. thanks, -- Shuah

Re: [PATCH 4.9 086/104] arm64: kasan: avoid bad virt_to_pfn()

2017-10-10 Thread Julia Lawall
On Tue, 10 Oct 2017, Levin, Alexander (Sasha Levin) wrote: > (Cc'ed Julia) > > On Mon, Oct 09, 2017 at 09:33:01AM -0700, Laura Abbott wrote: > >On 10/06/2017 08:10 PM, Levin, Alexander (Sasha Levin) wrote: > >> We are experimenting with using neural network to aid with patch > >> selection for s

[tip:perf/urgent] tools include uapi bpf.h: Sync kernel ABI header with tooling header

2017-10-10 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: aa7b4e02b328f0589b6133e72aafb1289f614a79 Gitweb: https://git.kernel.org/tip/aa7b4e02b328f0589b6133e72aafb1289f614a79 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 9 Oct 2017 15:55:45 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 9 Oct 2017 15:55:45 -0300 too

[tip:perf/urgent] perf script: Add missing separator for "-F ip,brstack" (and brstackoff)

2017-10-10 Thread tip-bot for Mark Santaniello
Commit-ID: e9516c0813aeb89ebd19ec0ed39fbfcd78b6ef3a Gitweb: https://git.kernel.org/tip/e9516c0813aeb89ebd19ec0ed39fbfcd78b6ef3a Author: Mark Santaniello AuthorDate: Fri, 6 Oct 2017 01:07:22 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 6 Oct 2017 09:48:32 -0300 perf script

[GIT PULL] f2fs fix for v4.14-rc5

2017-10-10 Thread Jaegeuk Kim
Hi Linus, Could you please pull this quick bug fix? Thanks, The following changes since commit e365806ac289457263a133bd32df8df49897f612: Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs (2017-09-25 18:24:14 -0700) are available in the git repository at:

[tip:perf/urgent] perf pmu: Unbreak perf record for arm/arm64 with events with explicit PMU

2017-10-10 Thread tip-bot for Mark Rutland
Commit-ID: 66ec11919a0f96e936bb731fdbc2851316077d26 Gitweb: https://git.kernel.org/tip/66ec11919a0f96e936bb731fdbc2851316077d26 Author: Mark Rutland AuthorDate: Fri, 6 Oct 2017 19:38:22 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 9 Oct 2017 15:48:46 -0300 perf pmu: Unbre

Re: linux-next: Tree for Oct 9th (of: unittest: testcases)

2017-10-10 Thread Randy Dunlap
On 10/09/17 14:21, Mark Brown wrote: > For my birthday I've gone and got myself a linux-next tree: > > Changes since 20170929: > > The net-next and drm trees lost their build failures but the rcu tree > gained one. I don't know what this is but it's new AFAIK. (seen on i386 and x86_64) DTC

[PATCH 0/8] Documentation: fix invalid Documentation refs (1)

2017-10-10 Thread Tom Saeger
Recently, while reading up on binfmt I attempted to open a document ref only to find it was invalid. I did a quick grep, found all the binfmt_misc related broken refs and sent a patch. Fine. Easy. Then I wondered, "how many broken doc refs are there?". Turns out with all the recent doc moves, q

[PATCH 2/8] Documentation: fix admin-guide doc refs

2017-10-10 Thread Tom Saeger
Make admin-guide document refs valid. Signed-off-by: Tom Saeger --- Documentation/ABI/stable/sysfs-devices | 2 +- Documentation/ABI/testing/sysfs-devices-system-cpu | 6 -- Documentation/ABI/testing/sysfs-power | 6 -- Documentation/admin-guide/README.rst

[PATCH 4/8] Documentation: fix security related doc refs

2017-10-10 Thread Tom Saeger
Make security document refs valid. Signed-off-by: Tom Saeger --- Documentation/ABI/testing/evm | 4 ++-- Documentation/security/LSM.rst | 2 +- Documentation/security/credentials.rst | 2 +- Documentation/security/keys/request-key.rst | 2 +- 4 files changed, 5 in

[PATCH 1/8] Documentation: fix driver-api doc refs

2017-10-10 Thread Tom Saeger
Make driver-api document refs valid. Signed-off-by: Tom Saeger --- Documentation/power/pci.txt | 10 +- Documentation/power/runtime_pm.txt | 2 +- Documentation/process/submitting-drivers.rst | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --gi

[PATCH 5/8] Documentation: fix media related doc refs

2017-10-10 Thread Tom Saeger
Make media doc refs valid. Signed-off-by: Tom Saeger --- Documentation/admin-guide/kernel-parameters.txt| 4 ++-- Documentation/media/dvb-drivers/bt8xx.rst | 8 Documentation/media/uapi/v4l/dev-sliced-vbi.rst| 2 +- Documentation/media/uapi/v4l/extended-controls.rst | 2

[PATCH 7/8] Documentation: fix usb related doc refs

2017-10-10 Thread Tom Saeger
Update ref to usb proc_usb_info.txt. Signed-off-by: Tom Saeger --- Documentation/driver-api/usb/usb.rst | 4 +--- Documentation/networking/cdc_mbim.txt | 4 ++-- Documentation/usb/gadget-testing.txt | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Documentation/driver-api

[PATCH 8/8] Documentation: fix networking related doc refs.

2017-10-10 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/networking/checksum-offloads.txt | 2 +- Documentation/networking/packet_mmap.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/checksum-offloads.txt b/Documentation/networking/checksum-offloads.t

[PATCH 3/8] Documentation: fix input related doc refs

2017-10-10 Thread Tom Saeger
Make `input` document refs valid including: - joystick - joystick-parport Signed-off-by: Tom Saeger --- Documentation/admin-guide/kernel-parameters.txt | 10 +- Documentation/hid/hiddev.txt| 2 +- Documentation/input/devices/xpad.rst| 3 ++- Document

[PATCH 6/8] Documentation: fix sound related doc refs

2017-10-10 Thread Tom Saeger
Make sound doc refs valid. Signed-off-by: Tom Saeger --- Documentation/sound/hd-audio/notes.rst| 2 +- Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/sound/hd-audio/notes.rst b/Do

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-10 Thread Pavel Tatashin
Hi Will, Ok, I will add your patch at the end of my series. Thank you, Pavel > > I was thinking that you could just add my patch to the end of your series > and have the whole lot go up like that. If you want to merge it with your > patch, I'm fine with that too. > > Will > > -- > To unsubscribe

Re: sysbench throughput degradation in 4.13+

2017-10-10 Thread Christian Borntraeger
On 10/10/2017 07:26 PM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > >> On Tue, Oct 10, 2017 at 03:51:37PM +0100, Matt Fleming wrote: >>> On Fri, 06 Oct, at 11:36:23AM, Matt Fleming wrote: It's a similar story for hackbench-threads-{pipes,sockets}, i.e. pipes regress but per

Re: [PATCH][net-next] ipv6: fix dereference of rt6_ex before null check error

2017-10-10 Thread Martin KaFai Lau
On Tue, Oct 10, 2017 at 05:01:16PM +, Colin King wrote: > From: Colin Ian King > > Currently rt6_ex is being dereferenced before it is null checked > hence there is a possible null dereference bug. Fix this by only > dereferencing rt6_ex after it has been null checked. > > Detected by Coveri

Re: [f2fs-dev] [PATCH] f2fs: Fix bool initialization/comparison

2017-10-10 Thread Jaegeuk Kim
On 10/09, Chao Yu wrote: > On 2017/10/8 3:30, Joe Perches wrote: > > On Sat, 2017-10-07 at 23:33 +0900, Ju Hyung Park wrote: > >> Isn't this bogus? > >> > >> "bool" type in Linux kernel is a typedef to "_Bool" > >> and true/false is defined as 1 and 0 by enum at include/linux/stddef.h. > > > > Bog

[PATCH] mmc:host:sdhci-pci:V2-Addition of Arasan PCI controller with integrated phy.

2017-10-10 Thread Atul Garg
The Arasan controller is based on a FPGA platform and has integrated phy with specific phy registers used during the initialization and management of different modes. The phy and the controller are integrated and registers are very specific to Arasan. Arasan being an IP provider, licenses these IP

Re: [PATCH v2 5/5] btrfs: ensure that metadata and flush are issued from the root cgroup

2017-10-10 Thread Liu Bo
On Tue, Oct 10, 2017 at 09:43:26AM -0700, Tejun Heo wrote: > From 3bbed8c7747739cda48f592f165e8839da076a3a Mon Sep 17 00:00:00 2001 > > Issuing metdata or otherwise shared IOs from !root cgroup can lead to > priority inversion. This patch ensures that those IOs are always > issued from the root c

Re: [PATCH v3] mm, sysctl: make NUMA stats configurable

2017-10-10 Thread Michal Hocko
On Tue 10-10-17 08:39:47, Dave Hansen wrote: > On 10/10/2017 07:57 AM, Michal Hocko wrote: > >> But, let's be honest, this leaves us with an option that nobody is ever > >> going to turn on. IOW, nobody except a very small portion of our users > >> will ever see any benefit from this. > > But aren

Re: [PATCH v4 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-10 Thread Rik van Riel
On Tue, 2017-10-10 at 17:11 +0100, Gargi Sharma wrote: > > I have listed down the code for both idr_for_each and > idr_for_each_entry. > IMHO idr_for_each_entry is easier to read, but YMMV. :) > > void kill_task(int id, void *ptr, void *data) > { > struct *pid = ptr; > struct task_struct

Re: [PATCH][net-next] ipv6: fix dereference of rt6_ex before null check error

2017-10-10 Thread David Miller
From: Colin King Date: Tue, 10 Oct 2017 18:01:16 +0100 > From: Colin Ian King > > Currently rt6_ex is being dereferenced before it is null checked > hence there is a possible null dereference bug. Fix this by only > dereferencing rt6_ex after it has been null checked. > > Detected by CoverityS

[PATCH][net-next] ipv6: fix incorrect bitwise operator used on rt6i_flags

2017-10-10 Thread Colin King
From: Colin Ian King The use of the | operator always leads to true on the expression (rt->rt6i_flags | RTF_CACHE) which looks rather suspect to me. I believe this is fixed by using & instead to just check the RTF_CACHE entry bit. Detected by CoverityScan, CID#1457747 ("Wrong operator used") Fi

[PATCH] f2fs/crypto: drop crypto key at evict_inode only

2017-10-10 Thread Jaegeuk Kim
This patch avoids dropping crypto key in f2fs_drop_inode, so we can guarantee it happens only at evict_inode. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index dc05b16df514..f10a1b1380c2 100644 --- a/fs/f2fs/

Re: [PATCH 2/3] sched/fair: Introduce scaled capacity awareness in select_idle_sibling code path

2017-10-10 Thread Rohit Jain
Hi Atish, Thanks for the comments On 10/10/2017 08:54 AM, Atish Patra wrote: Signed-off-by: Rohit Jain ---   kernel/sched/fair.c | 37 -   1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index eaede5

Re: [PATCH v4 4/7] soc: mediatek: pwrap: update pwrap_init without slave programming

2017-10-10 Thread Matthias Brugger
On 09/21/2017 10:26 AM, sean.w...@mediatek.com wrote: From: Sean Wang pwrap initialization is highly associated with the base SoC, so update here for allowing pwrap_init without slave program which would be used to those PMICs without extra encryption on bus such as MT6380. Signed-off-by: Ch

[GIT PULL] thermal: new material for hikey for 4.15

2017-10-10 Thread Daniel Lezcano
Hi Rui, Eduardo, ** this is my first pull request for thermal, so I may have choose the wrong branch ** The changes are based on top of the thermal-soc branch. The pull request contains the following changes: - Reworked the hikey6220 thermal driver by improving the code, fixing the interrupt s

[PATCH v3 1/4] pipe: match pipe_max_size data type with procfs

2017-10-10 Thread Joe Lawrence
pipe_max_size is defined as an unsigned int: unsigned int pipe_max_size = 1048576; but its procfs/sysctl representation is an integer: static struct ctl_table fs_table[] = { ... { .procname = "pipe-max-size", .data = &pi

[PATCH 22/25] thermal/drivers/hisi: Add support for multi temp threshold

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao The next patches will provide the support for the hi3660 where the temperature sensor can have multiple alarm levels. In order to set the scene to support it, we have to convert the current code to be able to support multiple threshold values. [Daniel Lezcano: Restated the lo

[PATCH 25/25] arm64: dts: Register Hi3660's thermal sensor

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao Add binding for tsensor on H3660, this tsensor is used for SoC thermal control, it supports alarm interrupt. Signed-off-by: Kevin Wangtao Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff --git a

[PATCH 21/25] thermal/drivers/hisi: Prepare to add support for other hisi platforms

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao For platform compatibility, add the tsensor ops to a thermal data structure. Each platform has its own probe function to register proper tsensor ops function to the pointer, platform related resource request are also implemented in the platform probe function. Signed-off-by:

[PATCH 24/25] thermal/drivers/hisi: Add support for hi3660 SoC

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao This patch adds the support for thermal sensor on the Hi3660 SoC. Hi3660 tsensor support alarm interrupt and have three configurable alarm thresholds, it also has a configurable hysteresis interval, interrupt will be triggered when temperature rise above the alarm threshold or

[PATCH 23/25] dt-bindings: Document the hi3660 thermal sensor binding

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Kevin Wangtao Signed-off-by: Daniel Lezcano Acked-by: Rob Herring --- Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt | 9 + 1 file chan

[PATCH 19/25] thermal/drivers/hisi: Put platform code together

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao Reorganize the code for next patches by moving the functions upper in the file which will prevent a forward declaration. There is no functional change here. Signed-off-by: Kevin Wangtao Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 76 +

[PATCH 20/25] thermal/drivers/hisi: Add platform prefix to function name

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao As the next patches will provide support for the hikey3660's sensor, several functions with the same purpose but for different platforms will be introduced. In order to make a clear distinction between them, let's prefix the function names with the platform name. This patch h

[PATCH 16/25] thermal/drivers/qcom-spmi: Use devm_iio_channel_get

2017-10-10 Thread Daniel Lezcano
The iio_channel_get() function has now its devm_ version. Use it and remove all the rollback code for iio_channel_release() as well as the .remove ops. [Compiled tested only] Signed-off-by: Daniel Lezcano --- drivers/thermal/qcom-spmi-temp-alarm.c | 43 +++--- 1 fil

NACK: [PATCH][net-next] ipv6: fix incorrect bitwise operator used on rt6i_flags

2017-10-10 Thread Colin Ian King
On 10/10/17 18:55, Colin King wrote: > From: Colin Ian King > > The use of the | operator always leads to true on the expression > (rt->rt6i_flags | RTF_CACHE) which looks rather suspect to me. I > believe this is fixed by using & instead to just check the > RTF_CACHE entry bit. > > Detected by

[PATCH 18/25] thermal/drivers/hisi: Use round up step value

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao Use round up division to ensure the programmed value of threshold and the lag are not less than what we set, and in order to keep the accuracy while using round up division, the step value should be a rounded up value. There is no need to use hisi_thermal_round_temp. Signed-

[PATCH 17/25] thermal/drivers/hisi: Move the clk setup in the corresponding functions

2017-10-10 Thread Daniel Lezcano
From: Kevin Wangtao The sensor's clock is enabled and disabled outside of the probe and disable function. Moving the corresponding action in the hisi_thermal_setup() and hisi_thermal_disable_sensor(), factors out some lines of code and makes the code more symmetric. Signed-off-by: Kevin Wangtao

[PATCH 14/25] thermal/drivers/generic-iio-adc: Switch tz request to devm version

2017-10-10 Thread Daniel Lezcano
Everything mentionned here: https://lkml.org/lkml/2016/4/20/850 This driver was added before the devm_iio_channel_get() function version was merged. The sensor should be released before the iio channel, thus we had to use the non-devm version of thermal_zone_of_sensor_register(). Now the devm_ii

[PATCH 15/25] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-10-10 Thread Daniel Lezcano
There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and leading to a SoC reset. The behavior is reproducible on a hikey6220 with bad heat dissipati

[PATCH 13/25] thermal/drivers/hisi: Remove mutex_lock in the code

2017-10-10 Thread Daniel Lezcano
The mutex is used to protect against writes in the configuration register. That happens at probe time, with no possible race yet. Then when the module is unloaded and at suspend/resume. When the module is unloaded, it is an userspace operation, thus via a process. Suspending the system goes thro

[PATCH 12/25] thermal/drivers/hisi: Remove thermal data back pointer

2017-10-10 Thread Daniel Lezcano
The presence of the thermal data pointer in the sensor structure has the unique purpose of accessing the thermal data in the interrupt handler. The sensor pointer is passed when registering the interrupt handler, replace the cookie by the thermal data pointer, so the back pointer is no longer need

[PATCH v3 4/4] sysctl: check for UINT_MAX before unsigned int min/max

2017-10-10 Thread Joe Lawrence
Mikulas noticed in the existing do_proc_douintvec_minmax_conv() and do_proc_dopipe_max_size_conv() introduced in this patchset, that they inconsistently handle overflow and min/max range inputs: For example: 0 ... param->min - 1 ---> ERANGE param->min ... param->max ---> the value is accepted

Re: [PATCH 3/8] Documentation: fix input related doc refs

2017-10-10 Thread Takashi Iwai
On Tue, 10 Oct 2017 19:36:23 +0200, Tom Saeger wrote: > > Make `input` document refs valid including: > - joystick > - joystick-parport > > Signed-off-by: Tom Saeger For the sound part: Reviewed-by: Takashi Iwai thanks, Takashi > --- > Documentation/admin-guide/kernel-parameters.txt |

[PATCH] xhci: Cope with VIA VL805 readahead

2017-10-10 Thread Robin Murphy
The VIA VL805 host controller is well-known for causing problems on systems with IOMMUs enabled, ranging from triggering endless streams of fault messages to locking itself up completely. It appears that the root of the problem might be an over-aggressive prefetching of TRBs, wherein consuming comm

Re: [PATCH 6/8] Documentation: fix sound related doc refs

2017-10-10 Thread Takashi Iwai
On Tue, 10 Oct 2017 19:36:45 +0200, Tom Saeger wrote: > > Make sound doc refs valid. > > Signed-off-by: Tom Saeger Reviewed-by: Takashi Iwai thanks, Takashi > --- > Documentation/sound/hd-audio/notes.rst| 2 +- > Documentation/sound/kernel-api/writing-an-alsa-driver.rs

[PATCH v3 3/4] pipe: add proc_dopipe_max_size() to safely assign pipe_max_size

2017-10-10 Thread Joe Lawrence
pipe_max_size is assigned directly via procfs sysctl: static struct ctl_table fs_table[] = { ... { .procname = "pipe-max-size", .data = &pipe_max_size, .maxlen = sizeof(int), .mode

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