Re: [PATCH v6 1/4] i2c: add a protocol parameter to the alert callback

2016-03-18 Thread Guenter Roeck
On Wed, Mar 16, 2016 at 05:39:05PM +0100, Benjamin Tissoires wrote: > .alert() is meant to be generic, but there is currently no way > for the device driver to know which protocol generated the alert. > Add a parameter in .alert() to help the device driver to understand > what is given in data. >

[PATCH v6 2/4] i2c-smbus: add SMBus Host Notify support

2016-03-18 Thread Benjamin Tissoires
SMBus Host Notify allows a slave device to act as a master on a bus to notify the host of an interrupt. On Intel chipsets, the functionality is directly implemented in the firmware. We just need to export a function to call .alert() on the proper device driver. i2c_handle_smbus_host_notify() behav

[PATCH v6 1/4] i2c: add a protocol parameter to the alert callback

2016-03-18 Thread Benjamin Tissoires
.alert() is meant to be generic, but there is currently no way for the device driver to know which protocol generated the alert. Add a parameter in .alert() to help the device driver to understand what is given in data. This patch is required to have the support of SMBus Host Notify protocol throu

Re: [RFC PATCH v4 6/7] vfio-pci: Allow to mmap MSI-X table if IOMMU_CAP_INTR_REMAP was set

2016-03-18 Thread Yongji Xie
On 2016/3/17 0:31, Alex Williamson wrote: [cc+ Eric, Will] On Mon, 7 Mar 2016 15:48:37 +0800 Yongji Xie wrote: Current vfio-pci implementation disallows to mmap MSI-X table in case that user get to touch this directly. But we should allow to mmap these MSI-X tables if IOMMU supports interru

Re: [PATCH 3/9] serial: doc: Document .throttle()

2016-03-18 Thread Geert Uytterhoeven
On Mon, Mar 14, 2016 at 4:16 PM, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > --- > Documentation/serial/driver | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/serial/driver b/Documentation/serial/driver > index 61d520dea4c6e13a..50f3d94ed50b341e

Re: [PATCH 3/8] clk: bcm2835: add missing osc and per clocks

2016-03-18 Thread Eric Anholt
ker...@martin.sperl.org writes: > From: Martin Sperl > > Add definitions for the following clocks: > * AVE0 > * DFT > * GP0 > * GP1 > * GP2 > * PULSE > * SLIM > * SMI > * TEC > > Signed-off-by: Martin Sperl > --- > + [BCM2835_CLOCK_DFT] = REGISTER_PER_CLK( > + .name = "dft",

Re: [RFC PATCH v4 7/7] powerpc/powernv/pci-ioda: Add IOMMU_CAP_INTR_REMAP for IODA host bridge

2016-03-18 Thread Yongji Xie
On 2016/3/17 20:48, Alex Williamson wrote: On Thu, 17 Mar 2016 19:38:29 +0800 Yongji Xie wrote: On 2016/3/17 0:32, Alex Williamson wrote: On Mon, 7 Mar 2016 15:48:38 +0800 Yongji Xie wrote: This patch adds IOMMU_CAP_INTR_REMAP for IODA host bridge so that we can mmap MSI-X table in vfio

Re: [RFC PATCH v4 0/7] vfio-pci: Allow to mmap sub-page MMIO BARs and MSI-X table

2016-03-18 Thread Yongji Xie
On 2016/3/16 22:10, Bjorn Helgaas wrote: On Wed, Mar 16, 2016 at 06:51:56PM +0800, Yongji Xie wrote: Ping. This is mainly VFIO stuff, and Alex had some security concerns, so I'm not going to spend much time looking at this until he's satisfied. When I do, I'll be looking hard at the resource_a

[PATCH v5 3/6] module: s390: keep mod_arch_specific for livepatch modules

2016-03-18 Thread Jessica Yu
Livepatch needs to utilize the symbol information contained in the mod_arch_specific struct in order to be able to call the s390 apply_relocate_add() function to apply relocations. Keep a reference to syminfo if the module is a livepatch module. Remove the redundant vfree() in module_finalize() sin

Re: [RFC PATCH v4 4/7] PCI: Modify resource_alignment to support multiple devices

2016-03-18 Thread Yongji Xie
On 2016/3/17 0:30, Alex Williamson wrote: On Mon, 7 Mar 2016 15:48:35 +0800 Yongji Xie wrote: When vfio passthrough a PCI device of which MMIO BARs are smaller than PAGE_SIZE, guest will not handle the mmio accesses to the BARs which leads to mmio emulations in host. This is because vfio wil

Re: [RFC PATCH v4 7/7] powerpc/powernv/pci-ioda: Add IOMMU_CAP_INTR_REMAP for IODA host bridge

2016-03-18 Thread Alex Williamson
On Thu, 17 Mar 2016 19:38:29 +0800 Yongji Xie wrote: > On 2016/3/17 0:32, Alex Williamson wrote: > > On Mon, 7 Mar 2016 15:48:38 +0800 > > Yongji Xie wrote: > > > >> This patch adds IOMMU_CAP_INTR_REMAP for IODA host bridge so that > >> we can mmap MSI-X table in vfio driver. > >> > >> Signed

Re: [PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

2016-03-18 Thread Jarkko Sakkinen
On Fri, Mar 18, 2016 at 10:52:00AM +0200, Jarkko Sakkinen wrote: > On Thu, Mar 17, 2016 at 01:45:20PM -0400, Stefan Berger wrote: > > On 03/16/2016 04:42 PM, Jarkko Sakkinen wrote: > > >On Sun, Mar 13, 2016 at 06:54:38PM -0400, Stefan Berger wrote: > > >>+ > > >>+/* above flags */ > > >>+#define VT