Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06CDCC433FE for ; Thu, 29 Sep 2022 14:24:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F62684AD4; Thu, 29 Sep 2022 16:24:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=kohlschutter.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kohlschutter-com.20210112.gappssmtp.com header.i=@kohlschutter-com.20210112.gappssmtp.com header.b="b0B2gFnN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 33E9D84BD6; Thu, 29 Sep 2022 16:24:22 +0200 (CEST) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 591BA80447 for ; Thu, 29 Sep 2022 16:24:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=kohlschutter.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=christian@kohlschuetter.com Received: by mail-ej1-x62b.google.com with SMTP id nb11so3158510ejc.5 for ; Thu, 29 Sep 2022 07:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kohlschutter-com.20210112.gappssmtp.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date; bh=o4s9VfR116Up6Rz3wsBr3SXRIEaegNZf+3hNSAy3gxc=; b=b0B2gFnNjRfOAiygo/ttsYMP6thv6zR+vMK020kfxm1p8r3e0M31/hNITHUUQ5YEOQ qhiw4oTmLbwCM7QvXwRlQHw2ZQ57uXFBFYYMDCBAamLFpCCGT583Aoho/ZuG15ionzQl /zI0X251wnXqkphODI42N9nDCYWaSLPTTpQuym0ubxN0m2YZ6gjA86cAqSnpNFK3CBqq CkHOsmFR/huEYg7kf8LQTgXDKxEptkD+gAao78PNP96AcqXXmnNKCeMKF49rLzVHy2SO ZxOYlY5R4o8JfePO6rxQG5cbS1+G6j9j/nRSdxhE18mh3ik2ltifhWoPdHnlesq5o0hQ koxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=o4s9VfR116Up6Rz3wsBr3SXRIEaegNZf+3hNSAy3gxc=; b=cbIw3ezBuJvACqokCDzbdkR4MZQmSXsEmI97Fk3qoyHuCUhHTecnJ8qhgOUAOixoMD pBX0H3UIkzNUCGj87/N2i/ybsFaakS1LuSsuDyjYn8GIOPOSKc+GPE/fVDqwy+HOGAdi YlQsyL3JMfrpYB/kFy7aZIOywLKZ05DG8aQUACXpQV1GrNELfWD2tGmHI29yPPsdlwpd NpeAUcNr5bXXmFPWztaupSD2+G7MyCgqaPH3L3M11hOpC5gUDEJCT75Sqr24x7Y2qy+P xssrRFhMnTDxIzeDuX9N+KESs5eOJMqpMtWpMsnyIur4W+879x3ggtFUOPnog5Gy65jY p9MQ== X-Gm-Message-State: ACrzQf3yf8qrejLAj//v9bBy9ZquAotk8zADuyynLPl483zEeHHH2xpG 4W28Xi5vPmUZwmox99BKs4agaPs2mFdbSgnE6AE= X-Google-Smtp-Source: AMsMyM495bcxuyJ4/eBza/4EiOTUPug93RpTzgSZgMQOz0a0JvQw064Mf7OvAFHRlT8fic1Vb06I1w== X-Received: by 2002:a17:907:8a01:b0:783:a216:61f2 with SMTP id sc1-20020a1709078a0100b00783a21661f2mr2896522ejc.246.1664461458898; Thu, 29 Sep 2022 07:24:18 -0700 (PDT) Received: from smtpclient.apple (ip5b434222.dynamic.kabel-deutschland.de. [91.67.66.34]) by smtp.gmail.com with ESMTPSA id k2-20020a1709063fc200b0077b2b0563f4sm4069246ejj.173.2022.09.29.07.24.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Sep 2022 07:24:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: [PATCH] common: board_f: Fix crash in print_cpuinfo From: =?utf-8?Q?Christian_Kohlsch=C3=BCtter?= In-Reply-To: Date: Thu, 29 Sep 2022 16:24:10 +0200 Cc: U-Boot Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220929002008.9177-1-christian@kohlschutter.com> To: Simon Glass X-Mailer: Apple Mail (2.3696.120.41.1.1) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean > On 29. Sep 2022, at 04:36, Simon Glass wrote: >=20 > Hi Christian, >=20 > On Wed, 28 Sept 2022 at 18:20, Christian Kohlsch=C3=BCtter > wrote: >>=20 >> With CONFIG_DISPLAY_CPUINFO=3Dy and CONFIG_CPU=3Dy, the initcall = sequence >> may fail (and therefore hang the boot process) with an -ENODEV = (err=3D-19) >> error code. >>=20 >> This is caused by either cpu_get_current_dev/cpu_get_desc failing to >> return CPU information. >>=20 >> If no CPU information can be obtained, fall-back to the non-Driver = Model >> implementation of print_cpuinfo. >>=20 >> Signed-off-by: Christian Kohlsch=C3=BCtter = >> --- >> common/board_f.c | 14 +++++++++----- >> include/init.h | 3 +-- >> 2 files changed, 10 insertions(+), 7 deletions(-) >=20 > No, we don't want to do this. If you have CPU enabled then the device > must return the info. The non-DM code will go away one day. It is not > intended as a fallback. >=20 > Regards, > Simon Thanks for the clarification, Simon. That's what I thought (it's not = really documented with CONFIG_CPU but I get the idea). It looks like the new CONFIG_CPU feature isn't really supported for ARM = boards, and the existing print_cpuinfo shows additional information that = may not be captured with the new setup, such as "reset cause", etc. What = are the plans/timeline for implementing the new feature? I'm specifically asking because the new feature may help improve the = coverage of smbios information available downstream.