lkml.org 
[lkml]   [2011]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: How to access serial port that is set in BIOS as OS Controlled
On Fri, Aug 5, 2011 at 7:02 PM, Jeff Chua <jeff.chua.linux@gmail.com> wrote:
>
>
> On Fri, Aug 5, 2011 at 11:20 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
>>
>> On Fri, Aug 5, 2011 at 7:59 AM, Jeff Chua <jeff.chua.linux@gmail.com>
>> wrote:
>> >
>> > echo "auto" > /sys/bus/pnp/devices/00:0a/resources
>> >
>> > This seems to work.
>>
>> OK.  That's a good clue, and maybe a good enough workaround for your
>> immediate need.
>>
>> But I think the fact that it doesn't "just work" is a Linux bug, and
>> it'd be nice to fix it.  My guess is that running _SRS is what makes
>> the port work, and that Windows does this automatically but Linux does
>> not.  If we can figure out exactly what the difference is, there's a
>> good chance that we can fix several Linux issues by just doing things
>> the way Windows does.
>>
>> Would you mind building with CONFIG_PNP_DEBUG_MESSAGES=y, booting with
>> "pnp.debug", issuing the "auto" command, and attaching the dmesg log
>> to this bug report?
>>
>>  https://bugzilla.kernel.org/show_bug.cgi?id=40612
>>
>> Thanks!
>
> I'll do that next Monday when I get into the office to configure the CV60.

Ping, just a reminder :)

The ACPI spec (v4.0a, sec 6.2) says:

When OSPM enumerates a device, it calls _PRS to determine the resource
requirements of the device. It may also call _CRS to find the current resource
settings for the device. Using this information, the Plug and Play system
determines what resources the device should consume and sets those
resources by calling the device’s _SRS control method.

I'm pretty sure Linux only runs _SRS when we actually *change* something, which
doesn't seem to follow the intent of the spec. So if we can get a
little more evidence
here, I think it'd be worth changing Linux to call _SRS for every device when it
enumerates it.

Bjorn
--
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: 2011-08-10 18:49    [W:0.047 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site