Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4025055pxv; Mon, 19 Jul 2021 14:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXdSkpwnz8xr/cwEMAdFBgjf4mFF13Ml5vTDCdWeHk0glgFpKggn94/OFUo1dPcW6Cd10y X-Received: by 2002:a02:ca58:: with SMTP id i24mr23192031jal.101.1626731106479; Mon, 19 Jul 2021 14:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626731106; cv=none; d=google.com; s=arc-20160816; b=TYop9nu/PlVeqDsAPyhzKAhBNb2jCrjLH0WsYIlUlLvvwviukzXKej1NzgsmgtCeBN uqXJcfw2N5WTBoWTOwTBdLphk7e4R3/COSNoFR3+cMHupFFbZgqb/Jt9epH8VZhasRQN hPFydFL1I4U+Ob8wq2QHnR2xYKWHQD6wsm+ZBrVprt3ww0V97Vd8+cDujSi0+BMBiJSx 0yrGjALt9WjIhnAwgjPk/jq2jwnXycsSB6LVatEM6YyGZvy4LKSIs0INALayCoIBfBOm oIRBtAYqNVwso+CEDyZPWO0xBIXanWspa4wuMaBIwKut0nDLEgc097X0J5W8BU8VBTXJ D5NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=F5KmgUZmOBOlonbdxBKLgfL8Yxlhqd5J9c1kCN3QzHc=; b=IHQvMdBBk/0JTWpiagvrwglmBMa88MEBupa7egNNL6b3FIMatl120WowAE4JzuqPOO 3g2LR7VPskRX+bDT4lJA5KgVr4WJC6OGiHRAC7u9m3lyQ9lW3e7C+TVKORIwZm1zSnFi XLGzJK0GzwpTuBS2cDrn7W8OdEvzHG08bHKGVq4grTSAKks9bw9PdlUHTd94eVsb6Bjs AEsHv9tM3NMM0fmzpg+DHVLnVnxhoQnvtTyhpDEV9wa0vqd9meUcr5i9Yht5J5/HZJ5O cmTEB/f2fJDSxOEEQk5s4tyIz/yK7oPTBM5o1cFfg6l3y9BE5VDn9Tm+WXKOFsxQJB9E KD5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si20693331ilo.83.2021.07.19.14.44.55; Mon, 19 Jul 2021 14:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356142AbhGSU6P convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Jul 2021 16:58:15 -0400 Received: from mga06.intel.com ([134.134.136.31]:29438 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387923AbhGSUih (ORCPT ); Mon, 19 Jul 2021 16:38:37 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10050"; a="272247948" X-IronPort-AV: E=Sophos;i="5.84,253,1620716400"; d="scan'208";a="272247948" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2021 14:16:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,253,1620716400"; d="scan'208";a="500060605" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jul 2021 14:16:59 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 19 Jul 2021 14:16:58 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 19 Jul 2021 14:16:58 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2242.010; Mon, 19 Jul 2021 14:16:58 -0700 From: "Luck, Tony" To: Yazen Ghannam , Naveen Krishna Chatradhi , "Zhuo, Qiuxu" CC: "linux-edac@vger.kernel.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "bp@alien8.de" , "mingo@redhat.com" , "mchehab@kernel.org" Subject: RE: [PATCH 3/7] EDAC/mc: Add new HBM2 memory type Thread-Topic: [PATCH 3/7] EDAC/mc: Add new HBM2 memory type Thread-Index: AQHXfN9g3bq+MffDR0eiB1M8/p7+KatKyi7w Date: Mon, 19 Jul 2021 21:16:58 +0000 Message-ID: References: <20210630152828.162659-1-nchatrad@amd.com> <20210630152828.162659-4-nchatrad@amd.com> <20210719204758.GC19451@aus-x-yghannam.amd.com> In-Reply-To: <20210719204758.GC19451@aus-x-yghannam.amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.22.254.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The following commit added HBM support to some Intel EDAC code. > > c945088384d0 EDAC/i10nm: Add support for high bandwidth memory > > But it didn't include a new mem_type for HBM. Should it have? > > I only see some edac_mem_types use in sysfs and some debug messages. So > I'm curious if users find this information useful. Yazen, That commit makes the normal vs. HBM error visible in the DIMM label (by prefixing the "MC" for memory controller with "HB". + if (imc->hbm_mc) + snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_HBMC#%u_Chan#%u", + imc->src_id, imc->lmc, chan); + else + snprintf(dimm->label, sizeof(dimm->label), "CPU_SrcID#%u_MC#%u_Chan#%u_DIMM#%u", + imc->src_id, imc->lmc, chan, dimmno); Perhaps we should also set the "type" of the DIMMs. Qiuxu: opinion? -Tony