From: Rijo Thomas <Rijo-john.Thomas@amd.com>
To: "Mario Limonciello" <mario.limonciello@amd.com>,
"Jan Dąbroś" <jsd@semihalf.com>,
"Grzegorz Bernacki" <gjb@semihalf.com>,
Thomas.Lendacky@amd.com, herbert@gondor.apana.org.au,
"John Allen" <john.allen@amd.com>
Cc: "David S. Miller" <davem@davemloft.net>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/9] crypto: ccp: Drop TEE support for IRQ handler
Date: Fri, 3 Mar 2023 16:01:11 +0530 [thread overview]
Message-ID: <d7840a0c-b4d0-77e9-be85-d93bef6f32c8@amd.com> (raw)
In-Reply-To: <20230302194235.1724-2-mario.limonciello@amd.com>
On 3/3/2023 1:12 AM, Mario Limonciello wrote:
> The only PSP mailbox that currently supports interrupt on completion
> is the SEV mailbox. Drop the dead code for the TEE subdriver to
> potentially call it.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Looks good.
Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Thanks,
Rijo
> ---
> drivers/crypto/ccp/psp-dev.c | 15 ---------------
> drivers/crypto/ccp/psp-dev.h | 7 -------
> 2 files changed, 22 deletions(-)
>
> diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c
> index c9c741ac8442..cd8d1974726a 100644
> --- a/drivers/crypto/ccp/psp-dev.c
> +++ b/drivers/crypto/ccp/psp-dev.c
> @@ -46,9 +46,6 @@ static irqreturn_t psp_irq_handler(int irq, void *data)
> if (status) {
> if (psp->sev_irq_handler)
> psp->sev_irq_handler(irq, psp->sev_irq_data, status);
> -
> - if (psp->tee_irq_handler)
> - psp->tee_irq_handler(irq, psp->tee_irq_data, status);
> }
>
> /* Clear the interrupt status by writing the same value we read. */
> @@ -219,18 +216,6 @@ void psp_clear_sev_irq_handler(struct psp_device *psp)
> psp_set_sev_irq_handler(psp, NULL, NULL);
> }
>
> -void psp_set_tee_irq_handler(struct psp_device *psp, psp_irq_handler_t handler,
> - void *data)
> -{
> - psp->tee_irq_data = data;
> - psp->tee_irq_handler = handler;
> -}
> -
> -void psp_clear_tee_irq_handler(struct psp_device *psp)
> -{
> - psp_set_tee_irq_handler(psp, NULL, NULL);
> -}
> -
> struct psp_device *psp_get_master_device(void)
> {
> struct sp_device *sp = sp_get_psp_master_device();
> diff --git a/drivers/crypto/ccp/psp-dev.h b/drivers/crypto/ccp/psp-dev.h
> index d528eb04c3ef..06e1f317216d 100644
> --- a/drivers/crypto/ccp/psp-dev.h
> +++ b/drivers/crypto/ccp/psp-dev.h
> @@ -40,9 +40,6 @@ struct psp_device {
> psp_irq_handler_t sev_irq_handler;
> void *sev_irq_data;
>
> - psp_irq_handler_t tee_irq_handler;
> - void *tee_irq_data;
> -
> void *sev_data;
> void *tee_data;
>
> @@ -53,10 +50,6 @@ void psp_set_sev_irq_handler(struct psp_device *psp, psp_irq_handler_t handler,
> void *data);
> void psp_clear_sev_irq_handler(struct psp_device *psp);
>
> -void psp_set_tee_irq_handler(struct psp_device *psp, psp_irq_handler_t handler,
> - void *data);
> -void psp_clear_tee_irq_handler(struct psp_device *psp);
> -
> struct psp_device *psp_get_master_device(void);
>
> #define PSP_CAPABILITY_SEV BIT(0)
next prev parent reply other threads:[~2023-03-03 10:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-02 19:42 [PATCH v2 0/9] Export platform features from ccp driver Mario Limonciello
2023-03-02 19:42 ` [PATCH v2 1/9] crypto: ccp: Drop TEE support for IRQ handler Mario Limonciello
2023-03-03 10:31 ` Rijo Thomas [this message]
2023-03-02 19:42 ` [PATCH v2 2/9] crypto: ccp: Add a header for multiple drivers to use `__psp_pa` Mario Limonciello
2023-03-02 19:42 ` [PATCH v2 3/9] crypto: ccp: Move some PSP mailbox bit definitions into common header Mario Limonciello
2023-03-03 10:36 ` Rijo Thomas
2023-03-02 19:42 ` [PATCH v2 4/9] crypto: ccp: Add support for an interface for platform features Mario Limonciello
2023-03-02 19:42 ` [PATCH v2 5/9] crypto: ccp: Enable platform access interface on client PSP parts Mario Limonciello
2023-03-02 19:42 ` [PATCH v2 6/9] i2c: designware: Use PCI PSP driver for communication Mario Limonciello
2023-03-02 19:42 ` [PATCH v2 7/9] crypto: ccp: Add support for ringing a platform doorbell Mario Limonciello
2023-03-02 21:51 ` Tom Lendacky
2023-03-02 21:55 ` Limonciello, Mario
2023-03-02 19:42 ` [PATCH v2 8/9] i2c: designware: Add doorbell support for Skyrim Mario Limonciello
2023-03-03 12:00 ` Grzegorz Bernacki
2023-03-03 15:00 ` Limonciello, Mario
2023-03-06 11:37 ` Andy Shevchenko
2023-03-02 19:42 ` [PATCH v2 9/9] crypto: ccp: Add doorbell register offset Mario Limonciello
2023-03-03 11:57 ` Grzegorz Bernacki
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=d7840a0c-b4d0-77e9-be85-d93bef6f32c8@amd.com \
--to=rijo-john.thomas@amd.com \
--cc=Thomas.Lendacky@amd.com \
--cc=davem@davemloft.net \
--cc=gjb@semihalf.com \
--cc=herbert@gondor.apana.org.au \
--cc=john.allen@amd.com \
--cc=jsd@semihalf.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.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
all inboxes | Powered by JetHome®