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 E65F2C3271E for ; Sat, 6 Jul 2024 03:25:00 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From: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=9Pb7EbDUVGH98ibgR3s40PMLBJFydYTcIKO50p0umcU=; b=zb+xzw3MnHoHIs8gyU70NHSOjV kceo8nXoCQf7knpSYZj8LV5o0yDJ/CH7gQquJbguxJhCzECpD1sHIq8nkTLrWjHf30wPG+7Y5vpRr AnRRMyPnectsa/U70aWB7fLjBzIW1eHgoSPhXLpV3kcb5xaSxPaLXRlnnvUssglcdCcr0AqVN9LSL iMZ3g4AGDjD3IpUu16Q9ave2p2OTDNHXIRNSfimlezCNdTcPZ/GYu0puA+vC8IEx/rEdluUgvGrO6 1JUGFqW+k/7JVlJl75UNecDW+JAzjGoEB4+7kDtWQvjQ6BGMZnxeWn77HU39mvOmHtGORp5ywm5X/ XxTxg2AQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPw2c-0000000HEHo-2VEL; Sat, 06 Jul 2024 03:24:50 +0000 Received: from mail-pf1-f169.google.com ([209.85.210.169]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPw2N-0000000HEFJ-0TtG for linux-arm-kernel@lists.infradead.org; Sat, 06 Jul 2024 03:24:37 +0000 Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-70af22a9c19so1627264b3a.2 for ; Fri, 05 Jul 2024 20:24:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720236274; x=1720841074; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9Pb7EbDUVGH98ibgR3s40PMLBJFydYTcIKO50p0umcU=; b=VjHWPErAl8iKvKWzQPDrupli0DS8nTgYoCtbteahw8vb1sOk3lZkbr34ezphne3qeB LsxqdJKpgvkxZxIyxzc5OX8xn31fwS/x/MA3G2gknCG2kzbzyBTS1yp98TmfmoyPcRnB d6fFGnWwyKeBRTz67IGEcDAp4hZTxm0QB3HztLijkWixDU3UNsuFoYrbvS2QA5s+ce3P vfCjzn8m3S1aaEw+z8U78dUCLnZjrDXG7/jWunoyiwV0lGjQLYtUxckH2pgr5rHD7Hqa o9seBf0Cg6vlcV12et0aO49g8zxCKAatbMXjELQcwNnvJN7PhnL5F6g2a8E9LsLCpS12 /LGg== X-Forwarded-Encrypted: i=1; AJvYcCUMye8AjfJNxvj221WFL2gnpoVkwdIPOnLzc6sF5DyssN/615vKkNT42VfpeQ7INnRiq4hs2gnFEpULEic7dD/mkuQ9BkPK1UZM+mYkxpDM5G+1dBg= X-Gm-Message-State: AOJu0YxiYeGpKkV1/pfn91eCeaEnP6HxSfA3S+ET5F+A4ZvvQUIEnc2V iKhlx8FmdKNM++f8I4KZZa5QL4fy45NbypLW5OmTJjnSMMcvsgbJ X-Google-Smtp-Source: AGHT+IFURMNMv3i2QDNgjzV+meNyec/XNEWMDIioYfNtMKTQgCJfyraBJJkOdc75XnBjTu8O+vWrCQ== X-Received: by 2002:a05:6a00:170d:b0:704:24fb:11c6 with SMTP id d2e1a72fcca58-70b0094a6c0mr6154295b3a.12.1720236273403; Fri, 05 Jul 2024 20:24:33 -0700 (PDT) Received: from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70afeb4186esm3967297b3a.41.2024.07.05.20.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 20:24:33 -0700 (PDT) Date: Sat, 6 Jul 2024 12:24:31 +0900 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Jean-Philippe Brucker Cc: will@kernel.org, lpieralisi@kernel.org, robh@kernel.org, bhelgaas@google.com, krzk+dt@kernel.org, conor+dt@kernel.org, liviu.dudau@arm.com, sudeep.holla@arm.com, joro@8bytes.org, robin.murphy@arm.com, nicolinc@nvidia.com, ketanp@nvidia.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: PCI: generic: Add ats-supported property Message-ID: <20240706032431.GH1195499@rocinante> References: <20240607105415.2501934-2-jean-philippe@linaro.org> <20240607105415.2501934-3-jean-philippe@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240607105415.2501934-3-jean-philippe@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240705_202435_743672_B1BDAD32 X-CRM114-Status: GOOD ( 11.58 ) 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 Hello, > Add a way for firmware to tell the OS that ATS is supported by the PCI > root complex. An endpoint with ATS enabled may send Translation Requests > and Translated Memory Requests, which look just like Normal Memory > Requests with a non-zero AT field. So a root controller that ignores the > AT field may simply forward the request to the IOMMU as a Normal Memory > Request, which could end badly. In any case, the endpoint will be > unusable. > > The ats-supported property allows the OS to only enable ATS in endpoints > if the root controller can handle ATS requests. Only add the property to > pcie-host-ecam-generic for the moment. For non-generic root controllers, > availability of ATS can be inferred from the compatible string. Applied to dt-bindings, thank you! [1/1] dt-bindings: PCI: generic: Add ats-supported property https://git.kernel.org/pci/pci/c/631b2e7318d45 Krzysztof