[PATCH net v2 1/3] netvsc: fix rcu dereference warning from ethtool

2017-06-07 Thread Stephen Hemminger
The ethtool info command calls the netvsc get_sset_count with RTNL but not with RCU. Which causes warning: drivers/net/hyperv/netvsc_drv.c:1010 suspicious rcu_dereference_check() usage! Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/netvsc_drv.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH net v2 3/3] netvsc: move filter setting to rndis_device

2017-06-07 Thread Stephen Hemminger
The work queue and handling of network filter parameters should be in rndis_device. This gets rid of warning from RCU checks, eliminates a race and cleans up code. Signed-off-by: Stephen Hemminger --- v2 - instead of adding locking to do_set_mulitcast, move the workqueue to rndis portion of

[PATCH net v2 0/3] netvsc: bug fixes

2017-06-07 Thread Stephen Hemminger
These are bugfixes for netvsc driver in 4.12. Stephen Hemminger (3): netvsc: fix rcu dereference warning from ethtool netvsc: fix net poll mode netvsc: move filter setting to rndis_device drivers/net/hyperv/hyperv_net.h | 5 ++-- drivers/net/hyperv/netvsc_drv.c | 54 +-

[PATCH net v2 2/3] netvsc: fix net poll mode

2017-06-07 Thread Stephen Hemminger
The ndo_poll_controller function needs to schedule NAPI to pick up arriving packets and send completions. Otherwise no data will ever be received. For simple case of netconsole, it also will allow send completions to happen. Without this netpoll will eventually get stuck. Signed-off-by: Stephen H

Re: [PATCH v8 00/34] i.MX Media Driver

2017-06-07 Thread Steve Longerbeam
On 06/07/2017 12:02 PM, Hans Verkuil wrote: We're still waiting for an Ack for patch 02/34, right? Hi Hans, Yes still waiting for an ack for the imx-media bindings. Other than that everything is ready AFAICT. Agreed. Steve Regards, Hans On 07/06/17 20:33, Steve Longerbeam

Re: [PATCH v8 00/34] i.MX Media Driver

2017-06-07 Thread Hans Verkuil
We're still waiting for an Ack for patch 02/34, right? Other than that everything is ready AFAICT. Regards, Hans On 07/06/17 20:33, Steve Longerbeam wrote: > In version 8: > > - Switched to v4l2_fwnode APIs. > > - Always pass a valid CSI id to ipu_set_ic_src_mux() in imx-ic-prp, even

[PATCH v8 28/34] media: imx: csi: add frame skipping support

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel The CSI can skip any out of up to 6 input frames, allowing to reduce the frame rate at the output pads by small fractions. Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Signed-off-by: Russell King --- drivers/staging/media/imx/imx-media-csi.c | 167

[PATCH v8 34/34] ARM: imx_v6_v7_defconfig: Enable staging video4linux drivers

2017-06-07 Thread Steve Longerbeam
Enable i.MX v4l2 media staging driver. For video capture on i.MX, the video multiplexer subdev is required. On the SabreAuto, the ADV7180 video decoder is required along with i2c-mux-gpio. The Sabrelite and SabreSD require the OV5640 and the SabreLite requires PWM clocks for the OV5640. Increase m

[PATCH v8 13/34] ARM: dts: imx6-sabreauto: add pinctrl for gpt input capture

2017-06-07 Thread Steve Longerbeam
Add pinctrl groups for both GPT input capture channels. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 21dea5

[PATCH v8 23/34] media: imx: Add VDIC subdev driver

2017-06-07 Thread Steve Longerbeam
This is a media entity subdevice driver for the i.MX Video De-Interlacing or Combining Block. So far this entity does not implement the Combining function but only motion compensated deinterlacing. Video frames are received from the CSI and are routed to the IC PRPVF entity. Signed-off-by: Steve L

[PATCH v8 22/34] media: imx: Add CSI subdev driver

2017-06-07 Thread Steve Longerbeam
This is a media entity subdevice for the i.MX Camera Sensor Interface module. Signed-off-by: Steve Longerbeam - Added support for negotiation of frame intervals. Signed-off-by: Russell King - Fixed cropping rectangle negotiation at input and output pads. - Added support for /2 downscaling, if

[PATCH v8 19/34] media: Add i.MX media core driver

2017-06-07 Thread Steve Longerbeam
Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs. Signed-off-by: Philipp Zabel Add the bayer formats to imx-media's list of supported pixel and bus formats. Signed-off-by: Russell King --- Documentation/media/v4l

