Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp518518img; Thu, 21 Mar 2019 03:17:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9ewqITQ5A17pJocuRr+g/7JhlFVr7vguuG3wWC/57301k1GkxIomgdsAB618KhVJ8A9F9 X-Received: by 2002:aa7:9389:: with SMTP id t9mr2539415pfe.60.1553163419946; Thu, 21 Mar 2019 03:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553163419; cv=none; d=google.com; s=arc-20160816; b=qSAmKaTWWxMWA63CisD2DtVCO3RAKNHxHAfB0G3V1CRvZbMF7GUP2bm0GUoqdcqQWK 9lBevZrKUKqESZS3Lk7AfNMqqRvEtQeiU7L2lved59NHxLM8lNvnFIwbaQxOiHsBEBYe hRK7pICzAH5auUFZHNuQbEEO8pcsGOhaZ//tR2kt1LgGXpiJpwSRxBJEvBsQl4Ve0ba4 xUrK/EyZW1vPAS4qOaUTHOAkLM20T91kuxXRFLnntbv+pT/xqB3+z0d4OPVDfmqoHQG8 xyncz74MjhR/dEsDuH81KzRz+vw0I+PabfQE8WJq3Lz5nL+GCr7/A+i0uS4q+UJx0EXj lW6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LnIQeHysyAh4OxVAmTIp1275+Y0XXOOAyU6zmVXxNnk=; b=C2DboTVMCrJH0kX9g25hGSA+gspXebUpFWNwhrmI2p8YY6f5/OlF9Joe3DysUFKjjW If8dEqSLx6t4sLcl6jrlj02CQMTBfYBUwVPvcswr+N7WZvVrpXqY7XZub3+ODD0CH1Te sdMee881NBkMBOfmmfeEcI+8KHABfRjSWWo1R69VlufIO3s9cd8iKX6PheDBZr03ww7X vgmb68ZZaiEF103wdXFOBFObaMxFT5Ufsi9HZLcYJjpEGN+5ZKeec/dGyywKBItWJcuj 86inzV8PBtP7rjoOPbp8aQTQ9ZRor7oziN94SerRSgUETH60YX1oBgq+95Moh5bknYVC aOng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iZ9dzSsR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si3734568pgp.496.2019.03.21.03.16.41; Thu, 21 Mar 2019 03:16:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iZ9dzSsR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728033AbfCUKOa (ORCPT + 99 others); Thu, 21 Mar 2019 06:14:30 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:55463 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727903AbfCUKO2 (ORCPT ); Thu, 21 Mar 2019 06:14:28 -0400 Received: by mail-it1-f194.google.com with SMTP id z126so3387027itd.5 for ; Thu, 21 Mar 2019 03:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LnIQeHysyAh4OxVAmTIp1275+Y0XXOOAyU6zmVXxNnk=; b=iZ9dzSsR+BWgDp1GDW46mSihLI8eskSDOkDD5sFB5JfGes9Oz4RHxF0f2dbPSfOBrw UFVSDN4h1cW6eXunP0lGDCxPwbHwOnrfuUKaCAPNHNof2sqX1v17d+yFB8sUp8Ok2Bh3 g4PEX3lyJR4pykAm11GzKuXH19Tub4AiBH5L+tnKGDlwMyiH/7emHt8TdENbNeaiHSHU K4mZMr4v3ZvMBnW9+vSy6Z5E+0r1SJww5TGylTEk+nfjaD8eImOuWepCxesCzupyz5eB gyx14EYSh2P+b0hS0YvyvUAWFSdopqPIFe+nOjTFdvyMCcJevXxwhAJoKdu01VDXC1On 9mAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LnIQeHysyAh4OxVAmTIp1275+Y0XXOOAyU6zmVXxNnk=; b=oEqAON4jts9jXQqcAiLCeUl2Kf2HfDAeF2ETxLpS3+hP6HXPoihK27cdI63BoSo5A8 omUIEbbZI4ij5LKTBtRwH3yeHMCKqRIAzGKwRVyasSggeHr1EkjZo+yz1Y/Acv6ia+qv RxYIB8jZh+UkQNW3W/1NjILxXRActlUJrXxFJnACNrWU2SbaRwn+ZjMcG1JHfgF76zf0 LtgSixLGwI94SXGIcpKzjKvaR7fyqP8g5lhTO+ATjfTEwuCXtehfuyTrHEbEVrZDCVzC HsXYwI0GNu9zDMbdW8CxPlgpwqTA09Z2gouARGsRAMM0+NvMyMAxga0eXZrTlcyPGD4G 4U8w== X-Gm-Message-State: APjAAAVeYF8NuPg0fcWCfC9ak8RO/Lq8bv06vEAxHBWPyNB5WaHvivqT o+9CsSmJsZNXn0o79z5QNlOHBAXLJkHrslGILs4Lsg== X-Received: by 2002:a05:660c:7d1:: with SMTP id e17mr2224586itl.158.1553163266977; Thu, 21 Mar 2019 03:14:26 -0700 (PDT) MIME-Version: 1.0 References: <20190320130502.16667-1-rrichter@marvell.com> <20190320131607.vgst3r7ynha55ikw@rric.localdomain> <20190320152240.2eun63wqkbqmuqkg@rric.localdomain> <20190321093920.beng2d3tbfvydbud@rric.localdomain> <1553163110.5084.11.camel@suse.de> In-Reply-To: <1553163110.5084.11.camel@suse.de> From: Ard Biesheuvel Date: Thu, 21 Mar 2019 11:14:16 +0100 Message-ID: Subject: Re: [PATCH v2] efi: Unify dmi setup code over architectures arm/arm64, io64 and x86 To: Jean Delvare Cc: Robert Richter , Tony Luck , Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "x86@kernel.org" , Marcin Benka , "linux-ia64@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-efi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Mar 2019 at 11:11, Jean Delvare wrote: > > On Thu, 2019-03-21 at 10:51 +0100, Ard Biesheuvel wrote: > > On Thu, 21 Mar 2019 at 10:39, Robert Richter wrote: > > > > > > On 20.03.19 23:02:09, Ard Biesheuvel wrote: > > > > On Wed, 20 Mar 2019 at 16:23, Robert Richter wrote: > > > > > > > > > > On 20.03.19 14:16:07, Robert Richter wrote: > > > > > > On 20.03.19 13:05:37, Robert Richter wrote: > > > > > > > @@ -167,6 +167,7 @@ static int __init arm_dmi_init(void) > > > > > > > * itself, depends on dmi_scan_machine() having been called already. > > > > > > > */ > > > > > > > dmi_scan_machine(); > > > > > > > + dmi_memdev_walk(); > > > > > > > if (dmi_available) > > > > > > > dmi_set_dump_stack_arch_desc(); > > > > > > > return 0; > > > > > > > > > > > > After > > > > > > > > > > > > [PATCH] efi/arm: Show SMBIOS bank/device location in cper and > > > > > > ghes error logs > > > > > > > > > > > > wents in for arm/arm64, we can unify the code. See patch below. > > > > > > > > > > V2 with the fix in arm_dmi_init() below. > > > > > > > > > > -Robert > > > > > > > > > > > > > > > -- >8 -- > > > > > From: Robert Richter > > > > > Subject: [PATCH v2] efi: Unify dmi setup code over architectures arm/arm64, > > > > > io64 and x86 > > > > > > > > > > All architectures (arm/arm64, io64 and x86) do the same here, so unify > > > > > the code. > > > > > > > > > > Note: We do not need to call dump_stack_set_arch_desc() in case of > > > > > !dmi_available. Both strings, dmi_ids_string and dump_stack_arch_ > > > > > desc_str are initialized zero and thus nothing would change. > > > > > > > > > > > > > I don't understand the last sentence - we do not need to call > > > > dump_stack_set_arch_desc() when !dmi_available, but we do so anyway, > > > > right? Doesn't that wipe the arch description we set based on the DT > > > > machine name? > > > > > > No, in dmi_setup() we exit early when !dmi_available. So for arm/arm64 > > > nothing changed. But for x86 and ia64 we no longer call dump_stack_ > > > set_arch_desc() in this case. This is ok since both strings, > > > dmi_ids_string and dump_stack_arch_desc_str, are initialized zero and > > > copying one to the other does not change anything. > > > > > > > Ah, of course. Apologies for not reading more carefully. > > > > I'll take this patch via the EFI tree. > > I like the idea. If this is not going through my tree then: > > Reviewed-by: Jean Delvare > Thanks Jean.