mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Remove the deassert INIT IPI from the IPI startup sequence for APs.
It is not listed in the boot sequence in the MP specification (1.4), and it is explicitly ignored on modern CPUs. It was only ever required when bootstrapping systems with external APICs (that is, SMP machines with 486s), which FreeBSD has never supported (and never will). While here, tidy some comments and remove some banal ones.
This commit is contained in:
parent
f61fc4bd7d
commit
6e4ac34b07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239241
@ -1036,25 +1036,13 @@ ipi_startup(int apic_id, int vector)
|
||||
{
|
||||
|
||||
/*
|
||||
* first we do an INIT/RESET IPI this INIT IPI might be run, reseting
|
||||
* first we do an INIT IPI: this INIT IPI might be run, resetting
|
||||
* and running the target CPU. OR this INIT IPI might be latched (P5
|
||||
* bug), CPU waiting for STARTUP IPI. OR this INIT IPI might be
|
||||
* ignored.
|
||||
*/
|
||||
|
||||
/* do an INIT IPI: assert RESET */
|
||||
lapic_ipi_raw(APIC_DEST_DESTFLD | APIC_TRIGMOD_EDGE |
|
||||
APIC_LEVEL_ASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_INIT, apic_id);
|
||||
|
||||
/* wait for pending status end */
|
||||
lapic_ipi_wait(-1);
|
||||
DELAY(10000); /* wait ~10mS */
|
||||
|
||||
/* do an INIT IPI: deassert RESET */
|
||||
lapic_ipi_raw(APIC_DEST_ALLESELF | APIC_TRIGMOD_LEVEL |
|
||||
APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_INIT, 0);
|
||||
|
||||
/* wait for pending status end */
|
||||
lapic_ipi_wait(-1);
|
||||
DELAY(10000); /* wait ~10mS */
|
||||
|
||||
@ -1066,8 +1054,6 @@ ipi_startup(int apic_id, int vector)
|
||||
* run. OR the previous INIT IPI was ignored. and this STARTUP IPI
|
||||
* will run.
|
||||
*/
|
||||
|
||||
/* do a STARTUP IPI */
|
||||
lapic_ipi_raw(APIC_DEST_DESTFLD | APIC_TRIGMOD_EDGE |
|
||||
APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_STARTUP |
|
||||
vector, apic_id);
|
||||
@ -1080,7 +1066,6 @@ ipi_startup(int apic_id, int vector)
|
||||
* this STARTUP IPI will be ignored, as only ONE STARTUP IPI is
|
||||
* recognized after hardware RESET or INIT IPI.
|
||||
*/
|
||||
|
||||
lapic_ipi_raw(APIC_DEST_DESTFLD | APIC_TRIGMOD_EDGE |
|
||||
APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_STARTUP |
|
||||
vector, apic_id);
|
||||
|
@ -1136,25 +1136,13 @@ ipi_startup(int apic_id, int vector)
|
||||
{
|
||||
|
||||
/*
|
||||
* first we do an INIT/RESET IPI this INIT IPI might be run, reseting
|
||||
* first we do an INIT IPI: this INIT IPI might be run, resetting
|
||||
* and running the target CPU. OR this INIT IPI might be latched (P5
|
||||
* bug), CPU waiting for STARTUP IPI. OR this INIT IPI might be
|
||||
* ignored.
|
||||
*/
|
||||
|
||||
/* do an INIT IPI: assert RESET */
|
||||
lapic_ipi_raw(APIC_DEST_DESTFLD | APIC_TRIGMOD_EDGE |
|
||||
APIC_LEVEL_ASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_INIT, apic_id);
|
||||
|
||||
/* wait for pending status end */
|
||||
lapic_ipi_wait(-1);
|
||||
DELAY(10000); /* wait ~10mS */
|
||||
|
||||
/* do an INIT IPI: deassert RESET */
|
||||
lapic_ipi_raw(APIC_DEST_ALLESELF | APIC_TRIGMOD_LEVEL |
|
||||
APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_INIT, 0);
|
||||
|
||||
/* wait for pending status end */
|
||||
lapic_ipi_wait(-1);
|
||||
DELAY(10000); /* wait ~10mS */
|
||||
|
||||
@ -1166,8 +1154,6 @@ ipi_startup(int apic_id, int vector)
|
||||
* run. OR the previous INIT IPI was ignored. and this STARTUP IPI
|
||||
* will run.
|
||||
*/
|
||||
|
||||
/* do a STARTUP IPI */
|
||||
lapic_ipi_raw(APIC_DEST_DESTFLD | APIC_TRIGMOD_EDGE |
|
||||
APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_STARTUP |
|
||||
vector, apic_id);
|
||||
@ -1180,7 +1166,6 @@ ipi_startup(int apic_id, int vector)
|
||||
* this STARTUP IPI will be ignored, as only ONE STARTUP IPI is
|
||||
* recognized after hardware RESET or INIT IPI.
|
||||
*/
|
||||
|
||||
lapic_ipi_raw(APIC_DEST_DESTFLD | APIC_TRIGMOD_EDGE |
|
||||
APIC_LEVEL_DEASSERT | APIC_DESTMODE_PHY | APIC_DELMODE_STARTUP |
|
||||
vector, apic_id);
|
||||
|
Loading…
Reference in New Issue
Block a user