Re: [PATCH] kvm: better MWAIT emulation for guests

2017-03-13 Thread Wanpeng Li
Cc Peterz, 2017-03-10 9:12 GMT+08:00 Michael S. Tsirkin : > On Thu, Mar 09, 2017 at 07:51:27PM -0500, Gabriel L. Somlo wrote: >> On Fri, Mar 10, 2017 at 12:29:31AM +0200, Michael S. Tsirkin wrote: >> > Some guests call mwait without checking the cpu flags. We currently >> > emulate that as a NOP b

Error in make linkcheckdocs

2017-03-13 Thread Remy Leone
Hello, I've noticed that this bug started to happen : When I try to launch make linkcheckdocs, the build block and cannot either fail or return. When launching the command : sphinx-build . output -b linkcheck -vvv from the Documentation directory, I get the following error: SystemMessage:

Re: Error in make linkcheckdocs

2017-03-13 Thread Jani Nikula
On Mon, 13 Mar 2017, Remy Leone wrote: > Hello, > > I've noticed that this bug started to happen : Please always try to identify the commit where you see this fails, and the commit where this worked. And from there on, 'git bisect' is your friend. > When I try to launch make linkcheckdocs, the b

Re: [PATCH v3 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-13 Thread Jose Abreu
Hi Neil, On 09-03-2017 14:27, Jose Abreu wrote: > Hi Neil, > > > On 08-03-2017 12:12, Neil Armstrong wrote: >> Hi Jose, >> >> It seems here that we only have the RGB444<->YUV444 8bit tables, from the >> Amlogic >> source I have the following for 10bit, 12bit and 16bit for itu601 : >> >> static c

[PATCH 0/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Tamara Diaconita
Fix typos in admin-guide directory to make documentation more readable. Typos found with 'aspell -c ' command. Tamara Diaconita (3): Documentation: admin-guide: Fix typos Documentation: admin-guide: Fix typos Documentation: admin-guide: Fix typos Documentation/admin-guide/kernel-parameters

[PATCH 1/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Tamara Diaconita
Fix typos in kernel-parameters.rst file. Signed-off-by: Tamara Diaconita --- Documentation/admin-guide/kernel-parameters.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.rst b/Documentation/admin-guide/kernel-parameters.rst

[PATCH 2/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Tamara Diaconita
Fix typos in ras.rst file. Signed-off-by: Tamara Diaconita --- Documentation/admin-guide/ras.rst | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/admin-guide/ras.rst b/Documentation/admin-guide/ras.rst index 1b90c6f..2656065 100644 --- a/Documenta

[PATCH 3/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Tamara Diaconita
Fix typos in tainted-kernels.rst file. Signed-off-by: Tamara Diaconita --- Documentation/admin-guide/tainted-kernels.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/tainted-kernels.rst b/Documentation/admin-guide/tainted-kernels.rst index 1df03b

Re: [PATCH 1/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Jani Nikula
On Mon, 13 Mar 2017, Tamara Diaconita wrote: > -.. include:: kernel-parameters.txt > +.. include:: kernel-parameters.TNT Huh? BR, Jani. -- Jani Nikula, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majo

Re: [PATCH 1/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Jonathan Corbet
On Mon, 13 Mar 2017 13:44:56 +0200 Tamara Diaconita wrote: > Fix typos in kernel-parameters.rst file. So your fixes are generally good, but... > > -.. include:: kernel-parameters.txt > +.. include:: kernel-parameters.TNT > :literal: ...this one show a bit of inattention to the end result

Re: [PATCH 2/3] Documentation: admin-guide: Fix typos

2017-03-13 Thread Jonathan Corbet
On Mon, 13 Mar 2017 13:47:39 +0200 Tamara Diaconita wrote: This set is good, but with one quibble: > @@ -1048,7 +1048,7 @@ found on newer Intel CPUs, such as ``i7core_edac``, > ``sb_edac`` and > echo 2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm > echo 1 >

[PATCH v4 09/23] PCI: dwc: designware: Add EP mode support

2017-03-13 Thread Kishon Vijay Abraham I
Add endpoint mode support to designware driver. This uses the EP Core layer introduced recently to add endpoint mode support. *Any* function driver can now use this designware device in order to achieve the EP functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig

[GIT PULL 00/23] PCI: Support for configurable PCI endpoint

2017-03-13 Thread Kishon Vijay Abraham I
Please find the pull request for PCI endpoint support below. I've also included all the history here. Changes from v3: *) fixed a typo and adapted to https://lkml.org/lkml/2017/3/13/562. Changes from v2: *) changed the configfs structure as suggested by Christoph Hellwig. With this change the

[PATCH v4 08/23] Documentation: PCI: Add binding documentation for pci-test endpoint function

2017-03-13 Thread Kishon Vijay Abraham I
Add binding documentation for pci-test endpoint function that helps in adding and configuring pci-test endpoint function. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 ++ .../PCI/endpoint/function/binding/pci-test.txt | 17 ++

[PATCH v4 01/23] PCI: endpoint: Add EP core layer to enable EP controller and EP functions

2017-03-13 Thread Kishon Vijay Abraham I
Introduce a new EP core layer in order to support endpoint functions in linux kernel. This comprises of EPC library (Endpoint Controller Library) and EPF library (Endpoint Function Library). EPC library implements functions that is specific to an endpoint controller and EPF library implements funct

[PATCH v4 23/23] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-03-13 Thread Kishon Vijay Abraham I
The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should be set to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO in RC mode. However in EP mode, the host system is not able to access the MEMSPACE and setting the CLKSTCTRL to SW_WKUP fixes it. Acked-by: Tony Lindgren

[PATCH v4 12/23] PCI: dwc: dra7xx: Add EP mode support

2017-03-13 Thread Kishon Vijay Abraham I
The PCIe controller integrated in dra7xx SoCs is capable of operating in endpoint mode. Add endpoint mode support to dra7xx driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 31 +- drivers/pci/dwc/Makefile | 4 +- drivers/pci/dwc/pci-dra7xx.c

[PATCH v4 21/23] Documentation: PCI: Add userguide for PCI endpoint test function

2017-03-13 Thread Kishon Vijay Abraham I
Add documentation to help users use pci-epf-test function driver and pci_endpoint_test host driver for testing PCI. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX| 2 + Documentation/PCI/endpoint/pci-test-howto.txt | 179 ++ 2 f

[PATCH v4 17/23] misc: Add host side pci driver for pci test function device

2017-03-13 Thread Kishon Vijay Abraham I
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/Kconfig

[PATCH v4 14/23] PCI: dwc: dra7xx: Workaround for errata id i870

2017-03-13 Thread Kishon Vijay Abraham I
According to errata i870, access to the PCIe slave port that are not 32-bit aligned will result in incorrect mapping to TLP Address and Byte enable fields. Accessing non 32-bit aligned data causes incorrect data in the target buffer if memcpy is used. Implement the workaround for this errata here.

[PATCH v4 22/23] MAINTAINERS: add PCI EP maintainer

2017-03-13 Thread Kishon Vijay Abraham I
Add maintainer for the newly introduced PCI EP framework. Signed-off-by: Kishon Vijay Abraham I --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index c265a5fe4848..3c1b947811e2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9581,6 +9581,15 @

[PATCH v4 20/23] tools: PCI: Add sample test script to invoke pcitest

2017-03-13 Thread Kishon Vijay Abraham I
Add a simple test script that invokes the pcitest userspace tool to perform all the PCI endpoint tests (BAR tests, interrupt tests, read tests, write tests and copy tests). Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.sh | 56 1

[PATCH v4 16/23] PCI: Add device IDs for DRA74x and DRA72x

2017-03-13 Thread Kishon Vijay Abraham I
Add device IDs for DRA74x and DRA72x devices. These devices have configurable PCI endpoint. Signed-off-by: Kishon Vijay Abraham I --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index a4f77feecbb0..5f6b71d15393 1

[PATCH v4 15/23] dt-bindings: PCI: dra7xx: Add dt bindings to enable unaligned access

2017-03-13 Thread Kishon Vijay Abraham I
Update device tree binding documentation of TI's dra7xx PCI controller to include property for enabling unaligned mem access. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetr

[PATCH v4 18/23] Documentation: misc-devices: Add Documentation for pci-endpoint-test driver

2017-03-13 Thread Kishon Vijay Abraham I
Add Documentation for pci-endpoint-test driver. Signed-off-by: Kishon Vijay Abraham I --- Documentation/misc-devices/pci-endpoint-test.txt | 35 1 file changed, 35 insertions(+) create mode 100644 Documentation/misc-devices/pci-endpoint-test.txt diff --git a/Documentat

[PATCH v4 13/23] dt-bindings: PCI: dra7xx: Add dt bindings for pci dra7xx EP mode

2017-03-13 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci dra7xx EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/pci/ti-pci.txt | 37 +++- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/b

[PATCH v4 19/23] tools: PCI: Add a userspace tool to test PCI endpoint

2017-03-13 Thread Kishon Vijay Abraham I
Add a userspace tool to invoke the ioctls exposed by the PCI endpoint test driver to perform various PCI tests. Signed-off-by: Kishon Vijay Abraham I --- tools/pci/pcitest.c | 186 1 file changed, 186 insertions(+) create mode 100644 tools/pc

[PATCH v4 11/23] PCI: dwc: dra7xx: Facilitate wrapper and msi interrupts to be enabled independently

2017-03-13 Thread Kishon Vijay Abraham I
No functional change. Split dra7xx_pcie_enable_interrupts into dra7xx_pcie_enable_wrapper_interrupts and dra7xx_pcie_enable_msi_interrupts so that wrapper interrupts and msi interrupts can be enabled independently. This is in preparation for adding EP mode support to dra7xx driver since EP mode doe

[PATCH v4 06/23] Documentation: PCI: Add specification for the *pci test* function device

2017-03-13 Thread Kishon Vijay Abraham I
Add specification for the *pci test* virtual function device. The endpoint function driver and the host pci driver should be created based on this specification. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoint/pci-test

[PATCH v4 02/23] Documentation: PCI: Guide to use PCI Endpoint Core Layer

2017-03-13 Thread Kishon Vijay Abraham I
Add Documentation to help users use endpoint library to enable endpoint mode in the PCI controller and add new PCI endpoint functions. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoint/pci-endpoint.txt | 215

[PATCH v4 04/23] Documentation: PCI: Guide to use pci endpoint configfs

2017-03-13 Thread Kishon Vijay Abraham I
Add Documentation to help users use pci endpoint to configure pci endpoint function and to bind the endpoint function with endpoint controller. Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/00-INDEX | 2 + Documentation/PCI/endpoint/pci-endpoint-cfs.txt | 105

[PATCH v4 10/23] dt-bindings: PCI: Add dt bindings for pci designware EP mode

2017-03-13 Thread Kishon Vijay Abraham I
Add device tree binding documentation for pci designware EP mode. Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/pci/designware-pcie.txt| 26 +++--- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetr

[PATCH v4 05/23] PCI: endpoint: Create configfs entry for EPC device and EPF driver

2017-03-13 Thread Kishon Vijay Abraham I
Invoke API's provided by pci-ep-cfs to create configfs entry for every EPC device and EPF driver to help users in creating EPF device and binding the EPF device to the EPC device. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epc-core.c | 4 drivers/pci/endpoint/pci-epf

[PATCH v4 03/23] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-03-13 Thread Kishon Vijay Abraham I
Introduce a new configfs entry to configure the EP function (like configuring the standard configuration header entries) and to bind the EP function with EP controller. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig | 9 + drivers/pci/endpoint/Makefile | 1 +

[PATCH v4 07/23] PCI: endpoint: functions: Add an EP function to test PCI

2017-03-13 Thread Kishon Vijay Abraham I
Adds a new endpoint function driver (to program the virtual test device) making use of the EP-core library. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/Kconfig | 2 + drivers/pci/endpoint/Makefile | 2 +- drivers/pci/endpoint/functions/Kcon

Re: [PATCH] kvm: better MWAIT emulation for guests

2017-03-13 Thread Radim Krčmář
2017-03-10 00:29+0200, Michael S. Tsirkin: > Some guests call mwait without checking the cpu flags. We currently > emulate that as a NOP but on VMX we can do better: let guest stop the > CPU until timer or IPI. CPU will be busy but that isn't any worse than > a NOP emulation. > > Note that mwait

Re: [PATCH] kvm: better MWAIT emulation for guests

2017-03-13 Thread Michael S. Tsirkin
On Mon, Mar 13, 2017 at 04:46:20PM +0100, Radim Krčmář wrote: > 2017-03-10 00:29+0200, Michael S. Tsirkin: > > Some guests call mwait without checking the cpu flags. We currently > > emulate that as a NOP but on VMX we can do better: let guest stop the > > CPU until timer or IPI. CPU will be busy

[PATCH v2] kvm: better MWAIT emulation for guests

2017-03-13 Thread Michael S. Tsirkin
Guests running Mac OS 5, 6, and 7 (Leopard through Lion) have a problem: unless explicitly provided with kernel command line argument "idlehalt=0" they'd implicitly assume MONITOR and MWAIT availability, without checking CPUID. We currently emulate that as a NOP but on VMX we can do better: let gu

Re: [PATCH] [PATCH v6] docs-rst: automatically convert Graphviz and SVG images

2017-03-13 Thread Daniel Vetter
On Thu, Mar 09, 2017 at 06:48:29PM +0100, Daniel Vetter wrote: > On Thu, Mar 09, 2017 at 03:02:49AM -0700, Jonathan Corbet wrote: > > On Mon, 6 Mar 2017 14:09:27 +0100 > > Markus Heiser wrote: > > > > > This patch brings scalable figure, image handling and a concept to > > > embed *render* marku

Re: [PATCH] kvm: better MWAIT emulation for guests

2017-03-13 Thread Radim Krčmář
2017-03-13 18:08+0200, Michael S. Tsirkin: > On Mon, Mar 13, 2017 at 04:46:20PM +0100, Radim Krčmář wrote: >> 2017-03-10 00:29+0200, Michael S. Tsirkin: >> > Some guests call mwait without checking the cpu flags. We currently >> > emulate that as a NOP but on VMX we can do better: let guest stop t

Re: [PATCH] kvm: better MWAIT emulation for guests

2017-03-13 Thread Michael S. Tsirkin
On Mon, Mar 13, 2017 at 08:39:11PM +0100, Radim Krčmář wrote: > 2017-03-13 18:08+0200, Michael S. Tsirkin: > > On Mon, Mar 13, 2017 at 04:46:20PM +0100, Radim Krčmář wrote: > >> 2017-03-10 00:29+0200, Michael S. Tsirkin: > >> > Some guests call mwait without checking the cpu flags. We currently >

[PATCH v5] DM: dm-inplace-compress: inplace compressed DM target

2017-03-13 Thread Ram Pai
This patch provides a generic device-mapper compression device. Originally written by Shaohua Li. https://www.redhat.com/archives/dm-devel/2013-December/msg00143.html I have optimized and hardened the code. I have not received any negative comments till now. Feel confident with the code

[PATCH v5 1/1] DM: inplace compressed DM target

2017-03-13 Thread Ram Pai
This is a simple DM target supporting inplace compression. Its best suited for SSD. The underlying disk must support 512B sector size, the target only supports 4k sector size. Disk layout: |super|...meta...|..data...| Store unit is 4k (a block). Super is 1 block, which stores meta and data size

Re: [PATCH] kvm: better MWAIT emulation for guests

2017-03-13 Thread Radim Krčmář
2017-03-13 22:03+0200, Michael S. Tsirkin: > On Mon, Mar 13, 2017 at 08:39:11PM +0100, Radim Krčmář wrote: > > 2017-03-13 18:08+0200, Michael S. Tsirkin: > > > On Mon, Mar 13, 2017 at 04:46:20PM +0100, Radim Krčmář wrote: >> >> What about keeping just the last hunk to improve OS X, for now? >> > >

Re: [PATCH] [PATCH v6] docs-rst: automatically convert Graphviz and SVG images

2017-03-13 Thread Jonathan Corbet
On Mon, 13 Mar 2017 19:16:54 +0100 Daniel Vetter wrote: > > Awesome! Can you pls send me/dri-devel a pull request with a stable tag > > for drm-misc, so that I can apply all the drm diagram patches? > > Yes I'm annoying, but ping about the stable tag/pull request, so I can > vacuum up the drm

Re: [PATCH] docs-rst: Don't use explicit Makefile rules to build SVG and DOT files

2017-03-13 Thread Jonathan Corbet
On Thu, 9 Mar 2017 15:14:52 -0300 Mauro Carvalho Chehab wrote: > Now that we have an extension to handle images, use it. Applied, finally - thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordomo i

Re: [PATCH] cpufreq: User/admin documentation update and consolidation

2017-03-13 Thread Rafael J. Wysocki
On Monday, March 13, 2017 04:54:38 PM Jonathan Corbet wrote: > On Thu, 09 Mar 2017 16:28:32 +0100 > "Rafael J. Wysocki" wrote: > > > The user/admin documentation of cpufreq is badly outdated. It > > conains stale and/or inaccurate information along with things > > that are not particularly usefu

Re: [PATCH] cpufreq: User/admin documentation update and consolidation

2017-03-13 Thread Jonathan Corbet
On Mon, 13 Mar 2017 23:59:57 +0100 "Rafael J. Wysocki" wrote: > Well, to be honest, I downloaded the previous iteration from Patchwork and > I though it would apply, so I didn't check. Sorry about that. > > The one below applies for me with "git am" on top of 4.11-rc2. Works for me too. Now a

Re: [PATCH 1/4] Documentation: hid: fix path to input bus definitions

2017-03-13 Thread Jonathan Corbet
On Sun, 12 Mar 2017 12:54:21 +0100 Martin Kepplinger wrote: > The UAPI header split failed to update the documentation here; fix things > accordingly. I've applied all four to the docs tree, thanks. jon -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a mes

[PATCH v3] kvm: better MWAIT emulation for guests

2017-03-13 Thread Michael S. Tsirkin
Guests running Mac OS 5, 6, and 7 (Leopard through Lion) have a problem: unless explicitly provided with kernel command line argument "idlehalt=0" they'd implicitly assume MONITOR and MWAIT availability, without checking CPUID. We currently emulate that as a NOP but on VMX we can do better: let gu