From patchwork Fri Oct 26 07:51:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 10657037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7414C109C for ; Fri, 26 Oct 2018 07:52:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65E1B2C219 for ; Fri, 26 Oct 2018 07:52:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 599A82C22D; Fri, 26 Oct 2018 07:52:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA1312C219 for ; Fri, 26 Oct 2018 07:52:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=VmoALa+6v49KIH8/7yNSezoN4zS6I67h2rH9rtgnSSo=; b=fMby8ocpk84JIX AsjPMad4+v57skFvsepITsnUrhZY6fCpvELH3ugB81H+OA3/vjn0qI73xQt/zLCrEQ0Qh+dj6sVog FENLvsH19HcpnwLMzsf/LfWwY27a1r1c3qI0rIyHx5HojlR8890p0uC0v2zwaQw1wJGFU0s+hrc83 +0znsf4KWCu1gBq4HXtIECkipfCSMZwKCoILXjXBKp60nGHMKUUkdSesr/TYSg2PKaR+SEC75U5Jy VQKc0oEfQTgrg2qsurkDHyMSBaMH3NEAZLCW+Lwe+aXu0H72hjRpyRkdpstJP1j2Jc9YKQlUictyp OF+j80XRYenNZnH0UODg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFwv2-0000zt-5B; Fri, 26 Oct 2018 07:52:32 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gFwuN-0000iW-OW for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 07:51:55 +0000 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7846BA8021581; Fri, 26 Oct 2018 15:51:29 +0800 (CST) Received: from localhost (10.177.19.219) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Fri, 26 Oct 2018 15:51:22 +0800 From: Yang Yingliang To: , Subject: [PATCH v2 0/4] add support for MBIGEN generating message based SPIs Date: Fri, 26 Oct 2018 15:51:16 +0800 Message-ID: <1540540280-26612-1-git-send-email-yangyingliang@huawei.com> X-Mailer: git-send-email 1.9.5.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.177.19.219] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181026_005151_989405_D3A44BC3 X-CRM114-Status: UNSURE ( 6.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marc.zyngier@arm.com, tglx@linutronix.de, yangyingliang@huawei.com, guohanjun@huawei.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now MBIGENs have pins that used to generate SPIs, with 5052875 ("irqchip/gic-v3: Add support for Message Based Interrupts as an MSI controller"), we can support MBIGEN to generate message based SPIs by writing GICD_SETSPIR. This patchset add support for MBIGEN generating message based SPIs and a bugfix for MBI driver. Patch #1 is a bugfix for MBI driver. Pathc #2 ~ #4 is support for MBIGEN generating message based SPIs. v2: Move the doorbell address comments to the top. Yang Yingliang (4): irqchip/gic-v3-mbi: fix uninitialized mbi_lock irqchip/mbigen: rename register marcros irqchip/mbigen: add support for a MBIGEN generating SPIs dt-bindings/irqchip/mbigen: add example of MBIGEN generate SPIs .../interrupt-controller/hisilicon,mbigen-v2.txt | 17 +++++++- drivers/irqchip/irq-gic-v3-mbi.c | 2 +- drivers/irqchip/irq-mbigen.c | 47 +++++++++++++++------- 3 files changed, 50 insertions(+), 16 deletions(-)