Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1112738imj; Thu, 7 Feb 2019 18:02:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYUXBaheA0Kjo4u3SFsOjJz3zI2OFgJjyC2o3Hsb64f7xnlRxpm7RO9heXTxkjARrRCKnSA X-Received: by 2002:a63:dc53:: with SMTP id f19mr9992112pgj.406.1549591325282; Thu, 07 Feb 2019 18:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549591325; cv=none; d=google.com; s=arc-20160816; b=tZaWtZfZ8yFtdUJvZENW4NbfZv+LNLvYS8tAJ12GfNA92jKbSya4wM9acQtwg9c2ih KU7ROh2Tlo36Pg7rbvIzv/VOX6bP6OdN1Zl1tg6NQ4HUKhEW51twS1jreFAkl9Dc2sj4 vTGrdHOOH+xmqFtQDuti/LRmQHTAvl2swV1nWLcC3fbCfNbFWvL4RRpTf8MzuSWLWB8y h+c5gzT3ERjqIq3SBcXkvC1r8SV51iwhf/zIRKYbTb37R+7rHfO9Ye0w/AwvzKqnWXKb YKrGFPwSEJ7VoyN+4TV6sCsFOwU9j4lqrgO6IYW7EilVIn82+NvdR+cPJgSNgWG76dvA yxhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rCXYuL2yAB+lK2US45/0mGxsgwjtq+ulyYDwTWv61C0=; b=bXQeZuWb5E2pn0eBuZMjpXVek2inr5fW/BWHrDzeTCe8dlztgDIqDMc9xVpk+DtMNa wZgdfOxyGWAC6KWQQSf5LbviWGhmV2JBSvMoaKrJ0YzaQD9DwU2bbMEkPP+4/95pfTF4 XRhLWlRvh8PsUC03rxhx5Q1zA0VvllCG1AWpNZBtsuA9nLtkJVYwS/nA9oKrMmbUkYgE 4hRtulzcAtnwhX59rLYEuBq66lBLw+2Q4X7N7QwGpITdnipRIwqiNgH4ySY4tQ7xGGxy UblRVRHyouJpZJd/XKFdJWjtUtYNlW6/Adss68gHyf1rpfxaOjAeJZ+hL6dhyv6/trXe m4XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t3SKHIz8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i90si812748pli.135.2019.02.07.18.01.48; Thu, 07 Feb 2019 18:02:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t3SKHIz8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726905AbfBHCBm (ORCPT + 99 others); Thu, 7 Feb 2019 21:01:42 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42185 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbfBHCBm (ORCPT ); Thu, 7 Feb 2019 21:01:42 -0500 Received: by mail-pf1-f195.google.com with SMTP id m6so914639pfa.9; Thu, 07 Feb 2019 18:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rCXYuL2yAB+lK2US45/0mGxsgwjtq+ulyYDwTWv61C0=; b=t3SKHIz8BoD7qGbeZngs12TnU5mv/oLSbdc3Aa4Sy5LggK3MnB3vo20Wgn/o/cg98k 60NDhIa35S38Duzo9bU4OjSFSG7A8G3CtfRtFlF3MtpfteAtnbgENz0TZlv2GGP+pCJT LnA6Ne57lzA8S7HJpc83udB2BNF/emDruyTW31yikjUkh+/ITkE7c8cpFNmFoJiJBuFl Pwe8PtHUg6XbGhqTolyhZO6vEn7EZhkMYRI9xUQc3CFbbZPfwFZECmeiPDGsjtYd8+xa wgYmeyFW/5NonKtjaLD0dyUp/BslcoGtsrUAsxWRNOkhl9w/0T9mbuwDy+q2Tqh37YhW Xtbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rCXYuL2yAB+lK2US45/0mGxsgwjtq+ulyYDwTWv61C0=; b=RxErkFDtkCPX7QGMfsW8ZQ/SEIKS2VtSF68QNKBZ+jM9IMQXrPymcnhSPOQeDBp4S4 js7zhEp3uVgUhoH3fivDalsxlC3p97iPEXplVp6DS0C8pv6eNmOxBO7Hjy1tvMK8p+YY wQCW4M2vmwr1oKaePIkViZy5XfjDWb7x5EFcW95R8PaLi8VF76cfSlFrY9dtVcmXQWD3 bCvREpiFhHyOv3ozflNv7SBTWsH1k8FZ3VVMMeaeIsEhBK/MVDBHuvMh1RqcxEphKQRZ l98hzXsoviGuXx36SgD6yEkI3jN5+s6wRxMgEmU9Rj43nYucBVP+dXhpSsSpP/d1B/Ci wKeQ== X-Gm-Message-State: AHQUAuZFybJcq5PdZ0jakFX8SMccI8piO03hrFH2f21dqlERvLxoOy8u oSYCB1MWY1D9oTHvjkefUpQ= X-Received: by 2002:a63:ce08:: with SMTP id y8mr13032128pgf.388.1549591301268; Thu, 07 Feb 2019 18:01:41 -0800 (PST) Received: from localhost ([110.70.55.31]) by smtp.gmail.com with ESMTPSA id q5sm588767pfi.165.2019.02.07.18.01.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 18:01:40 -0800 (PST) Date: Fri, 8 Feb 2019 11:01:37 +0900 From: Sergey Senozhatsky To: Michael Ellerman Cc: linuxppc-dev@ozlabs.org, 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, Steven Rostedt Subject: Re: [PATCH v3 1/7] dump_stack: Support adding to the dump stack arch description Message-ID: <20190208020137.GA22600@jagdpanzerIV> References: <20190207124635.3885-1-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190207124635.3885-1-mpe@ellerman.id.au> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc-ing Steven https://lore.kernel.org/lkml/20190207124635.3885-1-mpe@ellerman.id.au/T/#u On (02/07/19 23:46), Michael Ellerman wrote: > Arch code can set a "dump stack arch description string" which is > displayed with oops output to describe the hardware platform. > > It is useful to initialise this as early as possible, so that an early > oops will have the hardware description. > > However in practice we discover the hardware platform in stages, so it > would be useful to be able to incrementally fill in the hardware > description as we discover it. > > This patch adds that ability, by creating dump_stack_add_arch_desc(). > > If there is no existing string it behaves exactly like > dump_stack_set_arch_desc(). However if there is an existing string it > appends to it, with a leading space. > > This makes it easy to call it multiple times from different parts of the > code and get a reasonable looking result. > > Signed-off-by: Michael Ellerman You probably can have a __init buffer somewhere in ppc code, append data to it, step by step, and call dump_stack_set_arch_desc() all the time. But no real objections; dump_stack_add_arch_desc() can do. FWIW, Reviewed-by: Sergey Senozhatsky -ss