linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christian Bundy" <christianbundy@fraction.io>
To: "Jerry Snitselaar" <jsnitsel@redhat.com>,
	"Jarkko Sakkinen" <jarkko.sakkinen@linux.intel.com>,
	linux-integrity@vger.kernel.org
Subject: Re: PROBLEM: TPM bug causes suspend to turn off device
Date: Mon, 11 Nov 2019 14:44:18 -0800	[thread overview]
Message-ID: <f2e12b33-c348-4325-8ef6-747e3a8f5e90@www.fastmail.com> (raw)
In-Reply-To: <20191111215714.kw3doe3qf5ps7imk@cantor>

It worked! Thanks a bunch Jerry, that was a quick resolution.

I'm no longer seeing any errors in dmesg and suspend is working as expected.

(FYI, I'm testing your patch on top of 8005803a2ca0af49f36f6e9329b5ecda3df27347.)

On Mon, Nov 11, 2019, at 13:57, Jerry Snitselaar wrote:
> On Sun Nov 10 19, Jerry Snitselaar wrote:
> >Jarkko, should there be tpm_chip_start/tpm_chip_stop calls around
> >the tpm1_getcap calls in tpm1_get_timeouts?
> >
> 
> Maybe moving the tpm_chip_start called before the irq probe to before
> tpm_get_timeouts:
> 
> diff --git a/drivers/char/tpm/tpm_tis_core.c 
> b/drivers/char/tpm/tpm_tis_core.c
> index 270f43acbb77..806acc666696 100644
> --- a/drivers/char/tpm/tpm_tis_core.c
> +++ b/drivers/char/tpm/tpm_tis_core.c
> @@ -974,13 +974,14 @@ int tpm_tis_core_init(struct device *dev, struct 
> tpm_tis_data *priv, int irq,
>                   * to make sure it works. May as well use that command 
> to set the
>                   * proper timeouts for the driver.
>                   */
> +               tpm_chip_start(chip);
>                  if (tpm_get_timeouts(chip)) {
>                          dev_err(dev, "Could not get TPM timeouts and 
> durations\n");
>                          rc = -ENODEV;
> +                       tpm_chip_stop(chip);
>                          goto out_err;
>                  }
>   
> -               tpm_chip_start(chip);
>                  chip->flags |= TPM_CHIP_FLAG_IRQ;
>                  if (irq) {
>                          tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED,
> 
>

  reply	other threads:[~2019-11-11 22:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 19:13 PROBLEM: TPM bug causes suspend to turn off device Christian Bundy
2019-11-10  7:26 ` Jerry Snitselaar
2019-11-11 21:57   ` Jerry Snitselaar
2019-11-11 22:44     ` Christian Bundy [this message]
2019-11-12 19:43   ` Jarkko Sakkinen

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=f2e12b33-c348-4325-8ef6-747e3a8f5e90@www.fastmail.com \
    --to=christianbundy@fraction.io \
    --cc=jarkko.sakkinen@linux.intel.com \
    --cc=jsnitsel@redhat.com \
    --cc=linux-integrity@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;
as well as URLs for NNTP newsgroup(s).