Re: X11 still uses /dev/mem ?

2010-02-22 Thread Adam Jackson
On Sat, 2010-02-20 at 15:00 +, Nix wrote: On 17 Feb 2010, Adam Jackson said: On Tue, 2010-02-16 at 10:30 +0200, Nameer Yarkon wrote: Hi, Does X11 still uses /dev/mem to directly manipulate the physical memory ? strace would tell you. The answer is it depends though. On Linux

Re: X11 still uses /dev/mem ?

2010-02-22 Thread Nix
On 22 Feb 2010, Adam Jackson verbalised: On Sat, 2010-02-20 at 15:00 +, Nix wrote: Am I right in assuming that pretty much all of these are UMS-related? i.e., in KMS the only thing now stopping us running X as non-root at long last is the input-device-revocation problem? That, and

Re: X11 still uses /dev/mem ?

2010-02-22 Thread Adam Jackson
On Mon, 2010-02-22 at 18:59 +, Nix wrote: On 22 Feb 2010, Adam Jackson verbalised: That, and device permissions on /dev/dri/whatever, and that GEM objects are globally visible so you're still trusting that multiple X servers don't intentionally snoop on each other. Device permissions

Re: X11 still uses /dev/mem ?

2010-02-20 Thread Nix
On 17 Feb 2010, Adam Jackson said: On Tue, 2010-02-16 at 10:30 +0200, Nameer Yarkon wrote: Hi, Does X11 still uses /dev/mem to directly manipulate the physical memory ? strace would tell you. The answer is it depends though. On Linux, most memory access goes through the PCI BAR resource

Re: X11 still uses /dev/mem ?

2010-02-17 Thread Adam Jackson
On Tue, 2010-02-16 at 10:30 +0200, Nameer Yarkon wrote: Hi, Does X11 still uses /dev/mem to directly manipulate the physical memory ? strace would tell you. The answer is it depends though. On Linux, most memory access goes through the PCI BAR resource files in sysfs, but there are some

Re: X11 still uses /dev/mem ?

2010-02-17 Thread Nameer Yarkon
On Wed, Feb 17, 2010 at 5:43 PM, Adam Jackson a...@nwnk.net wrote: most memory access goes through the PCI BAR resource files in sysfs, but i was expecting that if /dev/mem was abonded, then you will probably have to call mmap() on a DRM specific driver node to get the mapping you require. how

Re: X11 still uses /dev/mem ?

2010-02-17 Thread Daniel Stone
On Wed, Feb 17, 2010 at 05:54:18PM +0200, Nameer Yarkon wrote: On Wed, Feb 17, 2010 at 5:43 PM, Adam Jackson a...@nwnk.net wrote: most memory access goes through the PCI BAR resource files in sysfs, but i was expecting that if /dev/mem was abonded, then you will probably have to call mmap()

Re: X11 still uses /dev/mem ?

2010-02-17 Thread Nameer Yarkon
On Wed, Feb 17, 2010 at 6:04 PM, Daniel Stone dan...@fooishbar.org wrote: What's your real question? i.e. what problem are you trying to solve? I'm trying to understand how user space can efficiently manipulate physical memory, and I'm sure that X11 does that great. So this is just a learning

Re: X11 still uses /dev/mem ?

2010-02-17 Thread Adam Jackson
On Wed, 2010-02-17 at 19:29 +0200, Nameer Yarkon wrote: On Wed, Feb 17, 2010 at 6:04 PM, Daniel Stone dan...@fooishbar.org wrote: What's your real question? i.e. what problem are you trying to solve? I'm trying to understand how user space can efficiently manipulate physical memory, and I'm

X11 still uses /dev/mem ?

2010-02-16 Thread Nameer Yarkon
Hi, Does X11 still uses /dev/mem to directly manipulate the physical memory ? If not, how is it done these days ? thank you nameer ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg