Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652808

Re: [PATCH v2] powerpc/fadump: return error when fadump registration fails

From Mahesh Jagannath Salgaonkar <mahesh@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] powerpc/fadump: return error when fadump registration fails
Date 2017-05-30 06:50 +0200
Message-ID <tMHgt-2mn-5@gated-at.bofh.it> (permalink)
References <tLM8x-5Sc-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/27/2017 09:16 PM, Michal Suchanek wrote:
>  - log an error message when registration fails and no error code listed
>  in the switch is returned
>  - translate the hv error code to posix error code and return it from
>  fw_register
>  - return the posix error code from fw_register to the process writing
>  to sysfs
>  - return EEXIST on re-registration
>  - return success on deregistration when fadump is not registered
>  - return ENODEV when no memory is reserved for fadump

Why do we need this ? Userspace can always read back the fadump
registration status from /sys/kernel/fadump_registered (after echo 1 to
it) to find out whether fadump registration succeeded or not.

 /sys/kernel/fadump_registered

    This is used to display the fadump registration status as well
    as to control (start/stop) the fadump registration.
    0 = fadump is not registered.
    1 = fadump is registered and ready to handle system crash.

-Mahesh.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] powerpc/fadump: return error when fadump registration fails Michal Suchanek <msuchanek@suse.de> - 2017-05-27 17:50 +0200
  Re: [PATCH v2] powerpc/fadump: return error when fadump registration  fails Mahesh Jagannath Salgaonkar <mahesh@linux.vnet.ibm.com> - 2017-05-30 06:50 +0200
    Re: [PATCH v2] powerpc/fadump: return error when fadump registration fails Michael Ellerman <mpe@ellerman.id.au> - 2017-05-30 12:50 +0200
  Re: [PATCH v2] powerpc/fadump: return error when fadump registration  fails Hari Bathini <hbathini@linux.vnet.ibm.com> - 2017-06-01 12:10 +0200
  Re: [v2] powerpc/fadump: return error when fadump registration fails Michael Ellerman <patch-notifications@ellerman.id.au> - 2017-06-05 12:30 +0200

csiph-web