From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0D7C186288 for ; Fri, 7 Jun 2024 10:58:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717757896; cv=none; b=m6cq/ccJ2TS3tvMqdLnKdJfbMqQMx8S54B8lIYOwpcttAkowAS9WKVcM3B/LAwhysKth6FdwwbF7k9xgPfaDBBjG/GLW8AKRxgG0KTWeFZrOWsFImp4QwKMimZO8R69hjTRaUsKP5ZNFf5F/+ry6Fa4YM5xkRqjkJFxvr/vO/Vo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717757896; c=relaxed/simple; bh=ycQv3nbAr7OcSxmuMzMW9XRFydQt5R7zli+aLK774Fc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mYNmtHOQajG1Bb6Nt8SwAIz9gHP3U+IsRjA0Rs5V3PSYU0QecrPZDB8lsHnxcpwym1ojgfPeEiM1Uo3tjkqJ19/rVP2Yvy9iyVhTVKZ1ugMu+dc67dZKjbSje/vEwrbJEIbaCBkKdH+0XZ5wBiS50ZRAu2V/kInFmcG8uRzWaN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NoDbbT+p; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NoDbbT+p" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4210aa00c94so18361005e9.1 for ; Fri, 07 Jun 2024 03:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717757893; x=1718362693; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AGKUPLlaqu34zNkRMuwZus3nvKRpkYIBrcHRGCQDW/8=; b=NoDbbT+pdNil8HYGtuzjvYWi5sFvib3a4zU7ByWToY5/9QZXFuMZ1kYiJspovsmshc 7yC11cj4dTmQXDZQ3TIG2TAFYp22T094IP3gsFlR3ylORJDJAal5su/EN29fQLoul+Hf ysx2UZmbA6ihfWhZOx4W9JS6kh5HTU0Z3OoM1P70uJ6ye2BZGhJcugxmAGKSXBNv/tTy m2Ek5gf8Wqt8hnXZdDgOhkCmFlB7hjQpEQwCTB4fUdnUtylrGiiTOwpROqo7807ZFNS+ QFKp+OJcGmQcb7ogpz60KnTMkfRTtMDeXhFa1ns2HZALzRBzYqPgZ3M1+KfhZKdPgq+R QeHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717757893; x=1718362693; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AGKUPLlaqu34zNkRMuwZus3nvKRpkYIBrcHRGCQDW/8=; b=r3y0R8Ub1xU5Z10E1RqBrYE+7JK14gVGyWlCVOfUBdR/1+Igfo0ytHXpoRv7T8iiGE Mj6XGEuHI1wARSjJGReWZnzJfoE1juw1mq0fjm52b4mKblKrk++8AsjujGhIxQ1oMtnD 792QpfNNBNs6rlKMUWXw8UaX3EajsdFN9gWkGFcq9MGsJKYcjU4/2KLtXXUeUAMNDbdR iwruC2jmOBunqL0HMgLy149MS21tBQY6bHxgseYBgrFpoEiRfRMXz4yBrOQqb7rzVkEG Y2cdhmnC5p74AAxKNWkS9GsTYHz+XC9qDZxrQyPFVKje+HCkjOTgdDLOXATpbUVDzn5Y d1/Q== X-Forwarded-Encrypted: i=1; AJvYcCUydGcCw6y8hWECH0PzlMo7XDhkb2D7bvL9T08y6dHHNCE8yMWnp/wtsYaV+AdNh207PB4N755VKHTBAb/hf8Bke+gS/SnqnAvDXg== X-Gm-Message-State: AOJu0Yxf4uOuiHWCGBfJMfqjwfRWRfb+7te9CoYQkY697HrysiGfB5bO TRHFshhr5p48i9sYAL8dyH6rWW+hSCp7+/uwSc+jQPXScIWWuP5QE+BHIejzjqU= X-Google-Smtp-Source: AGHT+IEq05dxkoUz5lyUwdXJILrFcWqbbvwqZompyFbB5WoQMQiG2JPbouhAI/2QDSQs2s1tVNVLaA== X-Received: by 2002:a5d:4bd0:0:b0:35e:7dc9:49d5 with SMTP id ffacd0b85a97d-35efedf2a1emr1381990f8f.43.1717757892978; Fri, 07 Jun 2024 03:58:12 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fd1c5fsm3739485f8f.113.2024.06.07.03.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:58:12 -0700 (PDT) From: Jean-Philippe Brucker To: will@kernel.org, lpieralisi@kernel.org, kw@linux.com, 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 Cc: 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, Jean-Philippe Brucker Subject: [PATCH v2 0/3] Enable PCIe ATS for devicetree boot Date: Fri, 7 Jun 2024 11:54:13 +0100 Message-ID: <20240607105415.2501934-2-jean-philippe@linaro.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Before enabling Address Translation Support (ATS) in endpoints, the OS needs to confirm that the Root Complex supports it. Obtain this information from the firmware description since there is no architected method. ACPI provides a bit via IORT tables, so add the devicetree equivalent. Since v1 [1] I added the review and ack tags, thanks all. This should be ready to go via the IOMMU tree. [1] https://lore.kernel.org/all/20240429113938.192706-2-jean-philippe@linaro.org/ Jean-Philippe Brucker (3): dt-bindings: PCI: generic: Add ats-supported property iommu/of: Support ats-supported device-tree property arm64: dts: fvp: Enable PCIe ATS for Base RevC FVP .../devicetree/bindings/pci/host-generic-pci.yaml | 6 ++++++ drivers/iommu/of_iommu.c | 9 +++++++++ arch/arm64/boot/dts/arm/fvp-base-revc.dts | 1 + 3 files changed, 16 insertions(+) -- 2.45.2