lkml.org 
[lkml]   [2014]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [tpmdd-devel] [PATCH v8 6/8] tpm: TPM 2.0 baseline support
    On 12/02/2014 05:31 PM, Jarkko Sakkinen wrote:


    > +
    > +/**
    > + * tpm2_startup() - send startup command to the TPM chip
    > + * @chip: TPM chip to use.
    > + * @startup_type startup type. The value is either
    > + * TPM_SU_CLEAR or TPM_SU_STATE.
    > + *
    > + * 0 is returned when the operation is successful. If a negative number is
    > + * returned it remarks a POSIX error code. If a positive number is returned
    > + * it remarks a TPM error.
    > + */
    > +int tpm2_startup(struct tpm_chip *chip, __be16 startup_type)
    > +{
    > + struct tpm2_cmd cmd;
    > +
    > + cmd.header.in = tpm2_startup_header;
    > +
    > + cmd.params.startup_in.startup_type = startup_type;
    > + return tpm_transmit_cmd(chip, &cmd, sizeof(cmd),
    > + "attempting to start the TPM");
    > +}

    I suppose you need to send this command because your firmware does not
    do it ?Following TPM1.2 I guess the BIOS / UEFI should send this instead
    and sending it later would actually be wrong. Hm, I don't find from
    where you are calling this... do you need it ? Can you remove it?

    Stefan




    \
     
     \ /
      Last update: 2014-12-03 04:01    [W:3.528 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site