Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1736917ybg; Sat, 19 Oct 2019 01:24:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMvQH+pDL+4aQyUgEk32BBAP6ashQwF2dujr6y6r8KB2Ci7uXyjITAzLvebLrFAEf+ve1u X-Received: by 2002:a17:906:a38e:: with SMTP id k14mr12713055ejz.253.1571473454825; Sat, 19 Oct 2019 01:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473454; cv=none; d=google.com; s=arc-20160816; b=XmuDG4hTJybwq09p8+wrVq0uGeJt19YjrMNwZeo0xA30f5rq2C4klI0jMr+CSK9nAt fBtSQLFKdoo+lfqNMGVW1rI/F5AQyfH3k+sPVbsHtOTyZkI34rtLl/nWq3wYIl9MVoy8 BmQO1Zp4o9TxQGyYEn/sWEQjkhSEbXtZ/diMsIxa6mg+ldACPNPfi7KzAAmCr0QJYlSY UNeoQZ0DOK71dqNXKeYjdQtIKQQ5voaYbcmDyjwUPgXbrdbei8YSMlCs95rS4XjcCxag +PKSih1t11cbHvs07j+oMYfi81g/vumnpOHMSnzQKDGcOWfxvQiZvdDqyZUeCYvqyeiq 0jug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=OqV/ihFIy8CRA4x79bPuWBXuSpggyG546EYwv5o2PHw=; b=AR3nckoYOh5nQPnwJmihG/9MuGVAUJckAWezRegCQVOMG4jEQp3OsZnX4/sNG9jlIx Wma9VIbN8YWjgmc6gRPTW4NFOuYrMt1Uh0xLamLVtNScHq8svIEw3+Z8KE0JwltwTFgI ymfqb8yxt2UktNBglpBBYKXAQ7s8Aywk9sE1UH7+Nx7nX85090SBiBX8efXrOf2O/V8L 1ku3gh+nLM2mTNhpqAp9KSla2Cx+WCJEb+iFaLNPfY5A/hDawwRQ1J2VqIHHdFyVdMDh NbGd3WlSn8YYDDDhI1nRVGsboidUzrbKJ58fsBEnf+SYFcyYwo4r5E+iOxqAwkp5cwlW NPmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si4772113ejk.301.2019.10.19.01.23.51; Sat, 19 Oct 2019 01:24:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442806AbfJRNGM (ORCPT + 99 others); Fri, 18 Oct 2019 09:06:12 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:16414 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2442800AbfJRNGM (ORCPT ); Fri, 18 Oct 2019 09:06:12 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9ID3DII020977 for ; Fri, 18 Oct 2019 09:06:11 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vqcatuypm-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 18 Oct 2019 09:06:10 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Oct 2019 14:06:08 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 18 Oct 2019 14:06:06 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9ID64kX32243746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Oct 2019 13:06:04 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C5420A404D; Fri, 18 Oct 2019 13:06:04 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C6900A4051; Fri, 18 Oct 2019 13:06:02 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.85.73.145]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 18 Oct 2019 13:06:02 +0000 (GMT) From: Sourabh Jain To: mpe@ellerman.id.au Cc: mahesh@linux.vnet.ibm.com, hbathini@linux.ibm.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, corbet@lwn.net, linux-doc@vger.kernel.org, Sourabh Jain Subject: [PATCH v2 0/4] reorganize and add FADump sysfs files Date: Fri, 18 Oct 2019 18:35:53 +0530 X-Mailer: git-send-email 2.17.2 X-TM-AS-GCONF: 00 x-cbid: 19101813-0008-0000-0000-000003234936 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19101813-0009-0000-0000-00004A426AFB Message-Id: <20191018130557.2217-1-sourabhjain@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-18_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=892 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910180123 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, FADump sysfs files are present inside /sys/kernel directory. But as the number of FADump sysfs file increases it is not a good idea to push all of them in /sys/kernel directory. It is better to have separate directory to keep all the FADump sysfs files. The patch series reorganizes the FADump sysfs files and avail all the existing FADump sysfs files present inside /sys/kernel into a new directory /sys/kernel/fadump. Currently, all the FADump sysfs files are replicated into a new directory to maintain the backward compatibility and will eventually get removed in future. In addition to this a new FADump sys interface is added to get the amount of memory reserved by FADump for saving the crash dump. Changelog v1->v2: - Move fadump_release_opalcore sysfs to FADump Kobject instead of replicating. - Changed the patch order 1,2,3,4 -> 2,1,3,4 (First add the ABI doc for exisiting sysfs file then replicate them under FADump kobject). Sourabh Jain (4): Documentation/ABI: add ABI documentation for /sys/kernel/fadump_* powerpc/fadump: reorganize /sys/kernel/fadump_* sysfs files Documentation/ABI: mark /sys/kernel/fadump_* sysfs files deprecated powerpc/fadump: sysfs for fadump memory reservation .../ABI/obsolete/sysfs-kernel-fadump_enabled | 10 ++++ .../obsolete/sysfs-kernel-fadump_registered | 11 +++++ .../obsolete/sysfs-kernel-fadump_release_mem | 11 +++++ .../sysfs-kernel-fadump_release_opalcore | 9 ++++ Documentation/ABI/testing/sysfs-kernel-fadump | 48 +++++++++++++++++++ .../powerpc/firmware-assisted-dump.rst | 20 +++++++- arch/powerpc/kernel/fadump.c | 42 ++++++++++++++++ arch/powerpc/platforms/powernv/opal-core.c | 6 ++- 8 files changed, 154 insertions(+), 3 deletions(-) create mode 100644 Documentation/ABI/obsolete/sysfs-kernel-fadump_enabled create mode 100644 Documentation/ABI/obsolete/sysfs-kernel-fadump_registered create mode 100644 Documentation/ABI/obsolete/sysfs-kernel-fadump_release_mem create mode 100644 Documentation/ABI/removed/sysfs-kernel-fadump_release_opalcore create mode 100644 Documentation/ABI/testing/sysfs-kernel-fadump -- 2.17.2