Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3964384pxj; Tue, 15 Jun 2021 12:23:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhf0XmZae/eXMD2M9Dy81LHIhn1YkFwghgCg0VeG8aGpJ27d5XAJA1qYZgQwODWnXuP8KH X-Received: by 2002:a5d:8d16:: with SMTP id p22mr688670ioj.90.1623784985637; Tue, 15 Jun 2021 12:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623784985; cv=none; d=google.com; s=arc-20160816; b=N5lbZTBf08dJC6W0D/GAubkze+Af1kvX8rgB39wQa9aje+tQnj8xkxryzOTGnZpYh/ LZyj6nBrF6/xYDJaSIA3XSwxrbY1Jv/6MANCh7nG/+iJ36ZPHf54qDjeBLo5Y2J/Q1+k JR+8xya5r5cURytnhPzYjZ1QELv4yW2h2HSd3NEb38TN+1PtgDUJzfsrMA1hpzyqMmJP KJFzHXpH6xC+i78/bwy/WMO7jPhq1ZfRR1HVCjAiTC37oe7YDQsiwV/RQPYck2WDIstk FxbbySTgNYYjf5bEaUIFtmdgsdPj90scUqkeEkSMxEnow8OctdPHRnmbcsTbt6BSORUt acVA== 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=JseJqQ9sRksz45Rjh5E3tOLNlDuRFpH9uH/ZtHEG+2s=; b=G+pLht1U3kO1XLXWwalNwYjCKryfKTDtqB0dw0BeoWpbo88M0TOrncnZAx+E3DFihs igoEDNRHYMUJEvrkvF5UsRnBS9su0AWELHnNyR+dxv/Z3PAubgPYL19C9ucPIj7n9jS/ o21K5rqXYC/zobh/GahGOMiIdcZrHJ7ykgJkAymXkj+g8NcA/woH87naFXHoSCNyMYBK 0FU9Y7PtmMQ44HX8eAeS5LHQmeqHbMowhVdUJQ6DkdOgFVQVFKh+doRHAXepbe21GddA ZerYYzjuLV9QSvj3HoZTFSdoHe2O5SILNUUUUGWtCGqzYlq+KjQ+LGJ+9L54S/3cbOho 6oZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtoG7zNP; 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 r26si20396813jai.54.2021.06.15.12.22.52; Tue, 15 Jun 2021 12:23:05 -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=mtoG7zNP; 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 S230162AbhFOTX5 (ORCPT + 99 others); Tue, 15 Jun 2021 15:23:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:57136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbhFOTX4 (ORCPT ); Tue, 15 Jun 2021 15:23:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D64EF6109D; Tue, 15 Jun 2021 19:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623784911; bh=MiyNMOqe8D+Qv1ZCBNXEEXX1PzZVvhgk3ba2lE4oIg8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mtoG7zNPtpZsvQbvGP8yhZylUX75lhUTO0D3sGutRFQw4YsC/rBkyY/aHqAa3/x7Z FUurSl0cAWCim2VhAR/W2YM/ZVElxcCC+RoJMkLqlo/GGM6ZlLYp8X9q15baYqri3U L5CQGt0K11TGkZbZ5SoMB6QxIOE4JFnnUbIULj71aWTCQ+Pkgp4CKF4lIy9Qy3qk5j F0Y83bsO/aP731wd93GFUKpUYngFSP8I+RcM6jiYeT93Qa+yMWv5R7HY9BEYjPKDxk Vwoth1qDiFUPTHKq0BBr9yUiKBh2VWI+mRLPR1zl4Jv/ibpCeJOcOk3pCG+yYPK4GU rGBWtfIiEGdag== Received: by mail-ej1-f52.google.com with SMTP id k7so24327321ejv.12; Tue, 15 Jun 2021 12:21:51 -0700 (PDT) X-Gm-Message-State: AOAM5318De7cuvVvG31s6wJX1cZB5VLmLlXVvbw4EebV8ILKJCAT/IFh UTXs2rofUHGiguQI9mo70kFv/0aOETaMN/hPCA== X-Received: by 2002:a17:907:2059:: with SMTP id pg25mr1204414ejb.130.1623784910428; Tue, 15 Jun 2021 12:21:50 -0700 (PDT) MIME-Version: 1.0 References: <20210419005539.22729-1-mick@ics.forth.gr> <20210419005539.22729-6-mick@ics.forth.gr> In-Reply-To: From: Rob Herring Date: Tue, 15 Jun 2021 13:21:38 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 5/5] RISC-V: Add crash kernel support To: Geert Uytterhoeven Cc: Nick Kossifidis , linux-riscv , Palmer Dabbelt , Paul Walmsley , Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 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 Tue, Jun 15, 2021 at 12:48 PM Geert Uytterhoeven wrote: > > Hi Nick, > > On Tue, Jun 15, 2021 at 8:29 PM Nick Kossifidis wrote= : > > =CE=A3=CF=84=CE=B9=CF=82 2021-06-15 16:19, Geert Uytterhoeven =CE=AD=CE= =B3=CF=81=CE=B1=CF=88=CE=B5: > > > This does not match > > > https://github.com/devicetree-org/dt-schema/blob/master/schemas/chose= n.yaml#L77: > > > > > > $ref: types.yaml#/definitions/uint64-array > > > maxItems: 2 > > > description: > > > This property (currently used only on arm64) holds the memory > > > range, > > > the address and the size, of the elf core header which mainly > > > describes > > > the panicked kernel\'s memory layout as PT_LOAD segments of elf > > > format. > > > > > > Hence "linux,elfcorehdr" should be a property of the /chosen node, > > > instead of a memory node with a compatible value of "linux,elfcorehdr= ". > > > > > > > That's a binding for a property on the /chosen node, that as the text > > says it's defined for arm64 only and the code that handled it was also > > That doesn't mean it must not be used on other architectures ;-) > Arm64 was just the first one to use it... It is used on arm64 because memory is often passed by UEFI tables and not with /memory node. As riscv is also supporting EFI, I'd think they would do the same. > > on arm64. Instead the reserved-region binding I used is a standard > > binding, if you don't like the name used for the compatible string > > because it overlaps with that property we can change it. I want to use = a > > reserved-region for this because we'll have to reserve it anyway so > > using a property on /chosen and then using that property to reserve the > > region seemed suboptimal. > > > > >> v2: > > >> * Use linux,usable-memory on /memory instead of a new binding > > > > > > This part seems to have been removed in v3 and later? > > > Note that "linux,usable-memory-range" should be a property of the > > > /chosen node, too, cfr. > > > https://github.com/devicetree-org/dt-schema/blob/master/schemas/chose= n.yaml#L85 > > > > > > > No special handling is needed when using linux,usable-memory on /memory= , > > limiting the available memory is handled by generic code at > > drivers/of/fdt.c > > It was my understanding both properties under /chosen are the > recommended methods for new platforms... Let's see what Rob has > to say... > > Anyway, I sent a patch series to switch to generic "linux,elfcorehdr" > handling > https://lore.kernel.org/r/cover.1623780059.git.geert+renesas@glider.be/ > > Thanks! > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds