| #
fc2ed9d9
|
| 06-Oct-2025 |
Aymeric Wibo <obiwac@FreeBSD.org> |
power: Add stype parameter in power_suspend/resume eventhandlers
Add enum sleep_type stype parameter in power_suspend/resume event handlers, as with the introduction of s2idle there are more than on
power: Add stype parameter in power_suspend/resume eventhandlers
Add enum sleep_type stype parameter in power_suspend/resume event handlers, as with the introduction of s2idle there are more than one type of suspend.
Reviewed by: bz Approved by: bz Sponsored by: The FreeBSD Foundation
show more ...
|
| #
3fdf11fe
|
| 21-Jun-2024 |
Baptiste Daroussin <bapt@FreeBSD.org> |
acpi_timer: remove leftovers from Garbage-collect ACPI-safe timer and friends
Reviewed by: cperciva Differential Revision: https://reviews.freebsd.org/D45669
|
| #
2933c05c
|
| 21-Jun-2024 |
Baptiste Daroussin <bapt@FreeBSD.org> |
acpi_timer: remove unused variable
the fixes kernel building after 00d061855deb
|
| #
00d06185
|
| 21-Jun-2024 |
Colin Percival <cperciva@FreeBSD.org> |
Garbage-collect ACPI-safe timer and friends
In 2001 when the ACPI timer was introduced, it included code to check for a bug present in some Pentium II and Pentium III chipsets; if the bug was found
Garbage-collect ACPI-safe timer and friends
In 2001 when the ACPI timer was introduced, it included code to check for a bug present in some Pentium II and Pentium III chipsets; if the bug was found to be present, ACPI-safe (which was slower but had a workaround for the bug) would be used rather than ACPI-fast (which read the same timer but without the workaround).
In a8b89dff6ac0 (September 2021) I disabled this check by default, with a loader tunable available to re-enable it; I announced at the time that it would go away in FreeBSD 15 if I didn't receive any reports of problems. I have received no such problems, so this code is now going away.
The debug.acpi.timer_test loader variable triggered a lengthy (in fact, infinitely long) test of the ACPI timer and appears to have been introduced as part of the process of writing the ACPI timer (and the associated ACPI-safe workaround) in 2001; since we are dropping support for systems with this ACPI bug, there is no need to keep that test code either.
show more ...
|
| #
bad36a49
|
| 04-Feb-2024 |
Mark Johnston <markj@FreeBSD.org> |
acpi: Use device_set_descf()
No functional change intended.
MFC after: 1 week
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
c45bc025
|
| 26-Jul-2022 |
Dimitry Andric <dim@FreeBSD.org> |
Adjust function definition in acpi_timer.c to avoid clang 15 warnings
With clang 15, the following -Werror warning is produced:
sys/dev/acpica/acpi_timer.c:402:16: error: a function declaration
Adjust function definition in acpi_timer.c to avoid clang 15 warnings
With clang 15, the following -Werror warning is produced:
sys/dev/acpica/acpi_timer.c:402:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] acpi_timer_test() ^ void
This is because acpi_timer_test() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration.
MFC after: 3 days
show more ...
|
| #
916a5d8a
|
| 19-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
acpi: Remove unused devclass arguments to DRIVER_MODULE.
|
| #
3e68d2c5
|
| 27-Dec-2021 |
Alexander Motin <mav@FreeBSD.org> |
acpica: Remove CTLFLAG_NEEDGIANT from most sysctls.
MFC after: 2 weeks
|
| #
a8b89dff
|
| 07-Sep-2021 |
Colin Percival <cperciva@FreeBSD.org> |
Disable acpi_timer_test by default
This disables testing the ACPI timer by default, forcing the use of ACPI-fast rather than ACPI-safe. The broken-ACPI-timers workaround can be re-enabled by settin
Disable acpi_timer_test by default
This disables testing the ACPI timer by default, forcing the use of ACPI-fast rather than ACPI-safe. The broken-ACPI-timers workaround can be re-enabled by setting the hw.acpi.timer_test_enabled=1 tunable.
This speeds up the FreeBSD boot process by 140 ms on an EC2 c5.xlarge instance.
This change will not be MFCed.
Assuming no problems are reported, acpi_timer_test, the associated tunable, and the ACPI-safe timecounter should be removed in FreeBSD 15.
Relnotes: The ACPI-safe timer is disabled in favour of ACPI-fast; if timekeeping issues are observed, please test with hw.acpi.timer_test_enabled=1 in loader.conf and report if that fixes the problem.
show more ...
|
| #
3c253d03
|
| 07-Sep-2021 |
Colin Percival <cperciva@FreeBSD.org> |
Hide acpi_timer_test behind a tunable
When hw.acpi.timer_test_enabled is set to 0, this makes acpi_timer_test return 1 without actually testing the ACPI timer; this results in the ACPI-fast timecoun
Hide acpi_timer_test behind a tunable
When hw.acpi.timer_test_enabled is set to 0, this makes acpi_timer_test return 1 without actually testing the ACPI timer; this results in the ACPI-fast timecounter always being used rather than potentially using ACPI-safe.
The ACPI timer testing was introduced in 2002 as a workaround for errata in Pentium II and Pentium III chipsets, and is unlikely to be needed in 2021.
While I'm here, add TSENTER/TSEXIT to make it easier to see the time spent on the test (if it is enabled).
Reviewed by: allanjude, imp MFC After: 1 week
show more ...
|
| #
82c28121
|
| 01-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
acpica: clean up empty lines in .c and .h files
|
| #
4149c6a3
|
| 10-Jun-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Remove double-calls to tc_get_timecount() to warm timecounters.
It seems that second call does not add any useful state change for all implemented timecounters.
Discussed with: bde Sponsored by: Th
Remove double-calls to tc_get_timecount() to warm timecounters.
It seems that second call does not add any useful state change for all implemented timecounters.
Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
show more ...
|
| #
75dfc66c
|
| 27-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358269 through r358399.
|
| #
7029da5c
|
| 26-Feb-2020 |
Pawel Biernacki <kaktus@FreeBSD.org> |
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly mark
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly marked). Use it in preparation for a general review of all nodes.
This is non-functional change that adds annotations to SYSCTL_NODE and SYSCTL_PROC nodes using one of the soon-to-be-required flags.
Mark all obvious cases as MPSAFE. All entries that haven't been marked as MPSAFE before are by default marked as NEEDGIANT
Approved by: kib (mentor, blanket) Commented by: kib, gallatin, melifaro Differential Revision: https://reviews.freebsd.org/D23718
show more ...
|
| #
fc2ed9d9
|
| 06-Oct-2025 |
Aymeric Wibo <obiwac@FreeBSD.org> |
power: Add stype parameter in power_suspend/resume eventhandlers
Add enum sleep_type stype parameter in power_suspend/resume event handlers, as with the introduction of s2idle there are more than on
power: Add stype parameter in power_suspend/resume eventhandlers
Add enum sleep_type stype parameter in power_suspend/resume event handlers, as with the introduction of s2idle there are more than one type of suspend.
Reviewed by: bz Approved by: bz Sponsored by: The FreeBSD Foundation
show more ...
|
| #
3fdf11fe
|
| 21-Jun-2024 |
Baptiste Daroussin <bapt@FreeBSD.org> |
acpi_timer: remove leftovers from Garbage-collect ACPI-safe timer and friends
Reviewed by: cperciva Differential Revision: https://reviews.freebsd.org/D45669
|
| #
2933c05c
|
| 21-Jun-2024 |
Baptiste Daroussin <bapt@FreeBSD.org> |
acpi_timer: remove unused variable
the fixes kernel building after 00d061855deb
|
| #
00d06185
|
| 21-Jun-2024 |
Colin Percival <cperciva@FreeBSD.org> |
Garbage-collect ACPI-safe timer and friends
In 2001 when the ACPI timer was introduced, it included code to check for a bug present in some Pentium II and Pentium III chipsets; if the bug was found
Garbage-collect ACPI-safe timer and friends
In 2001 when the ACPI timer was introduced, it included code to check for a bug present in some Pentium II and Pentium III chipsets; if the bug was found to be present, ACPI-safe (which was slower but had a workaround for the bug) would be used rather than ACPI-fast (which read the same timer but without the workaround).
In a8b89dff6ac0 (September 2021) I disabled this check by default, with a loader tunable available to re-enable it; I announced at the time that it would go away in FreeBSD 15 if I didn't receive any reports of problems. I have received no such problems, so this code is now going away.
The debug.acpi.timer_test loader variable triggered a lengthy (in fact, infinitely long) test of the ACPI timer and appears to have been introduced as part of the process of writing the ACPI timer (and the associated ACPI-safe workaround) in 2001; since we are dropping support for systems with this ACPI bug, there is no need to keep that test code either.
show more ...
|
| #
bad36a49
|
| 04-Feb-2024 |
Mark Johnston <markj@FreeBSD.org> |
acpi: Use device_set_descf()
No functional change intended.
MFC after: 1 week
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
c45bc025
|
| 26-Jul-2022 |
Dimitry Andric <dim@FreeBSD.org> |
Adjust function definition in acpi_timer.c to avoid clang 15 warnings
With clang 15, the following -Werror warning is produced:
sys/dev/acpica/acpi_timer.c:402:16: error: a function declaration
Adjust function definition in acpi_timer.c to avoid clang 15 warnings
With clang 15, the following -Werror warning is produced:
sys/dev/acpica/acpi_timer.c:402:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] acpi_timer_test() ^ void
This is because acpi_timer_test() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration.
MFC after: 3 days
show more ...
|
| #
916a5d8a
|
| 19-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
acpi: Remove unused devclass arguments to DRIVER_MODULE.
|
| #
3e68d2c5
|
| 27-Dec-2021 |
Alexander Motin <mav@FreeBSD.org> |
acpica: Remove CTLFLAG_NEEDGIANT from most sysctls.
MFC after: 2 weeks
|
| #
a8b89dff
|
| 07-Sep-2021 |
Colin Percival <cperciva@FreeBSD.org> |
Disable acpi_timer_test by default
This disables testing the ACPI timer by default, forcing the use of ACPI-fast rather than ACPI-safe. The broken-ACPI-timers workaround can be re-enabled by settin
Disable acpi_timer_test by default
This disables testing the ACPI timer by default, forcing the use of ACPI-fast rather than ACPI-safe. The broken-ACPI-timers workaround can be re-enabled by setting the hw.acpi.timer_test_enabled=1 tunable.
This speeds up the FreeBSD boot process by 140 ms on an EC2 c5.xlarge instance.
This change will not be MFCed.
Assuming no problems are reported, acpi_timer_test, the associated tunable, and the ACPI-safe timecounter should be removed in FreeBSD 15.
Relnotes: The ACPI-safe timer is disabled in favour of ACPI-fast; if timekeeping issues are observed, please test with hw.acpi.timer_test_enabled=1 in loader.conf and report if that fixes the problem.
show more ...
|