aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/firmware-guide/acpi/dsd/data-node-references.rst6
-rw-r--r--Documentation/firmware-guide/acpi/dsd/graph.rst120
-rw-r--r--drivers/acpi/device_sysfs.c6
-rw-r--r--include/acpi/acpi_bus.h2
-rw-r--r--include/acpi/acpixf.h2
-rw-r--r--include/acpi/platform/aclinux.h10
6 files changed, 74 insertions, 72 deletions
diff --git a/Documentation/firmware-guide/acpi/dsd/data-node-references.rst b/Documentation/firmware-guide/acpi/dsd/data-node-references.rst
index 1351984e767c..febccbc5689d 100644
--- a/Documentation/firmware-guide/acpi/dsd/data-node-references.rst
+++ b/Documentation/firmware-guide/acpi/dsd/data-node-references.rst
@@ -45,8 +45,8 @@ the ANOD object which is also the final target node of the reference.
45 Name (_DSD, Package () { 45 Name (_DSD, Package () {
46 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), 46 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
47 Package () { 47 Package () {
48 Package () { "node@0", NOD0 }, 48 Package () { "node@0", "NOD0" },
49 Package () { "node@1", NOD1 }, 49 Package () { "node@1", "NOD1" },
50 } 50 }
51 }) 51 })
52 Name (NOD0, Package() { 52 Name (NOD0, Package() {
@@ -58,7 +58,7 @@ the ANOD object which is also the final target node of the reference.
58 Name (NOD1, Package() { 58 Name (NOD1, Package() {
59 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), 59 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
60 Package () { 60 Package () {
61 Package () { "anothernode", ANOD }, 61 Package () { "anothernode", "ANOD" },
62 } 62 }
63 }) 63 })
64 Name (ANOD, Package() { 64 Name (ANOD, Package() {
diff --git a/Documentation/firmware-guide/acpi/dsd/graph.rst b/Documentation/firmware-guide/acpi/dsd/graph.rst
index e0baed35b037..1a6ce7afba5e 100644
--- a/Documentation/firmware-guide/acpi/dsd/graph.rst
+++ b/Documentation/firmware-guide/acpi/dsd/graph.rst
@@ -45,7 +45,7 @@ with "port" and must be followed by the "@" character and the number of the
45port as its key. The target object it refers to should be called "PRTX", where 45port as its key. The target object it refers to should be called "PRTX", where
46"X" is the number of the port. An example of such a package would be:: 46"X" is the number of the port. An example of such a package would be::
47 47
48 Package() { "port@4", PRT4 } 48 Package() { "port@4", "PRT4" }
49 49
50Further on, endpoints are located under the port nodes. The hierarchical 50Further on, endpoints are located under the port nodes. The hierarchical
51data extension key of the endpoint nodes must begin with 51data extension key of the endpoint nodes must begin with
@@ -54,7 +54,7 @@ endpoint. The object it refers to should be called "EPXY", where "X" is the
54number of the port and "Y" is the number of the endpoint. An example of such a 54number of the port and "Y" is the number of the endpoint. An example of such a
55package would be:: 55package would be::
56 56
57 Package() { "endpoint@0", EP40 } 57 Package() { "endpoint@0", "EP40" }
58 58
59Each port node contains a property extension key "port", the value of which is 59Each port node contains a property extension key "port", the value of which is
60the number of the port. Each endpoint is similarly numbered with a property 60the number of the port. Each endpoint is similarly numbered with a property
@@ -82,68 +82,68 @@ A simple example of this is show below::
82 82
83 Scope (\_SB.PCI0.I2C2) 83 Scope (\_SB.PCI0.I2C2)
84 { 84 {
85 Device (CAM0) 85 Device (CAM0)
86 { 86 {
87 Name (_DSD, Package () { 87 Name (_DSD, Package () {
88 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 88 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
89 Package () { 89 Package () {
90 Package () { "compatible", Package () { "nokia,smia" } }, 90 Package () { "compatible", Package () { "nokia,smia" } },
91 }, 91 },
92 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), 92 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
93 Package () { 93 Package () {
94 Package () { "port@0", PRT0 }, 94 Package () { "port@0", "PRT0" },
95 } 95 }
96 }) 96 })
97 Name (PRT0, Package() { 97 Name (PRT0, Package() {
98 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 98 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
99 Package () { 99 Package () {
100 Package () { "reg", 0 }, 100 Package () { "reg", 0 },
101 }, 101 },
102 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), 102 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
103 Package () { 103 Package () {
104 Package () { "endpoint@0", EP00 }, 104 Package () { "endpoint@0", "EP00" },
105 } 105 }
106 }) 106 })
107 Name (EP00, Package() { 107 Name (EP00, Package() {
108 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 108 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
109 Package () { 109 Package () {
110 Package () { "reg", 0 }, 110 Package () { "reg", 0 },
111 Package () { "remote-endpoint", Package() { \_SB.PCI0.ISP, "port@4", "endpoint@0" } }, 111 Package () { "remote-endpoint", Package() { \_SB.PCI0.ISP, "port@4", "endpoint@0" } },
112 } 112 }
113 }) 113 })
114 } 114 }
115 } 115 }
116 116
117 Scope (\_SB.PCI0) 117 Scope (\_SB.PCI0)
118 { 118 {
119 Device (ISP) 119 Device (ISP)
120 { 120 {
121 Name (_DSD, Package () { 121 Name (_DSD, Package () {
122 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), 122 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
123 Package () { 123 Package () {
124 Package () { "port@4", PRT4 }, 124 Package () { "port@4", "PRT4" },
125 } 125 }
126 }) 126 })
127 127
128 Name (PRT4, Package() { 128 Name (PRT4, Package() {
129 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 129 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
130 Package () { 130 Package () {
131 Package () { "reg", 4 }, /* CSI-2 port number */ 131 Package () { "reg", 4 }, /* CSI-2 port number */
132 }, 132 },
133 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), 133 ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
134 Package () { 134 Package () {
135 Package () { "endpoint@0", EP40 }, 135 Package () { "endpoint@0", "EP40" },
136 } 136 }
137 }) 137 })
138 138
139 Name (EP40, Package() { 139 Name (EP40, Package() {
140 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), 140 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
141 Package () { 141 Package () {
142 Package () { "reg", 0 }, 142 Package () { "reg", 0 },
143 Package () { "remote-endpoint", Package () { \_SB.PCI0.I2C2.CAM0, "port@0", "endpoint@0" } }, 143 Package () { "remote-endpoint", Package () { \_SB.PCI0.I2C2.CAM0, "port@0", "endpoint@0" } },
144 } 144 }
145 }) 145 })
146 } 146 }
147 } 147 }
148 148
149Here, the port 0 of the "CAM0" device is connected to the port 4 of 149Here, the port 0 of the "CAM0" device is connected to the port 4 of
diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c
index 8940054d6250..78c2653bf020 100644
--- a/drivers/acpi/device_sysfs.c
+++ b/drivers/acpi/device_sysfs.c
@@ -428,8 +428,10 @@ static ssize_t acpi_device_adr_show(struct device *dev,
428{ 428{
429 struct acpi_device *acpi_dev = to_acpi_device(dev); 429 struct acpi_device *acpi_dev = to_acpi_device(dev);
430 430
431 return sprintf(buf, "0x%08x\n", 431 if (acpi_dev->pnp.bus_address > U32_MAX)
432 (unsigned int)(acpi_dev->pnp.bus_address)); 432 return sprintf(buf, "0x%016llx\n", acpi_dev->pnp.bus_address);
433 else
434 return sprintf(buf, "0x%08llx\n", acpi_dev->pnp.bus_address);
433} 435}
434static DEVICE_ATTR(adr, 0444, acpi_device_adr_show, NULL); 436static DEVICE_ATTR(adr, 0444, acpi_device_adr_show, NULL);
435 437
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 2a462cf4eaa9..52d4375bde9d 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -230,7 +230,7 @@ struct acpi_device_dir {
230/* Plug and Play */ 230/* Plug and Play */
231 231
232typedef char acpi_bus_id[8]; 232typedef char acpi_bus_id[8];
233typedef unsigned long acpi_bus_address; 233typedef u64 acpi_bus_address;
234typedef char acpi_device_name[40]; 234typedef char acpi_device_name[40];
235typedef char acpi_device_class[20]; 235typedef char acpi_device_class[20];
236 236
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 3b1b1d0e4c33..4a8a05401fb5 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -12,7 +12,7 @@
12 12
13/* Current ACPICA subsystem version in YYYYMMDD format */ 13/* Current ACPICA subsystem version in YYYYMMDD format */
14 14
15#define ACPI_CA_VERSION 0x20190405 15#define ACPI_CA_VERSION 0x20190509
16 16
17#include <acpi/acconfig.h> 17#include <acpi/acconfig.h>
18#include <acpi/actypes.h> 18#include <acpi/actypes.h>
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 624b90b34085..310501994c02 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -66,6 +66,11 @@
66 66
67#define ACPI_INIT_FUNCTION __init 67#define ACPI_INIT_FUNCTION __init
68 68
69/* Use a specific bugging default separate from ACPICA */
70
71#undef ACPI_DEBUG_DEFAULT
72#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR)
73
69#ifndef CONFIG_ACPI 74#ifndef CONFIG_ACPI
70 75
71/* External globals for __KERNEL__, stubs is needed */ 76/* External globals for __KERNEL__, stubs is needed */
@@ -82,11 +87,6 @@
82#define ACPI_NO_ERROR_MESSAGES 87#define ACPI_NO_ERROR_MESSAGES
83#undef ACPI_DEBUG_OUTPUT 88#undef ACPI_DEBUG_OUTPUT
84 89
85/* Use a specific bugging default separate from ACPICA */
86
87#undef ACPI_DEBUG_DEFAULT
88#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR)
89
90/* External interface for __KERNEL__, stub is needed */ 90/* External interface for __KERNEL__, stub is needed */
91 91
92#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \ 92#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \