Re: [PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 02:50:17PM +, Bart Van Assche wrote: > On Tue, 2016-11-15 at 10:18 +0100, Johannes Thumshirn wrote: > > On Tue, Nov 08, 2016 at 03:04:43PM +, Bart Van Assche wrote: > > > I think the above code will miscalculate seconds_since_last_reset > > > if  > > > 'jiffies' wrap

Re: [BUG] Suspicious RCU usage: NFS client - 4.9-rc4

2016-11-15 Thread Anna Schumaker
Hi Russel, On 11/15/2016 10:07 AM, Russell King - ARM Linux wrote: > While booting two of my machines, I noticed this splat on the console. > Not sure if this is due to a RCU change or NFS change, so adding folk > on both sides. The patch to fix this went into rc5 :) Thanks for reporting! Anna

Re: [PATCH v12 11/22] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-11-15 Thread Kirti Wankhede
>> @@ -854,15 +857,29 @@ static int vfio_dma_do_unmap(struct vfio_iommu *iommu, >> if (dma->task->mm != current->mm) >> break; >> unmapped += dma->size; >> + >> +mutex_unlock(&iommu->lock); >> +if (iommu->external_domain && !RB

Re: [PATCH v12 10/22] vfio iommu type1: Add support for mediated devices

2016-11-15 Thread Kirti Wankhede
On 11/15/2016 4:55 AM, Alex Williamson wrote: > On Mon, 14 Nov 2016 21:12:24 +0530 > Kirti Wankhede wrote: > >> VFIO IOMMU drivers are designed for the devices which are IOMMU capable. >> Mediated device only uses IOMMU APIs, the underlying hardware can be >> managed by an IOMMU domain. >> >> A

Re: [PATCH v12 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-15 Thread Kirti Wankhede
On 11/15/2016 1:13 AM, Alex Williamson wrote: > On Mon, 14 Nov 2016 21:12:19 +0530 > Kirti Wankhede wrote: > >> Added APIs for pining and unpining set of pages. These call back into >> backend iommu module to actually pin and unpin pages. >> Added two new callback functions to struct vfio_iommu

Re: [PATCHSET 0/7] perf sched: Introduce timehist command, again (v1)

2016-11-15 Thread David Ahern
On 11/15/16 12:34 AM, Ingo Molnar wrote: > > * Namhyung Kim wrote: > By default it shows the individual schedule events, including the time between sched-in events for the task, the task scheduling delay (time between wakeup and actually running) and run time for the t

Re: [PATCH V2 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads

2016-11-15 Thread Jon Hunter
On 09/11/16 13:06, Laxman Dewangan wrote: > NVIDIA Tegra124 and later SoCs support the multi-voltage level and > low power state of some of its IO pads. The IO pads can work in > the voltage of the 1.8V and 3.3V of IO voltage from IO power rail > sources. When IO interfaces are not used then IO pa

Re: [1/1] ath10k: use the right length of "background"

2016-11-15 Thread Kalle Valo
Nicolas Iooss wrote: > The word "background" contains 10 characters so the third argument of > strncmp() need to be 10 in order to match this prefix correctly. > > Signed-off-by: Nicolas Iooss > Fixes: 855aed1220d2 ("ath10k: add spectral scan feature") Patch applied to ath-next branch of ath.gi

[BUG] Suspicious RCU usage: NFS client - 4.9-rc4

2016-11-15 Thread Russell King - ARM Linux
While booting two of my machines, I noticed this splat on the console. Not sure if this is due to a RCU change or NFS change, so adding folk on both sides. === [ INFO: suspicious RCU usage. ] 4.9.0-rc4+ #2050 Not tainted --- net/sunrpc/clnt.c

Re: [PATCH net-next v5] cadence: Add LSO support.

2016-11-15 Thread David Miller
From: Rafal Ozieblo Date: Tue, 15 Nov 2016 07:07:14 + > Would it be good to enable UFO conditionally with some internal > define? Ex.: Absolutely not.

Re: [PATCH v12 01/22] vfio: Mediated device Core driver

2016-11-15 Thread Kirti Wankhede
On 11/15/2016 2:00 PM, Dong Jia Shi wrote: > * Kirti Wankhede [2016-11-14 21:12:15 +0530]: > > Hi Kirti, > > [...] > >> diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c >> new file mode 100644 >> index ..613e8a8a3b2a >> --- /dev/null >> +++ b/drivers/vfio

Re: [RESEND PATCH] regulator: pwm: fix syntax errors in the examples

2016-11-15 Thread Rob Herring
On Tue, Nov 15, 2016 at 8:34 AM, Mark Brown wrote: > On Mon, Nov 14, 2016 at 07:47:02PM -0600, Rob Herring wrote: >> qOn Thu, Nov 10, 2016 at 11:25:27AM +0100, Peter Rosin wrote: >> > While at it, clean up some other things as well. > >> As this is just DT docs, I've applied. > > That's now going

Re: [PATCH v12 12/22] vfio: Add notifier callback to parent's ops structure of mdev

2016-11-15 Thread Alex Williamson
On Tue, 15 Nov 2016 14:45:42 +0800 Jike Song wrote: > On 11/14/2016 11:42 PM, Kirti Wankhede wrote: > > Add a notifier calback to parent's ops structure of mdev device so that per > > device notifer for vfio module is registered through vfio_mdev module. > > > > Signed-off-by: Kirti Wankhede >

Re: [PATCH/RESEND] recordmcount: arm: Implement make_nop

2016-11-15 Thread Steven Rostedt
On Tue, 15 Nov 2016 14:19:44 + Ard Biesheuvel wrote: > On 19 October 2016 at 00:42, Stephen Boyd wrote: > > In similar spirit to x86 and arm64 support, add a make_nop_arm() > > to replace calls to mcount with a nop in sections that aren't > > traced. > > > > Cc: Russell King > > Acked-by: R

Re: [PATCH v3 2/3] ASoC: tse850: document axentia,tse850-pcm5142 bindings

2016-11-15 Thread Rob Herring
On Fri, Nov 11, 2016 at 12:29:11PM +0100, Peter Rosin wrote: > The TSE-850 is an FM Transmitter Station Equipment, designed to generate > baseband signals for FM, mainly the DARC subcarrier, but other signals > are also possible. > > Signed-off-by: Peter Rosin > --- > .../bindings/sound/axentia,

Re: [RFC PATCH v3 13/20] x86: DMA support for memory encryption

2016-11-15 Thread Michael S. Tsirkin
On Wed, Nov 09, 2016 at 06:37:23PM -0600, Tom Lendacky wrote: > Since DMA addresses will effectively look like 48-bit addresses when the > memory encryption mask is set, SWIOTLB is needed if the DMA mask of the > device performing the DMA does not support 48-bits. SWIOTLB will be > initialized to c

Re: [PATCH] ARM: ftrace: fix syscall name matching

2016-11-15 Thread Rabin Vincent
On Mon, Nov 14, 2016 at 10:40:08AM -0500, Steven Rostedt wrote: > On Mon, 14 Nov 2016 13:40:17 + > Russell King - ARM Linux wrote: > > On Mon, Nov 14, 2016 at 02:03:45PM +0100, Rabin Vincent wrote: > > > +static inline bool arch_syscall_match_sym_name(const char *sym, > > > +

Re: [PATCH v3] ip6_output: ensure flow saddr actually belongs to device

2016-11-15 Thread David Ahern
On 11/15/16 7:45 AM, Hannes Frederic Sowa wrote: >> @@ -1012,6 +1013,16 @@ static int ip6_dst_lookup_tail(struct net *net, >> const struct sock *sk, >> } >> #endif >> >> +addr_type = ipv6_addr_type(&fl6->saddr); >> +if (addr_type == IPv6_ADDR_ANY) >> +retu

Re: [RFC PATCH] xen/x86: Increase xen_e820_map to E820_X_MAX possible entries

2016-11-15 Thread Alex Thorlton
On Tue, Nov 15, 2016 at 10:55:49AM +0100, Juergen Gross wrote: > I'd go with the new error code. What about E2BIG or ENOSPC? > > I think the hypervisor should fill in the number of entries required > in this case. > > In case nobody objects I can post patches for this purpose (both Xen > and Linu

[PATCH v13 07/22] vfio iommu type1: Update argument of vaddr_get_pfn()

2016-11-15 Thread Kirti Wankhede
Update arguments of vaddr_get_pfn() to take struct mm_struct *mm as input argument. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I885fd4cd4a9f66f4ee2c1caf58267464ec239f52 --- drivers/vfio/vfio_iommu_type1.c | 32 1 file changed, 24 insertions(

[PATCH v13 09/22] vfio iommu type1: Add task structure to vfio_dma

2016-11-15 Thread Kirti Wankhede
Add task structure to vfio_dma structure. Task structure is used for: - During DMA_UNMAP, same task who mapped it or other task who shares same address space is allowed to unmap, otherwise unmap fails. QEMU maps few iova ranges initially, then fork threads and from the child thread calls DMA_UNMAP

[PATCH v13 00/22] Add Mediated device support

2016-11-15 Thread Kirti Wankhede
This series adds Mediated device support to Linux host kernel. Purpose of this series is to provide a common interface for mediated device management that can be used by different devices. This series introduces Mdev core module that creates and manages mediated devices, VFIO based driver for media

[PATCH v13 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-15 Thread Kirti Wankhede
Added APIs for pining and unpining set of pages. These call back into backend iommu module to actually pin and unpin pages. Added two new callback functions to struct vfio_iommu_driver_ops. Backend IOMMU module that supports pining and unpinning pages for mdev devices should provide these functions

[PATCH v13 02/22] vfio: VFIO based driver for Mediated devices

2016-11-15 Thread Kirti Wankhede
vfio_mdev driver registers with mdev core driver. mdev core driver creates mediated device and calls probe routine of vfio_mdev driver for each device. Probe routine of vfio_mdev driver adds mediated device to VFIO core module This driver forms a shim layer that pass through VFIO devices operation

[PATCH v13 04/22] vfio: Common function to increment container_users

2016-11-15 Thread Kirti Wankhede
This change rearrange functions to have common function to increment container_users Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Reviewed-by: Jike Song Change-Id: I8bdeb352bc8439b107ffd519480fd4dc238677f2 --- drivers/vfio/vfio.c | 34 +- 1 file changed

IMA kexec patches

2016-11-15 Thread Mimi Zohar
Hi Andrew, Thank you for carrying the IMA kexec patches. I have a couple of patches that need to be included in linux-next. (I've just pushed them to my #next branch.) On 11/10, I posted a more recent version of the IMA kexec patches based on top these fixes, with some bug fixes and cleanup, b

Re: [PATCH V7 1/3] tracing: add a possibility of exporting function trace to other places instead of ring buffer only

2016-11-15 Thread Steven Rostedt
On Tue, 15 Nov 2016 16:14:29 +0800 Chunyan Zhang wrote: > > > Then why have a > > > > if (export->write) > > > > > > Is there every going to be a case where export will not have a write > > function? > > There shouldn't be. > > I can move this if statement to the register_ftrace_expor

[PATCH v13 18/22] vfio: Define device_api strings

2016-11-15 Thread Kirti Wankhede
Defined device API strings. Vendor driver using mediated device framework should use corresponding string for device_api attribute. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I42d29f475f02a7132ce13297fbf2b48f1da10995 --- include/uapi/linux/vfio.h | 10 ++ 1 file cha

[PATCH v13 16/22] vfio_pci: Updated to use vfio_set_irqs_validate_and_prepare()

2016-11-15 Thread Kirti Wankhede
Updated vfio_pci.c file to use vfio_set_irqs_validate_and_prepare() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I9f3daba89d8dba5cb5b01a8cff420412f30686c7 --- drivers/vfio/pci/vfio_pci.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-)

[PATCH v13 17/22] vfio_platform: Updated to use vfio_set_irqs_validate_and_prepare()

2016-11-15 Thread Kirti Wankhede
Updated vfio_platform_common.c file to use vfio_set_irqs_validate_and_prepare() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Id87cd6b78ae901610b39bf957974baa6f40cd7b0 --- drivers/vfio/platform/vfio_platform_common.c | 31 +++- 1 file changed, 8 inserti

[PATCH v13 10/22] vfio iommu type1: Add support for mediated devices

2016-11-15 Thread Kirti Wankhede
VFIO IOMMU drivers are designed for the devices which are IOMMU capable. Mediated device only uses IOMMU APIs, the underlying hardware can be managed by an IOMMU domain. Aim of this change is: - To use most of the code of TYPE1 IOMMU driver for mediated devices - To support direct assigned device

[PATCH v13 20/22] docs: Sysfs ABI for mediated device framework

2016-11-15 Thread Kirti Wankhede
Added details of sysfs ABI for mediated device framework Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Icb0fd4ed58a2fa793fbcb1c3d5009a4403c1f3ac --- Documentation/ABI/testing/sysfs-bus-vfio-mdev | 111 ++ 1 file changed, 111 insertions(+) create mode 1

[PATCH v13 14/22] vfio_pci: Update vfio_pci to use vfio_info_add_capability()

2016-11-15 Thread Kirti Wankhede
Update msix_sparse_mmap_cap() to use vfio_info_add_capability() Update region type capability to use vfio_info_add_capability() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I52bb28c7875a6da5a79ddad1843e6088aff58a45 --- drivers/vfio/pci/vfio_pci.c | 49 ++--

[PATCH v13 21/22] docs: Sample driver to demonstrate how to use Mediated device framework.

2016-11-15 Thread Kirti Wankhede
The Sample driver creates mdev device that simulates serial port over PCI card. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I857f8f12f8b275f2498dfe8c628a5cdc7193b1b2 --- Documentation/vfio-mediated-device.txt | 103 ++- samples/vfio-mdev/Makefile | 13 + sampl

[PATCH v13 22/22] MAINTAINERS: Add entry VFIO based Mediated device drivers

2016-11-15 Thread Kirti Wankhede
Adding myself as a maintainer of mediated device framework, a sub module of VFIO. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I58f6717783e0d4008ca31f4a5c4494696bae8571 --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS inde

[PATCH v13 19/22] docs: Add Documentation for Mediated devices

2016-11-15 Thread Kirti Wankhede
Add file Documentation/vfio-mediated-device.txt that include details of mediated device framework. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I137dd646442936090d92008b115908b7b2c7bc5d --- Documentation/vfio-mediated-device.txt | 298 + driver

[PATCH v13 11/22] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-11-15 Thread Kirti Wankhede
Added blocking notifier to IOMMU TYPE1 driver to notify vendor drivers about DMA_UNMAP. Exported two APIs vfio_register_notifier() and vfio_unregister_notifier(). Notifier should be registered, if external user wants to use vfio_pin_pages()/vfio_unpin_pages() APIs to pin/unpin pages. Vendor driver

[PATCH v13 15/22] vfio: Introduce vfio_set_irqs_validate_and_prepare()

2016-11-15 Thread Kirti Wankhede
Vendor driver using mediated device framework would use same mechnism to validate and prepare IRQs. Introducing this function to reduce code replication in multiple drivers. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Ie201f269dda0713ca18a07dc4852500bd8b48309 --- drivers/vfi

[PATCH v13 13/22] vfio: Introduce common function to add capabilities

2016-11-15 Thread Kirti Wankhede
Vendor driver using mediated device framework should use vfio_info_add_capability() to add capabilities. Introduced this function to reduce code duplication in vendor drivers. vfio_info_cap_shift() manipulated a data buffer to add an offset to each element in a chain. This data buffer is documente

[PATCH v13 12/22] vfio: Add notifier callback to parent's ops structure of mdev

2016-11-15 Thread Kirti Wankhede
Add a notifier calback to parent's ops structure of mdev device so that per device notifer for vfio module is registered through vfio_mdev module. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: Iafa6f1721aecdd6e50eb93b153b5621e6d29b637 --- drivers/vfio/mdev/vfio_mdev.c | 25 +++

Re: [PATCH 0/2] sched/rt: disable RT_RUNTIME_SHARE by default and document it

2016-11-15 Thread Steven Rostedt
On Tue, 15 Nov 2016 11:39:09 +0100 Daniel Bristot de Oliveira wrote: > Disable RT_RUNTIME_SHARE by default and document it. > > Cc: Ingo Molnar > Cc: Peter Zijlstra > Cc: Steven Rostedt > Cc: Clark Williams > Cc: Luis Claudio R. Goncalves > Cc: linux-kernel@vger.kernel.org > > Daniel Brist

[PATCH v3 4/6] ARM: configs: stm32: enable ADC driver

2016-11-15 Thread Fabrice Gasnier
Signed-off-by: Fabrice Gasnier --- arch/arm/configs/stm32_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 1e5ec2a..5d241e0 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/configs/stm32_defconfi

[PATCH v13 08/22] vfio iommu type1: Add find_iommu_group() function

2016-11-15 Thread Kirti Wankhede
Add find_iommu_group() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Reviewed-by: Jike Song Reviewed-by: Dong Jia Shi Change-Id: I9d372f1ebe9eb01a5a21374b8a2b03f7df73601f --- drivers/vfio/vfio_iommu_type1.c | 57 - 1 file changed, 33 insertions(

[PATCH v3 1/6] Documentation: dt-bindings: Document STM32 ADC DT bindings

2016-11-15 Thread Fabrice Gasnier
This patch adds documentation of device tree bindings for the STM32 ADC. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 83 ++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-adc.

[PATCH v3 6/6] ARM: dts: stm32f429: enable adc on eval board

2016-11-15 Thread Fabrice Gasnier
Enable analog to digital converter on stm32f429i-eval board. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32429i-eval.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 6

[PATCH v3 0/6] Add support for STM32 ADC

2016-11-15 Thread Fabrice Gasnier
This series adds support for STM32F4 ADC into IIO framework. STM32F4 ADC is a 12-bit successive approximation analog-to-digital converter with multiplexed input channels. Conversions can be performed in single, continuous, scan or discontinuous mode. Conversions can be launched in software or using

Re: [PATCHSET 0/7] perf sched: Introduce timehist command, again (v1)

2016-11-15 Thread Namhyung Kim
Hi David, On Tue, Nov 15, 2016 at 08:14:24AM -0700, David Ahern wrote: > On 11/15/16 12:34 AM, Ingo Molnar wrote: > > > > * Namhyung Kim wrote: > > > By default it shows the individual schedule events, including the time > between > sched-in events for the task, the task schedul

Re: [RFC PATCH v3 04/20] x86: Handle reduction in physical address size with SME

2016-11-15 Thread Borislav Petkov
On Tue, Nov 15, 2016 at 08:40:05AM -0600, Tom Lendacky wrote: > The feature may be present and enabled even if it is not currently > active. In other words, the SYS_CFG MSR bit could be set but we aren't > actually using encryption (sme_me_mask is 0). As long as the SYS_CFG > MSR bit is set we ne

next: s390 crash due to 's390: move sys_call_table and last_break from thread_info to thread_struct'

2016-11-15 Thread Guenter Roeck
Hi Martin, my s390 qemu boot test crashes in -next as follows. Kernel stack overflow. CPU: 0 PID: 923 Comm: modprobe Not tainted 4.9.0-rc5-next-20161115 #1 Hardware name: QEMU QEMU QEMU (KVM) task: 1d805100 task.stack: 1d898000 Krnl PSW

[PATCH v13 06/22] vfio iommu type1: Update arguments of vfio_lock_acct

2016-11-15 Thread Kirti Wankhede
Added task structure as input argument to vfio_lock_acct() function. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I5d3673cc9d3786bb436b395d5f74537f1a36da80 --- drivers/vfio/vfio_iommu_type1.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(

[PATCH v13 03/22] vfio: Rearrange functions to get vfio_group from dev

2016-11-15 Thread Kirti Wankhede
This patch rearranges functions to get vfio_group from device Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Reviewed-by: Jike Song Change-Id: I1f93262bdbab75094bc24b087b29da35ba70c4c6 --- drivers/vfio/vfio.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-)

[PATCH v3 5/6] ARM: dts: stm32f429: Add adc support

2016-11-15 Thread Fabrice Gasnier
Add adc support & pinctrl analog phandle (adc3_in8) to stm32f429. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32f429.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi

Re: [patch] ARM: socfpga: checking the wrong variable

2016-11-15 Thread Moritz Fischer
Hi Dan, On Tue, Nov 15, 2016 at 1:54 AM, Dan Carpenter wrote: > This is a cut and paste bug. We had intended to check "sysmgr". > > Fixes: e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support") > Signed-off-by: Dan Carpenter Acked-by: Moritz Fischer > > diff --git a/drivers/fpga/altera-fpga

[PATCH v3 3/6] iio: adc: Add support for STM32 ADC

2016-11-15 Thread Fabrice Gasnier
This patch adds support for STMicroelectronics STM32 MCU's analog to digital converter. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/stm32-adc.c | 518 3 files changed, 52

[PATCH v3 2/6] iio: adc: Add support for STM32 ADC core

2016-11-15 Thread Fabrice Gasnier
Add core driver for STMicroelectronics STM32 ADC (Analog to Digital Converter). STM32 ADC can be composed of up to 3 ADCs with shared resources like clock prescaler, common interrupt line and analog reference voltage. This core driver basically manages shared resources. Signed-off-by: Fabrice Gasn

[PATCH v13 01/22] vfio: Mediated device Core driver

2016-11-15 Thread Kirti Wankhede
Design for Mediated Device Driver: Main purpose of this driver is to provide a common interface for mediated device management that can be used by different drivers of different devices. This module provides a generic interface to create the device, add it to mediated bus, add device to IOMMU grou

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 03:31:27PM +0100, Steffen Maier wrote: > Hi Johannes, > > On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: > > On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > > > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > > > > On Thu, Oct

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-15 Thread Tony Lindgren
* Linus Walleij [161114 22:53]: > On Tue, Nov 15, 2016 at 1:47 AM, Tony Lindgren wrote: > > > 8< > > From tony Mon Sep 17 00:00:00 2001 > > From: Tony Lindgren > > Date: Tue, 25 Oct 2016 08:33:35 -0700 > > Subject: [PATCH] pinctrl: core: Use delayed work for hog

RE: [PATCH] ACPI: allow compilation with bare metal compilers

2016-11-15 Thread Moore, Robert
The design for all of this is as follows: 1) OS-dependent includes 2) Compiler-specific includes 3) acenv.h is the master file that pulls in the correct headers (one compiler, and one OS) So, I think I see a couple of possible solutions for you: 1) If you are using GCC, the __GNUC__ symbol shou

Re: [PATCH v3 2/2] arm64: dts: rockchip: add usb2-phy otg-port support for rk3399

2016-11-15 Thread Heiko Stuebner
Am Montag, 7. November 2016, 20:08:49 CET schrieb William Wu: > Add otg-port nodes for both u2phy0 and u2phy1. The otg-port can > be used for USB2.0 part of USB3.0 OTG controller. > > Signed-off-by: William Wu > --- > Changes in v3: > - None > > Changes in v2: > - None > > arch/arm64/boot/dts/

Re: [PATCH RFC tip/core/rcu] SRCU rewrite

2016-11-15 Thread Paul E. McKenney
On Tue, Nov 15, 2016 at 03:55:36PM +0100, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 06:26:27AM -0800, Paul E. McKenney wrote: > > On Tue, Nov 15, 2016 at 02:59:12PM +0100, Peter Zijlstra wrote: > > > > The smp_mb()s in read_{un,}lock() and the lock in call_srcu() come to > > > mind. > > > >

Re: [PATCH 1/2] ARM: zynq: Remove skeleton.dtsi

2016-11-15 Thread Julia Cartwright
On Tue, Nov 15, 2016 at 03:07:26PM +0100, Michal Simek wrote: > Based on > "ARM: dts: explicitly mark skeleton.dtsi as deprecated" > (sha1: 9c0da3cc61f1233c2782e2d3d91e3d0707dd4ba5) > skeleton.dtsi is deprecated. > Move address and size-cells directly to zynq-7000.dtsi. > > Signed-off-by: Michal S

Re: [PATCH] phy: twl4030-usb: make driver DT only

2016-11-15 Thread Tony Lindgren
* Nicolae Rosia [161115 05:26]: > Hi, > > On Tue, Nov 15, 2016 at 3:20 PM, Kishon Vijay Abraham I wrote: > > Are you sure about this? I still see a bunch of board files in mach-omap2 > > using > > twl4030. > > > > Thanks > > Kishon > > You are right, on v4.9 it is still used in arch/arm/mach-o

Re: [PATCH v2] arc: Implement arch-specific dma_map_ops.mmap

2016-11-15 Thread Ramiro Oliveira
On 11/3/2016 3:06 PM, Alexey Brodkin wrote: > We used to use generic implementation of dma_map_ops.mmap which is > dma_common_mmap() but that only worked for simpler cached mappings when > vaddr = paddr. > > If a driver requests uncached DMA buffer kernel maps it to virtual > address so that MMU g

Re: [PATCH 2/2] ARM: zynq: Fix W=1 dtc 1.4 warnings

2016-11-15 Thread Julia Cartwright
On Tue, Nov 15, 2016 at 03:07:27PM +0100, Michal Simek wrote: > The patch removes these warnings reported by dtc 1.4: > Warning (unit_address_vs_reg): Node /pmu has a reg or ranges property, > but no unit name > Warning (unit_address_vs_reg): Node /fixedregulator@0 has a unit name, > but no reg pro

Re: [PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-15 Thread Lorenzo Pieralisi
On Sun, Nov 13, 2016 at 04:59:33PM -0500, Agustin Vega-Frias wrote: > This allows probe deferral to work properly when a dependent device > fails to get a valid IRQ because the IRQ domain was not registered > at the time the resources were added to the platform_device. > > Signed-off-by: Agustin V

Re: [PATCH v7 06/11] x86, paravirt: Add interface to support kvm/xen vcpu preempted check

2016-11-15 Thread Peter Zijlstra
On Wed, Nov 02, 2016 at 05:08:33AM -0400, Pan Xinhui wrote: > diff --git a/arch/x86/include/asm/paravirt_types.h > b/arch/x86/include/asm/paravirt_types.h > index 0f400c0..38c3bb7 100644 > --- a/arch/x86/include/asm/paravirt_types.h > +++ b/arch/x86/include/asm/paravirt_types.h > @@ -310,6 +310,8

[PATCH v4 1/2] dt-bindings: mailbox: Add Tegra HSP binding

2016-11-15 Thread Thierry Reding
From: Joseph Lo Add DT binding for the Hardware Synchronization Primitives (HSP). The HSP is designed for the processors to share resources and communicate with one another. A set of hardware synchronization primitives for interprocessor communication (IPC) is provided. IPC protocols can use use

Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT

2016-11-15 Thread Nikolaus Rath
On Nov 11 2016, Mike Marshall wrote: > There was a memorable place in the Orangefs code where > the original programmer did that (pick something appropriate > from errno.h) and put in a comment about how it was a more > reasonable return code... > > When Al Viro saw it, he said it was: > > ... stu

Re: [PATCH] ARM: cache-uniphier: include instead of

2016-11-15 Thread Russell King - ARM Linux
On Mon, Nov 07, 2016 at 04:14:48PM +, Russell King - ARM Linux wrote: > On Tue, Nov 08, 2016 at 12:58:54AM +0900, Masahiro Yamada wrote: > > Nothing in this header file depends on . > > Rather, should be included for -ENODEV. > > So how do we end up with a definition for u32? > > I think you

Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT

2016-11-15 Thread Nikolaus Rath
On Nov 15 2016, Miklos Szeredi wrote: > On Fri, Nov 11, 2016 at 6:27 PM, Nikolaus Rath wrote: > >> Yeah, I'd expect most people to do that. But FUSE file systems are often >> a little more exotic and produce error conditions that don't match well >> with any of the codes documented in the manpage

RE: [PATCH for-next 03/11] IB/hns: Optimize the logic of allocating memory using APIs

2016-11-15 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Wednesday, November 09, 2016 7:22 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; > mehta.salil@gmail.com; linux-r...@vger.kernel.org; > net...@vger.kernel.org; linux-kernel@vger.kerne

[PATCH v4 0/2] mailbox: Add Tegra HSP driver

2016-11-15 Thread Thierry Reding
From: Thierry Reding Hi Jassi, These patches have gone through a number of revisions now and I've tested them to the point where I'm confident that they work well. Given the chain of drivers that depends on this, I think it'd be good if I took this through the Tegra tree with your Acked-by, so

Re: next: s390 crash due to 's390: move sys_call_table and last_break from thread_info to thread_struct'

2016-11-15 Thread Martin Schwidefsky
On Tue, 15 Nov 2016 07:35:54 -0800 Guenter Roeck wrote: > Hi Martin, > > my s390 qemu boot test crashes in -next as follows. > > Kernel stack overflow. > CPU: 0 PID: 923 Comm: modprobe Not tainted 4.9.0-rc5-next-20161115 #1 > Hardware name: QEMU QEMU

[PATCH 0/3] z3fold: per-page spinlock and other smaller optimizations

2016-11-15 Thread Vitaly Wool
Coming is the patchset with the per-page spinlock as the main modification, and two smaller dependent patches, one of which removes build error when the z3fold header size exceeds the size of a chunk, and the other puts non-compacted pages to the end of the unbuddied list. Signed-off-by: Vitaly Wo

Re: [PATCH v7 2/5] mm: remove x86-only restriction of movable_node

2016-11-15 Thread Reza Arbab
On Tue, Nov 15, 2016 at 12:35:42PM +0530, Aneesh Kumar K.V wrote: Considering that we now can mark memblock hotpluggable, do we need to enable the bottom up allocation for ppc64 also ? No, we don't, because early_init_dt_scan_memory() marks the memblocks hotpluggable immediately when they are

[PATCH] tpm: fix node pointer lookup

2016-11-15 Thread Arnd Bergmann
A rework left the node pointer uninitialized when the device tree is not in use: drivers/char/tpm/tpm_of.c: In function 'read_log_of': drivers/char/tpm/tpm_of.c:37:8: error: 'np' may be used uninitialized in this function [-Werror=maybe-uninitialized] This reverts the behavior to what it should

[PATCH] thunderbolt: fix compile-test dependencies

2016-11-15 Thread Arnd Bergmann
Building the Apple thunderbolt driver on non-x86 machines now produces a harmless warning: warning: (THUNDERBOLT) selects APPLE_PROPERTIES which has unmet direct dependencies (EFI && EFI_STUB && X86) As there is no compile-time dependency to the Apple properties support, we can make that 'select

[PATCH 1/3] z3fold: use per-page spinlock

2016-11-15 Thread Vitaly Wool
Most of z3fold operations are in-page, such as modifying z3fold page header or moving z3fold objects within a page. Taking per-pool spinlock to protect per-page objects is therefore suboptimal, and the idea of having a per-page spinlock (or rwlock) has been around for some time. This patch impleme

[PATCH 2/3] z3fold: don't fail kernel build if z3fold_header is too big

2016-11-15 Thread Vitaly Wool
Currently the whole kernel build will be stopped if the size of struct z3fold_header is greater than the size of one chunk, which is 64 bytes by default. This may stand in the way of automated test/debug builds so let's remove that and just fail the z3fold initialization in such case instead. Sign

[PATCH 3/3] z3fold: discourage use of pages that weren't compacted

2016-11-15 Thread Vitaly Wool
If a z3fold page couldn't be compacted, we don't want it to be used for next object allocation in the first place. It makes more sense to add it to the end of the relevant unbuddied list. If that page gets compacted later, it will be added to the beginning of the list then. This simple idea gives

[PATCH v4 2/2] mailbox: Add Tegra HSP driver

2016-11-15 Thread Thierry Reding
From: Thierry Reding This driver exposes a mailbox interface for interprocessor communication using the Hardware Synchronization Primitives (HSP) module's doorbell mechanism. There are multiple HSP instances and they provide additional features such as shared mailboxes, shared and arbitrated sema

Re: [patch] ARM: socfpga: checking the wrong variable

2016-11-15 Thread atull
On Tue, 15 Nov 2016, Moritz Fischer wrote: > Hi Dan, > On Tue, Nov 15, 2016 at 1:54 AM, Dan Carpenter > wrote: > > This is a cut and paste bug. We had intended to check "sysmgr". > > > > Fixes: e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support") > > Signed-off-by: Dan Carpenter > Acked

Re: [Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-15 Thread Zubair Lutfullah Kakakhel
Hi, On 11/15/2016 12:49 PM, Michal Simek wrote: On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Signed-off-by: Zubair Lutfullah Kakakhel ... @@ -138,59 +136,75 @@ static cons

RE: [PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Deucher, Alexander
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Tuesday, November 15, 2016 7:55 AM > To: Deucher, Alexander; Koenig, Christian; David Airlie; Zhu, Rex; StDenis, > Tom; Huang, Ray; Nils Wallménius; Baoyou Xie; dri- > de...@lists.freedesktop.org > Cc: linux-k

[PATCH] dwc3: make PM functions as __maybe_unused

2016-11-15 Thread Arnd Bergmann
A change to the suspend/resume handling in dwc3-pci introduced a harmless warning: drivers/usb/dwc3/dwc3-pci.c:169:12: error: ‘dwc3_pci_dsm’ defined but not used [-Werror=unused-function] Replacing the #ifdef around the PM functions with __maybe_unused annotations is the easiest way to make sure

Re: [RFC PATCH v3 04/20] x86: Handle reduction in physical address size with SME

2016-11-15 Thread Tom Lendacky
On 11/15/2016 9:33 AM, Borislav Petkov wrote: > On Tue, Nov 15, 2016 at 08:40:05AM -0600, Tom Lendacky wrote: >> The feature may be present and enabled even if it is not currently >> active. In other words, the SYS_CFG MSR bit could be set but we aren't >> actually using encryption (sme_me_mask is

[PATCH] kasan: support use-after-scope detection

2016-11-15 Thread Dmitry Vyukov
Gcc revision 241896 implements use-after-scope detection. Will be available in gcc 7. Support it in KASAN. Gcc emits 2 new callbacks to poison/unpoison large stack objects when they go in/out of scope. Implement the callbacks and add a test. Signed-off-by: Dmitry Vyukov Cc: aryabi...@virtuozzo.c

Re: [PATCH -v1.1] kbuild: Steal gcc's pie from the very beginning

2016-11-15 Thread Michal Marek
On Mon, Nov 14, 2016 at 09:45:29PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > Date: Mon, 14 Nov 2016 19:41:31 +0100 > Subject: [PATCH] kbuild: Steal gcc's pie from the very beginning > > So Sebastian turned off the PIE for kernel builds but that was too late > - Kbuild.include alread

Re: [PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Colin Ian King
On 15/11/16 15:49, Deucher, Alexander wrote: >> -Original Message- >> From: Colin King [mailto:colin.k...@canonical.com] >> Sent: Tuesday, November 15, 2016 7:55 AM >> To: Deucher, Alexander; Koenig, Christian; David Airlie; Zhu, Rex; StDenis, >> Tom; Huang, Ray; Nils Wallménius; Baoyou Xie

[PATCH 2/2] pci: pcie-designware-plat: updated author email

2016-11-15 Thread Joao Pinto
I returned to Synopsys and so I am sending this patch to update the email address of the pcie-designware-plat author. Signed-off-by: Joao Pinto --- drivers/pci/host/pcie-designware-plat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-designware-plat.c

[PATCH 1/2] pci: pcie-designware: Change Maintenance

2016-11-15 Thread Joao Pinto
I accepted the invitation from Pratyush to replace him in the pcie-designware maintenance. This patch makes the maintainer replacement and symplifies a bit the pcie-designware* maintenance structure. Signed-off-by: Joao Pinto Cc: Pratyush Anand Cc: Jose Abreu --- MAINTAINERS | 10 ++ 1

Re: [PATCH 0/3] arm64: dts: hisi: hip06 SAS device tree fixes

2016-11-15 Thread Wei Xu
Hi John, On 2016/11/7 16:44, John Garry wrote: > This patchset resolves some hip06 SAS device tree issues. > Series applied to the hisilicon soc tree. Thanks! Best Regards, Wei > John Garry (3): > arm64: dts: hisi: fix hip06 sas am-max-trans quirk > arm64: dts: hisi: disable sas0 and sas2 f

[PATCH] reset: Add Tegra BPMP reset driver

2016-11-15 Thread Thierry Reding
From: Thierry Reding This driver uses the services provided by the BPMP firmware driver to implement a reset driver based on the MRQ_RESET request. Signed-off-by: Thierry Reding --- Hi Philipp, I'm looking for an Acked-by on this because there are complicated dependencies between this and othe

RE: [PATCH] drm/amd/powerplay: check if table_info is NULL before dereferencing it

2016-11-15 Thread Deucher, Alexander
> -Original Message- > From: Colin Ian King [mailto:colin.k...@canonical.com] > Sent: Tuesday, November 15, 2016 11:09 AM > To: Deucher, Alexander; Koenig, Christian; David Airlie; Zhu, Rex; StDenis, > Tom; Huang, Ray; Nils Wallménius; Baoyou Xie; dri- > de...@lists.freedesktop.org > Cc: li

fuse: max_background and congestion_threshold settings

2016-11-15 Thread Nikolaus Rath
Hello, Could someone explain to me the meaning of the max_background and congestion_threshold settings of the fuse module? At first I assumed that max_background specifies the maximum number of pending requests (i.e., requests that have been send to userspace but for which no reply was received y

Re: [PATCH 2/5] Documentation: arm64: Add Hisilicon Hip07 D05 dts binding

2016-11-15 Thread Wei Xu
Hi Kefeng, On 2016/9/24 10:14, Kefeng Wang wrote: > This patch adds documentation for the devicetree bindings used by > the DT files of Hisilicon Hip07 D05 board. > > Signed-off-by: Kefeng Wang > --- Applied to the hisilicon soc tree. Thanks! Best Regards, Wei > Documentation/devicetree/bind

Re: [PATCH] thunderbolt: fix compile-test dependencies

2016-11-15 Thread Lukas Wunner
On Tue, Nov 15, 2016 at 04:58:53PM +0100, Arnd Bergmann wrote: > Building the Apple thunderbolt driver on non-x86 machines now produces > a harmless warning: > > warning: (THUNDERBOLT) selects APPLE_PROPERTIES which has unmet direct > dependencies (EFI && EFI_STUB && X86) > > As there is no comp

Re: [PATCH 1/5] arm64: dts: hip06: Correct hardware pin number of usb node

2016-11-15 Thread Wei Xu
Hi Kefeng, On 2016/9/24 10:14, Kefeng Wang wrote: > The ohci/ehci hardware pin number should be 640/641, correct them. > > Fixes: commit aa8d3e74f54d ("arm64: dts: Add initial dts for Hisilicon Hip06 > D03 board") > Signed-off-by: Kefeng Wang > --- Applied to the hisilicon soc tree. Thanks! B

Re: [PATCH 3/5] arm64: dts: hisilicon: Add initial dts for Hip07 D05 board

2016-11-15 Thread Wei Xu
Hi Kefeng, On 2016/9/24 10:14, Kefeng Wang wrote: > Adding initial dt file for Hip07 D05 board, it is with dual socket > and each socket has two SCCLs(supper cpu cluster), one SCCL contains > four clusters and each cluster has quard Cortex-A72. > > Since each SCCL has their own DDR controller, it

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