Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6417746ybh; Wed, 7 Aug 2019 23:43:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQjK24BS/4gM9wvfJuXXknpdd85jo3VmcFSVFPGrVC6kxWvxdw8ryzGkm4/f8txP9Vw99m X-Received: by 2002:a17:902:9b81:: with SMTP id y1mr12597726plp.194.1565246591399; Wed, 07 Aug 2019 23:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565246591; cv=none; d=google.com; s=arc-20160816; b=Dwe3vspOxJ38iFZj+nsWydb6rzvc9SUKw4tNiQRgtqU3bfiuv1EHBTe9l7b1EA8sA1 4B6zbfxIwenDcN4RjyEBWJIeUOCX8AkN+WmK/ICcbPUqdFbswO+bEhTpww4tZJGy6T9v 23Vgz6S6NKHPyfXqlij7HIRkMljqd5P5qjcajTYhcLZwe0rl3PzmGVcxjicjgskqPG/k fUNCEGLhrdKWFOw9ktqCZZWmRWP3ijPPBzj3r0akvmLp3qZY+bYZDaekxp544huv3yeS jZS7xx59vGyjLE38eBxqxehfLoN+neQ8JmLzmOfVZrEiNAM1WKOf+63KalxzfnCMI4TX Chzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=mcxFtJSqyfIv5Xn/BkfVs6rvkk7HQvogfwY/0Ehx26s=; b=HRCGZVQNTMMPIzwMQkgbX/pv0pPEIqobJaxvAX2gNyk3mDfDLkGCtx1rSdKqw7OHth Fj2/O5qDRWRwHSoKFqJDo30tR5/BLyro4CfUH4boNaagI665cVa/Al6DGN9HSRJW7xs+ AIU3d2ug6sfoWpMeHrFRLPr6IJ9MaXDnHBK74DIldGphFgXyuRCiOvqJY9ZQ4I+ZaIrP psY0GkDdSXTnqQD8QMT9aPvvpPhJ4ZhL2XP/X7YwAjFXUhDmi4thhGS6RwBi0TKT8ie5 jExv5C9bR1syM9xpeH1WJh9rsNcMXkxheqlx/9+C9NlLd8L0ATV8IIb/shQ6hJEmQdiz Bb3Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 136si22424342pgg.354.2019.08.07.23.42.56; Wed, 07 Aug 2019 23:43:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731207AbfHHGVo (ORCPT + 99 others); Thu, 8 Aug 2019 02:21:44 -0400 Received: from foss.arm.com ([217.140.110.172]:56526 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731005AbfHHGVn (ORCPT ); Thu, 8 Aug 2019 02:21:43 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E63DA337; Wed, 7 Aug 2019 23:21:42 -0700 (PDT) Received: from [10.163.1.243] (unknown [10.163.1.243]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF5E13F706; Wed, 7 Aug 2019 23:23:48 -0700 (PDT) Subject: Re: [PATCH v2] arm64: mm: print hexadecimal EC value in mem_abort_decode() To: Miles Chen Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, Mark Rutland , James Morse References: <20190807003336.28040-1-miles.chen@mediatek.com> <98bdbcfb-24ed-fcd8-4b2c-f2c78b245dda@arm.com> <1565244075.26350.3.camel@mtkswgap22> From: Anshuman Khandual Message-ID: <256df022-6ad2-bae8-cc94-908adf409a07@arm.com> Date: Thu, 8 Aug 2019 11:51:33 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1565244075.26350.3.camel@mtkswgap22> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/08/2019 11:31 AM, Miles Chen wrote: > On Thu, 2019-08-08 at 11:19 +0530, Anshuman Khandual wrote: >> >> On 08/07/2019 06:03 AM, Miles Chen wrote: >>> This change prints the hexadecimal EC value in mem_abort_decode(), >>> which makes it easier to lookup the corresponding EC in >>> the ARM Architecture Reference Manual. >>> >>> The commit 1f9b8936f36f ("arm64: Decode information from ESR upon mem >>> faults") prints useful information when memory abort occurs. It would >>> be easier to lookup "0x25" instead of "DABT" in the document. Then we >>> can check the corresponding ISS. >>> >>> For example: >>> Current info Document >>> EC Exception class >>> "CP15 MCR/MRC" 0x3 "MCR or MRC access to CP15a..." >>> "ASIMD" 0x7 "Access to SIMD or floating-point..." >>> "DABT (current EL)" 0x25 "Data Abort taken without..." >>> ... >>> >>> Before: >>> Unable to handle kernel paging request at virtual address 000000000000c000 >>> Mem abort info: >>> ESR = 0x96000046 >>> Exception class = DABT (current EL), IL = 32 bits >>> SET = 0, FnV = 0 >>> EA = 0, S1PTW = 0 >>> Data abort info: >>> ISV = 0, ISS = 0x00000046 >>> CM = 0, WnR = 1 >>> >>> After: >>> Unable to handle kernel paging request at virtual address 000000000000c000 >>> Mem abort info: >>> ESR = 0x96000046 >>> EC = 0x25: DABT (current EL), IL = 32 bits >>> SET = 0, FnV = 0 >>> EA = 0, S1PTW = 0 >>> Data abort info: >>> ISV = 0, ISS = 0x00000046 >>> CM = 0, WnR = 1 >>> >>> Change since v1: >>> print "EC" instead of "Exception class" >>> print EC in fixwidth >>> >>> Cc: Mark Rutland >>> Cc: Anshuman Khandual >>> Cc: James Morse >>> Signed-off-by: Miles Chen >> >> This version implements the suggestion, hence it should have >> also contained acked-by tag from Mark from earlier version. >> > > No problem. Sorry for not including the tag. > I was not sure if I should add the acked-by tag from Mark in patch v2. Yeah because V2 has now implemented the suggestion as required for getting the tag per Mark in V1. > >> Reviewed-by: Anshuman Khandual > > If I send patch v3, I should include acked-by tag from Mark and > Reviewed-by tag from you, right? Right.