Skip to contentSkip to conversation

- increase acpi owner_id max

PATCH In review John Keller 3 participants 6 messages Jan 26, 2007 – Jan 30, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - increase acpi owner_id max

To support systems with large IO configurations, this patch increases the number of available ACPI owner ids to 1023.

On SN platforms, we represent every populated root bus slot with an ACPI SSDT table containing info for every device and PPB attached to the slot. Each SSDT requires a unique ACPI owner id.

---

 drivers/acpi/utilities/utmisc.c |    6 +++---
 include/acpi/acconfig.h         |    4 ++--
 include/acpi/aclocal.h          |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/acpi/utilities/utmisc.c +3 -3
Index: linux/drivers/acpi/utilities/utmisc.c
===================================================================
@@ -147,7 +147,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 				/*
 				 * Construct encoded ID from the index and bit position
 				 *
-				 * Note: Last [j].k (bit 255) is never used and is marked
+				 * Note: Last [j].k (bit 1023) is never used and is marked
 				 * permanently allocated (prevents +1 overflow)
 				 */
 				*owner_id =
@@ -175,7 +175,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 	 */
 	status = AE_OWNER_ID_LIMIT;
 	ACPI_ERROR((AE_INFO,
-		    "Could not allocate new OwnerId (255 max), AE_OWNER_ID_LIMIT"));
+		    "Could not allocate new OwnerId (1023 max), AE_OWNER_ID_LIMIT"));
 
       exit:
 	(void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
@@ -192,7 +192,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
  *              control method or unloading a table. Either way, we would
  *              ignore any error anyway.
  *
- * DESCRIPTION: Release a table or method owner ID.  Valid IDs are 1 - 255
+ * DESCRIPTION: Release a table or method owner ID.  Valid IDs are 1 - 1023
  *
  ******************************************************************************/
 
include/acpi/acconfig.h +2 -2
Index: linux/include/acpi/acconfig.h
===================================================================
@@ -111,9 +111,9 @@
 
 #define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
 
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
+/* owner_id tracking. 32 entries allow for 1023 owner_ids */
 
-#define ACPI_NUM_OWNERID_MASKS          8
+#define ACPI_NUM_OWNERID_MASKS		32
 
 /******************************************************************************
  *
include/acpi/aclocal.h +2 -2
Index: linux/include/acpi/aclocal.h
===================================================================
@@ -122,8 +122,8 @@ static char *acpi_gbl_mutex_names[ACPI_N
 
 /* Owner IDs are used to track namespace nodes for selective deletion */
 
-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX               0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX               0x3FF
 
 /* This Thread ID means that the mutex is not in use (unlocked) */
 
#1 lore raw

The OwnerId field within a namespace node is 8 bits, and this is the main constraint on the maximum OwnerId. You can't simply bump up the number of owner ids without changing this field.

If we need more than 255 owner Ids, the width of this field will have to be increased, or we will need to use a pointer for the field in order to maintain a linked list of all nodes owned by a particular owner.

Bob

Quoted 27 lines

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of John Keller
Sent: Friday, January 26, 2007 2:40 PM
To: [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; John Keller
Subject: [PATCH 1/1] - increase acpi owner_id max

To support systems with large IO configurations, this patch increases the number of available ACPI owner ids to 1023.

On SN platforms, we represent every populated root bus slot with an ACPI SSDT table containing info for every device and PPB attached to the slot. Each SSDT requires a unique ACPI owner id.

---

 drivers/acpi/utilities/utmisc.c |    6 +++---
 include/acpi/acconfig.h         |    4 ++--
 include/acpi/aclocal.h          |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
Quoted 4 lines

Index: linux/drivers/acpi/utilities/utmisc.c
=================================> --- linux.orig/drivers/acpi/utilities/utmisc.c 2007-01-25
11:27:25.509259412 -0600
+++ linux/drivers/acpi/utilities/utmisc.c 2007-01-26

13:16:09.551081284 -

Review acpi_status acpi_ut_allocate_owner_id(ac · line 148

Quoted 4 lines

0600

(quoted diff) +0 -0
@@ -147,7 +147,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 				/*
 				 * Construct encoded ID from the index

and bit

Review

Quoted 3 lines

position

(quoted diff) +0 -1
 				 *
-				 * Note: Last [j].k (bit 255) is never

used and is

Review

Quoted 2 lines

marked

(quoted diff) +1 -0
+				 * Note: Last [j].k (bit 1023) is never

used and

Quoted 2 lines

is marked
* permanently allocated (prevents +1

overflow)

Quoted 13 lines
drivers/acpi/utilities/utmisc.c +0 -1
 				 */
 				*owner_id > @@ -175,7 +175,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 	 */
 	status = AE_OWNER_ID_LIMIT;
 	ACPI_ERROR((AE_INFO,
-		    "Could not allocate new OwnerId (255 max),

AE_OWNER_ID_LIMIT"));

(quoted diff) +1 -0
+		    "Could not allocate new OwnerId (1023 max),

AE_OWNER_ID_LIMIT"));

exit:

drivers/acpi/utilities/utmisc.c +0 -0
 	(void)acpi_ut_release_mutex(ACPI_MTX_CACHES);

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac · line 192

Quoted 1 line
drivers/acpi/utilities/utmisc.c +0 -0
@@ -192,7 +192,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
  *              control method or unloading a table. Either way, we

would

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac

Quoted 3 lines
drivers/acpi/utilities/utmisc.c +0 -1
  *              ignore any error anyway.
  *
- * DESCRIPTION: Release a table or method owner ID.  Valid IDs are 1

-

Quoted 2 lines

255
+ * DESCRIPTION: Release a table or method owner ID. Valid IDs are 1

-

Quoted 4 lines

1023
*

************************************************************************
**

Quoted 4 lines

****/

Index: linux/include/acpi/acconfig.h
=================================> --- linux.orig/include/acpi/acconfig.h 2007-01-25

11:27:25.577267818 -

Quoted 2 lines

0600
+++ linux/include/acpi/acconfig.h 2007-01-26 13:17:14.111002597

-0600

include/acpi/acconfig.h line 119

Quoted 12 lines
include/acpi/acconfig.h +2 -2
@@ -111,9 +111,9 @@
 
 #define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
 
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
+/* owner_id tracking. 32 entries allow for 1023 owner_ids */
 
-#define ACPI_NUM_OWNERID_MASKS          8
+#define ACPI_NUM_OWNERID_MASKS		32
 
 
 

/*********************************************************************** **

Quoted 6 lines

*****
*
Index: linux/include/acpi/aclocal.h
=================================> --- linux.orig/include/acpi/aclocal.h 2007-01-25 11:27:25.585268807 -
0600
+++ linux/include/acpi/aclocal.h 2007-01-26 13:20:06.148115848

-0600

Review static char *acpi_gbl_mutex_names[ACPI_N · line 123

Quoted 3 lines
(quoted diff) +0 -0
@@ -122,8 +122,8 @@ static char *acpi_gbl_mutex_names[ACPI_N
 
 /* Owner IDs are used to track namespace nodes for selective deletion

*/

Quoted 10 lines
include/acpi/aclocal.h +2 -3
-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX               0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX               0x3FF
 
 /* This Thread ID means that the mutex is not in use (unlocked) */
 
-

To unsubscribe from this list: send the line "unsubscribe linux-acpi"

in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 4 lines

The OwnerId field within a namespace node is 8 bits, and this is the main constraint on the maximum OwnerId. You can't simply bump up the number of owner ids without changing this field.

Isn't this accomplished with the mod to aclocal.h below - i.e. by making a acpi_owner_id a u16 instead of a u8?:

-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX 0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX 0x3FF

Quoted 133 lines

If we need more than 255 owner Ids, the width of this field will have to be increased, or we will need to use a pointer for the field in order to maintain a linked list of all nodes owned by a particular owner.

Bob

Quoted 27 lines

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of John Keller
Sent: Friday, January 26, 2007 2:40 PM
To: [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; John Keller
Subject: [PATCH 1/1] - increase acpi owner_id max

To support systems with large IO configurations, this patch increases the number of available ACPI owner ids to 1023.

On SN platforms, we represent every populated root bus slot with an ACPI SSDT table containing info for every device and PPB attached to the slot. Each SSDT requires a unique ACPI owner id.

---

 drivers/acpi/utilities/utmisc.c |    6 +++---
 include/acpi/acconfig.h         |    4 ++--
 include/acpi/aclocal.h          |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
Quoted 5 lines

Index: linux/drivers/acpi/utilities/utmisc.c
===================================================================
--- linux.orig/drivers/acpi/utilities/utmisc.c 2007-01-25
11:27:25.509259412 -0600
+++ linux/drivers/acpi/utilities/utmisc.c 2007-01-26

13:16:09.551081284 -

Review acpi_status acpi_ut_allocate_owner_id(ac · line 148

Quoted 4 lines

0600

(quoted diff) +0 -0
@@ -147,7 +147,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 				/*
 				 * Construct encoded ID from the index

and bit

Review

Quoted 3 lines

position

(quoted diff) +0 -1
 				 *
-				 * Note: Last [j].k (bit 255) is never

used and is

Review

Quoted 2 lines

marked

(quoted diff) +1 -0
+				 * Note: Last [j].k (bit 1023) is never

used and

Quoted 2 lines

is marked
* permanently allocated (prevents +1

overflow)

Quoted 14 lines
drivers/acpi/utilities/utmisc.c +1 -1
 				 */
 				*owner_id =
@@ -175,7 +175,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 	 */
 	status = AE_OWNER_ID_LIMIT;
 	ACPI_ERROR((AE_INFO,
-		    "Could not allocate new OwnerId (255 max),
 AE_OWNER_ID_LIMIT"));
+		    "Could not allocate new OwnerId (1023 max),
 AE_OWNER_ID_LIMIT"));
 

exit:

drivers/acpi/utilities/utmisc.c +0 -0
 	(void)acpi_ut_release_mutex(ACPI_MTX_CACHES);

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac · line 192

Quoted 1 line
drivers/acpi/utilities/utmisc.c +0 -0
@@ -192,7 +192,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
  *              control method or unloading a table. Either way, we

would

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac

Quoted 3 lines
drivers/acpi/utilities/utmisc.c +0 -1
  *              ignore any error anyway.
  *
- * DESCRIPTION: Release a table or method owner ID.  Valid IDs are 1

-

Quoted 2 lines

255
+ * DESCRIPTION: Release a table or method owner ID. Valid IDs are 1

-

Quoted 4 lines

1023
*

************************************************************************
**

Quoted 5 lines

****/

Index: linux/include/acpi/acconfig.h
===================================================================
--- linux.orig/include/acpi/acconfig.h 2007-01-25

11:27:25.577267818 -

Quoted 2 lines

0600
+++ linux/include/acpi/acconfig.h 2007-01-26 13:17:14.111002597

-0600

include/acpi/acconfig.h line 119

Quoted 12 lines
include/acpi/acconfig.h +2 -2
@@ -111,9 +111,9 @@
 
 #define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
 
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
+/* owner_id tracking. 32 entries allow for 1023 owner_ids */
 
-#define ACPI_NUM_OWNERID_MASKS          8
+#define ACPI_NUM_OWNERID_MASKS		32
 
 
 

/*********************************************************************** **

Quoted 7 lines

*****
*
Index: linux/include/acpi/aclocal.h
===================================================================
--- linux.orig/include/acpi/aclocal.h 2007-01-25 11:27:25.585268807 -
0600
+++ linux/include/acpi/aclocal.h 2007-01-26 13:20:06.148115848

-0600

Review static char *acpi_gbl_mutex_names[ACPI_N · line 123

Quoted 3 lines
(quoted diff) +0 -0
@@ -122,8 +122,8 @@ static char *acpi_gbl_mutex_names[ACPI_N
 
 /* Owner IDs are used to track namespace nodes for selective deletion

*/

Quoted 10 lines
include/acpi/aclocal.h +2 -3
-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX               0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX               0x3FF
 
 /* This Thread ID means that the mutex is not in use (unlocked) */
 
-

To unsubscribe from this list: send the line "unsubscribe linux-acpi"

in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

OK, I missed that.

Can you give us some idea of just how many SSDTs this machine loads?

Does it dynamically delete SSDTs also?

Thanks,
Bob

Quoted 6 lines

-----Original Message-----
From: Aaron Young [mailto:[email protected]]
Sent: Friday, January 26, 2007 4:03 PM
To: Moore, Robert
Cc: John Keller; [email protected]; [email protected]; linux- [email protected]; [email protected]; Alexey

Starikovskiy;

Quoted 8 lines

Brown, Len
Subject: Re: [PATCH 1/1] - increase acpi owner_id max

Quoted 4 lines

The OwnerId field within a namespace node is 8 bits, and this is the main constraint on the maximum OwnerId. You can't simply bump up the number of owner ids without changing this field.

Quoted 10 lines

Isn't this accomplished with the mod to aclocal.h below - i.e. by making a acpi_owner_id a u16 instead of a u8?:

-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX 0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX 0x3FF

Quoted 2 lines

If we need more than 255 owner Ids, the width of this field will

have to

Quoted 1 line
Quoted 1 line

be increased, or we will need to use a pointer for the field in

order to

Quoted 25 lines
Quoted 25 lines

maintain a linked list of all nodes owned by a particular owner.

Bob

Quoted 21 lines

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of John Keller
Sent: Friday, January 26, 2007 2:40 PM
To: [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; John Keller
Subject: [PATCH 1/1] - increase acpi owner_id max

To support systems with large IO configurations, this patch increases the number of available ACPI owner ids to 1023.

On SN platforms, we represent every populated root bus slot with an ACPI SSDT table containing info for every device and PPB attached to the slot. Each SSDT requires a unique ACPI owner id.

---

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
 drivers/acpi/utilities/utmisc.c |    6 +++---
 include/acpi/acconfig.h         |    4 ++--
 include/acpi/aclocal.h          |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

Index: linux/drivers/acpi/utilities/utmisc.c

=================================> > > --- linux.orig/drivers/acpi/utilities/utmisc.c 2007-01-25

Quoted 28 lines
Quoted 28 lines
Quoted 2 lines

11:27:25.509259412 -0600
+++ linux/drivers/acpi/utilities/utmisc.c 2007-01-26

13:16:09.551081284 -

Review acpi_status acpi_ut_allocate_owner_id(ac · line 148

Quoted 4 lines

0600

(quoted diff) +0 -0
@@ -147,7 +147,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 				/*
 				 * Construct encoded ID from the index

and bit

Review

Quoted 3 lines

position

(quoted diff) +0 -1
 				 *
-				 * Note: Last [j].k (bit 255) is never

used and is

Review

Quoted 2 lines

marked

(quoted diff) +1 -0
+				 * Note: Last [j].k (bit 1023) is never

used and

Quoted 2 lines

is marked
* permanently allocated (prevents +1

overflow)

Quoted 10 lines
drivers/acpi/utilities/utmisc.c +0 -1
 				 */
 				*owner_id > > > @@ -175,7 +175,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 	 */
 	status = AE_OWNER_ID_LIMIT;
 	ACPI_ERROR((AE_INFO,
-		    "Could not allocate new OwnerId (255 max),

AE_OWNER_ID_LIMIT"));

(quoted diff) +1 -0
+		    "Could not allocate new OwnerId (1023 max),

AE_OWNER_ID_LIMIT"));

Quoted 4 lines
Quoted 4 lines

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac · line 192

Quoted 4 lines

exit:

drivers/acpi/utilities/utmisc.c +0 -0
 	(void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
@@ -192,7 +192,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
  *              control method or unloading a table. Either way,

we

Quoted 4 lines
Quoted 4 lines

would

Quoted 3 lines
drivers/acpi/utilities/utmisc.c +0 -1
  *              ignore any error anyway.
  *
- * DESCRIPTION: Release a table or method owner ID.  Valid IDs

are 1

Quoted 3 lines
Quoted 3 lines

-

Quoted 2 lines

255
+ * DESCRIPTION: Release a table or method owner ID. Valid IDs

are 1

Quoted 6 lines
Quoted 6 lines

-

Quoted 4 lines

1023
*

************************************************************************

Quoted 5 lines
Quoted 5 lines

**

Quoted 4 lines

****/

Index: linux/include/acpi/acconfig.h

=================================> > > --- linux.orig/include/acpi/acconfig.h 2007-01-25

Quoted 11 lines
Quoted 11 lines

11:27:25.577267818 -

Quoted 2 lines

0600
+++ linux/include/acpi/acconfig.h 2007-01-26 13:17:14.111002597

-0600

Quoted 7 lines
include/acpi/acconfig.h +1 -1
@@ -111,9 +111,9 @@
 
 #define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
 
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
+/* owner_id tracking. 32 entries allow for 1023 owner_ids */
 
Quoted 6 lines
Quoted 6 lines

include/acpi/acconfig.h

Quoted 5 lines
include/acpi/acconfig.h +1 -1
-#define ACPI_NUM_OWNERID_MASKS          8
+#define ACPI_NUM_OWNERID_MASKS		32
 
 
 

/***********************************************************************

Quoted 5 lines
Quoted 5 lines

**

Quoted 4 lines

*****
*
Index: linux/include/acpi/aclocal.h

=================================> > > --- linux.orig/include/acpi/aclocal.h 2007-01-25
11:27:25.585268807 -

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

0600
+++ linux/include/acpi/aclocal.h 2007-01-26 13:20:06.148115848

-0600

Review static char *acpi_gbl_mutex_names[ACPI_N · line 123

Quoted 3 lines
(quoted diff) +0 -0
@@ -122,8 +122,8 @@ static char *acpi_gbl_mutex_names[ACPI_N
 
 /* Owner IDs are used to track namespace nodes for selective

deletion

Quoted 8 lines
Quoted 8 lines

*/

include/acpi/aclocal.h static char *acpi_gbl_mutex_names[ACPI_N

Quoted 7 lines
include/acpi/aclocal.h +2 -2
-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX               0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX               0x3FF
 
 /* This Thread ID means that the mutex is not in use (unlocked)

*/

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
(quoted diff) +0 -1
-

To unsubscribe from this list: send the line "unsubscribe

linux-acpi"

Quoted 4 lines
Quoted 4 lines

in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 4 lines

OK, I missed that.

Can you give us some idea of just how many SSDTs this machine loads?

It depends. SGI SN configs can vary dramatically. We create a unique SSDT for each populated PCI slot. The previous 255 SSDT id maximum could theoretically be surpassed on machines with huge amounts of IO - although configs with that much IO are extremely rare. We were just trying to avoid any (future) configuration limitations.

Quoted 2 lines

Does it dynamically delete SSDTs also?

Yes. Our SN hotplug driver will add or remove SSDTs from the system upon hotplugs/hotunplugs.

Quoted 176 lines

Thanks,
Bob

Quoted 6 lines

-----Original Message-----
From: Aaron Young [mailto:[email protected]]
Sent: Friday, January 26, 2007 4:03 PM
To: Moore, Robert
Cc: John Keller; [email protected]; [email protected]; linux- [email protected]; [email protected]; Alexey

Starikovskiy;

Quoted 8 lines

Brown, Len
Subject: Re: [PATCH 1/1] - increase acpi owner_id max

Quoted 4 lines

The OwnerId field within a namespace node is 8 bits, and this is the main constraint on the maximum OwnerId. You can't simply bump up the number of owner ids without changing this field.

Quoted 10 lines

Isn't this accomplished with the mod to aclocal.h below - i.e. by making a acpi_owner_id a u16 instead of a u8?:

-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX 0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX 0x3FF

Quoted 2 lines

If we need more than 255 owner Ids, the width of this field will

have to

Quoted 1 line
Quoted 1 line

be increased, or we will need to use a pointer for the field in

order to

Quoted 25 lines
Quoted 25 lines

maintain a linked list of all nodes owned by a particular owner.

Bob

Quoted 21 lines

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of John Keller
Sent: Friday, January 26, 2007 2:40 PM
To: [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; John Keller
Subject: [PATCH 1/1] - increase acpi owner_id max

To support systems with large IO configurations, this patch increases the number of available ACPI owner ids to 1023.

On SN platforms, we represent every populated root bus slot with an ACPI SSDT table containing info for every device and PPB attached to the slot. Each SSDT requires a unique ACPI owner id.

---

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
 drivers/acpi/utilities/utmisc.c |    6 +++---
 include/acpi/acconfig.h         |    4 ++--
 include/acpi/aclocal.h          |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

Index: linux/drivers/acpi/utilities/utmisc.c

=================================> > > > --- linux.orig/drivers/acpi/utilities/utmisc.c 2007-01-25

Quoted 28 lines
Quoted 28 lines
Quoted 2 lines

11:27:25.509259412 -0600
+++ linux/drivers/acpi/utilities/utmisc.c 2007-01-26

13:16:09.551081284 -

Review acpi_status acpi_ut_allocate_owner_id(ac · line 148

Quoted 4 lines

0600

(quoted diff) +0 -0
@@ -147,7 +147,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 				/*
 				 * Construct encoded ID from the index

and bit

Review

Quoted 3 lines

position

(quoted diff) +0 -1
 				 *
-				 * Note: Last [j].k (bit 255) is never

used and is

Review

Quoted 2 lines

marked

(quoted diff) +1 -0
+				 * Note: Last [j].k (bit 1023) is never

used and

Quoted 2 lines

is marked
* permanently allocated (prevents +1

overflow)

Quoted 10 lines
drivers/acpi/utilities/utmisc.c +0 -1
 				 */
 				*owner_id > > > > @@ -175,7 +175,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 	 */
 	status = AE_OWNER_ID_LIMIT;
 	ACPI_ERROR((AE_INFO,
-		    "Could not allocate new OwnerId (255 max),

AE_OWNER_ID_LIMIT"));

(quoted diff) +1 -0
+		    "Could not allocate new OwnerId (1023 max),

AE_OWNER_ID_LIMIT"));

Quoted 4 lines
Quoted 4 lines

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac · line 192

Quoted 4 lines

exit:

drivers/acpi/utilities/utmisc.c +0 -0
 	(void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
@@ -192,7 +192,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
  *              control method or unloading a table. Either way,

we

Quoted 4 lines
Quoted 4 lines

would

Quoted 3 lines
drivers/acpi/utilities/utmisc.c +0 -1
  *              ignore any error anyway.
  *
- * DESCRIPTION: Release a table or method owner ID.  Valid IDs

are 1

Quoted 3 lines
Quoted 3 lines

-

Quoted 2 lines

255
+ * DESCRIPTION: Release a table or method owner ID. Valid IDs

are 1

Quoted 6 lines
Quoted 6 lines

-

Quoted 4 lines

1023
*

************************************************************************

Quoted 5 lines
Quoted 5 lines

**

Quoted 4 lines

****/

Index: linux/include/acpi/acconfig.h

=================================> > > > --- linux.orig/include/acpi/acconfig.h 2007-01-25

Quoted 11 lines
Quoted 11 lines

11:27:25.577267818 -

Quoted 2 lines

0600
+++ linux/include/acpi/acconfig.h 2007-01-26 13:17:14.111002597

-0600

Quoted 7 lines
include/acpi/acconfig.h +1 -1
@@ -111,9 +111,9 @@
 
 #define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
 
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
+/* owner_id tracking. 32 entries allow for 1023 owner_ids */
 
Quoted 6 lines
Quoted 6 lines

include/acpi/acconfig.h

Quoted 5 lines
include/acpi/acconfig.h +1 -1
-#define ACPI_NUM_OWNERID_MASKS          8
+#define ACPI_NUM_OWNERID_MASKS		32
 
 
 

/***********************************************************************

Quoted 5 lines
Quoted 5 lines

**

Quoted 4 lines

*****
*
Index: linux/include/acpi/aclocal.h

=================================> > > > --- linux.orig/include/acpi/aclocal.h 2007-01-25
11:27:25.585268807 -

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

0600
+++ linux/include/acpi/aclocal.h 2007-01-26 13:20:06.148115848

-0600

Review static char *acpi_gbl_mutex_names[ACPI_N · line 123

Quoted 3 lines
(quoted diff) +0 -0
@@ -122,8 +122,8 @@ static char *acpi_gbl_mutex_names[ACPI_N
 
 /* Owner IDs are used to track namespace nodes for selective

deletion

Quoted 8 lines
Quoted 8 lines

*/

include/acpi/aclocal.h static char *acpi_gbl_mutex_names[ACPI_N

Quoted 7 lines
include/acpi/aclocal.h +2 -2
-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX               0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX               0x3FF
 
 /* This Thread ID means that the mutex is not in use (unlocked)

*/

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
(quoted diff) +0 -1
-

To unsubscribe from this list: send the line "unsubscribe

linux-acpi"

Quoted 4 lines
Quoted 4 lines

in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

I'm not sure that it is a great idea to increase the number of owner IDs "just in case", rather than in response to the needs of a specific machine.

Increasing the size of this field increases the size of every namespace node in the namespace. Remember, there can be thousands of namespace nodes, so this size increase may not be trivial. Also, the existing namespace node has been optimized for alignment and size such that increasing the size by 8 bits probably increases it by 32 bits as far as the memory manager is concerned (at least on some operating systems.)

Our feeling (the ACPICA team) has been that the existing 8-bit owner ID is sufficient for current machines; If and when this becomes truly insufficient, we are prepared to go to a linked list model to track namespace nodes owned by a particular table or control method.

Bob

Quoted 6 lines

-----Original Message-----
From: Aaron Young [mailto:[email protected]]
Sent: Tuesday, January 30, 2007 12:39 PM
To: Moore, Robert
Cc: John Keller; [email protected]; [email protected]; linux- [email protected]; [email protected]; Alexey

Starikovskiy;

Quoted 11 lines

Brown, Len
Subject: Re: [PATCH 1/1] - increase acpi owner_id max

Quoted 4 lines

OK, I missed that.

Can you give us some idea of just how many SSDTs this machine loads?

It depends. SGI SN configs can vary dramatically. We create a unique SSDT for each populated PCI slot. The previous 255 SSDT id maximum could theoretically be surpassed on machines with huge amounts of IO

-

Quoted 4 lines

although configs with that much IO are extremely rare. We were just trying to avoid any (future) configuration limitations.

Quoted 1 line
Quoted 15 lines
Quoted 1 line

Does it dynamically delete SSDTs also?

Yes. Our SN hotplug driver will add or remove SSDTs from the system upon hotplugs/hotunplugs.

Quoted 10 lines

Thanks,
Bob

Quoted 5 lines

-----Original Message-----
From: Aaron Young [mailto:[email protected]]
Sent: Friday, January 26, 2007 4:03 PM
To: Moore, Robert
Cc: John Keller; [email protected]; [email protected];

linux-

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

[email protected]; [email protected]; Alexey

Starikovskiy;

Quoted 5 lines

Brown, Len
Subject: Re: [PATCH 1/1] - increase acpi owner_id max

Quoted 2 lines

The OwnerId field within a namespace node is 8 bits, and this is

the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

main constraint on the maximum OwnerId. You can't simply bump up

the

Quoted 46 lines
Quoted 46 lines
Quoted 12 lines
Quoted 1 line

number of owner ids without changing this field.

Isn't this accomplished with the mod to aclocal.h below - i.e. by making a acpi_owner_id a u16 instead of a u8?:

-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX 0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX 0x3FF

Quoted 2 lines

If we need more than 255 owner Ids, the width of this field will

have to

Quoted 1 line
Quoted 1 line

be increased, or we will need to use a pointer for the field in

order to

Quoted 31 lines
Quoted 31 lines

maintain a linked list of all nodes owned by a particular owner.

Bob

Quoted 27 lines

-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of John Keller
Sent: Friday, January 26, 2007 2:40 PM
To: [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; John Keller
Subject: [PATCH 1/1] - increase acpi owner_id max

To support systems with large IO configurations, this patch increases the number of available ACPI owner ids to 1023.

On SN platforms, we represent every populated root bus slot with an ACPI SSDT table containing info for every device and PPB attached to the slot. Each SSDT requires a unique ACPI owner id.

---

 drivers/acpi/utilities/utmisc.c |    6 +++---
 include/acpi/acconfig.h         |    4 ++--
 include/acpi/aclocal.h          |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Index: linux/drivers/acpi/utilities/utmisc.c

===================================================================

Quoted 1 line
Quoted 1 line
Quoted 1 line

--- linux.orig/drivers/acpi/utilities/utmisc.c

2007-01-25

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

11:27:25.509259412 -0600
+++ linux/drivers/acpi/utilities/utmisc.c 2007-01-26

13:16:09.551081284 -

Review acpi_status acpi_ut_allocate_owner_id(ac · line 148

Quoted 4 lines

0600

(quoted diff) +0 -0
@@ -147,7 +147,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 				/*
 				 * Construct encoded ID from the

index

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

and bit

Review

Quoted 3 lines

position

(quoted diff) +0 -1
 				 *
-				 * Note: Last [j].k (bit 255) is

never

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

used and is

Review

Quoted 2 lines

marked

(quoted diff) +1 -0
+				 * Note: Last [j].k (bit 1023)

is never

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

used and

Quoted 2 lines

is marked
* permanently allocated

(prevents +1

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

overflow)

Quoted 11 lines
drivers/acpi/utilities/utmisc.c +1 -1
 				 */
 				*owner_id =
@@ -175,7 +175,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
 	 */
 	status = AE_OWNER_ID_LIMIT;
 	ACPI_ERROR((AE_INFO,
-		    "Could not allocate new OwnerId (255 max),
 AE_OWNER_ID_LIMIT"));
+		    "Could not allocate new OwnerId (1023 max),
 AE_OWNER_ID_LIMIT"));
 
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

drivers/acpi/utilities/utmisc.c acpi_status acpi_ut_allocate_owner_id(ac · line 192

Quoted 4 lines

exit:

drivers/acpi/utilities/utmisc.c +0 -0
 	(void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
@@ -192,7 +192,7 @@ acpi_status acpi_ut_allocate_owner_id(ac
  *              control method or unloading a table. Either

way,

Quoted 5 lines
Quoted 5 lines

we

Quoted 4 lines
Quoted 4 lines

would

Quoted 3 lines
drivers/acpi/utilities/utmisc.c +0 -1
  *              ignore any error anyway.
  *
- * DESCRIPTION: Release a table or method owner ID.  Valid

IDs

Quoted 4 lines
Quoted 4 lines

are 1

Quoted 3 lines
Quoted 3 lines

-

Quoted 2 lines

255
+ * DESCRIPTION: Release a table or method owner ID. Valid

IDs

Quoted 8 lines
Quoted 8 lines

are 1

Quoted 6 lines
Quoted 6 lines

-

Quoted 4 lines

1023
*

************************************************************************

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

**

Quoted 4 lines

****/

Index: linux/include/acpi/acconfig.h

===================================================================

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

--- linux.orig/include/acpi/acconfig.h 2007-01-25

11:27:25.577267818 -

Quoted 2 lines

0600
+++ linux/include/acpi/acconfig.h 2007-01-26

13:17:14.111002597

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

-0600

Quoted 7 lines
include/acpi/acconfig.h +1 -1
@@ -111,9 +111,9 @@
 
 #define ACPI_SYSMEM_REGION_WINDOW_SIZE  4096
 
-/* owner_id tracking. 8 entries allows for 255 owner_ids */
+/* owner_id tracking. 32 entries allow for 1023 owner_ids */
 
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines

include/acpi/acconfig.h

Quoted 5 lines
include/acpi/acconfig.h +1 -1
-#define ACPI_NUM_OWNERID_MASKS          8
+#define ACPI_NUM_OWNERID_MASKS		32
 
 
 

/***********************************************************************

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

**

Quoted 4 lines

*****
*
Index: linux/include/acpi/aclocal.h

===================================================================

Quoted 1 line
Quoted 1 line
Quoted 1 line

--- linux.orig/include/acpi/aclocal.h 2007-01-25

11:27:25.585268807 -

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

0600
+++ linux/include/acpi/aclocal.h 2007-01-26

13:20:06.148115848

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

-0600

Review static char *acpi_gbl_mutex_names[ACPI_N · line 123

Quoted 3 lines
(quoted diff) +0 -0
@@ -122,8 +122,8 @@ static char *acpi_gbl_mutex_names[ACPI_N
 
 /* Owner IDs are used to track namespace nodes for selective

deletion

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

*/

include/acpi/aclocal.h static char *acpi_gbl_mutex_names[ACPI_N

Quoted 7 lines
include/acpi/aclocal.h +2 -2
-typedef u8 acpi_owner_id;
-#define ACPI_OWNER_ID_MAX               0xFF
+typedef u16 acpi_owner_id;
+#define ACPI_OWNER_ID_MAX               0x3FF
 
 /* This Thread ID means that the mutex is not in use

(unlocked)

Quoted 8 lines
Quoted 8 lines

*/

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
(quoted diff) +0 -1
-

To unsubscribe from this list: send the line "unsubscribe

linux-acpi"

Quoted 3 lines
Quoted 3 lines

in

Quoted 2 lines

the body of a message to [email protected] More majordomo info at

http://vger.kernel.org/majordomo-info.html

Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

-
To unsubscribe from this list: send the line "unsubscribe

linux-acpi" in

Quoted 3 lines
Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html