Re: [PATCH] iommu/vt-d: Check for NULL pointer in dmar_acpi_dev_scope_init() array

2014-03-26 Thread Woodhouse, David
On Tue, 2014-03-25 at 20:30 +0100, Joerg Roedel wrote: When ir_dev_scope_init() is called via a rootfs initcall it will check for irq_remapping_enabled before it calls (indirectly) into dmar_acpi_dev_scope_init() which uses the dmar_tbl pointer without any checks. Ew. If

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Konrad Rzeszutek Wilk
On Wed, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an issue closed that has been perculating for a while around creating a mechanism that will allow kernel drivers like vfio can bind to devices of any type.

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Alexander Graf
Am 26.03.2014 um 22:40 schrieb Konrad Rzeszutek Wilk konrad.w...@oracle.com: On Wed, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an issue closed that has been perculating for a while around creating a

RE: mechanism to allow a driver to bind to any device

2014-03-26 Thread Stuart Yoder
-Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Wednesday, March 26, 2014 9:40 AM To: Yoder Stuart-B08248 Cc: Greg KH; k...@vger.kernel.org; jan.kis...@siemens.com; will.dea...@arm.com; linux-ker...@vger.kernel.org; Bjorn Helgaas; Sethi

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Alex Williamson
On Wed, 2014-03-26 at 23:06 +0800, Alexander Graf wrote: Am 26.03.2014 um 22:40 schrieb Konrad Rzeszutek Wilk konrad.w...@oracle.com: On Wed, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an issue

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Konrad Rzeszutek Wilk
On Wed, Mar 26, 2014 at 11:06:02PM +0800, Alexander Graf wrote: Am 26.03.2014 um 22:40 schrieb Konrad Rzeszutek Wilk konrad.w...@oracle.com: On Wed, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Konrad Rzeszutek Wilk
On Wed, Mar 26, 2014 at 10:21:02AM -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 23:06 +0800, Alexander Graf wrote: Am 26.03.2014 um 22:40 schrieb Konrad Rzeszutek Wilk konrad.w...@oracle.com: On Wed, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg,

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Alex Williamson
On Wed, 2014-03-26 at 12:32 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Mar 26, 2014 at 10:21:02AM -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 23:06 +0800, Alexander Graf wrote: Am 26.03.2014 um 22:40 schrieb Konrad Rzeszutek Wilk konrad.w...@oracle.com: On Wed,

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Konrad Rzeszutek Wilk
On Wed, Mar 26, 2014 at 10:49:52AM -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 12:32 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Mar 26, 2014 at 10:21:02AM -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 23:06 +0800, Alexander Graf wrote: Am 26.03.2014 um 22:40 schrieb

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Alex Williamson
On Wed, 2014-03-26 at 13:04 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Mar 26, 2014 at 10:49:52AM -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 12:32 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Mar 26, 2014 at 10:21:02AM -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 23:06

RE: mechanism to allow a driver to bind to any device

2014-03-26 Thread Stuart Yoder
The other option for this is to having some sort of priority on the device probing with hotplugging. That is you can could do the following: 1) add the device vendor/model in vfio 2) unbind the BDF from the original driver. 3) hotplug happens - any new device that has the device

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Antonios Motakis
Hello, On Wed, Mar 26, 2014 at 2:40 AM, Stuart Yoder stuart.yo...@freescale.comwrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an issue closed that has been perculating for a while around creating a mechanism that will allow kernel drivers like vfio can bind to

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Antonios Motakis
(Resend because of html) On Wed, Mar 26, 2014 at 2:40 AM, Stuart Yoder stuart.yo...@freescale.com wrote: Hi Greg, We (Linaro, Freescale, Virtual Open Systems) are trying get an issue closed that has been perculating for a while around creating a mechanism that will allow kernel drivers like

Re: mechanism to allow a driver to bind to any device

2014-03-26 Thread Alex Williamson
On Wed, 2014-03-26 at 10:21 -0600, Alex Williamson wrote: On Wed, 2014-03-26 at 23:06 +0800, Alexander Graf wrote: Am 26.03.2014 um 22:40 schrieb Konrad Rzeszutek Wilk konrad.w...@oracle.com: On Wed, Mar 26, 2014 at 01:40:32AM +, Stuart Yoder wrote: Hi Greg, We