Re: [PATCH v3 2/2] KVM: X86: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-29 Thread Radim Krčmář
2018-03-27 17:48-0700, Wanpeng Li: > From: Wanpeng Li > > There is no easy way to force KVM to run an instruction through the emulator > (by design as that will expose the x86 emulator as a significant > attack-surface). > However, we do wish to expose the x86 emulator in case we are testing it

[PATCH v4 06/14] clk: qcom: cpu-8996: Add support to switch below 600Mhz

2018-03-29 Thread Ilia Lin
From: Rajendra Nayak The CPU clock controller's primary PLL operates on a single VCO range, between 600MHz and 3GHz. However the CPUs do support OPPs with frequencies between 300MHz and 600MHz. In order to support running the CPUs at those frequencies we end up having to lock the PLL at twice the

[PATCH v4 07/14] clk: qcom: Add ACD path to CPU clock driver for msm8996

2018-03-29 Thread Ilia Lin
The PMUX for each duplex allows for selection of ACD clock source. The DVM (Dynamic Variation Monitor) will flag an error when a voltage droop event is detected. This flagged error enables ACD to provide a div-by-2 clock, sourced from the primary PLL. The duplex will be provided the divided clock u

[PATCH v4 01/14] soc: qcom: Separate kryo l2 accessors from PMU driver

2018-03-29 Thread Ilia Lin
The driver provides kernel level API for other drivers to access the MSM8996 L2 cache registers. Separating the L2 access code from the PMU driver and making it public to allow other drivers use it. The accesses must be separated with a single spinlock, maintained in this driver. Signed-off-by: Il

Re: [PATCH] exofs: Avoid VLA in structures

2018-03-29 Thread Nick Desaulniers
On Tue, Mar 27, 2018 at 1:39 PM Kees Cook wrote: > On the quest to remove all VLAs from the kernel[1] this adjusts several > cases where allocation is made after an array of structures that points > back into the allocation. The allocations are changed to perform explicit > calculations instead o

Re: [PATCH v3 1/1] security: Add mechanism to safely (un)load LSMs after boot time

2018-03-29 Thread Casey Schaufler
On 3/29/2018 2:14 PM, Sargun Dhillon wrote: > This patch introduces a mechanism to add mutable hooks and immutable > hooks to the callback chain. It adds an intermediary item to the > chain which separates mutable and immutable hooks. Immutable hooks > are then marked as read-only, as well as the h

Re: [PATCH] x86/kvm: replace TASK_UNINTERRUPTIBLE with TASK_KILLABLE

2018-03-29 Thread Radim Krčmář
2018-03-16 00:57-1000, Joey Pabalinas: > There doesn't seem to be any advantage to having a *completely* > uninterruptible task here. For most users, allowing a task to respond > to the SIGKILL interrupt signal (all other signals are ignored just like > TASK_UNINTERRUPTIBLE) will not impact them at

Re: [PATCH 4/6] fpga: region: change fpga_region_register to have one param

2018-03-29 Thread Moritz Fischer
On Thu, Mar 29, 2018 at 03:42:51PM -0500, Alan Tull wrote: > On Thu, Mar 29, 2018 at 12:06 PM, Greg KH wrote: > > Hi Greg, > > >> -int fpga_region_register(struct device *dev, struct fpga_region *region) > >> +int fpga_region_register(struct fpga_region *region) > >> { > >> + struct device

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-03-29 Thread Jonathan Corbet
On Wed, 21 Mar 2018 21:22:16 +0200 Mike Rapoport wrote: > These patches convert files in Documentation/vm to ReST format, add an > initial index and link it to the top level documentation. > > There are no contents changes in the documentation, except few spelling > fixes. The relatively large d

Re: [PATCH] Documentation/process: update FUSE project website

2018-03-29 Thread Jonathan Corbet
On Tue, 27 Mar 2018 14:59:50 +0200 Martin Kepplinger wrote: > According to the old project site, https://sourceforge.net/projects/fuse/ > the project has moved to https://github.com/libfuse/ so we update the > link to point to the latest libfuse release. Applied, thanks. jon

Re: [PATCH 1/2] clk: qcom: clk-rpmh: Add QCOM RPMh clock driver

2018-03-29 Thread Evan Green
Hi Taniya, On Wed, Mar 28, 2018 at 11:19 PM Taniya Das wrote: > From: Amit Nischal > Add the RPMh clock driver to control the RPMh managed clock resources on > some of the Qualcomm Technologies, Inc. SoCs. > Signed-off-by: David Collins > Signed-off-by: Amit Nischal > Signed-off-by: Taniya

Re: [PATCH v2] PM / wakeup: use seq_open() to show wakeup stats

2018-03-29 Thread Rafael J. Wysocki
On Thursday, March 29, 2018 9:49:43 AM CEST Ganesh Mahendran wrote: > ping. > > 2018-03-05 16:47 GMT+08:00 Ganesh Mahendran : > > single_open() interface requires that the whole output must > > fit into a single buffer. This will lead to timeout when > > system memory is not in a good situation. >

Re: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 18:41]: > Thanks. I got call working including outgoing audio: in capture > settings, right->mic 1, Mic1 + Mic2 in alsamixer -> 100%. But I had > the other phone muted, so I don't yet know if such call would be of > usable quality. Great, good to hear that :) Tony > ---

Re: [PATCH v4 04/24] fpga: add device feature list support

2018-03-29 Thread Alan Tull
On Mon, Mar 26, 2018 at 9:35 PM, Wu Hao wrote: Hi Hao, Currently there is one set of functions that handles port enable, disable, and reset and it's in dfl.c and dfl.h, so that's not in any driver module that can be switched out if necessary for a different implementation of the port. Finding a

Re: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-29 Thread Tony Lindgren
* Pavel Machek [180329 18:07]: > On Thu 2018-03-29 09:34:50, Tony Lindgren wrote: > > * Pavel Machek [180329 16:09]: > > > > Then using the n_gsm ts 27.010 uart mux, I dial: > > > > > > > > ./ngsm-rw 1 "AT+CFUN=1" # connect to network > > > > U0001+CFUN:OK > > > > ./ngsm-rw 2 "AT+CMUT=0"

Re: [PATCH v4 1/3] Add notrace to lib/ucmpdi2.c

2018-03-29 Thread Palmer Dabbelt
On Thu, 29 Mar 2018 03:41:21 PDT (-0700), matt.redfe...@mips.com wrote: From: Palmer Dabbelt As part of the MIPS conversion to use the generic GCC library routines, Matt Redfearn discovered that I'd missed a notrace on __ucmpdi2(). This patch rectifies the problem. CC: Matt Redfearn CC: Anto

KASAN: stack-out-of-bounds Read in rdma_bind_addr (2)

2018-03-29 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0b412605ef5f5c64b31f19e2910b1d5eba9929c3 (Thu Mar 29 01:07:23 2018 +) Merge tag 'drm-fixes-for-v4.16-rc8' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=4b6afe4bdd99cb99

WARNING in refcount_sub_and_test (2)

2018-03-29 Thread syzbot
Hello, syzbot hit the following crash on bpf-next commit 22527437e0a0c96ee3153e9d0382942b0fd4f9dd (Thu Mar 29 02:36:15 2018 +) Merge branch 'nfp-bpf-updates' syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=c7b0dde061c523bc4b0f C reproducer: https://syzkaller.appspot.com/x/r

[GIT PULL 12/37] lightnvm: pblk: refactor bad block identification

2018-03-29 Thread Matias Bjørling
From: Javier González In preparation for the OCSSD 2.0 spec. bad block identification, refactor the current code to generalize bad block get/set functions and structures. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 3 - drivers/lightnvm/p

[GIT PULL 04/37] lightnvm: pblk: check data lines version on recovery

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg As a preparation for future bumps of data line persistent storage versions, we need to start checking the emeta line version during recovery. Also slit up the current emeta/smeta version into two bytes (major,minor). Recovering lines with the same major number as the current

Re: [PATCH 4.4 00/20] 4.4.126-stable review

2018-03-29 Thread Guenter Roeck
On Thu, Mar 29, 2018 at 03:01:19PM -0700, kernelci.org bot wrote: > stable-rc/linux-4.4.y boot: 105 boots: 1 failed, 92 passed with 10 offline, 2 > untried/unknown (v4.4.125-21-g290572f02954) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.4.y/kernel/v4.4.125-

[GIT PULL 26/37] lightnvm: complete geo structure with maxoc*

2018-03-29 Thread Matias Bjørling
From: Javier González Complete the generic geometry structure with the maxoc and maxocpu felds, present in the 2.0 spec. Also, expose them through sysfs. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 17 + include/linux/lightn

[GIT PULL 36/37] lightnvm: pblk: remove some unnecessary NULL checks

2018-03-29 Thread Matias Bjørling
From: Dan Carpenter Smatch complains that flush_workqueue() dereferences the work queue pointer but then we check if it's NULL on the next line when it's too late. These NULL checks can be removed because the module won't load if we can't allocate the work queues. Signed-off-by: Dan Carpenter

[GIT PULL 37/37] lightnvm: remove function name in strings

2018-03-29 Thread Matias Bjørling
For the sysfs functions, the function names are embedded into their error strings. If the function name later changes, the string may not be updated accordingly. Update the strings to use __func__ to avoid this. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 12 ++-- 1

[GIT PULL 35/37] lightnvm: pblk: don't recover unwritten lines

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg If the line has not been written to, we should not try to recover any data from it, so check the state of the chunks in the line before attempting to read smeta. Signed-off-by: Hans Holmberg Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnv

Re: [PATCH 4.9 00/28] 4.9.92-stable review

2018-03-29 Thread Guenter Roeck
On Thu, Mar 29, 2018 at 03:01:18PM -0700, kernelci.org bot wrote: > stable-rc/linux-4.9.y boot: 122 boots: 1 failed, 104 passed with 14 offline, > 3 untried/unknown (v4.9.91-29-gcdf42b7a5c27) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.91-2

[GIT PULL 31/37] lightnvm: pblk: check for supported version

2018-03-29 Thread Matias Bjørling
From: Javier González At this point, only 1.2 spec is supported, thus check for it. Also, since device-side L2P is only supported in the 1.2 spec, make sure to only check its value under 1.2. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 10 +

[GIT PULL 25/37] lightnvm: add shorten OCSSD version in geo

2018-03-29 Thread Matias Bjørling
From: Javier González Create a shorten version to use in the generic geometry. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 6 ++ include/linux/lightnvm.h | 8 2 files changed, 14 insertions(+) diff --git a/drivers/nvme/hos

Re: [PATCH] mfd: cros ec: spi: Fix "in progress" error signaling

2018-03-29 Thread Alexandru M Stan
On Tue, Mar 27, 2018 at 3:49 AM, Enric Balletbo Serra wrote: > I think that accessing to the ec console should give the same result, right? Yep, even better. > > In such case here is: > > Veyron Minnie ( ASUS Chromebook Flip C100PA ) >

[GIT PULL 30/37] lightnvm: implement get log report chunk helpers

2018-03-29 Thread Matias Bjørling
From: Javier González The 2.0 spec provides a report chunk log page that can be retrieved using the stangard nvme get log page. This replaces the dedicated get/put bad block table in 1.2. This patch implements the helper functions to allow targets retrieve the chunk metadata using get log page.

[GIT PULL 34/37] lightnvm: pblk: implement 2.0 support

2018-03-29 Thread Matias Bjørling
From: Javier González Implement 2.0 support in pblk. This includes the address formatting and mapping paths, as well as the sysfs entries for them. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 56 ++-- drivers/lightnvm/pblk-sysfs.c

[GIT PULL 32/37] lightnvm: pblk: rename ppaf* to addrf*

2018-03-29 Thread Matias Bjørling
From: Javier González In preparation for 2.0 support in pblk, rename variables referring to the address format to addrf and reserve ppaf for the 1.2 path. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 8 drivers/lightnvm/pblk-sysfs

[GIT PULL 33/37] lightnvm: pblk: implement get log report chunk

2018-03-29 Thread Matias Bjørling
From: Javier González In preparation of pblk supporting 2.0, implement the get log report chunk in pblk. Also, define the chunk states as given in the 2.0 spec. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 138 +++ dr

[GIT PULL 23/37] lightnvm: simplify geometry structure

2018-03-29 Thread Matias Bjørling
From: Javier González Currently, the device geometry is stored redundantly in the nvm_id and nvm_geo structures at a device level. Moreover, when instantiating targets on a specific number of LUNs, these structures are replicated and manually modified to fit the instance channel and LUN partition

[GIT PULL 20/37] lightnvm: centralize permission check for lightnvm ioctl

2018-03-29 Thread Matias Bjørling
From: Johannes Thumshirn Currently all functions for handling the lightnvm core ioctl commands do a check for CAP_SYS_ADMIN. Change this to fail early in nvm_ctl_ioctl(), so we don't have to duplicate the permission checks all over. Signed-off-by: Johannes Thumshirn Signed-off-by: Matias Bjørl

[GIT PULL 29/37] lightnvm: make address conversions depend on generic device

2018-03-29 Thread Matias Bjørling
From: Javier González On address conversions, use the generic device, instead of the target device. This allows to use conversions outside of the target's realm. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 4 ++-- include/linux/lightnvm.h | 8 +

[GIT PULL 28/37] lightnvm: add support for 2.0 address format

2018-03-29 Thread Matias Bjørling
From: Javier González Add support for 2.0 address format. Also, align address bits for 1.2 and 2.0 to be able to operate on channel and luns without requiring a format conversion. Use a generic address format for this purpose. Also, convert the generic operations to the generic format in pblk.

[GIT PULL 24/37] lightnvm: add minor version to generic geometry

2018-03-29 Thread Matias Bjørling
From: Javier González Separate the version between major and minor on the generic geometry and represent it through sysfs in the 2.0 path. The 1.2 path only shows the major version to preserve the existing user space interface. Signed-off-by: Javier González Signed-off-by: Matias Bjørling ---

[GIT PULL 13/37] lightnvm: make 1.2 data structures explicit

2018-03-29 Thread Matias Bjørling
Make the 1.2 data structures explicit, so it will be easy to identify the 2.0 data structures. Also fix the order of which the nvme_nvm_* are declared, such that they follow the nvme_nvm_command order. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 82 ++---

[GIT PULL 22/37] lightnvm: pblk: refactor init/exit sequences

2018-03-29 Thread Matias Bjørling
From: Javier González Refactor init and exit sequences to eliminate dependencies among init modules and improve readability. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 415 +-- 1 file changed, 207 in

[GIT PULL 27/37] lightnvm: normalize geometry nomenclature

2018-03-29 Thread Matias Bjørling
From: Javier González Normalize nomenclature for naming channels, luns, chunks, planes and sectors as well as derivations in order to improve readability. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 89 +

[GIT PULL 17/37] lightnvm: remove nvm_dev_ops->max_phys_sect

2018-03-29 Thread Matias Bjørling
The value of max_phys_sect is always static. Instead of defining it in the nvm_dev_ops structure, declare it as a global value. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 28 +++- drivers/lightnvm/pblk-init.c | 9 - drivers/lightnvm

[GIT PULL 21/37] lightnvm: Avoid validation of default op value

2018-03-29 Thread Matias Bjørling
From: Heiner Litz Fixes: 38401d231de65 ("lightnvm: set target over-provision on create ioctl") Signed-off-by: Heiner Litz Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/l

[GIT PULL 16/37] lightnvm: remove max_rq_size

2018-03-29 Thread Matias Bjørling
The field is no longer used. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 1 - include/linux/lightnvm.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index 521f520a1bb4..a59ad29600c3 100644 --- a/drivers/lightnvm/core.c +

[GIT PULL 19/37] lightnvm: fix bad block initialization

2018-03-29 Thread Matias Bjørling
From: Heiner Litz fix reading bad block device information to correctly setup the per line blk_bitmap during lightnvm initialization Signed-off-by: Heiner Litz Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[GIT PULL 18/37] nvme: lightnvm: add late setup of block size and metadata

2018-03-29 Thread Matias Bjørling
The nvme driver sets up the size of the nvme namespace in two steps. First it initializes the device with standard logical block and metadata sizes, and then sets the correct logical block and metadata size. Due to the OCSSD 2.0 specification relies on the namespace to expose these sizes for correc

[GIT PULL 15/37] lightnvm: add 2.0 geometry identification

2018-03-29 Thread Matias Bjørling
Implement the geometry data structures for 2.0 and enable a drive to be identified as one, including exposing the appropriate 2.0 sysfs entries. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 8 +- drivers/nvme/host/lightnvm.c | 334 +-

[GIT PULL 11/37] lightnvm: pblk: prevent race in pblk_rb_flush_point_set

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg Make sure that we are not advancing the sync pointer while we're adding bios to the write buffer entry completion list. This race condition results in bios not completing and was identified by a hang when running xfstest generic/113. Signed-off-by: Hans Holmberg Reviewed-by

[GIT PULL 05/37] lightnvm: pblk: export write amplification counters to sysfs

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg In a SSD, write amplification, WA, is defined as the average number of page writes per user page write. Write amplification negatively affects write performance and decreases the lifetime of the disk, so it's a useful metric to add to sysfs. In plkb's case, the number of writ

[GIT PULL 14/37] lightnvm: flatten nvm_id_group into nvm_id

2018-03-29 Thread Matias Bjørling
There are no groups in the 2.0 specification, make sure that the nvm_id structure is flattened before 2.0 data structures are added. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 25 ++- drivers/nvme/host/lightnvm.c | 100 +--

[GIT PULL 10/37] lightnvm: pblk: allow allocation of new lines during shutdown

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg When shutting down pblk the write buffer is flushed and if the current line can't fit the data in the write buffer we need to allocate a new line, so remove the check that prevents this. Signed-off-by: Hans Holmberg Reviewed-by: Javier González Signed-off-by: Matias Bjørlin

[GIT PULL 09/37] lightnvm: pblk: delete writer kick timer before stopping thread

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg Unless we delete the timer that wakes up the write thread before we stop the thread we risk re-starting the thread, so delete the timer first. Signed-off-by: Hans Holmberg Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-init.c | 2 +-

[GIT PULL 01/37] lightnvm/pblk-gc: Delete an error message for a failed memory allocation in pblk_gc_line_prepare_ws()

2018-03-29 Thread Matias Bjørling
From: Markus Elfring Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-gc.c | 4 +--- 1 file ch

[GIT PULL 08/37] lightnvm: pblk: add padding distribution sysfs attribute

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg When pblk receives a sync, all data up to that point in the write buffer must be comitted to persistent storage, and as flash memory comes with a minimal write size there is a significant cost involved both in terms of time for completing the sync and in terms of write amplifi

[GIT PULL 06/37] lightnvm: remove mlc pairs structure

2018-03-29 Thread Matias Bjørling
From: Matias Bjørling The known implementations of the 1.2 specification, and upcoming 2.0 implementation all expose a sequential list of pages to write. Remove the data structure, as it is no longer needed. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 14 +- 1

[GIT PULL 07/37] lightnvm: remove multiple groups in 1.2 data structure

2018-03-29 Thread Matias Bjørling
Only one id group from the 1.2 specification is supported. Make sure that only the first group is accessible. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/

Re: [PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-03-29 Thread Vivek Unune
Hi Florian, On Fri, Mar 9, 2018 at 5:05 PM, Vivek Unune wrote: >> > + >> > + port@5 { >> > + reg = <5>; >> > + ethernet = <&gmac0>; >> > + label = "cpu"; >> > + >> > + fixed-link { >> > + s

[GIT PULL 02/37] lightnvm: remove chnl_offset in nvme_nvm_identity

2018-03-29 Thread Matias Bjørling
The identity structure is initialized to zero in the beginning of the nvme_nvm_identity function. The chnl_offset is separately set to zero. Since both the variable and assignment is never changed, remove them. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 4 +--- 1 file chan

[GIT PULL 00/37] lightnvm patches for 4.17

2018-03-29 Thread Matias Bjørling
Hi Jens, Here is a bunch of patches for 4.17. They include: - Open-Channel 2.0 support by Javier and I. - Lots of refactoring patches to enable 2.0 support. - Fixes to pblk from Hans, Markus, and Dan. - Introduction of write amplication and padding counters. From Hans. - Fix from Johannes to

[GIT PULL 03/37] lightnvm: pblk: handle bad sectors in the emeta area correctly

2018-03-29 Thread Matias Bjørling
From: Hans Holmberg Unless we check if there are bad sectors in the entire emeta-area we risk ending up with valid bitmap / available sector count inconsistency. This results in lines with a bad chunk at the last LUN marked as bad, so go through the whole emeta area and mark up the invalid sector

Re: [PATCH net-next 0/6] rxrpc: Fixes

2018-03-29 Thread David Howells
David Miller wrote: > David, this GIT URL has tons of unrelated changes. It seems to bring in > the parts of Linus's tree that haven't proagated to 'net' yet. Sorry about that, I rebased on the wrong branch by accident. I've got some more fixes. Should I just give the lot to you to pull into

[PATCH] trace: Default to using trace_global_clock if sched_clock is unstable

2018-03-29 Thread Chris Wilson
Across suspend, we may see a very large drift in timestamps if the sched clock is unstable, prompting the global trace's ringbuffer code to warn and suggest switching to the global clock. Preempt this request by detecting when the sched clock is unstable (determined during late_initcall) and automa

[PATCH 2/6] x86/intel_rdt/mba_sc: Add support to enable/disable via mount option

2018-03-29 Thread Vikas Shivappa
Specify a new mount option "mba_MB" to enable the user to specify MBA bandwidth in Megabytes(Software Controller/SC) instead of b/w percentage: $mount -t resctrl resctrl [-o cdp[,cdpl2][mba_MB]] /sys/fs/resctrl Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.h | 5

[PATCH RFC 0/6] Memory b/w allocation software controller

2018-03-29 Thread Vikas Shivappa
Intel RDT memory bandwidth allocation (MBA) currently uses the resctrl interface and uses the schemata file in each rdtgroup to specify the max b/w percentage that is allowed to be used by the "threads" and "cpus" in the rdtgroup. These values are specified "per package" in each rdtgroup in the sch

[PATCH 6/6] x86/intel_rdt/mba_sc: Add support to dynamically update the memory b/w

2018-03-29 Thread Vikas Shivappa
The software controller uses the existing MBM overflow timer calls (once per second currently) to read the bandwidth to ensure that always "current b/w < user specified max b/w" Similarly when we see that the current b/w is too low, we also try to increase the b/w. We use a threshold b/w

[PATCH 1/6] x86/intel_rdt/mba_sc: Add documentation for MBA software controller

2018-03-29 Thread Vikas Shivappa
Add documentation about usage which includes the "schemata" format and use case for MBA software controller. Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_ui.txt | 63 ++ 1 file changed, 63 insertions(+) diff --git a/Documentation/x86/intel_rd

[PATCH 5/6] x86/intel_rdt/mba_sc: Add counting for MBA software controller

2018-03-29 Thread Vikas Shivappa
Currently we store the per package "total bytes" for each rdtgroup for Memory bandwidth management which exposed via "/sys/fs/resctrl//mon_data/mon_L3_00/mbm_local_bytes". The above user interface remains while we also add support to measure the per package b/w in Megabytes and the delta b/w when

[PATCH 4/6] x86/intel_rdt/mba_sc: Add schemata support

2018-03-29 Thread Vikas Shivappa
Currently user specifies the maximum memory bandwidth percentage per domain in the "schemata" file. When user updates the schemata, kernel writes the corresponding b/w percentage values to the IA32_MBA_THRTL_MSR. When MBA is expressed in MegaBytes(MB), the schemata format is changed to have the pe

[PATCH 3/6] x86/intel_rdt/mba_sc: Add initialization support

2018-03-29 Thread Vikas Shivappa
When MBA software controller is enabled, we need a per domain storage for user specified bandwidth in MB and the raw b/w percentage values which are programmed into the MSR. Add support for these data structures and initialization. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.

Re: [PATCH 07/30] aio: add delayed cancel support

2018-03-29 Thread Al Viro
On Thu, Mar 29, 2018 at 10:33:05PM +0200, Christoph Hellwig wrote: > The upcoming aio poll support would like to be able to complete the > iocb inline from the cancellation context, but that would cause a > double lock of ctx_lock with the current locking scheme. Move the > cancelation outside the

Re: [PATCH 1/2] regulator: add QCOM RPMh regulator driver

2018-03-29 Thread Doug Anderson
Hi, On Wed, Mar 21, 2018 at 12:07 PM, Stephen Boyd wrote: >> +static int rpmh_regulator_remove(struct platform_device *pdev) >> +{ >> + struct rpmh_pmic *pmic = platform_get_drvdata(pdev); >> + >> + rpmh_release(pmic->rpmh_client); > > I'm still lost on what rpmh_client is giving us b

Re: [PATCH v7 05/14] ext4, dax: introduce ext4_dax_aops

2018-03-29 Thread Dan Williams
On Thu, Mar 29, 2018 at 11:09 AM, Christoph Hellwig wrote: > On Thu, Mar 29, 2018 at 05:40:35PM +0200, Jan Kara wrote: >> So ext4_direct_IO() for IS_DAX() files will just bail out. So could you >> just provide ext4_dax_direct_IO() which will bail out and use it here? With >> a similar comment as i

[PATCH 0/2] Base enablement of IOMMU debugfs support

2018-03-29 Thread Gary R Hook
These patches create a top-level function to create a debugfs directory for the IOMMU, under which drivers may create and populate-specific directories for their device internals. Patch 1: general IOMMU enablement Patch 2: basic AMD enablement to demonstrate linkage with patch 1 Introduce a new K

[PATCH 1/2] iommu - Enable debugfs exposure of the IOMMU

2018-03-29 Thread Gary R Hook
Provide base enablement for using debugfs to expose internal data of an IOMMU driver. When enabled, create the /sys/kernel/debug/iommu directory. Emit a strong warning at boot time to indicate that this feature is enabled. Signed-off-by: Gary R Hook --- drivers/iommu/Kconfig | 11 +++

[PATCH 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU

2018-03-29 Thread Gary R Hook
Implement a skeleton framework for debugfs support in the AMD IOMMU. Signed-off-by: Gary R Hook --- drivers/iommu/Kconfig |6 ++--- drivers/iommu/Makefile|2 +- drivers/iommu/amd_iommu_debugfs.c | 47 + drivers/iommu/amd_iomm

RFC: Using regmap in ARM64 for EL3 register access

2018-03-29 Thread Thor Thayer
Hi, I'm working on an ARM64 architecture that needs to manipulate some protected registers that are only accessible in EL3. Linux is running at EL1 which doesn't have the proper permissions for these registers. Since U-Boot is running at the higher EL3, we communicate to the U-Boot functions

KASAN: use-after-free Read in snd_pcm_timer_resolution

2018-03-29 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0b412605ef5f5c64b31f19e2910b1d5eba9929c3 (Thu Mar 29 01:07:23 2018 +) Merge tag 'drm-fixes-for-v4.16-rc8' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=8e62ff4e07aa2ce8

WARNING in kill_block_super

2018-03-29 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0b412605ef5f5c64b31f19e2910b1d5eba9929c3 (Thu Mar 29 01:07:23 2018 +) Merge tag 'drm-fixes-for-v4.16-rc8' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=5a170e19c963a2e0

Re: [PATCH v7 07/14] fs, dax: use page->mapping to warn if truncate collides with a busy page

2018-03-29 Thread Dan Williams
On Thu, Mar 29, 2018 at 9:02 AM, Jan Kara wrote: > On Wed 21-03-18 15:57:48, Dan Williams wrote: [..] > I find it quite tricky that in case we pass zero page / empty entry into > dax_[dis]associate_entry(), it will not do anything because > dax_entry_size() will return 0. Can we add an explicit ch

[PATCH 3/6] spi: sun4i: coding style/readability improvements

2018-03-29 Thread Sergey Suloev
Minor changes to fulfill the coding style and improve the readability. Signed-off-by: Sergey Suloev --- drivers/spi/spi-sun4i.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index 2a49c22.

Re: [PATCH 4.15 00/47] 4.15.15-stable review

2018-03-29 Thread Shuah Khan
On 03/29/2018 11:59 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.15.15 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 4.14 00/43] 4.14.32-stable review

2018-03-29 Thread Shuah Khan
On 03/29/2018 11:59 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.32 release. > There are 43 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 4.9 00/28] 4.9.92-stable review

2018-03-29 Thread Shuah Khan
On 03/29/2018 12:00 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.92 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH 4.4 00/20] 4.4.126-stable review

2018-03-29 Thread Shuah Khan
On 03/29/2018 12:00 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.126 release. > There are 20 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [GIT PULL 00/37] lightnvm patches for 4.17

2018-03-29 Thread Jens Axboe
On 3/29/18 4:04 PM, Matias Bjørling wrote: > Hi Jens, > > Here is a bunch of patches for 4.17. They include: > > - Open-Channel 2.0 support by Javier and I. > - Lots of refactoring patches to enable 2.0 support. > - Fixes to pblk from Hans, Markus, and Dan. > - Introduction of write amplicati

Re: [PATCH 0/3] iommu/vt-d: Global PASID name space

2018-03-29 Thread Lu Baolu
Hi, On 03/29/2018 04:52 PM, Joerg Roedel wrote: > On Mon, Mar 26, 2018 at 08:38:21AM +0800, Lu Baolu wrote: >> Hi Joerg, >> >> A gentle ping. :-) >> >> Any comments on this patch set? > Yes, it doesn't apply on-top of my x86/vt-d branch. Please rebase it > after the merge-window to rc1 and re-send

Re: [PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-29 Thread kbuild test robot
Hi Minchan, I love your patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.16-rc7 next-20180329] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

[PATCH 2/6] spi: sun4i: restrict transfer length in PIO-mode

2018-03-29 Thread Sergey Suloev
There is no need to handle 3/4 empty/full interrupts as the maximum supported transfer length in PIO mode is 64 bytes for sun4i-family SoCs. As long as a problem was reported previously with filling FIFO on A10s then we stick with 63 bytes depth. Signed-off-by: Sergey Suloev --- drivers/spi/spi

Re: [PATCH] scsi: Introduce sdev_printk_ratelimited to throttle frequent printk

2018-03-29 Thread Bart Van Assche
On Wed, 2018-03-28 at 16:43 +0800, Wen Yang wrote: > There would be so many same lines printed by frequent prink if one > disk went wrong, like, > [ 546.185242] sd 0:1:0:0: rejecting I/O to offline device > [ 546.185258] sd 0:1:0:0: rejecting I/O to offline device > [ 546.185280] sd 0:1:0:0: re

Re: [PATCH] pcm_native: Remove VLA usage

2018-03-29 Thread kbuild test robot
Hi Kyle, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v4.16-rc7] [cannot apply to sound/for-next next-20180329] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: Regression in 4.16-rc7 - ipsec vpn broken

