Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp575745pxa; Tue, 4 Aug 2020 12:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIDdGWpHfeH3tZMmrRYNpTDKoasIp7pw27Z2KqiIfai9CCShW73n8wgrQprbGwPqzVdjXV X-Received: by 2002:a17:906:c406:: with SMTP id u6mr24123867ejz.47.1596569196941; Tue, 04 Aug 2020 12:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596569196; cv=none; d=google.com; s=arc-20160816; b=VH4FOMU4usKJs5RWCXXmMpeznt/0LA4Z0iAy7YxemvRZqiAxh0ZxAt5MpCu1fpNeEX ZHbzOB710BtIG9uApBYmxKduz65E7VmyVQtN1AKHaq0u+fqcjUrPYMS5SHYTvgaEjyC/ 0BwnjhlzuJjgGN3sQqIH2WCpU5Uz9Ke/+ItN8pLSQeZ7FE0fvYhbTM8uUAyxcDyvj9uK Z66J0zVuokCVyq2Y21TXx1jw7kE1t0EysqLdVpaJOg6ad9H3mmQHl/V/CFF3T87eHqKU fw/vGNhVpdYzz4S34UBXTdymqILCzX/7BoMRZgDkSluzWX+tesZ1SJTmJK6eBr3qjX+j 8OPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9cSVspbzkWN75FyJrZtjTDhtHbzq1K9/gFpRCRTO9ZM=; b=leVE1fRIVSjydRFmk4dzghQuVmNslQ0MJZTIqY4uP/hRcBiCcKDC4pq10oyVuMurwn XcsZU0TFThpzZ1B91x4iMsoyBXUXUoAAaMf30s+jGTlPsSYNgDlQNj8HxTxGjP6CtjKn LATfBKJU+N7Q/oY9Q/yLBlmZhd1QbdVMlhcH2w+qlHCYAQVWvEw2Vmn/nRLvuCkvCHzc 0IkLmylbZlt4cPmfMrFuLp5NhV438TDesEpCkzX9L1AtSmlTImmCIyjqlmFko+pEqxUQ MOtnpx+CTGhuzqIk+WOrI3ux443BrNUkgSXHKCsT1xAQ/S5rxVYrH3/UYLA41jS2vfC9 KKvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VSji1UKe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si13706459ejb.68.2020.08.04.12.26.14; Tue, 04 Aug 2020 12:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VSji1UKe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbgHDT0G (ORCPT + 99 others); Tue, 4 Aug 2020 15:26:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbgHDT0E (ORCPT ); Tue, 4 Aug 2020 15:26:04 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C64D0C06174A for ; Tue, 4 Aug 2020 12:26:04 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id k18so13923083pfp.7 for ; Tue, 04 Aug 2020 12:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9cSVspbzkWN75FyJrZtjTDhtHbzq1K9/gFpRCRTO9ZM=; b=VSji1UKeJ8F7kDzVe0SIvGagNVtJbAnF8ajP9sO3qGYE625gju5jROJM39oOtHhweV myIkhefDx3j42Gif5irc79eEGPLK9cFW130XdK9lhVSNTv38/osNPyhg8HXIdRSl1k7M WoO6ylLK9nelsmmKulO6datI6ZnQOqs1KzH7iDrJyfOQlEKbmiG5gxq+mHlnbuE2Xtr3 qYIrpb3lOWJOOsLQbAoTe8tQru0ycyeII2RyPSExjtKC1TUp3wqLmY0DEKSzQ59IJRjK Hqcfa494k5CswBdA0cw2M5DpfHTBAdwyroUzJr7YEeLZTkmnsl2z6SFb3VHoHi63DRd8 0sRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9cSVspbzkWN75FyJrZtjTDhtHbzq1K9/gFpRCRTO9ZM=; b=SSX9qaQK6+kv6Cb1aBs7ZJOMCJ7EDMchcBilGGOquF9MVF1Vvssc85QXG/lOF5rHjP h6p0qYlGksQmPvYuTZ2UITqHo3NlffsiK8/R4+Mz1sRokKijngdldzKlSDAYfJx5YmVV NJavUf0+T2V636yQscnzv5SN/+pTFENQPOJXPJeI9CpMswcd4DYt7qwLokYlIYRwg1uK AtSSmGNdR+zrvBAXTptbBiFUEO4QqX+BjeDP+zILg3nR4zKCyyz0LRkH/R9HHR596wQD mPNZ6jbPHQOIgmF1qNtv5FxMqMWbhaJC6+/TvMHayvZ5t/Z3fJ58+zBjdN/5MmkljjR6 3dsQ== X-Gm-Message-State: AOAM5326AusyRF+Mj9k9LWcFmkupCv17Jnw+iq2pI5utVIg5ZuxOEstK vBtLwCNgPPktJw2AqnwnAxzNlg== X-Received: by 2002:aa7:982e:: with SMTP id q14mr16322128pfl.299.1596569164231; Tue, 04 Aug 2020 12:26:04 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id p5sm22574980pgi.83.2020.08.04.12.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 12:26:03 -0700 (PDT) Date: Tue, 4 Aug 2020 12:22:23 -0700 From: Bjorn Andersson To: Amit Pundir Cc: Andy Gross , Rob Herring , John Stultz , Sumit Semwal , linux-arm-msm , dt , lkml Subject: Re: [PATCH v3] arm64: dts: qcom: Add support for Xiaomi Poco F1 (Beryllium) Message-ID: <20200804192223.GD20825@builder.lan> References: <1596297341-13549-1-git-send-email-amit.pundir@linaro.org> <20200804061652.GK61202@yoga> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 04 Aug 00:35 PDT 2020, Amit Pundir wrote: > On Tue, 4 Aug 2020 at 11:46, Bjorn Andersson wrote: > > On Sat 01 Aug 08:55 PDT 2020, Amit Pundir wrote: [..] > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-beryllium.dts [..] > > > +/* Reserved memory changes from downstream */ > > > +/ { > > > + reserved-memory { > > > + removed_region: memory@88f00000 { > > > > Do you know what these 26MB are used for? Do you think it's possible to > > give it a more appropriate label? The size happens to be the same as > > &adsp_mem from sdm845.dtsi, this is probably not a coincidence. > > In downstream, this removed region is marked as removed-dma-pool > compatible, https://github.com/MiCode/Xiaomi_Kernel_OpenSource/commit/b982b6dc77ac34c184abe83dd293ac08fc607ba3, > a carved out memory region not exposed to the kernel. I honestly > didn't know what to name this region, so I kept it as it was. I can't > boot past the bootloader if I don't mark this region as reserved. > That seems to imply that it's used for something other than ADSP, but the size is strange. The removed-dma-pool is a downstream construct, the important part is no-map; > > > > That said, this overlaps at least &rmtfs_mem, &qseecom_mem and > > &camera_mem, so I would expect that you have a few warnings about this > > early in the log? Please shuffle things around to avoid this. > > Sorry, I do know that it definitely overlaps with upstream &rmtfs_mem, > but I ignored that because plan was to just boot to shell with this > base dts. I was planning to submit a follow-up patch with downstream > reserved memory mappings, which do not coincide with the upstream > sdm845.dtsi mem regions you mentioned above, along with relevant > wifi/adsp/cdsp nodes. But let me take this opportunity to submit them > in the next version of this base dts. > This problem does come up from time to time and I have a similar problem with getting the IPA driver to probe on my SDM850 laptop, because the sdm845.dtsi reserved-memory regions isn't accepted. So I think we should move (most of?) the reserved-memory regions from sdm845.dtsi into the individual device dts files - given that it obviously differs between different devices. I'm okay with your plan, but please add a TODO comment here describing that this is needed to boot the device, that you know it is overlapping with other regions and that the memory map needs more work for this device. Thanks, Bjorn