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=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 B784AC433E0 for ; Tue, 28 Jul 2020 03:02:19 +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 2B4B220825 for ; Tue, 28 Jul 2020 03:02:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vv5UtNHw"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a7Fup3Yz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B4B220825 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.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:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=DXqEL8TVIljLCwoXsEB1Wf1e7Z6iwGtpFIMISP0hx1k=; b=vv5UtNHwyKppDzkDCBAR+x8Q71 eCYzTSFpEA1RbiCTiZZUgiFzuQFtsDnFSCUiu4sQ/bSYRTucNiQGYKlQ+tV45qSHSu/eephBzS1pI ono3Uw0hK+LuOlaMeq8ExE4dKVO7NQovkGIHyuWpSaP683cjqP8H7JVZ12MNk/TXxxHGvmrmgdh5m 23m7TKNZiK+SSPElkDDh1TQupU0OaCz3Ywkn4hYe7TW9DM0Wxqp5BQ6OZ1/P5K1qhzGGALYciWyE3 9TsbQMUkhMfgNIzdGWj1LlGz0zFJUHa/cVSouCoR3Rtb0uCjWxdSr70yeJGjvK3DcxX26OSB5TaFG Am8INVFw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0Fqc-0005Cg-DS; Tue, 28 Jul 2020 03:00:10 +0000 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120] helo=us-smtp-1.mimecast.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0FqY-0005B2-32 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jul 2020 03:00:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595905205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iiABrrocPWrHyRIo+cDndcLA81hrVR0bOwcEe34iamE=; b=a7Fup3YzS7J2yMpkbXlNSIUHxEiPZ4m6vwBvTzp9C5D5nETv2Z9GgbK6I3criv4b48Liy8 /EEovdo2MMvI9Jxxtj17n+yU/WdDLn3zonrcQ79qHzC+CLIC4jCcPFHeGrOABg7EkvXsgv DnarG+ud/kE2i/LkZVD3+vT/QCosUiE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-154-GRIzanpBN4iGejx-3YFLHg-1; Mon, 27 Jul 2020 23:00:03 -0400 X-MC-Unique: GRIzanpBN4iGejx-3YFLHg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C1E141DE1; Tue, 28 Jul 2020 03:00:01 +0000 (UTC) Received: from gshan.redhat.com (vpn2-54-117.bne.redhat.com [10.64.54.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3646F5D9CD; Tue, 28 Jul 2020 02:59:58 +0000 (UTC) From: Gavin Shan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 00/15] Refactor SDEI client driver Date: Tue, 28 Jul 2020 12:59:40 +1000 Message-Id: <20200728025955.144913-1-gshan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200727_230006_222443_25E0A80C X-CRM114-Status: GOOD ( 13.34 ) 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, Jonathan.Cameron@huawei.com, will@kernel.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 This series bases on 5.8-rc7 and refactors the SDEI client driver. It's the preparatory work of virtualizing SDEI afterwords. The series is organized as below: * PATCH[1-13] refactors and clean up the code. They shouldn't cause any functional changes. * PATCH[14-15] exposes "struct sdei_event", which will be dereferenced on virtualizing SDEI. After it's applied, the SDEI event is identified by the instance of "struct sdei_event" instead of event number. The series can be checked out from: git@github.com:gwshan/linux.git (branch: "sdei_client") Testing ======= I have the SDEI virtualization code implemented as part of KVM module. With that, the SDEI event can be registered/unregistered/enabled/disabled. Also, the SDEI event can be injected from host and the guest handler runs properly. The code can be found from: git@github.com:gwshan/linux.git (branch: "sdei") Changelog ========= v3: Rebase to 5.8.rc7 (Gavin) Pick rbs from Jonathan (Gavin) Correct spellings in commit logs (Jonathan) Rename "out" to "unlock" tag (Jonathan) Keep the empty line in sdei_event_unregister() (Jonathan) Drop tabs between type and field for struct sdei_crosscall_args (Jonathan) Use smp_call_func_t for @fn argument in CPU callbacks (Jonathan) Split struct sdei_event into struct sdei_{internal,}_event (Jonathan) Remove last two patches and get it reviewed later (Jonathan) v2: Rebase to 5.8.rc6 (Gavin) Improved changelog (James/Gavin) Split patches for easy review (Gavin) Drop changes to reorder variables (James) Drop unnecessary (@regs removal) cleanup in sdei_event_create() (James) Fix broken case for device-tree in sdei_init() (James) Gavin Shan (15): drivers/firmware/sdei: Remove sdei_is_err() drivers/firmware/sdei: Common block for failing path in sdei_event_create() drivers/firmware/sdei: Retrieve event number from event instance drivers/firmware/sdei: Avoid nested statements in sdei_init() drivers/firmware/sdei: Unregister driver on error in sdei_init() drivers/firmware/sdei: Remove duplicate check in sdei_get_conduit() drivers/firmware/sdei: Remove Drop redundant error message in sdei_probe() drivers/firmware/sdei: Remove while loop in sdei_event_register() drivers/firmware/sdei: Remove while loop in sdei_event_unregister() drivers/firmware/sdei: Cleanup on cross call function drivers/firmware/sdei: Introduce sdei_do_local_call() drivers/firmware/sdei: Remove _sdei_event_register() drivers/firmware/sdei: Remove _sdei_event_unregister() drivers/firmware/sdei: Expose struct sdei_event drivers/firmware/sdei: Identify event by struct sdei_event drivers/firmware/arm_sdei.c | 440 +++++++++++++++++------------------- include/linux/arm_sdei.h | 16 +- 2 files changed, 215 insertions(+), 241 deletions(-) -- 2.23.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel