Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp685795ybl; Fri, 30 Aug 2019 05:46:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV+OI9PRVKDVIjdzD1l7ZjELQdsEnwVnBPlEpi3zSLhajo7ze7RDeyb5s0+Wq9N1/bHgo4 X-Received: by 2002:a17:902:20e3:: with SMTP id v32mr14870405plg.142.1567169217589; Fri, 30 Aug 2019 05:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567169217; cv=none; d=google.com; s=arc-20160816; b=ITX40izy94JBWJ4Sl+1+PJopH8Ci+4ojWQ6yUdLKDopbr7zxpcmdzxu1XD5iLtCb8g XCUN8ePNKL6wJdFaGXt1crB25FzgHXNSbUYVSX4f9U5Zfo4YO0tPKOpSFhU5mIHQYkU/ RbK6WZOCuNetamSzOVMDEh4CKp1DwZaiZa6psIK1YfZ63QoiOGP3p9WlA4ChibfujdTy VXtWdE3Zyg7iY+sQw6TabHOzjBeGndDAozRfrFITHHu60boYqsRS3UnXB4Vvr+rs2yVs wCW0HA+erPquOr47OMlKd5+0f8zUhyLjKaxdCHpuXwrZGAHmcIvtM+E+jrROiI+KUkL7 1mwA== 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=nTyT5mYJhN47vM7R8fXDbx6gEn1Xd1YK7lkt1YhaPIs=; b=bPVqwPMHZNYnHh28BuPeuWQHqXr+p9e0aNaamwWqNkQDrTIKjzeQ0o3183J2rNrUsL 41/IbDUkH+OKVJhAVRiKjAV54NqA1z6gg3yQJOv+oSjHDfEoOcjC+WxXAtBaLca2IZaE tj8FRfgTH4O9WHK5kT2Ff9GmhhIrv4lrGNMsmXtpeUpxbdYjJQxlxTvy2MRO/8IbxnW6 Hl40WnFs7KTZXJ1hj4ldeVmR4loSQTHD4W+5Oi33g6Aod91XzILUaU/1nkhCSiFyJy6v 0bJfjjAop9boUDZ/kXCdwAER+KaEWIa687JMaxqr0+mCojcAmeANLeI/51PML/WmVT+W JKZA== 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 j6si5763806pfa.122.2019.08.30.05.46.42; Fri, 30 Aug 2019 05:46:57 -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 S1728093AbfH3Mpb (ORCPT + 99 others); Fri, 30 Aug 2019 08:45:31 -0400 Received: from foss.arm.com ([217.140.110.172]:59676 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbfH3Mpb (ORCPT ); Fri, 30 Aug 2019 08:45:31 -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 4CD94337; Fri, 30 Aug 2019 05:45:30 -0700 (PDT) Received: from [10.1.196.105] (eglon.cambridge.arm.com [10.1.196.105]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 911AE3F246; Fri, 30 Aug 2019 05:45:27 -0700 (PDT) Subject: Re: [PATCH v5 1/4] dt-bindings: EDAC: Add Amazon's Annapurna Labs L1 EDAC To: Rob Herring , "Hawa, Hanna" Cc: Mark Rutland , Borislav Petkov , Mauro Carvalho Chehab , David Miller , Greg Kroah-Hartman , Linus Walleij , Jonathan Cameron , Nicolas Ferre , "Paul E. McKenney" , "Woodhouse, David" , benh@amazon.com, "Krupnik, Ronen" , Talel Shenhar , Jonathan Chocron , "Hanoch, Uri" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-edac References: <20190805143911.12185-1-hhhawa@amazon.com> <20190805143911.12185-2-hhhawa@amazon.com> <20190821191704.GA32425@bogus> <1d23d7c5-cd7b-1512-5300-d43e82ba6dc1@amazon.com> From: James Morse Message-ID: Date: Fri, 30 Aug 2019 13:45:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi guys, On 27/08/2019 14:49, Rob Herring wrote: > On Mon, Aug 26, 2019 at 9:49 AM Hawa, Hanna wrote: >> On 8/21/2019 10:17 PM, Rob Herring wrote: >>> Why is this even in DT? AFAICT, this is all just CortexA57 core features >>> (i.e. nothing Amazon specific). The core type and the ECC capabilities >>> are discoverable. >> >> Added to the DT in order to easily enable/disable the driver. > > That alone is not reason enough to put it in DT. From a DT > perspective, I have no idea what the whims of a OS maintainer are > regarding whether they want all this to be 1 driver or 2 drivers. > (IMO, it should be 1 as this is ECC for an A57. For a core and memory > controller, then 2 seems appropriate.) > >> You are >> correct that they are CortexA57 core features and nothing Amazon >> specific, but it's IMPLEMENTATION DEFINED, meaning that in different >> cortex revisions (e.g. A57) the register bitmap may change. Because of >> that we added an Amazon compatible which corresponds to the specific >> core we are using. I think its that the instruction encoding is in the imp-def space that is important. CPU-implementers can add whatever registers they find useful here. A57 and A72 both implemented some ECC registers here. (They are not guaranteed to be the same, but I can't find any differences). We need some information from DT because the TRM doesn't say what happens when you read from these registers on an A57 that doesn't have the 'optional ECC protection'. It could take an exception due to an unimplemented system register. The imp-def instruction space may also be trapped by a higher exception level. KVM does this, and emulates these registers as if they were all undefined. Thanks, James