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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA147C77B7F for ; Tue, 16 May 2023 10:15:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbjEPKP6 (ORCPT ); Tue, 16 May 2023 06:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230476AbjEPKPz (ORCPT ); Tue, 16 May 2023 06:15:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA08469D for ; Tue, 16 May 2023 03:15:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A60646373B for ; Tue, 16 May 2023 10:15:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EAC5C4339B; Tue, 16 May 2023 10:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684232146; bh=b+HD6MIBBfGJ5NM1AVmyxgj15UFlPhvfUNJI/2QSQEo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JW2s/aEY9scyL2r3rWLGqiPhPIq7tAoM1ZdO4LEfVbd16Dq3UluxjnYh1eYJoKN9p Ogp5PHvLfpOSALTOMDHzD9/2MvBYttlaohiyd8aEdJVLlP1AoI1iGAqg2YEGqF9D0R Jx5wENUQUTecIG9OPRudw3hFO/RyniNVnnY4gHagvnSSGNzHjO99US70sTCUt/dm8U UBi6QhZPFzZlnZz3cOoVGrDFUSsBtlJFiwvITVyR6mXCleoHlSE1BKPay/zoRjpzmJ 6HVk3s9mpkPBBFVw9Z9Fj5mmEPxNtCw5VGhqt/4h5SSTyaQh7vPSygjdA/jq7BkONb gP7vayfJI1sQQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pyriZ-00FUm2-R8; Tue, 16 May 2023 11:15:43 +0100 Date: Tue, 16 May 2023 11:15:43 +0100 Message-ID: <86bkikmvjk.wl-maz@kernel.org> From: Marc Zyngier To: Kunkun Jiang Cc: Thomas Gleixner , Zenghui Yu , "open list:IRQCHIP DRIVERS" , , , Subject: Re: [PATCH] irqchipi/gic-v4: Ensure accessing the correct RD when and writing INVLPIR In-Reply-To: References: <20230412041510.497-1-jiangkunkun@huawei.com> <86y1mxl9m4.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: jiangkunkun@huawei.com, tglx@linutronix.de, yuzenghui@huawei.com, linux-kernel@vger.kernel.org, wanghaibin.wang@huawei.com, chenxiang66@hisilicon.com, tangnianyao@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Apr 2023 04:57:17 +0100, Kunkun Jiang wrote: > > > Wouldn't it be nice if irq_to_cpuid() could work out whether it is > > dealing with a LPI or a VLPI like it does today, but also directly > > with a VPE? We could then use the same code as derect_lpi_inv(). I > > came up with this the hack below, which is totally untested as I don't > > have access to GICv4.1 HW. > > > > Could you give it a spin? > > Nice, I will test it as soon as possible. Did you ever managed to test this? Thanks, M. -- Without deviation from the norm, progress is not possible.