Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2572874rdh; Mon, 30 Oct 2023 00:48:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQ5CVUlgTfd8BPn/oNP+Wdm7VHs7PoiqMhUX/ZInebzq64nZu9zPPHFao6HXpK9WkHv1g9 X-Received: by 2002:a17:90a:35b:b0:280:37c7:988b with SMTP id 27-20020a17090a035b00b0028037c7988bmr1863764pjf.21.1698652131705; Mon, 30 Oct 2023 00:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698652131; cv=none; d=google.com; s=arc-20160816; b=Jdsx+NPHlOH2u8oWXtgXP8Yfn6pUsWBxzcuzVmJ5Z7G/a97RxuoD+AqFq23IWiTAW3 OThKCKiP/Y3cDRYk5tt6sa4/vcdkyyfVl9ytUufQGA6ECyi7jnzk6Y55PsSmr8EKcAP3 kiazc2Gej8OSoUW5EMULpL2HtDENjBp5FdbTf7AKnX8gTfg0kleYEFwwHd/CDLIc5bPy KoxpK4r/zMKB3s2JsjaBJYc3ujN8rrgiuGWuD6tY48o0gjTqiSOVbyb77+/Dozoh5ouq ndHjBXtc1UB4Gbcv3TkFJ/S5HMyYLii/xFaIheW2C3KIJ9vX4rqXN9AL3pi127qUZFHi Nhqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=wqaMyx288sK28sox2g/hiiBX6W6NdOpwjKPZnFKF1i0=; fh=BZUIbKTvNaWWi8NpBbHHqJKbr9CgeiODVt8vvMN93ZY=; b=Qf3e7OltYkvbfRU66B/R7HeiR2uHrYkRyei9tOp2ZhasRAdYLyBcJKYX8g8AT3TKon qT4U/bd5FgOdAaNU94rMWR65hO4WR8Mmg5CSWNMta2HsF+gbp97GLQ1BVY7g8fZNCMfZ Pd8eUv6TS+VQ2cI8DG71qQXZltfcMk11GKJ0SJbp+BHCRLG7SpKvqUUL5pN/0GhJst+/ lYPtEJ9On1Edr7+4L9s8CUphwxGGwoQlVTQaUvh8P2G/O9xX7CspNQfD6Wbha0DgXenO ocwq1A4um5qFa+D/PO9jrQdp8HZ3AXbzI2VceToFQwOP4gZdh6KCUBIv/NiduIRXumDp rOaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i4WvaKjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h1-20020a17090a130100b0027d0bf1eef1si4536524pja.98.2023.10.30.00.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 00:48:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i4WvaKjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 063AB8051144; Mon, 30 Oct 2023 00:48:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232227AbjJ3Hs1 (ORCPT + 99 others); Mon, 30 Oct 2023 03:48:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232159AbjJ3Hs0 (ORCPT ); Mon, 30 Oct 2023 03:48:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 648A0A7 for ; Mon, 30 Oct 2023 00:48:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0888BC433C7; Mon, 30 Oct 2023 07:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698652104; bh=9ZYjAbeiDueiB+lgVz4SsBHkwUtc4/ScPO1cuZQ4Q5s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=i4WvaKjEW9TceEGr0pDhHfS5IVIZABXOUizSyy6xZTLzkfA6NUdGgK1kuZkAsCjUX DxnWms00OOOjD6YIM0BpZKdocF2XgHFKS3nRnKC1TR+wKObtdgS0C3HHq5SWx+Gs2V /JnrNUx62WKhgOM4tRWsWLOR/1EqLIK4TDK//PbvI7C5Nu//cAMeyO7OkFIHhZTjo5 HxGOd7YPAYwfZDIJjfY4sPK5CyKZb+3X8shuvFgv/Efw01mS2nz3jTSE66U+oh1Wr2 roQHmcODiBUx9vEe7mChKjhXjWPssfzsDU+bI1ZJafo7iP0wpghoBI+DBuitkaQE/V 2f2F1W359YSJA== 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 1qxN0X-008qI7-HF; Mon, 30 Oct 2023 07:48:21 +0000 Date: Mon, 30 Oct 2023 07:48:12 +0000 Message-ID: <86pm0w1rgj.wl-maz@kernel.org> From: Marc Zyngier To: Fang Xiang Cc: , , Subject: Re: [PATCH v3] irqchip/gic-v3-its: Flush ITS tables before writing GITS_BASER registers in non-coherent GIC designs. In-Reply-To: <20231030070020.3689-1-fangxiang3@xiaomi.com> References: <20231030070020.3689-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/29.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: 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-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 00:48:49 -0700 (PDT) On Mon, 30 Oct 2023 07:00:20 +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. > > Signed-off-by: Marc Zyngier Please read the documentation[1]. You cannot use my own SoB yourself. *I* put it on patches *I* author, but you don't get to do that unless you put me as the author (which isn't the case here). The original suggestion from Thomas was 'Originally-by:', and 'Suggested-by:' would work as well. > Signed-off-by: Fang Xiang > Tested-by: Fang Xiang > > Link to v2: > https://lore.kernel.org/all/20231027031007.2088-1-fangxiang3@xiaomi.com/ > > Link to v1: > https://lore.kernel.org/all/20231026020116.4238-1-fangxiang3@xiaomi.com/ > > v2 -> v3: > - Add 'Signed-off-by' trailer for original author Marc > - Expand commit message with testing result > > v1 -> v2: > - Flush ITS tables before writing GITS_BASER registers > - Hoist the quirked non-shareable attributes earlier All this needs to go as a note *under* the '---' line. Thanks, M. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst#n396 -- Without deviation from the norm, progress is not possible.