Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633047

Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt()

From Sudeep Holla <sudeep.holla@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt()
Date 2017-04-28 19:40 +0200
Message-ID <tBi25-2bq-3@gated-at.bofh.it> (permalink)
References <tAQSe-Bq-13@gated-at.bofh.it> <tBfxg-jE-3@gated-at.bofh.it> <tBgMG-1o8-31@gated-at.bofh.it> <tBhpn-1F2-13@gated-at.bofh.it>
Organization ARM

Show all headers | View raw



On 28/04/17 17:52, Will Deacon wrote:
> On Fri, Apr 28, 2017 at 06:16:46PM +0200, Geert Uytterhoeven wrote:
>> On Fri, Apr 28, 2017 at 4:57 PM, Will Deacon <will.deacon@arm.com> wrote:
>>> On Thu, Apr 27, 2017 at 02:33:05PM +0200, Geert Uytterhoeven wrote:
>>>> On arm32, the machine model specified in the device tree is printed
>>>> during boot-up, courtesy of of_flat_dt_match_machine().
>>>>
>>>> On arm64, of_flat_dt_match_machine() is not called, and the machine
>>>> model information is not available from the kernel log.
>>>>
>>>> Print the machine model to make it easier to derive the machine model
>>>> from an arbitrary kernel boot log.
>>>>
>>>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>>>> ---
>>>> I have scripts to save kernel boot logs, and compare logs[*] for
>>>> subsequent boots on the same machine.  Having a way to extract the
>>>> machine model from an arbitrary kernel boot log makes this easier.
>>
>>> I think your use-case is slightly questionable (e.g. for ACPI, we print
>>> something different, and this isn't generally considered to be ABI), but
>>> the patch is harmless and if you find it useful then:
>>
>> Not having access to an ARM ACPI system, what does it print for example?
> 
> It's supposed to print out some stuff from DMI, but my Juno just says:
> 
>   DMI not present or invalid.
> 

With latest firmware, I get something like:

DMI: ARM LTD ARM Juno Development Platform/ARM Juno Development
Platform, BIOS EDK II ...

-- 
Regards,
Sudeep

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] arm64: Print DT machine model in setup_machine_fdt() Geert Uytterhoeven <geert+renesas@glider.be> - 2017-04-27 14:40 +0200
  Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt() Will Deacon <will.deacon@arm.com> - 2017-04-28 17:00 +0200
    Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt() Geert Uytterhoeven <geert@linux-m68k.org> - 2017-04-28 18:20 +0200
      Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt() Will Deacon <will.deacon@arm.com> - 2017-04-28 19:00 +0200
        Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt() Sudeep Holla <sudeep.holla@arm.com> - 2017-04-28 19:40 +0200
  Re: [PATCH] arm64: Print DT machine model in setup_machine_fdt() Catalin Marinas <catalin.marinas@arm.com> - 2017-04-28 18:20 +0200

csiph-web