Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp287617rdb; Thu, 25 Jan 2024 15:50:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4LfSPzndNds6hEd+LbbuOCZDw15Z0R2debWtaojePqN4/Qnff0idyAiLpJWGemF0X85ml X-Received: by 2002:a05:620a:29c6:b0:783:46b8:1dd3 with SMTP id s6-20020a05620a29c600b0078346b81dd3mr656032qkp.100.1706226632719; Thu, 25 Jan 2024 15:50:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706226632; cv=pass; d=google.com; s=arc-20160816; b=S3qZD0tzRg60aCsI7GRr4HYpon7wFs5h0bLTmxbeECLNHTdCalOTaFnz4cnIR2QVii BuJNpRfQ02lHwslP4boANqxTnw/Np97yjSl1c/OMKy6sqGI7PwTPio7RPnkfuNauF8t2 JdcToTZXZ7DvympWwZksZRljpvjuo+uXYnHRyFRRe7UsUJpdAqxF/6du0zCpBhYXR1Jy nlmcnb+pRDe9wkJ8CPnOievh+6aO2xEMWo64h+xAkRxG5QTGEuv2QIYGWzPZPeeQRkry 2l5WtitvuX7OVPwLRMd9nYDaKq3gJr9qmQlhyfNzHBIUSPo/A9qYiQDtCIVdNqsLi9S4 fVPg== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=84suYuoX3RAYz2xiQa2wUmKN0Xu6H16i6mQrUX9bctU=; fh=0GHBzFNd3q4VBqiUM0a5lfrfdTRwKlnEbHG25lO04gc=; b=fArKbzcTxGL5kz3gtrfvLLGk6TS35U4f139vS50Fl3Ta+A1Pk94C4b+7YUFFxAkf+M C6LphxJWHvPs0zgmZ43yOBz/JA8CAGdLxgllGRw9SvqRcbYag8I8M7ZEH0uCGYBUZvRZ CQK90ok9xDv8K4hLtPbDCPBVT1Ue2uJLegoP0swtECYKik/i4PXafJ+C94fymmSehPjT ajYjKp7FpMLnAuqxuAcAqChQu2Hl4WHX0ROykfegCkmV0J37fX3xsKfMAJtHiIhxuO2a offWoomjImODf7lKiNVPgr2PPIRqL5yVfkRFrJrCCow93gW7pxJcXcdYZAntSOCqPnNa Fx1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tIsiumNM; 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-39421-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j23-20020ae9c217000000b007830ac5d3f0si64369qkg.438.2024.01.25.15.50.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 15:50:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39421-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tIsiumNM; 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-39421-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39421-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0CB251C248C2 for ; Thu, 25 Jan 2024 23:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21166134C7; Thu, 25 Jan 2024 23:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tIsiumNM" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 77240125CF for ; Thu, 25 Jan 2024 23:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706226602; cv=none; b=Tv2YOMrBQkdvjPaBd2eR/aF01hBz0zHeOt8PzYAboI7GdJWVufCh6tf3YcHTtcklLdWIe23nhQWFc7FVQfHCNVl22e7CawurEc4pDiXUw0vSfwAG69lT3ubLxiFfkVqZM+YIykHKNk7knirwVZrw8tdwlg1BgqkuYHvewqjWRLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706226602; c=relaxed/simple; bh=zuALxgKBNdz+cz2IZmkcUCnj/b8C1xkO0iZjdzgUinY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=F0CXEBB42aQ0ruwCAXBQDSw6UwDfOlKmWueG/+ISS3p6Y87oTEdd8OrKTdfqGqGOtE+zvsP4TtOBpYKgf1l/Zk6Clf3AJiebV34v4MkBA4pczOKu99xneWcLUrLMJfg6gYw6MqQowySLB+ODn3W0d3PLFGZFHllN1fNc2QHs82M= 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=tIsiumNM; arc=none smtp.client-ip=209.85.167.46 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-f46.google.com with SMTP id 2adb3069b0e04-51025cafb51so133923e87.2 for ; Thu, 25 Jan 2024 15:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706226598; x=1706831398; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=84suYuoX3RAYz2xiQa2wUmKN0Xu6H16i6mQrUX9bctU=; b=tIsiumNMfL0iUN8MvtCecFqU5qtshFGq0vlfx7W/OQ1xSpR/SYygjYTngiITZ5I7Vt Uokmv0T4uNOACKHf433uGzWy8k49sQB1avUmrJCmEBnadsrc/rmxPiUGJEwZw5d5v2c5 Zlda83u4cRSXOx14AsXz5V5CZWTVZyziN9WsYV7Abn1Dy4zsoLAqeEgAlz9uFw6TXbu9 V2OOHv0Hc0d6tcPTjhT3b2isGqBAdd1VZBYVUHjYtw/Tsf9Vq7Y4frJ7lwGBngV79ByW nWq97FBai64sQxiA0XMCss7I9sWikDtQmbv6TTMS1ygfjyqyXimtLOAVbgC78YHZhwkl Q66w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706226598; x=1706831398; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=84suYuoX3RAYz2xiQa2wUmKN0Xu6H16i6mQrUX9bctU=; b=Sf9TpEJSdxuoUR+FF+CyN11DDNy56zqbqt17t1OgEbsKYHFb4fqmSzAQ8p4rhk4Jed gaTN5X4dwByRpAuau6CggJGsPa+t0ZjHcqYrbg1fc6Kn6NSg5Brh+LIQ3+7mL3nSgJ7H mYwKOz4n5Kkh7KxazoA/uJz86IpbCCSV0i0Pa5igkAmjVfN9j0CVAPT3A903v2SFUlo9 of3jFZWPC1GnNXBEU8K+K2hCZRAlrztw9A3TvSns4ROkaPMZiH4/dEzuY59H/gu64GTM KyRLhjb2+FJaW67iygrDl47zz02QwCOFRfxMD9t0m58Y1qnqd6xr5mr5gqzlTrP4+vT5 Fe4Q== X-Gm-Message-State: AOJu0YyXU/ZHjxFSfwzkVvLAH818RnzIXfMk/GCwriy/zl7wey7IVcPq JjImTMHncvL8dLIxDwShQAbDCNqQcusXuqp3VBnccthxv2lJCoan2LvVGKtiMhQ= X-Received: by 2002:a05:6512:70:b0:50e:74e2:af58 with SMTP id i16-20020a056512007000b0050e74e2af58mr288823lfo.52.1706226598453; Thu, 25 Jan 2024 15:49:58 -0800 (PST) Received: from [172.30.205.155] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id a21-20020a195f55000000b005100af37fbcsm10614lfj.166.2024.01.25.15.49.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 15:49:57 -0800 (PST) Message-ID: Date: Fri, 26 Jan 2024 00:49:55 +0100 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 To: Dmitry Baryshkov , Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , 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> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/25/24 23:24, Dmitry Baryshkov wrote: > 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. Not really :) Please keep the labels unified > > 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>; And align these Konrad