Public bug reported: ---Problem Description--- Pstore write is broken for PowerPC. On panic, kernel doesn't write mesg to /fs/pstore/dmesg* (Entry doesn't gets created at all) Contact Information = Ankit Kumar/kumar.ankit...@in.ibm.com ---uname output--- Linux seedlp2 4.10.0-15-generic #17-Ubuntu SMP Fri Mar 24 17:50:37 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux Machine Type = lpar Write to nvram failed ---Debugger--- A debugger is not configured ---Steps to Reproduce--- 1. Checked kdump kernel is loaded. 2. Triggered system crash # echo c > /proc/sysrq-trigger 3. /sys/fs/pstore/dmesg* doesn't gets created
This issue can be reproduced after commit c950fd6f201 c950fd6f201 - pstore: Split pstore fragile flags It introduces PSTORE_FLAGS_DMESG, which is not set for PowerPC. Please include below commit 041939c1ec5 as this fixes this issue. commit 041939c1ec54208b42f5cd819209173d52a29d34 Author: Ankit Kumar <an...@linux.vnet.ibm.com> Date: Thu Apr 27 17:03:13 2017 +0530 pstore: Fix flags to enable dumps on powerpc After commit c950fd6f201a kernel registers pstore write based on flag set. Pstore write for powerpc is broken as flags(PSTORE_FLAGS_DMESG) is not set for powerpc architecture. On panic, kernel doesn't write message to /fs/pstore/dmesg*(Entry doesn't gets created at all). This patch enables pstore write for powerpc architecture by setting PSTORE_FLAGS_DMESG flag. Fixes: c950fd6f201a ("pstore: Split pstore fragile flags") Cc: sta...@vger.kernel.org # v4.9+ Signed-off-by: Ankit Kumar <an...@linux.vnet.ibm.com> Signed-off-by: Kees Cook <keesc...@chromium.org> ** Affects: linux (Ubuntu) Importance: Undecided Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) Status: New ** Tags: architecture-ppc64le bugnameltc-153411 severity-high targetmilestone-inin1704 ** Tags added: architecture-ppc64le bugnameltc-153411 severity-high targetmilestone-inin1704 ** Changed in: ubuntu Assignee: (unassigned) => Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) ** Package changed: ubuntu => linux (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1691045 Title: PowerPC: Pstore dump for powerpc is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1691045/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs