Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp92733lqt; Thu, 18 Apr 2024 09:13:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeXtaTos/Q5EorQFXrs922VrjGDSjAzCiuueyCQDnlgA8e2pfp6pyPzFRIODKjHpFOT42HOYOY5GP6lkOXxDwgw5G/aOFeJKuPJ35apA== X-Google-Smtp-Source: AGHT+IFFyh7r12u7ExOcUFmLW8YphhMCiVto8Mv3lvIlU1mNgFtahw6ystBhaXQMyl2onRlTjL8k X-Received: by 2002:a17:90a:fe86:b0:2a6:217b:4492 with SMTP id co6-20020a17090afe8600b002a6217b4492mr4151498pjb.3.1713456789989; Thu, 18 Apr 2024 09:13:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713456789; cv=pass; d=google.com; s=arc-20160816; b=ZMmhgIZ/y7Di+Vdl5sUT3ETMeUqRTTFMjEq0fb5/RnOaBwQUQHySNtBWFCgYV1MMHp ji6VplviTF+IvjlR2PBn60gl25HACZ+vC8C8bi8nHJihF9bHhBQkzXyx6MIUelt3S+yk AYnXG8eoBIszzufzEbADmpaXqoIqxiGkYLUzInDI+2czwJanazdjjrDQbo8VyTPGDr+x e6B6SOuid98ZKTQdGe1lxFIbY/ZAO/DpgZ104XGNIp0Ppz14dejyCjBNxO+MhbJsFEY1 BpKuMgKLMaY4G/TB7/tMaoOcsZfaHQ+D0Tv0lW0lp5jnsk28qgl88tT7z5y6FIsWnNR9 HBqw== 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=k+eMhHSgG6nis/IOPioi9oUdEp+QOxMJF/xYfz5sLWE=; fh=TXM8tQ153ebp2IA/JAqlIFQD/I7B/ElpdMBjmXkeSlQ=; b=RqjhEYJx7reYpOktt7uE4F5rOtf1GfRvezDNvsF6TqZgcEBMhKxtO6j8P9wr23Ny8U kIY1pOKqEv4vuPH2X3AKsXKBaXa1+VruWjQ7P5NKBaXiv/VvMyApkBkQl6Bo4U6dDI8s vfzRrMK46p3LfwSyx6SyBJm6NKrdGEdiWdnXUEwHUNiPmjufnqo/nRr+SvE5Qlxv+ONE mf1Ualh+dVIJbkb7mb0adFW1MAU5pdL8jpxsurIv3TgAGV7xEz6CrMy2NhZVoA14WfOE yydyjudqGwIKrXaFCMD2wm+4yr6QVzMKkRaE/VRDdcEFjNuUl+iWxhLWYU8uKm+9LsoR fMdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iE+QD7BL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150460-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h11-20020a17090a3d0b00b002a28b5ee082si1729331pjc.140.2024.04.18.09.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 09:13:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iE+QD7BL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150460-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150460-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9C5AB286CDD for ; Thu, 18 Apr 2024 16:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEDC516F91A; Thu, 18 Apr 2024 16:12:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iE+QD7BL" 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 E879C23D7; Thu, 18 Apr 2024 16:12:11 +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=1713456732; cv=none; b=H1Rgl7mnsICXKKdnnAEt4Wrfa61zMhIACVtS5Ib/ItG0HoayTEl+0gSmrtz8oQCbvb1LQDHhFBnMu/9QQDEXt+lojcUAfHbn1zQ249St4wNP7e3VUJWXOfuXeh74bwR7MLU8CSG1V9Co5HvpIoC+a+o2Gp9/sIs3EnAgEyay+K0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713456732; c=relaxed/simple; bh=eRwB3YCw2t/w180tUcjZCYanbt8cMadquiphPHE1TiA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=jZD1eXFAoY/jMxKPYDUvpmNxcKgmwAnQXTPldh4r115dTkYnJdIteQPaR+GD0mrIyOlIdClX7MmOwBdKLB9v9lc/L03VLxyvDYVYCvmpUuFsFwFKl2Rm56kfFuNHKSEe+w06AHn4UH325xqwOe6agOnCD1zpPth0LK65/kuxmYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iE+QD7BL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A8ABC3277B; Thu, 18 Apr 2024 16:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713456731; bh=eRwB3YCw2t/w180tUcjZCYanbt8cMadquiphPHE1TiA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=iE+QD7BLSB9x6TGqXDdv4Zdg0SxEzUneBlr02PnQCY9J93OeWYeFLE7Z2izfpbo9V 7/+xMMaxc5o490jmdY8cyBOuAqJvTrU/lKvPAybVUs1PzpSi1j4spg6tN01mYU9IRH Xma2PLYFuPx07sHGMvWD9p0LAv85X0uQGQx595NQQWssB09z18Cu7PlY9Fsqij/gxM j5iY0NBTID0B8Te4oEcr54uWMWuqbqCy/bZLKQthJgZYhSc2nQYHjmWac4O7HdRbSE +FVfiKdrXzgdjmNmwwDyTTudYOePPw6pyTJvqzQRQ3ccMjXHdY0PUdgphryOjC2tsn tInUT5nAvtNhg== Date: Thu, 18 Apr 2024 11:12:09 -0500 From: Bjorn Helgaas To: Manivannan Sadhasivam Cc: Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Kishon Vijay Abraham I , Thierry Reding , Jonathan Hunter , Jingoo Han , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-tegra@vger.kernel.org, Niklas Cassel , Damien Le Moal Subject: Re: [PATCH v3 3/9] PCI: endpoint: Rename BME to Bus Master Enable Message-ID: <20240418161209.GA239309@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: <20240418-pci-epf-rework-v3-3-222a5d1ed2e5@linaro.org> On Thu, Apr 18, 2024 at 05:28:31PM +0530, Manivannan Sadhasivam wrote: > BME which stands for 'Bus Master Enable' is not defined in the PCIe base > spec even though it is commonly referred in many places (vendor docs). But > to align with the spec, let's rename it to its expansion 'Bus Master > Enable'. Thanks for doing this. I'm always in favor of using terms from the spec. > - dev_dbg(dev, "Received BME event. Link is enabled!\n"); > + dev_dbg(dev, "Received Bus Master Enable event. Link is enabled!\n"); Nothing to do with *this* patch, but this message reads a little weird to me because setting Bus Master Enable has nothing to do with link enablement. Also incidental: some of these messages and comments refer to a "Bus Master Enable *event*". Does "event" here refer to the act of the host setting the Bus Master Enable bit in the Command register? This is in qcom_pcie_ep_global_irq_thread(), so I assume there's something in the endpoint hardware that generates an IRQ when the Command register is written? > - * pci_epc_bme_notify() - Notify the EPF device that the EPC device has received > - * the BME event from the Root complex > - * @epc: the EPC device that received the BME event > + * pci_epc_bus_master_enable_notify() - Notify the EPF device that the EPC > + * device has received the Bus Master > + * Enable event from the Root complex > + * @epc: the EPC device that received the Bus Master Enable event > * > * Invoke to Notify the EPF device that the EPC device has received the Bus > - * Master Enable (BME) event from the Root complex > + * Master Enable event from the Root complex There's no "set Bus Master Enable" transaction that would appear on the PCIe link, so I assume "the Bus Master Enable event from the Root Complex" is a way of saying something like "host has written the Command register to set the Bus Master Enable bit"? Bjorn