[PATCH net-next 3/5] net: l2tp: netlink: l2tp_nl_tunnel_send: set UDP6 checksum flags

2016-11-04 Thread Asbjoern Sloth Toennesen
This patch causes the proper attribute flags to be set, in the case that IPv6 UDP checksums are disabled, so that userspace ie. `ip l2tp show tunnel` knows about it. Signed-off-by: Asbjoern Sloth Toennesen --- net/l2tp/l2tp_netlink.c | 10 ++ 1 file changed, 10

[PATCH net-next 3/5] net: l2tp: netlink: l2tp_nl_tunnel_send: set UDP6 checksum flags

2016-11-04 Thread Asbjoern Sloth Toennesen
This patch causes the proper attribute flags to be set, in the case that IPv6 UDP checksums are disabled, so that userspace ie. `ip l2tp show tunnel` knows about it. Signed-off-by: Asbjoern Sloth Toennesen --- net/l2tp/l2tp_netlink.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH 0/3] rtc: remove modular usage from non-modular code

2016-11-04 Thread Alexandre Belloni
On 31/10/2016 at 14:55:24 -0400, Paul Gortmaker wrote : > My ongoing audit looking for non-modular code that needlessly uses > modular macros (vs. built-in equivalents) and/or has dead code > relating to module unloading that can never be executed led to the > creation of these rtc related

Re: [PATCH 0/3] rtc: remove modular usage from non-modular code

2016-11-04 Thread Alexandre Belloni
On 31/10/2016 at 14:55:24 -0400, Paul Gortmaker wrote : > My ongoing audit looking for non-modular code that needlessly uses > modular macros (vs. built-in equivalents) and/or has dead code > relating to module unloading that can never be executed led to the > creation of these rtc related

Re: [PATCH 1/2] pinctrl: tegra: Add DT binding for io pads control

2016-11-04 Thread Linus Walleij
On Wed, Nov 2, 2016 at 10:09 AM, 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 power rail sources. When IO > interface

Re: [PATCH 1/2] pinctrl: tegra: Add DT binding for io pads control

2016-11-04 Thread Linus Walleij
On Wed, Nov 2, 2016 at 10:09 AM, 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 power rail sources. When IO > interface are not used then IO

Re: [PATCH] pinctrl: sunxi: make bool drivers explicitly non-modular

2016-11-04 Thread Linus Walleij
On Sun, Oct 30, 2016 at 2:00 AM, Paul Gortmaker wrote: > None of the Kconfigs for any of these drivers are tristate, > meaning that they currently are not being built as a module by anyone. > > Lets remove the modular code that is essentially orphaned, so that >

Re: [PATCH] pinctrl: sunxi: make bool drivers explicitly non-modular

2016-11-04 Thread Linus Walleij
On Sun, Oct 30, 2016 at 2:00 AM, Paul Gortmaker wrote: > None of the Kconfigs for any of these drivers are tristate, > meaning that they currently are not being built as a module by anyone. > > Lets remove the modular code that is essentially orphaned, so that > when reading the drivers there is

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

2016-11-04 Thread Linus Walleij
On Wed, Nov 2, 2016 at 10:09 AM, 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 power rail sources. When IO > interface

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

2016-11-04 Thread Linus Walleij
On Wed, Nov 2, 2016 at 10:09 AM, 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 power rail sources. When IO > interface are not used then IO

Re: [PATCH v2 2/3] irqchip: mtk-cirq: Add mediatek mtk-cirq implement

2016-11-04 Thread Marc Zyngier
On Fri, Nov 04 2016 at 04:42:57 AM, Youlin Pei wrote: > On Tue, 2016-11-01 at 20:49 +, Marc Zyngier wrote: >> On Tue, Nov 01 2016 at 11:52:01 AM, Youlin Pei >> wrote: >> > In Mediatek SOCs, the CIRQ is a low power interrupt controller >> >

Re: [PATCH v2 2/3] irqchip: mtk-cirq: Add mediatek mtk-cirq implement

2016-11-04 Thread Marc Zyngier
On Fri, Nov 04 2016 at 04:42:57 AM, Youlin Pei wrote: > On Tue, 2016-11-01 at 20:49 +, Marc Zyngier wrote: >> On Tue, Nov 01 2016 at 11:52:01 AM, Youlin Pei >> wrote: >> > In Mediatek SOCs, the CIRQ is a low power interrupt controller >> > designed to works outside MCUSYS which comprises

