Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4319604rwi; Wed, 12 Oct 2022 14:00:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78KAFHoBOt1LkoGdF8FAgTnWKOs3NUreFtEIFHHSI+QYJ/YzXh05BGcRY7kBQKl8UZgMQm X-Received: by 2002:a17:907:2cd8:b0:78e:7fe:a38f with SMTP id hg24-20020a1709072cd800b0078e07fea38fmr470365ejc.632.1665608430584; Wed, 12 Oct 2022 14:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665608430; cv=none; d=google.com; s=arc-20160816; b=HEW5G5Rrc91g8IIGkbvwtzA3FbxOxWD3OreqlGQ7U0tlMcPTfhfIrv/T4rlr7vvSKy ZYOQugTEc79Z2HRyYQIsAumNC1bfarpVxKN4rOwAxIZ+bf+Kibp+gH4wQ7KJ3Zw0g3Mq uYocHON6ZEa3GhOc97Jm3GDYY0TBofuKvoZ6Ccp+nTWElrQIOHl+L/9U2f/4IEeW+T3a V7nhzOH+Qw9kdASW3fFA87my7AwwiMc7WVD6IwyACvH695BfO6klz2igKx+mtiAkz13V iyh6x3H0arIwRolnTdZZtFglPTnnyRZjOyRNMIAiA6cGAqLKE+yCWZO9FGxrvT0LSVfo szRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eJJh0s3iMgt2kMH+jx8omA4PulLj6HDFZDLgshKql8s=; b=G0/Y/cS2FjyhDMOgcTJfiK8UWzzQUWsrmpa3/ExuHb9D4R/8lFQKrQ0Nsu9zOhfWN7 aq+aB8ctfPnjfAVtVkAlS3CGPSBlvXV/vfSeLj4mWmmNvu+rTUoxnqi8WoEmiq42fMqJ kjhBnOJ+hypvhli3rkGTZ/Wx9ShY0oc7twcvvunze/Z6t+doApZdIdOzDq1YkMefcr1D e9Y23IPxcRBGr6NkiJ+wX90pghWk8kznwVwAAa66kXaSoahf32hqkmQnpkorukqirIyl p9l1y5NXo1zjdMpD9NYBTn6eXPFO69OK86rS5vgXF8EVKCa8Pd7KYSz1a7sDuD2Yq4Pl Lriw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="OOFZa/K5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk30-20020a1709077f9e00b00780328a0868si2654388ejc.110.2022.10.12.14.00.04; Wed, 12 Oct 2022 14:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="OOFZa/K5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbiJLUpe (ORCPT + 99 others); Wed, 12 Oct 2022 16:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiJLUpD (ORCPT ); Wed, 12 Oct 2022 16:45:03 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F0340568; Wed, 12 Oct 2022 13:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665607502; x=1697143502; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eJJh0s3iMgt2kMH+jx8omA4PulLj6HDFZDLgshKql8s=; b=OOFZa/K5za/rwFe7aaZFPZFPVWWO9sUYj6tV4Q8p0p1lboqjhMmDMINQ z1GUPhIlYaihdGAucBkVaSx+qFVIynnJFCW6A5aXSxkls47ySHnkZeita qtCpT7k6ZctNpQR53n91myiamVPuTwem9zR0nnE6Ic4OmVe1Vhq6bKv/t A1X6h740ychTPLL/zXAt3OIlprRBFziOXe4gTyelqrIIfO9EnhWIL8IhA qYkUM4J18j5lWv92NTHwQMDjYGo9LfeTqUgPi00TidvS1wnlQZcJyRNRL npF8O6Rd2oogquM/wrs6l2bX/hhC7CQ8UGto+CiILznSWTd7UxW627Dq0 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="302517887" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="302517887" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2022 13:45:01 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10498"; a="604697827" X-IronPort-AV: E=Sophos;i="5.95,180,1661842800"; d="scan'208";a="604697827" Received: from agluck-desk3.sc.intel.com ([172.25.222.78]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2022 13:45:01 -0700 Date: Wed, 12 Oct 2022 13:44:59 -0700 From: Tony Luck To: Borislav Petkov Cc: Serge Semin , Serge Semin , Michal Simek , Mauro Carvalho Chehab , James Morse , Robert Richter , Alexey Malahov , Michail Ivanov , Pavel Parkhomenko , Punnaiah Choudary Kalluri , Manish Narani , Dinh Nguyen , Rob Herring , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v3 13/17] EDAC/mc: Add MC unique index allocation procedure Message-ID: References: <20220929232712.12202-1-Sergey.Semin@baikalelectronics.ru> <20220929232712.12202-14-Sergey.Semin@baikalelectronics.ru> <20221012200154.7fq3i7igbgkcy2mx@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 12, 2022 at 10:33:35PM +0200, Borislav Petkov wrote: > On Wed, Oct 12, 2022 at 11:01:54PM +0300, Serge Semin wrote: > "A new special MC index is introduced here. It's defined by the > EDAC_AUTO_MC_NUM macro with a value specifically chosen as the least > probable value used for the real MC index. In case if the EDAC_AUTO_MC_NUM > index is specified by the EDAC LLDD, the MC index will be either retrieved > from the MC device OF-node alias index ("mc[:number:]") or automatically > generated as the next-free MC index found by the ID allocation procedure." Just curious.If I have an EDAC driver using EDAC_AUTO_MC_NUM, and I unload and reload the driver a bunch of times. Do I get the same memory controller numbers each reload, or get an ever increasing set each time? -Tony