Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3346629rwi; Fri, 21 Oct 2022 15:15:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HdU6CRE3RtiMcTc7DGjt/k9dG1QIR2+f0MBoebgUGkOZh9rhjzyykoQ2ybODy9rdUmEVz X-Received: by 2002:aa7:cc13:0:b0:453:52dc:1bbf with SMTP id q19-20020aa7cc13000000b0045352dc1bbfmr19632374edt.30.1666390502593; Fri, 21 Oct 2022 15:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666390502; cv=none; d=google.com; s=arc-20160816; b=pC21U4C+HdWNI2BbxUXdH/Oi1F5qq3EjFJDo97ptF/MaTB5cCkKtiPfdvNlYTMiF4X lqcK1jYHE62pvGzr5cOP2uhQCpExET71SWaLJj8Vl3pgbCNu91Yq/a9odxqH9k7duoXY hZC7/7msia8rGH2xScIXScetOJnAlSRFAQJxwX7yLypJ8j3jBzMJXYaBk2B4UzRk675s WjeaezK7a7yVqhRrD5GjTLa9rV0sh0hUgqKLnd94y60AbVUta1lJvYz7fFtkM4igW8PD rzz3kCBFbY/59ENBC8BLd/Gsl1mirCDbjcSwbSPnRzfZV1BTanXnS6Q01j6qqaNVtSfA BvfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:subject:cc:to:from:date:message-id:dkim-signature; bh=uywRKkGBOBzaRpAeKnVzx5xH6NmY5amHDeoPWUqrzj4=; b=ms6zg4OIAdRngGuT7lfU2pw8uEQXGhj0LU5/j5kQedgcsrTHVmiD+f5TvaXbroLd7l Xkr8Ay4bP/bDjpd406/GmxCZliGNOce/zGscLWzD93Rtkm1AS6lcnhc3nmhsTtHrCOXg TzFxlfIiO0OsQu+ipnPF9DOc5uZV3QAAZXOzu3QAojP4OGmjOnNQooJDyjRaXhpoNTRl wanV2YGkHTKnpKL9gN5MDZl75Zb8kOwE5iwGqrH6o9QbAqSR5oBk/fLwfn01XqVnLOvF WCnuvBzDDEKAlKx82f937Y8YBEtFFfHp2T0IvLImGaTBjjNN/vJfs3QETpEuPFwTY844 R7ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=obZPWL4h; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a50d5cb000000b00457c6b5dc07si18814052edj.455.2022.10.21.15.14.37; Fri, 21 Oct 2022 15:15:02 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=obZPWL4h; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229835AbiJUVzX (ORCPT + 99 others); Fri, 21 Oct 2022 17:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbiJUVzU (ORCPT ); Fri, 21 Oct 2022 17:55:20 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87CF5125036; Fri, 21 Oct 2022 14:55:18 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id a3so7149208wrt.0; Fri, 21 Oct 2022 14:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=uywRKkGBOBzaRpAeKnVzx5xH6NmY5amHDeoPWUqrzj4=; b=obZPWL4hwjCx5D18OHcuK4+/lvgCkHJOTkz7r2RXH1oV+8ut6II7Dl8Ih48l7WzHtE 2FqsaH+FBrdORZ8E/hQC9qDozE92aWbtncThnynxxzCCd62XnRS9a/TnECJBzKNdVu6n M8Due3bQKWefFH5YkkyjB7Z9P2PhEgbmXpPJ6o7Dmg9JjNjCj46+E1Bb1oo1CQ7XShgh kphPLzJ/iIBiEuNOLfu1whjwuuB0DaazLRhfkZSEUvu+VKfwFTSlCDY8TttZFxKG4xsZ 71PATjaDxtUslEVEY0r/gdNR7sa8jsJfQp9kzUDeRxBlGrh//8j6Wn+/6C8YOIxSSHD8 dtWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uywRKkGBOBzaRpAeKnVzx5xH6NmY5amHDeoPWUqrzj4=; b=KaNM34wZYLaoSxVp1ejcTf7Kba+oyfN5czDLmzC6SCYIRvU0KVbFd9DT/dEUBD7DXn tvkEAc1cwsELTEyXOfsaRW6yOW9RE8noOUa19DA0PD7XHRAdhaHe7WbG0Apzg2cwG8UT A+vcB2GNA03RtlrxLrCruj6Saz1aRRb9PbQEAVVpiszPwaPK//c6fnNShg71rDGJ6fUL xy1MBCzcUjSSuR9qf0ty8vKxg7DRdFk4qt5PCUI2GjA9iFIBi8FlSbV0DHAQJnGKMw1d AzDomwpKYC7q2TNhtEF0alspdey/qvGsXzgZAE36qLWPuL49iCiaASIrbu0AtXhrQHrq cEDA== X-Gm-Message-State: ACrzQf3P7pfLjQg2d1tJUJBK4+KLpNPOdDc/XgBny4QkUbOOl2LjeGjV XJjRTREcUsjtjUrDsxWZrSE= X-Received: by 2002:a5d:6c62:0:b0:230:55fc:748a with SMTP id r2-20020a5d6c62000000b0023055fc748amr14091890wrz.15.1666389315677; Fri, 21 Oct 2022 14:55:15 -0700 (PDT) Received: from Ansuel-xps. (93-42-70-134.ip85.fastwebnet.it. [93.42.70.134]) by smtp.gmail.com with ESMTPSA id p16-20020a05600c359000b003b4ac05a8a4sm897677wmq.27.2022.10.21.14.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 14:55:15 -0700 (PDT) Message-ID: <63531543.050a0220.b6bf5.284d@mx.google.com> X-Google-Original-Message-ID: Date: Fri, 21 Oct 2022 23:55:07 +0200 From: Christian Marangi To: Linus Walleij Cc: Geert Uytterhoeven , Russell King , Andy Gross , Bjorn Andersson , Konrad Dybcio , Arnd Bergmann , Ard Biesheuvel , "Russell King (Oracle)" , Nick Hawkins , John Crispin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] ARM: mach-qcom: fix support for ipq806x References: <20221021181016.14740-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Fri, Oct 21, 2022 at 11:44:56PM +0200, Linus Walleij wrote: > On Fri, Oct 21, 2022 at 8:10 PM Christian Marangi wrote: > > > Add a specific config flag for Qcom IPQ806x as this SoC can't use > > AUTO_ZRELADDR and require the PHYS_OFFSET set to 0x42000000. > > > > This is needed as some legacy board (or some wrongly configured > > bootloader) pass the wrong memory map and doesn't exclude the first > > ~20MB of RAM reserved for the hardware network accellerators. > > > > With this change we can correctly support each board and prevent any > > kind of misconfiguration done by the OEM. > > > > Signed-off-by: Christian Marangi > > I had exactly this problem with the APQ8060 as well, then my problem > went away. I was under the impression that this was solved. > > Is it not possible to use Geert's linux,usable-memory-range in > the chosen node to make the kernel stay off the memory? > (See examples by grep usable-memory in the kernel.) > Hi, just to confirm this is one of the example you are suggesting? chosen { bootargs = "console=ttyS0,115200 earlycon"; stdout-path = "serial0:115200n8"; linux,usable-memory-range = <0x80200000 0x1fe00000>; }; Main problem here is that uboot in some case doesn't support dt and pass wrong ATAGS (with the memory not reserved) and AUTO_ZRELADDR calculate the wrong addr I assume? I will test the usable-memory-range but isn't the same of declaring reserved space in the dts? Or the zimage decompressor checks linux,usable-memory-range bypassing atags? -- Ansuel