Re: [Part1 PATCH v5 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

2017-09-28 Thread Borislav Petkov
Hi, On Thu, Sep 28, 2017 at 01:48:48PM -0500, Brijesh Singh wrote: > Let me understand the ask, are you saying that we need a method to disable > the SEV > feature from the host OS so that Hypervisor will not be able to create a SEV > guest? > Because once a guest is booted with SEV feature, the

Re: [RFC PATCH 1/2] arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables

2017-09-28 Thread Michael Cree
On Thu, Sep 28, 2017 at 08:43:54AM -0700, Paul E. McKenney wrote: > On Thu, Sep 28, 2017 at 09:45:35AM +0100, Will Deacon wrote: > > On Thu, Sep 28, 2017 at 10:38:01AM +0200, Peter Zijlstra wrote: > > > On Wed, Sep 27, 2017 at 04:49:28PM +0100, Will Deacon wrote: > > > > In many cases, page tables

Re: [PATCH net-next RFC 5/9] net: dsa: forward hardware timestamping ioctls to switch driver

2017-09-28 Thread Vivien Didelot
Hi Brandon, Brandon Streiff writes: > static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int > cmd) > { > + struct dsa_slave_priv *p = netdev_priv(dev); > + struct dsa_switch *ds = p->dp->ds; > + int port = p->dp->index; > + > if (!dev->phydev) >

Re: [PATCH RFC 3/5] Add KSZ8795 switch driver

2017-09-28 Thread Andrew Lunn
On Mon, Sep 18, 2017 at 08:27:13PM +, tristram...@microchip.com wrote: > > > +/** > > > + * Some counters do not need to be read too often because they are less > > likely > > > + * to increase much. > > > + */ > > > > What does comment mean? Are you caching statistics, and updating > > differ

Re: [RFC PATCH 0/2] Missing READ_ONCE in core and arch-specific pgtable code leading to crashes

2017-09-28 Thread Jon Masters
On 09/27/2017 11:49 AM, Will Deacon wrote: > The moral of the story is that read-after-read (same address) ordering *only* > applies if READ_ONCE is used consistently. This means we need to fix page > table dereferences in the core code as well as the arch code to avoid this > problem. The two RFC

[PATCH 1/2] block: genhd: add device_add_disk_with_groups

2017-09-28 Thread Martin Wilck
In the NVME subsystem, we're seeing a race condition with udev where device_add_disk() is called (which triggers an "add" uevent), and a sysfs attribute group is added to the disk device afterwards. If udev rules access these attributes before they are created, udev processing of the device is inco

[PATCH 2/2] nvme: use device_add_disk_with_groups()

2017-09-28 Thread Martin Wilck
By using device_add_disk_with_groups(), we can avoid the race condition with udev rule processing, because no udev event will be triggered before all attributes are available. Signed-off-by: Martin Wilck --- drivers/nvme/host/core.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions

Re: [PATCH][drm-next] drm/amd/powerplay: fix spelling mistake: "dividable" -> "divisible"

2017-09-28 Thread Alex Deucher
On Thu, Sep 28, 2017 at 6:35 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistakes in pr_err error message and ASSERT > messages. > > Signed-off-by: Colin Ian King Applied. thanks! Alex > --- > drivers/gpu/drm/amd/powerplay/smumgr/ci_smc.c | 2 +- > drive

Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API

2017-09-28 Thread Rik van Riel
On Fri, 2017-09-29 at 01:09 +0530, Gargi Sharma wrote: > 1000 processes that just sleep and sit around without doing > anything(100 second sleep and then exit). > > pstree with 10,000 processes > real    0m0.859s > user    0m0.536s > sys    0m0.172s > > ps with 10,000 processes > real    0m0.918

Re: [PATCH] arm64: fix documentation on kernel pages mappings to HYP VA

2017-09-28 Thread Yury Norov
On Wed, Sep 27, 2017 at 10:13:33AM +0100, Will Deacon wrote: > On Wed, Sep 27, 2017 at 09:31:41AM +0100, Marc Zyngier wrote: > > On Tue, Sep 26 2017 at 9:45:42 pm BST, Yury Norov > > wrote: > > > On Wed, Sep 13, 2017 at 09:08:30PM +0300, Yury Norov wrote: > > >> The Documentation/arm64/memory.tx

Re: [PATCH 0/2 v8] oom: capture unreclaimable slab info in oom message

2017-09-28 Thread Tetsuo Handa
Yang Shi wrote: > On 9/27/17 9:36 PM, Tetsuo Handa wrote: > > On 2017/09/28 6:46, Yang Shi wrote: > >> Changelog v7 -> v8: > >> * Adopted Michal’s suggestion to dump unreclaim slab info when > >> unreclaimable slabs amount > total user memory. Not only in oom panic path. > > > > Holding slab_mute

Re: [RFC] ASoC: codecs: msm8916-wcd-analog: use btn0 released detection

2017-09-28 Thread Srinivas Kandagatla
On 13/09/17 13:43, Damien Riegel wrote: msm8916-wcd-analog uses button0 to differentiate between headphone and headset. Under some circumstances, button pressed and released interrupts are not fired as the driver expects it. For instance, with some connectors, there are spurious button-pressed

[RFC] yamldt v0.5, now a DTS compiler too

2017-09-28 Thread Pantelis Antoniou
Hello again, Significant progress has been made on yamldt and is now capable of not only generating yaml from DTS source but also compiling DTS sources and being almost fully compatible with DTC. Compiling the kernel's DTBs using yamldt is as simple as using a DTC=yamldt. Error reporting is accu

Re: [PATCH net-next RFC 3/9] net: dsa: mv88e6xxx: add support for GPIO configuration

2017-09-28 Thread Vivien Didelot
Hi Brandon, >> Would there be any value in implementing a proper gpiochip structure >> here such that other pieces of SW can see this GPIO controller as a >> provider and you can reference it from e.g: Device Tree using GPIO >> descriptors? > > That would be my preference as well, or maybe a pinct

Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API

2017-09-28 Thread Gargi Sharma
On Thu, Sep 28, 2017 at 3:46 PM, Rik van Riel wrote: > On Fri, 2017-09-29 at 01:09 +0530, Gargi Sharma wrote: > >> 1000 processes that just sleep and sit around without doing >> anything(100 second sleep and then exit). >> >> pstree with 10,000 processes >> real0m0.859s >> user0m0.536s >>

[PATCH] Input: synaptics - Disable kernel tracking on SMBus devices

2017-09-28 Thread Andrew Duggan
In certain situations kernel tracking seems to be getting confused and incorrectly reporting the slot of a contact. On example is when the user does a three finger click or tap and then places two fingers on the touchpad in the same area. The kernel tracking code seems to continue to think that the

[PATCH][trace-cmd] Print value of unknown symbolic fields

2017-09-28 Thread Jan Kiszka
From: Jan Kiszka Aligns trace-cmd with the behavior of the kernel. Signed-off-by: Jan Kiszka --- event-parse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event-parse.c b/event-parse.c index 606da5b..25e0874 100644 --- a/event-parse.c +++ b/event-parse.c @@ -3960,6 +3960,8 @@ static

[PATCH] video: fbdev: pxa3xx_gcu: Use setup_timer and mod_timer

2017-09-28 Thread Himanshu Jha
Use setup_timer and mod_timer API instead of structure assignments. This is done using Coccinelle and semantic patch used for this as follows: @@ expression x,y,z,a,b; @@ -init_timer (&x); +setup_timer (&x, y, z); +mod_timer (&a, b); -x.function = y; -x.data = z; -x.expires = b; -add_timer(&a);

[PATCH] scsi: esas2r: Use setup_timer and mod_timer

2017-09-28 Thread Himanshu Jha
Use setup_timer and mod_timer API instead of structure assignments. This is done using Coccinelle and semantic patch used for this as follows: @@ expression x,y,z,a,b; @@ -init_timer (&x); +setup_timer (&x, y, z); +mod_timer (&a, b); -x.function = y; -x.data = z; -x.expires = b; -add_timer(&a);

[GIT PULL] xfs: fixes for 4.14-rc3

2017-09-28 Thread Darrick J. Wong
Hi Linus, Here's the first round of bug fixes for 4.14. --D The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e: Linux 4.14-rc1 (2017-09-16 15:47:51 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-4.14-fixes

Re: [PATCH 0/2 v8] oom: capture unreclaimable slab info in oom message

2017-09-28 Thread Yang Shi
On 9/28/17 12:57 PM, Tetsuo Handa wrote: Yang Shi wrote: On 9/27/17 9:36 PM, Tetsuo Handa wrote: On 2017/09/28 6:46, Yang Shi wrote: Changelog v7 -> v8: * Adopted Michal’s suggestion to dump unreclaim slab info when unreclaimable slabs amount > total user memory. Not only in oom panic path.

[RFC PATCH for 4.14] membarrier powerpc: Move hook to switch_mm()

2017-09-28 Thread Mathieu Desnoyers
Nick has a valid point that the sched_in() hook is a fast-path compared to switch_mm(). Adding an extra TIF test in a fast-path to save a barrier in a comparatively slow-path is therefore not such a good idea overall. Therefore, move the architecture hook to switch_mm() instead. [ This patch is a

[PATCH v2] ARM: multi_v7_defconfig: Enable USB3503 driver

2017-09-28 Thread Linus Lüssing
The Odroid U3 (Exynos 4412 based) for instance needs this driver, otherwise its USB hub will not come up. Also selecting it as built-in to allow booting from USB without an initrd/initramfs. exynos_defconfig does the same already, too. Signed-off-by: Linus Lüssing --- arch/arm/configs/multi_v7_

Re: [Part1 PATCH v5 15/17] percpu: Introduce DEFINE_PER_CPU_DECRYPTED

2017-09-28 Thread Borislav Petkov
On Wed, Sep 27, 2017 at 10:13:27AM -0500, Brijesh Singh wrote: > KVM guest defines three per-CPU variables (steal-time, apf_reason, and > avic_eio) which are shared between a guest and a hypervisor. When SEV > is active, memory is encrypted with a guest-specific key, and if the > guest OS wants to

Re: [PATCH v3 00/20] Speculative page faults

2017-09-28 Thread Andrew Morton
On Thu, 28 Sep 2017 14:29:02 +0200 Laurent Dufour wrote: > > Laurent's [0/n] provides some nice-looking performance benefits for > > workloads which are chosen to show performance benefits(!) but, alas, > > no quantitative testing results for workloads which we may suspect will > > be harmed by

Re: [PATCH 0/2 v8] oom: capture unreclaimable slab info in oom message

2017-09-28 Thread Tetsuo Handa
Yang Shi wrote: > On 9/28/17 12:57 PM, Tetsuo Handa wrote: > > Yang Shi wrote: > >> On 9/27/17 9:36 PM, Tetsuo Handa wrote: > >>> On 2017/09/28 6:46, Yang Shi wrote: > Changelog v7 -> v8: > * Adopted Michal’s suggestion to dump unreclaim slab info when > unreclaimable slabs amount >

Re: [PATCH] mm: Make count list_lru_one::nr_items lockless

2017-09-28 Thread Andrew Morton
On Thu, 28 Sep 2017 10:48:55 +0300 Kirill Tkhai wrote: > >> This patch aims to make super_cache_count() (and other functions, > >> which count LRU nr_items) more effective. > >> It allows list_lru_node::memcg_lrus to be RCU-accessed, and makes > >> __list_lru_count_one() count nr_items lockless t

Re: [PATCH v3 17/22] firmware: arm_scmi: add device power domain support using genpd

2017-09-28 Thread Ulf Hansson
On 28 September 2017 at 15:11, Sudeep Holla wrote: > This patch hooks up the support for device power domain provided by > SCMI using the Linux generic power domain infrastructure. > > Cc: Kevin Hilman > Cc: Ulf Hansson > Signed-off-by: Sudeep Holla > --- > drivers/firmware/Kconfig

Re: [PATCH v3 3/5] media: atmel-isc: Enable the clocks during probe

2017-09-28 Thread Sakari Ailus
Hi Wenyou, On Thu, Sep 28, 2017 at 04:18:26PM +0800, Wenyou Yang wrote: > To meet the relationship, enable the HCLOCK and ispck during the > device probe, "isc_pck frequency is less than or equal to isc_ispck, > and isc_ispck is greater than or equal to HCLOCK." > Meanwhile, call the pm_runtime_en

Re: [PATCH v3] mm, sysctl: make NUMA stats configurable

2017-09-28 Thread Andrew Morton
On Thu, 28 Sep 2017 14:11:41 +0800 Kemi Wang wrote: > This is the second step which introduces a tunable interface that allow > numa stats configurable for optimizing zone_statistics(), as suggested by > Dave Hansen and Ying Huang. Looks OK I guess. I fiddled with it a lot. Please consider: F

[GIT PULL] Power management fixes for v4.14-rc3

2017-09-28 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.14-rc3 with top-most commit abeb19a219dce5c021c759d01434f82924354df7 Merge branches 'pm-opp' and 'pm-cpufreq' on top of commit e19b205be43d11bff638cad4487008c48d21c103 Linux 4.14-rc

[GIT PULL] ACPI fix for v4.14-rc3

2017-09-28 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.14-rc3 with top-most commit 333d1774224de9d1d9cedf11218e297d5421044b Merge branch 'acpi-apei' on top of commit e19b205be43d11bff638cad4487008c48d21c103 Linux 4.14-rc2 to receive

[PATCH v2 0/2] Fix I2C repeated start timing violation on Armada-38x.

2017-09-28 Thread Kalyan Kinthada
All the Armada 38x(380, 385, 388) have a silicon issue in the I2C controller which violates the I2C repeated start timing (errata FE-8471889). Activate the compatible string "marvell,mv78230-a0-i2c" in the device tree file of Armada-38x to fx this errata (FE-8471889). Updated the Documentation fo

[PATCH v2 1/2] ARM: dts: Fix I2C repeated start issue on Armada-38x

2017-09-28 Thread Kalyan Kinthada
All the Armada 38x(380, 385, 388) have a silicon issue in the I2C controller which violates the I2C repeated start timing (errata FE-8471889). i2c-mv64xxx driver handles this errata based on the compatible string "marvell,mv78230-a0-i2c". This patch activates the "marvell,mv78230-a0-i2c" compatib

[PATCH v2 2/2] dt-bindings: i2c: Update documentation for "mv78230-a0-i2c"

2017-09-28 Thread Kalyan Kinthada
This commit modifies the documentation for "marvell,mv78230-a0-i2c" compatible string. The "marvell,mv78230-a0-i2c" compatible string enables the workaround for an i2c repeated start timing violation, but unlike "marvell,mv78230-i2c" it disables the i2c offload support. This is applicable to a num

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-09-28 Thread Andrew Morton
On Wed, 27 Sep 2017 14:13:57 -0600 Jens Axboe wrote: > When someone calls wakeup_flusher_threads() or > wakeup_flusher_threads_bdi(), they schedule writeback of all dirty > pages in the system (or on that bdi). If we are tight on memory, we > can get tons of these queued from kswapd/vmscan. This

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-09-28 Thread Linus Torvalds
On Thu, Sep 28, 2017 at 2:41 PM, Andrew Morton wrote: > > test_and_set_bit()? If there aren't any atomicity concerns (either because of higher-level locking, or because racing and having two people set the bit is fine), it can be better to do them separately if the test_bit() is the common case a

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

2017-09-28 Thread Stephen Rothwell
Hi all, Commit 8f1975e31d8e ("inetpeer: speed up inetpeer_invalidate_tree()") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell

[PATCH] x86/asm: Fix inline asm call constraints for GCC 4.4

2017-09-28 Thread Josh Poimboeuf
The kernel test bot reported that f5caf621ee35 ("x86/asm: Fix inline asm call constraints for Clang") is causing double faults in a kernel compiled with GCC 4.4. The issue is with this code: register unsigned int __asm_call_sp asm("esp"); #define ASM_CALL_CONSTRAINT "+r" (__asm_call_sp)

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-09-28 Thread Dave Chinner
On Thu, Sep 28, 2017 at 08:39:33AM -0400, Mimi Zohar wrote: > Don't attempt to take the i_rwsem, if it has already been taken > exclusively. > > Signed-off-by: Mimi Zohar That's bloody awful. The locking in filesystem IO paths is already complex enough without adding a new IO path semantic tha

Re: [PATCH v2 0/2] Fix y2038 issues for security/keys subsystem

2017-09-28 Thread Baolin Wang
On 28 September 2017 at 17:48, James Morris wrote: > On Thu, 28 Sep 2017, David Howells wrote: > >> James Morris wrote: >> >> > David, have you taken these into your tree? I can apply them to mine if >> > needed. >> >> I was intending to add them to my next tree for security/next. > > Ok, please

Re: [PATCH v1 04/14] tee: shm: add page accessor functions

2017-09-28 Thread Yury Norov
Hi Volodymyr, On Thu, Sep 28, 2017 at 09:04:01PM +0300, Volodymyr Babchuk wrote: > From: Volodymyr Babchuk > > In order to register a shared buffer in TEE, we need accessor > function that return list of pages for that buffer. > > Signed-off-by: Volodymyr Babchuk > --- > include/linux/tee_drv

[PATCH v1 0/3] Minor updates to driver

2017-09-28 Thread Lori Hikichi
This patchset contains a few small updates to the DAI driver. Lori Hikichi (3): ASoC: cygnus: Add EXPORT_SYMBOL for helper function ASoC: cygnus: Remove set_fmt from SPDIF dai ops ASoC: cygnus: Remove support for 8 bit audio and for mono sound/soc/bcm/cygnus-ssp.c | 32 +--

[PATCH v1 3/3] ASoC: cygnus: Remove support for 8 bit audio and for mono

2017-09-28 Thread Lori Hikichi
These modes of operation were not working properly and it is unclear if the hardware could fully support these modes properly. There is little to be gained by enabling these modes, therefore, we will just remove support. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 22 ---

[PATCH v1 2/3] ASoC: cygnus: Remove set_fmt from SPDIF dai ops

2017-09-28 Thread Lori Hikichi
The SPDIF port cannot modify its format so a set_fmt function is not needed. Previously, we used a generic set_fmt for all ports and returned an error code for the SPDIF port. It is cleaner to not populate the set_fmt field. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 9

[PATCH v1 1/3] ASoC: cygnus: Add EXPORT_SYMBOL for helper function

2017-09-28 Thread Lori Hikichi
The helper function cygnus_ssp_set_custom_fsync_width() is intended to be called from an ASoC machine driver, need to export symbol if using modules. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/

[PATCH INTERNAL 1/1] ASoC: cygnus: Remove set_fmt from SPDIF dai ops

2017-09-28 Thread Lori Hikichi
The SPDIF port cannot modify its format so a set_fmt function is not needed. Previously, we used a generic set_fmt for all ports and returned an error code for the SPDIF port. It is cleaner to not populate the set_fmt field. Signed-off-by: Lori Hikichi --- sound/soc/bcm/cygnus-ssp.c | 9

Re: [PATCH V2] r8152: add Linksys USB3GIGV1 id

2017-09-28 Thread Rustad, Mark D
> On Sep 27, 2017, at 9:39 AM, Grant Grundler wrote: > > On Wed, Sep 27, 2017 at 12:15 AM, Oliver Neukum wrote: >> Am Dienstag, den 26.09.2017, 08:19 -0700 schrieb Doug Anderson: >>> >>> I know that for at least some of the adapters in the CDC Ethernet >>> blacklist it was claimed that the CDC

[GIT PULL] security: keys fixes for v4.14-rc3

2017-09-28 Thread James Morris
Hi Linus, Please pull these fixes for the keys subsystem. Notable here is a rewrite of big_key crypto by Jason Donenfeld to address some issues in the original code. >From Jason's commit log: "This started out as just replacing the use of crypto/rng with get_random_bytes_wait, so that we woul

mmotm 2017-09-28-15-33 uploaded

2017-09-28 Thread akpm
The mm-of-the-moment snapshot 2017-09-28-15-33 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-28 Thread Bjorn Helgaas
On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > possible to define IRQ mapping functions on a per PCI host bridge basis. > > Actual IRQ allocation is carried out by the pci_assign_irq() function in > pci_device

Re: [GIT PULL] security: keys fixes for v4.14-rc3

2017-09-28 Thread Jason A. Donenfeld
On Fri, Sep 29, 2017 at 12:33 AM, James Morris wrote: > Generally speaking, we likely need to improve the amount of crypto review > for kernel crypto users including keys (I'll post a note separately to > ksummit-discuss). Indeed. I won't be at kernel summit, regrettably, but I do intend to meth

Re: [RFC] futex: hashbucket as list of futex instead of waiters

2017-09-28 Thread Gerd Gerats
On Thu, Sep 28, 2017 at 12:58:14PM +0200, Peter Zijlstra wrote: > On Sun, Sep 10, 2017 at 11:41:58PM +0200, Gerd Gerats wrote: > > When using futex as a condition variable, for example: to manage a > > threadpool, there may be a lot of threads inside the futex_wait to sleep on > > this futex. The f

RE: [PATCH v3 2/8] platform/x86: dell-smbios: Introduce a WMI-ACPI interface

2017-09-28 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Thursday, September 28, 2017 2:54 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...@vger.kernel.org; Andy > Lutomirski ; quasi...@google.com > Subject: Re: [PA

Re: [GIT PULL] security: keys fixes for v4.14-rc3

2017-09-28 Thread James Morris
On Fri, 29 Sep 2017, Jason A. Donenfeld wrote: > On Fri, Sep 29, 2017 at 12:33 AM, James Morris wrote: > > Generally speaking, we likely need to improve the amount of crypto review > > for kernel crypto users including keys (I'll post a note separately to > > ksummit-discuss). > > Indeed. > > I

[PATCH] staging: wlan-ng: resolve sparse Endianness issue.

2017-09-28 Thread Matthew Giassa
Explicitly converting from __le16 to CPU u16 to resolve sparse error in prism2sta.c. Original error: drivers/staging//wlan-ng/prism2sta.c:1450:29: warning: incorrect type in assignment (different base types) drivers/staging//wlan-ng/prism2sta.c:1450:29:expected unsigned short [unsigned] [usert

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\

2017-09-28 Thread Marcelo Tosatti
On Thu, Sep 28, 2017 at 09:22:02AM +0200, Paolo Bonzini wrote: > On 28/09/2017 02:44, Marcelo Tosatti wrote: > >> Again: if you have many interruptions, it's not a flaw in KVM or QEMU's > >> design, it's just that someone is doing something stupid. It could be > >> the guest (e.g. unnecessary devi

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\

2017-09-28 Thread Marcelo Tosatti
On Thu, Sep 28, 2017 at 06:35:08PM -0300, Marcelo Tosatti wrote: > On Thu, Sep 28, 2017 at 09:22:02AM +0200, Paolo Bonzini wrote: > > On 28/09/2017 02:44, Marcelo Tosatti wrote: > > >> Again: if you have many interruptions, it's not a flaw in KVM or QEMU's > > >> design, it's just that someone is d

[PATCH v2 03/10] ARM: bcm: Add support for Broadcom Hurricane 2 SoC

2017-09-28 Thread Florian Fainelli
Add a Kconfig entry point and basic machine board code for the Broadcom Hurricane 2 SoCs used in switching products. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- arch/arm/mach-bcm/Kconfig | 9 + arch/arm/mach-bcm/Makefile | 3 +++ arch/arm/mach-bcm/bcm_hr2.c | 25 +++

[PATCH v2 01/10] MAINTAINERS: Update Broadcom iProc regexp with Hurricane 2

2017-09-28 Thread Florian Fainelli
Update the Broadcom iProc regepx with recently added Hurricane 2 SoC support. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6671f375f7fc..3b48a1c2ddb8 100644 --- a/MAINTAINERS +++ b/MAINTAI

[PATCH v2 10/10] ARM: multi_v7_defconfig: Enable CONFIG_ARCH_BCM_HR2

2017-09-28 Thread Florian Fainelli
Turn on Broadcom Hurrican 2 SoC support by default to get access to its drivers. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defco

[PATCH v2 08/10] dt-bindings: Add Ubiquiti Networks vendor prefix

2017-09-28 Thread Florian Fainelli
Use the stock ticker: UBNT as the vendor prefix for Ubiquiti Networks. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Docum

[PATCH v2 09/10] ARM: dts: Hurricane 2: Add basic support for Ubiquiti UniFi Switch 8

2017-09-28 Thread Florian Fainelli
Add basic board support for the Ubiquiti UniFi Switch 8 port model. This is a small home and office use managed switch based on the BCM53342 switching control SoC. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/Makefile| 2 + arch/arm/boot/dts

[PATCH v2 07/10] ARM: debug: Add Hurricane 2 UART2 debug addresses

2017-09-28 Thread Florian Fainelli
Broadcom Hurricane 2 SoCs typically use their secondary UART for debug/console, provide a known good location for that. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- arch/arm/Kconfig.debug | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.d

[PATCH 0/3] Arm: dts: stm32: remove extra compatible uart string

2017-09-28 Thread Vikas Manocha
stm32 uart driver is using two compatible strings "st,stm32-usart" & "st,stm32-uart". One can be removed safely to save some space & time. Vikas Manocha (3): Arm: dts: stm32: remove extra compatible string for uart Arm: dts: stm32: remove extra compatible string from DT & driver ARM: dts: st

[PATCH v2 04/10] dt-bindings: Document Broadcom Hurricane 2 clocks

2017-09-28 Thread Florian Fainelli
Add a Device Tree binding document for the Broadcom Hurricane 2 SoC which is an iProc based system. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- .../devicetree/bindings/clock/brcm,iproc-clocks.txt| 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentatio

[PATCH 1/3] Arm: dts: stm32: remove extra compatible string for uart

2017-09-28 Thread Vikas Manocha
This patch removes the extra compatibility string "st,stm32-usart" to avoid confusion, save some time & space. Signed-off-by: Vikas Manocha Reviewed-by: Patrice Chotard --- Documentation/devicetree/bindings/dma/stm32-dma.txt | 2 +- Documentation/devicetree/bindings/serial/st,stm32-usa

[PATCH v2 05/10] clk: bcm: Add Broadcom Hurricane 2 clock support

2017-09-28 Thread Florian Fainelli
Add support for the Broadcom Hurricane 2 SoC clock controller. We can re-use the existing iProc clock library since the SoC's architecture is largely the same as its predecessors. For now, we just initialize the iProc ARM PLL. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- drivers/clk/

[PATCH 3/3] ARM: dts: stm32h7: correct uart nodes compatible string

2017-09-28 Thread Vikas Manocha
With this change, stm32h743 will use its own uart configuration. Major difference between stm32f7 & stm32h7 uart configuration is FIFO availability in stm32h7. Signed-off-by: Vikas Manocha Reviewed-by: Patrice Chotard --- arch/arm/boot/dts/stm32h743.dtsi | 4 ++-- 1 file changed, 2 insertions(+

[PATCH v2 06/10] ARM: dts: Add Broadcom Hurricane 2 DTS include file

2017-09-28 Thread Florian Fainelli
Describe the Broadcom Hurricane 2 SoC comprised of a Cortex-A9 CPU complex along with standard iProc peripherals: * timers * SPI controller * NAND controller * a single AMAC (Ethernet MAC controller) * dual PCIe controllers The design is largely similar to existing iProc-based SoCs such as Norths

[PATCH v2 02/10] dt-bindings: Add documentation for Broadcom Hurricane 2 SoCs

2017-09-28 Thread Florian Fainelli
Add binding documentation for the Broadcom Hurricane 2 SoCs used in switching control planes. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/de

[PATCH 2/3] Arm: dts: stm32: remove extra compatible string from DT & driver

2017-09-28 Thread Vikas Manocha
This patch remove the extra compatibility string "st,stm32-usart" from driver & device tree. Signed-off-by: Vikas Manocha Reviewed-by: Patrice Chotard --- arch/arm/boot/dts/stm32f429.dtsi | 12 ++-- arch/arm/boot/dts/stm32f746.dtsi | 12 ++-- arch/arm/boot/dts/stm32h743.dtsi |

[PATCH v2 00/10] ARM: bcm: Add support for Broadcom Hurricane 2 SoC

2017-09-28 Thread Florian Fainelli
Hi all, This patch series adds basic (boot to prompt with essential peripherals working) support for Broadcom's Hurricane 2 SoC which is found in switching applications. This is also an iProc-family chip with a number of variations, including some in the clock controller that I have not been able

Re: [PATCH v4 2/2] ACPI / CPPC: Make cppc acpi driver aware of pcc subspace ids

2017-09-28 Thread Prakash, Prashanth
Hi George, On 9/19/2017 11:24 PM, George Cherian wrote: > Based on ACPI 6.2 Section 8.4.7.1.9 If the PCC register space is used, > all PCC registers, for all processors in the same performance > domain (as defined by _PSD), must be defined to be in the same subspace. > Based on Section 14.1 of ACP

linux-next: Signed-off-by misspelt for commit in the akpm-current tree

2017-09-28 Thread Stephen Rothwell
Hi Andrew, Commit 0be0a6eba9e3 ("z3fold: fix stale list handling") has missing Signed-off-by misspelt for its author. -- Cheers, Stephen Rothwell

Re: [REGRESSION] Warning in tcp_fastretrans_alert() of net/ipv4/tcp_input.c

2017-09-28 Thread Yuchung Cheng
On Thu, Sep 28, 2017 at 1:14 AM, Oleksandr Natalenko wrote: > Hi. > > Won't tell about panic in tcp_sacktag_walk() since I cannot trigger it > intentionally, but setting net.ipv4.tcp_retrans_collapse to 0 *does not* fix > warning in tcp_fastretrans_alert() for me. Hi Oleksandr: no retrans_collaps

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-09-28 Thread Linus Torvalds
On Thu, Sep 28, 2017 at 3:02 PM, Dave Chinner wrote: > On Thu, Sep 28, 2017 at 08:39:33AM -0400, Mimi Zohar wrote: >> Don't attempt to take the i_rwsem, if it has already been taken >> exclusively. >> >> Signed-off-by: Mimi Zohar > > That's bloody awful. > > The locking in filesystem IO paths is

Re: [PATCH 3/4] pci aer: fix deadlock in do_recovery

2017-09-28 Thread Govindarajulu Varadarajan
On Thu, 28 Sep 2017, Sinan Kaya wrote: On 9/27/2017 5:42 PM, Govindarajulu Varadarajan wrote: CPU0CPU1 - __driver_attach() device_lock(&dev->mutex) <--- device mutex lock here driver_probe_de

Re: [PATCH INTERNAL 1/1] ASoC: cygnus: Remove set_fmt from SPDIF dai ops

2017-09-28 Thread Lori Hikichi
On 9/28/2017 3:29 PM, Lori Hikichi wrote: > The SPDIF port cannot modify its format so a set_fmt function is not > needed. Previously, we used a generic set_fmt for all ports and returned > an error code for the SPDIF port. It is cleaner to not populate the > set_fmt field. > > Signed-off-by: Lor

Re: [PATCH 4/4] lockdep: make MAX_LOCK_DEPTH configurable from Kconfig

2017-09-28 Thread Govindarajulu Varadarajan
On Thu, 28 Sep 2017, Peter Zijlstra wrote: On Wed, Sep 27, 2017 at 02:42:20PM -0700, Govindarajulu Varadarajan wrote: Make MAX_LOCK_DEPTH configurable. It is set to 48 right now. Number of VFs under a PCI pf bus can exceed 48 and this disables lockdep. lockdep currently allows max of 63 held_l

Re: [PATCH 1/4] pci: introduce __pci_walk_bus for caller with pci_bus_sem held

2017-09-28 Thread Govindarajulu Varadarajan
On Thu, 28 Sep 2017, Sinan Kaya wrote: On 9/27/2017 5:42 PM, Govindarajulu Varadarajan wrote: +void __pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), + void *userdata); pci_walk_bus_locked would be a better name as you are assuming that caller is holdi

Re: [PATCH] x86/asm: Fix inline asm call constraints for GCC 4.4

2017-09-28 Thread Linus Torvalds
On Thu, Sep 28, 2017 at 2:58 PM, Josh Poimboeuf wrote: > > Reported-by: kernel test robot > Fixes: f5caf621ee35 ("x86/asm: Fix inline asm call constraints for Clang") > Signed-off-by: Josh Poimboeuf Side note: it's not like I personally need the credit, but in general I really want people to pi

Re: [PATCH V2] r8152: add Linksys USB3GIGV1 id

2017-09-28 Thread Doug Anderson
Hi, On Thu, Sep 28, 2017 at 3:28 PM, Rustad, Mark D wrote: > >> On Sep 27, 2017, at 9:39 AM, Grant Grundler wrote: >> >> On Wed, Sep 27, 2017 at 12:15 AM, Oliver Neukum wrote: >>> Am Dienstag, den 26.09.2017, 08:19 -0700 schrieb Doug Anderson: I know that for at least some of the adap

Re: [PATCH V4] r8152: add Linksys USB3GIGV1 id

2017-09-28 Thread Doug Anderson
Grant, On Thu, Sep 28, 2017 at 11:35 AM, Grant Grundler wrote: > This linksys dongle by default comes up in cdc_ether mode. > This patch allows r8152 to claim the device: >Bus 002 Device 002: ID 13b1:0041 Linksys > > Signed-off-by: Grant Grundler > --- > drivers/net/usb/cdc_ether.c | 10 +++

[PATCH] extcon: Split out extcon header file for consumer and provider device

2017-09-28 Thread Chanwoo Choi
The extcon has two type of extcon devices as following. - 'extcon provider deivce' adds new extcon device and detect the state/properties of external connector. Also, it notifies the state/properties to the extcon consumer device. - 'extcon consumer device' gets the change state/properties

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-09-28 Thread Jens Axboe
On 09/28/2017 11:41 PM, Andrew Morton wrote: > On Wed, 27 Sep 2017 14:13:57 -0600 Jens Axboe wrote: > >> When someone calls wakeup_flusher_threads() or >> wakeup_flusher_threads_bdi(), they schedule writeback of all dirty >> pages in the system (or on that bdi). If we are tight on memory, we >> c

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-09-28 Thread Jens Axboe
On 09/28/2017 11:44 PM, Linus Torvalds wrote: > On Thu, Sep 28, 2017 at 2:41 PM, Andrew Morton > wrote: >> >> test_and_set_bit()? > > If there aren't any atomicity concerns (either because of higher-level > locking, or because racing and having two people set the bit is fine), > it can be better

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-09-28 Thread Mimi Zohar
On Thu, 2017-09-28 at 16:39 -0700, Linus Torvalds wrote: > On Thu, Sep 28, 2017 at 3:02 PM, Dave Chinner wrote: > > On Thu, Sep 28, 2017 at 08:39:33AM -0400, Mimi Zohar wrote: > >> Don't attempt to take the i_rwsem, if it has already been taken > >> exclusively. > >> > >> Signed-off-by: Mimi Zoha

Re: [PATCH v1 06/14] tee: optee: add page list manipulation functions

2017-09-28 Thread Yury Norov
On Thu, Sep 28, 2017 at 09:04:03PM +0300, Volodymyr Babchuk wrote: > From: Volodymyr Babchuk > > These functions will be used to pass information about shared > buffers to OP-TEE. > > Signed-off-by: Volodymyr Babchuk > --- > drivers/tee/optee/call.c | 48 > +++

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-09-28 Thread Linus Torvalds
On Thu, Sep 28, 2017 at 5:12 PM, Mimi Zohar wrote: > > Originally IMA did define it's own lock, prior to IMA-appraisal. IMA- > appraisal introduced writing the file hash as an xattr, which required > taking the i_mutex. process_measurement() and ima_file_free() took > the iint->mutex first and t

Re: [PATCH v2 0/2] Replace PID bitmap allocation with IDR API

2017-09-28 Thread Rik van Riel
On Fri, 2017-09-29 at 01:35 +0530, Gargi Sharma wrote: > On Thu, Sep 28, 2017 at 3:46 PM, Rik van Riel > wrote: > > On Fri, 2017-09-29 at 01:09 +0530, Gargi Sharma wrote: > > > > > 1000 processes that just sleep and sit around without doing > > > anything(100 second sleep and then exit). > > > >

[PATCH 2/3] printk: Add /sys/consoles/ interface

2017-09-28 Thread Calvin Owens
This adds a new sysfs interface that contains a directory for each console registered on the system. Each directory contains a single "loglevel" file for reading and setting the per-console loglevel. We can let kobject destruction race with console removal: if it does, loglevel_{show,store}() will

[PATCH 3/3] printk: Add ability to set loglevel via "console=" cmdline

2017-09-28 Thread Calvin Owens
This extends the "console=" interface to allow setting the per-console loglevel by adding "/N" to the string, where N is the desired loglevel expressed as a base 10 integer. Invalid values are silently ignored. Cc: Petr Mladek Cc: Steven Rostedt Cc: Sergey Senozhatsky Signed-off-by: Calvin Owen

[PATCH 1/3] printk: Introduce per-console loglevel setting

2017-09-28 Thread Calvin Owens
Not all consoles are created equal: depending on the actual hardware, the latency of a printk() call can vary dramatically. The worst examples are serial consoles, where it can spin for tens of milliseconds banging the UART to emit a message, which can cause application-level problems when the kern

Re: [PATCH v1 14/14] tee: shm: inline tee_shm getter functions

2017-09-28 Thread Yury Norov
On Thu, Sep 28, 2017 at 09:04:11PM +0300, Volodymyr Babchuk wrote: > From: Volodymyr Babchuk > > Now, when struct tee_shm is defined in public header, > we can inline small getter functions. struct tee_shm is moved to public header in first patch of series, so you can put tee_shm_is_registered()

Re: [RFC PATCH 1/2] arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables

2017-09-28 Thread Paul E. McKenney
On Fri, Sep 29, 2017 at 07:59:09AM +1300, Michael Cree wrote: > On Thu, Sep 28, 2017 at 08:43:54AM -0700, Paul E. McKenney wrote: > > On Thu, Sep 28, 2017 at 09:45:35AM +0100, Will Deacon wrote: > > > On Thu, Sep 28, 2017 at 10:38:01AM +0200, Peter Zijlstra wrote: > > > > On Wed, Sep 27, 2017 at 04

[PATCH v2 1/4] KVM: LAPIC: Fix lapic timer mode transition

2017-09-28 Thread Wanpeng Li
From: Wanpeng Li SDM 10.5.4.1 TSC-Deadline Mode mentioned that "Transitioning between TSC-Deadline mode and other timer modes also disarms the timer". So the APIC Timer Initial Count Register for one-shot/periodic mode should be reset. This patch do it. Cc: Paolo Bonzini Cc: Radim Krčmář Sig

[PATCH v2 0/4] KVM: LAPIC: Rework lapic timer to behave more like real-hardware

2017-09-28 Thread Wanpeng Li
The issue is reported in xen community. Anthony PERARD pointed out: https://www.mail-archive.com/xen-devel@lists.xen.org/msg117283.html# | When developing PVH for OVMF, I've used the lapic timer. It turns out that the | way it is used by OVMF did not work with Xen [1]. I tried to find out how

[PATCH v2 4/4] KVM: LAPIC: Don't silently accept bad vectors

2017-09-28 Thread Wanpeng Li
From: Wanpeng Li Vectors 0-15 are reserved, and a physical LAPIC - upon sending or receiving one - would generate an APIC error instead of doing the requested action. Make our emulation behave similarly. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c |

[PATCH v2 3/4] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-09-28 Thread Wanpeng Li
From: Wanpeng Li The description in the Intel SDM of how the divide configuration register is used: "The APIC timer frequency will be the processor's bus clock or core crystal clock frequency divided by the value specified in the divide configuration register." Observation of baremetal shown tha

<    2   3   4   5   6   7   8   >