[PATCH] perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events

2018-08-13 Thread Janakarajan Natarajan
In Family 17h, some L3 Cache Performance events require the ThreadMask and SliceMask to be set. For other events, these fields do not affect the count either way. Set ThreadMask and SliceMask to 0xFF and 0xF respectively. Signed-off-by: Janakarajan Natarajan --- arch/x86/events/amd/uncore.c

Re: [PATCH v3][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT

2018-08-13 Thread Michael Kerrisk (man-opages)
Hello Wangnan, On 10/24/2016 08:52 AM, Wang Nan wrote: Linux 4.7 (86e7972f690c1017fd086cdfe53d8524e68c661c) introduces PERF_EVENT_IOC_PAUSE_OUTPUT feature. Document it. Just to confirm, I presume this patch has been superseded by the one from Vince that I just applied. Cheers, Michael

Re: [PATCH] io_submit.2: Add IOCB_FLAG_IOPRIO

2018-08-13 Thread Michael Kerrisk (man-opages)
Hello Adam, On 07/13/2018 10:58 PM, adam.manzana...@wdc.com wrote: From: Adam Manzanares The newly added IOCB_FLAG_IOPRIO aio_flag introduces new behaviors and return values. The details of this new feature are posted here: https://lkml.org/lkml/2018/5/22/809 Thanks for this patch. I've

RE: [PATCH 1/5] Tools: hv: Fix a bug in the key delete code

2018-08-13 Thread Michael Kelley (EOSG)
From: k...@linuxonhyperv.com Sent: Friday, August 10, 2018 4:06 PM > > Fix a bug in the key delete code - the num_records range > from 0 to num_records-1. > > Signed-off-by: K. Y. Srinivasan > Reported-by: David Binderman > Cc: > --- Reviewed-by: Michael Kelley

Re: [PATCH v3 16/17] driver/edac: enable Hygon support to AMD64 EDAC driver

2018-08-13 Thread Michael Jin
On Mon, Aug 13, 2018 at 12:17 PM, Pu Wen wrote: > On 2018/8/12 3:56, Michael Jin wrote: >> >> On Sat, Aug 11, 2018 at 9:30 AM, Pu Wen wrote: >>> >>> diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c >>> - if (pvt->fam == 0x17) { >>> + if (pvt->fam == 0x17 ||

[PATCH 1/2] kconfig: remove unused sym_get_env_prop() function

2018-08-13 Thread Masahiro Yamada
This function is unused since commit 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='"). Signed-off-by: Masahiro Yamada --- scripts/kconfig/lkc.h| 1 - scripts/kconfig/symbol.c | 9 - 2 files changed, 10 deletions(-) diff --git

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Song Liu
On Sun, Aug 12, 2018 at 10:47 PM, Ravi Bangoria wrote: > Hi Song, > > On 08/11/2018 01:27 PM, Song Liu wrote: >>> + >>> +static void delayed_uprobe_delete(struct delayed_uprobe *du) >>> +{ >>> + if (!du) >>> + return; >> Do we really need this check? > > > Not necessary

[PATCH 2/2] kconfig: remove P_ENV property type

2018-08-13 Thread Masahiro Yamada
This property is not set by anyone since commit 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='"). Signed-off-by: Masahiro Yamada --- scripts/kconfig/expr.h | 1 - scripts/kconfig/qconf.cc | 1 - scripts/kconfig/symbol.c | 2 -- 3 files changed, 4

Re: [PATCH v8 0/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Oleg Nesterov
On 08/09, Ravi Bangoria wrote: > > Ravi Bangoria (6): > Uprobes: Simplify uprobe_register() body > Uprobe: Additional argument arch_uprobe to uprobe_write_opcode() > Uprobes: Support SDT markers having reference count (semaphore) > Uprobes/sdt: Prevent multiple reference counter for same

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-13 Thread Johannes Weiner
On Mon, Aug 13, 2018 at 06:48:42AM -0700, Tejun Heo wrote: > Hello, Konstantin. > > On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: > > After removing cgroup subsystem state could leak or live in background > > forever because it is pinned by some reference. For example

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-13 Thread Song Liu
On Mon, Aug 13, 2018 at 6:17 AM, Oleg Nesterov wrote: > On 08/13, Ravi Bangoria wrote: >> >> > But damn, process creation (exec) is trivial. We could add a new >> > uprobe_exec() >> > hook and avoid delayed_uprobe_install() in uprobe_mmap(). >> >> I'm sorry. I didn't get this. > > Sorry for

[GIT PULL] parisc architecture updates for kernel v4.19

2018-08-13 Thread Helge Deller
Hi Linus, please pull fixes and updates for the parisc architecture for kernel 4.19 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.19-1 Changes include: - parisc now uses the generic dma_noncoherent_ops implementation, by Christoph Hellwig. - further

RE: [PATCH] ACPICA: Clear status of all events when entering sleep states

2018-08-13 Thread Schmauss, Erik
> -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki > Sent: Sunday, August 12, 2018 3:50 AM > To: Linux ACPI > Cc: Paul Menzel ; Linux PM p...@vger.kernel.org>; LKML ; Schmauss, Erik > > Subject:

[PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-08-13 Thread Dmitry Osipenko
This patch fixes use-after-free that was detected by KASAN. The bug is triggered on a CPUFreq driver module unload by freeing 'cdev' on device unregister and then using the freed structure during of the cdev's sysfs data destruction. The solution is to unregister the sysfs at first, then destroy

Re: [PATCH 1/2] kconfig: remove unused sym_get_env_prop() function

2018-08-13 Thread Sam Ravnborg
On Tue, Aug 14, 2018 at 01:48:38AM +0900, Masahiro Yamada wrote: > This function is unused since commit 104daea149c4 ("kconfig: reference > environment variables directly and remove 'option env='"). > > Signed-off-by: Masahiro Yamada Both patches are obviously correct. Feel free to add:

[PATCH] spi:fix IDR collision on systems with both fixed and dynamic SPI bus numbers

2018-08-13 Thread Kirill Kapranov
On systems where some controllers get a dynamic ID assigned and some have a fixed number (e.g. from ACPI tables), the current implementation might run into an IDR collision: in case of a fixed bus number is gotten by a driver (but not marked busy in IDR tree) and a driver with dynamic bus number

[GIT PULL] Devicetree updates for 4.19

2018-08-13 Thread Rob Herring
Linus, Please pull DT updates for 4.19. There's a few trivial context conflicts with the pinctrl, net-next and staging trees due to the interrupt-parent removal. Rob The following changes since commit 021c91791a5e7e85c567452f1be3e4c2c6cb6063: Linux 4.18-rc3 (2018-07-01 16:04:53 -0700) are

Re: [PATCH v3 1/3] dt-bindings: thermal: Add binding document for SR thermal

2018-08-13 Thread Rob Herring
On Thu, Aug 09, 2018 at 06:24:57PM +0530, Srinath Mannam wrote: > From: Pramod Kumar > > Add binding document for supported thermal implementation > in Stingray. > > Signed-off-by: Pramod Kumar > Signed-off-by: Srinath Mannam > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > --- >

[PATCH v1] dd: Invoke one probe retry cycle after some initcall levels

2018-08-13 Thread Rishabh Bhatnagar
From: Rishabh Bhatnagar Drivers that are registered at an initcall level may have to wait until late_init before the probe deferral mechanism can retry their probe functions. It is possible that their dependencies were resolved much earlier, in some cases even before the next initcall level.

Re: [PATCH] reiserfs: fix broken xattr handling (heap corruption, bad retval)

2018-08-13 Thread Will Deacon
Hi Jann, On Fri, Aug 10, 2018 at 05:19:38AM +0200, Jann Horn wrote: > On Thu, Aug 2, 2018 at 5:16 PM Jann Horn wrote: > > > > This fixes the following issues: > > > > - When a buffer size is supplied to reiserfs_listxattr() such that each > >individual name fits, but the concatenation of

Re: [PATCH v3 0/7] perf: Add ioctl for PMU driver configuration

2018-08-13 Thread Kim Phillips
On Wed, 18 Jul 2018 15:48:00 -0600 Mathieu Poirier wrote: > This set adds the capability to communiate event specific configuration > to the PMU kernel driver using an ioctl(). The functionatlity is made > generic enough for anyone to use but is targeted at the identification > of CoreSight

Re: [PATCH v2 18/18] dt-bindings: serial: lantiq: Add optional properties for CCF

2018-08-13 Thread Rob Herring
On Fri, Aug 03, 2018 at 11:02:37AM +0800, Songjun Wu wrote: > Clocks and clock-names are updated in device tree binding. > > Signed-off-by: Songjun Wu > --- > > Changes in v2: None > > Documentation/devicetree/bindings/serial/lantiq_asc.txt | 15 +++ > 1 file changed, 15

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-13 Thread Roman Gushchin
On Mon, Aug 13, 2018 at 01:11:19PM -0400, Johannes Weiner wrote: > On Mon, Aug 13, 2018 at 06:48:42AM -0700, Tejun Heo wrote: > > Hello, Konstantin. > > > > On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: > > > After removing cgroup subsystem state could leak or live in

Re: [PATCH] reiserfs: fix broken xattr handling (heap corruption, bad retval)

2018-08-13 Thread Jann Horn
On Mon, Aug 13, 2018 at 7:42 PM Will Deacon wrote: > > Hi Jann, > > On Fri, Aug 10, 2018 at 05:19:38AM +0200, Jann Horn wrote: > > On Thu, Aug 2, 2018 at 5:16 PM Jann Horn wrote: > > > > > > This fixes the following issues: > > > > > > - When a buffer size is supplied to reiserfs_listxattr()

Re: [RFC PATCH] ASoC: core: Optimise suspend/resume of DAPM widgets

2018-08-13 Thread Jon Hunter
On 03/08/18 17:36, Mark Brown wrote: > On Fri, Aug 03, 2018 at 01:57:05PM +0100, Jon Hunter wrote: > >> For soundcards that have several DAI links and many DAPM widgets the >> time taken for snd_soc_suspend to execute has been observed to be >> several milliseconds. The time is largely spent

[PATCH] fat: Support timespec64 for 2107

2018-08-13 Thread OGAWA Hirofumi
On disk format of FAT is supporting until the end of 2107 year. So this uses timespec64 internally without any truncation (until 2107). Signed-off-by: OGAWA Hirofumi --- fs/fat/dir.c |2 +- fs/fat/fat.h |6 +++--- fs/fat/inode.c | 20 ++--

Re: [PATCH] drivers/thermal/tegra: fix a doule free devce node

2018-08-13 Thread Jon Hunter
On 09/08/18 14:40, zhong jiang wrote: > Device node iterators will get the return node. Meawhile, It is > also put the previous device node. An explicit put will cause > a double put. > > Signed-off-by: zhong jiang > --- > drivers/thermal/tegra/soctherm.c | 1 - > 1 file changed, 1

Re: [PATCH] drivers/thermal/tegra: fix a doule free devce node

2018-08-13 Thread Jon Hunter
Adding linux-tegra ... On 13/08/18 19:30, Jon Hunter wrote: > > On 09/08/18 14:40, zhong jiang wrote: >> Device node iterators will get the return node. Meawhile, It is >> also put the previous device node. An explicit put will cause >> a double put. >> >> Signed-off-by: zhong jiang >> --- >>

Re: [PATCH] reiserfs: fix broken xattr handling (heap corruption, bad retval)

2018-08-13 Thread Jeff Mahoney
On 8/13/18 2:04 PM, Jann Horn wrote: > On Mon, Aug 13, 2018 at 7:42 PM Will Deacon wrote: >> >> Hi Jann, >> >> On Fri, Aug 10, 2018 at 05:19:38AM +0200, Jann Horn wrote: >>> On Thu, Aug 2, 2018 at 5:16 PM Jann Horn wrote: This fixes the following issues: - When a buffer size

Re: [PATCH] reiserfs: fix broken xattr handling (heap corruption, bad retval)

2018-08-13 Thread Jeff Mahoney
On 8/2/18 11:15 AM, Jann Horn wrote: > This fixes the following issues: > > - When a buffer size is supplied to reiserfs_listxattr() such that each >individual name fits, but the concatenation of all names doesn't >fit, reiserfs_listxattr() overflows the supplied buffer. This leads to >

Re: [PATCH v2] perf tools: Check for null when copying nsinfo.

2018-08-13 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 10, 2018 at 03:36:13PM +0200, Benno Evers escreveu: > The argument to nsinfo__copy() was assumed to be valid, but some code paths > exist that will lead to NULL being passed. > > In particular, running 'perf script -D' on a perf.data file containing an > PERF_RECORD_MMAP event

Re: [PATCH v2] clk: qcom: Add some missing gcc clks for msm8996

2018-08-13 Thread Bjorn Andersson
On Fri 10 Aug 08:11 PDT 2018, Stephen Boyd wrote: > Quoting Bjorn Andersson (2018-08-09 15:01:19) > > From: Rajendra Nayak > > > > Add a few missing gcc clks for msm8996 > > > > Signed-off-by: Rajendra Nayak > > [bjorn: omit aggre0_noc_qosgen_extref_clk] > > Signed-off-by: Bjorn Andersson >

Re: [PATCH] x86/PCI: Claim the resources of firmware enabled IOAPIC before children bus

2018-08-13 Thread Bjorn Helgaas
On Sun, Aug 12, 2018 at 08:15:45AM +0800, joeyli wrote: > On Fri, Aug 10, 2018 at 08:58:37AM -0500, Bjorn Helgaas wrote: > > On Fri, Aug 10, 2018 at 05:25:01PM +0800, joeyli wrote: > > > On Wed, Aug 08, 2018 at 04:23:22PM -0500, Bjorn Helgaas wrote: > > > ... > [...snip] > > > hm... I have another

Re: [PATCH] ide-tape: remove redundant variable buffer_size

2018-08-13 Thread David Miller
From: Colin King Date: Mon, 2 Jul 2018 11:00:26 +0100 > From: Colin Ian King > > Variable buffer_size is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'buffer_size' set but not used [-Wunused-but-set-variable] >

Re: [PATCH] ide: mark expected switch fall-throughs

2018-08-13 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 3 Jul 2018 14:23:05 -0500 > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Applied.

Re: [PATCH] ide: remove redundant variables queue_run_ms and left

2018-08-13 Thread David Miller
From: Colin King Date: Mon, 2 Jul 2018 10:47:05 +0100 > From: Colin Ian King > > Variable queue_run_ms is not being used and is redundant and hence can > be removed. Removing this also means that variable left can also be > removed. > > Cleans up clang warning: > warning: variable

Re: [PATCH] remoteproc/davinci: Mark error recovery as disabled

2018-08-13 Thread Bjorn Andersson
On Mon 13 Aug 08:11 PDT 2018, Suman Anna wrote: > Hi Bjorn, > > On 07/23/2018 06:27 PM, Suman Anna wrote: > > The Davinci remoteproc driver does not support error recovery at > > present, so mark the corresponding remoteproc flag appropriately > > so that the debugfs flag shows the value as

Re: [PATCH] perf tools: arm-spe: Fix uninitialized record error variable

2018-08-13 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 10, 2018 at 05:45:12PM -0500, Kim Phillips escreveu: > The auxtrace init variable 'err' was not being initialized, leading > perf to abort early in an SPE record command when there was no explicit > error, rather only based whatever memory contents were on the stack. > Initialize it

Re: [RFC] perf/x86/intel: Export mem events only if there's PEBs support

2018-08-13 Thread Andi Kleen
On Mon, Aug 13, 2018 at 05:48:20PM +0200, Jiri Olsa wrote: > hi, > we had some reports that we show mem* events on KVM servers > where they are not available, this patch hides them if there's > no PEBs available > > currently on those servers we fail to open mem* events, > because we can't access

Re: [PATCH v2 1/2] dt-binding: i2c: npcm7xx: add binding for i2c controller

2018-08-13 Thread Rob Herring
On Tue, Aug 07, 2018 at 02:07:08PM +0300, Tali Perry wrote: > Nuvoton NPCM7XX I2C Controller > NPCM7xx includes 16 I2C contollers. THis driver operates the controller. > This module also includes a slave mode, which will be submitted later on. > > Any feedback would be appreciated. > > v2 ->

Re: [PATCH] perf tools: Fix check-headers.sh AND list path of execution

2018-08-13 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 13, 2018 at 02:19:10PM +0300, Alexander Kapshuk escreveu: > On Mon, Aug 13, 2018 at 2:16 PM Jiri Olsa wrote: > > > > On Sat, Aug 11, 2018 at 11:39:15AM +0300, Alexander Kapshuk wrote: > > > The '||' path of execution in the 'test' block of the check_2() function > > > may also be

Re: [PATCH] perf tools: arm-spe: Fix uninitialized record error variable

2018-08-13 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 13, 2018 at 03:55:11PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Aug 10, 2018 at 05:45:12PM -0500, Kim Phillips escreveu: > > The auxtrace init variable 'err' was not being initialized, leading > > perf to abort early in an SPE record command when there was no explicit > >

[GIT PULL] MD update for 4.19-rc1

2018-08-13 Thread Shaohua Li
Hi, A few MD fixes for 4.19-rc1: - Several md-cluster fixes from Guoqing - A data corruption fix from BingJing - Other cleanups Please pull! Thanks, Shaohua The following changes since commit 06c85639897cf3ea6a11c5cb6929fb0d9d7efea5: Merge tag 'acpi-4.18-rc4' of

[PATCH 0/3] tools/lib/lockdep: fixes for v4.19

2018-08-13 Thread Sasha Levin
Hi Ingo, Please pull the following minor fixes for liblockdep. Also available at: git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux.git liblockdep-fixes Sasha Levin (3): tools/lib/lockdep: update Sasha Levin email to MSFT tools/lib/lockdep: add empty nmi.h

[PATCH 1/3] tools/lib/lockdep: update Sasha Levin email to MSFT

2018-08-13 Thread Sasha Levin
Signed-off-by: Sasha Levin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 544cac829cf4..2e02bae7b7e0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8143,7 +8143,7 @@ F:include/linux/libata.h F:

[PATCH 2/3] tools/lib/lockdep: add empty nmi.h

2018-08-13 Thread Sasha Levin
Required since 88f1c87de11a8 ("locking/lockdep: Avoid triggering hardlockup from debug_show_all_locks()"). Signed-off-by: Sasha Levin --- tools/include/linux/nmi.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools/include/linux/nmi.h diff --git

[PATCH 3/3] tools/lib/lockdep: add dummy task_struct state member

2018-08-13 Thread Sasha Levin
Commit 8cc05c71ba5f ("locking/lockdep: Move sanity check to inside lockdep_print_held_locks()") added accesses to the task_struct's state member. Add dummy userspace declaration. Signed-off-by: Sasha Levin --- tools/include/linux/lockdep.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH v2 2/4] dt-bindings: soc: amlogic: add meson-canvas documentation

2018-08-13 Thread Rob Herring
On Wed, Aug 08, 2018 at 12:00:09AM +0200, Maxime Jourdan wrote: > DT bindings doc for amlogic,meson-canvas > > Signed-off-by: Maxime Jourdan > --- > .../soc/amlogic/amlogic,meson-canvas.txt | 36 +++ > 1 file changed, 36 insertions(+) > create mode 100644 >

[PATCH v6 5/5] drm/nouveau: Fix deadlocks in nouveau_connector_detect()

2018-08-13 Thread Lyude Paul
When we disable hotplugging on the GPU, we need to be able to synchronize with each connector's hotplug interrupt handler before the interrupt is finally disabled. This can be a problem however, since nouveau_connector_detect() currently grabs a runtime power reference when handling connector

Re: [PATCH v2 03/40] dt-bindings: Add Tegra SDHCI pad pdpu offset bindings

2018-08-13 Thread Rob Herring
On Fri, Aug 10, 2018 at 09:08:05PM +0300, Aapo Vienamo wrote: > Add bindings documentation for pad pull up and pull down offset values to be > programmed before executing automatic pad drive strength calibration. > > Signed-off-by: Aapo Vienamo > --- > .../bindings/mmc/nvidia,tegra20-sdhci.txt

Re: [PATCH v2 04/40] dt-bindings: mmc: Add Tegra SDHCI sampling trimmer values

2018-08-13 Thread Rob Herring
On Fri, Aug 10, 2018 at 09:08:06PM +0300, Aapo Vienamo wrote: > Document the Tegra SDHCI inbound and outbound sampling trimmer values. > > Signed-off-by: Aapo Vienamo > --- > .../devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt | 11 > +++ > 1 file changed, 11 insertions(+)

Re: [PATCH v2 1/8] dt-bindings: mmc: Add DQS trim value to Tegra SDHCI

2018-08-13 Thread Rob Herring
On Fri, Aug 10, 2018 at 09:13:58PM +0300, Aapo Vienamo wrote: > Document HS400 DQS trim value device tree property. > > Signed-off-by: Aapo Vienamo > --- > Documentation/devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt | 4 > 1 file changed, 4 insertions(+) Reviewed-by: Rob Herring

[PATCH] arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()

2018-08-13 Thread Greg Hackmann
ARM64's pfn_valid() shifts away the upper PAGE_SHIFT bits of the input before seeing if the PFN is valid. This leads to false positives when some of the upper bits are set, but the lower bits match a valid PFN. For example, the following userspace code looks up a bogus entry in /proc/kpageflags:

RE: [PATCH 2/5] vmbus: add driver_override support

2018-08-13 Thread Michael Kelley (EOSG)
From: k...@linuxonhyperv.com Sent: Friday, August 10, 2018 4:06 PM > From: Stephen Hemminger > > Add support for overriding the default driver for a VMBus device > in the same way that it can be done for PCI devices. This patch > adds the /sys/bus/vmbus/devices/.../driver_override file > and

Re: [PATCH 2/5] vmbus: add driver_override support

2018-08-13 Thread gre...@linuxfoundation.org
On Mon, Aug 13, 2018 at 07:30:50PM +, Michael Kelley (EOSG) wrote: > From: k...@linuxonhyperv.com Sent: Friday, August > 10, 2018 4:06 PM > > > From: Stephen Hemminger > > > > Add support for overriding the default driver for a VMBus device > > in the same way that it can be done for PCI

PCI: Add function 1 DMA alias quirk for Marvell 88SS9183

2018-08-13 Thread Bjorn Helgaas
Hi, Thanks a lot for your new report (https://bugzilla.kernel.org/show_bug.cgi?id=42679#c134). Can you confirm that the patch below is equivalent to what you tested and it resolves the problem? If so, I'll try to include it for v4.19. commit dd4e0ad485e12c9c04eb7a21ba69c24f12cb1918 Author:

Re: [PATCH RESEND RFC 2/4] drivers: pinctrl: qcom: add wakeup gpio map for sdm845

2018-08-13 Thread Lina Iyer
On Wed, Aug 01 2018 at 14:04 -0600, Lina Iyer wrote: On Wed, Aug 01 2018 at 02:42 -0600, Marc Zyngier wrote: On Wed, 01 Aug 2018 03:00:19 +0100, Lina Iyer wrote: Add GPIO to PDC pin map for the SDM845 SoC. Signed-off-by: Lina Iyer --- drivers/pinctrl/qcom/pinctrl-sdm845.c | 76

Re: [PATCH v2 1/3] dt-bindings: interrupt-controller: Actions external interrupt controller

2018-08-13 Thread Rob Herring
On Sun, Aug 12, 2018 at 02:22:13PM +0200, Parthiban Nallathambi wrote: > Actions Semi OWL family SoC's provides support for external interrupt > controller to be connected and controlled using SIRQ pins. S500, S700 > and S900 provides 3 SIRQ lines and works independently for 3 external > interrupt

[GIT PULL] LED updates for 4.19-rc1

2018-08-13 Thread Jacek Anaszewski
Hi Linus, Please pull LED updates for 4.19-rc1. LED triggers improvements make the biggest part of this pull request. The most striking ones, that allowed for nice cleanups in the triggers are: - centralized handling of creation and removal of trigger sysfs attributes via

Re: [PATCH 2/5] vmbus: add driver_override support

2018-08-13 Thread Stephen Hemminger
On Mon, 13 Aug 2018 19:30:50 + "Michael Kelley (EOSG)" wrote: > From: k...@linuxonhyperv.com Sent: Friday, August > 10, 2018 4:06 PM > > > From: Stephen Hemminger > > > > Add support for overriding the default driver for a VMBus device > > in the same way that it can be done for PCI

[GIT PULL] IDA changes for 4.19

2018-08-13 Thread Matthew Wilcox
Hi Linus, Please pull the IDA patchset. It depends on the XArray patchset, so ignore this pull request if you've decided not to pull the XArray patches. The new IDA API is similar to ida_simple_get() but better named. The internal restructuring of the IDA code removes the bitmap preallocation

Re: [PATCH] gcc-plugins: require GCC

2018-08-13 Thread Kees Cook
On Mon, Aug 13, 2018 at 12:38 AM, Masahiro Yamada wrote: > 2018-08-11 18:48 GMT+09:00 Stefan Agner : >> Unsurprisingly GCC plugins require GCC as a compiler. This avoids >> GCC plugins being selectable when using clang. >> >> Signed-off-by: Stefan Agner >> --- >> arch/Kconfig | 2 +- >> 1 file

Re: [PATCH] gcc-plugins: require GCC

2018-08-13 Thread Kees Cook
On Mon, Aug 13, 2018 at 1:10 PM, Kees Cook wrote: > On Mon, Aug 13, 2018 at 12:38 AM, Masahiro Yamada > wrote: >> 2018-08-11 18:48 GMT+09:00 Stefan Agner : >>> Unsurprisingly GCC plugins require GCC as a compiler. This avoids >>> GCC plugins being selectable when using clang. >>> >>>

[GIT PULL] ext4 updates for 4.19

2018-08-13 Thread Theodore Y. Ts'o
The following changes since commit 5012284700775a4e6e3fbe7eac4c543c4874b559: ext4: fix check to prevent initializing reserved inodes (2018-07-29 15:34:00 -0400) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for

Re: [PATCH] uapi: fix sound/skl-tplg-interface.h userspace compilation errors

2018-08-13 Thread Guenter Roeck
On Mon, Aug 13, 2018 at 8:50 AM Dmitry V. Levin wrote: > > Include and consistently use types it provides > to fix the following sound/skl-tplg-interface.h userspace compilation errors: > > /usr/include/sound/skl-tplg-interface.h:146:2: error: unknown type name 'u32' > u32 set_params:2; >

[PATCH v5 0/2] tpm: add support for nonblocking operation

2018-08-13 Thread Tadeusz Struk
The TCG SAPI specification [1] defines a set of functions, which allow applications to use the TPM device in either blocking or non-blocking fashion. Each command defined by the specification has a corresponding Tss2_Sys__Prepare() and Tss2_Sys__Complete() call, which together with

[PATCH v5 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-13 Thread Tadeusz Struk
Add a ptr to struct tpm_space to the file_priv to have an easy access to it in the async job without the need to allocate memory. This also allows to consolidate of the write operations for the two interfaces. Tested-by: Philip Tricca Signed-off-by: Tadeusz Struk ---

[PATCH v5 2/2] tpm: add support for nonblocking operation

2018-08-13 Thread Tadeusz Struk
Currently the TPM driver only supports blocking calls, which doesn't allow asynchronous IO operations to the TPM hardware. This patch changes it and adds support for nonblocking write and a new poll function to enable applications, which want to take advantage of this. Tested-by: Philip Tricca

[GIT PULL] hardened-usercopy updates for v4.19-rc1

2018-08-13 Thread Kees Cook
Hi Linus, Please pull these hardened-usercopy changes for v4.19-rc1. This cleans up a minor Kconfig issue and adds a kernel boot option for disabling hardened usercopy for distro users that may have corner-case performance issues (e.g. high bandwidth small-packet UDP traffic). Thanks! -Kees

[GIT PULL] pstore update for v4.19-rc1

2018-08-13 Thread Kees Cook
Hi Linus, Please pull this pstore change for v4.19-rc1. This cycle has been very quiet for pstore: the only change is adding awareness of the zstd compression method. Thanks! -Kees The following changes since commit 7daf201d7fe8334e2d2364d4e8ed3394ec9af819: Linux 4.18-rc2 (2018-06-24

[PATCH v3] spi: orion: cosmetics - alias long direct_access variables

2018-08-13 Thread Kosta Zertsekel
This change increases the source code readability. Instead of using `spi->child[cs].direct_access.XXX` use `dir_acc->XXX`. Instead of using `orion_spi->child[cs].direct_access.vaddr` use `vaddr`. Signed-off-by: Kosta Zertsekel --- drivers/spi/spi-orion.c | 22 +++--- 1 file

[PATCH v3] spi: orion: cosmetics - alias long direct_access variables

2018-08-13 Thread Kosta Zertsekel
This change increases the source code readability. Instead of using `spi->child[cs].direct_access.XXX` use `dir_acc->XXX`. Instead of using `orion_spi->child[cs].direct_access.vaddr` use `vaddr`. Signed-off-by: Kosta Zertsekel Reviewed-by: Andrew Lunn --- drivers/spi/spi-orion.c | 22

[PATCH] Staging: rtlwifi: efuse: fixed a line length coding style issue

2018-08-13 Thread Tom Todd
Fixed a code style issue. Line length over 80 characters. Signed-off-by: Tom Todd --- drivers/staging/rtlwifi/efuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtlwifi/efuse.c b/drivers/staging/rtlwifi/efuse.c index 1dc71455f270..49ec9728fb04 100644

Re: [PATCH] ARM: require GCC for FRAME_POINTER

2018-08-13 Thread Arnd Bergmann
On Sat, Aug 11, 2018 at 11:52 AM Stefan Agner wrote: > > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug > index 693f84392f1b..cb65cf67dfa2 100644 > --- a/arch/arm/Kconfig.debug > +++ b/arch/arm/Kconfig.debug > @@ -54,7 +54,7 @@ config DEBUG_WX > # n, but then RMK will have to kill

Re: [PATCH] gcc-plugins: require GCC

2018-08-13 Thread Stefan Agner
On 13.08.2018 22:18, Kees Cook wrote: > On Mon, Aug 13, 2018 at 1:10 PM, Kees Cook wrote: >> On Mon, Aug 13, 2018 at 12:38 AM, Masahiro Yamada >> wrote: >>> 2018-08-11 18:48 GMT+09:00 Stefan Agner : Unsurprisingly GCC plugins require GCC as a compiler. This avoids GCC plugins being

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

2018-08-13 Thread Stephen Rothwell
Hi Masahiro, Commit bd714f5f14e0 ("Coccinelle: doubletest: reduce side effect false positives") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpVgi8ugFVAT.pgp Description: OpenPGP digital signature

Re: [PATCH v2 1/2] dt-bindings: arm: amlogic: Add Meson G12A binding

2018-08-13 Thread Rob Herring
On Mon, Aug 13, 2018 at 07:48:19PM +0800, Jianxin Pan wrote: > Introduce new bindings for the Meson G12A SoC > > Signed-off-by: Jianxin Pan > --- > Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++ > 1 file changed, 6 insertions(+) Reviewed-by: Rob Herring

[GIT PULL] gcc-plugin updates for v4.19-rc1

2018-08-13 Thread Kees Cook
Hi Linus, Please pull these gcc-plugin changes for v4.19-rc1. This has some Kconfig and Makefile cleanups from Masahiro and myself, but the bulk of this is the STACKLEAK plugin ported by Alexander Popov. As discussed in its commit logs, it provides efficient stack content poisoning at syscall

[PATCH] mailbox: mediatek: add module license

2018-08-13 Thread Arnd Bergmann
The missing license tag in the new driver causes a compile-time warning, and may result in the module being unusable if it calls EXPORT_SYMBOL_GPL() functions: WARNING: modpost: missing MODULE_LICENSE() in drivers/mailbox/mtk-cmdq-mailbox.o Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek

Re: [PATCH v1 2/3] dt-bindings: i3c: Document Qualcomm GENI I3C master bindings

2018-08-13 Thread Rob Herring
On Tue, Jul 31, 2018 at 11:39:01PM -0600, Mike Shettel wrote: > Signed-off-by: Mike Shettel > --- > .../devicetree/bindings/i3c/qcom,geni-i3c.txt | 44 > ++ > 1 file changed, 44 insertions(+) > create mode 100644 Documentation/devicetree/bindings/i3c/qcom,geni-i3c.txt

[PATCH v9 06/22] KVM: s390: introduce and use KVM_REQ_VSIE_RESTART

2018-08-13 Thread Tony Krowiak
From: David Hildenbrand When we change the crycb (or execution controls), we also have to make sure that the vSIE shadow datastructures properly consider the changed values before rerunning the vSIE. We can achieve that by simply using a VCPU request now. This has to be a synchronous request

[PATCH v9 02/22] s390/zcrypt: Review inline assembler constraints.

2018-08-13 Thread Tony Krowiak
From: Harald Freudenberger Reviewed and adapted the register use and asm constraints of the C inline assembler functions in accordance to the the AP instructions specifications. Signed-off-by: Harald Freudenberger Signed-off-by: Christian Borntraeger Signed-off-by: Tony Krowiak ---

[PATCH v9 05/22] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-13 Thread Tony Krowiak
From: David Hildenbrand VCPU requests and VCPU blocking right now don't take care of the vSIE (as it was not necessary until now). But we want to have VCPU requests that will also be handled before running the vSIE again. So let's simulate a SIE entry when entering the vSIE loop and check for

[PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Provides the sysfs interfaces for: 1. Assigning AP control domains to the mediated matrix device 2. Unassigning AP control domains from a mediated matrix device 3. Displaying the control domains assigned to a mediated matrix device The IDs of the AP control domains

[PATCH v9 08/22] s390: vfio-ap: base implementation of VFIO AP device driver

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to devices installed on the linux host. The VFIO AP device driver will serve two

[PATCH v9 14/22] KVM: s390: interfaces to clear CRYCB masks

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Introduces two new KVM interface to clear the APM, AQM and ADM masks in the guest's CRYCB. The VCPUs are taken out of SIE to ensure the VCPUs do not get out of sync. Signed-off-by: Tony Krowiak Acked-by: Halil Pasic Tested-by: Michael Mueller Tested-by: Farhan Ali

[PATCH v9 09/22] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated matrix devices each of which will be used to configure the AP matrix for a guest

[PATCH v9 17/22] s390: vfio-ap: zeroize the AP queues.

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Let's call PAPQ(ZAPQ) to zeroize a queue: * For each queue configured for a mediated matrix device when it is released. Zeroizing a queue resets the queue, clears all pending messages for the queue entries and disables adapter interruptions associated with the queue.

[PATCH v9 07/22] KVM: s390: refactor crypto initialization

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak This patch refactors the code that initializes and sets up the crypto configuration for a guest. The following changes are implemented via this patch: 1. Prior to the introduction of AP device virtualization, it was not necessary to provide guest access to the CRYCB

[PATCH v9 22/22] s390: doc: detailed specifications for AP virtualization

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak This patch provides documentation describing the AP architecture and design concepts behind the virtualization of AP devices. It also includes an example of how to configure AP devices for exclusive use of KVM guests. Signed-off-by: Tony Krowiak Reviewed-by: Halil Pasic

[PATCH v9 16/22] s390: vfio-ap: implement VFIO_DEVICE_GET_INFO ioctl

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Introduces ioctl access to the VFIO AP Matrix device driver by implementing the VFIO_DEVICE_GET_INFO ioctl. This ioctl provides the VFIO AP Matrix device driver information to the guest machine. Signed-off-by: Tony Krowiak Reviewed-by: Pierre Morel Acked-by: Halil Pasic

[PATCH v9 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Introduces a new CPU model feature and two CPU model facilities to support AP virtualization for KVM guests. CPU model feature: The KVM_S390_VM_CPU_FEAT_AP feature indicates that AP instructions are available on the guest. This feature will be enabled by the kernel only if

[PATCH v9 15/22] s390: vfio-ap: implement mediated device open callback

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm structure. The open callback must

[PATCH v9 20/22] KVM: s390: Handling of Cypto control block in VSIE

2018-08-13 Thread Tony Krowiak
From: Pierre Morel Shadowing the crypto control block now supports APCB shadowing. AP instruction interpretation for guest 3 through ECA.28 is shadowed when guest 2 ECA.28 is set. CRYCB is shadowed for APCB and wrapping keys. CRYCB format 0 is now supported for both guests 2 and 3. Shadow

[PATCH] usb: hide usb_of_get_companion_dev for CONFIG_USB=n

2018-08-13 Thread Arnd Bergmann
The renesas UDC implementation now calls usb_of_get_companion_dev(), which is only defined when CONFIG_USB is enabled: drivers/usb/gadget/udc/renesas_usb3.o: In function `renesas_usb3_probe': renesas_usb3.c:(.text+0xa34): undefined reference to `usb_of_get_companion_dev' To avoid the build

[PATCH v9 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-13 Thread Tony Krowiak
From: Pierre Morel When we clear the Crypto Control Block (CRYCB) used by a guest level 2, the vSIE shadow CRYCB for guest level 3 must be updated before the guest uses it. We achieve this by using the KVM_REQ_VSIE_RESTART synchronous request for each vCPU belonging to the guest to force the

[PATCH v9 18/22] s390: vfio-ap: implement VFIO_DEVICE_RESET ioctl

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Implements the VFIO_DEVICE_RESET ioctl. This ioctl zeroizes all of the AP queues assigned to the guest. Signed-off-by: Tony Krowiak Reviewed-by: Halil Pasic Tested-by: Michael Mueller Tested-by: Farhan Ali Reviewed-by: Pierre Morel Tested-by: Pierre Morel Signed-off-by:

[PATCH v9 13/22] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Provides a sysfs interface to view the AP matrix configured for the mediated matrix device. The relevant sysfs structures are: /sys/devices/vfio_ap/matrix/ .. [mdev_supported_types] . [vfio_ap-passthrough] [devices] ...[$uuid]

Re: [PATCH v1 02/10] dt-bindings: thermal: Fix a typo in documentation

2018-08-13 Thread Rob Herring
On Thu, Aug 09, 2018 at 06:02:34PM +0530, Amit Kucheria wrote: > c(1) + x(1) was actually meant to be c(1) * x(1). > > While we're at it, add some brackets to make it nicer to read. > > Signed-off-by: Amit Kucheria > --- > Documentation/devicetree/bindings/thermal/thermal.txt | 2 +- > 1 file

[PATCH v9 11/22] s390: vfio-ap: sysfs interfaces to configure domains

2018-08-13 Thread Tony Krowiak
From: Tony Krowiak Introduces two new sysfs attributes for the VFIO mediated matrix device for assigning AP domains to and unassigning AP domains from a mediated matrix device. The IDs of the AP domains assigned to the mediated matrix device will be stored in an AP queue mask (AQM). The bits in

<    2   3   4   5   6   7   8   >