From: Jarkko Nikula <jarkko.nikula@linux.intel.com>
To: "Mario Limonciello" <mario.limonciello@amd.com>,
"Jan Dąbroś" <jsd@semihalf.com>,
"Grzegorz Bernacki" <gjb@semihalf.com>,
"Mark Hasemeyer" <markhas@chromium.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Mika Westerberg" <mika.westerberg@linux.intel.com>
Cc: Felix Held <Felix.Held@amd.com>,
linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 5/6] i2c: designware: Use PCI PSP driver for communication
Date: Fri, 31 Mar 2023 14:53:38 +0300 [thread overview]
Message-ID: <c298b247-1bdc-340c-ad7d-df3653cc9027@linux.intel.com> (raw)
In-Reply-To: <20230329220753.7741-6-mario.limonciello@amd.com>
On 3/30/23 01:07, Mario Limonciello wrote:
> Currently the PSP semaphore communication base address is discovered
> by using an MSR that is not architecturally guaranteed for future
> platforms. Also the mailbox that is utilized for communication with
> the PSP may have other consumers in the kernel, so it's better to
> make all communication go through a single driver.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> v6->v7:
> * Also imply CRYPTO_DEV_CCP_DD to fix build errors
> * Fix error message acquire/release inversion
> v5->v6:
> * Drop now unnecessary asm/msr.h header
> * Fix IS_REACHABLE
> * Drop tags
> * Fix status code handling for Cezanne
> v4->v5:
> * Pick up tags
> v3->v4:
> * Pick up tags
> v1->v2:
> * Fix Kconfig to use imply
> * Use IS_REACHABLE
> ---
> drivers/i2c/busses/Kconfig | 3 +-
> drivers/i2c/busses/i2c-designware-amdpsp.c | 177 +++-----------------
> drivers/i2c/busses/i2c-designware-core.h | 1 -
> drivers/i2c/busses/i2c-designware-platdrv.c | 1 -
> include/linux/psp-platform-access.h | 1 +
> 5 files changed, 29 insertions(+), 154 deletions(-)
>
One note below in case there is a need to have another version of if you
want. Not a show stopper for this.
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> @@ -214,7 +95,7 @@ static int psp_send_i2c_req(enum psp_i2c_req_type i2c_req_type)
> if (ret) {
> dev_err(psp_i2c_dev, "Timed out waiting for PSP to %s I2C bus\n",
> (i2c_req_type == PSP_I2C_REQ_ACQUIRE) ?
> - "release" : "acquire");
> + "acquire" : "release");
> goto cleanup;
> }
>
This looks like worth of being an own patch. Maybe even for the
linux-stable. I think it's very useful to have an error message to show
correct information what operation actually failed.
next prev parent reply other threads:[~2023-03-31 11:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 22:07 [PATCH v7 0/6] Use CCP driver to handle PSP I2C arbitration Mario Limonciello
2023-03-29 22:07 ` [PATCH v7 1/6] crypto: ccp: Drop extra doorbell checks Mario Limonciello
2023-03-31 19:28 ` Mark Hasemeyer
2023-03-29 22:07 ` [PATCH v7 2/6] crypto: ccp: Bump up doorbell debug message to error Mario Limonciello
2023-03-29 22:07 ` [PATCH v7 3/6] crypto: ccp: Return doorbell status code as an argument Mario Limonciello
2023-03-31 19:29 ` Mark Hasemeyer
2023-03-29 22:07 ` [PATCH v7 4/6] crypto: ccp: Use lower 8 bytes to communicate with doorbell command register Mario Limonciello
2023-03-31 19:31 ` Mark Hasemeyer
2023-03-29 22:07 ` [PATCH v7 5/6] i2c: designware: Use PCI PSP driver for communication Mario Limonciello
2023-03-31 11:53 ` Jarkko Nikula [this message]
2023-03-31 12:03 ` Jan Dąbroś
2023-03-31 14:13 ` Limonciello, Mario
2023-03-31 19:32 ` Mark Hasemeyer
2023-04-01 7:39 ` kernel test robot
2023-03-29 22:07 ` [PATCH v7 6/6] i2c: designware: Add doorbell support for Mendocino Mario Limonciello
2023-03-31 11:55 ` Jarkko Nikula
2023-03-31 19:33 ` Mark Hasemeyer
2023-04-01 19:38 ` kernel test robot
2023-03-31 19:34 ` [PATCH v7 0/6] Use CCP driver to handle PSP I2C arbitration Mark Hasemeyer
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=c298b247-1bdc-340c-ad7d-df3653cc9027@linux.intel.com \
--to=jarkko.nikula@linux.intel.com \
--cc=Felix.Held@amd.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=gjb@semihalf.com \
--cc=jsd@semihalf.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=markhas@chromium.org \
--cc=mika.westerberg@linux.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