From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Gavin Shan <gshan@redhat.com>
Cc: mark.rutland@arm.com, catalin.marinas@arm.com,
james.morse@arm.com, shan.gavin@gmail.com, will@kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 16/17] drivers/firmware/sdei: Retrieve event signaled property on registration
Date: Mon, 27 Jul 2020 10:04:14 +0100 [thread overview]
Message-ID: <20200727100414.00000ee2@Huawei.com> (raw)
In-Reply-To: <f48a7bc6-836f-f570-b6a3-21423649b1ac@redhat.com>
On Mon, 27 Jul 2020 10:53:27 +1000
Gavin Shan <gshan@redhat.com> wrote:
> Hi Jonathan,
>
> On 7/24/20 1:24 AM, Jonathan Cameron wrote:
> > On Wed, 22 Jul 2020 19:57:39 +1000
> > Gavin Shan <gshan@redhat.com> wrote:
> >
> >> This retrieves the event signaled property when it's created for the
> >> first time. The property will be needed when SDEI virtualization is
> >> supported.
> >>
> >> Signed-off-by: Gavin Shan <gshan@redhat.com>
> >
> > These last two patches are probably fine but hard to tell without a user.
> >
>
> Good question. Let me explain the background and please let me know
> if you have more questions. SDEI was suggested by Marc to deliver
> the notification during the asynchronous page fault, so that the
> process can be rescheduled in guest. Unfortunately, we don't have
> SDEI (or virtualized SDEI) supported yet. So the additional event
> information is needed when SDEI virtualization is supported.
>
> The code of SDEI virtualization can be checked out from github:
>
> https://github.com/gwshan/linux/tree/sdei (branch: "sdei")
Thanks.
I'd be tempted to move these two patches to the next series
that includes the users.
I forgot to say, I'm fine with all the patches I didn't comment on.
Jonathan
>
>
> >> ---
> >> drivers/firmware/arm_sdei.c | 6 ++++++
> >> include/linux/arm_sdei.h | 1 +
> >> 2 files changed, 7 insertions(+)
> >>
> >> diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c
> >> index cf10fec57f2a..7518d3febf53 100644
> >> --- a/drivers/firmware/arm_sdei.c
> >> +++ b/drivers/firmware/arm_sdei.c
> >> @@ -204,6 +204,12 @@ static struct sdei_event *sdei_event_create(u32 event_num,
> >> goto fail;
> >> event->type = result;
> >>
> >> + err = sdei_api_event_get_info(event_num, SDEI_EVENT_INFO_EV_SIGNALED,
> >> + &result);
> >> + if (err)
> >> + goto fail;
> >> + event->signaled = result;
> >> +
> >> if (event->type == SDEI_EVENT_TYPE_SHARED) {
> >> reg = kzalloc(sizeof(*reg), GFP_KERNEL);
> >> if (!reg) {
> >> diff --git a/include/linux/arm_sdei.h b/include/linux/arm_sdei.h
> >> index 11af6410dd52..7f3ed7e4b680 100644
> >> --- a/include/linux/arm_sdei.h
> >> +++ b/include/linux/arm_sdei.h
> >> @@ -51,6 +51,7 @@ struct sdei_event {
> >> u32 event_num;
> >> u8 type;
> >> u8 priority;
> >> + u8 signaled;
> >>
> >> /* This pointer is handed to firmware as the event argument. */
> >> union {
>
> Thanks,
> Gavin
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-07-27 9:07 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 9:57 [PATCH v2 00/17] Refactor SDEI client driver Gavin Shan
2020-07-22 9:57 ` [PATCH v2 01/17] drivers/firmware/sdei: Remove sdei_is_err() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 02/17] drivers/firmware/sdei: Common block for failing path in sdei_event_create() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 03/17] drivers/firmware/sdei: Retrieve event number from event instance Gavin Shan
2020-07-22 9:57 ` [PATCH v2 04/17] drivers/firmware/sdei: Avoid nested statements in sdei_init() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 05/17] drivers/firmware/sdei: Unregister driver on error " Gavin Shan
2020-07-22 9:57 ` [PATCH v2 06/17] drivers/firmware/sdei: Remove duplicate check in sdei_get_conduit() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 07/17] drivers/firmware/sdei: Remove Drop redundant error message in sdei_probe() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 08/17] drivers/firmware/sdei: Remove while loop in sdei_event_register() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 09/17] drivers/firmware/sdei: Remove while loop in sdei_event_unregister() Gavin Shan
2020-07-23 15:51 ` Jonathan Cameron
2020-07-27 0:22 ` Gavin Shan
2020-07-22 9:57 ` [PATCH v2 10/17] drivers/firmware/sdei: Cleanup on cross call function Gavin Shan
2020-07-23 15:52 ` Jonathan Cameron
2020-07-27 0:33 ` Gavin Shan
2020-07-27 8:58 ` Jonathan Cameron
2020-07-27 9:45 ` Gavin Shan
2020-07-22 9:57 ` [PATCH v2 11/17] drivers/firmware/sdei: Introduce sdei_do_local_call() Gavin Shan
2020-07-23 15:25 ` Jonathan Cameron
2020-07-27 0:41 ` Gavin Shan
2020-07-22 9:57 ` [PATCH v2 12/17] drivers/firmware/sdei: Remove _sdei_event_register() Gavin Shan
2020-07-23 15:25 ` Jonathan Cameron
2020-07-27 0:42 ` Gavin Shan
2020-07-22 9:57 ` [PATCH v2 13/17] drivers/firmware/sdei: Remove _sdei_event_unregister() Gavin Shan
2020-07-22 9:57 ` [PATCH v2 14/17] drivers/firmware/sdei: Move struct sdei_event to header file Gavin Shan
2020-07-23 15:19 ` Jonathan Cameron
2020-07-27 0:46 ` Gavin Shan
2020-07-27 9:02 ` Jonathan Cameron
2020-07-27 9:59 ` Gavin Shan
2020-07-27 13:50 ` Jonathan Cameron
2020-07-28 2:52 ` Gavin Shan
2020-07-22 9:57 ` [PATCH v2 15/17] drivers/firmware/sdei: Identify event by struct sdei_event Gavin Shan
2020-07-22 9:57 ` [PATCH v2 16/17] drivers/firmware/sdei: Retrieve event signaled property on registration Gavin Shan
2020-07-23 15:24 ` Jonathan Cameron
2020-07-27 0:53 ` Gavin Shan
2020-07-27 9:04 ` Jonathan Cameron [this message]
2020-07-27 10:03 ` Gavin Shan
2020-07-27 13:56 ` Jonathan Cameron
2020-07-28 2:56 ` Gavin Shan
2020-07-22 9:57 ` [PATCH v2 17/17] drivers/firmware/sdei: Add sdei_event_get_info() Gavin Shan
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=20200727100414.00000ee2@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=catalin.marinas@arm.com \
--cc=gshan@redhat.com \
--cc=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=shan.gavin@gmail.com \
--cc=will@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).