Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp559712pxy; Thu, 22 Apr 2021 08:15:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDOPXZ8DGyBNgygjNMozFrqxkuKIhHl7vu41fxUc6v08sF7xWPzwysWYD3lMrZkWVGXvdd X-Received: by 2002:a17:906:cf8f:: with SMTP id um15mr3858063ejb.547.1619104537501; Thu, 22 Apr 2021 08:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619104537; cv=none; d=google.com; s=arc-20160816; b=vDUi3j1Vav79iVNWZg65ryWgVZ2YzbwCGq5w1zH3QeJh3VDKoyjTgKJtU8HgVYFjoQ vccxV6Qn/XJUknobOLqEqoToXzukwykmQhKs1Km82//Hd53ELhhXIMW9sPcIICClgSmI ApadspvfoW5Dp3at2x5uBjaWT3k4192ByTB1KXogbQ0N9O9py6pVjXOjk//VzcraRELI GH5BtWKpHNqSvA0t5fy++rp8Zc0my7ZWwm5AyzaFBTmbcC/KKWVoXAKy3stElYtXzU3s IzwUy2v346gbbcg5+Fir9zpXpmrK/Lr/4Dbwia9Q8mJBtAmSQR8phEnDXQWRcQnKGhmj Ks/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=a+6VQ8pLlz1642rIhBYQF/ryx1ofGc8+0N3JGfNATL8=; b=cOLpHCPUSUO65mAlJsOHJ0aWa8VSpHUhYx+bLjFqln1fAsaS9FszLBRaJth5slKlib D2pDTVdy72fRgLU4MmIHvKZeMhmlwlnSsGs4nyjI0kbzvOt4lXXFdSMZRFbN3PaPh2GM 8OE2RZ/xGQ1lCdMHBZwkWIrd5w/w1sXKD1Fxm8PoM827WjFsA2/JsKyi7I5RM5EVyl8W HCzSdVOIhYUKyEBzBqHeiOYTkyHGJw6ba97ab9OSxblaonfqm9BM+PquT/M01i8ERdXR MBy7loc/DpJfX2j85xn4YAVV9XWb7KfV1ZNkTlhBsgDKxbr3fQArG2KxE4T4Jor10lB0 Euag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=A9TxkZcr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si2481348ejf.582.2021.04.22.08.15.13; Thu, 22 Apr 2021 08:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=A9TxkZcr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237822AbhDVPL4 (ORCPT + 99 others); Thu, 22 Apr 2021 11:11:56 -0400 Received: from pv50p00im-hyfv10011601.me.com ([17.58.6.43]:48275 "EHLO pv50p00im-hyfv10011601.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236559AbhDVPL4 (ORCPT ); Thu, 22 Apr 2021 11:11:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1619104281; bh=a+6VQ8pLlz1642rIhBYQF/ryx1ofGc8+0N3JGfNATL8=; h=From:To:Subject:Date:Message-Id; b=A9TxkZcrX41py7jNK8WeMErTMTC7M9HStvqTMB+xF5WXGGsfrUF+BuZzga2NEAgbV 9NZ7ohO/e5hJNNwivJG4oNZva4DcrX7Ph+VEt1aiOumN4AEwAYITkXZBLQGvmiynTD kfkwpFya2bR4dIzU+uQSy7jyJ8YIaC1jjFkC5c0YI/fZng8iqAoxSj9BRrxA1jCRV/ CwVUiHOorGbSPKTmN2Ro2kP7JeKXZffpx1nAwZWoZRcRwTnQfCOKtdEGCuHL+lZUE6 I41QVg6CaLaWdm5BgJtkGt/OEKmalM17i3yIgq9aytprNXgbBnJGKybut6HAhox4fL w6jPG404n79nw== Received: from localhost.localdomain (unknown [120.245.2.61]) by pv50p00im-hyfv10011601.me.com (Postfix) with ESMTPSA id E7C0C38058A; Thu, 22 Apr 2021 15:11:16 +0000 (UTC) From: Xiongwei Song To: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, christophe.leroy@csgroup.eu, npiggin@gmail.com, ravi.bangoria@linux.ibm.com, mikey@neuling.org, aneesh.kumar@linux.ibm.com, 0x7f454c46@gmail.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Xiongwei Song Subject: [PATCH 2/2] powerpc: Print esr register when hitting Program Interrupt Date: Thu, 22 Apr 2021 23:10:22 +0800 Message-Id: <20210422151022.17868-2-sxwjean@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210422151022.17868-1-sxwjean@me.com> References: <20210422151022.17868-1-sxwjean@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-22_06:2021-04-22,2021-04-22 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=675 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2104220120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiongwei Song The esr register has the details of Program Interrupt on BookE/4xx cpus, printing its value is helpful. Signed-off-by: Xiongwei Song --- arch/powerpc/kernel/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 5c3830837f3a..664aecf8ee2e 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1459,6 +1459,7 @@ static bool interrupt_detail_printable(int trap) case INTERRUPT_MACHINE_CHECK: case INTERRUPT_DATA_STORAGE: case INTERRUPT_ALIGNMENT: + case INTERRUPT_PROGRAM: return true; default: return false; -- 2.17.1