Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2440507rdb; Mon, 12 Feb 2024 05:12:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfbxH8icZBM1YubK5RzGt6Ji3Qyo6Rz2zw8hhO9QWYzSf+xenHhkDnkESorLWhwz/ZKUVC X-Received: by 2002:a17:906:e216:b0:a3c:31cd:c936 with SMTP id gf22-20020a170906e21600b00a3c31cdc936mr4848564ejb.67.1707743564196; Mon, 12 Feb 2024 05:12:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707743564; cv=pass; d=google.com; s=arc-20160816; b=jbpkZBoS1A6wjDnMN0pKJL0wYrWB/u836h6hTnO8xY+YAMDEzKTNPlr2XeiEswazTS VhD5P2Fxi2V0MejN4Ocmu0S7l3psKYXmY58SuQtuPI82vUUXt/ZHEC69E0RcJMwP3TwU jj4mpCNrNxio+dpuDhsEguNLnZ+iKTSE+54xmfSljiRyOmhKx7+mR29U5/rcAHBwd+yb LkmZVPjicF1r6y9I5oDW8o2M4nmsfMahy+kw3q6K4tBVw/zuB5kRy8Gjbl3GNzouUnYa bAuWsB/Yk+EpW7yMny5tAdYtLnNLNUKu8wD1hBu6RdVA+JK3MTJkrsM/yhKNIgczjt8k DYrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=IEntnUmUKGyVECFoIVOH3J47fJEuz2/ADzixCid4iQw=; fh=ExARoNc3gHRA882bKFIlEvafA6IDmbYlcL9il1Svorc=; b=bZxzzPxy60kaojHPCEetsIXsnhvao1Nr41SqhwDeaYa9hEbzMfpfu706uxvnpem4WZ ZB+p8ZzWbrvtalx2tQS7KvbWtymBkRJdgXmMx7NMR5hSd7bZJvdR52Nrgdn7RlvEPpDR v75KYmAd/WnRS2CKIAsM9rQZYr2GCUz3lBXVtfh9yYobhgB91kTAEtDlyBBCbGy0oEHD Y1VEsSLNYhg/vMDT863kVIPeWLr6AR0LdwqpP8aSyJa4al1SnA8gKBPnnBcxfDr2Qgd7 2YJugCVvJIhR6sO6pg7mY9xm98V8wtUnL5kjoyUVuvQ8eI7/OsgkgSqeaB3e9qw3jDf4 /hbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QzL1Yrcw; 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-61608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWCKOV6kYD/oYJO81+Jyf4SKLEzJq00lZPt9Hm3EzGiScE9PTfL7M8PPGnb4FHWDZkZfJHuQzkJZLBCZEG3af81LegkLdtfubsi49O1Sw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f10-20020a17090624ca00b00a3cabca61aasi181460ejb.200.2024.02.12.05.12.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:12:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QzL1Yrcw; 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-61608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61608-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 2F7221F23E6A for ; Mon, 12 Feb 2024 13:11:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BF703B791; Mon, 12 Feb 2024 13:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QzL1Yrcw" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.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 DD6093B195 for ; Mon, 12 Feb 2024 13:10:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743428; cv=none; b=eSrPZoetureoDekt2BYZMZ9G99/Ll7aKv08JR98ijgBg2YrOmPjCjiguNL6iRJn8l9mL8mfhxiyCMEzae5DO8hFlhP1iWhVt4Vm4nUP3DRQb8mbr+gmCoeBYJYwB+KQ57qF9AWDXA06Pi2F0mfEtTZ/FzKJOOrRfiRsxev9rSHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743428; c=relaxed/simple; bh=OOS7lbYOFBWS9cWYXmiccxamzx9nSjNqu+J04bjACok=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Mpds50RiTEuj75QqMG3PtiwStiYub7xP9HVpkLJkdzInftJjaCXQkecWrPzIGflhdw8d0IIEtfwLEj0UvZkIp4mjdeJurIdYn/A7Uhu6jiVLhnaU8GJxAReuCWTD3dxxV/5io+APzTW7XHXdE/2psfG0tqdjKUvzPc2e0W9+in0= 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=QzL1Yrcw; arc=none smtp.client-ip=209.85.208.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 Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-561519f8698so3247160a12.0 for ; Mon, 12 Feb 2024 05:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707743424; x=1708348224; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=IEntnUmUKGyVECFoIVOH3J47fJEuz2/ADzixCid4iQw=; b=QzL1YrcwvNnB0+buCZ5j45kgFiPDo8AwfT47auuW3EaFkT4P+osiOKXE+X3xT9EzO/ V2UEP8FmGgn5eSNzZ18QMF8TR8s47H0uMJq425X7OpfMJnKvrqsTFQ9BxxeiZej3+snf lkVj7W+92Ia8YvIHZXzQNiNH9BhgOP31ZyNgfdKc1yCUHN5f/4eAe98ZAvHVFcRMNozx J4qbWcEkcaecA2lX+L6lxjnikjFVZS567M18kKLQIKBlMuLZVW17eRbTpVyD0MnSRtXb bhxkd4Zgu8KgmnQqxKVyVSE4Y1W/wWGcv0PQCzule+6bNTFQ1mJym6eXLumy1W7+aeW5 J1wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707743424; x=1708348224; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IEntnUmUKGyVECFoIVOH3J47fJEuz2/ADzixCid4iQw=; b=h73oJzDcURzAMX4t45haYKF8ZYdQb4Fmluxt2JCRwYe15lcMwG0KdZSG402vnZclg+ YWtxz3hztUj86IorkD5xJtkZaG9UywwyDhc+0PWb6Qqg2Q2el64T3iZb3cWb/85C11Q/ x8MDkiOdAEN60vnaiiiJQjB2wnlKPK8DrLZUshyEV97tw/eLqCH0JEEdtrMyXjDnr+dl mXVasGKiq/r5PYLNdoeiNnZgcp6+kGtA6eQNqRIKQD4K3meeJAQwXcod+4dq4S12w9ho IlTHtP/iVjTSB/7ftXAGlTSNhT3tm8uXuyNVtt9QyYsapPGNBP48JHsGJYNyEbCq6gz8 Cq2w== X-Gm-Message-State: AOJu0YzBUE1Ex5z+nucHRLTFvtwJvgn8wv+8Q6w5tIf7WhFvMaR1l9Yl RK9j7vf4wI9xQFi55PW/kqmJv71c1/zP+3KYIjDhQXj1D2vjk0VB6En2E/vurI4= X-Received: by 2002:a17:906:7f12:b0:a3c:b9b7:8067 with SMTP id d18-20020a1709067f1200b00a3cb9b78067mr1423292ejr.58.1707743424223; Mon, 12 Feb 2024 05:10:24 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCURzPBLM3V3pV6Zw67C/ZVKsX8g9TwLnPSvNTaf+U/694OvBmMT/7IVH7YT2czLnc2gkS/XLiUrl8mTJA3KRFbdJdAA5q3Ygu/vs1SLUs2JAXu84TaRGJ1Jg37/XFly3vUtNm1ovQBcvBc11bybT3ruWOhEut/d06SesX6qHjQkPyE9V7qagy4RGzI94IkdHJU8ysZ00Tu5A3tALRtOKwuWsejve6zuUrsd8a8YE57RlrVu9kvq9dC2AAQh/Yjs2fxjlue0p2vyhxIWKKYxEGoG4lrlGy5BdLj7n3fSLCjeJHNWq+Vk0wuwczCinw8gcHFri4BPyiblbDf4fyy/MUGMPSDiYgWM6sf1gWhTP4Q7E26c5TlbLwpblwMemhFxpUN7GJ1qsv/JrI15gnI5y70LiYLcx4MjwtyPtYRG32BVKZSp3BetOgEPalz0v/hfGuf6ThlYOPjBNVPyPql6nc0SUnM5dlcMGOfIStPu/kdeK3kcGphDpf7+od0H3O23KmeqEDFnBYQ1WjDMzXHqbEBu5QnG9SkdTDZos4YdS9hAQRFT87WLiuCNACdDU7YGPA6b2AUYeuo432WAoVs3iuIOFbnAt4sPRnzITrVs/Yz+rSYBT5V3ieyZpJiZSMT/Xgb41El/Rrk1BAUhKieoW+VZa3Hh3X8MC4mvTEmHkyTui3ogeYIpaw8eXa3Fz9/rYh7LGTUxiWEl6VMrT57lDl6HhZXm/gpobcHDSBWxSIcePlI5Rl1jsRPuYgOruEyRZG3tDp6Z7a3tUM/OS9ALILUInqAakWjQYKQm7975jk7boA5MT1hcBWSJlRghvnmvtyfNgdhYZiEKrmB9AFRpIpoWEgiH Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id gz9-20020a170906f2c900b00a3515b35be4sm193052ejb.104.2024.02.12.05.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:10:23 -0800 (PST) From: Konrad Dybcio Date: Mon, 12 Feb 2024 14:10:11 +0100 Subject: [PATCH 3/7] arm64: dts: qcom: sm8550: Mark QUPs and GPI dma-coherent Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240210-topic-1v-v1-3-fda0db38e29b@linaro.org> References: <20240210-topic-1v-v1-0-fda0db38e29b@linaro.org> In-Reply-To: <20240210-topic-1v-v1-0-fda0db38e29b@linaro.org> To: James Schulman , David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ricardo Rivera-Matos , Bjorn Andersson , Abel Vesa , Sai Prakash Ranjan , Neil Armstrong , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: Marijn Suijten , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-hardening@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707743413; l=1550; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=OOS7lbYOFBWS9cWYXmiccxamzx9nSjNqu+J04bjACok=; b=H1Bcg2rzFfpWZ+ONZTsv+XotMsPZWzH0sPWJa5fy6xS93138s4pZiqOTYI7h7EjM4AclTuj9G +Ermko5L4yxCW2wmwFkyuUOJYChewCVx9fjKmkcNEtaHvWwgWA+efNV X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= These peripherals are DMA-coherent on 8550. Mark them as such. Interestingly enough, the I2C master hubs are not. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index b8f1c7f97e48..d696ec6c6850 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -812,6 +812,7 @@ gpi_dma2: dma-controller@800000 { dma-channels = <12>; dma-channel-mask = <0x3e>; iommus = <&apps_smmu 0x436 0>; + dma-coherent; status = "disabled"; }; @@ -823,6 +824,7 @@ qupv3_id_1: geniqup@8c0000 { clocks = <&gcc GCC_QUPV3_WRAP_2_M_AHB_CLK>, <&gcc GCC_QUPV3_WRAP_2_S_AHB_CLK>; iommus = <&apps_smmu 0x423 0>; + dma-coherent; #address-cells = <2>; #size-cells = <2>; status = "disabled"; @@ -1322,6 +1324,7 @@ gpi_dma1: dma-controller@a00000 { dma-channels = <12>; dma-channel-mask = <0x1e>; iommus = <&apps_smmu 0xb6 0>; + dma-coherent; status = "disabled"; }; @@ -1335,6 +1338,7 @@ qupv3_id_0: geniqup@ac0000 { iommus = <&apps_smmu 0xa3 0>; interconnects = <&clk_virt MASTER_QUP_CORE_1 0 &clk_virt SLAVE_QUP_CORE_1 0>; interconnect-names = "qup-core"; + dma-coherent; #address-cells = <2>; #size-cells = <2>; status = "disabled"; -- 2.43.1