Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6913229ybi; Wed, 5 Jun 2019 08:16:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf6bYwjNS5Ps+HljSn5m4O1g1PmzWC39YXULx0PmJZ7rVTk8AMAFs2vKDf8/AHxPwxzumh X-Received: by 2002:aa7:972a:: with SMTP id k10mr14841792pfg.116.1559747781404; Wed, 05 Jun 2019 08:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559747781; cv=none; d=google.com; s=arc-20160816; b=aITEUr+qVz8bOoZDiHvjkOqtKBnGPpQ8pC1Qw884c0mHeoWWvIKU/uEL9XQVwQoaMN rSp8oA1nCRtkEL60QvV4z64/jTwv6GtwBha9Oce06C3cjlIKA8ylCl6sxMyZDZ+G71+E oyLJckeFU89O9rJ5Iu29M7hIUxenyOUEN1hF1ZPUjBdN8MqEBKBwkWMbNDhP4Mi8cZm7 i0Q6RXuLYZ2mAX3hGF8L3o7KXYxiuzttJG+g9OK2/ekYa1z3uIQ0lWVpn9v7tUHttRmx wO5v/7JrtdpgZxP9V5ZMa+XpXmjJTqx63xMvztpDB660tVx7YT6zKAwOMICfHP0IMuDp TWkA== 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=rni6bPPffuF7h52CeTdZbix7pm1YMeN8KfYndHU2Y+c=; b=BeFqSE8C4rqFYSzbRSDj/pbzyUZXgxGkSzaVtUOqkMdSR6mqDy0GIpz0LFbIowBzXi VHFQXmKfhYBrYAJEGWjPdZ+U0WinHAWL87VaaJDMZz+q7uZ/VxDaT3HY06w+oE18CDpS EO+gveHyKgBVzmEnhuUHSphylMlnOhXmxd5/5f+a5KsVfYb+meN2yjthrhfzh8K03PSH MnEQPT6a9Kw1sD3wkJh6ArAelSfgkQH4U/7UNKuOPlM1mAtK35Xa1uRev1Aw2ikj2lq6 JUZaFSzI1ASr0fs8wvQ5ucKn2kCB/8s9nw34P44/BJvae9qFC8fRAD/6krgLoRrh4zjc 8JRQ== 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 a3si6101687plc.132.2019.06.05.08.16.04; Wed, 05 Jun 2019 08:16:21 -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 S1728260AbfFEPNJ (ORCPT + 99 others); Wed, 5 Jun 2019 11:13:09 -0400 Received: from foss.arm.com ([217.140.101.70]:33182 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727971AbfFEPNJ (ORCPT ); Wed, 5 Jun 2019 11:13:09 -0400 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 76A5A374; Wed, 5 Jun 2019 08:13:08 -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 8A19E3F246; Wed, 5 Jun 2019 08:13:05 -0700 (PDT) Subject: Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC To: Borislav Petkov , "Herrenschmidt, Benjamin" Cc: "robh+dt@kernel.org" , "Woodhouse, David" , "paulmck@linux.ibm.com" , "mchehab@kernel.org" , "mark.rutland@arm.com" , "Hawa, Hanna" , "gregkh@linuxfoundation.org" , "davem@davemloft.net" , "nicolas.ferre@microchip.com" , "devicetree@vger.kernel.org" , "Shenhar, Talel" , "linux-kernel@vger.kernel.org" , "Chocron, Jonathan" , "Krupnik, Ronen" , "linux-edac@vger.kernel.org" , "Hanoch, Uri" References: <1559211329-13098-1-git-send-email-hhhawa@amazon.com> <1559211329-13098-3-git-send-email-hhhawa@amazon.com> <20190531051400.GA2275@cz.tnic> From: James Morse Message-ID: Date: Wed, 5 Jun 2019 16:13:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190531051400.GA2275@cz.tnic> 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 31/05/2019 06:14, Borislav Petkov wrote: > On Fri, May 31, 2019 at 01:15:33AM +0000, Herrenschmidt, Benjamin wrote: >> This isn't terribly helpful, there's nothing telling anybody which of >> those files corresponds to an ARM SoC :-) > > drivers/edac/altera_edac.c is one example. > > Also, James and I have a small writeup on how an arm driver should look > like, we just need to polish it up and post it. > > James? Yes I should get on with that. Its mostly for platforms which end up with multiple piecemeal drivers and some co-ordination is needed. It doesn't look like that will be a problem here. >> That said ... >> >> You really want a single EDAC driver that contains all the stuff for >> the caches, the memory controller, etc... ? This has to be platform specific as it has integration-time dependencies and firmware dependencies. Doing it as a platform driver matched from the machine-compatible may be more straightforward today. The DT will already say "compatible = arm,cortex-a57" for the Alpine-v2, what that 'edac_l1_l2' node is telling us is the integration/firmware stuff has been done, and the imp-def instructions can be used. Thanks, James