Re: [PATCH] ARM: sunxi: h3/h5: Correct emac register size

2017-07-06 Thread Corentin Labbe
On Thu, Jul 06, 2017 at 08:52:05PM +0200, Maxime Ripard wrote: > On Thu, Jul 06, 2017 at 10:53:34AM +0200, Corentin Labbe wrote: > > The datasheet said that emac register size is 0x1000 not 0x104 > > > > Signed-off-by: Corentin Labbe > > --- > > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- > > 1 f

Re: [PATCH v2 4/5] soc: ti: Add pm33xx driver for basic suspend support

2017-07-06 Thread Dave Gerlach
On 07/03/2017 11:54 AM, Johan Hovold wrote: > On Fri, May 19, 2017 at 03:04:37PM -0500, Dave Gerlach wrote: >> AM335x and AM437x support various low power modes as documented >> in section 8.1.4.3 of the AM335x Technical Reference Manual and >> section 6.4.3 of the AM437x Technical Reference Manual

Re: [PATCH v2 5/5] ARM: OMAP2+: Create dummy platform_device for pm33xx

2017-07-06 Thread Dave Gerlach
On 07/03/2017 11:58 AM, Johan Hovold wrote: > On Fri, May 19, 2017 at 03:04:38PM -0500, Dave Gerlach wrote: >> Add amx3_common_pm_init to create a dummy platform_device for >> pm33xx so that our pm33xx module can probe and am335x and am437x >> platforms to enable basic suspend to mem and standby su

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 06:58:37PM +0200, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 04:51:13PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 04:46:02PM +0100, Al Viro wrote: > > > > > That - on #work.read_write, as in vfs.git at the moment... > > > > ... and for COMPAT_SYSCALL you ne

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 10:52 AM, Linus Torvalds wrote: > On Thu, Jul 6, 2017 at 10:29 AM, Kees Cook wrote: >>> >>> (a) minimal: just use our existing default stack (and stack _only_) >>> limit value for suid binaries that actually get extra permissions: { >>> _STK_LIM, RLIM_INFINITY }. >> >> Thi

Re: [PATCH v4] staging: lustre: lnet: remove dead code and crc32_le() wrapper

2017-07-06 Thread Dmitriy Cherkasov
On 06/29/2017 10:50 PM, Dmitriy Cherkasov wrote: After removing code which was permanently disabled with ifdefs, the function ksocknal_csum() becomes just a wrapper for crc32_le(). Remove this useless wrapper and instead call crc32_le() directly. Any feedback on v4 please?

Re: [Drbd-dev] [PATCH] drbd: rename "usermode_helper" to "drbd_usermode_helper"

2017-07-06 Thread Roland Kammerer
On Thu, Jul 06, 2017 at 08:02:41PM +0200, Greg KH wrote: > On Thu, Jul 06, 2017 at 07:56:07PM +0200, Roland Kammerer wrote: > > On Mon, Jun 05, 2017 at 11:26:23AM +0200, Greg KH wrote: > > > From: Greg Kroah-Hartman > > > > > > Nothing like having a very generic global variable in a tiny driver >

Re: [PATCH v3 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-06 Thread Christopher Bostic
On 7/6/17 9:35 AM, Rob Herring wrote: On Thu, Jun 29, 2017 at 08:04:17AM -0700, Guenter Roeck wrote: On Thu, Jun 29, 2017 at 08:39:59AM -0500, Christopher Bostic wrote: On 6/28/17 10:33 PM, Guenter Roeck wrote: On 06/28/2017 05:28 PM, Christopher Bostic wrote: Describe device tree optional

Re: [PATCH][ext4-next] ext4: ensure error return ret is zero on successful return

2017-07-06 Thread Theodore Ts'o
On Fri, Jun 23, 2017 at 03:58:40PM +0100, Colin King wrote: > From: Colin Ian King > > The error return ret is not set on a successful return path and > so it returns a garbage value. Ensure it is is set to zero on > a successful return. > > Detected by CoverityScan, CID#1446616 ("Uninitialized

Re: [PATCH v2 0/9] Remove spin_unlock_wait()

2017-07-06 Thread Alan Stern
On Thu, 6 Jul 2017, Peter Zijlstra wrote: > On Thu, Jul 06, 2017 at 12:49:12PM -0400, Alan Stern wrote: > > On Thu, 6 Jul 2017, Paul E. McKenney wrote: > > > > > On Thu, Jul 06, 2017 at 06:10:47PM +0200, Peter Zijlstra wrote: > > > > On Thu, Jul 06, 2017 at 08:21:10AM -0700, Paul E. McKenney wrot

Re: v4.13-rc0 on nokia n900: spinlock bad magic

2017-07-06 Thread Pavel Machek
Hi! > On Thursday 06 July 2017 20:03:37 Pavel Machek wrote: > > Hi! > > > > I don't think this is new in v4.13, but perhaps someone knows how to > > debug it? > > > > [ 5611.801147] g_ether gadget: packet filter 0e > > [ 5611.801177] g_ether gadget: ecm req21.43 v000e i l0 > > [ 5668.771453]

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: > Teach perf how to resolve symbols from binaries that are in a different > mount namespace from the tool. This allows perf to generate meaningful > stack traces even if the binary resides in a different mount namespace > from th

Re: [PATCH] integrity: get rid of unneeded initializations in integrity_iint_cache entries

2017-07-06 Thread Mimi Zohar
On Thu, 2017-07-06 at 10:04 -0500, Serge E. Hallyn wrote: > Quoting Jeff Layton (jlay...@kernel.org): > > From: Jeff Layton > > > > The init_once routine memsets the whole object to 0, and then > > explicitly sets some of the fields to 0 again. Just remove the explicit > > initializations. > > >

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 2:12 AM, Al Viro wrote: > iov_iter/uaccess/hardening pile. For one thing, it trims the > inline part of copy_to_user/copy_from_user to the minimum that *does* > need to be inlined - object size checks, basically. For another, > it sanitizes the checks for iov_iter

Re: [PATCH v9 0/3] Tango PCIe controller support

2017-07-06 Thread Bjorn Helgaas
On Thu, Jul 06, 2017 at 02:26:44PM +0200, Mason wrote: > On 06/07/2017 05:39, Bjorn Helgaas wrote: > > > On Wed, Jul 05, 2017 at 11:59:33PM +0200, Mason wrote: > > > >> There were a few nits I wanted to address: > >> > >> - Since we added suppress_bind_attrs = true, probe() > >> can only be called

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Keith Packard
Ville Syrjälä writes: > With the disable_immediate thing we only wait until the next vblank > before disabling the irq again. Ok, still sounds like we'll be doing fine if the application does a get immediately followed by a queue event. At least most of the time. -- -keith signature.asc Desc

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Florian Fainelli
On 07/06/2017 10:38 AM, Alexandre Belloni wrote: > On 06/07/2017 at 19:17:28 +0200, Andreas Färber wrote: >> Am 05.07.2017 um 04:36 schrieb Florian Fainelli: >>> On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop

Re: [PATCH] ext4: fix spelling mistake: "prellocated" -> "preallocated"

2017-07-06 Thread Theodore Ts'o
On Tue, Jun 27, 2017 at 02:33:22PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in mb_debug debug message > > Signed-off-by: Colin Ian King Thanks, applied. - Ted

Re: ath10k: ret used but uninitialized (was: Re: ath10k: add initial SDIO support)

2017-07-06 Thread Erik Stromdahl
With gcc 4.1.2: drivers/net/wireless/ath/ath10k/sdio.c: In function ‘ath10k_sdio_mbox_rxmsg_pending_handler’: drivers/net/wireless/ath/ath10k/sdio.c:676: warning: ‘ret’ may be used uninitialized in this function + + *done = true; + + /* Copy the lookahead obtained from the HTC regis

Re: [PATCH] mm: make allocation counters per-order

2017-07-06 Thread Mel Gorman
On Thu, Jul 06, 2017 at 02:00:00PM -0400, Debabrata Banerjee wrote: > On Thu, Jul 6, 2017 at 1:16 PM, Mel Gorman > wrote: > > > > I'm still struggling to see how counters help when an agent that monitors > > for high CPU usage could be activated > > > > I suspect Roman has the same problem set a

[PATCH] stm32-dcmi: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

[GIT PULL] DeviceTree for 4.13

2017-07-06 Thread Rob Herring
Hi Linus, Please pull DT updates for 4.13. There's one conflict with your tree in Documentation/devicetree/bindings/net/ethernet.txt. The conflict is just context lines, and the correct resolution is in -next. Rob The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Li

Re: [PATCH] staging: rts5208: Replace embedded function names with "%s: ", __func__

2017-07-06 Thread kbuild test robot
Hi Gaurav, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12 next-20170706] [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/commits/Gaurav-Pathak/staging-rts5208-Replace

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > + if (unlikely(!check_copy_size(addr, bytes, false))) > + return false; > + else > + return _copy_from_iter_full(addr, bytes, i); > > Can these be rewritten to avoid the double-negative? Matter of taste - I've no stro

[PATCH] pxa_camera: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

[GIT PULL] Kselftest update for 4.13-rc1

2017-07-06 Thread Shuah Khan
Hi Linus, Please pull the following update for 4.13-rc1 This update consists of: -- TAP13 framework and changes to some tests to convert to TAP13. Converting kselftest output to standard format will help identify run to run differences and pin point failures easily. TAP13 format has bee

Re: [PATCH] audit: Reduce overhead using a coarse clock

2017-07-06 Thread Paul Moore
On Tue, Jul 4, 2017 at 3:41 PM, Deepa Dinamani wrote: > On Tue, Jul 4, 2017 at 12:20 PM, Arnd Bergmann wrote: >> On Tue, Jul 4, 2017 at 2:11 PM, Mel Gorman >> wrote: >>> >>> Signed-off-by: Mel Gorman >> >> Acked-by: Arnd Bergmann > > Acked-by: Deepa Dinamani > > As already Arnd pointed out,

Re: [PATCH v2 1/9] net/netfilter/nf_conntrack_core: Fix net_conntrack_lock()

2017-07-06 Thread Paul E. McKenney
On Thu, Jul 06, 2017 at 08:45:59PM +0200, Manfred Spraul wrote: > Hi Paul, > > On 07/06/2017 01:31 AM, Paul E. McKenney wrote: > >From: Manfred Spraul > > > >As we want to remove spin_unlock_wait() and replace it with explicit > >spin_lock()/spin_unlock() calls, we can use this to simplify the >

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 09:18:26PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > > > + if (unlikely(!check_copy_size(addr, bytes, false))) > > + return false; > > + else > > + return _copy_from_iter_full(addr, bytes, i); > > > > Can these b

Re: [PATCH v6 4/4] dt-bindings: media: Document Synopsys Designware HDMI RX

2017-07-06 Thread Sylwester Nawrocki
On 07/06/2017 12:24 PM, Jose Abreu wrote: >>> +- edid-phandle: phandle to the EDID handler block. >> >> Could you make this property optional and when it is missing assume that >> device >> corresponding to the parent node of this node handles EDID? This way we could >> avoid having property point

[PATCH] davinci: vpif_display: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

[PATCH] st-delta: constify vb2_ops structures

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

Re: [PATCH v2 4/8] objtool: add undwarf debuginfo generation

2017-07-06 Thread Josh Poimboeuf
On Thu, Jun 29, 2017 at 10:06:52AM -0500, Josh Poimboeuf wrote: > On Thu, Jun 29, 2017 at 04:46:18PM +0200, Ingo Molnar wrote: > > > > * Josh Poimboeuf wrote: > > > > > > Plus, shouldn't we use __packed for 'struct undwarf' to minimize the > > > > structure's size (to 6 bytes AFAICS?) - or is o

Re: [PATCH v10 1/3] x86/syscalls: Check address limit on user-mode return

2017-07-06 Thread Thomas Garnier
On Wed, Jun 28, 2017 at 10:52 AM, Kees Cook wrote: > > On Tue, Jun 20, 2017 at 1:24 PM, Kees Cook wrote: > > On Wed, Jun 14, 2017 at 6:12 PM, Thomas Garnier wrote: > >> Ensure the address limit is a user-mode segment before returning to > >> user-mode. Otherwise a process can corrupt kernel-mode

[PATCH] davinci: vpif_capture: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

Re: v4.13-rc0 on nokia n900: spinlock bad magic

2017-07-06 Thread Cong Wang
On Thu, Jul 6, 2017 at 11:03 AM, Pavel Machek wrote: > Hi! > > I don't think this is new in v4.13, but perhaps someone knows how to > debug it? > > [ 5611.801147] g_ether gadget: packet filter 0e > [ 5611.801177] g_ether gadget: ecm req21.43 v000e i l0 > [ 5668.771453] BUG: spinlock bad magic

[PATCH] mtk-mdp: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

[PATCH] rcar_fdp1: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

Re: [PATCH 1/2] pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver

2017-07-06 Thread Maxime Ripard
Hi, On Thu, Jul 06, 2017 at 10:28:21PM +0800, Icenowy Zheng wrote: > The PH16 pin has a function with mux id 0x5, which is the DET pin of the > "sim" (smart card reader) IP block. > > This function is missing both in the old A10 and A20 drivers, so it's > not found during the merge of these two d

Re: [PATCH v3 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-06 Thread Guenter Roeck
On Thu, Jul 06, 2017 at 02:27:18PM -0500, Christopher Bostic wrote: > > > On 7/6/17 9:35 AM, Rob Herring wrote: > >On Thu, Jun 29, 2017 at 08:04:17AM -0700, Guenter Roeck wrote: > >>On Thu, Jun 29, 2017 at 08:39:59AM -0500, Christopher Bostic wrote: > >>> > >>>On 6/28/17 10:33 PM, Guenter Roeck w

[PATCH 0/3] FPGA Manager support for FPP via FT232H FT245-FIFO

2017-07-06 Thread Anatolij Gustschin
This series adds support for fast passive parallel (FPP) Altera FPGA configuration using FTDI FT232H chip in FT245-FIFO mode. It has been used to configure Arria 10 FPGAs. Patch 1 adds an FT232H MFD driver with common functions that can be used for FT232H USB-GPIO/I2C/SPI master adapter drivers. C

[PATCH 3/3] fpga manager: Add FT232H driver for Altera FPP

2017-07-06 Thread Anatolij Gustschin
Add FPGA manager driver for loading Altera FPGAs via fast passive parallel (FPP) interface using FTDI FT232H chip. Signed-off-by: Anatolij Gustschin --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile| 1 + drivers/fpga/ftdi-fifo-fpp.c | 569

[PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-06 Thread Anatolij Gustschin
Add USB part with common functions for USB-GPIO/I2C/SPI master adapters. These allow communication with chip's control, transmit and receive endpoints and will be used by various FT232H drivers. Signed-off-by: Anatolij Gustschin --- drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile

[PATCH 2/3] gpio: Add FT232H CBUS GPIO driver

2017-07-06 Thread Anatolij Gustschin
Add driver for CBUS pins on FT232H. The driver supports setting GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS pins have to be enabled by configuring I/O mode in the FTDI EEPROM. Signed-off-by: Anatolij Gustschin --- drivers/gpio/Kconfig | 11 ++ drivers/gpio/Makefile

Re: [PATCH v10 1/3] x86/syscalls: Check address limit on user-mode return

2017-07-06 Thread Thomas Gleixner
On Thu, 6 Jul 2017, Thomas Garnier wrote: > On Wed, Jun 28, 2017 at 10:52 AM, Kees Cook wrote: > > > > On Tue, Jun 20, 2017 at 1:24 PM, Kees Cook wrote: > > > On Wed, Jun 14, 2017 at 6:12 PM, Thomas Garnier > > > wrote: > > >> Ensure the address limit is a user-mode segment before returning to

Re: [PATCH 2/2] pinctrl: sunxi: add support of R40 to A10 pinctrl driver

2017-07-06 Thread Maxime Ripard
On Thu, Jul 06, 2017 at 10:28:22PM +0800, Icenowy Zheng wrote: > SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 0), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "i2c0")), /* SCK */ > + SUNXI_FU

[PATCH] atmel-isc: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

[PATCH] mediatek: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable optional_qu

Re: [PATCH v10 1/3] x86/syscalls: Check address limit on user-mode return

2017-07-06 Thread Thomas Garnier
On Thu, Jul 6, 2017 at 1:48 PM, Thomas Gleixner wrote: > On Thu, 6 Jul 2017, Thomas Garnier wrote: >> On Wed, Jun 28, 2017 at 10:52 AM, Kees Cook wrote: >> > >> > On Tue, Jun 20, 2017 at 1:24 PM, Kees Cook wrote: >> > > On Wed, Jun 14, 2017 at 6:12 PM, Thomas Garnier >> > > wrote: >> > >> Ensu

Re: [PATCH v6 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-07-06 Thread kbuild test robot
Hi Jose, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20170706] [cannot apply to v4.12] [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/commits/Jose-Abreu/Synopsys

Re: [PATCHv2 0/2] rtc: add support for STM32H7 RTC

2017-07-06 Thread Alexandre Belloni
On 06/07/2017 at 10:47:43 +0200, Amelie Delaunay wrote: > Add support for STM32H7 Real Time Clock variant. > Difference is regarding clocks: there is a 'pclk' clock on STM32H7 > for register access. > > Amelie Delaunay (2): > dt-bindings: rtc: stm32: add support for STM32H7 > rtc: stm32: add S

Re: [PATCH 1/2] amd: uncore: Rename cpufeatures macro for cache counters

2017-07-06 Thread Natarajan, Janakarajan
On 6/6/2017 11:31 AM, Borislav Petkov wrote: On Mon, Jun 05, 2017 at 11:13:18AM -0500, Janakarajan Natarajan wrote: In Family 17h, L3 is the last level cache as opposed to L2 in previous families. Avoid this name confusion and rename X86_FEATURE_PERFCT_L2 to X86_FEATURE_PERFCTR_LLC to indicate

Re: [PATCH] integrity: track ctime in addition to i_version for assessment

2017-07-06 Thread Mimi Zohar
Hi Jeff, On Thu, 2017-07-06 at 12:23 -0400, Jeff Layton wrote: > From: Jeff Layton > > The IMA assessment code tries to use the i_version counter to detect > when changes to a file have occurred. Many filesystems don't increment > it properly (or at all) so detecting changes with that is not alw

Re: [PATCH v5 3/3] mfd: dln2: Send restart command if HW init fails

2017-07-06 Thread Jack Andersen
The restart command doesn't behave like other commands. It doesn't return an error code (which indicates a failed transfer in the dln2 module so the probe fails). Attached is a system log snippet to give you a better idea. I'm able to consistently reproduce this behavior on 4.12 by registering an

Re: [x86/time] 03fa63cc96: ACPI_Error:Table[DMAR]is_not_invalidated_during_early_boot_stage(#/tbxface -#)

2017-07-06 Thread Thomas Gleixner
On Thu, 6 Jul 2017, kernel test robot wrote: > commit: 03fa63cc96ab35592e0a7d522b8edbc1e6b02d22 ("x86/time: Initialize > interrupt mode behind timer init") > ++++ > || 43436935b7 | 03fa63cc96 | > ++++

Re: [PATCH 07/21] x86/intel_rdt/cqm: Add RDT monitoring initialization

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: +/* + * Global boolean for rdt_alloc which is true if any + * resource allocation is enabled. + */ +bool rdt_alloc_enabled; That should be rdt_alloc_capable. It's not enabled at probe time. Probing merily

Re: [PATCH] integrity: track ctime in addition to i_version for assessment

2017-07-06 Thread Jeff Layton
On Thu, 2017-07-06 at 17:00 -0400, Mimi Zohar wrote: > Hi Jeff, > > On Thu, 2017-07-06 at 12:23 -0400, Jeff Layton wrote: > > From: Jeff Layton > > > > The IMA assessment code tries to use the i_version counter to detect > > when changes to a file have occurred. Many filesystems don't increment

[PATCH V4] PCI: handle CRS returned by device after FLR

2017-07-06 Thread Sinan Kaya
An endpoint is allowed to issue Configuration Request Retry Status (CRS) following a Function Level Reset (FLR) request to indicate that it is not ready to accept new requests. Seen a timeout message with Intel 750 NVMe drive and FLR reset. Kernel enables CRS visibility in pci_enable_crs() functi

Re: [PATCH 09/21] x86/intel_rdt: Simplify info and base file lists

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: @@ -82,6 +82,7 @@ struct rdt_resource rdt_resources_all[] = { }, .parse_ctrlval = parse_cbm, .format_str = "%d=%0*x", + .ffl

Re: [RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 09:58:57 AM Juri Lelli wrote: > Hi, > > v1 of the RFC set implementing frequency/cpu invariance and OPP selection for > SCHED_DEADLINE [1]. The set is based on tip/sched/core as of today > (72298e5c92c5), which now already includes Luca's "CPU reclaiming for > SCHED_DEA

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Florian Fainelli
On 07/06/2017 10:39 AM, Mark Rutland wrote: > On Thu, Jul 06, 2017 at 07:17:28PM +0200, Andreas Färber wrote: >> Am 05.07.2017 um 04:36 schrieb Florian Fainelli: >>> On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop >

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 09:29:27PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 09:18:26PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > > > > > + if (unlikely(!check_copy_size(addr, bytes, false))) > > > + return false; > > > + else > > > +

Re: [PATCH v2] Add support of all Foxconn (105b) Broadcom devices

2017-07-06 Thread Marcel Holtmann
Hi Dmitry, > There is another device > > T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 > D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=105b ProdID=e066 Rev=01.12 > S: Manufacturer=Broadcom Corp > S: Product=BCM20702A0 > S: SerialNumber=342387DAE3

Re: [PATCH] Driver: Bluetooth:btqca.c Fixed a coding style error

2017-07-06 Thread Marcel Holtmann
Hi Joan, > Fixed this coding style erro > > ./drivers/bluetooth/btqca.c:84: ERROR: code indent should use tabs where > possible > > Signed-off-by: Joan Jani > --- > drivers/bluetooth/btqca.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree.

Re: [PATCH v2 3/3] pwm: meson: improve pwm calculation precision.

2017-07-06 Thread Thierry Reding
On Thu, Jun 08, 2017 at 02:24:16PM +0200, Jerome Brunet wrote: > When using input clocks with high rates, such as clk81 (166MHz), the > fin_ns = NSEC_PER_SEC / fin_freq can introduce a significant error. > > Ex: fin_freq = 16667, NSEC_PER_SEC = 10 > fin_ns = 5,999 > > which is

Re: [PATCH 11/21] x86/intel_rdt/cqm: Add mkdir support for RDT monitoring

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: +/* + * Common code for ctrl_mon and monitor group mkdir. + * The caller needs to unlock the global mutex upon success. + */ +static int mkdir_rdt_common(struct kernfs_node *pkn, struct kernfs_node *prkn,

Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking

2017-07-06 Thread Nadav Amit
Edward Cree via iovisor-dev wrote: > Tracks value alignment by means of tracking known & unknown bits. > Tightens some min/max value checks and fixes a couple of bugs therein. > If pointer leaks are allowed, and adjust_ptr_min_max_vals returns -EACCES, > treat the pointer as an unknown scalar and

Re: [PATCH 12/21] x86/intel_rdt/cqm: Add tasks file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: @@ -866,6 +866,7 @@ struct task_struct { #endif #ifdef CONFIG_INTEL_RDT int closid; + u32 rmid; Can you please make a preparatory cha

[tip:irq/urgent] genirq: Allow to pass the IRQF_TIMER flag with percpu irq request

2017-07-06 Thread tip-bot for Daniel Lezcano
Commit-ID: c80081b9209713e0fe86d3def395a9fc66503c58 Gitweb: http://git.kernel.org/tip/c80081b9209713e0fe86d3def395a9fc66503c58 Author: Daniel Lezcano AuthorDate: Thu, 6 Jul 2017 14:29:04 +0200 Committer: Thomas Gleixner CommitDate: Thu, 6 Jul 2017 23:16:22 +0200 genirq: Allow to pass t

Re: [PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index fdf3654..fec8ba9 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -37,6 +37,8 @@ stru

[PATCH] regulator: axp20x: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. Si

[PATCH] vmbus: fix the missed signaling in hv_signal_on_read()

2017-07-06 Thread Dexuan Cui
There is an off-by-one bug here, which can cause host-to-guest write to stall. When cur_write_sz == pending_sz, we shouldn't signal the host because it's meaningless: the ring mustn't be 100% full. But when cached_write_sz == pending_sz, we must signal the host. Fixes: 433e19cf33d3 ("Drivers: hv

Re: [PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: -static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of, - char *buf, size_t nbytes, loff_t off) +static ssize_t cpus_mon_write(struct kernfs_open_file *of, +

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
> Which sparse version are you using and what's your .config? sparse is v0.5.0-62-gce18a90, .config is attached. .config Description: application/config

Re: [PATCH 14/21] x86/intel_rdt/cqm: Add mon_data

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: Add a mon_data directory for the root rdtgroup and all other rdtgroups. The directory holds all of the monitored data for all domains and events of all resources being monitored. Again. This does two thin

Re: [PATCH 15/21] x86/intel_rdt/cqm: Add rmdir support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: Resource groups (ctrl_mon and monitor groups) are represented by directories in resctrl fs. Add support to remove the directories. Again. Please split that patch into two parts; seperate ctrl stuff from r

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Daniel Vetter
On Thu, Jul 6, 2017 at 6:27 PM, Keith Packard wrote: > Daniel Vetter writes: > >> I very much like this since the old ioctl really is a rather bad horror >> show. And since it's tied in with ums drivers everything is >> complicated. > > Thanks for your kind words. > >> I started a discussion a wh

[PATCH v2] regulator: axp20x: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. S

Re: [PATCH v2] f2fs: relax migratepage for atomic written page

2017-07-06 Thread Jaegeuk Kim
In order to avoid lock contention for atomic written pages, we'd better give EBUSY in f2fs_migrate_page when mode is asynchronous. We expect it will be released soon as transaction commits. Signed-off-by: Jaegeuk Kim --- Change log from v1: - return -EBUSY when mode is MIGRATE_ASYNC or MIGRATE_

[RFC v2 0/5] surface heterogeneous memory performance information

2017-07-06 Thread Ross Zwisler
Quick Summary Platforms in the very near future will have multiple types of memory attached to a single CPU. These disparate memory ranges will have some characteristics in common, such as CPU cache coherence, but they can have wide ranges of performance both in terms of latency and ban

[RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Ross Zwisler
The current implementation of acpi_parse_entries_array() assumes that each subtable has a standard ACPI subtable entry of type struct acpi_sutbable_header. This standard subtable header has a one byte length followed by a one byte type. The HMAT subtables have to allow for a longer length so they

[RFC v2 5/5] hmem: add performance attributes

2017-07-06 Thread Ross Zwisler
Add performance information found in the HMAT to the sysfs representation. This information lives as an attribute group named "local_init" in the memory target: # tree mem_tgt2/ mem_tgt2/ ├── firmware_id ├── is_cached ├── is_enabled ├── is_isolated ├── local_init │   ├── mem_init0

Re: [PATCH] gpio: add COMPILE_TEST to several drivers

2017-07-06 Thread Linus Walleij
On Tue, Jul 4, 2017 at 5:51 AM, Masahiro Yamada wrote: > These drivers are actually platform-agnostic. Add COMPILE_TEST for > the compilation test coverage. > > Signed-off-by: Masahiro Yamada I had such patches in the past. It breaks everything to the left and right. What I need is someone w

[RFC v2 1/5] acpi: add missing include in acpi_numa.h

2017-07-06 Thread Ross Zwisler
Right now if a file includes acpi_numa.h and they don't happen to include linux/numa.h before it, they get the following warning: ./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined [-Wundef] #if MAX_NUMNODES > 256 ^~~~ Signed-off-by: Ross Zwisler --- include/ac

[RFC v2 4/5] sysfs: add sysfs_add_group_link()

2017-07-06 Thread Ross Zwisler
The current __compat_only_sysfs_link_entry_to_kobj() code allows us to create symbolic links in sysfs to groups or attributes. Something like: /sys/.../entry1/groupA -> /sys/.../entry2/groupA This patch extends this functionality with a new sysfs_add_group_link() call that allows the link to hav

[RFC v2 3/5] hmem: add heterogeneous memory sysfs support

2017-07-06 Thread Ross Zwisler
Add a new sysfs subsystem, /sys/devices/system/hmem, which surfaces information about memory initiators and memory targets to the user. These initiators and targets are described by the ACPI SRAT and HMAT tables. A "memory initiator" in this case is any device such as a CPU or a separate memory I

Re: [PATCH 16/21] x86/intel_rdt/cqm: Add mount,umount support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: list_for_each_entry_safe(rdtgrp, tmp, &rdt_all_groups, rdtgroup_list) { + /* Free any child rmids */ + llist = &rdtgrp->crdtgrp_list; + list_for_each_entry_

[PATCH] drm/rockchip: fix NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
The right variable to check here is port, not dp. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/rockchip/cdn-dp-cor

[RFC] interrupts DT property for irqdomain hierarchy

2017-07-06 Thread Masahiro Yamada
Hi IRQ experts, DT exports, I have a question about CONFIG_IRQ_DOMAIN_HIERARCHY. When IRQ domains are hierarchy, how can we specify IRQ number re-mapping between the parent irqchip and the child irqchip? The following figure shows a simplified example. |--||--| |-

ketchup is obsolete, everyone should use git; but how on 256MB machine?

2017-07-06 Thread Pavel Machek
Hi! I tried using git to clone kernel tree on N900, and could not figure out how to do that. This machine has 256MB ram... more than enough for kernel compilation, but apparently not enough for git. pavel@n900:/data/tmp$ git clone --depth -1 git://git.kernel.org/pub/scm/linux/kernel/git/pavel/lin

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-06 Thread Yury Norov
Hi Catalin, On Thu, Jun 29, 2017 at 05:10:36PM +0100, Catalin Marinas wrote: > Hi Yury, > > On Mon, Jun 19, 2017 at 06:49:43PM +0300, Yury Norov wrote: > > This series enables aarch64 with ilp32 mode. > > Thanks for putting this series together, I do appreciate the effort. > There are still some

[PATCH 0/4] kasan: add clang support

2017-07-06 Thread Greg Hackmann
This patch series adds support for building KASAN-enabled kernels with clang. This mostly involves adding callbacks for a couple of new features in LLVM's AddressSanitizer implementation. We also need to probe for the (slightly different) CFLAGS used to configure ASAN with clang. *** BLURB HERE *

[PATCH 3/4] kasan: support LLVM-style asan parameters

2017-07-06 Thread Greg Hackmann
Use cc-option to figure out whether the compiler's sanitizer uses LLVM-style parameters ("-mllvm -asan-foo=bar") or GCC-style parameters ("--param asan-foo=bar"). Signed-off-by: Greg Hackmann --- scripts/Makefile.kasan | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a

[PATCH 1/4] kasan: support alloca() poisoning

2017-07-06 Thread Greg Hackmann
clang's AddressSanitizer implementation adds redzones on either side of alloca()ed buffers. These redzones are 32-byte aligned and at least 32 bytes long. __asan_alloca_poison() is passed the size and address of the allocated buffer, *excluding* the redzones on either side. The left redzone will

[PATCH 2/4] kasan: added functions for unpoisoning stack variables

2017-07-06 Thread Greg Hackmann
From: Alexander Potapenko As a code-size optimization, LLVM builds since r279383 may bulk-manipulate the shadow region when (un)poisoning large memory blocks. This requires new callbacks that simply do an uninstrumented memset(). This fixes linking the Clang-built kernel when using KASAN. Sign

[PATCH 4/4] kasan: add compiler support for clang

2017-07-06 Thread Greg Hackmann
For now we can hard-code ASAN ABI level 5, since historical clang builds can't build the kernel anyway. We also need to emulate gcc's __SANITIZE_ADDRESS__ flag, or memset() calls won't be instrumented. Signed-off-by: Greg Hackmann --- include/linux/compiler-clang.h | 10 ++ 1 file chang

Re: [RFC v2 1/5] acpi: add missing include in acpi_numa.h

2017-07-06 Thread Rafael J. Wysocki
On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler wrote: > Right now if a file includes acpi_numa.h and they don't happen to include > linux/numa.h before it, they get the following warning: > > ./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined > [-Wundef] > #if MAX_NUMNODES > 2

[PATCH] iio: multiplexer: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. S

Re: [RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Rafael J. Wysocki
On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler wrote: > The current implementation of acpi_parse_entries_array() assumes that each > subtable has a standard ACPI subtable entry of type struct > acpi_sutbable_header. This standard subtable header has a one byte length > followed by a one byte type.

[PATCH v3 0/7] Appended signatures support for IMA appraisal

2017-07-06 Thread Thiago Jung Bauermann
Hello, The main change in this version is that the process of first trying to verify a modsig and then trying an xattr sig if the former fails is now done in ima_appraise_measurement instead of process_measurement. As a result, the changes needed in the latter are small. This is possible because

<    2   3   4   5   6   7   8   9   10   >