Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160421 > unrolled thread

Re: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control

Started byJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
First post2015-06-08 14:00 +0200
Last post2015-06-22 15:10 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and  acpi_tpm2_control Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-06-08 14:00 +0200
    Re: [tpmdd-devel] [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control Peter Hüwe <PeterHuewe@gmx.de> - 2015-06-16 22:50 +0200
      Re: [tpmdd-devel] [PATCH] tpm, tpm_crb: migrate to struct  acpi_table_tpm2 and acpi_tpm2_control Jarkko Sakkinen <jarkko.sakkinen@intel.com> - 2015-06-22 15:10 +0200

#1160421 — Re: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control

FromJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Date2015-06-08 14:00 +0200
SubjectRe: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control
Message-ID<pz3SG-64a-5@gated-at.bofh.it>
Hi

I somehow missed your reply to this last week.

On Tue, Jun 02, 2015 at 04:00:37PM +0200, Peter Huewe wrote:
> Hi
> >Betreff: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control
> > Migrate to struct acpi_table_tpm2 and struct acpi_tpm2_control defined
> > in include/acpi/actbl3.h from the internal structures.
> 
> I definitely do like the idea! Thanks for spotting this!
> 
> However one small remark
> > -struct crb_control_area {
> > - u32 req;
> > - u32 sts;
> > - u32 cancel;
> > - u32 start;
> > - u32 int_enable;
> > - u32 int_sts;
> > - u32 cmd_size;
> > - u64 cmd_pa;
> > - u32 rsp_size;
> > - u64 rsp_pa;
> > -} __packed;
> > -
> > 
> > - if (le32_to_cpu(ioread32(&priv->cca->sts)) & CRB_CA_STS_ERROR)
> > + if (le32_to_cpu(ioread32(&priv->ctl->error)) & CRB_CA_STS_ERROR)
> > return -EIO;
> 
> I know the fields are described in include/acpi/actbl3.h as 
> +struct acpi_tpm2_control {
> +	u32 reserved;
> +	u32 error;
> +	u32 cancel;
> +	u32 start;
> +	u64 interrupt_control;
> +	u32 command_size;
> +	u64 command_address;
> +	u32 response_size;
> +	u64 response_address;
> +};
> 
> but are the names there still correct? Isn't this information outdated?
> The acpi spec refers to the MS spec which is not present anymore, and MS refers to the TCG -- and in the PTP your names are used.
> 
> ---> We should update the ACPI header? 
> At least the naming for reserved and error.
> What do you think?

I think you are right. It does not make sense to degrade here. I'll
prepare "CRB fixes" patch set and also include a workaround for this
bug:

https://bugzilla.kernel.org/show_bug.cgi?id=98181

See my last comment.

> Thanks,
> Peter

/Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1166399 — Re: [tpmdd-devel] [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control

FromPeter Hüwe <PeterHuewe@gmx.de>
Date2015-06-16 22:50 +0200
SubjectRe: [tpmdd-devel] [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control
Message-ID<pC5XY-5b9-17@gated-at.bofh.it>
In reply to#1160421
Hi Jarkko

> > > >Betreff: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and
> > > >acpi_tpm2_control
> > > but are the names there still correct? Isn't this information outdated?
> > > The acpi spec refers to the MS spec which is not present anymore, and
> > > MS refers to the TCG -- and in the PTP your names are used.
> > > 
> > > ---> We should update the ACPI header?
> > > At least the naming for reserved and error.
> > > What do you think?
> > 
> > I think you are right. It does not make sense to degrade here. 

so I'm waiting on the new version depending on the updated acpi header?

Thanks,
Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1169928 — Re: [tpmdd-devel] [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control

FromJarkko Sakkinen <jarkko.sakkinen@intel.com>
Date2015-06-22 15:10 +0200
SubjectRe: [tpmdd-devel] [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and acpi_tpm2_control
Message-ID<pE9E6-4y3-11@gated-at.bofh.it>
In reply to#1166399
On Tue, Jun 16, 2015 at 10:46:50PM +0200, Peter Hüwe wrote:
> Hi Jarkko
> 
> > > > >Betreff: [PATCH] tpm, tpm_crb: migrate to struct acpi_table_tpm2 and
> > > > >acpi_tpm2_control
> > > > but are the names there still correct? Isn't this information outdated?
> > > > The acpi spec refers to the MS spec which is not present anymore, and
> > > > MS refers to the TCG -- and in the PTP your names are used.
> > > > 
> > > > ---> We should update the ACPI header?
> > > > At least the naming for reserved and error.
> > > > What do you think?
> > > 
> > > I think you are right. It does not make sense to degrade here. 
> 
> so I'm waiting on the new version depending on the updated acpi header?

Yes. I'll submit a new patch later on when new arrives come from ACPICA.
You can ignore this until then.

> Thanks,
> Peter

/Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web