[PATCH v8 12/34] ARM: dts: imx6-sabreauto: add reset-gpios property for max7310_b

2017-06-07 Thread Steve Longerbeam
The reset pin to the port expander chip (MAX7310) is controlled by a gpio, so define a reset-gpios property to control it. There are three MAX7310's on the SabreAuto CPU card (max7310_[abc]), but all use the same pin for their reset. Since all can't acquire the same pin, assign it to max7310_b, tha

[PATCH v8 24/34] media: imx: Add IC subdev drivers

2017-06-07 Thread Steve Longerbeam
This is a set of three media entity subdevice drivers for the i.MX Image Converter: - Pre-process Router: Takes input frames from CSI0, CSI1, or VDIC. Two output pads enable either or both of the preprocess tasks below. If the input is from one of the CSIs, both proprocess task links can be

[PATCH v8 25/34] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-06-07 Thread Steve Longerbeam
Adds MIPI CSI-2 Receiver subdev driver. This subdev is required for sensors with a MIPI CSI2 interface. Signed-off-by: Steve Longerbeam - Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs. Signed-off-by: Philipp Zabel - Add the function csi2ipu_gasket_init() to initialize the gasket at

[PATCH v8 21/34] media: imx: Add Capture Device Interface

2017-06-07 Thread Steve Longerbeam
This is the capture device interface driver that provides the v4l2 user interface. Frames can be received from various sources: - directly from CSI for capturing unconverted images directly from camera sensors. - from the IC pre-process encode task. - from the IC pre-process viewfinder task.

[PATCH v8 17/34] [media] add Omnivision OV5640 sensor driver

2017-06-07 Thread Steve Longerbeam
This driver is based on ov5640_mipi.c from Freescale imx_3.10.17_1.0.0_beta branch, modified heavily to bring forward to latest interfaces and code cleanup. Signed-off-by: Steve Longerbeam Acked-by: Hans Verkuil --- drivers/media/i2c/Kconfig | 10 + drivers/media/i2c/Makefile |1 + drive

[PATCH v8 10/34] ARM: dts: imx6-sabresd: add OV5642 and OV5640 camera sensors

2017-06-07 Thread Steve Longerbeam
Enables the OV5642 parallel-bus sensor, and the OV5640 MIPI CSI-2 sensor. The OV5642 connects to the parallel-bus mux input port on ipu1_csi0_mux. The OV5640 connects to the input port on the MIPI CSI-2 receiver on mipi_csi. Until the OV5652 sensor module compatible with the SabreSD becomes avai

[PATCH v8 20/34] media: imx: Add a TODO file

2017-06-07 Thread Steve Longerbeam
Add a TODO file. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 drivers/staging/media/imx/TODO diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO new file mode 100644

[PATCH v8 33/34] media: imx: Drop warning upon multiple S_STREAM disable calls

2017-06-07 Thread Steve Longerbeam
From: Marek Vasut Calling S_STREAM OFF multiple times on a video device is valid, although dubious, practice. Instead of warning about it and setting stream count lower than zero, just ignore the subsequent S_STREAM calls and correct the stream count to zero. Signed-off-by: Marek Vasut --- dri

[PATCH v8 18/34] media: Add userspace header file for i.MX

2017-06-07 Thread Steve Longerbeam
This adds a header file for use by userspace programs wanting to interact with the i.MX media driver. It defines custom events and v4l2 controls for the i.MX v4l2 subdevices. Signed-off-by: Steve Longerbeam --- include/linux/imx-media.h | 29 + 1 file changed, 29 inse

[PATCH v8 32/34] media: imx: set and propagate default field, colorimetry

2017-06-07 Thread Steve Longerbeam
This patch adds a call to imx_media_fill_default_mbus_fields() in the *_try_fmt() functions at the sink pads, to set empty field order and colorimetry parameters. If the field order is set to ANY, choose the currently set field order at the sink pad. If the colorspace is set to DEFAULT, choose the

[PATCH v8 31/34] media: imx: capture: add frame sizes/interval enumeration

2017-06-07 Thread Steve Longerbeam
From: Russell King Add support for enumerating frame sizes and frame intervals from the first subdev via the V4L2 interfaces. Signed-off-by: Russell King Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-capture.c | 73 +++ 1 file changed, 73 inse

[PATCH v8 27/34] media: imx: csi: increase burst size for YUV formats

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel The IDMAC supports burst sizes of up to 32 pixels for interleaved YUV formats and up to 64 pixels for planar YUV formats. Signed-off-by: Philipp Zabel --- drivers/staging/media/imx/imx-media-csi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/driver

[PATCH v8 30/34] media: imx: csi: add frame size/interval enumeration

2017-06-07 Thread Steve Longerbeam
From: Russell King Add frame size and frame interval enumeration to CSI. CSI can downscale the image independently horizontally and vertically by a factor of two, which enumerates to four different frame sizes at the output pads. The input pad supports a range of frame sizes. CSI can also drop

[PATCH v8 15/34] add mux and video interface bridge entity functions

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel Add two new media entity function definitions for video multiplexers and video interface bridges. Signed-off-by: Philipp Zabel - renamed MEDIA_ENT_F_MUX to MEDIA_ENT_F_VID_MUX Signed-off-by: Steve Longerbeam Acked-by: Sakari Ailus --- Documentation/media/uapi/mediactl/m

[PATCH v8 29/34] media: imx: csi: add sink selection rectangles

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel Move the crop rectangle to the sink pad and add a sink compose rectangle to configure scaling. Also propagate rectangles from sink pad to crop rectangle, to compose rectangle, and to the source pads both in ACTIVE and TRY variants of set_fmt/selection, and initialize the defau

[PATCH v8 16/34] platform: add video-multiplexer subdevice driver

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel This driver can handle SoC internal and external video bus multiplexers, controlled by mux controllers provided by the mux controller framework, such as MMIO register bitfields or GPIOs. The subdevice passes through the mbus configuration of the active input to the output side

[PATCH v8 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-06-07 Thread Steve Longerbeam
Enables the ADV7180 decoder sensor. The ADV7180 connects to the parallel-bus mux input on ipu1_csi0_mux. The ADV7180 power pin is via max7310_b port expander. Signed-off-by: Steve Longerbeam - Use IRQ_TYPE_LEVEL_LOW instead of 0x8 for interrupt type for clarity. - For 8-bit parallel IPU1-CSI0 b

[PATCH v8 08/34] ARM: dts: imx6qdl-sabrelite: remove erratum ERR006687 workaround

2017-06-07 Thread Steve Longerbeam
There is a pin conflict with GPIO_6. This pin functions as a power input pin to the OV5642 camera sensor, but ENET uses it as the h/w workaround for erratum ERR006687, to wake-up the ARM cores on normal RX and TX packet done events. So we need to remove the h/w workaround to support the OV5642. The

[PATCH v8 11/34] ARM: dts: imx6-sabreauto: create i2cmux for i2c3

2017-06-07 Thread Steve Longerbeam
The sabreauto uses a steering pin to select between the SDA signal on i2c3 bus, and a data-in pin for an SPI NOR chip. Use i2cmux to control this steering pin. Idle state of the i2cmux selects SPI NOR. This is not a classic way to use i2cmux, since one side of the mux selects something other than a

[PATCH v8 09/34] ARM: dts: imx6-sabrelite: add OV5642 and OV5640 camera sensors

2017-06-07 Thread Steve Longerbeam
Adds the OV5642 parallel-bus sensor, and the OV5640 MIPI CSI-2 sensor. Both hang off the same i2c2 bus, so they require different (and non- default) i2c slave addresses. The OV5642 connects to the parallel-bus mux input port on ipu1_csi0_mux. The OV5640 connects to the input port on the MIPI CSI-

[PATCH v8 26/34] media: imx: csi: add support for bayer formats

2017-06-07 Thread Steve Longerbeam
From: Russell King Bayer formats must be treated as generic data and passthrough mode must be used. Add the correct setup for these formats. Signed-off-by: Russell King - added check to csi_link_validate() to verify that destination is IDMAC output pad when passthrough conditions exist: bay

[PATCH v8 07/34] ARM: dts: imx6qdl: add capture-subsystem device

2017-06-07 Thread Steve Longerbeam
Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6dl.dtsi | 5 + arch/arm/boot/dts/imx6q.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index 4049af7..8475e6c 100644 --- a/arch/arm/boot/dts/imx6dl.dtsi +++

[PATCH v8 05/34] ARM: dts: imx6qdl: Add compatible, clocks, irqs to MIPI CSI-2 node

2017-06-07 Thread Steve Longerbeam
Add to the MIPI CSI2 receiver node: compatible strings, interrupt sources, and clocks. Signed-off-by: Steve Longerbeam --- arch/arm/boot/dts/imx6qdl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 50534dd..dd99

[PATCH v8 06/34] ARM: dts: imx6qdl: Add video multiplexers, mipi_csi, and their connections

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel This patch adds the device tree graph connecting the input multiplexers to the IPU CSIs and the MIPI-CSI2 gasket on i.MX6. The MIPI_IPU multiplexers are added as children of the iomuxc-gpr syscon device node. On i.MX6Q/D two two-input multiplexers in front of IPU1 CSI0 and IPU

[PATCH v8 04/34] ARM: dts: imx6qdl: add multiplexer controls

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel The IOMUXC General Purpose Register space contains various bitfields that control video bus multiplexers. Describe them using a mmio-mux node. The placement of the IPU CSI video mux controls differs between i.MX6D/Q and i.MX6S/DL. Signed-off-by: Philipp Zabel --- arch/arm/b

[PATCH v8 03/34] [media] dt/bindings: Add bindings for OV5640

2017-06-07 Thread Steve Longerbeam
Add device tree binding documentation for the OV5640 camera sensor. Signed-off-by: Steve Longerbeam Acked-by: Rob Herring --- .../devicetree/bindings/media/i2c/ov5640.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/me

[PATCH v8 02/34] [media] dt-bindings: Add bindings for i.MX media driver

2017-06-07 Thread Steve Longerbeam
Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam --- Documentation/devicetree/bindings/media/imx.txt | 47 + 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/imx.txt diff --git a/Documentati

[PATCH v8 00/34] i.MX Media Driver

2017-06-07 Thread Steve Longerbeam
In version 8: - Switched to v4l2_fwnode APIs. - Always pass a valid CSI id to ipu_set_ic_src_mux() in imx-ic-prp, even if the IC is receiving from the VDIC. The reason is due to a bug in the i.MX6 reference manual: from experiment it is determined that the CSI id select bit in IPU_CONF regi

[PATCH v8 01/34] dt-bindings: Add bindings for video-multiplexer device

2017-06-07 Thread Steve Longerbeam
From: Philipp Zabel Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Sakari Ailus Reviewed-by: Sebastian Reichel Acked-by: Rob Herring Acked-by: Pavel Machek --- .../devicetree/

[PATCH] Staging: comedi: ni_labpc_regs: fixed a block comment alignment issue

2017-06-07 Thread Amisha Singh
Fixed a coding style issue. Signed-off-by: Amisha Singh --- drivers/staging/comedi/drivers/ni_labpc_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_labpc_regs.h b/drivers/staging/comedi/drivers/ni_labpc_regs.h index 8c52179..6003e9d 1

Re: [PATCH v4 10/10] tracing/hyper-v: trace hyperv_mmu_flush_tlb_others()

2017-06-07 Thread Vitaly Kuznetsov
Steven Rostedt writes: >> >> I'm pretty sure I tested tracing this even before sending v2 of this >> series, I'll retest before sending v7. > > Even if it does work, it's still fragile as it uses an > no-longer-supported framework. > I hope I fixed it in v7 of my patchset, it would be great if

[patch] staging: speakup: migrate bns to tty

2017-06-07 Thread Okash Khawaja
Migration of bns was missed out in the patch https://patchwork.kernel.org/patch/9727725/. This patch does it by updating relevant function pointers, just like in the patch linked above. Signed-off-by: Okash Khawaja Reviewed-by: Samuel Thibault --- drivers/staging/speakup/speakup_bns.c |8 +

Re: [PATCH 0/3] move visorbus out of staging to drivers/virt/visorbus

2017-06-07 Thread Christoph Hellwig
On Tue, Jun 06, 2017 at 04:49:09PM +0200, Greg KH wrote: > On Mon, Jun 05, 2017 at 04:07:29PM -0400, David Kershner wrote: > > This patchset moves drivers/staging/unisys/include to > > include/linux/visorbus, and moves drivers/staging/unisys/visorbus to > > drivers/virt/visorbus. > > Um, are you t

Re: [PATCH 1/3] include: linux: visorbus: Add visorbus to include/linux directory

2017-06-07 Thread Christoph Hellwig
Please don't send any move patches but the actual code added to the kernel proper. And based on what's in linux-next I don't think this giant pile of junk is anywhere near mergeable. ___ devel mailing list [email protected] http://driverdev.li

Re: [PATCH 0/4] staging: speakup: fix code style

2017-06-07 Thread Okash Khawaja
Hi, On Mon, Jun 05, 2017 at 11:42:59PM -0400, Bo YU wrote: > As checkpatch.pl reported, i fixed these complaint one by one. Maybe > patch 04 depend on patch 02. Thanks for the patches :) I've reviewed them all Okash ___ devel mailing list de...@linuxdr

Re: [PATCH v4 10/10] tracing/hyper-v: trace hyperv_mmu_flush_tlb_others()

2017-06-07 Thread Steven Rostedt
On Mon, 05 Jun 2017 18:19:08 +0200 Vitaly Kuznetsov wrote: > Steven Rostedt writes: > > > On Wed, 24 May 2017 14:04:05 +0200 > > Vitaly Kuznetsov wrote: > > > >> Add Hyper-V tracing subsystem and trace hyperv_mmu_flush_tlb_others(). > >> Tracing is done the same way we do xen_mmu_flush_tlb_o

Re: [PATCH 4/4] staging: speakup: alignment match open parens

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:44:40PM -0400, Bo YU wrote: > I have aligned argument with parenthesis, so checkpatch no check also. > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

Re: [PATCH 3/4] staging: speakup: in serialio.c no over 80 chars long

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:44:26PM -0400, Bo YU wrote: > Fixed the checkpatch.pl warning: > > WARNING: line over 80 characters > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > >

Re: [PATCH 2/4] staging: speakup: add a space around '|'

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:44:11PM -0400, Bo YU wrote: > Add a space around logical symbol '|' to wipe out checkpatch check > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH 1/4] staging: speakup: add a missing blank line after declaration

2017-06-07 Thread Okash Khawaja
On Mon, Jun 05, 2017 at 11:43:55PM -0400, Bo YU wrote: > Fixed checkpatch warning by adding a blank line after declare > expression > > Signed-off-by: Bo YU Reviewed-by: Okash Khawaja > --- > drivers/staging/speakup/serialio.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/drive

[PATCH] Staging: media: davinci_vpfe Fix resource leaks in error paths.

2017-06-07 Thread Arvind Yadav
Free memory, if ipipe_s_config and ipipe_g_config are not successful. Signed-off-by: Arvind Yadav --- drivers/staging/media/davinci_vpfe/dm365_ipipe.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipe.c b/drivers/s

Re: [PATCH v7 09/10] x86/hyper-v: support extended CPU ranges for TLB flush hypercalls

2017-06-07 Thread Andy Shevchenko
On Wed, Jun 7, 2017 at 2:01 PM, Vitaly Kuznetsov wrote: > Hyper-V hosts may support more than 64 vCPUs, we need to use > HVCALL_FLUSH_VIRTUAL_ADDRESS_SPACE_EX/LIST_EX hypercalls in this > case. > +/* HvFlushVirtualAddressSpaceEx, HvFlushVirtualAddressListEx hypercalls */ > +struct hv_flush_pcpu_e

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-07 Thread Sakari Ailus
On Sat, Jun 03, 2017 at 09:46:36PM -0700, Steve Longerbeam wrote: > > > On 06/03/2017 02:57 PM, Sakari Ailus wrote: > >On Sat, Jun 03, 2017 at 09:51:39PM +0200, Pavel Machek wrote: > >>Hi! > >> > >>+ /* Auto/manual exposure */ > >>+ ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-07 Thread Sakari Ailus
On Sun, Jun 04, 2017 at 11:00:14AM -0700, Steve Longerbeam wrote: > > > On 06/03/2017 11:02 AM, Steve Longerbeam wrote: > >Hi Sakari, > > > > > >On 05/29/2017 11:56 PM, Sakari Ailus wrote: > >>Hi Steve, > >> > >>On Mon, May 29, 2017 at 02:50:34PM -0700, Steve Longerbeam wrote: > > > >>>

[PATCH v7 10/10] tracing/hyper-v: trace hyperv_mmu_flush_tlb_others()

2017-06-07 Thread Vitaly Kuznetsov
Add Hyper-V tracing subsystem and trace hyperv_mmu_flush_tlb_others(). Tracing is done the same way we do xen_mmu_flush_tlb_others(). Signed-off-by: Vitaly Kuznetsov --- Changes since v6: - Drop DEFINE_TRACE() from mmu.c, change tracing magic a bit to keep things compiling (steal the idea from

[PATCH v7 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-06-07 Thread Vitaly Kuznetsov
Hyper-V host can suggest us to use hypercall for doing remote TLB flush, this is supposed to work faster than IPIs. Implementation details: to do HvFlushVirtualAddress{Space,List} hypercalls we need to put the input somewhere in memory and we don't really want to have memory allocation on each cal

[PATCH v7 06/10] x86/hyper-v: implement rep hypercalls

2017-06-07 Thread Vitaly Kuznetsov
Rep hypercalls are normal hypercalls which perform multiple actions at once. Hyper-V guarantees to return exectution to the caller in not more than 50us and the caller needs to use hypercall continuation. Touch NMI watchdog between hypercall invocations. This is going to be used for HvFlushVirtual

[PATCH v7 09/10] x86/hyper-v: support extended CPU ranges for TLB flush hypercalls

2017-06-07 Thread Vitaly Kuznetsov
Hyper-V hosts may support more than 64 vCPUs, we need to use HVCALL_FLUSH_VIRTUAL_ADDRESS_SPACE_EX/LIST_EX hypercalls in this case. Signed-off-by: Vitaly Kuznetsov --- Changes since v6: - Fix a bug in cpumask_to_vp_set() by setting valid_bank_mask right, add a check for > 64 banks and fall back

[PATCH v7 07/10] hyper-v: globalize vp_index

2017-06-07 Thread Vitaly Kuznetsov
To support implementing remote TLB flushing on Hyper-V with a hypercall we need to make vp_index available outside of vmbus module. Rename and globalize. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Andy Shevchenko --- arch/x86/hyperv/hv_init.c | 34 +- arc

[PATCH v7 02/10] x86/hyper-v: stash the max number of virtual/logical processor

2017-06-07 Thread Vitaly Kuznetsov
Max virtual processor will be needed for 'extended' hypercalls supporting more than 64 vCPUs. While on it, unify on 'Hyper-V' in mshyperv.c as we currently have a mix, report acquired misc features as well. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Andy Shevchenko --- arch/x86/include/asm/ms

[PATCH v7 04/10] x86/hyper-v: fast hypercall implementation

2017-06-07 Thread Vitaly Kuznetsov
Hyper-V supports 'fast' hypercalls when all parameters are passed through registers. Implement an inline version of a simpliest of these calls: hypercall with one 8-byte input and no output. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Andy Shevchenko --- arch/x86/include/asm/mshyperv.h | 34 ++

[PATCH v7 03/10] x86/hyper-v: make hv_do_hypercall() inline

2017-06-07 Thread Vitaly Kuznetsov
We have only three call sites for hv_do_hypercall() and we're going to change HVCALL_SIGNAL_EVENT to doing fast hypercall so we can inline this function for optimization. Hyper-V top level functional specification states that r9-r11 registers and flags may be clobbered by the hypervisor during hyp

[PATCH v7 05/10] hyper-v: use fast hypercall for HVCALL_SIGNAL_EVENT

2017-06-07 Thread Vitaly Kuznetsov
We need to pass only 8 bytes of input for HvSignalEvent which makes it a perfect fit for fast hypercall. hv_input_signal_event_buffer is not needed any more and hv_input_signal_event is converted to union for convenience. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Andy Shevchenko --- drivers/

[PATCH v7 01/10] x86/hyper-v: include hyperv/ only when CONFIG_HYPERV is set

2017-06-07 Thread Vitaly Kuznetsov
Code is arch/x86/hyperv/ is only needed when CONFIG_HYPERV is set, the 'basic' support and detection lives in arch/x86/kernel/cpu/mshyperv.c which is included when CONFIG_HYPERVISOR_GUEST is set. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Andy Shevchenko --- arch/x86/Kbuild |

[PATCH v7 00/10] Hyper-V: paravirtualized remote TLB flushing and hypercall improvements

2017-06-07 Thread Vitaly Kuznetsov
Changes since v6: - Fix a bug in cpumask_to_vp_set() by setting valid_bank_mask right, add a check for > 64 banks and fall back to HV_FLUSH_ALL_PROCESSORS [Jork Loeser] - Drop DEFINE_TRACE() from mmu.c, change tracing magic a bit to keep things compiling (steal the idea from x86/include/asm/t

[PATCH] Staging: wlan-ng: Fix sparse warnings by using appropriate endian types

2017-06-07 Thread Antoine BLIN
From: Antoine Fix the following sparse endianness warnings: drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16 drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __le16 drivers/staging/wlan-ng/prism2sta.c:1949:17: warning: cast to restricted __l

Re: [PATCH] Drivers: vt6655 - style fix

2017-06-07 Thread Greg KH
On Wed, Jun 07, 2017 at 06:29:06PM +1200, Derek Robson wrote: > Fixed "function definition" issues What exactly do you mean by this? Please be specific. thanks, greg k-h ___ devel mailing list [email protected] http://driverdev.linuxdriverp