Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp254896rdb; Thu, 25 Jan 2024 14:25:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOUWW78fz2c2/wrf/UqVVdLn30gCjR5+KmrF82liZD8jUcibew0Lpo64wPPHDceOo0qsv0 X-Received: by 2002:a5d:524a:0:b0:337:c522:622b with SMTP id k10-20020a5d524a000000b00337c522622bmr366177wrc.17.1706221514687; Thu, 25 Jan 2024 14:25:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706221514; cv=pass; d=google.com; s=arc-20160816; b=cdAgHJ+QHjQxYqv2qrI2H4X6WQN6TGVl1CbLabXAs4+Dj72eVF3YT/C92bNtyNd1R0 yISD8f8JbvOOmiBOuOkGN7NkWHseLZkL+dmcDbPJUJV12NTVQmotFCvx7VxBP1w5yH36 9/mdcIonrSucI0QPbhZbATfbWGdVyteDKkcZ1DtYrjlDxN64HdLK7LTbqk1Xic5GfDNO Sw7F0pMDDuF96aUFu71vmUh9F7QIUhckYSmKeqlT1Gs5Lk+wSdc7knwxqEKP6NIjQAtQ VpqqXRcNEEFXt0qeOc/rZCSk4slLNhC2e5vYJx9+NqIesNM0yUljUARVyiRrdnLA1xcL 7ajw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=PnHxRA6UeYz2yws2MprKM/M5YmL3to/A8lLiCFE7s+Q=; fh=U6UqRr4Bi8WpQjWDLR1fO5J4HwGGSiz/EqbJdv88X6U=; b=ANdVG+yWCkZKN2J6FJ5qumLVT6R2cv2dOjJZ+VqvDb+4/hA/Zc4ow/eiKXdL5YJs2n RoAbyM9e7fX9B0ixJkRJYnbJnTvMqSteNsSrppVqjh8sSsAWak6pRvOKfSWppmP1yrZ0 yE9k4qZwywMFcEQ1bvO4b3x9RNBP8vaJ/JLSDilyC35ATIVFM2ePOg+1PV9Sbjl8rH1F c4NOm1IutNDJzEHSkNbfYIbbN6TNOujsYLyOIc42oHxaEYEoHEEjNfWLKH3RDoey18SP vOfVYJuPimYeCTm2kDtlcxCoUUcdoC6bN7Wp1MWnxwSJpFBEYZa+rUpxOV5SHNAnZ+GM 4ABg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OzAIjlk7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-39351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o22-20020a1709061b1600b00a27765fb8f2si1359682ejg.825.2024.01.25.14.25.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 14:25:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OzAIjlk7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-39351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 71FF81F27422 for ; Thu, 25 Jan 2024 22:25:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A18413B793; Thu, 25 Jan 2024 22:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OzAIjlk7" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 A7F0A13A27D for ; Thu, 25 Jan 2024 22:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706221504; cv=none; b=ZJQQ/9i27Ia7K8kb8M/EDsRHvc0N1KbNRzFY+JQgfDb5OMdW+hfsi2N4pVoIHBLhNXeNj6K9MuG3vCefFWxtZPqqw7MqghHy8/7oPrYRlKXlnv9nvpD24OE5W3eAq45BifrVIy5YP2EQvrN2VyVfANmYwUNvC8zk9doGMcbGTIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706221504; c=relaxed/simple; bh=ZG1tB5kx8b26egBLx0eNurCR3uXvicaFKUPIGtwPFFM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iksvpNlpbyFM+l/fGRMOCoe4obiwmB5qtWYmeOSEB8oQ/bqywogKTR7Db65Gs8BioTPSCnsFp/J3XggaI0VoSzXV03ltdstB9tWmIwgPEA3QxlA1ReSvvTU6s6Ikkk24g6dM90x419RX8zglhKpedsqlRzy4wu62PRhovhw2IXQ= 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=OzAIjlk7; arc=none smtp.client-ip=209.85.167.45 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 Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-50e5a9bcec9so8121837e87.3 for ; Thu, 25 Jan 2024 14:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706221501; x=1706826301; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PnHxRA6UeYz2yws2MprKM/M5YmL3to/A8lLiCFE7s+Q=; b=OzAIjlk7jfjD6FRi/YJ4ePwplGe/0TWSyYhMER5ux8oOt6G/fmlWk+0mVHQx1FAxOS P/sa91gCQYc88VGuvDMewTgcFWtLT4TZqyOAvZGo/1OOgQhVy94RHa9s2oxC4MYR8pLt IdPw3Qmnqh3ts3jWSKOV6fP3AqgVHTz0TGY4g6ZFoh9qLvBJBhcCV99xfUT7Hl5RiYxv 1YALPrLfPnz5yr2vzlNTRnW16TYzYk4i9OL72KaGaLNIqS2+cIMUR0qCB8RYiZplGNTp 7Y6NfyujYAM7c1MuUINZbVBWYbimTdZtKJrNjpZJmKE461uacss0gLtdhmKcLKsDIRKz eYyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706221501; x=1706826301; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PnHxRA6UeYz2yws2MprKM/M5YmL3to/A8lLiCFE7s+Q=; b=cPmMSjU3uBAgn5jmzbTwLcg63jENJ8HHnVobqCnVgQFKyX7SqfUs+dCdbIjKVZSW48 UhsIYzbdFiceMs2nmyOOlbaNLseQqzCtekYKcSLd+PXIiNJ/ujecNJhsJUIj9maR7SSo TRf7P+mJwobW+gynIWlMe1wPkGQEGJeiAcIHL+FC92D2/kbOSG44a0aU5byc+2pSRqXS NB6+r3FKNeP6lmDuM6pzKeBTwAXEjjiEQivcGpTol2enVRS2iMWn0+8J9cc6QM3+KOoJ Sk9XEU3p3Us4JrYv/rfHEbSRuoZ5DlvRxC5zbrVy7o9AdYLi57w2z1Gd8Ai2ftgaIHXq Li9g== X-Gm-Message-State: AOJu0YzzI52l2y8VQCeWS+tkrNN/ZMyzCWur4Oz+xHI8MoXTWgyIJ7/A t3spWOWnuXpMeaR5OoBsJ1K+HYsgT5soqn/oLTofAAhjWZi+yHJrdzNrQ/scRBA= X-Received: by 2002:ac2:5ded:0:b0:510:171a:40c4 with SMTP id z13-20020ac25ded000000b00510171a40c4mr306346lfq.6.1706221500675; Thu, 25 Jan 2024 14:25:00 -0800 (PST) Received: from [10.10.15.130] ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id bi28-20020a0565120e9c00b00510220e251csm111794lfb.47.2024.01.25.14.24.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 14:25:00 -0800 (PST) Message-ID: Date: Fri, 26 Jan 2024 00:24:59 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 1/2] arm64: dts: qcom: msm8953: Add GPU IOMMU Content-Language: en-GB To: Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vladimir Lypak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240125-msm8953-gpu-v1-0-f6493a5951f3@z3ntu.xyz> <20240125-msm8953-gpu-v1-1-f6493a5951f3@z3ntu.xyz> From: Dmitry Baryshkov In-Reply-To: <20240125-msm8953-gpu-v1-1-f6493a5951f3@z3ntu.xyz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 25/01/2024 23:56, Luca Weiss wrote: > From: Vladimir Lypak > > Add the IOMMU used for the GPU on MSM8953. > > Signed-off-by: Vladimir Lypak > --- > arch/arm64/boot/dts/qcom/msm8953.dtsi | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi > index dcb5c98b793c..91d083871ab0 100644 > --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi > @@ -1046,6 +1046,37 @@ mdss_dsi1_phy: phy@1a96400 { > }; > }; > > + gpu_iommu: iommu@1c48000 { Nit: most of the platforms use the adreno_smmu label. But maybe the msm-iommu vs arm-smmu makes difference here. Nevertheless: Reviewed-by: Dmitry Baryshkov > + compatible = "qcom,msm8953-iommu", "qcom,msm-iommu-v2"; > + ranges = <0 0x01c48000 0x8000>; > + > + clocks = <&gcc GCC_OXILI_AHB_CLK>, > + <&gcc GCC_BIMC_GFX_CLK>; > + clock-names = "iface", "bus"; > + > + power-domains = <&gcc OXILI_CX_GDSC>; > + > + qcom,iommu-secure-id = <18>; > + > + #address-cells = <1>; > + #iommu-cells = <1>; > + #size-cells = <1>; > + > + /* gfx3d_user */ > + iommu-ctx@0 { > + compatible = "qcom,msm-iommu-v2-ns"; > + reg = <0x0000 0x1000>; > + interrupts = ; > + }; > + > + /* gfx3d_secure */ > + iommu-ctx@2000 { > + compatible = "qcom,msm-iommu-v2-sec"; > + reg = <0x2000 0x1000>; > + interrupts = ; > + }; > + }; > + > apps_iommu: iommu@1e20000 { > compatible = "qcom,msm8953-iommu", "qcom,msm-iommu-v1"; > ranges = <0 0x01e20000 0x20000>; > -- With best wishes Dmitry