From patchwork Tue Jun 22 15:53:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boqun Feng X-Patchwork-Id: 12337915 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=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 2B12AC2B9F4 for ; Tue, 22 Jun 2021 15:55:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F194161040 for ; Tue, 22 Jun 2021 15:55:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F194161040 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=8rbzg51EmNs2gZ+qdkdXHZnADcN1YYPKXLWWwiVP8to=; b=1Tysg7w563olHA wuaFY5NSzEyl5YMvoaSTf3PKlJ0sV8cT0cr5rP2VH8iVqiylGsH92JkduUpW6zFS1vij4UxhBVeW3 y95xoC/jtWoT7AACk75M1DJqGUDfkne+z1Kf/Cx69ppQgCkk81XMymC/lkokzFMiWshhpvONkq2C5 RIdk/oTG3dj6CIPrPEUqsx3NoKSxH4W3nSNhTTSnjAQ3sAyJSy0r1McmipLWRKoUyFY2vHDGIgawH 82QBcuw/jRgc6ZlZ3nxdNEzwXjTeYxMl6kKi7hr77Eyk8dxntfkTZvIpCOSbULlMMcqmtAXqXCTOf xfzIueSAEaCajPHr3XhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lviix-007nqL-3F; Tue, 22 Jun 2021 15:54:03 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lviis-007nom-Jp for linux-arm-kernel@lists.infradead.org; Tue, 22 Jun 2021 15:53:59 +0000 Received: by mail-io1-xd2d.google.com with SMTP id g22so6858807iom.1 for ; Tue, 22 Jun 2021 08:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Umc4sWsDnV3E9dkp2D6Lf7jpm4wZpHbawbe0BbsfyjQ=; b=a9yJqt2BZ2t2MDO4kGRIpXsAEVZWE7vIE7Nt2dJ/XNwLsYRGxh5Nh4LT4oHH3mWMIE SU71pitQAq11v0g54LT52FbEu4dg3VU6asksFLM4KWS1WV5VaTzcv0zuhBaoXWSiwFU4 GSJ8j3RTvTN554gm0k21flTX6WubLgTYDwB2hDFVXRILHCZsWTaIpgk+HFeuhLuDsBrm 3zdH71YWvJRudeZ4PUUkvFnilzObWTaB2qUjWs464a2qJny09dM1mTTLOeHKGbaM7MLQ hudnPSND/ilGhN/jiHUgRtintah/IIfY2RQxxQ4c++Aw4KcwuG6s4DXroUqjr98iJ1Mh 8pmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Umc4sWsDnV3E9dkp2D6Lf7jpm4wZpHbawbe0BbsfyjQ=; b=End5T+8GVagLVw7gKOeHwQ8tVKQzpBtbcXrtXmDQUgjgSlkLcqKcJbSt1V3XP2Sgi7 P51tTbnVeUrWdJ/D2vCJIibTL86Uu2jbkug4HFWuhZSEhOC0+3oakidRGZ7vf7PTCEuR A00iOLZm4pKAcUrDJ+NWgEBoQugz95DRwySI5Sf8YhAU3qS/hyLFfagkaSX0/FhlhNNb I7vSQdEtD/eGwkF4xu6W6ayzsA7ejkEX/FBB31WIhr+le+JbfW7w2ojY/Z/+Gnm0jP8r sOCo/U6o23WAxvH2+T1FI04pDojeO6EJSYRTsOwZvuZswd92yQqA/phX7P9kMv7UUL3j yw1A== X-Gm-Message-State: AOAM533so9nVZmZAEq+WjnN26c1ntbOgxiuB379WFDImPmLZwADVfa4+ lwRgBNwoo1WbP2kXBEd54As= X-Google-Smtp-Source: ABdhPJybhZcceVuAq9l1pSv+bPD7hz6H8VrIXkAsBL245tiYdEFH3+R8PbBr7b1X8eiwT1bH/so0Qg== X-Received: by 2002:a5d:9414:: with SMTP id v20mr3477008ion.66.1624377237182; Tue, 22 Jun 2021 08:53:57 -0700 (PDT) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id z3sm11951776ior.14.2021.06.22.08.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 08:53:56 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 6A5A427C0054; Tue, 22 Jun 2021 11:53:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 22 Jun 2021 11:53:55 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeguddgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeeuohhquhhnucfh vghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrfgrthhtvg hrnhepieejhfelvddtgeduhfffueegteevleeugfekvefhueduuedugfevvefhtedvuedv necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghoqh hunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieegqddu jeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigihmvg drnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Jun 2021 11:53:53 -0400 (EDT) From: Boqun Feng To: Marc Zyngier Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Arnd Bergmann , Bjorn Helgaas , Linux ARM , Catalin Marinas , Will Deacon , Boqun Feng Subject: [RFC 0/2] irqchip/gic-v3-its: Introduce virtual ITS Date: Tue, 22 Jun 2021 23:53:11 +0800 Message-Id: <20210622155313.3819952-1-boqun.feng@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210622_085358_694773_58C01B67 X-CRM114-Status: GOOD ( 12.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Marc, Here is an RFC for supporting platforms having LPI supported but without ITS. And this is for the virtual PCI support for ARM64 Hyper-V guests. We currently choose this approach (LPI w/o ITS) because a) it's allowed for GICv3 and b) ITS may not be a more efficient way to configure LPIs compared to hypercalls, but we'd like to get feedbacks from the community. Besides, patch #1 fixes a bug which I found while I was at it. Looking forwards to any comment and suggestion! Regards, Boqun Boqun Feng (2): irqchip/gic-v3-its: Free collections if its domain initialization fails irqchip/gic-v3-its: Introduce virtual ITS drivers/irqchip/irq-gic-v3-its.c | 124 ++++++++++++++++++++++++++++--- 1 file changed, 115 insertions(+), 9 deletions(-)