Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp107709rdb; Wed, 14 Feb 2024 14:28:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUlK3zJfdYa2nCpnkrqTIiL6EOaxhWmuUiQjphfEi/8OlZizG50sCWKntAiD0PPUNHADW5b8zdw9yzUiSxTgMyCtXiJSiLjTGaCMNLL2w== X-Google-Smtp-Source: AGHT+IGq0GrW84wDvCfIDD+dlG/qc6tmkbxZQNfXoLqE7GYWgxTsRLl8bKV7WFtUnXefQ3LoU5X9 X-Received: by 2002:a0d:cbcd:0:b0:607:cb52:9498 with SMTP id n196-20020a0dcbcd000000b00607cb529498mr409776ywd.11.1707949732439; Wed, 14 Feb 2024 14:28:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707949732; cv=pass; d=google.com; s=arc-20160816; b=VQn2Wa0+t6S8QBmzd00PvPWVyCld5XTAycj/qcLR8t2xqJde2cxQRuYBgy1N6FImwo dWY4o425oj2Jjv8dGWbTErInoLG3Qzi76XV4XN9ilQH671+wngR44CzESxfb5g5qc6Mq jrtPfJXjb5H9bbGDzrUXb6+16XOEBy8M2x+9xbNZo+UA8rhHgPi2ThVR6djOnRdikPnh YGuBtoNL0fI6Qrj9salV0iMXfDo+CFNwzKrZL4J3Ut186DAwWEjyreW8vttA+VbQtoT3 uohWPm3mzuGxHnIBjjbu45YTZqe54B9ir4oimKMLuGghI+RZ5VQANC/LsRRnM8UG/E5N Atfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=1zh4Ekmq0C8Qu9QeJHKC45M4AiEEr8JK+6McS2aXWps=; fh=g8l7ksBxTSbSkKXzsQOltZZ+uL1SBUgvVgUElDA2ZNw=; b=eLJWms4ySGCzIbG0V0uNmWbKsAIsXRDapzTHRzWsm8zx2JYwPFaSANLd6Eejsj8PgJ 4n/DoGOPEjld+rvECQPAXexYBkLsEibfix6CSQo3wbqRB5VMuBDnLiAFEpLH4WoguKw2 H2AN8c9jSByBJd1XFJJhcrRsGWY/1EGrTC1ZuK6gNfm59WuSHmcjfX3vz7qTCgPM6oxw JfG1v8MPJlHBk/a3KTtfK5/ilfF0TyzorJfuYl8BtftrXIyapA8lViY8RSTnbJrcx3Gs yQruFfbJaRIgdx+ZX5lPbLMVYvYECRxuF725flvzguJRIC8s03pS4n4ey/dgVrPGXaDA 9x8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cxv8HS1F; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b1-20020a05620a0f8100b00787236a4ba6si71826qkn.387.2024.02.14.14.28.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 14:28:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cxv8HS1F; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 348F61C21A41 for ; Wed, 14 Feb 2024 22:28:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBFEA1419AE; Wed, 14 Feb 2024 22:28:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cxv8HS1F" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5C1E13EFF6; Wed, 14 Feb 2024 22:28:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707949702; cv=none; b=u+1utU3SMnRNu+pRmxCH+dgPQ26gKoBYJBoaoJSd71L46b/SsicUZmqVMrtZ3h/cYnhGGAUDH73E4jE2ih7qQXCMk6wvzFyTvm9WC3Kyn2RkoUHNpHehs8au73FXGByVkWtT1zRGSyKBkIyn6qoDgCBSs4ItsCAxoZTQfqflqp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707949702; c=relaxed/simple; bh=qbQIPkDF9enNBpDUcaaAm6aTN+NTrShN/xw24zMiJqU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=gP9+/VWvDFEzmOxRoaWOWrkDBYNTaqqxKvmJ4C/N6mA8MdbD4Qov2N3Rs4eLhMEz3SXFfZcJ7eWaubitmFf8eHf740cdCRD2hxfdKnwOlY61/tnl+z1umcFD/H6eGV06lgfCdyk1pENN4bQvVB3VxAizqlMg11+8bo+YEB2rd/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cxv8HS1F; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22D5AC433C7; Wed, 14 Feb 2024 22:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707949701; bh=qbQIPkDF9enNBpDUcaaAm6aTN+NTrShN/xw24zMiJqU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=cxv8HS1FjcAFAG6g4L5UUkAfOcC5oRq4VLve5CyWif/eJO7ftzpQYRp+ymW0bXA6c r/c/183kvkTOMOCO+vfiey1KJA/OasI+2CsXImsX6p2aXkLFLlpyT5D3g/Ih4lcwfI xQebTOgZ2QFP+Rv5vwXn4X5EhWPtAM+TX36D3ZWuA1y5MSeC86Znw3Qek8qMimRAz3 k0JstiTGweUcoNexA91Gkop+DjQ18SUhZYki3jjvz4NVH9SHl0umbVQpbGMCzuIQgK fDHdVqafGYHKgedJL+ni+wpY5J5RDauoHmh+BUgHLf7UDjmVNIQRc/Fc3DnlWiz00U BFMAuYP2AHd7w== Date: Wed, 14 Feb 2024 16:28:19 -0600 From: Bjorn Helgaas To: Konrad Dybcio Cc: Bjorn Andersson , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: Re: [PATCH v2 2/3] PCI: qcom: Read back PARF_LTSSM register Message-ID: <20240214222819.GA1269395@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26015e7a-5e3f-471c-aa98-46a0dfb4d155@linaro.org> On Wed, Feb 14, 2024 at 10:35:16PM +0100, Konrad Dybcio wrote: > On 12.02.2024 22:17, Bjorn Helgaas wrote: > > Maybe include the reason in the subject? "Read back" is literally > > what the diff says. > > > > On Sat, Feb 10, 2024 at 06:10:06PM +0100, Konrad Dybcio wrote: > >> To ensure write completion, read the PARF_LTSSM register after setting > >> the LTSSM enable bit before polling for "link up". > > > > The write will obviously complete *some* time; I assume the point is > > that it's important for it to complete before some other event, and it > > would be nice to know why that's important. > > Right, that's very much meaningful on non-total-store-ordering > architectures, like arm64, where the CPU receives a store instruction, > but that does not necessarily impact the memory/MMIO state immediately. I was hinting that maybe we could say what the other event is, or what problem this solves? E.g., maybe it's as simple as "there's no point in polling for link up until after the PARF_LTSSM store completes." But while the read of PARF_LTSSM might reduce the number of "is the link up" polls, it probably wouldn't speed anything up otherwise, so I suspect there's an actual functional reason for this patch, and that's what I'm getting at. Bjorn