From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07380C433F2 for ; Thu, 23 Jul 2020 15:27:11 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CAB7122B40 for ; Thu, 23 Jul 2020 15:27:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WNJcm6ne" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CAB7122B40 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=Huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nFJsWlCsQyWfrzLSiubwWOHFGPbH+CJR7UxkH1iabxQ=; b=WNJcm6neVxmeBnyZsStOLKmLU ieJl5SPsl4ZMfu5rVvvsv3CvXs+ctlN+NMGqX6jtO50b/tsRDxYcOyYy61v0yrTL2oiocP7/HDmNA 5gUvqhmFBX1l+mgKvkkw0tEH0u3MFIRIIMoqHC3lobyaxxMMV6wf1gMP8cPKFU6oSLeQOnLqNDNoK fRKVcYxuXNgC/ZeaM4ZsslYjzghDNp1xc+C0OaJTxtHLVmY1LpR14asuB0aVxsNGna9X7XzT6bkHN +iezTI8xbMRlTAfZ9bV6Cq/odbmRIoKOUFmICxWdYRb6u6M26C+hHBUTLBeh1adNESn7CiUqUVu7K DJIJIWTYg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyd6T-0006xR-TT; Thu, 23 Jul 2020 15:25:49 +0000 Received: from lhrrgout.huawei.com ([185.176.76.210] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyd6P-0006vs-C4 for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 15:25:47 +0000 Received: from lhreml710-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 50F1925CBF10284F0CFB; Thu, 23 Jul 2020 16:25:44 +0100 (IST) Received: from localhost (10.52.125.229) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 23 Jul 2020 16:25:43 +0100 Date: Thu, 23 Jul 2020 16:24:23 +0100 From: Jonathan Cameron To: Gavin Shan Subject: Re: [PATCH v2 16/17] drivers/firmware/sdei: Retrieve event signaled property on registration Message-ID: <20200723162423.000019ea@Huawei.com> In-Reply-To: <20200722095740.28560-17-gshan@redhat.com> References: <20200722095740.28560-1-gshan@redhat.com> <20200722095740.28560-17-gshan@redhat.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 X-Originating-IP: [10.52.125.229] X-ClientProxiedBy: lhreml725-chm.china.huawei.com (10.201.108.76) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_112545_562989_1996863C X-CRM114-Status: GOOD ( 15.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 22 Jul 2020 19:57:39 +1000 Gavin Shan 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 These last two patches are probably fine but hard to tell without a user. 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 { _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel