Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4403760ybl; Mon, 9 Dec 2019 10:14:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzHH8g6FmPmv6HCoY7K5wOcAIF3AI5nFMVZuzYJ69aAGxpepTpfrbY3Q4tfYNbzF2REuktD X-Received: by 2002:a9d:784b:: with SMTP id c11mr21325637otm.246.1575915291447; Mon, 09 Dec 2019 10:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575915291; cv=none; d=google.com; s=arc-20160816; b=r/9vppv49KhvXZunnUhhMOX8OUPpCKNjgz4SiBRZrWH9KIRVR7GResYMn106V4WIhT Qny2ygM6Z+C8ArMwxHSI1e60G9IawBEohZb2GwrScvsM339Lu6z8+D1A2G2i2Sp42kWC XEs/lb/RnWyKu4rzdoM8aAVuqTY34AgPKXK3Ox939nWBLQIa8+BoMkqx41gxqY5G83jt D9ibEn6M3tjAITjPvx5Wqt9uHM1fxFCI6AIs5FHmaLHfOf3K6hebLwrtaq7EWHGapoa9 yC0XgvIhxyqNBMz3hq9LkLd9bSRAu5lZdsd9UDx8tTtvm4UaMMmP6UIBJeqg4MrFHNqP aSrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=/Lzf1hIoDU/ZjVff0Ob50B/u4dz41ExonvLP+obnOrY=; b=Vfhx/fJm2MtblQNG4WZM7d0JwsvSbJNyBPQRM1l8VXamEbVmx0dN2fs6sm5PtZCoMc pNp5I81h/H4iH4rJVJVFZHnx2hd2Ae3ozxwF+ZMd/AYcMZnpEnp7HXY1ZMCdJeaQGJEN kPqHwqdf9sgXsfqvpKt1SnW901gJeO9YrRu2Ox9nCjsyThfK2tByctib5x+6A587P4FZ l1XFd67VvXrKCfLvEw/PSrpxIS8b904kJRNd5LRlstfenVKCd5+VHgGlNYzH2bS4+j5C OtqUogmS1juZ8UrHHzPpwyZCUemHICl1Yy3VP7dZoFw3p+3F3vVdOcF69kdopVy0pGQs c9yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="veU94l/2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q21si302358otn.7.2019.12.09.10.14.37; Mon, 09 Dec 2019 10:14:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="veU94l/2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbfLISND (ORCPT + 99 others); Mon, 9 Dec 2019 13:13:03 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42381 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbfLISND (ORCPT ); Mon, 9 Dec 2019 13:13:03 -0500 Received: by mail-wr1-f67.google.com with SMTP id a15so17243230wrf.9; Mon, 09 Dec 2019 10:13:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/Lzf1hIoDU/ZjVff0Ob50B/u4dz41ExonvLP+obnOrY=; b=veU94l/2yneEs2+AYnPRfypLrEwv/lHOSPvX2FqK4ks4WOdsJkkhAm4704nkBZ/6Mi lazIXl2B9ITEC8ee2XmyffCUC6U1UxH6gR89nd73H2hk9MND/KGz0gFcIDaoU59+mrNe s4vvhZNA0EcQumdairxyFg8FSbETavWj4ki9o6CcpeoxWnWox79TQtPOcnpnJQek4G1R WrFcNF+8ArAqMgIYmMiIF6YjptIwS/YnvFwU64wa67dKt4UvGQNRP3Oc1V+GG1r37M1p dlLjbhoiVa8aQS2KZXvMnQga8nB+XqTaw/IdkyHaxjVt5G6qK6/Im8JtyYoUxV5L2iZm YoqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/Lzf1hIoDU/ZjVff0Ob50B/u4dz41ExonvLP+obnOrY=; b=WU8BM4CQ+wMzXkyp2S7ZTvyB0bmFLeXQl4QbkmvwgZgQLrGGk1ZvwX+UDerPpALiRT cpZ2hOnluVBREy4Qz3wtmHNrc+Bhu5PchZU0hnS/KfIs9EVBR5ulFgReYtIVNbX6gUmk PmIt5zNxFSePQrPfSmQFtwMpJeldKFlAsYwE6jZ2t3irlG2NEl6Cx8WrOPFfMKFZFG7Q ahC7ShATXzEVuVZujwjk8wUonwfkc2fOeeQaZuCBxE7vVtZbgL8ousrLSF3H1kUa/bPB WwlDkG8NLZc2NbFFE0IVaJFUqxcmpM3+s3Na4EQ3nsN73AyXLi0KM+r7VKWWcs1m6Wdk BHLQ== X-Gm-Message-State: APjAAAXNvDzQvG5NE2DJerSdwNvmbvcMPm+VF7VW0apeQ9n4yyJpUPgg vCTG//4g0tbTOspU1/ICEcI= X-Received: by 2002:a5d:5308:: with SMTP id e8mr3599909wrv.77.1575915181066; Mon, 09 Dec 2019 10:13:01 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g21sm219800wmh.17.2019.12.09.10.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 10:13:00 -0800 (PST) From: Florian Fainelli To: bcm-kernel-feedback-list@broadcom.com, Nicolas Saenz Julienne , Rob Herring , Mark Rutland , Eric Anholt , Stefan Wahren Cc: mbrugger@suse.com, phil@raspberrypi.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: bcm2711: fix soc's node dma-ranges Date: Mon, 9 Dec 2019 10:12:56 -0800 Message-Id: <20191209181256.5854-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191204125633.27696-1-nsaenzjulienne@suse.de> References: <20191204125633.27696-1-nsaenzjulienne@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Dec 2019 13:56:33 +0100, Nicolas Saenz Julienne wrote: > Raspberry Pi's firmware has a feature to select how much memory to > reserve for its GPU called 'gpu_mem'. The possible values go from 16MB > to 944MB, with a default of 64MB. This memory resides in the topmost > part of the lower 1GB memory area and grows bigger expanding towards the > begging of memory. > > It turns out that with low 'gpu_mem' values (16MB and 32MB) the size of > the memory available to the system in the lower 1GB area can outgrow the > interconnect's dma-range as its size was selected based on the maximum > system memory available given the default gpu_mem configuration. This > makes that memory slice unavailable for DMA. And may cause nasty kernel > warnings if CMA happens to include it. > > Change soc's dma-ranges to really reflect it's HW limitation, which is > being able to only DMA to the lower 1GB area. > > Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support") > Signed-off-by: Nicolas Saenz Julienne > --- Applied to devicetree/fixes, thanks! -- Florian