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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 98EC4CA100B for ; Wed, 3 Sep 2025 06:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WZnT5uA6KIeOMSm0wIllaXOm74j1vYgVbnkWPxMD/7Y=; b=sjWRbVU/EopwaXaPP7g1AgfeV5 5wYjAO9TBz/B8Lz/ceuBXWkxyh/g4sVIpEl5iuN8s53TdKVVuZsUn9DuF1m+9h3X744/ilSkEfRK4 Uvxv7N0+6VfuPONaZQV9mgsxkwMWlEQQ7SjfduRIWgBpu3G8uJ9SjJ5ndPYf29QIcjk0uRA1WFLR2 W/KqRKnXwVfcd+COa3rol0ou8Poj7NfWgET1edSYZDUragrH9NL91KmvjVvH9HuOad0WtKaoOpM19 cjmE3p+sJMmyk2x0hlRsBLHWD+0xJukQaP/6UjkcE7mMySdL7B3q+cYsKa9XRxWaeYfU10bHQCKNt UtykAOIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1utgua-00000004bW8-2niO; Wed, 03 Sep 2025 06:24:04 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1utgrs-00000004a9N-2n0g for linux-arm-kernel@lists.infradead.org; Wed, 03 Sep 2025 06:21:16 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id C78636023A; Wed, 3 Sep 2025 06:21:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7590BC4CEF0; Wed, 3 Sep 2025 06:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756880475; bh=NznlH5PgUYjdRJyI7ivYzbTBuMkKWeEALjW0fPj3M9g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QOgFF4LedZbxEfKfHATx+pSSrDBulZnJOFdTjB7Hb5RX+IARuNNSGttBgxL1+Io7B d5ZzUAle8y9/OeT/5GeEoldpPPuJT/N+ip7NolMPM7t39iy3l/qKj0fiX5wq0OOqYD 2DoJK4oTd+X+kCHd9SUmxnxAV0tsMvG2WlbDH4HYVAGpws2FXaJUzVmbEmozbeGcqF tStKTAairJKSJs1oczK7dw5P4drPd4dQsuvLIwjd4rnylY8YgkVvOJJu4u4MIdwdw2 lhpij5ZkaKXOVZnQUf2fCbZFPdlAQNINrCdd5bqdynDdZmmnBcNEoxRwvhieJb+YX1 7jxiiSNEBRRlw== Received: from 93-47-110-174.ip112.fastwebnet.it ([93.47.110.174] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1utgro-00000002qgc-3rgU; Wed, 03 Sep 2025 06:21:13 +0000 Date: Wed, 03 Sep 2025 07:21:07 +0100 Message-ID: <87y0qwys30.wl-maz@kernel.org> From: Marc Zyngier To: Zenghui Yu Cc: , , , , Subject: Re: [PATCH] irqchip/gic-v5: Remove the redundant ITS cache invalidation In-Reply-To: <20250903023319.1820-1-yuzenghui@huawei.com> References: <20250903023319.1820-1-yuzenghui@huawei.com> 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/30.1 (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: 93.47.110.174 X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lpieralisi@kernel.org, tglx@linutronix.de, wanghaibin.wang@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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 On Wed, 03 Sep 2025 03:33:19 +0100, Zenghui Yu wrote: > > An ITS cache invalidation has been performed immediately after programming > the L2 DTE in gicv5_its_device_register(). No need to perform it again > right after a successful gicv5_its_device_register(). Indeed. And this call doesn't check it's been successful either. > > Remove it. > > Signed-off-by: Zenghui Yu > --- > drivers/irqchip/irq-gic-v5-its.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/irqchip/irq-gic-v5-its.c b/drivers/irqchip/irq-gic-v5-its.c > index 2fb58d76f521..554485f0be1f 100644 > --- a/drivers/irqchip/irq-gic-v5-its.c > +++ b/drivers/irqchip/irq-gic-v5-its.c > @@ -768,8 +768,6 @@ static struct gicv5_its_dev *gicv5_its_alloc_device(struct gicv5_its_chip_data * > goto out_dev_free; > } > > - gicv5_its_device_cache_inv(its, its_dev); > - > its_dev->its_node = its; > > its_dev->event_map = (unsigned long *)bitmap_zalloc(its_dev->num_events, GFP_KERNEL); Reviewed-by: Marc Zyngier M. -- Jazz isn't dead. It just smells funny.