Re: [PATCH 1/1] gpio: lib: Add gpio_is_enabled() to get pin mode

2016-11-04 Thread Linus Walleij
On Wed, Nov 2, 2016 at 1:17 PM, Laxman Dewangan wrote: > Many of devices/SoCs supports the GPIO and special IO function > from their pins. On such cases, there is always configuration > bits to select the mode of pin as GPIO or as the special IO mode. > The functional modes

Re: [PATCH 1/1] gpio: lib: Add gpio_is_enabled() to get pin mode

2016-11-04 Thread Linus Walleij
On Wed, Nov 2, 2016 at 1:17 PM, Laxman Dewangan wrote: > Many of devices/SoCs supports the GPIO and special IO function > from their pins. On such cases, there is always configuration > bits to select the mode of pin as GPIO or as the special IO mode. > The functional modes are selected by

Re: console issue since 3.6, console=ttyS1 hangs

2016-11-04 Thread Peter Hurley
On Fri, Nov 4, 2016 at 3:33 PM, Nathan Zimmer wrote: > On Thu, Nov 03, 2016 at 06:25:46PM -0600, Peter Hurley wrote: >> On Wed, Nov 2, 2016 at 9:29 AM, Nathan Zimmer wrote: >> > On Mon, Oct 31, 2016 at 08:55:49PM -0600, Peter Hurley wrote: >> >> On Mon, Oct 31,

Re: console issue since 3.6, console=ttyS1 hangs

2016-11-04 Thread Peter Hurley
On Fri, Nov 4, 2016 at 3:33 PM, Nathan Zimmer wrote: > On Thu, Nov 03, 2016 at 06:25:46PM -0600, Peter Hurley wrote: >> On Wed, Nov 2, 2016 at 9:29 AM, Nathan Zimmer wrote: >> > On Mon, Oct 31, 2016 at 08:55:49PM -0600, Peter Hurley wrote: >> >> On Mon, Oct 31, 2016 at 2:27 PM, Sean Young

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pavel Machek
Hi! > I'd prefer mails over bugzilla for now... > > 4.9-rc2 has bios_limit: > > pavel@duo:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit > 1833000 > > and it has thermal zones: > > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp 127000 >

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pavel Machek
Hi! > I'd prefer mails over bugzilla for now... > > 4.9-rc2 has bios_limit: > > pavel@duo:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit > 1833000 > > and it has thermal zones: > > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp 127000 >

Re: [PATCH] pinctrl: meson: Add GXL pinctrl definitions

2016-11-04 Thread Linus Walleij
On Mon, Oct 31, 2016 at 5:32 PM, Neil Armstrong wrote: > Add support for the Amlogic Meson GXL SoC, this is a partially complete > definition only based on the Amlogic Vendor tree. > > This definition differs a lot from the GXBB and needs a separate entry. > > Acked-by:

Re: [PATCH] pinctrl: meson: Add GXL pinctrl definitions

2016-11-04 Thread Linus Walleij
On Mon, Oct 31, 2016 at 5:32 PM, Neil Armstrong wrote: > Add support for the Amlogic Meson GXL SoC, this is a partially complete > definition only based on the Amlogic Vendor tree. > > This definition differs a lot from the GXBB and needs a separate entry. > > Acked-by: Rob Herring >

Re: [PATCH] gpio: htc-egpio: Make it explicitly non-modular

2016-11-04 Thread Linus Walleij
On Mon, Oct 31, 2016 at 7:27 PM, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/gpio/Kconfig:config HTC_EGPIO > drivers/gpio/Kconfig: bool "HTC EGPIO support" > > ...meaning that it currently is not being built

Re: [PATCH] gpio: htc-egpio: Make it explicitly non-modular

2016-11-04 Thread Linus Walleij
On Mon, Oct 31, 2016 at 7:27 PM, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/gpio/Kconfig:config HTC_EGPIO > drivers/gpio/Kconfig: bool "HTC EGPIO support" > > ...meaning that it currently is not being built as a module by anyone. > > Lets

Re: [PATCH v6] powerpc: Do not make the entire heap executable

