Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5876910ybi; Wed, 12 Jun 2019 09:58:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtZ919za8Khn2UTbWn85NuToyRmgVTlUXdGjDgEMQoD3AP9fH4EETX2CYMmmSn1sWsijEP X-Received: by 2002:a63:d07:: with SMTP id c7mr25524611pgl.394.1560358694884; Wed, 12 Jun 2019 09:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560358694; cv=none; d=google.com; s=arc-20160816; b=fedhSv6WbIksgGGABMsH0pB/HAq/ThjNQYyaujYYEOlOWn9JPHoeGYK27hr34UsO9V ta3AWpaY1BNCQuz5I+faNe4aCOisyHPTiULocGiWE7Tcgyt5muqm3InElblevXKU4zXH uIqJvKp7lL/Iy4UvjaepoBiF/5zISfbzha0hrmL8EK6EgY/fdh7pQn1SGKwFj6lX5OBE E+i+vPYtahMqN5yBzZl7UpajJuowMe+E/+hv+cIWQE27U5viAX2wN3zii3L0uCEkW2AR A42dZoLsuyAcIUQE7RZu9NTTjzCr3sJvuYgNcWKbQBGATJMPz9kBwSe4HhY3wGhSIktB 9mzA== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=bwcoiqvF2SoNHiwEbIFT93eXz9rwnHVmrzehb7eUxsc=; b=P5wnYjIGeWWHMBqjrNtsIXjBZmRsxB/77wq8WLdH07sxiWSFpX1xZcTV9BAwGDOfYN JK6sQYd7JzTxIMhh2kch0hRjvrHsiziEKwYCcYcVH4v6nNZ3jJkVpbDImTFOp6J41cBA Woz1e21lVlkDF+xlaevCqANOkiVtUqFki9fveSu8X5slkCtBb96Lw+HCXbjpXlJKvpDx jw3H4peVI92Qa6pTn4IIiNlH1Fs8J850EAJ/EKD0RRiJWynSSxMWEMp+uQJlbB2m8CVw axDdMNmuQcuR7FDOPhD3Ovy5oNvmUgad1IuAhxOG6deBeD33a7+Z+fQJ9enmnOjEoBwj CnvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YYw1CK+H; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si287068pjr.109.2019.06.12.09.57.59; Wed, 12 Jun 2019 09:58:14 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YYw1CK+H; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408549AbfFLLmd (ORCPT + 99 others); Wed, 12 Jun 2019 07:42:33 -0400 Received: from casper.infradead.org ([85.118.1.10]:58138 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405753AbfFLLmd (ORCPT ); Wed, 12 Jun 2019 07:42:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bwcoiqvF2SoNHiwEbIFT93eXz9rwnHVmrzehb7eUxsc=; b=YYw1CK+HomH1bUQdmOFtr1LLKo nrI2pdZN1vJJdQLLReKvjE3gL7yk3BQbgk0EU5kvhYjFeSQ8AThy/qMchnF7lwPMA1vpKALnA4dIN 01Nb2u1tOwdct1BpWL4ME+XvkeFN581/KnIZSaTeDgl3AUzKZzYXIjjVgEHTueO9gr6Evdd72hqab 4/hL8rJUI/Got9CYd0zzpnEOojiS3ake9Qpn1JHduKs5utZTX0ePgiJB8SFrMdw0T1uFIVzH2kDhH eYtn8yJ0G9qRHi5H8iMjCv5kBFLJhmIjmxjtNprdsFixXVJE7/5e07m7FbaPn+NxMb/LF/heEHWX9 72SZQ56g==; Received: from 177.41.119.178.dynamic.adsl.gvt.net.br ([177.41.119.178] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hb1e0-0001Dc-CP; Wed, 12 Jun 2019 11:42:20 +0000 Date: Wed, 12 Jun 2019 08:42:13 -0300 From: Mauro Carvalho Chehab To: Borislav Petkov Cc: Benjamin Herrenschmidt , 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" Subject: Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC Message-ID: <20190612084213.4fb9e054@coco.lan> In-Reply-To: <20190612110039.GH32652@zn.tnic> 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> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 12 Jun 2019 13:00:39 +0200 Borislav Petkov escreveu: > On Wed, Jun 12, 2019 at 07:42:42AM -0300, Mauro Carvalho Chehab wrote: > > That's said, from the admin PoV, it makes sense to have a single > > daemon that collect errors from all error sources and take the > > needed actions. > > Doing recovery actions in userspace is too flaky. Daemon can get killed > at any point in time and there are error types where you want to do > recovery *before* you return to userspace. Yeah, some actions would work a lot better at Kernelspace. Yet, some actions would work a lot better if implemented on userspace. For example, a server with multiple network interfaces may re-route the traffic to a backup interface if the main one has too many errors. This can easily be done on userspace. > 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. Thanks, Mauro