Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7127120ybi; Thu, 13 Jun 2019 10:02:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1YIx6bkUrQMYDo31NXO3CoRozDPYvi7bUEdSxVzhqqBTJH9gUnaYZLQSINGjz0gME67CC X-Received: by 2002:a63:514:: with SMTP id 20mr31169840pgf.272.1560445351161; Thu, 13 Jun 2019 10:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560445351; cv=none; d=google.com; s=arc-20160816; b=vAIaUw5zEixl4AgC0kiuXnnhA0dJZqeekzQomj9W2pe0etQsPpHlz46KlouWUKU0zk ujAMorh+5VGwwV38MQe7pdtVnCUo9orLEQGmpmQ5d83ql+qKJL995oPySdPnM1Zo0Pv4 +reanJHux9zWO1Ih9S6h59V15X7yN5nvcIU/6y4+Ky+h99mof5Sy69MQLiPNlhwyFKCE Sg42PL7zAYmpT/U007LPWJx0ox3VQCfdfai3NV8r1HIwhFp2uV+4VVvHsIxTVUoUrn3N byTdUIwkWuRHD9p3mK6bKt/y77iDCtWmruFtySN7cyzNEWz1O7QXF/jZs/G4VePFkCgX gOBw== 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=GGFZkLdQANcrfOjG5N4aYwsUFjHIC95XLv5Fq8nxI68=; b=kRUt2um5gNLiY/2Rr535tGfD5WZRKHGyEishbSQIfI/FberONx4Ov+r4SPHszwMxJb lzbPjYfrnq3z4lqR7yGTDQEe4uMcwXvRTKkDx+XRI+17uzmcW7V2TnwG4VcBUVmP1Oz6 NaSKT4Qci56S3rZolL/i1Fw+lmgKCCiJWqAiBncxCFT2mnfDSHoAhkOYGXCod31jgOb7 PEx7ZsgjA98VBp8EyWRaBEYpMh6NnqlZNVGhGbovitr9wJM09hENEhRfgKWir/3JL1pE Xmlb9wz7Cxtk6PXEoRIkAwyw4XStdh+zKmn8CsCcprPZLYDMyxeb7yQg2VJti8QB/KM2 Ohsw== 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 a18si122048plm.171.2019.06.13.10.02.15; Thu, 13 Jun 2019 10:02:31 -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 S1729823AbfFMRAw (ORCPT + 99 others); Thu, 13 Jun 2019 13:00:52 -0400 Received: from gate.crashing.org ([63.228.1.57]:49136 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729758AbfFLX4n (ORCPT ); Wed, 12 Jun 2019 19:56:43 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x5CNuKVE016725; Wed, 12 Jun 2019 18:56:21 -0500 Message-ID: <78de2a9768cfd7d871d3b61f64ce18aefc8c3293.camel@kernel.crashing.org> Subject: Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC From: Benjamin Herrenschmidt To: Borislav Petkov , Mauro Carvalho Chehab 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: Thu, 13 Jun 2019 09:56:20 +1000 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> 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 13:00 +0200, Borislav Petkov wrote: > 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 So what ? If root kills your RAS daemon, then so be it. That has never been a problem on POWER8/POWER9 server platforms and those have some of the nastiest RAS in town. You can kill PID 1 too you know ... > and there are error types where you want to do recovery *before* you return to userspace. Very few (precise examples please) and I yet have to see why those need some kind of magic coordinator. > 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. Ben.