2016-11-04 Thread Kees Cook
Hi, Jason just reminded me about this patch. :) Denys, can you resend a v7 with all the Acked/Reviewed/Tested-bys added and send it To: akpm, with everyone else (and lkml) in CC? That should be the easiest way for Andrew to pick it up. Thanks! -Kees On Mon, Oct 24, 2016 at 5:17 PM, Kees Cook

Re: [PATCH v6] powerpc: Do not make the entire heap executable

2016-11-04 Thread Kees Cook
Hi, Jason just reminded me about this patch. :) Denys, can you resend a v7 with all the Acked/Reviewed/Tested-bys added and send it To: akpm, with everyone else (and lkml) in CC? That should be the easiest way for Andrew to pick it up. Thanks! -Kees On Mon, Oct 24, 2016 at 5:17 PM, Kees Cook

Re: [git pull] drm fixes for 4.9-rc4

2016-11-04 Thread Theodore Ts'o
On Fri, Nov 04, 2016 at 01:38:25PM -0700, Linus Torvalds wrote: > On Wed, Nov 2, 2016 at 5:31 PM, Dave Airlie wrote: > > > > There are a set of fixes for an oops we've been seeing around MST > > display unplug, > > Side note: I heard from a couple of people at the KS that said

Re: [git pull] drm fixes for 4.9-rc4

2016-11-04 Thread Theodore Ts'o
On Fri, Nov 04, 2016 at 01:38:25PM -0700, Linus Torvalds wrote: > On Wed, Nov 2, 2016 at 5:31 PM, Dave Airlie wrote: > > > > There are a set of fixes for an oops we've been seeing around MST > > display unplug, > > Side note: I heard from a couple of people at the KS that said that > they had

Re: [PATCH v8 7/7] KVM: x86: virtualize cpuid faulting

2016-11-04 Thread Paolo Bonzini
On 04/11/2016 21:34, David Matlack wrote: > On Mon, Oct 31, 2016 at 6:37 PM, Kyle Huey wrote: >> + case MSR_PLATFORM_INFO: >> + /* cpuid faulting is supported */ >> + msr_info->data = PLATINFO_CPUID_FAULT; >> + break; > > This

Re: [PATCH v8 7/7] KVM: x86: virtualize cpuid faulting

2016-11-04 Thread Paolo Bonzini
On 04/11/2016 21:34, David Matlack wrote: > On Mon, Oct 31, 2016 at 6:37 PM, Kyle Huey wrote: >> + case MSR_PLATFORM_INFO: >> + /* cpuid faulting is supported */ >> + msr_info->data = PLATINFO_CPUID_FAULT; >> + break; > > This could break

Re: [PATCH 4/4] ARM: dts: Add #pinctrl-cells for pinctrl-single instances

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > Drivers using pinctrl-single,pins have #pinctrl-cells = <1>, while > pinctrl-single,bits need #pinctrl-cells = <2>. > > Note that this patch can be optionally applied separately from the > driver changes as the driver

Re: [PATCH 4/4] ARM: dts: Add #pinctrl-cells for pinctrl-single instances

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > Drivers using pinctrl-single,pins have #pinctrl-cells = <1>, while > pinctrl-single,bits need #pinctrl-cells = <2>. > > Note that this patch can be optionally applied separately from the > driver changes as the driver supports also the

Re: [PATCH 3/4] pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,bits

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > We can now use generic parser and keep things compatible with the > old binding. > > Signed-off-by: Tony Lindgren V2 Patch applied. Yours, Linus Walleij

Re: [PATCH 3/4] pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,bits

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > We can now use generic parser and keep things compatible with the > old binding. > > Signed-off-by: Tony Lindgren V2 Patch applied. Yours, Linus Walleij

Re: [PATCH 2/4] pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,pins

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > We can now use generic parser. To support the legacy binding without > #pinctrl-cells, add pcs_quirk_missing_pinctrl_cells() and warn about > missing #pinctrl-cells. > > Let's also update the documentation for struct

Re: [PATCH 2/4] pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,pins

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > We can now use generic parser. To support the legacy binding without > #pinctrl-cells, add pcs_quirk_missing_pinctrl_cells() and warn about > missing #pinctrl-cells. > > Let's also update the documentation for struct pcs_soc_data while at it

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > Introduce #pinctrl-cells helper binding and generic helper functions > pinctrl_count_index_with_args() and pinctrl_parse_index_with_args(). > > Acked-by: Rob Herring > Signed-off-by: Tony Lindgren

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-04 Thread Linus Walleij
On Thu, Nov 3, 2016 at 5:35 PM, Tony Lindgren wrote: > Introduce #pinctrl-cells helper binding and generic helper functions > pinctrl_count_index_with_args() and pinctrl_parse_index_with_args(). > > Acked-by: Rob Herring > Signed-off-by: Tony Lindgren Ooops applied this v2 version instead of

RE: [PATCH 8/9] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver

2016-11-04 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: Stuart Yoder > Sent: Thursday, November 03, 2016 4:38 PM > To: Ruxandra Ioana Radulescu > Subject: FW: [PATCH 8/9] bus: fsl-mc: dpio: add the DPAA2 DPIO object > driver > > > > -Original Message- > From: Stuart Yoder

RE: [PATCH 8/9] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver

2016-11-04 Thread Ruxandra Ioana Radulescu
> -Original Message- > From: Stuart Yoder > Sent: Thursday, November 03, 2016 4:38 PM > To: Ruxandra Ioana Radulescu > Subject: FW: [PATCH 8/9] bus: fsl-mc: dpio: add the DPAA2 DPIO object > driver > > > > -Original Message- > From: Stuart Yoder [mailto:stuart.yo...@nxp.com] >

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-04 Thread Pavel Machek
On Fri 2016-11-04 13:39:19, Matt Ranostay wrote: > On Fri, Nov 4, 2016 at 1:29 PM, Pavel Machek wrote: > > On Fri 2016-11-04 07:58:55, Tony Lindgren wrote: > >> * Pavel Machek [161104 00:10]: > >> > On Thu 2016-11-03 22:00:56, Matt Ranostay wrote: > >> > Do you

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-04 Thread Pavel Machek
On Fri 2016-11-04 13:39:19, Matt Ranostay wrote: > On Fri, Nov 4, 2016 at 1:29 PM, Pavel Machek wrote: > > On Fri 2016-11-04 07:58:55, Tony Lindgren wrote: > >> * Pavel Machek [161104 00:10]: > >> > On Thu 2016-11-03 22:00:56, Matt Ranostay wrote: > >> > Do you actually have hardware with more

Re: [PATCH 2/4] pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,pins

2016-11-04 Thread Linus Walleij
On Tue, Oct 25, 2016 at 6:45 PM, Tony Lindgren wrote: > We can now use generic parser. To support the legacy binding without > #pinctrl-cells, add pcs_quirk_missing_pinctrl_cells() and warn about > missing #pinctrl-cells. > > Let's also update the documentation for struct

Re: [PATCH 2/4] pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,pins

2016-11-04 Thread Linus Walleij
On Tue, Oct 25, 2016 at 6:45 PM, Tony Lindgren wrote: > We can now use generic parser. To support the legacy binding without > #pinctrl-cells, add pcs_quirk_missing_pinctrl_cells() and warn about > missing #pinctrl-cells. > > Let's also update the documentation for struct pcs_soc_data while at

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-04 Thread Linus Walleij
On Fri, Oct 28, 2016 at 6:53 PM, Tony Lindgren wrote: > From tony Mon Sep 17 00:00:00 2001 > From: Tony Lindgren > Date: Tue, 25 Oct 2016 08:33:34 -0700 > Subject: [PATCH] pinctrl: Introduce generic #pinctrl-cells and > pinctrl_parse_index_with_args > >

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-04 Thread Linus Walleij
On Fri, Oct 28, 2016 at 6:53 PM, Tony Lindgren wrote: > From tony Mon Sep 17 00:00:00 2001 > From: Tony Lindgren > Date: Tue, 25 Oct 2016 08:33:34 -0700 > Subject: [PATCH] pinctrl: Introduce generic #pinctrl-cells and > pinctrl_parse_index_with_args > > Introduce #pinctrl-cells helper binding

[PATCH v3 0/2] regulator: handling of error conditions for usb drivers

2016-11-04 Thread Axel Haslam
Some usb drivers rely on external power switches/regulators to for the port vbus. Some of these drivers are using a plain gpio for the enable pin and also the over current indicator pin. To make these drivers more generic, we can use a regulator to handle vbus, and send and over current event,

[PATCH v3 0/2] regulator: handling of error conditions for usb drivers

2016-11-04 Thread Axel Haslam
Some usb drivers rely on external power switches/regulators to for the port vbus. Some of these drivers are using a plain gpio for the enable pin and also the over current indicator pin. To make these drivers more generic, we can use a regulator to handle vbus, and send and over current event,

[PATCH v3 2/2] regulator: fixed: Handle optional overcurrent pin

2016-11-04 Thread Axel Haslam
Fixed regulators (ex. TPS2087D) may have a over current pin that is activated on over current. Consumers may be interested to know about over current events to take appropriate actions. Allow the fix regulator to take in an optional gpio pin for over current and send the respective event to the

[PATCH v3 1/2] regulator: fixed: dt: Allow an optional over current pin

2016-11-04 Thread Axel Haslam
Add support for an optional over current input pin which can be used to send an over current event to the regulator consumer. Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- Documentation/devicetree/bindings/regulator/fixed-regulator.txt | 2 ++ 1 file

[PATCH v3 2/2] regulator: fixed: Handle optional overcurrent pin

2016-11-04 Thread Axel Haslam
Fixed regulators (ex. TPS2087D) may have a over current pin that is activated on over current. Consumers may be interested to know about over current events to take appropriate actions. Allow the fix regulator to take in an optional gpio pin for over current and send the respective event to the

[PATCH v3 1/2] regulator: fixed: dt: Allow an optional over current pin

2016-11-04 Thread Axel Haslam
Add support for an optional over current input pin which can be used to send an over current event to the regulator consumer. Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- Documentation/devicetree/bindings/regulator/fixed-regulator.txt | 2 ++ 1 file changed, 2 insertions(+)

Re: console issue since 3.6, console=ttyS1 hangs

2016-11-04 Thread Nathan Zimmer
On Thu, Nov 03, 2016 at 06:25:46PM -0600, Peter Hurley wrote: > On Wed, Nov 2, 2016 at 9:29 AM, Nathan Zimmer wrote: > > On Mon, Oct 31, 2016 at 08:55:49PM -0600, Peter Hurley wrote: > >> On Mon, Oct 31, 2016 at 2:27 PM, Sean Young wrote: > >> > On Sun, Oct 30,

Re: console issue since 3.6, console=ttyS1 hangs

2016-11-04 Thread Nathan Zimmer
On Thu, Nov 03, 2016 at 06:25:46PM -0600, Peter Hurley wrote: > On Wed, Nov 2, 2016 at 9:29 AM, Nathan Zimmer wrote: > > On Mon, Oct 31, 2016 at 08:55:49PM -0600, Peter Hurley wrote: > >> On Mon, Oct 31, 2016 at 2:27 PM, Sean Young wrote: > >> > On Sun, Oct 30, 2016 at 10:33:02AM -0500, Nathan

Re: [PATCH 01/14] pinctrl-sx150x: Rely on of_modalias_node for OF matching

2016-11-04 Thread Linus Walleij
On Fri, Nov 4, 2016 at 9:09 PM, Andrey Smirnov wrote: > On Fri, Nov 4, 2016 at 5:28 AM, Linus Walleij > wrote: >> On Tue, Nov 1, 2016 at 4:57 PM, Andrey Smirnov >> wrote: >> >>> None of the OF match table entries

Re: [PATCH 01/14] pinctrl-sx150x: Rely on of_modalias_node for OF matching

2016-11-04 Thread Linus Walleij
On Fri, Nov 4, 2016 at 9:09 PM, Andrey Smirnov wrote: > On Fri, Nov 4, 2016 at 5:28 AM, Linus Walleij > wrote: >> On Tue, Nov 1, 2016 at 4:57 PM, Andrey Smirnov >> wrote: >> >>> None of the OF match table entries contain any compatiblity strings that >>> could not be matched against using

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

2016-11-04 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 ---

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

2016-11-04 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 | 19

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

2016-11-04 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 | 30

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

2016-11-04 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 | 30 +++--- 1 file changed, 23

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

2016-11-04 Thread Kirti Wankhede
Add find_iommu_group() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I9d372f1ebe9eb01a5a21374b8a2b03f7df73601f --- drivers/vfio/vfio_iommu_type1.c | 58 - 1 file changed, 34 insertions(+), 24

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

2016-11-04 Thread Kirti Wankhede
Add find_iommu_group() Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I9d372f1ebe9eb01a5a21374b8a2b03f7df73601f --- drivers/vfio/vfio_iommu_type1.c | 58 - 1 file changed, 34 insertions(+), 24 deletions(-) diff --git

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

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

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

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

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

2016-11-04 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. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id:

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

2016-11-04 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

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pandruvada, Srinivas
On Fri, 2016-11-04 at 21:44 +0100, Pavel Machek wrote: > Hi! > > > > > > > > > Let me try v4.9-rc2... that works ok (cpus at the high frequency > > > during the kernel build). Unfortunately that sends my cpus to 99C > > > temperature range (and eventually forces emergency shutdown). > > > >

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

2016-11-04 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. Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I6fca329fa2291f37a2c859d0bc97574d9e2ce1a6 ---

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

2016-11-04 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

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pandruvada, Srinivas
On Fri, 2016-11-04 at 21:44 +0100, Pavel Machek wrote: > Hi! > > > > > > > > > Let me try v4.9-rc2... that works ok (cpus at the high frequency > > > during the kernel build). Unfortunately that sends my cpus to 99C > > > temperature range (and eventually forces emergency shutdown). > > > >

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

2016-11-04 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 ++-

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

2016-11-04 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 +

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

2016-11-04 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

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

2016-11-04 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

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

2016-11-04 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

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

2016-11-04 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

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

2016-11-04 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:

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

2016-11-04 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

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

2016-11-04 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 v11 06/22] vfio iommu type1: Update arguments of vfio_lock_acct

2016-11-04 Thread Kirti Wankhede
Updated arguments of vfio_lock_acct to take mm structure as input argument Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I5d3673cc9d3786bb436b395d5f74537f1a36da80 --- drivers/vfio/vfio_iommu_type1.c | 22 ++ 1 file

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

2016-11-04 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 ---

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

2016-11-04 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 ---

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

2016-11-04 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 + 1

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

2016-11-04 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 v11 06/22] vfio iommu type1: Update arguments of vfio_lock_acct

2016-11-04 Thread Kirti Wankhede
Updated arguments of vfio_lock_acct to take mm structure as input argument Signed-off-by: Kirti Wankhede Signed-off-by: Neo Jia Change-Id: I5d3673cc9d3786bb436b395d5f74537f1a36da80 --- drivers/vfio/vfio_iommu_type1.c | 22 ++ 1 file changed, 10 insertions(+), 12

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

2016-11-04 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 v11 09/22] vfio iommu type1: Add task structure to vfio_dma

2016-11-04 Thread Kirti Wankhede
Add task structure to vfio_dma. Add address space structure. Each vfio_dma structure points to the address space of the task who mapped it. List of address spaces is maintained in vfio_iommu structure. >From DMA_MAP call if address space already exist in address space list, vfio_dma points to it.

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

2016-11-04 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 ---

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

2016-11-04 Thread Kirti Wankhede
Add task structure to vfio_dma. Add address space structure. Each vfio_dma structure points to the address space of the task who mapped it. List of address spaces is maintained in vfio_iommu structure. >From DMA_MAP call if address space already exist in address space list, vfio_dma points to it.

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

2016-11-04 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

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

2016-11-04 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(+)

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

2016-11-04 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 v11 22/22] MAINTAINERS: Add entry VFIO based Mediated device drivers

2016-11-04 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

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

2016-11-04 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 v11 05/22] vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_ops

2016-11-04 Thread Kirti Wankhede
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. Added APIs for pining and unpining pages to VFIO module. These calls back into backend iommu module to actually pin and

[PATCH v11 00/22] Add Mediated device support

2016-11-04 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

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

2016-11-04 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

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

2016-11-04 Thread Kirti Wankhede
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. Added APIs for pining and unpining pages to VFIO module. These calls back into backend iommu module to actually pin and

[PATCH v11 00/22] Add Mediated device support

2016-11-04 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

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

2016-11-04 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

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

2016-11-04 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 Change-Id: I8bdeb352bc8439b107ffd519480fd4dc238677f2 --- drivers/vfio/vfio.c | 34 +-

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

2016-11-04 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

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