Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4047515rdg; Wed, 18 Oct 2023 13:21:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcC20WRHJoMBu9UJFfIcVeFOZ2vtJjWpPQe6DTowN/WkcCfFynRlvunhb/n6FCLxPCZPhR X-Received: by 2002:a17:90b:51cd:b0:27d:237b:c71b with SMTP id sf13-20020a17090b51cd00b0027d237bc71bmr244462pjb.3.1697660465042; Wed, 18 Oct 2023 13:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697660465; cv=none; d=google.com; s=arc-20160816; b=N7NVuqJBHpg1eaJnspPkgqOhtM9AG1O/ebqEb+tX49IuUxnGHoxaWxDA5dPxueUO8I emATC6LpfdTogtlRF8GgGKIzkXiAobDtDsKGScLMgd7hMA9pDKyxsgU4UsOr3+lu+KDd jZjafOt6xtrC8KE2mgm0UuGTn1ETL4N11JFZaxUiw+VJYHKpVELovCTNoNDiRm2BQsKA MNKA+MHXg2soangeCtwtqls8+oQ1GYMR9ESKawHYy2BVzNeSwENzWDMJynFE7yrDabCr SPT0x4tyNbRAljKG3nmx0mxhhKQ2AXABcziz98u6YkOltcXWtUh93BArfky4HkIFs/3e bb9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KQKss7gP05u0WG9WVmMnpWQKE2m5h/QydzbHUfL2Pls=; fh=86QTb8/ZT6Kv/3Wsvm13cWW+arWp8tqp9r/ifJ52qao=; b=vxoOG3EXBzfI6w5nbOE7Y7FmPUamdzxFR57dlzGmLRzW1+sG/8FWcGAI+x4ima3wza /gNeXNFoIzVulsR9ltDORfVyPz1PW4gooGY8JTmtd8WrJY0o7IUf+ciHbEQkY2KlZa+n j2SJE7uMrH6lt+zLBlXqdRfXoVSmjC0Utw9wE7dq2ZI6rMnIDQhVEN3u9N+IYwlm6YEw lPeveXqokdjVWZSwXv3ZC78IvcETqegdRAJlpk3zR7VJP9zfndQMqP/7241zjVbCTCQd JKjPhE7czxKYdUoXeeTKRfyYrvkpXNXGE06HieRAjYPHTuiKrVI053eudC1MxQPsFhNB C+hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x1eSkTWD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h11-20020a17090a130b00b0027d04b581dcsi588582pja.72.2023.10.18.13.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x1eSkTWD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7ED1C822CB1B; Wed, 18 Oct 2023 13:20:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjJRUUq (ORCPT + 99 others); Wed, 18 Oct 2023 16:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjJRUUp (ORCPT ); Wed, 18 Oct 2023 16:20:45 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A99F7 for ; Wed, 18 Oct 2023 13:20:42 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c3e23a818bso854661fa.0 for ; Wed, 18 Oct 2023 13:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697660441; x=1698265241; 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=KQKss7gP05u0WG9WVmMnpWQKE2m5h/QydzbHUfL2Pls=; b=x1eSkTWD7V0o2mLTvhTJ5LGBZtpJlV1LLeYZHjmEOZ4i0BcYHCUDhIBSo9LF6/upBv z7uK51nhywU+4Uf4GJ2JZbbDfTcsujdgcvVfccashHNLoPCTeZU00jkvQlBqcuPc/I2S TLxF4PajRs9xLwGvegFjk/mkmV9eOFYco2W6ChgqqRoQYoG5MLp4ACnWLqsPoh/abjMb aRDcVnuaP01VG8gMBuge/34RV3Ep0RF+TlSF1leXww1v+myAXI7yYQIswmh1Ar1thHGx 335k5/B9DHnNsGS/gn67aJXTthAyUcyvRh0kOiFEKZ0YENpm5zLYNrsI/YlrAa+C9Bng x/cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697660441; x=1698265241; 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=KQKss7gP05u0WG9WVmMnpWQKE2m5h/QydzbHUfL2Pls=; b=Lb48lIfwueRfm/dRGU+iXVCyQwDD+lx4IKzepLNYc8hcB/VVUJxfyZYnJOcK+2jl1s SllyETBUBb5XBf08MzDCUkrJxmtK6+wC255EcDjj6w0bgRGO8Mz0jHep9DWdWFXBzJHr 26aEDaXF+991c8UM7s5y4F9esRIV+lVGdv99fcmtkEvCfTnHlz2GjMg7zUkO/Qa4nKbq dAT7pSviWWyWVK1sxVdZ+qmqB8UYbltpw8mq5Vs1pfVJsA8HnCqpCdMwoDiZw1jgsKZL dt77jvJ4YTkBRsoA3By+XVAEE4V+lk3/n3OF81MnRTd5zkhTVWVDXVtt1lxIIm3r6f2t puLQ== X-Gm-Message-State: AOJu0Yy1F4lxw1EDKM5zkgXPgBN2fOeQJvCOlpFuJVpY/AxTeNwo870p Er9pMQ4r8F18/7eJvNw1fomPSA== X-Received: by 2002:a2e:a414:0:b0:2c1:86da:3f61 with SMTP id p20-20020a2ea414000000b002c186da3f61mr2349795ljn.9.1697660440730; Wed, 18 Oct 2023 13:20:40 -0700 (PDT) Received: from [172.30.205.86] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id y16-20020a05651c021000b002bcda31af28sm833526ljn.42.2023.10.18.13.20.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 13:20:40 -0700 (PDT) Message-ID: <11b5db69-49f5-4d7b-81c9-687d66a5cb0d@linaro.org> Date: Wed, 18 Oct 2023 22:20:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 5/7] arm64: dts: qcom: sc7280: Fix up GPU SIDs Content-Language: en-US To: Akhil P Oommen Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Marijn Suijten , Luca Weiss , Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org> <20230926-topic-a643-v1-5-7af6937ac0a3@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 13:20:58 -0700 (PDT) On 10/16/23 22:22, Akhil P Oommen wrote: > On Tue, Sep 26, 2023 at 08:24:40PM +0200, Konrad Dybcio wrote: >> >> GPU_SMMU SID 1 is meant for Adreno LPAC (Low Priority Async Compute). >> On platforms that support it (in firmware), it is necessary to >> describe that link, or Adreno register access will hang the board. >> >> Add that and fix up the SMR mask of SID 0, which seems to have been >> copypasted from another SoC. >> >> Fixes: 96c471970b7b ("arm64: dts: qcom: sc7280: Add gpu support") >> Signed-off-by: Konrad Dybcio >> --- >> arch/arm64/boot/dts/qcom/sc7280.dtsi | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi >> index c38ddf267ef5..0d96d1454c49 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi >> @@ -2603,7 +2603,8 @@ gpu: gpu@3d00000 { >> "cx_mem", >> "cx_dbgc"; >> interrupts = ; >> - iommus = <&adreno_smmu 0 0x401>; >> + iommus = <&adreno_smmu 0 0x400>, >> + <&adreno_smmu 1 0x400>; > Aren't both functionally same? 401 works fine on sc7280. You might be > having issue due to Qcom TZ policies on your platform. I am okay with the change, but can > you please reword the commit text? Hm, looking at what the SMR registers represent, it looks like they should do the same thing and it may indeed be down to the TZ being picky.. I'll rephrase. Konrad