Received: by 10.223.185.116 with SMTP id b49csp994116wrg; Fri, 23 Feb 2018 10:02:00 -0800 (PST) X-Google-Smtp-Source: AH8x225H/lEz6mJ6/ocXhh6h68Z4NLbG3WUoZxhKqucj6bvND7uM2u6OH3Q0Uf1MyOwDwUnph0gS X-Received: by 2002:a17:902:367:: with SMTP id 94-v6mr2505252pld.140.1519408919992; Fri, 23 Feb 2018 10:01:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519408919; cv=none; d=google.com; s=arc-20160816; b=0ceweACBaBrMy8HyY0bXYRS5kaIG/jYq66BpzVtkL1ORUPrj/2iZEkqeBd7MbYgCRO s63m57KZ27dKjpE0+vFkbj2Mq+vI1Z4cN2yis0Z45GaBsq4fRuhjopXyo59Adxjl/fwH VTOmehBhbbzNgBgOlHmZ+XsIX8ZjOn6P/kgADq+emAfi+Ta8Qi/aNnEHn+OuM9X5NkZj GFpHMZyFmS9ShLgFdSKP8qyJi0G2nG88GYEH/DqQ7y97VTXIBydwJgsDwUHYmWUucCTY 040TgfgUyTZHCUCQqGCixumIzTz5KanW7yjLf254zRxTyMurP/J7t4JR7tSAcSbuJLIG A+ag== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=I7vHc8TbpDR3ltRecoCqQDGMN1xPB1AhGFKo/QE7yRw=; b=TQDQU1FmBktXlMt+aeI6Mz9z+hJSJUO5yi3NOlwrFqIZUbK9B9nDwBbeVpq+TPFZB6 h94kbMRLeEAKylak9JzDXgYxa4hbQ5/fxbhrs/6B0Nm5rtr392AYiANunQyOJ6yV80a6 ArvdVPw8AV9uSUT1Mo9+DQL/ujNpEUhPQWYI/slPo+44W1hruBA+/vyVbzz8Fri9PiEg zcFyB1EfN0zP8te4NoI09KkG2EPB6zo0G06IK5TnQ8je40eysxGTJPFs8k/X/9ARi4Br q999AsJ/XMiFv7VeYLPr9ep+XMbFW+o+r4gq3QFEaMO4F5HL0NUiqrmxXYMXMjfJTSvI UEnA== 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 o6-v6si2077929pls.589.2018.02.23.10.01.38; Fri, 23 Feb 2018 10:01:59 -0800 (PST) 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 S1751992AbeBWSAz (ORCPT + 99 others); Fri, 23 Feb 2018 13:00:55 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59136 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbeBWSAz (ORCPT ); Fri, 23 Feb 2018 13:00:55 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8DD731529; Fri, 23 Feb 2018 10:00:54 -0800 (PST) Received: from [10.1.207.55] (melchizedek.cambridge.arm.com [10.1.207.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F21A73F25C; Fri, 23 Feb 2018 10:00:52 -0800 (PST) Message-ID: <5A90563E.4020608@arm.com> Date: Fri, 23 Feb 2018 17:58:22 +0000 From: James Morse User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Dongjiu Geng CC: catalin.marinas@arm.com, will.deacon@arm.com, christoffer.dall@linaro.org, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, huangshaoyu@huawei.com Subject: Re: [PATCH] arm64: rename the function arm64_is_ras_serror() to avoid confusion References: <1519322552-7374-1-git-send-email-gengdongjiu@huawei.com> In-Reply-To: <1519322552-7374-1-git-send-email-gengdongjiu@huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dongjiu Geng, On 22/02/18 18:02, Dongjiu Geng wrote: > The RAS SError Syndrome can be Implementation-Defined, > arm64_is_ras_serror() is used to judge whether it is RAS SError, > but arm64_is_ras_serror() does not include this judgement. In order > to avoid function name confusion, we rename the arm64_is_ras_serror() > to arm64_is_categorized_ras_serror(), this function is used to > judge whether it is categorized RAS Serror. I don't see how 'categorized' is relevant. The most significant ISS bit is used to determine if this is an IMP-DEF ESR, or one that uses the architected layout. DFSC of zero means uncategorised. What should we do with an uncategorised SError? From 2.4.3 "ESB and other physical errors" of [0] | It is IMPLEMENTATION DEFINED whether [..]uncategorized SError interrupts | are containable or Uncontainable, and whether they can be synchronized by an | Error Synchronization Barrier. We treat uncategorized as uncontainable as that's the worst thing it could be. On aarch32 uncontainable and uncategorized even share an encoding. (AET:00 in G7.2.43 "DFSR, Data Fault Status Register", 'state of the PE after taking the SError interrupt exception') > Change some code notes, unrecoverable RAS errors is imprecise, but > Recoverable RAS errors is precise. Unrecoverable and Recoverable (but we don't know where it is) are both grouped into 'can't make progress'. The comment says: | The exception may have been imprecise. because one of those two is imprecise. If anyone cares which one is which, they can read the spec. I expect this code will one day be replaced with proper kernel-first support, its only here to avoid panic()ing due to corrected errors. Thanks, James [0] https://static.docs.arm.com/ddi0587/a/RAS%20Extension-release%20candidate_march_29.pdf