linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Lynch <nathanl@linux.ibm.com>
To: Michael Ellerman <mpe@ellerman.id.au>, linuxppc-dev@lists.ozlabs.org
Cc: tyreld@linux.ibm.com
Subject: Re: [PATCH] powerpc/pseries: delete scanlog
Date: Wed, 17 Nov 2021 08:47:36 -0600	[thread overview]
Message-ID: <87mtm2j0tz.fsf@linux.ibm.com> (raw)
In-Reply-To: <877dd7m5jd.fsf@mpe.ellerman.id.au>

Michael Ellerman <mpe@ellerman.id.au> writes:

> Nathan Lynch <nathanl@linux.ibm.com> writes:
>> Nathan Lynch <nathanl@linux.ibm.com> writes:
>>> Remove the pseries scanlog driver.
>>>
>>> This code supports functions from Power4-era servers that are not present
>>> on targets currently supported by arch/powerpc. System manuals from this
>>> time have this description:
>>>
>>>   Scan Dump data is a set of chip data that the service processor gathers
>>>   after a system malfunction. It consists of chip scan rings, chip trace
>>>   arrays, and Scan COM (SCOM) registers. This data is stored in the
>>>   scan-log partition of the system’s Nonvolatile Random Access
>>>   Memory (NVRAM).
>>>
>>> PowerVM partition firmware development doesn't recognize the associated
>>> function call or property, and they don't see any references to them in
>>> their codebase. It seems to have been specific to non-virtualized
>>> pseries.
>>
>> Just bumping this to see if there are any objections.
>
> Not an objection, I like nothing better than dropping old unused cruft,
> but are we sure it's safe to remove the proc file?
>
> I see that rtas_errd still looks for it, have you checked that it will
> handle the absence of the file gracefully and continue doing whatever
> else it does?

Uhh. I will stop forgetting to check ppc64_diag when making such
changes. Thanks for pointing this out.

> On further inspection it looks like the code that looks for it in
> rtas_errd is #if 0'ed out (??), so maybe it's dead.

Yes it seems so. From rtas_errd's main():

#if 0
	/* 
	 * Check to see if a new scanlog dump is available;  if so, copy it to
	 * the filesystem and associate the dump with the first error processed.
	 */
	check_scanlog_dump();
#endif

And that's the only entry point into the code that collects the scanlog
data. And that dead code appears to deal with the absence of
/proc/ppc64/scan-log-dump gracefully. It has been like that since
initial git import in 2013.

> Anyway if you can test that rtas_errd still works that'd be good.

I've verified that it starts normally and logs EPOW events associated
with partition migration.

> Presumably there's no other code that cares about the proc file.

AFAIK this is right. powerpc-utils and librtas do not use it. librtas
has a wrapper for the calling the associated RTAS function directly, but
that's fine.

I tried using GitHub's search to find instances of "scan-log-dump" that
weren't from Linux or ppc64_diag (need to be logged in I think):

https://github.com/search?q=%22scan-log-dump%22+-path%3Aarch%2Fpowerpc+-filename%3Ascanlog.c+-extension%3Apatch&type=Code&ref=advsearch&l=&l=

This hasn't yielded any unexpected users. There may be better search
terms but that's what a few minutes of fiddling with it got me.

  reply	other threads:[~2021-11-17 14:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 17:32 [PATCH] powerpc/pseries: delete scanlog Nathan Lynch
2021-11-17  2:48 ` Nathan Lynch
2021-11-17 10:37   ` Michael Ellerman
2021-11-17 14:47     ` Nathan Lynch [this message]
2021-11-18  0:26       ` Michael Ellerman
2021-11-25  9:36 ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtm2j0tz.fsf@linux.ibm.com \
    --to=nathanl@linux.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=tyreld@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).