Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1800842pxp; Mon, 7 Mar 2022 02:39:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbgi+jhGKySVRmKM/A1tDUDGFN4E0i/4jV1GZbcrVwV+8ZbUZjfQOjSX3b1VPq6Z+WQAPP X-Received: by 2002:a05:6402:51d1:b0:412:e72f:c6d3 with SMTP id r17-20020a05640251d100b00412e72fc6d3mr10290548edd.61.1646649585155; Mon, 07 Mar 2022 02:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646649585; cv=none; d=google.com; s=arc-20160816; b=K4fttz1WEnJ+OCi/v3qzQoFze6FOOtrMhLJCvY3/K5S1oFXSx+1kU8qKfc0jXxd+yB VVHK6iVSz8JIeVGVteBGcZZIv4fUhethm8lQECJS1Ax2PqOj1TGoilCJ3UxlNkzmyLdt VFecl1z8IFpw2Ai3+icWmwMnXkcdZYECwMbmpABLnwA3SeghqhGdK12PXUkbiCsL/veE pBqlkIo62IB8dhfI7E6AvlQnQpFULEpcIbycURCR4Ir3DUbK82tTk/cXkBlg4uURtsFr 0oWHk5mtjA4zH5r4wHpL5hMs4LcazeaDTx4azra5bCI4C84WCrfzOAdKXQPLhqYl3ZwB mkhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jfs3B8gwTTejNkt+TS/b403zzTjV6C5ZnOc+rAMFws0=; b=MYlIalbB636994SJQ7zcK9+Ujv8x1Sg3+8B6fNQv75Eyat4C3HRGPMcUGQDbH2YG08 TmFRyBgbPubhHvgj4NUcgbKHpPiZOwT12+gcRN9nBZPBQHmb9Md9w3F+HZBz2BYtlIFH J6bcIV8LLkrSBegZDEeHEe3nztRZcRvO7oTpV7FgAfle99daImAFkcI/HA5R6Lv+ZChW a7wdI9KGye61lPN/Rr8oF1WZC9nZ+CDn3XVrShv95iislhe8QbR4nWWeGZxRDeKo/VMa 2wJMRMLph0njiEu1RmVuyQ9YZAaIKfHq1n4nZuyCtl8cD83EAWo7k3liMBQyIAbP8lHl RhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S7AOMUR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id do15-20020a170906c10f00b006db16a575c0si2922806ejc.631.2022.03.07.02.39.21; Mon, 07 Mar 2022 02:39:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S7AOMUR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242907AbiCGKMA (ORCPT + 99 others); Mon, 7 Mar 2022 05:12:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238783AbiCGJxJ (ORCPT ); Mon, 7 Mar 2022 04:53:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443FC7667B; Mon, 7 Mar 2022 01:45:20 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0435FB8102B; Mon, 7 Mar 2022 09:45:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52611C36AE2; Mon, 7 Mar 2022 09:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646646317; bh=7ZaHIqiLhEKHT66BkWo+qr1fJJ6/m4DqN31xrBv38I4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S7AOMUR6/1XjyxwE1jqeUEa09Sln7w82pKtF3hqE/PbjUtwyWCQxolAAWCOWPQTUc 0V1ANbLce7zs9ywQmjBMivj28t+kjEmOaNh7COgFvqngruE+rSDtkZuDhLGGpplPk7 0YkF3diGo29iSI7llysg9h3NxaWr0kKKvlgeOe/s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Liviu Dudau , Robin Murphy , Sudeep Holla , Sasha Levin Subject: [PATCH 5.15 203/262] arm64: dts: juno: Remove GICv2m dma-range Date: Mon, 7 Mar 2022 10:19:07 +0100 Message-Id: <20220307091708.458004860@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091702.378509770@linuxfoundation.org> References: <20220307091702.378509770@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robin Murphy [ Upstream commit 31eeb6b09f4053f32a30ce9fbcdfca31f713028d ] Although it is painstakingly honest to describe all 3 PCI windows in "dma-ranges", it misses the the subtle distinction that the window for the GICv2m range is normally programmed for Device memory attributes rather than Normal Cacheable like the DRAM windows. Since MMU-401 only offers stage 2 translation, this means that when the PCI SMMU is enabled, accesses through that IPA range unexpectedly lose coherency if mapped as cacheable at the SMMU, due to the attribute combining rules. Since an extra 256KB is neither here nor there when we still have 10GB worth of usable address space, rather than attempting to describe and cope with this detail let's just remove the offending range. If the SMMU is not used then it makes no difference anyway. Link: https://lore.kernel.org/r/856c3f7192c6c3ce545ba67462f2ce9c86ed6b0c.1643046936.git.robin.murphy@arm.com Fixes: 4ac4d146cb63 ("arm64: dts: juno: Describe PCI dma-ranges") Reported-by: Anders Roxell Acked-by: Liviu Dudau Signed-off-by: Robin Murphy Signed-off-by: Sudeep Holla Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/arm/juno-base.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index 6288e104a089..a2635b14da30 100644 --- a/arch/arm64/boot/dts/arm/juno-base.dtsi +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi @@ -543,8 +543,7 @@ <0x02000000 0x00 0x50000000 0x00 0x50000000 0x0 0x08000000>, <0x42000000 0x40 0x00000000 0x40 0x00000000 0x1 0x00000000>; /* Standard AXI Translation entries as programmed by EDK2 */ - dma-ranges = <0x02000000 0x0 0x2c1c0000 0x0 0x2c1c0000 0x0 0x00040000>, - <0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x80000000>, + dma-ranges = <0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x80000000>, <0x43000000 0x8 0x00000000 0x8 0x00000000 0x2 0x00000000>; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 7>; -- 2.34.1