Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp729171pxj; Wed, 16 Jun 2021 12:10:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCX6uC+CQ9DVj4eCXzYL19/HwK45OGUC1XUmykNBIuhRrLv1PaJVYJZMzFltRxzkWzwN8u X-Received: by 2002:aa7:c54c:: with SMTP id s12mr1551029edr.374.1623870652297; Wed, 16 Jun 2021 12:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623870652; cv=none; d=google.com; s=arc-20160816; b=GMLqq2hM6/hPwJKLkEoK/50OLjYtTTt3o0OgsA3C0j0P1RcvHzVCMmGBUD7/yVoOA1 TqjTP5toAq3LYqGWEadksdv44YrrRk2IIj4WQIHYQRgLOa1kzvLynMXRhKJ7M9f+77+d hEsl4zJeFwKuuq0kUixvSVNjqF1o0LlvzOGKziSul5m5sEtkkKnRbQhKOz9gYDOpW2or ptdg2wvGeEPYdQ/DffRhOhNs85ugPpJUyEml1S/Mw7pTL1yrdwECXSHnR4kVSoELPdC5 8EwXnetBsfldzcO9pVwprlxSaZA7U8oOeH0TUnS3YQMaLxCZaElLncAKj92f9EOn2uc0 5DbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=u7YSd3P+1WfdhsPoxGLBQZCS7+O1nsPbEqGZyJYvdiE=; b=gX40VlJkueprVwEH80GBI9qsOtgcXzH3MbyIa+UF7Z4LfLJzUyrCqwy+PLErT9axxp bEBCegSDa/l7mNPFhjpBsAsw9E5/X/RMp4G0OhPZUxeWAU4ecXaQqpAVNjLSyaG14UHB BRDMcVZrHs3nAW3/LquqhhV2DmmV3Xs8yRar1it/tO4s2ZXi9cq1RawHjAlR8a5jtN8M p/QS8Kxinl7Un2dNTZJbTo1p/io0EycwAaboFqjWmaasJuChl31W0/EMTzhZz7a04IRt Goev+DIK45cB95rJXgiMgYEgD614toe2doDUWbAi6Z8+7CJOEqThUEILMBVFKTq+UOPa j4yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BW+O+K34; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si2922416edx.62.2021.06.16.12.10.29; Wed, 16 Jun 2021 12:10:52 -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=@kernel.org header.s=k20201202 header.b=BW+O+K34; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234150AbhFPOuF (ORCPT + 99 others); Wed, 16 Jun 2021 10:50:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:36084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233914AbhFPOuF (ORCPT ); Wed, 16 Jun 2021 10:50:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E00D560C41; Wed, 16 Jun 2021 14:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623854878; bh=qwFzlNJ04k6sHwdqK2lPHiFKDvUxsyrimKNVrLGVNus=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BW+O+K34ZrUlK3Qeyn1xh0qNXfJmlW6xGP+wjvLG+7fob198unv8919jWdLy35gco ECRpvSzZ1bsY415puegBVgstUjnypUyWHzIqXOe+4HutPZP597VMWdAOlXoZPL2JDV GTKcVqqdXLN9ZguRSwz40nhavI2fcRTyxDoYBLUV+47L0XTmgKIS2oJugcc6V+HrbU bsOXdW53Kb7JUmF1+XINpSL5LOdBxHWowya5AyS8NxPHbiJg9OVqFv3vVDTIkpHgjS PggFG+CivK2OrxvEeGjmt0hvzf/GvxbMhQND0H3IfXkihosQuXcPvPInxSyS7yGqln Axrk1ck0c877g== Received: by mail-ed1-f54.google.com with SMTP id z12so3089136edc.1; Wed, 16 Jun 2021 07:47:58 -0700 (PDT) X-Gm-Message-State: AOAM533/MGi4yHA0oQFui/kmIxopqmZ6uiI3EGxf65qxg3ilzqrhCFA9 j+nk/ZABHnfcmShBwdETySG/tZctN9CClNW0ag== X-Received: by 2002:aa7:dc4c:: with SMTP id g12mr4860375edu.258.1623854877530; Wed, 16 Jun 2021 07:47:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Wed, 16 Jun 2021 08:47:46 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] riscv: Remove non-standard linux,elfcorehdr handling To: Nick Kossifidis Cc: Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Frank Rowand , Catalin Marinas , Will Deacon , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-riscv , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 4:43 AM Nick Kossifidis wrote: > > =CE=A3=CF=84=CE=B9=CF=82 2021-06-16 10:56, Geert Uytterhoeven =CE=AD=CE= =B3=CF=81=CE=B1=CF=88=CE=B5: > > > > I can't comment on the duplication on arm64, but to me, /chosen > > sounds like the natural place for both "linux,elfcorehdr" and > > "linux,usable-memory-range". First rule of DT is "DT describes > > hardware, not software policy", with /chosen describing some software > > configuration. > > > > We already have "linux,usable-memory" on /memory node: > https://elixir.bootlin.com/linux/v5.13-rc6/source/drivers/of/fdt.c#L1011 > and it makes perfect sense to be there since it overrides /memory's reg > property. > > Why define another binding for the same thing on /chosen ? Go look at the thread adding "linux,usable-memory-range". There were only 35 versions of it[1]. I wasn't happy with a 2nd way either, but as I've mentioned before we don't always have /memory node. Rob [1] https://lore.kernel.org/linux-arm-kernel/20170403022606.12609-1-takahir= o.akashi@linaro.org/