public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Joerg Roedel <joro@8bytes.org>
To: Manu Abraham <abraham.manu@gmail.com>
Cc: Markus Rechberger <mrechberger@gmail.com>,
	"linux-dvb@linuxtv.org" <linux-dvb@linuxtv.org>,
	"video4linux-list@redhat.com" <video4linux-list@redhat.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [linux-dvb] [PATCH] Userspace tuner
Date: Fri, 14 Sep 2007 19:40:28 +0200	[thread overview]
Message-ID: <20070914174028.GC8998@8bytes.org> (raw)
In-Reply-To: <46EABD48.3020902@gmail.com>

On Fri, Sep 14, 2007 at 08:56:40PM +0400, Manu Abraham wrote:
> 
> I do understand that (an earlier reply from Grant Grundler on the same
> [1], while working on something else), but that wasn't exactly what i
> was getting at. The bridges are in fact tied up with a certain CPU class.
> 
> Though your argument holds true: "secure userpsace device drivers can be
> implemented with modern hardware" There is a large flaw in it. (From an
> academic POV, you are correct)
> 
> Now, if all the drivers were to depend on that certain feature, what
> happens to all other CPU class users ? Looking at a pile of CPU's being
> used, also not to forget that devices such as STB's use even very small
> embedded CPU's such as the PPC405 Vulcan based [2] to mobile devices
> such as mobile phones using ARM, Xtensa [3], OMAP CPU's/platforms, which
> do not in any way use the bridges nor the CPU class which you however
> mention.

This is true. These platforms do not (and afaik will not) have an
IOMMU and thus its impossible to implement a secure userspace driver
interface that supports DMA. In general, IOMMUs are only expected on
platforms which implement virtualization, have a processor address space
larger than the io address space or both.

> So .. we are looking at a small segment, ie. a subset of the PC users
> even, even if the larger segments like STB's can be ignored. This would
> mean that only a small subset of users using a certain CPU class can use
> those drivers (eventhough the devices themselves don't have that
> limitation, the limitation being the implementation of the driver
> alone), which is absurd.

This is also true. But looking at the current development of
virtualization in hardware on the PC market (and also the increasing
amount of main memory) makes me sure that in a few years every new sold
_PC_ will haven an IOMMU inside. But the problems with the other
platforms or older hardware will certainly remain.

Joerg

  reply	other threads:[~2007-09-14 17:40 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <46C1BCC5.9090709@amd.com>
     [not found] ` <1189626560.5160.57.camel@gaivota>
     [not found]   ` <d9def9db0709121546h67d3d1ceuf001ab1d798fde92@mail.gmail.com>
2007-09-12 23:10     ` [linux-dvb] [PATCH] Userspace tuner Markus Rechberger
2007-09-13  4:58       ` Dâniel Fraga
     [not found]         ` <d9def9db0709122258l4b05546dq2e370e67a2a1404@mail.gmail.com>
2007-09-13 12:40           ` Johannes Stezenbach
2007-09-13 13:17             ` Markus Rechberger
2007-09-17 22:05         ` Bill Davidsen
2007-09-13 13:13       ` [linux-dvb] " Johannes Stezenbach
2007-09-13 14:12         ` Markus Rechberger
2007-09-13 15:50           ` Manu Abraham
2007-09-13 16:08             ` Markus Rechberger
2007-09-13 16:22               ` Manu Abraham
2007-09-13 16:32                 ` Markus Rechberger
2007-09-13 16:52                   ` Manu Abraham
2007-09-13 20:36               ` Steven Toth
2007-09-13 23:17                 ` Markus Rechberger
2007-09-14  1:03                   ` Steven Toth
2007-09-14  6:38                     ` Markus Rechberger
2007-09-14  7:57                       ` Manu Abraham
2007-09-14  9:15                         ` Joerg Roedel
2007-09-14 12:00                           ` Manu Abraham
2007-09-14 16:09                             ` Markus Rechberger
2007-09-14 18:52                               ` Alex Deucher
2007-09-14 18:59                                 ` Markus Rechberger
2007-09-14 19:38                                   ` Alex Deucher
2007-09-14 16:13                             ` Joerg Roedel
2007-09-14 16:56                               ` Manu Abraham
2007-09-14 17:40                                 ` Joerg Roedel [this message]
2007-09-14 11:38                       ` Johannes Stezenbach
2007-09-14 16:36                         ` Markus Rechberger
2007-09-14 17:32                           ` Mauro Carvalho Chehab
2007-09-14 17:46                             ` Markus Rechberger
2007-09-14 18:29                               ` Mauro Carvalho Chehab
2007-09-14 19:20                                 ` Michael Krufky
2007-09-14 21:07                                   ` Aidan Thornton
2007-09-14 21:16                                     ` Mauro Carvalho Chehab
2007-09-14 21:53                                     ` Manu Abraham
2007-09-14 20:43                           ` Johannes Stezenbach
2007-09-15  1:29                             ` Markus Rechberger
2007-09-15  1:49                               ` Mauro Carvalho Chehab
2007-09-15 13:16                               ` Johannes Stezenbach
2007-09-15 13:38                                 ` Markus Rechberger
2007-09-15 14:04                                   ` Mauro Carvalho Chehab
2007-09-15 14:33                                     ` Markus Rechberger
2007-09-15 14:45                                       ` Mauro Carvalho Chehab
2007-09-15 16:58                                     ` Bernard Jungen
2007-09-16 11:30                                       ` Hans Verkuil
2007-09-17  8:46                                       ` Markus Rechberger
2007-09-15  1:49                             ` Markus Rechberger
2007-09-15  3:09                               ` Mauro Carvalho Chehab
2007-09-15 12:59                                 ` Markus Rechberger
2007-09-15  8:52                               ` Manu Abraham
2007-09-15 13:34                               ` Johannes Stezenbach
2007-09-15 14:56                                 ` Steven Toth
2007-09-14 13:52                   ` Alan Cox
2007-09-14 16:18                     ` Markus Rechberger
2007-09-18  8:19                       ` Jelle Foks
2007-09-18  8:55                         ` Markus Rechberger
2007-09-18 22:56                         ` Mauro Carvalho Chehab
2007-09-18 23:00                           ` Alan Cox
2007-09-14  0:49                 ` hermann pitton
2007-09-14 12:10                 ` Alan Cox

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=20070914174028.GC8998@8bytes.org \
    --to=joro@8bytes.org \
    --cc=abraham.manu@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-dvb@linuxtv.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrechberger@gmail.com \
    --cc=video4linux-list@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox