#
357ab76e |
|
07-Mar-2024 |
milek7 <me@milek7.pl> |
acpi: Fix cleanup at initialization failure. Aside from leaking resources it caused a race that could segfault DPC thread when its stack was unmapped. Change-Id: If6943e7fd834cac8f9807b85ecbb77e227f47a94 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7512 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
e2f1a42e |
|
17-Dec-2023 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: add device tree attributes from _CLS if available means B_DEVICE_TYPE, B_DEVICE_SUB_TYPE, B_DEVICE_INTERFACE. _CLS is rare, it means I don't own devices with this attribute. from the spec: _CLS: Class Code – supplies OSPM with the PCI-defined class, subclass and programming interface for a device. Optional. Change-Id: I4f7b7ed66cbe6b4ff4511cb13df2af218350a5d8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7210 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
748b4883 |
|
28-Mar-2022 |
milek7 <me@milek7.pl> |
ACPI: Make it compile on architectures other than x86. Change-Id: Ie72dd2c6a571234399dc99d3573a5de19252737e Reviewed-on: https://review.haiku-os.org/c/haiku/+/5269 Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
526752bc |
|
15-Apr-2020 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: add ACPI_DEVICE_UID_ITEM Change-Id: I6f1dba7d9d757859375e2339141ba92559d5cf9b Reviewed-on: https://review.haiku-os.org/c/haiku/+/2484 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
|
#
8f6d6057 |
|
30-Mar-2020 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: add walk_namespace bus and device method Change-Id: I03fa43e0ba9b37f6db43f6ff16bbca892684cc49 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2446 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
b5dba2e4 |
|
15-Mar-2020 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: add ACPI_DEVICE_ADDR_ITEM and ACPI_DEVICE_CID_ITEM for device nodes ACPI_DEVICE_HID_ITEM is now optional, instead of an empty string. Change-Id: I352ffaaad377659f650a0b8c0d56e40a68b739c3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2420 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
b9491db9 |
|
21-Jun-2018 |
Augustin Cavalier <waddlesplash@gmail.com> |
ACPI: Remove useless if-test.
|
#
dd970200 |
|
28-Mar-2017 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
When logging, use correct function name.
|
#
7c9a09d0 |
|
07-Aug-2016 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Casting string constant to ACPI_STRING to fix warning
|
#
b64e8511 |
|
17-Jan-2016 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Update ACPICA to 20160108, removed common. Changelog: https://acpica.org/sites/acpica/files/changes_29.txt * This is based on the upgrade waddlesplash aborted due to a bug in ACPICA which has since been fixed. * Some ACPICA code is excluded until needed. (You may want to compare our acpica dir to ACPICA if you are missing functions.)
|
#
599289f2 |
|
01-Jan-2016 |
Augustin Cavalier <waddlesplash@gmail.com> |
ACPI: Revert the upgrade. I don't have any hardware that reproduces the KDLs, and the developers that do don't seem to have time to test / debug it, so I'm just reverting.
|
#
aa89e2de |
|
31-Dec-2015 |
Augustin Cavalier <waddlesplash@gmail.com> |
ACPI: Use AcpiGbl_OverrideDefaultRegionHandlers and do the init ourselves. May help with the recent boot failures, according to a post on the ACPICA-dev mailing list.
|
#
d4fb4ebd |
|
29-Dec-2015 |
Augustin Cavalier <waddlesplash@gmail.com> |
ACPI: Remove manual address space handler initialization. These are now done in AcpiInitializeSubsystem(), as part of the early init so they can be present when the tables are loaded. Should fix ACPI not working since the merge.
|
#
e226d1d0 |
|
13-Sep-2015 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Update ACPICA to 20150818. Previous update was 20140724. Changes at: https://acpica.org/sites/acpica/files/changes_25.txt
|
#
1c355970 |
|
09-Jan-2015 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Only add global handlers on debug. It is only useful for ACPI devs. If the need ever arise it can easily be reworked to be enabled / disabled at runtime. For everyone else it was just syslog garbage.
|
#
6f04ad03 |
|
08-Jan-2015 |
Axel Dörfler <axeld@pinc-software.de> |
ACPI: increased acpi DPC thread priority. * Since the power status outages only happen on load, it's likely that we run some code too late (I haven't looked at the ACPI specs, though). * In any case, I now get wrong results much less often.
|
#
3594baab |
|
13-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add get_name and fix get_next_object. TODO: Need to add defines or enum for nameType.
|
#
c262488a |
|
10-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Codestyle.
|
#
15d8a434 |
|
10-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add function to walk through children. Without losing my sanity that is. ACPI API refactoring will happen some day.
|
#
62f4f056 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix include order.
|
#
76a17ee2 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
No semicolons on defines.
|
#
1c7917f3 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Tell ACPI if we use PIC or APIC.
|
#
b4908ff5 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Todo about walking namespace and init _PRW's. This needs a deeper understanding and brighter mind than mine.
|
#
5048bd46 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add a global notify handler for logging.
|
#
78d6bbf1 |
|
04-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix indention issues. Two tabs since it's inside a function call inside an if.
|
#
49b9fce5 |
|
28-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
strcpy had the wrong arg order.
|
#
f63a0d87 |
|
28-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Use strcpy, fix style issues.
|
#
fbe9d6de |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add a global log GPE handler, enable all runtime GPE's. For now we only log messages.
|
#
c5baf460 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
DRY - Use a helper function to check and log failures.
|
#
0842eba0 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Use ACPICA defaults, don't set interpreterslack to true anymore. ACPIA has internal code to detect and fix most problems now.
|
#
278d57f2 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix warning printf should use %d.
|
#
b7c15bf0 |
|
01-Nov-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: use AcpiGetObjectInfo() for get_device_hid().
|
#
daf95c6d |
|
30-Oct-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: use acpi_event_handler instead of interrupt_handler.
|
#
ce2d7d5a |
|
21-Oct-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: use walk_resources to find embedded controller I/O ports. * export walk_resources and use it * removed SmallResourceData * added embedded controller module for x86_64
|
#
92d766df |
|
15-Dec-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Pass a handle to evaluate_object as start point.
|
#
0a0af895 |
|
17-Aug-2012 |
Yongcong Du <ycdu.vmcore@gmail.com> |
acpi: export read_bit_register and write_bit_register acpi cpuidle needs such acpi functions Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
|
#
9b0d045c |
|
03-Nov-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Update to ACPICA 20121018. This is an update from 20120711 and A LOT has happened since then. See https://acpica.org/download/changes.txt for all the changes.
|
#
953ca707 |
|
09-Sep-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Removing the acpi_avoid_full_init config option. I've never heard anyone that been helped by that setting.
|
#
6d51de48 |
|
15-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Disabling interrupts before entering sleepstates. This didn't work properly before but seems to work fine now. Also added a panic for now, to find out if it is an issue atm.
|
#
cad6c2c5 |
|
14-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix compilation after rename and switch to cpp.
|
#
775afec4 |
|
14-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Simplify source file names and go from .c to .cpp
|
#
e226d1d04f5937c7d6fa4f002ad35b691cbf27a8 |
|
13-Sep-2015 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Update ACPICA to 20150818. Previous update was 20140724. Changes at: https://acpica.org/sites/acpica/files/changes_25.txt
|
#
1c355970ab5880c3fdd00a0654ff4ba54e1fc0bc |
|
09-Jan-2015 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Only add global handlers on debug. It is only useful for ACPI devs. If the need ever arise it can easily be reworked to be enabled / disabled at runtime. For everyone else it was just syslog garbage.
|
#
6f04ad0358fde871c86238cda5d9dc21d67ed40b |
|
08-Jan-2015 |
Axel Dörfler <axeld@pinc-software.de> |
ACPI: increased acpi DPC thread priority. * Since the power status outages only happen on load, it's likely that we run some code too late (I haven't looked at the ACPI specs, though). * In any case, I now get wrong results much less often.
|
#
3594baabf88289684adfb6ba9d5759c3b121593c |
|
13-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add get_name and fix get_next_object. TODO: Need to add defines or enum for nameType.
|
#
c262488a269080a1f764b5af42e7cd693fabbb81 |
|
10-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Codestyle.
|
#
15d8a434d02aa7ee180d1bb613aaabfff61ad965 |
|
10-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add function to walk through children. Without losing my sanity that is. ACPI API refactoring will happen some day.
|
#
62f4f056a7f187b91992258c2f61799cea54dd5e |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix include order.
|
#
76a17ee2266e345f7281ab14247679b1d79a758a |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
No semicolons on defines.
|
#
1c7917f33e5b26fac8b7196d64599a872364d344 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Tell ACPI if we use PIC or APIC.
|
#
b4908ff5d8a49c414f210624a91c1fb7b4b5c8d2 |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Todo about walking namespace and init _PRW's. This needs a deeper understanding and brighter mind than mine.
|
#
5048bd4620f0aa7e10e5ac221f6fe99679f467ff |
|
05-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add a global notify handler for logging.
|
#
78d6bbf1e563cf65dfd41c30f5bbc48f6d8015d4 |
|
04-Sep-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix indention issues. Two tabs since it's inside a function call inside an if.
|
#
49b9fce5ecdc6d109e2e5362981a2ba74c6a9901 |
|
28-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
strcpy had the wrong arg order.
|
#
f63a0d873e52bb4e54508dc7ebf42c85edfd9930 |
|
28-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Use strcpy, fix style issues.
|
#
fbe9d6de535dd675291b58292910cc905ee676c3 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add a global log GPE handler, enable all runtime GPE's. For now we only log messages.
|
#
c5baf4605501efe425cb21c048f6d51aa9ceb303 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
DRY - Use a helper function to check and log failures.
|
#
0842eba04e92437150ca6f0455193f83cc957ee8 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Use ACPICA defaults, don't set interpreterslack to true anymore. ACPIA has internal code to detect and fix most problems now.
|
#
278d57f27bd8e540cf71c7deac7989e68b3eba11 |
|
27-Aug-2014 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix warning printf should use %d.
|
#
b7c15bf02a57e54f0abe765380b66171a1c21965 |
|
01-Nov-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: use AcpiGetObjectInfo() for get_device_hid().
|
#
daf95c6d8cac174aed8b1bd3c3482e71918e014d |
|
30-Oct-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: use acpi_event_handler instead of interrupt_handler.
|
#
ce2d7d5ac8d220cb661fd12529fd5c88f5d80d6e |
|
21-Oct-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
acpi: use walk_resources to find embedded controller I/O ports. * export walk_resources and use it * removed SmallResourceData * added embedded controller module for x86_64
|
#
92d766df7c465761a8bbddc4e17c38af02fb2833 |
|
15-Dec-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Pass a handle to evaluate_object as start point.
|
#
0a0af8957e4ad48168cb26dba4a058f7eb0e4892 |
|
17-Aug-2012 |
Yongcong Du <ycdu.vmcore@gmail.com> |
acpi: export read_bit_register and write_bit_register acpi cpuidle needs such acpi functions Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
|
#
9b0d045c59c1d03dbedf8c76ac88efe6bda7d8d0 |
|
03-Nov-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Update to ACPICA 20121018. This is an update from 20120711 and A LOT has happened since then. See https://acpica.org/download/changes.txt for all the changes.
|
#
953ca70721a5f8fe0f5aaa24ad6ac211a3097552 |
|
09-Sep-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Removing the acpi_avoid_full_init config option. I've never heard anyone that been helped by that setting.
|
#
6d51de482c740d2cc722ea6a39f0c29c6a6fb64e |
|
15-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Disabling interrupts before entering sleepstates. This didn't work properly before but seems to work fine now. Also added a panic for now, to find out if it is an issue atm.
|
#
cad6c2c536aba66ada9eb1e65e1ba7bc62ff0feb |
|
14-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Fix compilation after rename and switch to cpp.
|
#
775afec4cc4fbd33e3a1d42d9376b089963e76fe |
|
14-Jul-2012 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Simplify source file names and go from .c to .cpp
|