Re: Moving unmaintained filesystems to staging

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 08:46:02AM -0700, Matthew Wilcox wrote: > hfsplus - Mac filesystem. I don't think this is unmaintained, and it is pretty heavily used. > minix Still plenty of use.

Moving unmaintained filesystems to staging

2018-04-25 Thread Matthew Wilcox
Recently ncpfs got moved to staging. Also recently, we had some fuzzer developers report bugs in hfs, which they deem a security hole because Ubuntu attempts to automount an inserted USB device as hfs. We have no maintainer for hfs, and no likely prospect of anyone stepping up soon to become hfs

Re: [PATCH] sparc: vio: use put_device() instead of kfree()

2018-04-25 Thread Shannon Nelson
On 4/25/2018 7:56 AM, Arvind Yadav wrote: Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- arch/sparc/kernel/vio.c | 2 +- 1 file changed, 1 insertion(+), 1 de

Re: [PATCH 4.16 00/26] 4.16.5-stable review

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Apr 25, 2018 at 08:34:43AM -0700, Guenter Roeck wrote: > On Wed, Apr 25, 2018 at 12:33:09PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.16.5 release. > > There are 26 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH] i2c: at91: Read all available bytes at once

2018-04-25 Thread David Engraf
Hi Ludovic, Am 25.04.2018 um 17:08 schrieb Ludovic Desroches: Hi David, On Wed, Apr 18, 2018 at 02:40:55PM +0200, David Engraf wrote: With FIFO enabled it is possible to read multiple bytes at once in the interrupt handler as long as RXRDY is set. This may also reduce the number of interrupts.

Re: [PATCH v2] sched/rt: Rework for_each_process_thread() iterations in tg_has_rt_tasks()

2018-04-25 Thread Kirill Tkhai
Peter, could you please to give some comments on this? Kirill On 20.04.2018 13:06, Kirill Tkhai wrote: > From: Kirill Tkhai > > tg_rt_schedulable() iterates over all child task groups, > while tg_has_rt_tasks() iterates over all linked tasks. > In case of systems with big number of tasks, this

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Feb 14, 2018 at 06:20:35PM +0100, Cornelia Huck wrote: > [cc:ing Greg for his opinion on this; retaining quoting for context] Ick, just found this in my inbox, sorry for the delay... > > On Tue, 13 Feb 2018 17:15:02 -0700 > Alex Williamson wrote: > > > On Tue, 13 Feb 2018 14:09:01 +010

Re: [PATCH bpf-next] bpf: Allow bpf_jit_enable = 2 with BPF_JIT_ALWAYS_ON config

2018-04-25 Thread Daniel Borkmann
On 04/25/2018 04:14 PM, Alexei Starovoitov wrote: > On Wed, Apr 25, 2018 at 05:25:47PM +0800, Leo Yan wrote: >> >> If we have concern for security issue, should we remove support for >> 'bpf_jit_enable = 2' and modify the doc to reflect this change? > > I suggest to fix the doc. Agree, lets do th

Re: [PATCH 3/3] sched: limit cpu search and rotate search window for scalability

2018-04-25 Thread Peter Zijlstra
On Tue, Apr 24, 2018 at 05:10:34PM -0700, Subhra Mazumdar wrote: > On 04/24/2018 05:53 AM, Peter Zijlstra wrote: > > Why do you need to put a max on? Why isn't the proportional thing > > working as is? (is the average no good because of big variance or what) > Firstly the choosing of 512 seems ar

Re: [PATCH] IB/ipoib: fix ipoib_start_xmit()'s return type

2018-04-25 Thread Leon Romanovsky
On Tue, Apr 24, 2018 at 03:15:47PM +0200, Luc Van Oostenryck wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, but the implementation in this > driver returns an 'int'. > > Fix this by returning 'netdev_tx_t' in this driver too. >

Re: [PATCH] IB/nes: fix nes_netdev_start_xmit()'s return type

2018-04-25 Thread Leon Romanovsky
On Tue, Apr 24, 2018 at 08:36:12PM +0300, Leon Romanovsky wrote: > On Tue, Apr 24, 2018 at 03:15:45PM +0200, Luc Van Oostenryck wrote: > > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > > which is a typedef for an enum type, but the implementation in this > > driver returns

Re: [PATCH 4.16 00/26] 4.16.5-stable review

2018-04-25 Thread Guenter Roeck
On Wed, Apr 25, 2018 at 12:33:09PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.5 release. > There are 26 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.

Re: [PATCH v4 14/22] iommu: handle page response timeout

2018-04-25 Thread Jacob Pan
On Mon, 23 Apr 2018 16:36:23 +0100 Jean-Philippe Brucker wrote: > On Mon, Apr 16, 2018 at 10:49:03PM +0100, Jacob Pan wrote: > > When IO page faults are reported outside IOMMU subsystem, the page > > request handler may fail for various reasons. E.g. a guest received > > page requests but did not

