Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5890175ybi; Wed, 12 Jun 2019 10:10:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzoEGcrFamCEiBvd8gdC8HOePjrd7fYNzQTg287hG3oXXGT+bFvDXRreSUuqlXHW+Mj8qv X-Received: by 2002:a62:b40f:: with SMTP id h15mr80552588pfn.57.1560359441139; Wed, 12 Jun 2019 10:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560359441; cv=none; d=google.com; s=arc-20160816; b=KippzbTAychskrCfc3z+WbJGvToBAXE6n8Kr/kMfg0Dw60qi5Bi657BmnbPWUaHDXI OiWNrx/fObEuHqNyWfWgajlKyO2UFjv6AGGd2PU4H3g7me5UHradEAQAAEiSaxwVJp49 l4CS7JfkVm6h4AqTJdBsVqp7svPlQfGcnNW4ht7ltkz4xxfz/9oBMQidCBoAeVwXROKR ziOvLRVnT3Zs6kHMDfqOMwF6EwV5NDEnyrhRimIxQzGJ+BG+kL+KRtq6l0c7kONIu/97 4G/tI/AbydIiRVGw01uZcp6mtWgleGmYEYi/FZL7qF/gEFJ4Krhme2sPweW7r805CpHg uZcQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=vybIR3r7zIpUO9wqqnZXqdWRztSd1/4TfRmkWLUPKso=; b=X018N0wdaLln6Ep9Z8JyDE2Z6rppam6+/q6vPQ21R+ZEBiekCP9xphxsc3g/YIyD+T ZHe8OuUgGJRGRj6UNu2zRd3O+rUoJYyf+b5oyUny86SMkOY8qlIgSTbN8TGrYy3bYMmh wOefqI4QLfSMy3/OcwNOuvqr0ZLwoB67fm0WYMhlpm960hh/l949FcVoCRieO1YNNgAz 4nespmRCjz3Id3pyXtJ5EBO7MzO0gJFcIcLgDTGPPf26GSS/oTiYue/yZ+ldjreL0hMy o+m5OKZf1IOOyoBTABbadQ3jWAGzrtEkC5zXtbPW358no56YH43E3Qf8rLunSHbCMS8z aURw== 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 f9si312938pgs.115.2019.06.12.10.10.26; Wed, 12 Jun 2019 10:10:41 -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 S2391999AbfFLL6K (ORCPT + 99 others); Wed, 12 Jun 2019 07:58:10 -0400 Received: from gate.crashing.org ([63.228.1.57]:58006 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387878AbfFLL6J (ORCPT ); Wed, 12 Jun 2019 07:58:09 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x5CBvfmS019047; Wed, 12 Jun 2019 06:57:42 -0500 Message-ID: <7705227ea831793cc9e45af32e0da8f5547cb14d.camel@kernel.crashing.org> Subject: Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC From: Benjamin Herrenschmidt To: Mauro Carvalho Chehab , Borislav Petkov Cc: James Morse , "Hawa, Hanna" , "robh+dt@kernel.org" , "Woodhouse, David" , "paulmck@linux.ibm.com" , "mark.rutland@arm.com" , "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" Date: Wed, 12 Jun 2019 21:57:40 +1000 In-Reply-To: <20190612084213.4fb9e054@coco.lan> References: <32431fa2-2285-6c41-ce32-09630205bb54@arm.com> <9a2aaf4a9545ed30568a0613e64bc3f57f047799.camel@kernel.crashing.org> <20190608090556.GA32464@zn.tnic> <1ae5e7a3464f9d8e16b112cd371957ea20472864.camel@kernel.crashing.org> <68446361fd1e742b284555b96b638fe6b5218b8b.camel@kernel.crashing.org> <20190611115651.GD31772@zn.tnic> <6df5a17bb1c900dc69b991171e55632f40d9426f.camel@kernel.crashing.org> <20190612034813.GA32652@zn.tnic> <08bd58dc0045670223f8d3bbc8be774505bd3ddf.camel@kernel.crashing.org> <20190612074242.53a4cf56@coco.lan> <20190612110039.GH32652@zn.tnic> <20190612084213.4fb9e054@coco.lan> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-06-12 at 08:42 -0300, Mauro Carvalho Chehab wrote: > > Yes, we do have different error reporting facilities but I still > > think > > that concentrating all the error information needed in order to do > > proper recovery action is the better approach here. And make that > > part > > of the kernel so that it is robust. Userspace can still configure > > it and > > so on. > > If the error reporting facilities are for the same hardware "group" > (like the machine's memory controllers), I agree with you: it makes > sense to have a single driver. > > If they are for completely independent hardware then implementing > as separate drivers would work equally well, with the advantage of > making easier to maintain and make it generic enough to support > different vendors using the same IP block. Right. And if you really want a platform orchestrator for recovery in the kenrel, it should be a separate one, that consumes data from the individual IP block drivers that report the raw errors anyway. But for the main case that really needs to be in the kernel, which is DRAM, the recovery can usually be contained to the MC driver anyway. Cheers, Ben.