Re: [PATCH v7 3/3] x86: Make the GDT remapping read-only on 64-bit

2017-03-14 Thread H. Peter Anvin
,"Luis R . Rodriguez" ,Stanislaw Gruszka ,Peter Zijlstra ,Josh Poimboeuf ,Vitaly Kuznetsov ,Tim Chen ,Joerg Roedel

Re: [PATCH v7 3/3] x86: Make the GDT remapping read-only on 64-bit

2017-03-14 Thread Pavel Machek
On Tue 2017-03-14 10:05:08, Thomas Garnier wrote: > This patch makes the GDT remapped pages read-only to prevent corruption. > This change is done only on 64-bit. > > The native_load_tr_desc function was adapted to correctly handle a > read-only GDT. The LTR instruction always writes to the GDT

[PATCH linux v9 0/5] drivers: hwmon: Add On-Chip Controller driver

2017-03-14 Thread Eddie James
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The

[PATCH linux v9 1/5] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-03-14 Thread Eddie James
From: "Edward A. James" Add core support for polling the OCC for it's sensor data and parsing that data into sensor-specific information. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ| 42

[PATCH linux v9 2/5] hwmon: occ: Add sysfs interface

2017-03-14 Thread Eddie James
From: "Edward A. James" Add a generic mechanism to expose the sensors provided by the OCC in sysfs. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ | 62 +++

[PATCH linux v9 5/5] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-03-14 Thread Eddie James
From: "Edward A. James" Add code to tie the hwmon sysfs code and the POWER8 OCC code together, as well as probe the entire driver from the I2C bus. I2C is the communication method between the BMC and the P8 OCC. Signed-off-by: Edward A. James

[PATCH linux v9 4/5] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-03-14 Thread Eddie James
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER8 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James

[PATCH linux v9 3/5] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-03-14 Thread Eddie James
From: "Edward A. James" Add functions to send SCOM operations over I2C bus. The BMC can communicate with the Power8 host processor over I2C, but needs to use SCOM operations in order to access the OCC register space. Signed-off-by: Edward A. James

Re: [PATCH 2/2] perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Mark Rutland
On Tue, Mar 14, 2017 at 11:06:52AM -0700, Hoan Tran wrote: > This patch adds support for SoC-wide (AKA uncore) Performance Monitoring > Unit in the next generation of X-Gene SoC. > > Signed-off-by: Hoan Tran > --- > drivers/perf/xgene_pmu.c | 645 >

Re: [PATCH 1/2] Documentation: perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Mark Rutland
On Tue, Mar 14, 2017 at 11:06:51AM -0700, Hoan Tran wrote: > This patch adds support for SoC-wide (AKA uncore) Performance Monitoring > Unit in the next generation of X-Gene SoC. It adds a description, certainly. > > Signed-off-by: Hoan Tran > --- >

[PATCH 0/2] perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Hoan Tran
This patch set adds support for SoC-wide (AKA uncore) Performance Monitoring Unit in the next generation of X-Gene SoC. Hoan Tran (2): Documentation: perf: xgene: Add support for SoC PMU of next generation of X-Gene perf: xgene: Add support for SoC PMU of next generation of X-Gene

[PATCH 1/2] Documentation: perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Hoan Tran
This patch adds support for SoC-wide (AKA uncore) Performance Monitoring Unit in the next generation of X-Gene SoC. Signed-off-by: Hoan Tran --- Documentation/perf/xgene-pmu.txt | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[PATCH 2/2] perf: xgene: Add support for SoC PMU of next generation of X-Gene

2017-03-14 Thread Hoan Tran
This patch adds support for SoC-wide (AKA uncore) Performance Monitoring Unit in the next generation of X-Gene SoC. Signed-off-by: Hoan Tran --- drivers/perf/xgene_pmu.c | 645 ++- 1 file changed, 575 insertions(+), 70 deletions(-)

[PATCH v7 2/3] x86: Remap GDT tables in the Fixmap section

2017-03-14 Thread Thomas Garnier
Each processor holds a GDT in its per-cpu structure. The sgdt instruction gives the base address of the current GDT. This address can be used to bypass KASLR memory randomization. With another bug, an attacker could target other per-cpu structures or deduce the base of the main memory section

[PATCH v7 3/3] x86: Make the GDT remapping read-only on 64-bit

2017-03-14 Thread Thomas Garnier
This patch makes the GDT remapped pages read-only to prevent corruption. This change is done only on 64-bit. The native_load_tr_desc function was adapted to correctly handle a read-only GDT. The LTR instruction always writes to the GDT TSS entry. This generates a page fault if the GDT is

[PATCH v7 1/3] x86/mm: Adapt MODULES_END based on Fixmap section size

2017-03-14 Thread Thomas Garnier
This patch aligns MODULES_END to the beginning of the Fixmap section. It optimizes the space available for both sections. The address is pre-computed based on the number of pages required by the Fixmap section. It will allow GDT remapping in the Fixmap section. The current MODULES_END static

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

2017-03-14 Thread Michael S. Tsirkin
On Tue, Mar 14, 2017 at 02:58:24PM +0100, Radim Krčmář wrote: > 2017-03-14 01:44+0200, 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

Re: [PATCH 6/6] drm/doc: atomic overview, with graph

2017-03-14 Thread Daniel Vetter
On Thu, Mar 02, 2017 at 12:24:25PM -0300, Gabriel Krisman Bertazi wrote: > Daniel Vetter writes: > > > I want to split up a few more things and document some details better > > (like how exactly to subclass drm_atomic_state). And maybe also split > > up the helpers a bit

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

2017-03-14 Thread Daniel Vetter
On Mon, Mar 13, 2017 at 04:41:08PM -0600, Jonathan Corbet wrote: > 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? > >

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

2017-03-14 Thread Radim Krčmář
2017-03-14 01:44+0200, 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

Re: [PATCH] Documentation: x86: Fix typos

2017-03-14 Thread Jonathan Corbet
On Tue, 14 Mar 2017 10:39:02 +0200 Tamara Diaconita wrote: > - If set to a nonzero value, contains a pointer to a NUL-terminated > + If set to a nonzero value, contains a pointer to a NULL-terminated This one is actually correct as-is. NUL is an ASCII character

Re: [Outreachy kernel] [PATCH v2] Documentation: admin-guide: Fix typos

2017-03-14 Thread Jonathan Corbet
On Tue, 14 Mar 2017 15:06:40 +0200 Daniel Baluta wrote: > Also for easier reviewing next patches you can mention in the > commit message what were the typos: > > e.g: witdh -> width I'm not sure that's helpful in a change like this which is fixing up a lot of different

Re: [Outreachy kernel] [PATCH v2] Documentation: admin-guide: Fix typos

2017-03-14 Thread Daniel Baluta
On Tue, Mar 14, 2017 at 10:38 AM, Tamara Diaconita wrote: > Fix typos in admin-guide directory. > Make documentation clear and grammatically correct. > > Signed-off-by: Tamara Diaconita Also for easier reviewing next patches you can mention

Re: [Outreachy kernel] [PATCH v2] Documentation: admin-guide: Fix typos

2017-03-14 Thread Julia Lawall
On Tue, 14 Mar 2017, Tamara Diaconita wrote: > Should I keep this in mind for the next patches or should I also reorganize > this patch? I didn't suggest any reorganization. I just meant that if you find one file in which a certain word is misspelled, then you may find the same problem in

Re: [Outreachy kernel] [PATCH] Documentation: x86: Fix typos

2017-03-14 Thread Jani Nikula
On Tue, 14 Mar 2017, Julia Lawall wrote: > On Tue, 14 Mar 2017, Tamara Diaconita wrote: > >> Fix typos in x86 directory. >> Make documentation clear and grammatically correct. >> >> Signed-off-by: Tamara Diaconita >> --- >>

[PATCH v2 7/33] KVM: MIPS: Implement HYPCALL emulation

2017-03-14 Thread James Hogan
Emulate the HYPCALL instruction added in the VZ ASE and used by the MIPS paravirtualised guest support that is already merged. The new hypcall.c handles arguments and the return value. No actual hypercalls are yet supported, but this still allows us to safely step over hypercalls and set an error

[PATCH v2 13/33] KVM: MIPS: Add 64BIT capability

2017-03-14 Thread James Hogan
Add a new KVM_CAP_MIPS_64BIT capability to indicate that 64-bit MIPS guests are available and supported. In this case it should still be possible to run 32-bit guest code. If not available it won't be possible to run 64-bit guest code and the instructions may not be available, or the kernel may

[PATCH v2 31/33] KVM: MIPS/VZ: Emulate MAARs when necessary

2017-03-14 Thread James Hogan
Add emulation of Memory Accessibility Attribute Registers (MAARs) when necessary. We can't actually do anything with whatever the guest provides, but it may not be possible to clear Guest.Config5.MRP so we have to emulate at least a pair of MAARs. Signed-off-by: James Hogan

