linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Sourabh Jain <sourabhjain@linux.ibm.com>
To: Aditya Gupta <adityag@linux.ibm.com>
Cc: mahesh@linux.vnet.ibm.com, linuxppc-dev@ozlabs.org,
	hbathini@linux.ibm.com
Subject: Re: [PATCH v3 1/3] powerpc: make fadump resilient with memory add/remove events
Date: Tue, 24 Oct 2023 11:18:03 +0530	[thread overview]
Message-ID: <4b567b79-21df-4190-acdc-6f5e2d63a5b0@linux.ibm.com> (raw)
In-Reply-To: <se7qehosb7xx4ueguq7v3rlrhcqpwblz3thzzr2hkyz2ambp4u@veaocw6z57m6>

Hi Aditya,

On 24/10/23 11:05, Aditya Gupta wrote:
> Hi sourabh, found a typo in comment.
>
> On Mon, Oct 09, 2023 at 09:49:51AM +0530, Sourabh Jain wrote:
>> +/*
>> + * Process an active dump in four steps. First, verify the crash info header
>> + * signature/magic number for integrity and accuracy. Second, if the fadump
>> + * version is greater than 0, prepare the elfcorehdr; for fadump version 0,
>> + * it's already created in the first kernel as part of the fadump reserved
>> + * area. Third, let the platform update CPU notes in elfcorehdr. Finally,
>> + * set elfcorehdr_addr so that the vmcore module can export the elfcore
>> + * header through '/proc/vmcore'.
>> + */
>> +static void process_fadump(void)
>> +{
>>
>> ...
>>
>> +     /*
>> +      * fadump version zero indicates that fadump crash info header
>> +      * is corrupted.
>> +      */
>> +     if (fadump_version < 0) {
>> +             pr_err("Crash info header is not valid.\n");
>> +             goto err_out;
>> +     }
>> +
> Here, comment says 0 indicates header is corrupted. But as per my understanding,
> version 0 means the earlier case (when MAGIC number was FADUMPINF).
> Maybe it should be:
>
> /*
>   * fadump version less than zero indicates that fadump crash info header
>   * is corrupted.
>   */
>
> Or:
>
> /*
>   * Negative fadump version indicates that fadump crash info header
>   * is corrupted.
>   */

My mistake, I'll address that comment in the next release.

I appreciate you taking a look.

By the way, version 4 is now available, and it includes a similar comment.

- Sourabh




  reply	other threads:[~2023-10-24  5:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-09  4:19 [PATCH v3 0/3] powerpc: make fadump resilient with memory add/remove events Sourabh Jain
2023-10-09  4:19 ` [PATCH v3 1/3] " Sourabh Jain
2023-10-09  6:24   ` kernel test robot
2023-10-09 13:42     ` Sourabh Jain
2023-10-10 21:44   ` kernel test robot
2023-10-24  5:35   ` Aditya Gupta
2023-10-24  5:48     ` Sourabh Jain [this message]
2023-10-09  4:19 ` [PATCH v3 2/3] powerpc/fadump: add hotplug_ready sysfs interface Sourabh Jain
2023-10-09  4:19 ` [PATCH v3 3/3] Documentation/powerpc: update fadump implementation details Sourabh Jain

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=4b567b79-21df-4190-acdc-6f5e2d63a5b0@linux.ibm.com \
    --to=sourabhjain@linux.ibm.com \
    --cc=adityag@linux.ibm.com \
    --cc=hbathini@linux.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mahesh@linux.vnet.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).