Skip to contentSkip to conversation

_CRS/_PRS for address space range

Devel Jung-uk Kim 2 participants 6 messages Jul 22, 2011 ACPI component architecture (acpica)

lore
Share & tools
lore

Jung-uk Kim

author
#0 lore raw

ACPI Spec. 4.0a, 6.4.3.5 Address Space Range Descriptor, Table 6-40 on page 260 implies _LEN > 0, _MIF = 1, and _MAF = 1 is the only valid combination for _CRS. However, I found a _CRS example on page, which has _LEN = _MIF = _MAF = 0. Can you please clarify? If the table is correct, iasl should have warned about it. I think iasl currently treats _PRS and _CRS equally.

Jung-uk Kim

author
#1 lore raw
Quoted 4 lines · Jung-uk Kim

ACPI Spec. 4.0a, 6.4.3.5 Address Space Range Descriptor, Table 6-40 on page 260 implies _LEN > 0, _MIF = 1, and _MAF = 1 is the only valid combination for _CRS. However, I found a _CRS example on page, which has _LEN = _MIF = _MAF = 0. Can you please clarify?

^^^^
page 356

I was going to fill in the blank but pressed the send button prematurely.

Sorry,

Jung-uk Kim

author
#2 lore raw
In reply to Jung-uk Kim
Quoted 6 lines · Jung-uk Kim

ACPI Spec. 4.0a, 6.4.3.5 Address Space Range Descriptor, Table 6-40 on page 260 implies _LEN > 0, _MIF = 1, and _MAF = 1 is the only valid combination for _CRS. However, I found a _CRS example on page, which has _LEN = _MIF = _MAF = 0. Can you please clarify? If the table is correct, iasl should have warned about it. I think iasl currently treats _PRS and _CRS equally.

John Baldwin <jhb(a)FreeBSD.org> pointed out iASL's address space range check introduced in ACPI-CA 20100428 is just bogus. It is often times dynamically recalculated from a template. Therefore, OS must do the sanity check at *runtime*, at least for _CRS.

Jung-uk Kim

#3 lore raw

I think we relaxed the iASL checking a bit because of these issues. If not, we plan to do so.

This might be an area where we could check the descriptors at runtime, as they are returned from _CRS, etc.

Bob

Quoted 26 lines

-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of Jung-uk Kim
Sent: Friday, July 22, 2011 11:44 AM
To: devel(a)acpica.org
Cc: John Baldwin
Subject: Re: [Devel] _CRS/_PRS for address space range

Quoted 6 lines · Jung-uk Kim

ACPI Spec. 4.0a, 6.4.3.5 Address Space Range Descriptor, Table 6-40 on page 260 implies _LEN > 0, _MIF = 1, and _MAF = 1 is the only valid combination for _CRS. However, I found a _CRS example on page, which has _LEN = _MIF = _MAF = 0. Can you please clarify? If the table is correct, iasl should have warned about it. I think iasl currently treats _PRS and _CRS equally.

John Baldwin <jhb(a)FreeBSD.org> pointed out iASL's address space range check introduced in ACPI-CA 20100428 is just bogus. It is often times dynamically recalculated from a template. Therefore, OS must do the sanity check at *runtime*, at least for _CRS.

Jung-uk Kim
_______________________________________________
Devel mailing list
Devel(a)acpica.org
http://lists.acpica.org/listinfo/devel

author
#4 lore raw
Quoted 2 lines · Robert

I think we relaxed the iASL checking a bit because of these issues. If not, we plan to do so.

ACPICA 20110527 still has this issue.

Quoted 2 lines

This might be an area where we could check the descriptors at runtime, as they are returned from _CRS, etc.

That'll be great.

Thanks!

JK

Quoted 29 lines

Bob

Quoted 27 lines

-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of Jung-uk Kim
Sent: Friday, July 22, 2011 11:44 AM
To: devel(a)acpica.org
Cc: John Baldwin
Subject: Re: [Devel] _CRS/_PRS for address space range

Quoted 7 lines · Jung-uk Kim

ACPI Spec. 4.0a, 6.4.3.5 Address Space Range Descriptor, Table 6-40 on page 260 implies _LEN > 0, _MIF = 1, and _MAF = 1 is the only valid combination for _CRS. However, I found a _CRS example on page, which has _LEN = _MIF = _MAF = 0. Can you please clarify? If the table is correct, iasl should have warned about it. I think iasl currently treats _PRS and _CRS equally.

John Baldwin <jhb(a)FreeBSD.org> pointed out iASL's address space range check introduced in ACPI-CA 20100428 is just bogus. It is often times dynamically recalculated from a template. Therefore, OS must do the sanity check at *runtime*, at least for _CRS.

Jung-uk Kim
_______________________________________________
Devel mailing list
Devel(a)acpica.org
http://lists.acpica.org/listinfo/devel

#5 lore raw

There is, however, an option to iASL to disable this checking:

-cr Disable Resource Descriptor error checking

Quoted 51 lines

-----Original Message-----
From: Jung-uk Kim [mailto:jkim(a)FreeBSD.org]
Sent: Friday, July 22, 2011 12:48 PM
To: Moore, Robert
Cc: devel(a)acpica.org; John Baldwin
Subject: Re: [Devel] _CRS/_PRS for address space range

Quoted 2 lines · Robert

I think we relaxed the iASL checking a bit because of these issues. If not, we plan to do so.

ACPICA 20110527 still has this issue.

Quoted 2 lines

This might be an area where we could check the descriptors at runtime, as they are returned from _CRS, etc.

That'll be great.

Thanks!

JK

Quoted 29 lines

Bob

Quoted 27 lines

-----Original Message-----
From: devel-bounces(a)acpica.org [mailto:devel-bounces(a)acpica.org] On Behalf Of Jung-uk Kim
Sent: Friday, July 22, 2011 11:44 AM
To: devel(a)acpica.org
Cc: John Baldwin
Subject: Re: [Devel] _CRS/_PRS for address space range

Quoted 7 lines · Jung-uk Kim

ACPI Spec. 4.0a, 6.4.3.5 Address Space Range Descriptor, Table 6-40 on page 260 implies _LEN > 0, _MIF = 1, and _MAF = 1 is the only valid combination for _CRS. However, I found a _CRS example on page, which has _LEN = _MIF = _MAF = 0. Can you please clarify? If the table is correct, iasl should have warned about it. I think iasl currently treats _PRS and _CRS equally.

John Baldwin <jhb(a)FreeBSD.org> pointed out iASL's address space range check introduced in ACPI-CA 20100428 is just bogus. It is often times dynamically recalculated from a template. Therefore, OS must do the sanity check at *runtime*, at least for _CRS.

Jung-uk Kim
_______________________________________________
Devel mailing list
Devel(a)acpica.org
http://lists.acpica.org/listinfo/devel