2018-03-29 Thread Derek Robson
Thanks, that patch has solved issue. On Thu, Mar 29, 2018 at 7:51 PM, Steffen Klassert wrote: > Please always make sure to Cc net...@vger.kernel.org > on networking problems. > > On Wed, Mar 28, 2018 at 10:21:32PM +, Derek Robson wrote: >> The ipsec VPN is broken in 4.16-rc7 and seem to have

Re: pull request: linux-firmware: update cxgb4 firmware

2018-03-29 Thread Josh Boyer
On Tue, Mar 27, 2018 at 4:57 PM, Ganesh Goudar wrote: > Hi, > > Kindly pull the new firmware from the following URL. > git://git.chelsio.net/pub/git/linux-firmware.git for-upstream > > Thanks > Ganesh > > The following changes since commit eb6ad87c6f38cde9ec1556f3de4171a5164deda8: > > cxgb4: upd

Re: [PATCH v3 2/2] drivers: soc: Add LLCC driver

2018-03-29 Thread Trilok Soni
Hi Stanimir, +/* Get the slice entry by index */ +static struct llcc_slice_desc *llcc_slice_get_entry(struct device *dev, int n) drop this *slice* word from function names Please note that we are activating/de-activating  a "slice" of the LLCC and not a whole LLCC. "slice" makes perfect sens