Re: [PATCH v5 1/1] can: ucan: add driver for Theobroma Systems UCAN devices

2018-04-25 Thread Marc Kleine-Budde
On 04/11/2018 06:06 PM, Jakob Unterwurzacher wrote: > The UCAN driver supports the microcontroller-based USB/CAN > adapters from Theobroma Systems. There are two form-factors > that run essentially the same firmware: > > * Seal: standalone USB stick ( https://www.theobroma-systems.com/seal ) > >

Re: [PATCH v5 09/11] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 18:10 +0300, Andy Shevchenko wrote: Some typos fixed > I would preserve similar style of buf pointer handling, i.e. > > static char *valid_pointer_access(char **buf, char *end, char *buf > const void *ptr, struct printf_spec > spec) > { >

Re: noveau vs arm dma ops

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 12:04:29PM +0200, Daniel Vetter wrote: > > Coordinating the backport of a trivial helper in the arm tree is not > > the end of the world. Really, this cowboy attitude is a good reason > > why graphics folks have such a bad rep. You keep poking into random > > kernel intern

Re: [PATCH 2/3] drm/scheduler: Don't call wait_event_killable for signaled process.

2018-04-25 Thread Eric W. Biederman
Andrey Grodzovsky writes: > On 04/25/2018 03:14 AM, Daniel Vetter wrote: >> On Tue, Apr 24, 2018 at 05:37:08PM -0400, Andrey Grodzovsky wrote: >>> >>> On 04/24/2018 05:21 PM, Eric W. Biederman wrote: Andrey Grodzovsky writes: > On 04/24/2018 03:44 PM, Daniel Vetter wrote: >> On

Re: [PATCH] selftests:firmware: fixes a call to a wrong function name

2018-04-25 Thread Shuah Khan
On 04/25/2018 09:26 AM, Greg KH wrote: > On Mon, Apr 23, 2018 at 09:39:02AM -0700, Kees Cook wrote: >> On Mon, Apr 23, 2018 at 7:10 AM, Jeffrin Jose T >> wrote: >>> This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh >>> file which fixes a bug which calls to a wrong function

Re: [V2 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-04-25 Thread Liang, Kan
On 4/25/2018 10:59 AM, Jiri Olsa wrote: On Wed, Apr 25, 2018 at 10:42:27AM -0400, Liang, Kan wrote: On 4/25/2018 10:23 AM, Jiri Olsa wrote: On Wed, Apr 25, 2018 at 06:50:18AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang Perf stat doesn't count the uncore event aliases from the

Re: [PATCH] selftests:firmware: fixes a call to a wrong function name

2018-04-25 Thread Greg KH
On Mon, Apr 23, 2018 at 09:39:02AM -0700, Kees Cook wrote: > On Mon, Apr 23, 2018 at 7:10 AM, Jeffrin Jose T > wrote: > > This is a patch to the tools/testing/selftests/firmware/fw_run_tests.sh > > file which fixes a bug which calls to a wrong function name,which in turn > > blocks the executi

Re: [PATCH 1/9] firmware: some documentation fixes

2018-04-25 Thread Greg KH
On Wed, Apr 25, 2018 at 05:25:26PM +0200, Greg KH wrote: > On Mon, Apr 23, 2018 at 04:11:57PM -0400, Andres Rodriguez wrote: > > Including: > > - Fixup outdated kernel-doc paths > > - Slightly too short title underline > > - Some typos > > > > Signed-off-by: Andres Rodriguez > > --- > > Docum

Re: [PATCH] media: zoran: move to dma-mapping interface

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 01:15:18PM +0200, Arnd Bergmann wrote: > That thought had occurred to me as well. I removed the oldest ISDN > drivers already some years ago, and the OSS sound drivers > got removed as well, and comedi got converted to the dma-mapping > interfaces, so there isn't much left a

Re: [PATCH 1/9] firmware: some documentation fixes

2018-04-25 Thread Greg KH
On Mon, Apr 23, 2018 at 04:11:57PM -0400, Andres Rodriguez wrote: > Including: > - Fixup outdated kernel-doc paths > - Slightly too short title underline > - Some typos > > Signed-off-by: Andres Rodriguez > --- > Documentation/driver-api/firmware/request_firmware.rst | 16 >

Re: vmalloc with GFP_NOFS

2018-04-25 Thread Mikulas Patocka
On Wed, 25 Apr 2018, Michal Hocko wrote: > On Wed 25-04-18 08:43:32, Mikulas Patocka wrote: > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > On Tue 24-04-18 19:17:12, Mikulas Patocka wrote: > > > > > > > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > > > > > > S

Re: [PATCH net-next 1/2] tcp: add TCP_ZEROCOPY_RECEIVE support for zerocopy receive

2018-04-25 Thread Christoph Hellwig
On Wed, Apr 25, 2018 at 06:01:02AM -0700, Eric Dumazet wrote: > Thanks Christoph > > Note the high cost of zap_page_range(), needed to avoid -EBUSY being returned > from vm_insert_page() the second time TCP_ZEROCOPY_RECEIVE is used on one VMA. > > Ideally a vm_replace_page() would avoid this cost

Re: [RFC v5 PATCH] mm: shmem: make stat.st_blksize return huge page size if THP is on

2018-04-25 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v2 2/2] usb: dwc3: support clocks and resets for DWC3 core

2018-04-25 Thread Rob Herring
On Thu, Apr 19, 2018 at 08:03:38PM +0900, Masahiro Yamada wrote: > Historically, the clocks and resets are handled on the glue layer > side instead of the DWC3 core. For simple cases, dwc3-of-simple.c > takes care of arbitrary number of clocks and resets. The DT node > structure typically looks l

[PATCH] soc: qcom: smem: introduce qcom_smem_virt_to_phys()

2018-04-25 Thread Alex Elder
Create function qcom_smem_virt_to_phys(), which returns the physical address corresponding to a given SMEM item's virtual address. This feature is required for a driver that will soon be out for review. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 27 +++

[PATCH v4 09/16] y2038: sparc: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
sparc, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. Unlike most architectures, sparc actually succeeded in defining this right for big-endian CPUs, but as ever

[PATCH v4 08/16] y2038: parisc: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
parisc, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. Unlike most architectures, parisc actually succeeded in defining this right for big-endian CPUs, but as ev

[PATCH v4 01/16] y2038: asm-generic: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
Most architectures now use the asm-generic copy of the sysvipc data structures (msqid64_ds, semid64_ds, shmid64_ds), which use 32-bit __kernel_time_t on 32-bit architectures but have padding behind them to allow extending the type to 64-bit. Unfortunately, that fails on all big-endian architecture

[PATCH v4 10/16] y2038: powerpc: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
powerpc, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. powerpc has the same definition as parisc and sparc, but now also supports little-endian mode, which is n

[PATCH v4 14/16] y2038: ipc: Use __kernel_timespec

2018-04-25 Thread Arnd Bergmann
This is a preparatation for changing over __kernel_timespec to 64-bit times, which involves assigning new system call numbers for mq_timedsend(), mq_timedreceive() and semtimedop() for compatibility with future y2038 proof user space. The existing ABIs will remain available through compat code. S

[PATCH v4 16/16] y2038: ipc: Redirect ipc(SEMTIMEDOP, ...) to compat_ksys_semtimedop

2018-04-25 Thread Arnd Bergmann
32-bit architectures implementing 64BIT_TIME and COMPAT_32BIT_TIME need to have the traditional semtimedop() behavior with 32-bit timestamps for sys_ipc() by calling compat_ksys_semtimedop(), while those that are not yet converted need to keep using ksys_semtimedop() like 64-bit architectures do.

RE: [dm-devel] [PATCH 2/2] md: dm-verity: allow parallel processing of bio blocks

2018-04-25 Thread yael.chemla
> -Original Message- > From: Eric Biggers > Sent: Tuesday, 27 March 2018 9:55 > To: Yael Chemla > Cc: Alasdair Kergon ; Mike Snitzer ; > dm-de...@redhat.com; linux-kernel@vger.kernel.org; ofir.dr...@gmail.com; > Yael Chemla ; linux-cry...@vger.kernel.org; > gi...@benyossef.com > Subject

[PATCH v4 02/16] y2038: x86: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
This extends the x86 copy of the sysvipc data structures to deal with 32-bit user space that has 64-bit time_t and wants to see timestamps beyond 2038. Fortunately, x86 has padding for this purpose in all the data structures, so we can just add extra fields. With msgid64_ds and shmid64_ds, the dat

[PATCH v4 12/16] y2038: ipc: Use ktime_get_real_seconds consistently

2018-04-25 Thread Arnd Bergmann
In some places, we still used get_seconds() instead of ktime_get_real_seconds(), and I'm changing the remaining ones now to all use ktime_get_real_seconds() so we use the full available range for timestamps instead of overflowing the 'unsigned long' return value in year 2106 on 32-bit kernels. Sig

[PATCH v4 06/16] y2038: arm64: Extend sysvipc compat data structures

2018-04-25 Thread Arnd Bergmann
Both 32-bit amd 64-bit ARM use the asm-generic header files for their sysvipc data structures, so no special care is needed to make those work beyond y2038, with the one exception of compat mode: Since there is no asm-generic definition of the compat mode IPC structures, ARM64 provides its own copy

Re: [PATCH] perf/x86/intel: Don't enable freeze-on-smi for PerfMon V1

2018-04-25 Thread Liang, Kan
On 4/25/2018 10:57 AM, Peter Zijlstra wrote: On Tue, Apr 24, 2018 at 03:56:23PM -0400, kan.li...@linux.intel.com wrote: From: Kan Liang The SMM freeze feature was introduced since PerfMon V2. But the current code unconditionally enables the feature for all platforms. It can generate #GP exce

Re: [Qemu-devel] [RFC v2 1/2] virtio: add pmem driver

2018-04-25 Thread Pankaj Gupta
> > On Wed, Apr 25, 2018 at 04:54:13PM +0530, Pankaj Gupta wrote: > > diff --git a/include/uapi/linux/virtio_ids.h > > b/include/uapi/linux/virtio_ids.h > > index 6d5c3b2..5ebd049 100644 > > --- a/include/uapi/linux/virtio_ids.h > > +++ b/include/uapi/linux/virtio_ids.h > > @@ -43,5 +43,6 @@ > >

Re: [PATCH v5 09/11] vsprintf: Prevent crash when dereferencing invalid pointers

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > We already prevent crash when dereferencing some obviously broken > pointers. But the handling is not consistent. Sometimes we print > "(null)" > only for pure NULL pointer, sometimes for pointers in the first > page and sometimes also for poi

[PATCH v4 3/5] dt-bindings: remoteproc: Add Q6v5 Modem PIL binding for SDM845

2018-04-25 Thread Sibi Sankar
Add new compatible string for Qualcomm SDM845 SoCs Signed-off-by: Sibi Sankar --- Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/bindings/remotep

Re: [PATCH] i2c: at91: Read all available bytes at once

2018-04-25 Thread Ludovic Desroches
Hi David, On Wed, Apr 18, 2018 at 02:40:55PM +0200, David Engraf wrote: > With FIFO enabled it is possible to read multiple bytes > at once in the interrupt handler as long as RXRDY is > set. This may also reduce the number of interrupts. > > Signed-off-by: David Engraf > --- > drivers/i2c/buss

[PATCH v4 5/5] remoteproc: qcom: Always assert and deassert reset signals in SDM845

2018-04-25 Thread Sibi Sankar
SDM845 brings a new reset signal ALT_RESET which is a part of the MSS subsystem hence requires some of the active clks to be enabled before assert/deassert Reset the modem if the BOOT FSM does timeout Reset assert/deassert sequence vary across SoCs adding reset, adding start/stop helper functions

[PATCH v4 2/5] reset: qcom: AOSS (always on subsystem) reset controller

2018-04-25 Thread Sibi Sankar
Add reset controller driver for Qualcomm SDM845 SoC to control reset signals provided by AOSS for Modem, Venus ADSP, GPU, Camera, Wireless, Display subsystem Signed-off-by: Sibi Sankar --- drivers/reset/Kconfig | 9 +++ drivers/reset/Makefile | 1 + drivers/reset/reset-qco

[PATCH v4 4/5] remoteproc: qcom: Add support for mss remoteproc on SDM845

2018-04-25 Thread Sibi Sankar
>From SDM845, the Q6SS reset sequence on software side has been simplified with the introduction of boot FSM which assists in bringing the Q6 out of reset Add GLINK subdevice to allow definition of GLINK edge as a child of modem-pil Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_pi

[PATCH v4 0/5] Add support for remoteproc modem-pil on SDM845 SoCs

2018-04-25 Thread Sibi Sankar
This patch series add support for remoteproc Q6v5 modem-pil on Qualcomm SDM845 SoC. The first patch adds AOSS (Always on subsystem) reset driver to provide for mss reset line. The last couple of patches add the resets sequence for Q6 on SDM845 and adds helper functions for arbitrary reset assert/de

[PATCH v4 1/5] dt-bindings: reset: Add AOSS reset bindings for SDM845 SoCs

2018-04-25 Thread Sibi Sankar
Add SDM845 AOSS (always on subsystem) reset controller binding Signed-off-by: Sibi Sankar --- .../bindings/reset/qcom,aoss-reset.txt| 52 +++ include/dt-bindings/reset/qcom,sdm845-aoss.h | 17 ++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/dev

[PATCH v4 11/16] y2038: xtensa: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
xtensa, uses a nonstandard variation of the generic sysvipc data structures, intended to have the padding moved around so it can deal with big-endian 32-bit user space that has 64-bit time_t. xtensa tries hard to define the structures so they work in both big-endian and little-endian systems with

[PATCH v4 15/16] y2038: ipc: Enable COMPAT_32BIT_TIME

2018-04-25 Thread Arnd Bergmann
Three ipc syscalls (mq_timedsend, mq_timedreceive and and semtimedop) take a timespec argument. After we move 32-bit architectures over to useing 64-bit time_t based syscalls, we need seperate entry points for the old 32-bit based interfaces. This changes the #ifdef guards for the existing 32-bit

Re: [PATCH 4.14 000/183] 4.14.37-stable review

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Apr 25, 2018 at 07:41:10AM -0700, Guenter Roeck wrote: > On Wed, Apr 25, 2018 at 12:33:40PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.37 release. > > There are 183 patches in this series, all will be posted as a response > > to this one.

[PATCH v4 13/16] y2038: ipc: Report long times to user space

2018-04-25 Thread Arnd Bergmann
The shmid64_ds/semid64_ds/msqid64_ds data structures have been extended to contain extra fields for storing the upper bits of the time stamps, this patch does the other half of the job and and fills the new fields on 32-bit architectures as well as 32-bit tasks running on a 64-bit kernel in compat

Re: [PATCH v4 01/16] y2038: asm-generic: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
On Wed, Apr 25, 2018 at 3:22 PM, Arnd Bergmann wrote: > Most architectures now use the asm-generic copy of the sysvipc data > structures (msqid64_ds, semid64_ds, shmid64_ds), which use 32-bit > __kernel_time_t on 32-bit architectures but have padding behind them to > allow extending the type to 64

[PATCH v4 03/16] y2038: alpha: Remove unneeded ipc uapi header files

2018-04-25 Thread Arnd Bergmann
The alpha ipcbuf/msgbuf/sembuf/shmbuf header files are all identical to the version from asm-generic. This patch removes the files and replaces them with 'generic-y' statements as part of the y2038 series. Since there is no 32-bit syscall support for alpha, we don't need the other changes, but it'

[PATCH v4 05/16] y2038: s390: Remove unneeded ipc uapi header files

2018-04-25 Thread Arnd Bergmann
The s390 msgbuf/sembuf/shmbuf header files are all identical to the version from asm-generic. This patch removes the files and replaces them with 'generic-y' statements, to avoid having to modify each copy when we extend sysvipc to deal with 64-bit time_t in 32-bit user space. Note that unlike al

[PATCH v4 07/16] y2038: mips: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
MIPS is the weirdest case for sysvipc, because each of the three data structures is done differently: * msqid64_ds has padding in the right place so we could in theory extend this one to just have 64-bit values instead of time_t. As this does not work for most of the other combinations, we j

[PATCH v4 04/16] y2038: ia64: Remove unneeded ipc uapi header files

2018-04-25 Thread Arnd Bergmann
The ia64 ipcbuf/msgbuf/sembuf/shmbuf header files are all identical to the version from asm-generic. This patch removes the files and replaces them with 'generic-y' statements as part of the y2038 changes. While ia64 no longer has a compat mode and doesn't need the file any more, it seem nicer to

pull request: linux-firmware: update cxgb4 firmware

2018-04-25 Thread Ganesh Goudar
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 0caed67f661bfa9552b636d1e4af379eda75ed67: cxgb4: update firmware to revision 1.19.1.0 (2018-04-25 07:48:21 -0700) are availa

Re: [PATCH v5 21/23] ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings

2018-04-25 Thread Rob Herring
On Tue, Apr 24, 2018 at 11:49 AM, Srinivas Kandagatla wrote: > Thanks for the review. > > > On 24/04/18 17:25, Rob Herring wrote: >> >> On Wed, Apr 18, 2018 at 04:31:55PM +0100, srinivas.kandaga...@linaro.org >> wrote: >>> >>> From: Srinivas Kandagatla >>> >>> Add devicetree bindings documentatio

[PATCH] media: smiapp: fix timeout checking in smiapp_read_nvm

2018-04-25 Thread Colin King
From: Colin Ian King The current code decrements the timeout counter i and the end of each loop i is incremented, so the check for timeout will always be false and hence the timeout mechanism is just a dead code path. Potentially, if the RD_READY bit is not set, we could end up in an infinite loo

Re: Smatch check for Spectre stuff

2018-04-25 Thread Mark Rutland
On Wed, Apr 25, 2018 at 03:48:52PM +0100, Alan Cox wrote: > > 2) Compiler transformations can elide binary operations, so we cannot > >rely on source level AND (&) or MOD (%) operations to narrow the > >range of an expression, regardless of the types of either operand. > > > >This mean

[PATCH v4 02/16] y2038: x86: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
This extends the x86 copy of the sysvipc data structures to deal with 32-bit user space that has 64-bit time_t and wants to see timestamps beyond 2038. Fortunately, x86 has padding for this purpose in all the data structures, so we can just add extra fields. With msgid64_ds and shmid64_ds, the dat

[PATCH v4 04/16] y2038: ia64: Remove unneeded ipc uapi header files

2018-04-25 Thread Arnd Bergmann
The ia64 ipcbuf/msgbuf/sembuf/shmbuf header files are all identical to the version from asm-generic. This patch removes the files and replaces them with 'generic-y' statements as part of the y2038 changes. While ia64 no longer has a compat mode and doesn't need the file any more, it seem nicer to

[PATCH v4 03/16] y2038: alpha: Remove unneeded ipc uapi header files

2018-04-25 Thread Arnd Bergmann
The alpha ipcbuf/msgbuf/sembuf/shmbuf header files are all identical to the version from asm-generic. This patch removes the files and replaces them with 'generic-y' statements as part of the y2038 series. Since there is no 32-bit syscall support for alpha, we don't need the other changes, but it'

[PATCH v4 01/16] y2038: asm-generic: Extend sysvipc data structures

2018-04-25 Thread Arnd Bergmann
Most architectures now use the asm-generic copy of the sysvipc data structures (msqid64_ds, semid64_ds, shmid64_ds), which use 32-bit __kernel_time_t on 32-bit architectures but have padding behind them to allow extending the type to 64-bit. Unfortunately, that fails on all big-endian architecture

Re: [PATCH v5 08/11] vsprintf: Factor out %pO handler as kobject_string()

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > Move code from the long pointer() function. We are going to add a > check for > the access to the address that will make it even more complicated. > > Also it is better to warn about unknown specifier instead of falling > back to the %p behav

Re: [RFC PATCH v2 3/4] acpi: apei: Do not panic() when correctable errors are marked as fatal.

2018-04-25 Thread Alex G.
On 04/25/2018 09:01 AM, Borislav Petkov wrote: > On Mon, Apr 23, 2018 at 11:19:25PM -0500, Alex G. wrote: >> That tells you what FFS said about the error. > > I betcha those status and command values have a human-readable counterparts. > > Btw, what do you abbreviate with "FFS"? Firmware-first

Re: Lack of suspend/resume/shutdown ordering between GPIO providers and consumers

2018-04-25 Thread Rob Herring
On Tue, Apr 24, 2018 at 5:58 PM, Florian Fainelli wrote: > Hi Linus, Rafael, all > > Our GPIO controller driver: gpio-brcmstb.c has a shutdown callback which > gets invoked when the system is brought into poweroff aka S5. So far so > good, except that we also wish to use gpio_keys.c as a possible

Re: [PATCH v7 2/5] of: change overlay apply input data from unflattened to FDT

2018-04-25 Thread Alan Tull
On Tue, Apr 24, 2018 at 3:56 PM, Frank Rowand wrote: > Hi Alan, > > On 04/23/18 15:38, Frank Rowand wrote: >> Hi Jan, >> >> + Alan Tull for fpga perspective >> >> On 04/22/18 03:30, Jan Kiszka wrote: >>> On 2018-04-11 07:42, Jan Kiszka wrote: On 2018-04-05 23:12, Rob Herring wrote: > On T

Re: [V2 PATCH] perf parse-events: Specially handle uncore event alias in small groups

2018-04-25 Thread Jiri Olsa
On Wed, Apr 25, 2018 at 10:42:27AM -0400, Liang, Kan wrote: > > > On 4/25/2018 10:23 AM, Jiri Olsa wrote: > > On Wed, Apr 25, 2018 at 06:50:18AM -0700, kan.li...@linux.intel.com wrote: > > > From: Kan Liang > > > > > > Perf stat doesn't count the uncore event aliases from the same uncore > > >

Re: [PATCH v5 03/11] vsprintf: Consistent %pK handling for kptr_restrict == 0

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > restricted_pointer() pretends that it prints the address when > kptr_restrict > is set to zero. But it is never called in this situation. Instead, > pointer() falls back to ptr_to_id() and hashes the pointer. > > This patch removes the potent

Re: [PATCH v4 ipsec-next] xfrm: remove VLA usage in __xfrm6_sort()

2018-04-25 Thread Stefano Brivio
On Wed, 25 Apr 2018 07:46:39 -0700 Kees Cook wrote: > In the quest to remove all stack VLA usage removed from the kernel[1], > just use XFRM_MAX_DEPTH as already done for the "class" array. In one > case, it'll do this loop up to 5, the other caller up to 6. > > [1] https://lkml.org/lkml/2018/3/

Re: [PATCH] perf/x86/intel: Don't enable freeze-on-smi for PerfMon V1

2018-04-25 Thread Peter Zijlstra
On Tue, Apr 24, 2018 at 03:56:23PM -0400, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The SMM freeze feature was introduced since PerfMon V2. But the current > code unconditionally enables the feature for all platforms. It can > generate #GP exception, if the related FREEZE_WHILE_SMM b

[README] Reiteration of statement regarding NetDev conference and NetDev Society

2018-04-25 Thread David Miller
As the Linux networking maintainer, I feel the need to reiterate my statement of a month ago, and to provide some supporting facts on my end so that there is no confusion in the community on these issues. I am no longer associated with either the Netdev Society or their event, the NetDev conferen

Re: [PATCH v5 02/11] vsprintf: Add missing const ptr qualifier to prt_to_id()

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > vsprintf() must not change any data that parameters point to. > Let's add the missing const qualifier to ptr_to_id(). > > This patch does not change the existing behavior. > Reviewed-by: Andy Shevchenko > Signed-off-by: Petr Mladek > ---

Re: [PATCH v5 01/11] vsprintf: Shuffle misc pointer to string functions

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > This is just a preparation step for further changes. > > The patch does not change the code. > Reviewed-by: Andy Shevchenko > Signed-off-by: Petr Mladek > --- > lib/vsprintf.c | 244 -- > -

Re: [PATCH v5 07/11] vsprintf: Factor out %pV handler as va_format()

2018-04-25 Thread Andy Shevchenko
On Wed, 2018-04-25 at 13:12 +0200, Petr Mladek wrote: > Move the code from the long pointer() function. We are going to add a > check > for the access to the address that will make it even more complicated. > > This patch does not change the existing behavior. > +static char *va_format(char *buf

[PATCH] sparc: vio: use put_device() instead of kfree()

2018-04-25 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- arch/sparc/kernel/vio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/vio.

Re: [RFC PATCH 00/35] overlayfs: stack file operations

2018-04-25 Thread J. R. Okajima
Miklos Szeredi: > This patch series reverts the VFS hacks (with the exception of d_path) and I totally agree with removing d_real things. It must be good to the world. If I understand correctly, this series affects file_inode() too. So there may exist more commits to revert such as fea6d2

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-25 Thread Eugeniy Paltsev
On Mon, 2018-04-23 at 08:47 +0200, Ulf Hansson wrote: > On 20 April 2018 at 17:53, Eugeniy Paltsev > wrote: > > Hi Ulf, > > > > On Fri, 2018-04-20 at 09:35 +0200, Ulf Hansson wrote: > > > [...] > > > > > > > > > > > 2. Add missing stuff to support multislot mode in DesignWare MMC driver. > > >

Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device

2018-04-25 Thread Pankaj Gupta
> > On 04/25/2018 06:24 AM, Pankaj Gupta wrote: > > This patch adds virtio-pmem Qemu device. > > > > This device presents memory address range > > information to guest which is backed by file > > backend type. It acts like persistent memory > > device for KVM guest. Guest can perform read > > an

Re: DOS by unprivileged user

2018-04-25 Thread Alan Cox
> > I think memory allocation and io waits can't be decoupled from > > scheduling as they are now. > > The scheduler is not decoupled from either, it is intimately involved > in both. However, none of the decision making smarts for either reside > in the scheduler, nor should they. It belongs

Re: [PATCH 1/2] net: can: sja1000: Replace mdelay with usleep_range in peak_pci_probe

2018-04-25 Thread Marc Kleine-Budde
On 04/11/2018 03:42 AM, Jia-Ju Bai wrote: > peak_pci_probe() is never called in atomic context. > > peak_pci_probe() is set as ".probe" in struct pci_driver. > > Despite never getting called from atomic context, peak_pci_probe() > calls mdelay() to busily wait. > This is not necessary and can be

Re: [RFC v2 1/2] virtio: add pmem driver

2018-04-25 Thread Michael S. Tsirkin
On Wed, Apr 25, 2018 at 04:54:13PM +0530, Pankaj Gupta wrote: > diff --git a/include/uapi/linux/virtio_ids.h b/include/uapi/linux/virtio_ids.h > index 6d5c3b2..5ebd049 100644 > --- a/include/uapi/linux/virtio_ids.h > +++ b/include/uapi/linux/virtio_ids.h > @@ -43,5 +43,6 @@ > #define VIRTIO_ID_INP

Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device

2018-04-25 Thread Pankaj Gupta
> > Hi, > > > > Compile failures are because Qemu 'Memory-Device changes' are not yet > > in qemu master. As mentioned in Qemu patch message patch is > > dependent on 'Memeory-device' patches by 'David Hildenbrand'. > > > On 04/25/2018 06:24 AM, Pankaj Gupta wrote: > > This PV device code is d

Re: [dummy_stm_init] swapper/0: page allocation failure: order:9, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)

2018-04-25 Thread Alexander Shishkin
On Tue, Apr 24, 2018 at 02:27:35PM +0300, Kirill A. Shutemov wrote: > On Sun, Apr 22, 2018 at 07:44:39AM -0600, Michal Hocko wrote: > > On Thu 19-04-18 13:21:14, Kirill A. Shutemov wrote: > > > On Thu, Apr 19, 2018 at 08:51:11AM +0200, Michal Hocko wrote: > > > > On Thu 19-04-18 10:36:39, Wu Fenggu

[PATCH] remoteproc: Proxy unvote clk/regs in handover context

2018-04-25 Thread Sibi Sankar
Introduce interrupt handler for smp2p ready interrupt and handle start completion. Remove the proxy votes for clocks and regulators in the handover interrupt context. Disable wdog and fatal interrupts on remoteproc device stop and re-enable them on remoteproc device start. Signed-off-by: Sibi Sank

Re: [PATCH v3 09/15] ARM: dts: dra72-evm-common: Add wilink8 wlan support

2018-04-25 Thread Rob Herring
On Wed, Apr 25, 2018 at 7:54 AM, Kishon Vijay Abraham I wrote: > From: Hari Nagalla > > Wilink8 module is a combo wireless connectivity card based > on Texas Instrument's wl18xx solution. > > Add support for the wlan capabilities of this module by muxing > the relevant mmc lines, and setting the

Re: Smatch check for Spectre stuff

2018-04-25 Thread Alan Cox
> 2) Compiler transformations can elide binary operations, so we cannot >rely on source level AND (&) or MOD (%) operations to narrow the >range of an expression, regardless of the types of either operand. > >This means that source-level AND and MOD operations cannot be relied >upo

