Re: [PATCH 4/9] firmware: use () to terminate kernel-doc function names

2018-04-17 Thread Randy Dunlap
On 04/17/18 08:33, Andres Rodriguez wrote: > The kernel-doc spec dictates a function name ends in (). > > Signed-off-by: Andres Rodriguez Acked-by: Randy Dunlap Thanks. > --- > drivers/base/firmware_loader/fallback.c | 8 > drivers/base/firmware_loader/main.c | 22 +++--

[PATCH 1/1] arm: dts: rockchip: default serial for Tinker Board

2018-04-17 Thread Heinrich Schuchardt
The Asus Tinker Board uses serial 2 with 115,200 baud by default for communication in U-Boot. The same value is also chosen for other RK3288 boards. So let us set the same value in the Tinker Board device tree. Signed-off-by: Heinrich Schuchardt --- arch/arm/boot/dts/rk3288-tinker.dts | 4

Re: [v4 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-17 Thread Yang Shi
On 4/17/18 11:29 AM, Andrew Morton wrote: On Sun, 15 Apr 2018 02:24:51 +0800 Yang Shi wrote: mmap_sem is on the hot path of kernel, and it very contended, but it is abused too. It is used to protect arg_start|end and evn_start|end when reading /proc/$PID/cmdline and /proc/$PID/environ, but i

Re: usercopy whitelist woe in scsi_sense_cache

2018-04-17 Thread Kees Cook
On Tue, Apr 17, 2018 at 1:28 PM, Jens Axboe wrote: > It has to be the latter bfqq->dispatched increment, as those are > transient (and bfqd is not). Yeah, and I see a lot of comments around the lifetime of rq and bfqq, so I assume something is not being locked correctly. #define RQ_BFQQ(rq)

Re: [PATCH v3 07/10] Documentation: dt-bindings: Add documents for PECI hwmon client drivers

2018-04-17 Thread Jae Hyun Yoo
On 4/16/2018 4:51 PM, Jae Hyun Yoo wrote: On 4/16/2018 4:22 PM, Jae Hyun Yoo wrote: On 4/16/2018 11:14 AM, Rob Herring wrote: On Tue, Apr 10, 2018 at 11:32:09AM -0700, Jae Hyun Yoo wrote: This commit adds dt-bindings documents for PECI cputemp and dimmtemp client drivers. [...] +Example

Re: [v4 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-17 Thread Cyrill Gorcunov
On Tue, Apr 17, 2018 at 11:29:57AM -0700, Andrew Morton wrote: > On Sun, 15 Apr 2018 02:24:51 +0800 Yang Shi > wrote: > > > mmap_sem is on the hot path of kernel, and it very contended, but it is > > abused too. It is used to protect arg_start|end and evn_start|end when > > reading /proc/$PID/cm

Re: [Patch v2 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-17 Thread Steve French
On Tue, Apr 17, 2018 at 3:11 PM, Long Li via samba-technical wrote: >> Subject: RE: [Patch v2 2/6] cifs: Allocate validate negotiation request >> through >> kmalloc >> >> >> >> > -Original Message- >> > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- >> > ow...@vger.kernel.org]

Re: [PATCH v3 1/2] perf: riscv: preliminary RISC-V support

2018-04-17 Thread Alex Solomatnikov
On Tue, Apr 17, 2018 at 1:38 AM, Alan Kao wrote: > +static inline void write_counter(int idx, u64 value) > +{ > + /* currently not supported */ > +} CSR writes can be emulated: https://github.com/riscv/riscv-pk/pull/98 Or at least write_counter() should have BUG() or WARN_ONCE() or someth

Re: [PATCH] efi: Fix the size not consistent issue when unmapping memory map

2018-04-17 Thread Randy Wright
On Mon, Apr 16, 2018 at 06:35:22PM -0600, Randy Wright wrote: > ... I will plan to run the same test tomorrow on > a build of the SuSE 4.4.120-94.17 kernel, on which I had also reported > the original bug. I carried out the test on the older kernel today. I found the version of arch/x86/kernel/ke

Re: [RFC PATCH 19/35] ovl: readd reflink/copyfile/dedup support

2018-04-17 Thread Amir Goldstein
On Thu, Apr 12, 2018 at 6:08 PM, Miklos Szeredi wrote: > Since set of arguments are so similar, handle in a common helper. > > Signed-off-by: Miklos Szeredi > --- > fs/overlayfs/file.c | 79 > + > 1 file changed, 79 insertions(+) > > diff --gi

Re: usercopy whitelist woe in scsi_sense_cache

2018-04-17 Thread Jens Axboe
On 4/17/18 2:25 PM, Kees Cook wrote: > On Tue, Apr 17, 2018 at 1:20 PM, Kees Cook wrote: >> On Tue, Apr 17, 2018 at 1:03 PM, Kees Cook wrote: >>> The above bfq_dispatch_request+0x99/0xad0 is still >>> __bfq_dispatch_request at block/bfq-iosched.c:3902, just with KASAN >>> removed. 0x99 is 153 dec

Re: usercopy whitelist woe in scsi_sense_cache

2018-04-17 Thread Kees Cook
On Tue, Apr 17, 2018 at 1:20 PM, Kees Cook wrote: > On Tue, Apr 17, 2018 at 1:03 PM, Kees Cook wrote: >> The above bfq_dispatch_request+0x99/0xad0 is still >> __bfq_dispatch_request at block/bfq-iosched.c:3902, just with KASAN >> removed. 0x99 is 153 decimal: >> >> (gdb) disass bfq_dispatch_reque

Re: [PATCH] KVM: X86: Allow userspace to define the microcode version

2018-04-17 Thread Eduardo Habkost
On Tue, Apr 17, 2018 at 06:40:58PM +0800, Wanpeng Li wrote: > Cc Eduardo, > 2018-02-26 20:41 GMT+08:00 Paolo Bonzini : > > On 26/02/2018 13:22, Borislav Petkov wrote: > >> On Mon, Feb 26, 2018 at 01:18:07PM +0100, Paolo Bonzini wrote: > In this context, "host-initiated" write means written by

Re: usercopy whitelist woe in scsi_sense_cache

2018-04-17 Thread Kees Cook
On Tue, Apr 17, 2018 at 1:03 PM, Kees Cook wrote: > The above bfq_dispatch_request+0x99/0xad0 is still > __bfq_dispatch_request at block/bfq-iosched.c:3902, just with KASAN > removed. 0x99 is 153 decimal: > > (gdb) disass bfq_dispatch_request > Dump of assembler code for function bfq_dispatch_requ

Re: [PATCH 0/9] x86/dumpstack: Cleanups and user opcode bytes Code: section, v2

2018-04-17 Thread Josh Poimboeuf
On Tue, Apr 17, 2018 at 04:40:42PM +0200, Borislav Petkov wrote: > On Thu, Mar 15, 2018 at 10:51:06AM -0700, Linus Torvalds wrote: > > This version looks ok to me. I'm sure there's room for tweaking here, > > but I'm not seeing anything alarming. > > So I'm redoing the series ontop of 17-rc1 and I

Re: [PATCH v3 1/2] perf: riscv: preliminary RISC-V support

2018-04-17 Thread Alex Solomatnikov
This does not compile: /freedom-u-sdk/linux/arch/riscv/kernel/perf_event.c: In function 'riscv_pmu_stop': /freedom-u-sdk/linux/arch/riscv/kernel/perf_event.c:258:12: error: 'const struct riscv_pmu' has no member named 'read' riscv_pmu->read(event); ^~ /freedom-u-sdk/linux/arch/riscv

RE: [Patch v2 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-17 Thread Long Li
> Subject: RE: [Patch v2 2/6] cifs: Allocate validate negotiation request > through > kmalloc > > > > > -Original Message- > > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > > ow...@vger.kernel.org] On Behalf Of Long Li > > Sent: Tuesday, April 17, 2018 2:17 PM > > To: Ste

Re: [PATCH v2 2/2] media: Add a driver for the ov7251 camera sensor

2018-04-17 Thread Sakari Ailus
Hi Todor, On Tue, Apr 17, 2018 at 06:32:07PM +0300, Todor Tomov wrote: ... > >> +static int ov7251_regulators_enable(struct ov7251 *ov7251) > >> +{ > >> + int ret; > >> + > >> + ret = regulator_enable(ov7251->io_regulator); > > > > How about regulator_bulk_enable() here, and bulk_disable below?

Re: [PATCH v2 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-04-17 Thread Doug Anderson
Hi, On Fri, Apr 13, 2018 at 7:50 PM, David Collins wrote: > Introduce bindings for RPMh regulator devices found on some > Qualcomm Technlogies, Inc. SoCs. These devices allow a given > processor within the SoC to make PMIC regulator requests which > are aggregated within the RPMh hardware block

Re: usercopy whitelist woe in scsi_sense_cache

2018-04-17 Thread Kees Cook
On Mon, Apr 16, 2018 at 8:12 PM, Kees Cook wrote: > With a hardware watchpoint, I've isolated the corruption to here: > > bfq_dispatch_request+0x2be/0x1610: > __bfq_dispatch_request at block/bfq-iosched.c:3902 > 3900if (rq) { > 3901inc_in_driver_start_rq: > 3902

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

2018-04-17 Thread Doug Anderson
Hi, On Fri, Apr 13, 2018 at 7:50 PM, David Collins wrote: > +#define RPMH_REGULATOR_DISABLE 0x0 > +#define RPMH_REGULATOR_ENABLE 0x1 In the last version Stephen said he didn't like the above two #defines and you said you'd remove them, yet they are still here. E

RE: [Patch v2 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-17 Thread Parav Pandit
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Tuesday, April 17, 2018 2:17 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org; linux-kernel@vger.kernel.org; linux-

Re: [PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-17 Thread kbuild test robot
: https://github.com/0day-ci/linux/commits/Kirill-Marinushkin/staging-bcm2835-audio-Disconnect-and-free-vchi_instance-on-module_exit/20180417-193147 config: arm-allmodconfig compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel

Re: 4.17.0-rc1 doesn't boot.

2018-04-17 Thread Dave Hansen
Heh, your .config is insidious: 9ffe3000 B __brk_base 9ffe3000 B __bss_stop 9fff3000 b .brk.dmi_alloc a0003000 b .brk.early_pgt_alloc a000f000 B _end a000f000 B __brk_limit dmi_alloc is __init, so it gets freed at some point and the PTEs zeroed out.

Re: [PATCHv3 06/11] asm-generic: mm_hooks: allow hooks to be overridden individually

2018-04-17 Thread Arnd Bergmann
On Tue, Apr 17, 2018 at 8:37 PM, Mark Rutland wrote: > Currently, an architecture must either implement all of the mm hooks > itself, or use all of those provided by the asm-generic implementation. > When an architecture only needs to override a single hook, it must copy > the stub implementations

[spi:for-4.18 12/12] drivers/spi/spi-pxa2xx.c:914:5: sparse: symbol 'pxa2xx_spi_transfer_one' was not declared. Should it be static?

2018-04-17 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-4.18 head: d5898e19c0d74cd41b9f5c8c8ea87e559c3fe0c1 commit: d5898e19c0d74cd41b9f5c8c8ea87e559c3fe0c1 [12/12] spi: pxa2xx: Use core message processing loop reproduce: # apt-get install sparse git checkout

[RFC PATCH spi] spi: pxa2xx: pxa2xx_spi_transfer_one() can be static

2018-04-17 Thread kbuild test robot
Fixes: d5898e19c0d7 ("spi: pxa2xx: Use core message processing loop") Signed-off-by: Fengguang Wu --- spi-pxa2xx.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index c852ea5..40f1346 100644 --- a/drivers/spi/spi-

Re: [PATCH/RFC] crypto: Add platform dependencies for CRYPTO_DEV_CCREE

2018-04-17 Thread Arnd Bergmann
On Tue, Apr 17, 2018 at 8:14 PM, Geert Uytterhoeven wrote: > The ARM TrustZone CryptoCell is found on ARM SoCs only. Hence make it > depend on ARM or ARM64, unless compile-testing. > > Drop the dependency on HAS_DMA, as DMA is always available on ARM and > ARM64 platforms, and doing so will incre

[PATCH v3 18/20] spi: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [RFC PATCH 16/35] ovl: readd lsattr/chattr support

2018-04-17 Thread Amir Goldstein
On Thu, Apr 12, 2018 at 6:08 PM, Miklos Szeredi wrote: > Implement FS_IOC_GETFLAGS and FS_IOC_SETFLAGS. > > Needs vfs_ioctl() exported to modules. > > Signed-off-by: Miklos Szeredi > --- > fs/internal.h | 1 - > fs/ioctl.c | 1 + > fs/overlayfs/file.c | 59 > +++

Re: [v2,2/2] regulator: add QCOM RPMh regulator driver

2018-04-17 Thread Matthias Kaehlcke
On Tue, Apr 17, 2018 at 12:15:18PM -0700, David Collins wrote: > On 04/17/2018 11:23 AM, Matthias Kaehlcke wrote: > > On Fri, Apr 13, 2018 at 07:50:35PM -0700, David Collins wrote: > >> Add the QCOM RPMh regulator driver to manage PMIC regulators > >> which are controlled via RPMh on some Qualcomm

Re: [PATCH] ARM: dts: exynos: Update x and y properties for mms114 touchscreen

2018-04-17 Thread Krzysztof Kozlowski
On Wed, Apr 18, 2018 at 03:06:39AM +0900, a...@etezian.org wrote: > Hi Krzysztof, > > On 18.04.2018 00:32, Krzysztof Kozlowski wrote: > > On Fri, Jan 26, 2018 at 03:04:54PM +0900, Andi Shyti wrote: > > > The mms114 binding [1] specifies that the 'x' and 'y' should be > > > called respectively 'tou

[PATCH] platform/x86: dell-smbios: Match on www.dell.com in OEM strings too

2018-04-17 Thread Mario Limonciello
Sergey reported that some much older Dell systems don't support the OEM string "Dell System" but instead supported www.dell.com in OEM strings. Match both of these to indicate that this driver is running on a Dell system. Reported-by: Sergey Kubushyn Signed-off-by: Mario Limonciello Tested-by:

Re: atmel_mxt_ts on droid4: powersave seems to break the driver

2018-04-17 Thread Pavel Machek
Hi! > > v4.17-rc1 on motorola droid 4. > > > > If I disable/reenable touschreen with xinput, it fails, with this in > > the logs: > > > > [ 1633.749450] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host > > [ 1655.938751] atmel_mxt_ts 1-004a: __mxt_read_reg: i2c transfer > > failed (-121) > >

Re: [RFC PATCH 1/3] signal: Ensure every siginfo we send has all bits initialized

2018-04-17 Thread Eric W. Biederman
Dave Martin writes: > Hmmm > > memset()/clear_siginfo() may ensure that there are no uninitialised > explicit fields except for those in inactive union members, but I'm not > sure that this approach is guaranteed to sanitise the padding seen by > userspace. > > Rationale below, though it's a bit

[PATCH v3 17/20] serial: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v3 2/3] compiler.h: Allow arch-specific overrides

2018-04-17 Thread kbuild test robot
Hi Paul, I love your patch! Yet something to improve: [auto build test ERROR on ] url: https://github.com/0day-ci/linux/commits/James-Hogan/MIPS-Override-barrier_before_unreachable-to-fix-microMIPS/20180418-025742 base: config: i386-tinyconfig (attached as .config) compiler: gcc-7 (Debia

[Patch v2 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-17 Thread Long Li
From: Long Li The data buffer allocated on the stack can't be DMA'ed, and hence can't send through RDMA via SMB Direct. Fix this by allocating the request on the heap in smb3_validate_negotiate. Fixes: ff1c038addc4f205d5f1ede449426c7d316c0eed "Check SMB3 dialects against downgrade attacks" Cha

Re: [PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-17 Thread Dmitry Torokhov
Hi Eugen, On Tue, Apr 17, 2018 at 10:39:24AM +0300, Eugen Hristev wrote: > > > On 17.04.2018 02:58, Dmitry Torokhov wrote: > > On Sun, Apr 15, 2018 at 08:33:21PM +0100, Jonathan Cameron wrote: > > > On Tue, 10 Apr 2018 11:57:52 +0300 > > > Eugen Hristev wrote: > > > > > > > When requesting cha

[Patch v2 4/6] cifs: smbd: Don't use RDMA read/write when signing is used

2018-04-17 Thread Long Li
From: Long Li SMB server will not sign data transferred through RDMA read/write. When signing is used, it's a good idea to have all the data signed. In this case, use RDMA send/recv for all data transfers. This will degrade performance as this is not generally configured in RDMA environemnt. So

[Patch v2 6/6] cifs: smbd: Dump SMB packet when configured

2018-04-17 Thread Long Li
From: Long Li When sending through SMB Direct, also dump the packet in SMB send path. Also fixed a typo in debug message. Signed-off-by: Long Li Cc: sta...@vger.kernel.org --- fs/cifs/smbdirect.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/cifs/smbdirect.c b/fs

[Patch v2 1/6] cifs: smbd: Check for iov length on sending the last iov

2018-04-17 Thread Long Li
From: Long Li When sending the last iov that breaks into smaller buffers to fit the transfer size, it's necessary to check if this is the last iov. If this is the latest iov, stop and proceed to send pages. Signed-off-by: Long Li Cc: sta...@vger.kernel.org --- fs/cifs/smbdirect.c | 2 ++ 1 fi

Re: [PATCH] Documentation/i2c: sync docs with current state of i2c-tools.

2018-04-17 Thread Sam Hansen
On Fri, Apr 13, 2018 at 11:27 PM, Wolfram Sang wrote: > >> (also, did I send the v3 patch series threaded correctly?) > > Yes, that worked. Thanks! > > Things to improve there: I was both in To: and CC: field, so I got mails > twice. Jean was missing completely. Ah, thanks. I had been using scri

[Patch v2 3/6] cifs: smbd: Avoid allocating iov on the stack

2018-04-17 Thread Long Li
From: Long Li It's not necessary to allocate another iov when going through the buffers in smbd_send() through RDMA send. Remove it to reduce stack size. Signed-off-by: Long Li Cc: sta...@vger.kernel.org --- fs/cifs/smbdirect.c | 36 1 file changed, 12 ins

[Patch v2 5/6] cifs: smbd: Enable signing with smbdirect

2018-04-17 Thread Long Li
From: Long Li Now signing is supported with RDMA transport. Remove the code that disabled it. Signed-off-by: Long Li Cc: sta...@vger.kernel.org --- fs/cifs/connect.c | 8 fs/cifs/smb2pdu.c | 4 2 files changed, 12 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c

Re: [PATCH RESEND] slab: introduce the flag SLAB_MINIMIZE_WASTE

2018-04-17 Thread Vlastimil Babka
On 04/17/2018 07:26 PM, Mikulas Patocka wrote: > > > On Tue, 17 Apr 2018, Vlastimil Babka wrote: > >> On 04/17/2018 04:45 PM, Christopher Lameter wrote: >>> On Mon, 16 Apr 2018, Mikulas Patocka wrote: >>> This patch introduces a flag SLAB_MINIMIZE_WASTE for slab and slub. This flag cau

Re: [v2,2/2] regulator: add QCOM RPMh regulator driver

2018-04-17 Thread David Collins
On 04/17/2018 11:23 AM, Matthias Kaehlcke wrote: > On Fri, Apr 13, 2018 at 07:50:35PM -0700, David Collins wrote: >> Add the QCOM RPMh regulator driver to manage PMIC regulators >> which are controlled via RPMh on some Qualcomm Technologies, Inc. >> SoCs. RPMh is a hardware block which contains se

Re: [PATCH v4 04/22] iommu/vt-d: add bind_pasid_table function

2018-04-17 Thread Alex Williamson
On Mon, 16 Apr 2018 14:48:53 -0700 Jacob Pan wrote: > Add Intel VT-d ops to the generic iommu_bind_pasid_table API > functions. > > The primary use case is for direct assignment of SVM capable > device. Originated from emulated IOMMU in the guest, the request goes > through many layers (e.g. VF

Re: [PATCH v4 09/22] iommu/vt-d: add svm/sva invalidate function

2018-04-17 Thread Alex Williamson
On Mon, 16 Apr 2018 14:48:58 -0700 Jacob Pan wrote: > When Shared Virtual Address (SVA) is enabled for a guest OS via > vIOMMU, we need to provide invalidation support at IOMMU API and driver > level. This patch adds Intel VT-d specific function to implement > iommu passdown invalidate API for sh

Re: [PATCH RESEND] slab: introduce the flag SLAB_MINIMIZE_WASTE

2018-04-17 Thread Mikulas Patocka
On Tue, 17 Apr 2018, Christopher Lameter wrote: > On Tue, 17 Apr 2018, Vlastimil Babka wrote: > > > On 04/17/2018 04:45 PM, Christopher Lameter wrote: > > > > But then higher order allocs are generally seen as problematic. > > > > I think in this case they are better than wasting/fragmenting 3

Re: [PATCH RESEND] slab: introduce the flag SLAB_MINIMIZE_WASTE

2018-04-17 Thread Mikulas Patocka
On Tue, 17 Apr 2018, Christopher Lameter wrote: > On Mon, 16 Apr 2018, Mikulas Patocka wrote: > > > This patch introduces a flag SLAB_MINIMIZE_WASTE for slab and slub. This > > flag causes allocation of larger slab caches in order to minimize wasted > > space. > > > > This is needed because we

Re: [PATCH RESEND net-next] ipv6: provide Kconfig switch to disable accept_ra by default

2018-04-17 Thread David Miller
From: Matthias Schiffer Date: Tue, 17 Apr 2018 12:04:50 +0200 > Many distributions and users prefer to handle router advertisements in > userspace; one example is OpenWrt, which includes a combined RA and DHCPv6 > client. For such configurations, accept_ra should not be enabled by > default. > >

Re: [PATCH v5 09/10] PCI: dwc: Small computation improvement

2018-04-17 Thread Joao Pinto
Às 3:34 PM de 4/17/2018, Gustavo Pimentel escreveu: > Replaces a simple division by 2 to a right shift rotation of 1 bit. > > Probably any recent and decent compiler does this kind of substitution > in order to improve code performance. Nevertheless it's a coding good > practice whenever there is

Re: [PATCH net-next 1/3] net: phy: Add binding for vendor specific C45 MDIO address space

2018-04-17 Thread Andrew Lunn
On Tue, Apr 17, 2018 at 11:18:20AM -0700, Florian Fainelli wrote: > On 04/17/2018 02:02 AM, Vicentiu Galanopulo wrote: > > The extra property enables the discovery on the MDIO bus > > of the PHYs which have a vendor specific address space > > for accessing the C45 MDIO registers. > > > > Signed-of

Re: [PATCH v5 08/10] PCI: dwc: Replace lower into upper case characters

2018-04-17 Thread Joao Pinto
Às 3:34 PM de 4/17/2018, Gustavo Pimentel escreveu: > Replaces lower into upper case characters in comments and debug printks. > > This is an attempt to keep the messages coherent within the designware > driver. > > Also fixed code style on dw_pcie_irq_domain_free function. > > Signed-off-by: Gu

Re: [PATCH v3 3/4] mm: treat memory.low value inclusive

2018-04-17 Thread Roman Gushchin
Hello, Andrew! Can you, please, pull this patchset? Thanks! Roman On Fri, Apr 06, 2018 at 12:38:02PM -0400, Johannes Weiner wrote: > On Fri, Apr 06, 2018 at 01:21:38PM +0100, Roman Gushchin wrote: > > > > From 466c35c36cae392cfee5e54a2884792972e789ee Mon Sep 17 00:00:00 2001 > > From: Roman Gus

[PATCH v3 13/20] mmc: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v3 19/20] staging: vc04_services: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v3 05/20] firewire: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v5 07/10] PCI: dwc: Define maximum number of vectors

2018-04-17 Thread Joao Pinto
Hi Gustavo, Às 3:34 PM de 4/17/2018, Gustavo Pimentel escreveu: > Adds a callback that defines the maximum number of vectors that can be use > by the Root Complex. > > Since this is a parameter associated to each SoC IP setting, makes sense to > be configurable and easily visible to future modifi

[PATCH v3 12/20] media: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v3 14/20] mtd: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v3 07/20] i2c: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: slab: introduce the flag SLAB_MINIMIZE_WASTE

2018-04-17 Thread Mikulas Patocka
On Tue, 17 Apr 2018, Christopher Lameter wrote: > On Mon, 16 Apr 2018, Mikulas Patocka wrote: > > > dm-bufio deals gracefully with allocation failure, because it preallocates > > some buffers with vmalloc, but other subsystems may not deal with it and > > they cound return ENOMEM randomly or mi

[PATCH v3 06/20] fpga: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v5 02/10] PCI: dwc: Add support for endpoint mode

2018-04-17 Thread Joao Pinto
Hi Gustavo, Às 3:34 PM de 4/17/2018, Gustavo Pimentel escreveu: > The PCIe controller dual mode is capable of operating in host mode as well > as endpoint mode by configuration, therefore this patch aims to add > endpoint mode support to the designware driver. > > Signed-off-by: Gustavo Pimentel

Re: [PATCH] alpha: io: reorder barriers to guarantee writeX() and iowriteX() ordering #2

2018-04-17 Thread Sinan Kaya
On 4/16/2018 6:16 PM, Sinan Kaya wrote: > memory-barriers.txt has been updated with the following requirement. > > "When using writel(), a prior wmb() is not needed to guarantee that the > cache coherent memory writes have completed before writing to the MMIO > region." > > Current writeX() and i

Re: [lkp-robot] [proc] 89d98ff979: kernel_selftests.proc.proc-loadavg-001.fail

2018-04-17 Thread Alexey Dobriyan
On Tue, Apr 17, 2018 at 10:54:26AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: 89d98ff9795717225187dd20c5c557ef16c37372 ("proc: add selftest for > last field of /proc/loadavg") Fixed by https://marc.info/?l=linux-kernel&m=152364205819

[PATCHv3 02/11] arm64/kvm: consistently handle host HCR_EL2 flags

2018-04-17 Thread Mark Rutland
In KVM we define the configuration of HCR_EL2 for a VHE HOST in HCR_HOST_VHE_FLAGS, but we don't ahve a similar definition for the non-VHE host flags, and open-code HCR_RW. Further, in head.S we open-code the flags for VHE and non-VHE configurations. In future, we're going to want to configure mor

RE: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support

2018-04-17 Thread Dey, Megha
>-Original Message- >From: Herbert Xu [mailto:herb...@gondor.apana.org.au] >Sent: Friday, March 16, 2018 7:54 AM >To: Dey, Megha >Cc: linux-kernel@vger.kernel.org; linux-cry...@vger.kernel.org; >da...@davemloft.net >Subject: Re: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructu

[PATCHv3 01/11] arm64: add pointer authentication register bits

2018-04-17 Thread Mark Rutland
The ARMv8.3 pointer authentication extension adds: * New fields in ID_AA64ISAR1 to report the presence of pointer authentication functionality. * New control bits in SCTLR_ELx to enable this functionality. * New system registers to hold the keys necessary for this functionality. * A new ESR

[PATCHv3 03/11] arm64/kvm: hide ptrauth from guests

2018-04-17 Thread Mark Rutland
In subsequent patches we're going to expose ptrauth to the host kernel and userspace, but things are a bit trickier for guest kernels. For the time being, let's hide ptrauth from KVM guests. Regardless of how well-behaved the guest kernel is, guest userspace could attempt to use ptrauth instructio

[PATCHv3 06/11] asm-generic: mm_hooks: allow hooks to be overridden individually

2018-04-17 Thread Mark Rutland
Currently, an architecture must either implement all of the mm hooks itself, or use all of those provided by the asm-generic implementation. When an architecture only needs to override a single hook, it must copy the stub implementations from the asm-generic version. To avoid this repetition, allo

[PATCHv3 08/11] arm64: expose user PAC bit positions via ptrace

2018-04-17 Thread Mark Rutland
When pointer authentication is in use, data/instruction pointers have a number of PAC bits inserted into them. The number and position of these bits depends on the configured TCR_ELx.TxSZ and whether tagging is enabled. ARMv8.3 allows tagging to differ for instruction and data pointers. For usersp

[PATCHv3 09/11] arm64: perf: strip PAC when unwinding userspace

2018-04-17 Thread Mark Rutland
When the kernel is unwinding userspace callchains, we can't expect that the userspace consumer of these callchains has the data necessary to strip the PAC from the stored LR. This patch has the kernel strip the PAC from user stackframes when the in-kernel unwinder is used. This only affects the LR

[PATCHv3 11/11] arm64: docs: document pointer authentication

2018-04-17 Thread Mark Rutland
Now that we've added code to support pointer authentication, add some documentation so that people can figure out if/how to use it. Signed-off-by: Mark Rutland Cc: Andrew Jones Cc: Catalin Marinas Cc: Ramana Radhakrishnan Cc: Will Deacon --- Documentation/arm64/booting.txt|

[PATCHv3 10/11] arm64: enable pointer authentication

2018-04-17 Thread Mark Rutland
Now that all the necessary bits are in place for userspace, add the necessary Kconfig logic to allow this to be enabled. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm6

[PATCHv3 00/11] ARMv8.3 pointer authentication userspace support

2018-04-17 Thread Mark Rutland
This series adds support for the ARMv8.3 pointer authentication extension, enabling userspace return address protection with recent versions of GCC. Since RFC [1]: * Make the KVM context switch (semi-lazy) * Rebase to v4.13-rc1 * Improve pointer authentication documentation * Add hwcap documentati

[PATCHv3 07/11] arm64: add basic pointer authentication support

2018-04-17 Thread Mark Rutland
This patch adds basic support for pointer authentication, allowing userspace to make use of APIAKey. The kernel maintains an APIAKey value for each process (shared by all threads within), which is initialised to a random value at exec() time. To describe that address authentication instructions ar

[PATCHv3 05/11] arm64/cpufeature: detect pointer authentication

2018-04-17 Thread Mark Rutland
So that we can dynamically handle the presence of pointer authentication functionality, wire up probing code in cpufeature.c. >From ARMv8.3 onwards, ID_AA64ISAR1 is no longer entirely RES0, and now has four fields describing the presence of pointer authentication functionality: * APA - address au

[PATCHv3 04/11] arm64: Don't trap host pointer auth use to EL2

2018-04-17 Thread Mark Rutland
To allow EL0 (and/or EL1) to use pointer authentication functionality, we must ensure that pointer authentication instructions and accesses to pointer authentication keys are not trapped to EL2. This patch ensures that HCR_EL2 is configured appropriately when the kernel is booted at EL2. For non-V

Re: [PATCH net-next 3/3] net: phy: Enable C45 PHYs with vendor specific address space

2018-04-17 Thread Florian Fainelli
On 04/17/2018 02:02 AM, Vicentiu Galanopulo wrote: > A search of the dev-addr property is done in of_mdiobus_register. > If the property is found in the PHY node, of_mdiobus_register_vend_spec_phy() > is called. This is a wrapper function for of_mdiobus_register_phy() > which finds the device in pa

RE: [PATCH] x86/MCE, EDAC/mce_amd: Save all aux registers on SMCA systems

2018-04-17 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov > Sent: Tuesday, April 17, 2018 1:21 PM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; > tony.l...@intel.com; x...@kernel.org > Subject: Re: [PATCH] x86/MCE, EDAC/mce_amd: Save all aux registers on > SMCA s

Re: [v4 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-17 Thread Andrew Morton
On Sun, 15 Apr 2018 02:24:51 +0800 Yang Shi wrote: > mmap_sem is on the hot path of kernel, and it very contended, but it is > abused too. It is used to protect arg_start|end and evn_start|end when > reading /proc/$PID/cmdline and /proc/$PID/environ, but it doesn't make > sense since those proc f

Re: [PATCH net-next 1/3] net: phy: Add binding for vendor specific C45 MDIO address space

2018-04-17 Thread Florian Fainelli
On 04/17/2018 11:27 AM, Andrew Lunn wrote: > On Tue, Apr 17, 2018 at 11:18:20AM -0700, Florian Fainelli wrote: >> On 04/17/2018 02:02 AM, Vicentiu Galanopulo wrote: >>> The extra property enables the discovery on the MDIO bus >>> of the PHYs which have a vendor specific address space >>> for access

Re: [PATCH AUTOSEL for 4.14 015/161] printk: Add console owner and waiter logic to load balance console writes

2018-04-17 Thread Sasha Levin
On Tue, Apr 17, 2018 at 07:57:54PM +0200, Jan Kara wrote: >Actually I was careful enough to include only commits that got merged as >part of the stable process into 4.14.x but got later reverted in 4.14.y. >That's where the 0.4% number came from. So I believe all of those cases >(13 in absolute num

Re: [PATCH v2 2/2] parisc: define stronger ordering for the default readX()

2018-04-17 Thread Sinan Kaya
On 4/17/2018 11:55 AM, James Bottomley wrote: > On Tue, 2018-04-17 at 10:13 -0400, Sinan Kaya wrote: >> Hi James, >> >>> >>> Perhaps if you gave an example of the actual problem you're trying >>> to fix we could assess if it affects parisc. >> >> Let me clarify myself here. Maybe, there is a better

Re: [v2,2/2] regulator: add QCOM RPMh regulator driver

2018-04-17 Thread Matthias Kaehlcke
On Fri, Apr 13, 2018 at 07:50:35PM -0700, David Collins wrote: > Add the QCOM RPMh regulator driver to manage PMIC regulators > which are controlled via RPMh on some Qualcomm Technologies, Inc. > SoCs. RPMh is a hardware block which contains several > accelerators which are used to manage various

Re: [PATCH v3 06/10] drivers/peci: Add a PECI adapter driver for Aspeed AST24xx/AST25xx

2018-04-17 Thread Jae Hyun Yoo
Hi Robin, On 4/17/2018 6:37 AM, Robin Murphy wrote: Just a drive-by nit: On 10/04/18 19:32, Jae Hyun Yoo wrote: [...] +#define PECI_CTRL_SAMPLING_MASK GENMASK(19, 16) +#define PECI_CTRL_SAMPLING(x)   (((x) << 16) & PECI_CTRL_SAMPLING_MASK) +#define PECI_CTRL_SAMPLING_GET(x)   (((x) &

Re: atmel_mxt_ts on droid4: powersave seems to break the driver

2018-04-17 Thread Dmitry Torokhov
Hi Pavel, On Tue, Apr 17, 2018 at 09:38:11AM +0200, Pavel Machek wrote: > HI! > > v4.17-rc1 on motorola droid 4. > > If I disable/reenable touschreen with xinput, it fails, with this in > the logs: > > [ 1633.749450] cpcap-usb-phy cpcap-usb-phy.0: connected to USB host > [ 1655.938751] atmel_mx

Re: [PATCH net-next 1/3] net: phy: Add binding for vendor specific C45 MDIO address space

2018-04-17 Thread Florian Fainelli
On 04/17/2018 02:02 AM, Vicentiu Galanopulo wrote: > The extra property enables the discovery on the MDIO bus > of the PHYs which have a vendor specific address space > for accessing the C45 MDIO registers. > > Signed-off-by: Vicentiu Galanopulo > --- > Documentation/devicetree/bindings/net/phy.

Re: [PATCH net-next 2/3] net: phy: Change the array size to 32 for device_ids

2018-04-17 Thread Florian Fainelli
On 04/17/2018 02:02 AM, Vicentiu Galanopulo wrote: > In the context of enabling the discovery of the PHYs > which have the C45 MDIO address space in a non-standard > address: num_ids in get_phy_c45_ids, has the > value 8 (ARRAY_SIZE(c45_ids->device_ids)), but the > u32 *devs can store 32 devices i

[PATCH v3 16/20] remoteproc: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v3 02/20] ata: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v2] tracing/x86: Update syscall trace events to handle new x86 syscall func names

2018-04-17 Thread Steven Rostedt
On Tue, 17 Apr 2018 15:13:04 -0300 Arnaldo Carvalho de Melo wrote: > Em Tue, Apr 17, 2018 at 03:04:30PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Apr 17, 2018 at 07:22:36PM +0200, Dominik Brodowski escreveu: > > > > Added back original compare to not miss 32bit kernel syscalls >

Re: [PATCH v3 04/10] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-04-17 Thread Jae Hyun Yoo
On 4/17/2018 6:16 AM, Rob Herring wrote: On Mon, Apr 16, 2018 at 6:12 PM, Jae Hyun Yoo wrote: On 4/16/2018 11:10 AM, Rob Herring wrote: On Tue, Apr 10, 2018 at 11:32:06AM -0700, Jae Hyun Yoo wrote: This commit adds a dt-bindings document of PECI adapter driver for Aspeed AST24xx/25xx SoCs.

[PATCH v3 00/20] Allow compile-testing NO_DMA (drivers)

2018-04-17 Thread Geert Uytterhoeven
Hi all, As of v4.17-rc1, patch series "[PATCH v2 0/5] Allow compile-testing NO_DMA (core)" (https://lkml.org/lkml/2018/3/16/435) has been included upstream, and drivers using the DMA API can be compile-tested on platforms selecting NO_DMA. This follow-up patch series removes dependencies

[PATCH v3 11/20] mailbox: Remove depends on HAS_DMA in case of platform dependency

2018-04-17 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v4 01/15] s390: zcrypt: externalize AP instructions available function

2018-04-17 Thread Tony Krowiak
On 04/17/2018 12:56 PM, Cornelia Huck wrote: On Tue, 17 Apr 2018 09:31:00 -0400 Tony Krowiak wrote: My preference would be one of the following: 1. All of the interfaces defined in arch/s390/include/asm/ap.h are implemented in a file that is built whether ZCRYPT is built or not. 2.

[PATCH/RFC] crypto: Add platform dependencies for CRYPTO_DEV_CCREE

2018-04-17 Thread Geert Uytterhoeven
The ARM TrustZone CryptoCell is found on ARM SoCs only. Hence make it depend on ARM or ARM64, unless compile-testing. Drop the dependency on HAS_DMA, as DMA is always available on ARM and ARM64 platforms, and doing so will increase compile coverage. Signed-off-by: Geert Uytterhoeven --- Is ARM

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