From patchwork Mon Feb 12 13:10:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 199769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2423909dyd; Mon, 12 Feb 2024 05:24:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEstDIQ9YngGxl2EijVKRn7CGNnHJ9xw7gwmVKU4wDPhyspbSlaYdFBSHj88HAkzBEbcEOD X-Received: by 2002:a17:90a:2d86:b0:297:2135:aec7 with SMTP id p6-20020a17090a2d8600b002972135aec7mr3238740pjd.35.1707744286032; Mon, 12 Feb 2024 05:24:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707744286; cv=pass; d=google.com; s=arc-20160816; b=rot4tgC3GXrHb6ouz0p/jdZQpRewztUP2B+UBorewjtITR4aKnC6euLQJusP7wt9Mb GtWP2p5mTGAXuZ4Qs6TDt8Meb6ppYY8PVuJ6qLlfxHdT2GRbnl9q6kdFWVZrkF06Dzoz cipUXeeWkKewEaxfINYR2INREOemCkS56w1JDlVLWkT+h0i5Oyjd+GDzpedjyTspD7Kf kYiCPHAxyUF9CN62ygrCpSLb+azh+yNfq/P5EiDBdnC5mHHXAAURAV9gQmdsnM/nwDRx A0k2MPCJFOwcnBlleN+tFsb0jMZRykP2xIranUh8rzed2Skkn23yzYNp63qwueVG+c41 2RxQ== 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=gWYcyGNfIFLRPx4pt/22DjIYJEdjPhLiYl159GLEbQg=; fh=IFXSYtTjA6OwBzQVWtQBo3agFPmy3klVFf+FwDl9wfA=; b=uNHZp1USiQ2iW+A4G5WCc368/n6l7Hpi5r1GWjPQoairSQgkP45tqOmNV9we17zRql xEy7cXnbhE/DZcfftggQMl1PFIhEG11vLELzr8+BtHs7M2tTPkEVy8SkaRiGRvk06ORK sUTT3naM1DJ0KjSZAWpIRN63QlMFpt6zydBIDcf2qStnfbyTYr1BkrN4P+H84B5GG8Ff CAloa3jYSUplEsjZ3qRQpB+SOZT5/TZCmW+QFCX86mEMo/SO4tieTiFPazM+y0JvLjSW hmq6LFOPA1wvaH77D3gmRjWSc3F9ul3wM9DcX1UUX1KdMK0hDwsoUMeT0YmiPfkiDX8K Ngew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rksX0ZRb; 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-61609-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61609-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCViA+0Pt8HDJDIrLX/pc3B78VgWK3ZzH0Pra/aSsi/iZ969tRY3a8Qe2/QoUPOAV56S6qkBS5fALNHkFXwUNSXGPNZxfg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v16-20020a17090a899000b002970ca998a7si281547pjn.25.2024.02.12.05.24.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:24:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61609-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rksX0ZRb; 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-61609-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61609-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1D7F6B20CB2 for ; Mon, 12 Feb 2024 13:12:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AC663B195; Mon, 12 Feb 2024 13:10:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rksX0ZRb" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 9C3393B785 for ; Mon, 12 Feb 2024 13:10:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743430; cv=none; b=Xdv9Q83kSVHJnyWhEdTn4h6F9yn4qO3EfVi/SbaqXyB8j5EKCNohOb1oI+JtckKrAgKDrewuJUZI8ZzY7N/thi014r7kAv++ZIHIpgQcV62WiV96eAL+GpxIX9ttA62mX6hECC9yayUzyEMSwK6ZaQ396DCrv4C2KX/ljk2rZ94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743430; c=relaxed/simple; bh=kq5j5a44u0i4ZLViq4Vc2kh0Xc0OOLzaeXziNYe3I+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J1gMNS0xjwcdipsMxGRSkTUCIcCgG1qNTMUM1Kvig9GA3PgicDgDBLYGeH7ixmXiOwsSTDGjOjWg7PSlbu6rQvcubRN1loRshjykazFkQbukmP287rWzz7x/xwGmVghPivJfxaRI9uD3wKCGHHtSXwy1nXsiw1E3lcCLX2BRj0s= 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=rksX0ZRb; arc=none smtp.client-ip=209.85.218.41 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-ej1-f41.google.com with SMTP id a640c23a62f3a-a3c309236c1so214822666b.2 for ; Mon, 12 Feb 2024 05:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707743427; x=1708348227; 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=gWYcyGNfIFLRPx4pt/22DjIYJEdjPhLiYl159GLEbQg=; b=rksX0ZRbjvJ6S5QkVfUAR6yHmdm3TNZ4AUS3wlXA//Lh3RjQ0QNmX4wG8kEfooIr4O TubAwqxXuge0dAtYlCsvq6XH0NA8cBLleri3VCxcFfUSrmQpYAabeUnGOwe+8Rm4XPnt TPiBUC9YPVOPVRtlWupP5blM7bcEEedrplsuL1jPJYbMhwBQXbkQCqtcDYqzBWkkm/cS O9JiL6SegHrLMd66IioR0wd/8jPfZ2a0bIq90xq6OrNlIqcCypg7eza/nIik7J+DiU98 J7QXP5uZgOQOgqYQd6wZfsTHHdRMZ/tEud7g+KP4pmM9vpbr4ZK3yveUm3OZM2aAAjZS tAUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707743427; x=1708348227; 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=gWYcyGNfIFLRPx4pt/22DjIYJEdjPhLiYl159GLEbQg=; b=L9Yt3ubSI5uKvoR5yvHl5A9QxmP0xGCnAleuVHYFGA2Kh2aNwlzY77/FelGdzLG7FO 1q+wethBOTFUIlBTpT/upsJ/dAhZzqL8AAiwnyOdgxQaTtYyaOCYHoeSBsAMxkJn0JSI 6voYuVL2oTgQmiHeL5/qY604Hlf0jiodS/XXhyIcvfias9kOcoLSq7i7eOdOUKAoc1g6 SLqjsri+kTcAtF+jbFMdjI5WkaAmPC8K4ghblIAv+uvtJTlQfL/FGLCxp7DKZLQIcrTJ crZMT3Ix+/vv2MtBilB0FpRSLA2sqNK01xsHBISWV3ppl9r4YigUpboUbWV2RVSPUJNQ uYPA== X-Gm-Message-State: AOJu0YxvO4GwtDmW0n1JnnidgBK7DHjwobaTQPynS1490wAIGek1r1Qn Mnn1mH+Qa6Ve0R19fCwSdG6x7QQDioMlkIceY7zDExVTK8razDAchK8670jilyw= X-Received: by 2002:a17:906:29c2:b0:a3c:770:1752 with SMTP id y2-20020a17090629c200b00a3c07701752mr4218831eje.68.1707743426912; Mon, 12 Feb 2024 05:10:26 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXuCyaQr/W8a+C1M0E7AVq54SBy2u41vHYdbqFfYBYFbzSAeUsaZGW5YroQozvht5zf/so9htC64gtRC7DKItXZfNf0IHOaR8Jn1DQaW2BL8ogkhCi9c/6BKYjEEDGdMbOSX2g9W8DNOxhDn9L7fSOl7fGY4ZE1gXoTjnAJSZs3DEXpIzx5OyMeBidrJwHu9cieHTa8zRfKUI0bJwCod59Y3GeW+vloREbNWN1HXWVnapH6X3a14N9eiBxyCgxu7VYzCJpvyaMZA5LdX5eMJtHWittgwUG0cL/k6HjbssktBzpt+0y8Pc/q4Durxbk4KXmwFZZLRhz8URFyz7vsphYPdeZt9D7HZaV3JjwWRNGf1gFdsjMrrqLPwsjt4XAK7v0dc4MBwaCPhR3yenyXnXTj/oE+wLio9+4JVMUs/YLxuCklZSNmHkANv35Dx30khK6Yx81FRZyouEwZq5byA8MvbarzQWI66Q5ppPY3weaLP6/r2kxvvHMbln90lIuFV++x4OV8h9lExFhKQzNCDLVEwIcxbeQEX10VqiZGVGARWKGQJ8riAjg4KwSIgSI+9STX/TrXlbLNv3KoIBmSHsblQsqU7zK2TpgU7u3rYbnRBxrG6MnvAWLeTB32HCHF3GwT9f9k2AxWHPrV6fc9n4gdt/USEUkN30clb2/G72dJV7zkEI8OvI4HkmpNCLm08Gtxi900nHobW3DAt0FV7VUdn9fhgMvaA3NEJwRW66pNQx68zZI+L+mkIwak0K9YQFt3WWeEB0QXf8aiCSNlzK7YXm7bv2lYMADU7yDiBQrG2EytArx+k6h94tHGa6isATPbiRMzDy+4I7pFrEkTVnAMqLNq 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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:10:26 -0800 (PST) From: Konrad Dybcio Date: Mon, 12 Feb 2024 14:10:12 +0100 Subject: [PATCH 4/7] arm64: dts: qcom: sm8550: Mark APPS SMMU as dma-coherent Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240210-topic-1v-v1-4-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=787; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=kq5j5a44u0i4ZLViq4Vc2kh0Xc0OOLzaeXziNYe3I+w=; b=4KH+YyPNIYKyi1m0IBMqd9biATcIsevmXT8PvZFoSkc51AMiOSoCBGOHDuTdwZFHd4B9pthVR 6L3X0T8uOeUAwa1aXYa1+fwU//8FX/p328x8Ieq5xfqSZC1Ge94bOb9 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790699672533563725 X-GMAIL-MSGID: 1790699672533563725 Like on earlier flagship Qualcomm SoCs, the SMMU is dma-coherent. Mark it as such. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index d696ec6c6850..868d48b85555 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3934,6 +3934,7 @@ apps_smmu: iommu@15000000 { , , ; + dma-coherent; }; intc: interrupt-controller@17100000 {