Re: [RFC v5 PATCH] mm: shmem: make stat.st_blksize return huge page size if THP is on

2018-04-25 Thread Kirill A. Shutemov
On Wed, Apr 25, 2018 at 10:13:53PM +0800, Yang Shi wrote: > Since tmpfs THP was supported in 4.8, hugetlbfs is not the only > filesystem with huge page support anymore. tmpfs can use huge page via > THP when mounting by "huge=" mount option. > > When applications use huge page on hugetlbfs, it jus

Re: [RFC v2 2/2] pmem: device flush over VIRTIO

2018-04-25 Thread Pankaj Gupta
> > On Wed, Apr 25, 2018 at 4:24 AM, Pankaj Gupta wrote: > > This patch adds functionality to perform > > flush from guest to hosy over VIRTIO > > when 'ND_REGION_VIRTIO'flag is set on > > nd_negion. Flag is set by 'virtio-pmem' > > driver. > > > > Signed-off-by: Pankaj Gupta > > --- > > drive

Re: [RFC][PATCH] printk: do not call console drivers from printk_safe context

2018-04-25 Thread Petr Mladek
On Tue 2018-04-24 10:51:04, Steven Rostedt wrote: > On Tue, 24 Apr 2018 11:28:02 +0900 > Sergey Senozhatsky wrote: > > > Calling console drivers from printk_safe() context does not really > > make call_console_drivers() any safer, because printk_safe() has > > nothing to do with console drivers o

