is improper, and some chips are more sensitive to this than others. In an
unhibernate situation, /bsd.booted will 'suspend' the TPM, then jump directly
into unhib /bsd, which 'resumes' it. This is wrong because the lifecycle is
supposed to be more like suspend->BIOS->resume. This is a hack until we figure
out how to fix the lifecycle.
from claudio, ok dv
-/* $OpenBSD: tpm.c,v 1.15 2021/12/21 20:53:46 kettenis Exp $ */
+/* $OpenBSD: tpm.c,v 1.16 2022/04/04 15:46:45 deraadt Exp $ */
/*
* Minimal interface to Trusted Platform Module chips implementing the
};
struct cfdriver tpm_cd = {
- NULL, "tpm", DV_DULL
+ NULL, "tpm", DV_DULL, CD_SKIPHIBERNATE /* XXX */
};
const char *tpm_hids[] = {