[PATCH v2 28/33] KVM: MIPS/VZ: Support guest segmentation control

2017-03-14 Thread James Hogan
Add support for VZ guest CP0_SegCtl0, CP0_SegCtl1, and CP0_SegCtl2 registers, as found on P5600 and P6600 cores. These guest registers need initialising, context switching, and exposing via the KVM ioctl API when they are present. They also require the GVA -> GPA translation code for handling a

[PATCH v2 29/33] KVM: MIPS/VZ: Support guest hardware page table walker

2017-03-14 Thread James Hogan
Add support for VZ guest CP0_PWBase, CP0_PWField, CP0_PWSize, and CP0_PWCtl registers for controlling the guest hardware page table walker (HTW) present on P5600 and P6600 cores. These guest registers need initialising on R6, context switching, and exposing via the KVM ioctl API when they are

[PATCH v2 24/33] KVM: MIPS: Implement VZ support

2017-03-14 Thread James Hogan
Add the main support for the MIPS Virtualization ASE (A.K.A. VZ) to MIPS KVM. The bulk of this work is in vz.c, with various new state and definitions elsewhere. Enough is implemented to be able to run on a minimal VZ core. Further patches will fill out support for guest features which are

[PATCH v2 27/33] KVM: MIPS/VZ: Support guest CP0_[X]ContextConfig

2017-03-14 Thread James Hogan
Add support for VZ guest CP0_ContextConfig and CP0_XContextConfig (MIPS64 only) registers, as found on P5600 and P6600 cores. These guest registers need initialising, context switching, and exposing via the KVM ioctl API when they are present. Signed-off-by: James Hogan

[PATCH v2 26/33] KVM: MIPS/VZ: Support guest CP0_BadInstr[P]

2017-03-14 Thread James Hogan
Add support for VZ guest CP0_BadInstr and CP0_BadInstrP registers, as found on most VZ capable cores. These guest registers need context switching, and exposing via the KVM ioctl API when they are present. Signed-off-by: James Hogan Cc: Paolo Bonzini

[PATCH v2 12/33] KVM: MIPS: Add VZ & TE capabilities

2017-03-14 Thread James Hogan
Add new KVM_CAP_MIPS_VZ and KVM_CAP_MIPS_TE capabilities, and in order to allow MIPS KVM to support VZ without confusing old users (which expect the trap & emulate implementation), define and start checking KVM_CREATE_VM type codes. The codes available are: - KVM_VM_MIPS_TE = 0 This is the

[PATCH v2 0/33] KVM: MIPS: Add VZ support

2017-03-14 Thread James Hogan
This series is based on v4.11-rc2. My hope is to take this series via the MIPS KVM tree for 4.12, possibly with a topic branch containing the MIPS architecture changes (patches 1-6). This series implements basic support for the MIPS Virtualization Module (generally known as VZ) in KVM, which adds

Re: [Outreachy kernel] [PATCH v2] Documentation: admin-guide: Fix typos

2017-03-14 Thread Julia Lawall
On Tue, 14 Mar 2017, Tamara Diaconita wrote: > Fix typos in admin-guide directory. > Make documentation clear and grammatically correct. You may want to collect the words in which you find problems, and see if other files have the same problems. julia > > Signed-off-by: Tamara Diaconita

Re: [Outreachy kernel] [PATCH] Documentation: x86: Fix typos

2017-03-14 Thread Julia Lawall
On Tue, 14 Mar 2017, Tamara Diaconita wrote: > Fix typos in x86 directory. > Make documentation clear and grammatically correct. > > Signed-off-by: Tamara Diaconita > --- > Documentation/x86/boot.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >

[PATCH] Documentation: x86: Fix typos

2017-03-14 Thread Tamara Diaconita
Fix typos in x86 directory. Make documentation clear and grammatically correct. Signed-off-by: Tamara Diaconita --- Documentation/x86/boot.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/x86/boot.txt

[PATCH v2] Documentation: admin-guide: Fix typos

2017-03-14 Thread Tamara Diaconita
Fix typos in admin-guide directory. Make documentation clear and grammatically correct. Signed-off-by: Tamara Diaconita --- Changes since v1: *Remove the changes in tainted-kernels.rst file. Documentation/admin-guide/kernel-parameters.rst | 2 +-

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

2017-03-14 Thread Neil Armstrong
On 03/13/2017 12:43 PM, Jose Abreu wrote: > 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