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 74E55C4332F for ; Sat, 4 Nov 2023 09:57:19 +0000 (UTC) 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:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LmQ5+4jUEIda25XgYe/EB0GaQ+rkaUAHDNtsHLXloic=; b=fqpRQgKxQ+1/hK g6uW1SVPTQ85CqbEfSNwlhVm1B9iCZk19GPUyRRiT6SACXEnO3hnZOIuMH3hOG55OtdmprNU+JxKo ji/3dBDn4/DJiGKYocPM04LSvOcAbQLuCEBrjSgWYp+nOM5sIOh/0cjj0tSBn9OG1nK7ZOpfRv0Fy j6L3dl5dUb1l1Z6sj6vxSjaTf2JvlWaU1gg/JfgNRbJuljweQWZXlChMC/UGhxfD+7WGYektMAVys 2E3b4hfVYtYN0Isxsw0OxUnUSds9M3WDvpgCqCjlyBb55FoG04rV8IgS6aaqtRkU6PI4D/cRXo98N 3Y07ofK/NL3p8WSU5pJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzDOZ-00D0Uv-2W; Sat, 04 Nov 2023 09:56:47 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzDOX-00D0Ub-1I for linux-arm-kernel@lists.infradead.org; Sat, 04 Nov 2023 09:56:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id B5DADB80011; Sat, 4 Nov 2023 09:56:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18455C433C8; Sat, 4 Nov 2023 09:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699091803; bh=yBRJ2Iik1AL9eX0LaHG2P5msyufN+rdyxQIPGaFUtDQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=U0JNmCY5l+j2AgNLP0oXIsaEkMmrGa1GmeSSRnPr+4Okqj8ecXqJ1IIQXLP89R6mv TmlXhNDGA91hBQQzcsV1bdqgRcpor8SHQnFtClQ97r3465ezgZj8FID8svzrLrXRLG /873kSYa2Mzp0GBWIhobVylGuj3aVfEPpA3ollwFVZxyCR5U5huVuRZx5FXnuRWk7G f30d+g5NatWOEtMNxpIGOR9OqGSk7GXxPzDCpuqUMJdO8DbIW2d6Dp93bkihx4NzXS Xh3x4siBsUKVaoFdPkPxAj/QUdEGYj21RUJP474pP0ggB2db/RjCL8t6QE6u7GiBl7 UqTHW1tGG0rOg== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.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 1qzDOS-00AHAI-IU; Sat, 04 Nov 2023 09:56:40 +0000 Date: Sat, 04 Nov 2023 09:56:40 +0000 Message-ID: <87o7g96duv.wl-maz@kernel.org> From: Marc Zyngier To: Fang Xiang Cc: , , Subject: Re: [PATCH v4] irqchip/gic-v3-its: Flush ITS tables before writing GITS_BASER registers in non-coherent GIC designs. In-Reply-To: <20231030083256.4345-1-fangxiang3@xiaomi.com> References: <20231030083256.4345-1-fangxiang3@xiaomi.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/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: fangxiang3@xiaomi.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231104_025645_615084_7CC9A43E X-CRM114-Status: GOOD ( 13.59 ) 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: , 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 On Mon, 30 Oct 2023 08:32:56 +0000, Fang Xiang wrote: > > In non-coherent GIC design, ITS tables should be clean and flushed > to the PoV of the ITS before writing GITS_BASER registers, otherwise > the ITS would read dirty tables and lead to UNPREDICTABLE behaviors. > > The ITS always got clean tables in initialization with this fix, by > observing the signals from GIC. > > Furthermore, hoist the quirked non-shareable attributes earlier to > save effort in tables setup. > > Suggested-by: Marc Zyngier > Signed-off-by: Fang Xiang > Tested-by: Fang Xiang Reviewed-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel