public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jonathan M. McCune" <jonmccune@cmu.edu>
To: linux-kernel@vger.kernel.org
Subject: INIT IPI help
Date: Tue, 06 Mar 2007 11:00:29 -0500	[thread overview]
Message-ID: <45ED901D.50404@cmu.edu> (raw)

Hello,

I have Linux kernel 2.6.20-rc5 running on an AMD64 CPU, although I'm
running an i386 (not amd64) kernel.  I need to send an INIT
inter-processor-interrupt from the BSP to all APs (there is one AP in my
case since my system has a dual-core CPU).  After using CPU-hotplug to
disable CPU1, I am using this code to [hopefully] send an IPI:

apic_write(APIC_ICR, APIC_DEST_ALLBUT | APIC_INT_ASSERT | APIC_DM_INIT);

while(apic_read(APIC_ICR) & APIC_ICR_BUSY) {
    mdelay(1);
}

My motivation for doing this is in preparation for executing an SKINIT
instruction, which requires all APs to be in the INIT state so that a
copy of the up-to-64KB Secure Loader Block (SLB) provided as an argument
to SKINIT can be successfully transmitted to the system's TPM where it
is hashed.  No hash value is being computed, which is my problem.

Now, SKINIT is a complex instruction with multiple opportunities to
fail, and my motivation for writing this email is only to get a sense of
whether my code above is the right way to send an INIT IPI to the AP.
After executing the code above, can I be confident that the AP is in the
INIT state?

Thanks,
-Jon



                 reply	other threads:[~2007-03-06 16:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45ED901D.50404@cmu.edu \
    --to=jonmccune@cmu.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox