lkml.org 
[lkml]   [2006]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access
From
Date
On Thu, 2006-05-04 at 17:38 -0400, Jon Smirl wrote:

> # cd /sys/bus/pci/devices/0000:01:00.0
> # echo 1 >rom
> # hexdump -C rom
>
> As far as I know this works on every platform, not just the PC one.

Yep, you're right, this works. So we don't necessarily need it for the
vbetool case. X still could use it though, instead of their scary
poke-at-memory way.

> Don't mess around with the hardware trying to get to the ROM. Use the
> API provided by the kernel. Messing with the hardware will get it into
> a state that the kernel doesn't know about and can ultimately crash
> your system.

Exactly who do you see here messing with the hardware directly instead
of using kernel APIs?

--
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-05 01:25    [W:0.119 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site