Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp16512imm; Thu, 27 Sep 2018 15:06:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV62LQsHMVrInH9G383j5oFDT1jYuh1s+n94zRioxSg88W64cGAmjCClvpLynzpwfFJwn4uB1 X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr12761202plb.99.1538085982614; Thu, 27 Sep 2018 15:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538085982; cv=none; d=google.com; s=arc-20160816; b=sl+jIFaLT5l/AzHZAq8ew/p6RAWIb4bESiVyowraG7GFuYodC9ie8c/eAKkVDJwzAZ n6k9lXpNiPJ+XteQkmFwnR3msjge3Gw62Xw+GEOi9seaIGyj75+BApyzERRwRfRp1veJ 8DUML6KjPwmzNE4P73Y9dsO2z2YFpJa9jL0gXh4KofO/AlD5caZEP234iYpSySMJxc6O ldQN19khmKBnJMh2iNKXyKrbr2qX9cgkt4gAs9irnvFK3CyNSyPwxhQGPCH8ame6iG/B XnvBS+SwI5XH6GTBdSDbqAk+0qtYtHWvpg/53+ftA9Ljb7KssZvIzhbDLJWP7dqs0fxd zryQ== 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; bh=7xHG+GceScEeLsTQTLwBFDBOv6W0JbodeyFDs+b83NQ=; b=0k2ga05ox/IieAVtfHVmZ5ZrlH+jwbYqBh8CcsWvR+cK3078RpN3FKz18jnd32427U 2HIITcK3pJTtF4mTfiukTmBTNN3ZukOzKdI54dft6MAQXufD9YFIYLKOXVryobj8IEz4 n6ltqq+ILiviBpiVb4IWzaQhgpFjmph7rpGUDh2PKz/Uil8FFHdKUNPP+lizvtSqrPl5 Ju5crU5V8UGvrB+lwwg2D/oGns7MlgWW8ZHvTtbWa6VfsyZAG4u72up0b+g+Kzov34tJ hEu83nCt5LhS8nTpudQqn7AsmkGgdJ2SpN+jsOTudn/wMEmCFr78WMisD3vfqPwQwtqM UEWQ== 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 e9-v6si2917471pgj.70.2018.09.27.15.05.58; Thu, 27 Sep 2018 15:06:22 -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 S1727370AbeI1EYT (ORCPT + 99 others); Fri, 28 Sep 2018 00:24:19 -0400 Received: from mail.skyhub.de ([5.9.137.197]:42588 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725728AbeI1EYT (ORCPT ); Fri, 28 Sep 2018 00:24:19 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ycv3F1MjcskK; Fri, 28 Sep 2018 00:03:52 +0200 (CEST) Received: from zn.tnic (p200300EC2BC7FB00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bc7:fb00:329c:23ff:fea6:a903]) (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 4CBF21EC0317; Fri, 28 Sep 2018 00:03:52 +0200 (CEST) Date: Fri, 28 Sep 2018 00:03:55 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: Russ Anderson , Mauro Carvalho Chehab , Greg KH , Justin Ernst , russ.anderson@hpe.com, Mauro Carvalho Chehab , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Aristeu Rozanski Filho Subject: Re: [PATCH] Raise maximum number of memory controllers Message-ID: <20180927220355.GF19687@zn.tnic> References: <20180925180458.GG23986@zn.tnic> <20180926093510.GA5584@zn.tnic> <20180926152752.GG5584@zn.tnic> <20180926130340.6b22918b@coco.lan> <20180926161749.GI5584@zn.tnic> <20180926181035.GA1132@agluck-desk> <20180926182317.patqjso7nzw2oxiz@hpe.com> <20180926230257.GA5666@agluck-desk> <20180927045244.GA30912@zn.tnic> <20180927214400.GA2249@agluck-desk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180927214400.GA2249@agluck-desk> 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 Thu, Sep 27, 2018 at 02:44:01PM -0700, Luck, Tony wrote: > The problem with your patch that gets rid of EDAC_MAX_MCS is making > device links under /sys/bus/edac. Which is hinted at in some of the > code your patch deleted: > > - /* > - * The memory controller needs its own bus, in order to avoid > - * namespace conflicts at /sys/bus/edac. > - */ > - name = kasprintf(GFP_KERNEL, "mc%d", mci->mc_idx); > - if (!name) > - return -ENOMEM; > - > - mci->bus->name = name; Yes, and that needed to go because I am using a single bus. Which kinda makes sense because you want to have a single bus and multiple devices on it. I mean, if we *have* to have a bus. I think this whole /sys/bus/edac thing is crap and needs to go. We have a perfectly fine hierarchy under /sys/devices/system/edac and duplicating it under /sys/bus/edac is just bollocks. IMHO. Feel free to correct me with, but but, this is useful for... > which seemed to work. Right. > But then I began wondering what are ABI expectations > from applications that read the EDAC /sys files? > > Is this this current source repository? https://github.com/grondo/edac-utils > > This code doesn't seem to know about the "dimm*" directories below the > "mc*" level. It just looks for the csrow* entries. I guess this is a question for Mauro. I never really needed any special edac tool to get info and if you ask me, we probably should try to keep it simple and grep sysfs. So that you can always get the info without having to install any special tools. Like ftrace works on every system with just a shell and basic tools. I think this is very powerful. But this is old spartan me only thinking out loud. In any case, I'm more than fine with dropping the bus hierarchy if nothing uses it. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.