Page MenuHomeFreeBSD

Do not access ISA timer if BIOS reports that there is no legacy devices present.
ClosedPublic

Authored by kib on Jun 25 2018, 9:29 AM.
Tags
None
Referenced Files
F165281338: D16004.id44415.diff
Fri, Aug 7, 9:36 AM
F165239150: D16004.id44410.diff
Fri, Aug 7, 2:21 AM
F165236825: D16004.id44414.diff
Fri, Aug 7, 2:01 AM
F165186849: D16004.id44410.diff
Thu, Aug 6, 2:53 PM
F165177695: D16004.id44414.diff
Thu, Aug 6, 2:14 PM
Unknown Object (File)
Thu, Aug 6, 12:59 PM
Unknown Object (File)
Thu, Aug 6, 8:26 AM
Unknown Object (File)
Wed, Aug 5, 7:57 AM
Subscribers

Details

Summary

I did not committed this because on the computer where ISA timer is gated, bios really reports that ISA devices are present.
But I think now that acpi_get_fadt_bootflags() is useful on its own.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 17604

Event Timeline

I would like to use acpi_get_fadt_bootflags for vt also, but then it needs to live in some generic ACPI file, or else I would have to provide dummy implementations for !x86 arches.

I would like to use acpi_get_fadt_bootflags for vt also, but then it needs to live in some generic ACPI file, or else I would have to provide dummy implementations for !x86 arches.

I do not see why, the code is already protected by x86 checks.

Convert vt_vga.c to use acpi_get_fadt_bootflags().

Also initialize ignore before TUNABLE_INT_FETCH(). Otherwise, if there is no kenv var, the local is uninitialized.

LGTM thanks.

sys/dev/vt/hw/vga/vt_vga.c
51 ↗(On Diff #44413)

Not sure if it's a phab issue, but I think the last defined is missing the closing ')'. ie: defined(__i386__)

This revision is now accepted and ready to land.Jun 25 2018, 10:24 AM
This revision was automatically updated to reflect the committed changes.
kib updated this revision to Diff 44415.

The rest of the patch.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 25 2018, 11:24 AM
This revision was automatically updated to reflect the committed changes.