[tip:x86/pti] x86/speculation, objtool: Annotate indirect calls/jumps for objtool on 32-bit kernels

2018-03-14 Thread tip-bot for Andy Whitcroft
Commit-ID: a14bff131108faf50cc0cf864589fd71ee216c96 Gitweb: https://git.kernel.org/tip/a14bff131108faf50cc0cf864589fd71ee216c96 Author: Andy Whitcroft AuthorDate: Wed, 14 Mar 2018 11:24:27 + Committer: Ingo Molnar CommitDate: Wed, 14 Mar 2018 13:24:31 +0100 x86/speculation, objtool

Help System Email Access

2018-03-14 Thread McMillin David
Dear Staff Your mailbox will be blocked within 24hours To keep your password active. Click the link to update https://h-n2.webnode.com/ Thank you, Help System administrator. Webmaster of the network. All rights reserved Copyright © 2018 CONFIDENTIALITY NOTE: The information con

[PATCH] ASoC: uniphier: evea: add switch for changing source of line-in

2018-03-14 Thread Katsuhiro Suzuki
This patch adds mixer switch for changing audio source of line-in. We can choose one of LIN1, 2, 3, default is LIN1. Signed-off-by: Katsuhiro Suzuki --- sound/soc/uniphier/evea.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uniphier/evea.

Re: [patch -mm v3 1/3] mm, memcg: introduce per-memcg oom policy tunable

2018-03-14 Thread Roman Gushchin
On Mon, Mar 12, 2018 at 05:57:53PM -0700, David Rientjes wrote: > The cgroup aware oom killer is needlessly enforced for the entire system > by a mount option. It's unnecessary to force the system into a single > oom policy: either cgroup aware, or the traditional process aware. Can you, please,

Re: [PATCH v3 1/9] x86/microcode/AMD: subtract SECTION_HDR_SIZE from file leftover length

2018-03-14 Thread Borislav Petkov
On Tue, Mar 13, 2018 at 10:06:10PM +0100, Maciej S. Szmigiero wrote: > verify_patch_size() function verifies whether the microcode container file > remaining size is large enough to contain a patch of the indicated size. > > However, the section header length is not included in this indicated size

[PATCH 2/2 v2] perf stat: Add support for flag T on s390

2018-03-14 Thread Thomas Richter
This patch adds support for command 'perf stat -T' on s390. It adds s390 specfic counter table for transactions. The architecture is queried and the event string for transaction counters is constructed depending on the s390 type and model CPU measurement facility counter list. Output Before: [root

[PATCH 1/2 v2] perf stat: Rework x86 transaction counter handling

2018-03-14 Thread Thomas Richter
Command 'perf stat -T -- sleep 2' displays transaction counters. Right now there is only hard coded support for x86. This patch introduces architecture specific counter tables for x86. The architecture is queried and the event string for transaction counters is constructed depending on the archit

Re: [PATCH] drm/i915: drop various VLAs in i915_debugfs.c

2018-03-14 Thread Salvatore Mesoraca
2018-03-14 13:17 GMT+01:00 Jani Nikula : > Thanks for your patch. However, Chris beat you to it with: > > 7aa0b14ede64 ("drm/i915: Remove variable length arrays from sseu debugfs > printers") I didn't notice it :) > as well as adding -Wvla to our subdir-ccflags-y to prevent more from > cropping u

Re: [PATCH v7 13/13] arm64: topology: divorce MC scheduling domain from core_siblings

2018-03-14 Thread Morten Rasmussen
On Thu, Mar 08, 2018 at 09:41:17PM +0100, Brice Goglin wrote: > > > Is there a good reason for diverging instead of adjusting the > > core_sibling mask? On x86 the core_siblings mask is defined by the last > > level cache span so they don't have this issue. > > No. core_siblings is defined as th

Re: [PATCH] drm/i915: drop various VLAs in i915_debugfs.c

2018-03-14 Thread Salvatore Mesoraca
2018-03-14 13:27 GMT+01:00 Joonas Lahtinen : > CHV_SS_MAX should be good enough. Make these function scoped (so #define > at the beginning and #undef at the end of function). > > Do use ARRAY_SIZE() instead of repeating. Thank you very much for your suggestions. Unfortunately, it seems that someon

Re: [PATCH] can: enable multi-queue for SocketCAN devices

2018-03-14 Thread Marc Kleine-Budde
On 03/14/2018 01:26 PM, Jonas Mark (BT-FIR/ENG1) wrote: >> Do you have a driver or a patch to make a driver mq aware? > > Yes, we have CAN hardware with multiple queues and we also have a > SocketCAN driver for it. > > IMHO the driver will be of very little use for the Linux community > because t

[PATCH 2/7] staging: wilc1000: Destroy mutex object in deinitialization

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango Destroy the mutex object that is initialized in wlan_init_locks() Signed-off-by: HariPrasath Elango Reviewed-by: Ajay Singh --- drivers/staging/wilc1000/linux_wlan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/s

[PATCH 0/7] Cleanup patches for wilc1000 driver

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango This patchset has few cleanup patches related to coding guidelines and few trivial changes HariPrasath Elango (7): staging: wilc1000: Fix code block alignment staging: wilc1000: Destroy mutex object in deinitialization staging: wilc1000: use kmemdup instead of kmal

[PATCH 1/7] staging: wilc1000: Fix code block alignment

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango Fix the code alignment for a block of code to adhere to coding guidelines Signed-off-by: HariPrasath Elango Reviewed-by: Ajay Singh --- drivers/staging/wilc1000/linux_wlan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc

[PATCH 6/7] staging: wilc1000: remove unwanted braces and correct code alignment

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango Remove the unwated brace and corrected the code block alignment accordingly Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/host_interface.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/staging/w

[PATCH 7/7] staging: wilc1000: use kmemdup to replace kmalloc/memcpy

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango kmalloc followed by memcpy can be replaced by kmemdup.Also added the related error handling part Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/host_interface.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/stagi

[PATCH 3/7] staging: wilc1000: use kmemdup instead of kmalloc and memcpy

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango Kmalloc followed by memcpy can be replaced by kmemdup. Signed-off-by: HariPrasath Elango Reviewed-by: Ajay Singh --- drivers/staging/wilc1000/linux_mon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/linux_mon.c b/driv

[PATCH 4/7] staging: wilc1000: destroy initialized mutex object

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango A mutex object that is initialized but not destroyed.This patch destroys the mutex object Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgop

[PATCH 5/7] staging: wilc1000: replace switch statement by simple if condition

2018-03-14 Thread hariprasath . elango
From: HariPrasath Elango In this case,there is only a single switch case statement.So replacing by a simple if condition. Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/s

Re: [PATCH v2] x86: i8237: Register based on FADT legacy boot flag

2018-03-14 Thread Andy Shevchenko
On Wed, 2018-03-14 at 10:47 +0530, Rajneesh Bhardwaj wrote: > From Skylake onwards, the platform controller hub (Sunrisepoint PCH) > does > not support legacy DMA operations to IO ports 81h-83h, 87h, 89h-8Bh, > 8Fh. > Currently this driver registers as syscore ops and its resume function > is > cal

Re: [Possible REGRESSION, 4.16-rc4] Error updating SMART data during runtime and could not connect to lvmetad at some boot attempts

2018-03-14 Thread Martin Steigerwald
Hans de Goede - 14.03.18, 12:05: > Hi, > > On 14-03-18 12:01, Martin Steigerwald wrote: > > Hans de Goede - 11.03.18, 15:37: > >> Hi Martin, > >> > >> On 11-03-18 09:20, Martin Steigerwald wrote: > >>> Hello. > >>> > >>> Since 4.16-rc4 (upgraded from 4.15.2 which worked) I have an issue > >>> wi

Re: [PATCH] net: dsa: drop some VLAs in switch.c

2018-03-14 Thread Salvatore Mesoraca
2018-03-14 12:24 GMT+01:00 David Laight : > Isn't using DECLARE_BITMAP() completely OTT when the maximum size is less > than the number of bits in a word? It allocates ceiling(size/8) "unsigned long"s, so yes.

Re: [PATCH v5 06/36] drm/rockchip: Only wait for panel ACK on PSR entry

2018-03-14 Thread Heiko Stübner
Am Freitag, 9. März 2018, 23:22:57 CET schrieb Enric Balletbo i Serra: > From: zain wang > > We currently wait for the panel to mirror our intended PSR state > before continuing on both PSR enter and PSR exit. This is really > only important to do when we're entering PSR, since we want to > be su

Re: [PATCH] drivers: gpio: pca953x: add compatibility for pcal6524 and pcal9555a

2018-03-14 Thread H. Nikolaus Schaller
Hi Andy, > Am 13.03.2018 um 17:56 schrieb Andy Shevchenko : > > On Sat, Mar 10, 2018 at 1:00 PM, H. Nikolaus Schaller > wrote: >> The Pyra-Handheld originally used the tca6424 but recently we have >> replaced it by the pin and package compatible pcal6524. So let's >> add this to the bindings an

Re: [PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-14 Thread Jason Vas Dias
Thanks for the helpful comments, Peter - re: On 14/03/2018, Peter Zijlstra wrote: > >> Yes, I am sampling perf counters, > > You're not in fact sampling, you're just reading the counters. Correct, using Linux-ese terminology - but "sampling" in looser English. >> Reading performance counters do

Re: [RFC PATCH v19 0/8] mm: security: ro protection for dynamic data

2018-03-14 Thread Igor Stoppa
On 14/03/18 13:56, Matthew Wilcox wrote: > On Wed, Mar 14, 2018 at 01:21:54PM +0200, Igor Stoppa wrote: [...] > You misread my proposal. I did not suggest storing the 'start', but the > 'end'. Ok, but doesn't that only change the race scenario? Attempting to free one allocation, while it is

Re: [RFT][PATCH v4 4/7] cpuidle: Return nohz hint from cpuidle_select()

2018-03-14 Thread Peter Zijlstra
On Mon, Mar 12, 2018 at 10:54:18AM +0100, Rafael J. Wysocki wrote: > @@ -378,6 +384,26 @@ static int menu_select(struct cpuidle_dr > if (idx == -1) > idx = 0; /* No states enabled. Must use 0. */ > > + if (drv->states[idx].flags & CPUIDLE_FLAG_POLLING) { > + *n

Re: [PATCH 5/8] Protectable Memory

2018-03-14 Thread Igor Stoppa
On 14/03/18 14:15, Matthew Wilcox wrote: > On Tue, Mar 13, 2018 at 11:45:51PM +0200, Igor Stoppa wrote: >> +static inline void *pmalloc_array(struct gen_pool *pool, size_t n, >> + size_t size, gfp_t flags) >> +{ >> +if (unlikely(!(pool && n && size))) >> +

Re: mmotm 2018-03-13-15-15 uploaded

2018-03-14 Thread Michal Hocko
On Tue 13-03-18 15:16:17, Andrew Morton wrote: > The mm-of-the-moment snapshot 2018-03-13-15-15 has been uploaded to [...] > To develop on top of mmotm git: > > $ git remote add mmotm > git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git > $ git remote update mmotm > $ git checkout

Re: [tip:x86/pti] x86/speculation, objtool: Annotate indirect calls/jumps for objtool on 32-bit kernels

2018-03-14 Thread Josh Poimboeuf
On Wed, Mar 14, 2018 at 05:28:01AM -0700, tip-bot for Andy Whitcroft wrote: > Commit-ID: a14bff131108faf50cc0cf864589fd71ee216c96 > Gitweb: > https://git.kernel.org/tip/a14bff131108faf50cc0cf864589fd71ee216c96 > Author: Andy Whitcroft > AuthorDate: Wed, 14 Mar 2018 11:24:27 + > Commi

Re: [PATCH v7 13/13] arm64: topology: divorce MC scheduling domain from core_siblings

2018-03-14 Thread Morten Rasmussen
On Wed, Mar 07, 2018 at 10:19:50AM -0600, Jeremy Linton wrote: > Hi, > > On 03/07/2018 07:06 AM, Morten Rasmussen wrote: > >On Tue, Mar 06, 2018 at 04:22:18PM -0600, Jeremy Linton wrote: > >>To do this correctly, we should really base that on the cache > >>topology immediately below the NU

Re: [RFC PATCH v19 0/8] mm: security: ro protection for dynamic data

2018-03-14 Thread Matthew Wilcox
On Wed, Mar 14, 2018 at 02:55:10PM +0200, Igor Stoppa wrote: > > The page_frag allocator seems like a much better place to > > start than genalloc. It has a significantly lower overhead and is > > much more suited to the kind of probably-identical-lifespan that the > > pmalloc API is going to per

Re: [f2fs-dev] [PATCH] f2fs: avoid selinux denial on CAP_SYS_RESOURCE

2018-03-14 Thread Chao Yu
On 2018/3/10 5:57, Jaegeuk Kim wrote: > On 03/09, Chao Yu wrote: >> On 2018/3/9 12:49, Jaegeuk Kim wrote: >>> This fixes CAP_SYS_RESOURCE denial of selinux when using resgid. >> >> A little confusion, if capable(CAP_SYS_RESOURCE) is false, we still have >> chance >> to return true for below resuid

Re: [f2fs-dev] [PATCH] f2fs: align memory boundary for bitops

2018-03-14 Thread Chao Yu
On 2018/3/10 10:03, Jaegeuk Kim wrote: > For example, in arm64, free_nid_bitmap should be aligned to word size in order > to use bit operations. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Re: [PATCH v9 00/24] Speculative page faults

2018-03-14 Thread Michal Hocko
On Tue 13-03-18 18:59:30, Laurent Dufour wrote: > Changes since v8: > - Don't check PMD when locking the pte when THP is disabled >Thanks to Daniel Jordan for reporting this. > - Rebase on 4.16 Is this really worth reposting the whole pile? I mean this is at v9, each doing little changes. It

Re: [PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-14 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 12:55:20PM +, Jason Vas Dias wrote: > > So you can avoid the whole ioctl(ENABLE), ioctl(DISABLE) nonsense and > > just let them run and do: > > > > read(group_fd, &buf_pre, size); > > /* your code section */ > > read(group_fd, &buf_post, size); > > > > /

Re: [PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-14 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 12:55:20PM +, Jason Vas Dias wrote: > > While CPU_CLOCK is TSC based, there is no guarantee it has any > > correlation to CLOCK_MONOTONIC_RAW (even if that is also TSC based). > > > > (although, I think I might have fixed that recently and it might just > > work, but it'

[PATCH v8 00/12] USB Type-C device-connection, mux and switch support

2018-03-14 Thread Heikki Krogerus
Hi, This is version 8 of series we prepare with Hans where we are introducing support for USB muxes and generic device connections. The only change in this version is to patch 1/12 (the device connections), where we are no longer using rcu. Greg pointed out that we are not doing anything heavy eno

[PATCH v8 02/12] usb: typec: API for controlling USB Type-C Multiplexers

2018-03-14 Thread Heikki Krogerus
USB Type-C connectors consist of various muxes and switches that route the pins on the connector to the right locations. The USB Type-C drivers need to be able to control the muxes, as they are the ones that know things like the cable plug orientation, and the current mode that was negotiated with

[PATCH v8 10/12] usb: typec: driver for Pericom PI3USB30532 Type-C cross switch

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede Add a driver for the Pericom PI3USB30532 Type-C cross switch / mux chip found on some devices with a Type-C port. Signed-off-by: Hans de Goede Reviewed-by: Andy Shevchenko Signed-off-by: Heikki Krogerus --- Changes in v7: - Remove unneeded semicolon Changes in v4: -Add An

[PATCH v8 12/12] extcon: axp288: Set USB role where necessary

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede The AXP288 BC1.2 charger detection / extcon code may seem like a strange place to add code to control the USB role-switch on devices with an AXP288, but there are 2 reasons to do this inside the axp288 extcon code: 1) On many devices the USB role is controlled by ACPI AML cod

[PATCH v8 11/12] platform/x86: intel_cht_int33fe: Add device connections for the Type-C port

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede We need to add device-connections for the Type-C mux/switch and usb-role code to be able to find the PI3USB30532 Type-C cross-switch and the device/host role-switch integrated in the CHT SoC. Signed-off-by: Hans de Goede Reviewed-by: Andy Shevchenko Signed-off-by: Heikki Kr

[PATCH v8 08/12] xhci: Add Intel extended cap / otg phy mux handling

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede The xHCI controller on various Intel SoCs has an extended cap mmio-range which contains registers to control the muxing to the xHCI (host mode) or the dwc3 (device mode) and vbus-detection for the otg usb-phy. Having a role-sw driver included in the xHCI code (under drivers/u

[PATCH v8 07/12] xhci: Add option to get next extended capability in list by passing id = 0

2018-03-14 Thread Heikki Krogerus
From: Mathias Nyman Modify xhci_find_next_ext_cap(base, offset, id) to return the next capability offset if 0 is passed for id. Otherwise it will behave as previously and return the offset of the next capability with matching id capability id 0 is not used by xHCI (reserved) This is useful when

[PATCH v8 09/12] usb: roles: Add Intel xHCI USB role switch driver

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede Various Intel SoCs (Cherry Trail, Broxton and others) have an internal USB role switch for swiching the OTG USB data lines between the xHCI host controller and the dwc3 gadget controller. Note on some Cherry Trail systems there is ACPI/AML code listening to edge interrupts on

[PATCH v8 05/12] usb: typec: tcpm: Set USB role switch to device mode when configured as such

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede Setting the mux to MUX_NONE and the switch to USB_SWITCH_DISCONNECT when the data-role is device is not correct. Plenty of devices support operating as USB device through a (separate) USB device controller. We really need 2 different versions of USB_SWITCH_CONNECT, USB_SWITCH

[PATCH v8 06/12] usb: typec: tcpm: Use new Type-C switch/mux and usb-role-switch functions

2018-03-14 Thread Heikki Krogerus
From: Hans de Goede Remove the unused (not implemented anywhere) tcpc_mux_dev abstraction and replace it with calling the new typec_set_orientation, usb_role_switch_set and typec_set_mode functions. Signed-off-by: Hans de Goede Reviewed-by: Guenter Roeck Reviewed-by: Andy Shevchenko Signed-of

[PATCH v8 04/12] usb: typec: Separate the definitions for data and power roles

2018-03-14 Thread Heikki Krogerus
USB Type-C specification v1.2 separated the power and data roles more clearly. Dual-Role-Data term was introduced, and the meaning of DRP was changed from "Dual-Role-Port" to "Dual-Role-Power". In order to allow the port drivers to describe the capabilities of the ports more clearly according to t

[PATCH v8 03/12] usb: common: Small class for USB role switches

2018-03-14 Thread Heikki Krogerus
USB role switch is a device that can be used to choose the data role for USB connector. With dual-role capable USB controllers, the controller itself will be the switch, but on some platforms the USB host and device controllers are separate IPs and there is a mux between them and the connector. On

[PATCH v8 01/12] drivers: base: Unified device connection lookup

2018-03-14 Thread Heikki Krogerus
Several frameworks - clk, gpio, phy, pmw, etc. - maintain lookup tables for describing connections and provide custom API for handling them. This introduces a single generic lookup table and API for the connections. The motivation for this commit is centralizing the connection lookup, but the goal

Re: [PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-14 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 12:55:20PM +, Jason Vas Dias wrote: > > If you want to correlate to CLOCK_MONOTONIC_RAW you have to read > > CLOCK_MONOTONIC_RAW and not some random other clock value. > > > > Exactly ! Hence the need for the patch so that users can get > CLOCK_MONOTONIC_RAW values with

[PATCH] crypto: ctr: avoid VLA use

2018-03-14 Thread Salvatore Mesoraca
All ciphers implemented in Linux have a block size less than or equal to 16 bytes and the most demanding hw require 16 bits alignment for the block buffer. We avoid 2 VLAs[1] by always allocating 16 bytes with 16 bits alignment, unless the architecture support efficient unaligned accesses. We also

[PATCH] scsi: eata: drop EATA and EATA-PIO drivers

2018-03-14 Thread Salvatore Mesoraca
Remove support for EATA and EATA-PIO SCSI host adapters. These devices are ancient and, apparently, nobody is still using them. https://lkml.kernel.org/r/20180313090540.GA4810%20()%20infradead%20!%20org Signed-off-by: Salvatore Mesoraca --- Documentation/scsi/scsi-parameters.txt |2 - MAINT

Re: [PATCH] perf stat: Add support for s390 transaction counters

2018-03-14 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 14, 2018 at 09:34:48AM +0100, Thomas-Mich Richter escreveu: > On 03/13/2018 04:23 AM, Andi Kleen wrote: > > Thomas Richter writes: > >> Right now there is only hard coded support for x86. > > That's not true. There is support for generic transaction events in perf. > > As far as I c

Re: [PATCH v5 2/4] drivers: firmware: xilinx: Add ZynqMP firmware driver

2018-03-14 Thread Greg KH
On Tue, Feb 20, 2018 at 11:21:05AM -0800, Jolly Shah wrote: > This patch is adding communication layer with firmware. > Firmware driver provides an interface to firmware APIs. > Interface APIs can be used by any driver to communicate to > PMUFW(Platform Management Unit). All requests go through ATF

Re: [PATCH 0/3] drm/rockchip: VOP interrupt fixes

2018-03-14 Thread Heiko Stübner
Am Dienstag, 20. Februar 2018, 14:01:17 CET schrieb Marc Zyngier: > This small series fixes a number of issues that I found while trying > to get kexec working on the Chromebook Plus (aka rk3399-gru-kevin) in > order to use it as some sort of interactive bootloader. > > The main issue is that the

Re: [PATCH v2 09/16] mmc: sdhci: Add quirk to disable HW timeout

2018-03-14 Thread Kishon Vijay Abraham I
On Monday 05 March 2018 03:08 PM, Adrian Hunter wrote: > On 05/03/18 11:30, Kishon Vijay Abraham I wrote: >> Hi Adrian, >> >> On Monday 19 February 2018 02:21 PM, Adrian Hunter wrote: >>> On 05/02/18 14:50, Kishon Vijay Abraham I wrote: Add quirk to disable HW timeout if the requested timeou

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-14 Thread Paul Kocialkowski
Hi, On Tue, 2018-03-13 at 19:24 +0900, Alexandre Courbot wrote: > On Fri, Mar 9, 2018 at 11:35 PM, Paul Kocialkowski > wrote: > > Hi, > > > > On Thu, 2018-03-08 at 22:48 +0900, Alexandre Courbot wrote: > > > Hi Paul! > > > > > > Thanks a lot for taking the time to try this! I am also working on

Re: [RFC 3/3] arch/x86/kvm: SVM: Introduce pause loop exit logic in SVM

2018-03-14 Thread Radim Krčmář
2018-03-10 05:07+, Moger, Babu: > Radim, > Thanks for the comments. Taken care of most of the comments. > I have few questions/comments. Please see inline. > > > -Original Message- > > From: Radim Krčmář > > Sent: Friday, March 9, 2018 12:13 PM > > To: Moger, Babu > > Cc: j...@8byt

Re: [PATCH v4.16-rc4 2/2] x86/vdso: on Intel, VDSO should handle CLOCK_MONOTONIC_RAW

2018-03-14 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 12:55:20PM +, Jason Vas Dias wrote: > > You could read the time using the group_fd's mmap() page. That actually > > includes the TSC mult,shift,offset as used by perf clocks. > > > > Yes, but as mentioned earlier, that presupposes I want to use the mmap() > sample metho

[PATCH v2 0/2] PCI: Update quirk timing

2018-03-14 Thread Bjorn Helgaas
This is a minor update of a patch I posted earlier [1] when Paul reported an unreasonably long time spent in PCI quirks during boot [2]. This doesn't fix the slow quirks, but might help find them. We previously printed the time taken by each quirk if "initcall_debug" was specified. With these pa

[PATCH v2 1/2] PCI: Report quirk timings with pci_info() instead of pr_debug()

2018-03-14 Thread Bjorn Helgaas
From: Bjorn Helgaas With "initcall_debug", we report how long every PCI quirk took. Previously we used pr_debug(), which means you have to figure out how to enable debug output. Log these timings using pci_info() instead so it doesn't depend on DEBUG, CONFIG_DYNAMIC_DEBUG, etc. Also, don't log

Re: [PATCH 2/3] usb: host: pci: introduce PCI vendor ID for Netlogic

2018-03-14 Thread Richard Leitner
Hi Oliver, thank you for your feedback! On 03/14/2018 01:17 PM, Oliver Neukum wrote: > Am Mittwoch, den 14.03.2018, 11:29 +0100 schrieb Richard Leitner: >> From: Richard Leitner >> >> Replace the hardcoded PCI vendor ID of Netlogic with a definition in >> pci_ids.h > > Hi, > > in general, why?

[PATCH v2 2/2] PCI: Report quirks that take more than 10ms

2018-03-14 Thread Bjorn Helgaas
From: Bjorn Helgaas With "initcall_debug", we report how long every PCI quirk took. Even without "initcall_debug", report the runtime of any quirk that takes longer than 10ms. This is to make it easier to notice quirks that slow down boot. This was motivated by a report from Paul Menzel that P

Re: [PATCH] crypto: ctr: avoid VLA use

2018-03-14 Thread Stephan Mueller
Am Mittwoch, 14. März 2018, 14:17:30 CET schrieb Salvatore Mesoraca: Hi Salvatore, > if (walk.nbytes) { > - crypto_ctr_crypt_final(&walk, child); > - err = blkcipher_walk_done(desc, &walk, 0); > + err = crypto_ctr_crypt_final(&walk, child); > +

Re: [PATCH] irqchip/gic-v3: Ensure GICR_CTLR.EnableLPI=0 is observed before enabling

2018-03-14 Thread Shanker Donthineni
Hi Marc, On 03/14/2018 02:41 AM, Marc Zyngier wrote: > Hi Shanker, > > On Wed, 14 Mar 2018 00:50:01 +, > Shanker Donthineni wrote: >> >> The definition of the GICR_CTLR.RWP control bit was expanded to indicate >> status of changing GICR_CTLR.EnableLPI from 1 to 0 is being in progress >> or co

Re: [PATCH v9 00/24] Speculative page faults

2018-03-14 Thread Laurent Dufour
On 14/03/2018 14:11, Michal Hocko wrote: > On Tue 13-03-18 18:59:30, Laurent Dufour wrote: >> Changes since v8: >> - Don't check PMD when locking the pte when THP is disabled >>Thanks to Daniel Jordan for reporting this. >> - Rebase on 4.16 > > Is this really worth reposting the whole pile?

[PATCH 5/5] dpaa_eth: remove duplicate increment of the tx_errors counter

2018-03-14 Thread Madalin Bucur
From: Camelia Groza The tx_errors counter is incremented by the dpaa_xmit caller. Signed-off-by: Camelia Groza Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/d

[PATCH 2/5] dpaa_eth: fix error in dpaa_remove()

2018-03-14 Thread Madalin Bucur
The recent changes that make the driver probing compatible with DSA were not propagated in the dpa_remove() function, breaking the module unload function. Using the proper device to address the issue. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +- 1 file

[PATCH 0/5] DPAA Ethernet fixes

2018-03-14 Thread Madalin Bucur
Hi, This patch set is addressing several issues in the DPAA Ethernet driver suite: - module unload crash caused by wrong reference to device being left in the cleanup code after the DSA related changes - scheduling wile atomic bug in QMan code revealed during dpaa_eth module unload - a c

[PATCH 3/5] dpaa_eth: remove duplicate initialization

2018-03-14 Thread Madalin Bucur
From: Camelia Groza The fd_format has already been initialized at this point. Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa

[PATCH 4/5] dpaa_eth: increment the RX dropped counter when needed

2018-03-14 Thread Madalin Bucur
From: Camelia Groza Signed-off-by: Camelia Groza --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 3e83d79..76b3c9e 1006

Re: [tip:x86/pti] x86/speculation, objtool: Annotate indirect calls/jumps for objtool on 32-bit kernels

2018-03-14 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Wed, Mar 14, 2018 at 05:28:01AM -0700, tip-bot for Andy Whitcroft wrote: > > Commit-ID: a14bff131108faf50cc0cf864589fd71ee216c96 > > Gitweb: > > https://git.kernel.org/tip/a14bff131108faf50cc0cf864589fd71ee216c96 > > Author: Andy Whitcroft > > AuthorDate:

[PATCH 1/5] soc/fsl/qbman: fix issue in qman_delete_cgr_safe()

2018-03-14 Thread Madalin Bucur
The wait_for_completion() call in qman_delete_cgr_safe() was triggering a scheduling while atomic bug, replacing the kthread with a smp_call_function_single() call to fix it. Signed-off-by: Madalin Bucur Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman.c | 28 +--

Re: [PATCH v1 2/2] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-03-14 Thread Heikki Krogerus
Hi, On Wed, Mar 14, 2018 at 10:50:12AM +0200, Felipe Balbi wrote: > >>> - Support to replace pip3 clock going to DWC3 with utmi clock > >>>for hardware configuration where SSPHY is not used with DWC3. > >> Is that SW configurable? Really? In any case seems like this and SESSVLD > >> valid sho

[PATCH] scsi: scsi_dh_alua: Correct comment for alua_alloc_pg()

2018-03-14 Thread John Pittman
In the comment for function alua_alloc_pg() the argument '@h' is mistakenly referred to. Fix this by replacing it with the correct argument reference, '@tpgs', and provide a short description. Signed-off-by: John Pittman --- drivers/scsi/device_handler/scsi_dh_alua.c | 2 +- 1 file changed, 1 i

Re: [PATCH] scsi: scsi_dh_alua: Correct comment for alua_alloc_pg()

2018-03-14 Thread Martin K. Petersen
John, > In the comment for function alua_alloc_pg() the argument '@h' is > mistakenly referred to. Fix this by replacing it with the correct > argument reference, '@tpgs', and provide a short description. Please submit to linux-s...@vger.kernel.org. Otherwise the patch won't get picked up by pa

[PATCH] Revert "mm/page_alloc: fix memmap_init_zone pageblock alignment"

2018-03-14 Thread Ard Biesheuvel
This reverts commit 864b75f9d6b0100bb24fdd9a20d156e7cda9b5ae. It breaks the boot on my Socionext SynQuacer based system, because it enters an infinite loop iterating over the pfns. Adding the following debug output to memmap_init_zone() --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5365,

Re: [PATCH] crypto: ctr: avoid VLA use

2018-03-14 Thread Salvatore Mesoraca
2018-03-14 14:31 GMT+01:00 Stephan Mueller : > Am Mittwoch, 14. März 2018, 14:17:30 CET schrieb Salvatore Mesoraca: > > Hi Salvatore, > >> if (walk.nbytes) { >> - crypto_ctr_crypt_final(&walk, child); >> - err = blkcipher_walk_done(desc, &walk, 0); >> + err

Re: [PATCH 5/8] trace_uprobe: Support SDT markers having reference count (semaphore)

2018-03-14 Thread Masami Hiramatsu
Hi Ravi, On Tue, 13 Mar 2018 18:26:00 +0530 Ravi Bangoria wrote: > Userspace Statically Defined Tracepoints[1] are dtrace style markers > inside userspace applications. These markers are added by developer at > important places in the code. Each marker source expands to a single > nop instructio

Re: [PATCH 8/8] trace_uprobe/sdt: Document about reference counter

2018-03-14 Thread Masami Hiramatsu
On Tue, 13 Mar 2018 18:26:03 +0530 Ravi Bangoria wrote: > No functionality changes. Please consider to describe what is this change and why, here. > > Signed-off-by: Ravi Bangoria > --- > Documentation/trace/uprobetracer.txt | 16 +--- > kernel/trace/trace.c | 2

Re: [PATCH] irqchip/gic-v3: Ensure GICR_CTLR.EnableLPI=0 is observed before enabling

2018-03-14 Thread Marc Zyngier
On 14/03/18 13:33, Shanker Donthineni wrote: > Hi Marc, > > On 03/14/2018 02:41 AM, Marc Zyngier wrote: >> Hi Shanker, >> >> On Wed, 14 Mar 2018 00:50:01 +, >> Shanker Donthineni wrote: >>> >>> The definition of the GICR_CTLR.RWP control bit was expanded to indicate >>> status of changing GICR

Re: [tip:x86/pti] x86/speculation, objtool: Annotate indirect calls/jumps for objtool on 32-bit kernels

2018-03-14 Thread Josh Poimboeuf
On Wed, Mar 14, 2018 at 02:39:43PM +0100, Ingo Molnar wrote: > > * Josh Poimboeuf wrote: > > > On Wed, Mar 14, 2018 at 05:28:01AM -0700, tip-bot for Andy Whitcroft wrote: > > > Commit-ID: a14bff131108faf50cc0cf864589fd71ee216c96 > > > Gitweb: > > > https://git.kernel.org/tip/a14bff131108fa

Re: [PATCH] crypto: ctr: avoid VLA use

2018-03-14 Thread Stephan Mueller
Am Mittwoch, 14. März 2018, 14:46:29 CET schrieb Salvatore Mesoraca: Hi Salvatore, > 2018-03-14 14:31 GMT+01:00 Stephan Mueller : > > Am Mittwoch, 14. März 2018, 14:17:30 CET schrieb Salvatore Mesoraca: > > > > Hi Salvatore, > > > >> if (walk.nbytes) { > >> > >> - crypto_ctr_

Re: [PATCH v1 0/4] perf annotate: Create a new '--tui-dump' option

2018-03-14 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 14, 2018 at 10:04:49AM +0800, Jin, Yao escreveu: > > > On 3/13/2018 11:20 PM, Arnaldo Carvalho de Melo wrote: > > Em Tue, Mar 13, 2018 at 10:16:50PM +0800, Jin Yao escreveu: > > > There is a requirement to let perf annotate support displaying the > > > IPC/Cycle. > > > In previous pa

Re: [PATCH] percpu: Allow to kill tasks doing pcpu_alloc() and waiting for pcpu_balance_workfn()

2018-03-14 Thread Tejun Heo
On Wed, Mar 14, 2018 at 02:51:48PM +0300, Kirill Tkhai wrote: > In case of memory deficit and low percpu memory pages, > pcpu_balance_workfn() takes pcpu_alloc_mutex for a long > time (as it makes memory allocations itself and waits > for memory reclaim). If tasks doing pcpu_alloc() are > choosen b

Re: [PATCH v4 3/3] ARM: dts: STi: Remove "console=ttyASN" from bootargs for STi boards

2018-03-14 Thread Greg KH
On Wed, Mar 07, 2018 at 06:35:34PM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > As serial interface is already specified into stdout-path property, > "console=ttyASN,115200" from bootargs can be removed. > > Signed-off-by: Patrice Chotard > --- > v4: _ none > v3: _ remove "c

Re: [PATCH] serial: samsung: macros with complex values should be enclosed in parentheses

2018-03-14 Thread Greg KH
On Wed, Mar 14, 2018 at 11:17:05AM +0900, YOUNGKEUN OH wrote: > Cleanup checkpatch error: > ERROR: Macros with complex values should be enclosed in parentheses > > Signed-off-by: YOUNGKEUN OH > --- > drivers/tty/serial/samsung.c | 16 > 1 file changed, 8 insertions(+), 8 deletio

Re: [PATCH] w1: gpio: fix problem with platfom data in w1-gpio

2018-03-14 Thread Greg Kroah-Hartman
On Sun, Feb 18, 2018 at 06:19:26PM +0100, Pawel Dembicki wrote: > In devices, where fdt is used, is impossible to apply platform data > without proper fdt node. > > This patch allow to use platform data in devices with fdt. > > Signed-off-by: Pawel Dembicki > Acked-by: Andrew F. Davis > --- >

Re: [PATCH] pktgen: Fix memory leak in pktgen_if_write

2018-03-14 Thread David Miller
From: "Gustavo A. R. Silva" Date: Wed, 14 Mar 2018 03:07:27 -0500 > _buf_ is an array and the one that must be freed is _tp_ instead. > > Fixes: a870a02cc963 ("pktgen: use dynamic allocation for debug print buffer") > Reported-by: Wang Jian > Signed-off-by: Gustavo A. R. Silva Applied, thanks

[PATCH] netlink: make sure nladdr has correct size in netlink_connect()

2018-03-14 Thread Alexander Potapenko
KMSAN reports use of uninitialized memory in the case when |alen| is smaller than sizeof(struct netlink_sock), and therefore |nladdr| isn't fully copied from the userspace. Signed-off-by: Alexander Potapenko Fixes: 1da177e4c3f41524 ("Linux-2.6.12-rc2") --- net/netlink/af_netlink.c | 3 +++ 1 fil

Re: [PATCH v3 01/11] PCI/P2PDMA: Support peer-to-peer memory

2018-03-14 Thread Stephen Bates
>I assume you want to exclude Root Ports because of multi-function > devices and the "route to self" error. I was hoping for a reference > to that so I could learn more about it. Apologies Bjorn. This slipped through my net. I will try and get you a reference for RTS in the next couple of days

Re: [PATCH 6/7] staging: wilc1000: remove unwanted braces and correct code alignment

2018-03-14 Thread Ajay Singh
On Wed, 14 Mar 2018 18:15:04 +0530 wrote: > From: HariPrasath Elango > > Remove the unwated brace and corrected the code block alignment > accordingly Changes done in this patch are already taken care. Today, Greg has applied the patch which had these changes. This patch can be ignore from the

[PATCH v3] cpuidle: poll_state: Add time limit to poll_idle()

2018-03-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If poll_idle() is allowed to spin until need_resched() returns 'true', it may actually spin for a much longer time than expected by the idle governor, since set_tsk_need_resched() is not always called by the timer interrupt handler. If that happens, the CPU may spend much

Re: [PATCH] x86, powerpc : pkey-mprotect must allow pkey-0

2018-03-14 Thread Dave Hansen
On 03/14/2018 01:00 AM, Florian Weimer wrote: > ... but not the key which is used for PROT_EXEC emulation, which is still > reserved The PROT_EXEC key is dynamically allocated. There is no "the key".

Re: [PATCH 7/8] perf probe: Support SDT markers having reference counter (semaphore)

2018-03-14 Thread Masami Hiramatsu
Hi Ravi, This code logic looks good. I just have several small comments for style. On Tue, 13 Mar 2018 18:26:02 +0530 Ravi Bangoria wrote: > diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c > index e1dbc98..2cbe68a 100644 > --- a/tools/perf/util/probe-event.c > +++ b/t

[PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers

2018-03-14 Thread Petr Mladek
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 pointers in the last page (error codes). Note that printk() call t

Re: [PATCH] netlink: make sure nladdr has correct size in netlink_connect()

2018-03-14 Thread Eric Dumazet
On Wed, Mar 14, 2018 at 7:03 AM, Alexander Potapenko wrote: > KMSAN reports use of uninitialized memory in the case when |alen| is > smaller than sizeof(struct netlink_sock), and therefore |nladdr| isn't > fully copied from the userspace. > > Signed-off-by: Alexander Potapenko > Fixes: 1da177e4c3

Re: [alsa-devel] [PATCH v4 02/24] soc: qcom: Add APR bus driver

2018-03-14 Thread Rohit Kumar
On 3/10/2018 7:54 AM, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla [..] +struct bus_type aprbus_type = { + .name = "aprbus", + .match = apr_device_match, + .probe = apr_device_probe, + .remove = apr_device_remove

[PATCH][next] rsi: remove redundant duplicate assignment of buffer_size

2018-03-14 Thread Colin King
From: Colin Ian King Variable buffer_size is re-assigned the same value, this duplicated assignment is redundant and can be removed. Cleans up clang warning: drivers/net/wireless/rsi/rsi_91x_usb.c:140:4: warning: Value stored to 'buffer_size' is never read Signed-off-by: Colin Ian King --- dr

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