Re: [PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-29 Thread Minchan Kim
On Fri, Mar 30, 2018 at 07:42:37AM +0800, kbuild test robot wrote: > Hi Minchan, > > I love your patch! Yet something to improve: Glad to hear. It's first time someone loves my patch. ;-) > > [auto build test ERROR on staging/staging-testing] > [also build test ERROR on

[PATCH v3] hwmon, via-cputem: support new centaur CPUs

2018-03-29 Thread David Wang
New centaur CPUs(Familiy == 7) also support this cpu temperature sensor. Change from v2 to v3: *replace "goto" with "if...else.." according to suggestion from Guenter Change from v1 to v2: *fixed the wrong if condition in patch v1. Signed-off-by: David Wang --- drivers/hwmon/via-cpute

Re: [v3,4/4] watchdog: add Gateworks System Controller support

2018-03-29 Thread Guenter Roeck
On Wed, Mar 28, 2018 at 08:14:03AM -0700, Tim Harvey wrote: > Signed-off-by: Tim Harvey > --- > drivers/watchdog/Kconfig | 10 > drivers/watchdog/Makefile | 1 + > drivers/watchdog/gsc_wdt.c | 146 > + > 3 files changed, 157 insertions(+) >

linux-next: Signed-off-by missing for commit in the overlayfs tree

2018-03-29 Thread Stephen Rothwell
Hi Miklos, Commit cbf293becfa4 ("ovl: cleanup setting OVL_INDEX") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpGOkpUoJzao.pgp Description: OpenPGP digital signature

Re: [PATCH] pcm_native: Remove VLA usage

2018-03-29 Thread kbuild test robot
Hi Kyle, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v4.16-rc7] [cannot apply to sound/for-next next-20180329] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v5] ANDROID: binder: change down_write to down_read

2018-03-29 Thread Ganesh Mahendran
2018-03-29 14:54 GMT+08:00 Minchan Kim : > binder_update_page_range needs down_write of mmap_sem because > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > it is set. However, when I profile binder working, it seems > every binder buffers should be mapped in advance by binder_mma

Re: [PATCH] exofs: Avoid VLA in structures

2018-03-29 Thread Kees Cook
On Thu, Mar 29, 2018 at 2:32 PM, Nick Desaulniers wrote: > On Tue, Mar 27, 2018 at 1:39 PM Kees Cook wrote: >>[...] >> + if (numdevs > (INT_MAX - sizeof(*ios)) / >> + sizeof(struct ore_per_dev_state)) >> + return -ENOMEM; >> + size_ios = sizeof(*ios)

<    5   6   7   8   9   10   11   >