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 2FE45C54E41 for ; Mon, 4 Mar 2024 09:25:55 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Bk/38NAe1TExRa8lTweloCuR/yqdjrxTb0hVq/gcRi8=; b=TDPeX40RIjXWAu oatiG84xwIAksw+Z3HT2W+KWOcqTullAQwxax8aP0c69w5OujHhMj8F1PoXG9oNiFcmyxv12ofEPN 75JwKclB9bHCTjb5E4R32O/iXLJkJw7KzUS9AhkQnaE6WAzFwhjEQbJR2ksub91irbQHYP1ibAPqc 3XWisGO0FyAS0qlSVvrsILFX03wTNHZAYXwgp1dDcjZ2YWjxQi2LvOfMHJgciWjFe06kEwFTUGA+y WkFVPoq6AjWibl4KuI3BggAvMbI/7Sr9f8g4pb1TWNIaB+jGGIiaPQ0ycQuvz4D6m0U4/KbrhKElN TjhFla0wEJnHxY4839Mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rh4Zq-00000008NEj-1C82; Mon, 04 Mar 2024 09:25:42 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rh4Zf-00000008N65-0CA4 for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2024 09:25:39 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-33de4d3483eso2554376f8f.3 for ; Mon, 04 Mar 2024 01:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709544325; x=1710149125; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=n2FkEsokVqoIbwcBynql8OxbjVUnCLboJQVYCblmHQw=; b=fhTPq5tOfdaihFRtmNLcAhbLYzEWPgOjlztIPRqr7LxJnmUAA+QfR0Ip7i5IQwsbVj 0Sof2a6BOvUV2spKyyManh3UI75/nq123NkvDFalBxjtKUH779F/kA0fDhvRW1Nl9hfM SBsdinBKImBZKRpeBOILMooKIdRJ8IVnMGa7t2biioWtZJr47n6D7Xu8dp/bhMNOdXjX isULH1ssi7+sYUoz2BW1C/28PkDR19sCW7rY9bovDdHuxaZV4nQgMvC1c9yA8Rwj7auQ Byh7dWGjsFUvTbIqT9JaClpJgJvuDZToKjjYFDaUykoYx435pYRqBfcZzS072lZ7cB6S rI1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709544325; x=1710149125; 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=n2FkEsokVqoIbwcBynql8OxbjVUnCLboJQVYCblmHQw=; b=bDKmcw7m9LTXFry/IUvMSqsdhzG9l6Bs9HRwcqbiVvlh6PFl+WMiLDcZjpyCQwNvbO eZcHZR1A92uS2atZmsJC7fy6BA86fvtKEeTzce2cXxyM4PQEBJ9RmEqYSF6KHQQ74rZu e5qIsfaoVewtmlVXo5x/lRBaJ+pcjYq3/cUUk1yortUxmiTVu5vaxOwhrhnNTDX/wCA8 bd+vimOP2pLGhi7IqtnSmaGvf9ADw8E2xczED3kcnaL6oE0Y5jRXYtaWy+4KJJrFW3Eb q00JN3osHoF0dUUQq/F8P+gjWGphsJ6kxm8lZPOkAWODYw6g2kByrWHHnfVJ1ZTBqNXe +KGg== X-Forwarded-Encrypted: i=1; AJvYcCVVB8ZXHdJWsIUN7tSmpSjiVr2Y6nEK9qz3RNyLSj0ZKOXuS7eIUM0lQ0BQ94V+IPZ2sStSAyjtshxCA4OuRm1s+rbmKGEHxBTK8LdGTvt8By9N5C0= X-Gm-Message-State: AOJu0YyvZj9wMyOM+dQSjR0/lU4z7YGPaFV41UdCuJj6U9BFQWa3i1pS j6oeCtcMczGPNdH0GyIahPhxlJoSOEKqILC1NziGnSj6T5es8Be+X3A3YNgYbDGdfkzSoHbf+WG 9 X-Google-Smtp-Source: AGHT+IFpu5dSSF5fFNgXklKr9X7ghFZ/ScAfGzJqDVLWOtt4X8rj1DmyR9/cvrzCrZCeEj+uUSgpdw== X-Received: by 2002:adf:c98c:0:b0:33c:f9d6:fb20 with SMTP id f12-20020adfc98c000000b0033cf9d6fb20mr6060557wrh.45.1709544325586; Mon, 04 Mar 2024 01:25:25 -0800 (PST) Received: from myrica ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id cr14-20020a05600004ee00b0033dd06e628asm11687319wrb.27.2024.03.04.01.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:25:25 -0800 (PST) Date: Mon, 4 Mar 2024 09:25:36 +0000 From: Jean-Philippe Brucker To: Nicolin Chen Cc: robin.murphy@arm.com, will@kernel.org, lpieralisi@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: IOMMU_FWSPEC_PCI_RC_ATS for SMMUv3 with DT configuration? Message-ID: <20240304092536.GA1730174@myrica> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240304_012531_348290_1A9C24CF X-CRM114-Status: GOOD ( 13.11 ) 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 Hi, On Fri, Mar 01, 2024 at 02:00:08PM -0800, Nicolin Chen wrote: > Hi all. > > Currently, the SMMUv3 driver relies on IOMMU_FWSPEC_PCI_RC_ATS > in arm_smmu_ats_supported(). This flag seems to be only set in > the drivers/acpi/arm64/iort.c file, which does not work for DT > configuration. > > We have a need to enable ATS on a system using Device Tree. Is > there a suggested way or name of DT binding to add? "ats-supported" was acked by Rob: https://lore.kernel.org/linux-iommu/20200311124506.208376-2-jean-philippe@linaro.org/ I don't remember why I didn't follow up with that series, probably just the lack of users at the time (Arm SW model was the only ATS implementation). A simpler implementation would be setting the existing fwspec flag: https://jpbrucker.net/git/linux/commit/?h=sva/current&id=4b6d187154557a7c46c9a67c13453d40a03cc078 Thanks, Jean _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel