Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1548189rdb; Sat, 20 Jan 2024 03:51:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFa1z/Bwp5r73McIbLD9//pIXLfd5DR9un+xxF5jEDzdl2ZQIZn4C5Z0NRL5X9ddDa9z3N5 X-Received: by 2002:a92:c801:0:b0:361:9692:32de with SMTP id v1-20020a92c801000000b00361969232demr1926944iln.7.1705751493448; Sat, 20 Jan 2024 03:51:33 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t7-20020a63eb07000000b005c2786b7e32si4970040pgh.812.2024.01.20.03.51.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 03:51:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31784-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JtTT9M0X; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-31784-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7843C2821FB for ; Sat, 20 Jan 2024 11:51:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2957923D5; Sat, 20 Jan 2024 11:51:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JtTT9M0X" Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 D68A7D28F for ; Sat, 20 Jan 2024 11:51:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705751480; cv=none; b=mPvAFA0hWU+WLJ3umiZfNExv/FgpHHMdJuyC0lDNVC+muSReXypcjXEIVgjsN6O/jAABauGFHWs4QW5rb60A5fty/3ncVl9xvibOpjkEeaI8AzDCHvZSL0SL/tngMonNKWz0yH1U39KZmVDgOonhMKuzchGfUky4VL5noRvTq+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705751480; c=relaxed/simple; bh=mXR2jSYWZsRdY8dH2XN+EAzXQknljlJIseSJOW5lLlI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PiQ6QLuOp6O8uGiu8Te3LKESwx7VuS11ovVAPRJxkqHbNo5p0HWps7JmJvfk433DeEsAlMoZCfvNwcQrCzyRoDRt9gWfI2SB0lR7exhOYhSPRMOukAtFwJqXW0iHdrRAW9ps/rkDdZbwd6XTFMMu4/YjwzpkTfzwUxwS9bET43w= 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=JtTT9M0X; arc=none smtp.client-ip=209.85.128.169 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-yw1-f169.google.com with SMTP id 00721157ae682-5ebca94cf74so15398977b3.0 for ; Sat, 20 Jan 2024 03:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705751478; x=1706356278; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mXR2jSYWZsRdY8dH2XN+EAzXQknljlJIseSJOW5lLlI=; b=JtTT9M0XSkQmyX3/nxcsZ90lWn0Dn8hZhx5xEeiqR03+eD0fP89mz8fH/qHjD2/PyQ jk1Jvoemj/W4r+KaXnC5ipStlLzQq0nrNHrcOv5HCVzulgXtOwTGcuFFi5AdosAxLKwe erWhOld78JNxt6C7Y9pYW2RX5Km50948bQ90mbGbLDK11S4Kz8I2AujnjyXlgixiCoxf xKIj4xfIb/jFbs5x2d8enm1U6AXtkH6rBkmOIf7GnQ4v1+joIcZ6+AcmgBvuB6FZn0eU iKrQkpQgIFrcmrg1NXj0bCETM6QknT1kqXRI74D0zhllk3lo2aA2GJShxHP5aIE2lO/C cZ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705751478; x=1706356278; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mXR2jSYWZsRdY8dH2XN+EAzXQknljlJIseSJOW5lLlI=; b=kJzTRG6rsWPIdRhboQF5auyMbAMcw9kv4mojs0ej9NXtdJQpDs5+8Qvc9xHow6Iz37 5UQ8hEz2SowC5PoQR+LeUH2C4O9haFVZ30o51VgnC6j3Da6rueTEAIA6BMFRYD81c12m 1Hq1lh4PCk2Fpkei5K4xTauEtzrrYexOZv7M6wtPAEK6WGyr5Ya6WO75i91eiTOaybJL JKEjnjbQf+AARjUCidPokFNe+e21D43smSbDPvpu+wGuYGSQEhAjvOYNAr+kmuwwi4w9 pxqn3KIoG+Xz6+E76qLy7fMdh7JPcCmHVDkRl06bl77CYi6PsYsk3ZCQE0r+0vi4qIRM jz7w== X-Gm-Message-State: AOJu0YyAv0Cqyod/FZW8lQxQ6WKFDK/Wzrp/+5IvxD4t+GvpW0EQPJvk 18quBcb+62vwYoHBpxMYckmNrooOENEAhf9tAjwqArGlncszLQQg2BqdJubnRtsqY7IyJu3mo8y PQHumPgwE/7Y/TyGrnIPCsszOP3crk7rHp3GvOA== X-Received: by 2002:a81:6e84:0:b0:5ff:96a1:c5db with SMTP id j126-20020a816e84000000b005ff96a1c5dbmr899600ywc.12.1705751477547; Sat, 20 Jan 2024 03:51:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240119201356.7903-1-ansuelsmth@gmail.com> <20240119201356.7903-3-ansuelsmth@gmail.com> In-Reply-To: <20240119201356.7903-3-ansuelsmth@gmail.com> From: Linus Walleij Date: Sat, 20 Jan 2024 12:51:06 +0100 Message-ID: Subject: Re: [PATCH 2/2] ARM: decompressor: add option to ignore MEM ATAGs To: Christian Marangi Cc: Russell King , Arnd Bergmann , Andrew Morton , Geert Uytterhoeven , "Kirill A. Shutemov" , Jonathan Corbet , Thomas Gleixner , Randy Dunlap , "Mike Rapoport (IBM)" , Eric DeVolder , Nathan Chancellor , "Russell King (Oracle)" , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , John Crispin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 19, 2024 at 9:14=E2=80=AFPM Christian Marangi wrote: > Some bootloaders can pass broken MEM ATAGs that provide hardcoded > information about mounted RAM size and physical location. > Example booloader provide RAM of size 1.7Gb but actual mounted RAM > size is 512Mb causing kernel panic. > > Add option CONFIG_ARM_ATAG_DTB_COMPAT_IGNORE_MEM to ignore these ATAG > and not augument appended DTB memory node. > > Signed-off-by: Christian Marangi So you cannot just ignore all the ATAGs I guess? If it's the command line you need, you can pass an identical one in chosen. But if you really need this, it should be there. Acked-by: Linus Walleij Yours, Linus Walleij