All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Andrew Cooks <acooks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: jyli-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org,
	"open list:INTEL IOMMU (VT-d)"
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	open list <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Gaudenz Steinlin
	<gaudenz-Pp/UeI/YXckUgOneFgkt3A@public.gmane.org>,
	Shun Fu <fushun-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
	David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Subject: Re: Marvell 88NV9143 in mini-PCIe not working with intel_iommu=on
Date: Tue, 26 Mar 2013 16:14:37 +0100	[thread overview]
Message-ID: <20130326151436.GE2727@8bytes.org> (raw)
In-Reply-To: <CAJtEV7aL0TeSYB-+1bTgq=8Rbt2wijLfQF7jrHHXTeXeR811DQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Fri, Mar 08, 2013 at 10:53:16AM +0800, Andrew Cooks wrote:
> I'm hoping one of the veteran developers would give some guidance for
> the best approach to enable more devices in future.

In cases like this where a device just uses the request-id of another
device you can make use of the existing quirk-code in
drivers/pci/quirks.c. Look at the function pci_get_dma_source() and add
your device there. This should also make it work with VT-d and AMD-Vi.


	Joerg

WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: Andrew Cooks <acooks@gmail.com>
Cc: Gaudenz Steinlin <gaudenz@soziologie.ch>,
	jyli@marvell.com,
	"open list:INTEL IOMMU (VT-d)" <iommu@lists.linux-foundation.org>,
	open list <linux-kernel@vger.kernel.org>,
	Shun Fu <fushun@marvell.com>,
	Alex Williamson <alex.williamson@redhat.com>,
	David Woodhouse <dwmw2@infradead.org>
Subject: Re: Marvell 88NV9143 in mini-PCIe not working with intel_iommu=on
Date: Tue, 26 Mar 2013 16:14:37 +0100	[thread overview]
Message-ID: <20130326151436.GE2727@8bytes.org> (raw)
In-Reply-To: <CAJtEV7aL0TeSYB-+1bTgq=8Rbt2wijLfQF7jrHHXTeXeR811DQ@mail.gmail.com>

On Fri, Mar 08, 2013 at 10:53:16AM +0800, Andrew Cooks wrote:
> I'm hoping one of the veteran developers would give some guidance for
> the best approach to enable more devices in future.

In cases like this where a device just uses the request-id of another
device you can make use of the existing quirk-code in
drivers/pci/quirks.c. Look at the function pci_get_dma_source() and add
your device there. This should also make it work with VT-d and AMD-Vi.


	Joerg



  parent reply	other threads:[~2013-03-26 15:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 15:03 Marvell 88NV9143 in mini-PCIe not working with intel_iommu=on Gaudenz Steinlin
     [not found] ` <874ngpj3d9.fsf-GHYWf4lDKkckpxEkk3frnhJri3DaQkR5HbjI3kCSeWs@public.gmane.org>
2013-03-06  2:48   ` Andrew Cooks
2013-03-06  2:48     ` Andrew Cooks
     [not found]     ` <CAJtEV7Zyq3+YPu9Vvcxcm8nw41-ENjLuRHUzyFFzXQn-wiSf1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-06  3:20       ` Alex Williamson
2013-03-06  3:20         ` Alex Williamson
2013-03-07  9:25       ` Gaudenz Steinlin
2013-03-07  9:25         ` Gaudenz Steinlin
     [not found]         ` <87zjyfy325.fsf-GHYWf4lDKkckpxEkk3frnhJri3DaQkR5HbjI3kCSeWs@public.gmane.org>
2013-03-08  2:53           ` Andrew Cooks
2013-03-08  2:53             ` Andrew Cooks
     [not found]             ` <CAJtEV7aL0TeSYB-+1bTgq=8Rbt2wijLfQF7jrHHXTeXeR811DQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-26 15:14               ` Joerg Roedel [this message]
2013-03-26 15:14                 ` Joerg Roedel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130326151436.GE2727@8bytes.org \
    --to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
    --cc=acooks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=fushun-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
    --cc=gaudenz-Pp/UeI/YXckUgOneFgkt3A@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=jyli-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.