From patchwork Tue May 15 04:58:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Bathini X-Patchwork-Id: 913420 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40lQWS3FDnz9s0q for ; Tue, 15 May 2018 15:05:56 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40lQWS1n6pzF2xD for ; Tue, 15 May 2018 15:05:56 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40lQMV6KPPzF2XK for ; Tue, 15 May 2018 14:59:02 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) by bilbo.ozlabs.org (Postfix) with ESMTP id 40lQMV1stsz8sxv for ; Tue, 15 May 2018 14:59:02 +1000 (AEST) Received: by ozlabs.org (Postfix) id 40lQMT73Bsz9s28; Tue, 15 May 2018 14:59:01 +1000 (AEST) Delivered-To: linuxppc-dev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=hbathini@linux.ibm.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40lQMT29fvz9s1w for ; Tue, 15 May 2018 14:59:01 +1000 (AEST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4F4s6ZC076426 for ; Tue, 15 May 2018 00:58:58 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hyreh0xbg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 May 2018 00:58:58 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 15 May 2018 05:58:56 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 15 May 2018 05:58:54 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4F4wrKa15794490; Tue, 15 May 2018 04:58:53 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 86C124C040; Tue, 15 May 2018 05:50:45 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 08DEF4C044; Tue, 15 May 2018 05:50:44 +0100 (BST) Received: from hbathini.in.ibm.com (unknown [9.199.45.176]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 15 May 2018 05:50:43 +0100 (BST) Subject: [RFC PATCH 0/5] Add FADump support on PowerNV platform From: Hari Bathini To: Ananth N Mavinakayanahalli , Michael Ellerman , Mahesh J Salgaonkar , Vasant Hegde , linuxppc-dev , Stewart Smith Date: Tue, 15 May 2018 10:28:50 +0530 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18051504-0040-0000-0000-000004597ACB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051504-0041-0000-0000-000020FDA17B Message-Id: <152636029761.17123.10365462779196202939.stgit@hbathini.in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-15_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805150050 X-Mailman-Approved-At: Tue, 15 May 2018 15:04:23 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Firmware-Assisted Dump (FADump) is currently supported only on pseries platform. This patch series adds support for powernv platform too. The first two patches refactor the FADump code to make use of common code across multiple platforms. The third patch adds basic FADump support to powernv platform. The next patch processes state data provided by f/w and adds core notes to core file. The last patch adds support to export opalcore. This is to make debugging of failures in opal code easier. The patch series is tested with a few workarounds in firmware and kernel as the full and final firmware support is currently being worked on. The below skiboot patch series adds the relevant OPAL changes: http://patchwork.ozlabs.org/project/skiboot/list/?series=42576 --- Hari Bathini (5): powerpc/fadump: move internal fadump code to a new file pseries/fadump: move out platform specific support from generic code powerpc/fadump: enable fadump support on powernv platform powerpc/fadump: process architected register state data provided by firmware powerpc/powernv: export /proc/opaldump for analysing opal crashes arch/powerpc/Kconfig | 2 arch/powerpc/include/asm/fadump.h | 185 ---- arch/powerpc/include/asm/opal-api.h | 4 arch/powerpc/include/asm/opal.h | 1 arch/powerpc/kernel/Makefile | 2 arch/powerpc/kernel/fadump.c | 1111 +++++++++-------------- arch/powerpc/kernel/fadump_internal.c | 194 ++++ arch/powerpc/kernel/fadump_internal.h | 197 ++++ arch/powerpc/platforms/powernv/Makefile | 1 arch/powerpc/platforms/powernv/opal-wrappers.S | 1 arch/powerpc/platforms/powernv/opalcore.c | 282 ++++++ arch/powerpc/platforms/powernv/opalcore.h | 28 + arch/powerpc/platforms/powernv/powernv_fadump.c | 503 ++++++++++ arch/powerpc/platforms/powernv/powernv_fadump.h | 72 + arch/powerpc/platforms/pseries/Makefile | 1 arch/powerpc/platforms/pseries/pseries_fadump.c | 532 +++++++++++ arch/powerpc/platforms/pseries/pseries_fadump.h | 96 ++ 17 files changed, 2335 insertions(+), 877 deletions(-) create mode 100644 arch/powerpc/kernel/fadump_internal.c create mode 100644 arch/powerpc/kernel/fadump_internal.h create mode 100644 arch/powerpc/platforms/powernv/opalcore.c create mode 100644 arch/powerpc/platforms/powernv/opalcore.h create mode 100644 arch/powerpc/platforms/powernv/powernv_fadump.c create mode 100644 arch/powerpc/platforms/powernv/powernv_fadump.h create mode 100644 arch/powerpc/platforms/pseries/pseries_fadump.c create mode 100644 arch/powerpc/platforms/pseries/pseries_fadump.h -- Signature