Re: [PATCH v3 11/15] ARM: dts: dra7-evm: Add wilink8 wlan support

2018-04-25 Thread Rob Herring
On Wed, Apr 25, 2018 at 7:54 AM, Kishon Vijay Abraham I wrote: > From: Hari Nagalla > > The wilink module is a combo wireless connectivity sdio > card based on Texas Instrument's wl18xx solution. It is a > 4-wire, 1.8V, embedded sdio wlan device with an external > irq line and is power-controlled

Re: [PATCH] remoteproc: rename "crashed" parameter

2018-04-25 Thread Alex Elder
On 04/25/2018 08:49 AM, Arnaud Pouliquen wrote: > Hello Alex, > > I have already proposed it few weeks ago. > > https://lkml.org/lkml/2018/4/10/192 > > could you ack it, if you test it on your side? I am unable to test it. I found the bug by inspection (perhaps as you did). However I'll give

[PATCH] arm64: dts: qcom: Add SDM845 SMEM nodes

2018-04-25 Thread Sibi Sankar
Add all the necessary dt nodes to support SMEM driver on SDM845. It also adds the required memory carveouts so that the kernel does not access memory that is in use. Signed-off-by: Sibi Sankar --- This patch depends on: https://patchwork.kernel.org/patch/10276419/ https://patchwork.kernel.org/pa

[PATCH v4 ipsec-next] xfrm: remove VLA usage in __xfrm6_sort()

2018-04-25 Thread Kees Cook
In the quest to remove all stack VLA usage removed from the kernel[1], just use XFRM_MAX_DEPTH as already done for the "class" array. In one case, it'll do this loop up to 5, the other caller up to 6. [1] https://lkml.org/lkml/2018/3/7/621 Co-developed-by: Andreas Christoforou Signed-off-by: Kee

Re: vmalloc with GFP_NOFS

2018-04-25 Thread Michal Hocko
On Wed 25-04-18 08:43:32, Mikulas Patocka wrote: > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > On Tue 24-04-18 19:17:12, Mikulas Patocka wrote: > > > > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > > > On Wed 25-04-18 00:18:40, Richard Weinberger wrote: > > > > > Am Dien

Re: [PATCH 0/6] arm64: untag user pointers passed to the kernel

2018-04-25 Thread Andrey Konovalov
On Thu, Apr 19, 2018 at 11:33 AM, Kirill A. Shutemov wrote: > On Wed, Apr 18, 2018 at 08:53:09PM +0200, Andrey Konovalov wrote: >> Hi! >> >> arm64 has a feature called Top Byte Ignore, which allows to embed pointer >> tags into the top byte of each pointer. Userspace programs (such as >> HWASan, a

[PATCH] IA64: tiocx: use put_device() instead of kfree()

2018-04-25 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- arch/ia64/sn/kernel/tiocx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/sn/kerne

Linux 4.17.0-rc2 - WARNING: inconsistent lock state

2018-04-25 Thread Shuah Khan
I am seeing the following on my system with 4.17-rc2. Probably in 4.17-rc1 as well. Something to be concerned about. Is this related to Commit: a45403b51582a87872927a3e0fc0a389c26867f1 ext4: always initialize the crc32c checksum driver? WARNING: inconsistent lock

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