Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5354106ybi; Wed, 12 Jun 2019 00:48:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSkbHoeTzQU4GiZ/Rua44CuAfqbF71+DvXb0o0MeaFqg6CaexvGMeLk/0cIvG7xUhaMs2c X-Received: by 2002:a62:386:: with SMTP id 128mr87174997pfd.10.1560325720171; Wed, 12 Jun 2019 00:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560325720; cv=none; d=google.com; s=arc-20160816; b=Q1cMHNGKgA85A/7RWgG7U0hJH99mRuoXsWjMPeznzT/eLTctL6XIFecBHNCVK6QF7v SSsdYQAvQIq5Co9X5kKY3/D9I5djzQlyOQUXBvb9N4bbcQEtk4yduh6UX/vOuX08Uh8m cRSOVvfTr+7bDwoxTaEPUe0tATEnEMWvOqBTYuRY8P4YP51Yf5yeVvlmi4TgG447B3sp tie79HfwH2ttSmY4DhJgf+R8BCTGgey03kuyg3DEdS0n/80dbjJjUORUsKrKdp29YcG6 7XB4LQfnQCaJ2nUDA/47GTZHwZJ+P3dAuPVvW3ImptGkujVRWfXA9u7VIUMSbWS/6tSb rrVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=J1N1vI6eyDVtjlL+ZshOlH/0wAtVw2YVqy7wYoH0usQ=; b=C2PsWFjibDW4yM92kJL9sb9/zZVFz+rruzpHJ3UxHnTVu5aY0e3YeouyFWBUVeEvr5 /zNm1DqFV4ZjLwIA3yDKX6skcy5SkQXjTObGZ9AeotUxZ4UspAirUwh7UQt+j9iwLRl9 +IzjPKOt3Q4j9Rn3JnLhxs+FWiwVTmGbIp+Sobf9TgpfrXXNMA6MxmgNqqe8hTXempUO y/J3vOTXn2Jdbguoo0YZ7/csbkilQaGrIeC+1sDep8a4NRt5duFL+9HHUbYggOjatYie H84dj7QXEcjXzvodcKsEz0qLN3pQYckdRKMtU71B2XkI/Q6e2aKgt32C3pNCTUXExdGf BZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QukZpvZs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si16018437pfw.143.2019.06.12.00.48.20; Wed, 12 Jun 2019 00:48:40 -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=pass header.i=@alien8.de header.s=dkim header.b=QukZpvZs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407629AbfFLDsX (ORCPT + 99 others); Tue, 11 Jun 2019 23:48:23 -0400 Received: from mail.skyhub.de ([5.9.137.197]:52586 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407061AbfFLDsW (ORCPT ); Tue, 11 Jun 2019 23:48:22 -0400 Received: from zn.tnic (p200300EC2F0A680098854F45E2A0A47F.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:6800:9885:4f45:e2a0:a47f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B4D1C1EC01AD; Wed, 12 Jun 2019 05:48:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1560311300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=J1N1vI6eyDVtjlL+ZshOlH/0wAtVw2YVqy7wYoH0usQ=; b=QukZpvZs6Q/q1XtjMMV2DJy8T8vdHnSMai/7i7ER9R2aJv1H0B+Durxvgx90070ANE8Ckk RLdLhGXAFm1/6cbSsR3YiQ/slQq9Gp34Q0Fm/sva9NXybvOZaWTqEah1RuxY8ctl6Ny5wK R+B8a35EGnwK+rKVfQiT5FBVW1u1aPY= Date: Wed, 12 Jun 2019 05:48:14 +0200 From: Borislav Petkov To: Benjamin Herrenschmidt , James Morse Cc: "Hawa, Hanna" , "robh+dt@kernel.org" , "Woodhouse, David" , "paulmck@linux.ibm.com" , "mchehab@kernel.org" , "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: <20190612034813.GA32652@zn.tnic> References: <20190531051400.GA2275@cz.tnic> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6df5a17bb1c900dc69b991171e55632f40d9426f.camel@kernel.crashing.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 08:25:52AM +1000, Benjamin Herrenschmidt wrote: > Yes, we would be in a world of pain already if tracepoints couldn't > handle concurrency :-) Right, lockless buffer and the whole shebang :) > Sort-of... I still don't see a race in what we propose but I might be > missing something subtle. We are talking about two drivers for two > different IP blocks updating different counters etc... If you do only *that* you should be fine. That should technically be ok. I still think, though, that the sensible thing to do is have one platform driver which concentrates all RAS functionality. It is the more sensible design and takes care of potential EDAC shortcomings and the need to communicate between the different logging functionality, as in, for example, "I had so many errors, lemme go and increase DRAM scrubber frequency." For example. And all the other advantages of having everything in a single driver. And x86 already does that - we even have a single driver for all AMD platforms - amd64_edac. Intel has a couple but there's still a lot of sharing. But apparently ARM folks want to have one driver per IP block. And we have this discussion each time a new vendor decides to upstream its driver. And there's no shortage of vendors in ARM-land trying to do that. James and I have tried to come up with a nice scheme to make that work on ARM and he has an example prototype here: http://www.linux-arm.org/git?p=linux-jm.git;a=shortlog;h=refs/heads/edac_dummy/v1 to show how it could look like. But I'm slowly growing a serious aversion against having this very same discussion each time an ARM vendor sends a driver. And that happens pretty often nowadays. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.