From: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
To: "Winkler, Tomas" <tomas.winkler@intel.com>,
Jason Gunthorpe <jgg@ziepe.ca>, Alan Cox <alan@linux.intel.com>,
"Shevchenko, Andriy" <andriy.shevchenko@intel.com>
Cc: "Usyskin, Alexander" <alexander.usyskin@intel.com>,
"linux-integrity@vger.kernel.org"
<linux-integrity@vger.kernel.org>,
"linux-security-module@vger.kernel.org"
<linux-security-module@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH v7] tpm: separate cmd_ready/go_idle from runtime_pm
Date: Wed, 27 Jun 2018 19:42:24 +0300 [thread overview]
Message-ID: <5c50d7fa2bf495f26443bd2da2e15df34c3d23f7.camel@linux.intel.com> (raw)
In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9D954923@hasmsx108.ger.corp.intel.com>
On Tue, 2018-06-26 at 21:15 +0000, Winkler, Tomas wrote:
> > Right now if I really put head into this I can understand the logic but it
> > is a
> > complete mess.
>
> I think what is the mess is that we have a recursive call to tpm_transmit
> topped with retries. All other mess is just the result of that.
>
> > I will forgot the dependencies between flags within few
> > weeks.
>
> Hope the reasons are well documented both in code and the commit message, if
> not let's address that. We really cannot depend on one's memory.
> It's not like I'm not striving for simplest possible code.
>
> > A fixed requirement (so that you know) is that they must be
> > independent.
>
> The flags (hope this what you referring here to) are not independent and
> weren't before, (RAW cannot be called alone as you will have double locking)
> putting them under one name just should make it clear.
> I beg you to go over the code one more time, don't get stuck with flags
> names, maybe you even discover some real issue.
>
> Thanks
> Tomas
You should then find a solution where you can remove TPM_TRANSMIT_RAW
completely and make it as a separate commit, not part of the bug fix.
This is not in a shape that I would dare to put this in a pull request.
/Jarkko
next prev parent reply other threads:[~2018-06-27 16:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-24 20:52 [PATCH v7] tpm: separate cmd_ready/go_idle from runtime_pm Tomas Winkler
2018-06-25 16:24 ` Jarkko Sakkinen
2018-06-25 16:30 ` Jarkko Sakkinen
2018-06-26 21:15 ` Winkler, Tomas
2018-06-27 16:42 ` Jarkko Sakkinen [this message]
2018-06-27 21:13 ` Winkler, Tomas
2018-06-28 13:30 ` Jarkko Sakkinen
2018-06-28 15:02 ` Winkler, Tomas
2018-06-25 18:50 ` Winkler, Tomas
2018-06-26 8:22 ` 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=5c50d7fa2bf495f26443bd2da2e15df34c3d23f7.camel@linux.intel.com \
--to=jarkko.sakkinen@linux.intel.com \
--cc=alan@linux.intel.com \
--cc=alexander.usyskin@intel.com \
--cc=andriy.shevchenko@intel.com \
--cc=jgg@ziepe.ca \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tomas.winkler@intel.com \
/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