Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8026669ybi; Thu, 6 Jun 2019 05:36:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzUKo578sL26SM0PzMXsXoN09lsOy/aGf+Hm4orrQN+/DR4g071eYkM5p71O4AKt9DOhtH X-Received: by 2002:a63:4826:: with SMTP id v38mr3184445pga.417.1559824606012; Thu, 06 Jun 2019 05:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559824606; cv=none; d=google.com; s=arc-20160816; b=NY7e0xNaFd++nGGC6f6UYR0EmkLx36UsmWDp5CyWoNoNdhRfKyGHuFDB1AbTKBzU2J 3+zSMlIiagPco6sblcTWmgr3nlgs3vTR83j4lxLkqCK3yXi302AR1O/B9kZQXg2cf9vl zmDRMt0c8/3ZdM+hn4WtEUo3lGhmCtDfDcaoU0CmEvQTxfBMj97GIG48WeEyXqqcKtVP IqEb5hMDertsTn+S6d8FaD4KlwALr6QVEY4I2cxCAbilInZoUKrUnr2wPs1xxzDdJtAW 8oteteG8E8ssBZiOh9qeYNWQpdMvk9ylTxoctsmwRKVghDTHaUjf+rUkTeTcc4Rnosnf azHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ce2wemERCNuhe1r8FDKdwgvoDhrRfIiwIFwMCaHmYng=; b=MBFL4w9nZvGd7Xjf3dVCHYUpC0AAGDkY0htpMmrNNlLzABiwTZCIGyofS5gdHJ68z6 wzYt5xrb5bhodggtlwizgBZngFquJcz/X0+ClkSafByNQYlUM5hGje5cdiqHbeqrF74K Z2nq4gJsgEA9GxkfffoiVVPsOxlKg5nlXYg0Mp/JLTjGxEUUwm2O0AYQR74b4K9cpN+S 1JPC0+UAqehhOp2QGxo7OS9E8iIW1FO2RDMf7NB8JW8zsVdaHQ5govQAMJgfMXNZehCI RlvXsS0m6brTaaKvasuEc0jPAN+MfcZm3SVG04lPxosgsVZAttSY84jRZS59iZ5DXMzH NDFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=GeGeXRa4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si1590864plt.200.2019.06.06.05.36.29; Thu, 06 Jun 2019 05:36:45 -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=@amazon.com header.s=amazon201209 header.b=GeGeXRa4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727769AbfFFLiB (ORCPT + 99 others); Thu, 6 Jun 2019 07:38:01 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:17325 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfFFLiB (ORCPT ); Thu, 6 Jun 2019 07:38:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1559821080; x=1591357080; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=Ce2wemERCNuhe1r8FDKdwgvoDhrRfIiwIFwMCaHmYng=; b=GeGeXRa4xrreIU0xvVwTJV2SqBYxzEbea3CxlpvhLNKaXlHHD/dumdAQ sfY5ogRjdcO/Qx577b1Kra6KVIP8oQLkVWJ1d3J3cwm9cKY3BOyFIVRlf I37zYW6wg9ZaxiZmKPjVnzz7SmlX3k1cRsE3ukPzCExwre157e5J3Tgfn Y=; X-IronPort-AV: E=Sophos;i="5.60,559,1549929600"; d="scan'208";a="769248080" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 06 Jun 2019 11:37:57 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com (Postfix) with ESMTPS id DB23CA2881; Thu, 6 Jun 2019 11:37:56 +0000 (UTC) Received: from EX13D01EUB001.ant.amazon.com (10.43.166.194) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 6 Jun 2019 11:37:56 +0000 Received: from [10.125.238.52] (10.43.160.177) by EX13D01EUB001.ant.amazon.com (10.43.166.194) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 6 Jun 2019 11:37:48 +0000 Subject: Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC To: James Morse , "Hawa, Hanna" , Borislav Petkov , "Herrenschmidt, Benjamin" CC: "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" , "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> <32431fa2-2285-6c41-ce32-09630205bb54@arm.com> From: "Shenhar, Talel" Message-ID: <71da083e-1a74-cf86-455d-260a34ee01fd@amazon.com> Date: Thu, 6 Jun 2019 14:37:43 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <32431fa2-2285-6c41-ce32-09630205bb54@arm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.43.160.177] X-ClientProxiedBy: EX13D14UWC003.ant.amazon.com (10.43.162.19) To EX13D01EUB001.ant.amazon.com (10.43.166.194) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Disagree. The various drivers don't depend on each other. >> I think we should keep the drivers separated as they are distinct and independent IP blocks. > But they don't exist in isolation, they both depend on the integration-choices/firmware > that makes up your platform. > > Other platforms may have exactly the same IP blocks, configured differently, or with > different features enabled in firmware. This means we can't just probe the driver based on > the presence of the IP block, we need to know the integration choices and firmware > settings match what the driver requires. > > (Case in point, that A57 ECC support is optional, another A57 may not have it) > > Descriptions of what firmware did don't really belong in the DT. Its not a hardware property. > > This is why its better to probe this stuff based on the machine-compatible/platform-name, > not the presence of the IP block in the DT. > > > Will either of your separate drivers ever run alone? If they're probed from the same > machine-compatible this won't happen. > > > How does your memory controller report errors? Does it send back some data with an invalid > checksum, or a specific poison/invalid flag? Will the cache report this as a cache error > too, if its an extra signal, does the cache know what it is? > > All these are integration choices between the two IP blocks, done as separate drivers we > don't have anywhere to store that information. Even if you don't care about this, making > them separate drivers should only be done to make them usable on other platforms, where > these choices may have been different. James, Thanks for the prompt responses. From our perspective, l1/l2 has nothing to do with the ddr memory controller. Its right that they both use same edac subsystem but they are using totally different APIs of it. We also even want to have separate control for enabling/disabling l1/l2 edac vs memory controller edac. Even from technical point-of-view L1/L2 UE collection method is totally different from collecting memory-controller UE. (CPU exception vs actual interrupts). So there is less reason why to combine them vs giving each one its own file, e.g. al_mc_edac, al_l1_l2_edac (I even don't see why Hanna combined l1 and l2...) As we don't have any technical relation between the two we would rather avoid this combination. Also, Lets assume we have different setups with different memory controllers, having a dt binding to control the difference is super easy and flexible. Would having a dedicated folder for amazon ease the move to separate files? Thanks, Talel. > > Thanks, > > James