Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp308533imj; Thu, 7 Feb 2019 04:47:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IbspjRWxgCbtERz4CwtxoY1UNJURz2/phLwqadp+x9bVdu/+1TSLP87sv84+xv56KQdpz2u X-Received: by 2002:a17:902:6948:: with SMTP id k8mr16136395plt.2.1549543656605; Thu, 07 Feb 2019 04:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549543656; cv=none; d=google.com; s=arc-20160816; b=MczJ3Piq7CkgWTJsdfGsxc3aXC484+LVZ1F073nxUGCG+sb46uKhqTtAwzR9X0R7+F 2kEPeYAbDuzNmGX+1c85XyOd9RQkDZTh+KKcZmOn7buxJrpSCC93lPdloZeWh9t6/dmG 3oH7gf/dzbL5X5fx7I5ZjuNwChFFru1QaxddRI4W0PaZuQFjnuCSu5Nu10JRhxV5imlb tGJfxzPn1Z36rljVz4Rx8qBf20zxlWj/GqmxcRYGhJoV/rSravTFw3XHvczcdTLo8lMD xK7IZSNQ/c/Li0tqmGlR7erj0yPBHKM0m90L9S2SMDpi3zYHnSTqU0xtxLHd1PkDOxeN mttg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZnCJ8vBt0e6PDz29s/zgmFnYo3I2NPZxC0DZ1SKSIec=; b=YR36rmmBRuMKq0LsKOghD06H9M3vAGofmqpQXYmFPe4/1ENVBM0c+ZRYM/a3IlvLCU CEWaq5QE5aD+7fVgwXwB92rmLT0U/1pyab/Qanp5JT5JrSRCwJgnnkrdEjG2x4PeFUww l3Ian83AEWxZfobwcyieZw+WMPGLrpxnkXSMXExJug2cP8CUV2qhkT0Z+sKENrxFQ6P/ 4t/pM+2tEqZZs9WZN8kWHz8s/hEodvzPB9jqC1CER5EsiHfFMpKczPM9SwtttqsRblX0 yZVphTU4w8fGT62ZrkXhH2Lu6j+njvJ4r53gPqFT/Gl/OTV3lC+5hLUI8/Z+6ufY4PoW PUWg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si3549324pgu.151.2019.02.07.04.47.20; Thu, 07 Feb 2019 04:47:36 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727232AbfBGMrC (ORCPT + 99 others); Thu, 7 Feb 2019 07:47:02 -0500 Received: from ozlabs.org ([203.11.71.1]:50987 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727425AbfBGMq5 (ORCPT ); Thu, 7 Feb 2019 07:46:57 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 43wJ3f5VMrz9sNH; Thu, 7 Feb 2019 23:46:54 +1100 (AEDT) From: Michael Ellerman To: linuxppc-dev@ozlabs.org Cc: akpm@linux-foundation.org, tj@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, dyoung@redhat.com, sergey.senozhatsky@gmail.com, pmladek@suse.com Subject: [PATCH v3 5/7] powerpc: Add ppc_md.name to dump stack arch description Date: Thu, 7 Feb 2019 23:46:33 +1100 Message-Id: <20190207124635.3885-5-mpe@ellerman.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207124635.3885-1-mpe@ellerman.id.au> References: <20190207124635.3885-1-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As soon as we know the name of the machine description we're using, add it to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... machine:pSeries Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index ca00fbb97cf8..00d900b1e584 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -638,6 +639,8 @@ void probe_machine(void) for (;;); } + dump_stack_add_arch_desc("machine:%s", ppc_md.name); + printk(KERN_INFO "Using %s machine description\n", ppc_md.name); } -- 2.20.1