From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB2F8C433EF for ; Mon, 21 Feb 2022 12:09:44 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4K2LhQ6TTtz3cDy for ; Mon, 21 Feb 2022 23:09:42 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WdORsHAc; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=zbigniew.lukwinski@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WdORsHAc; dkim-atps=neutral Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4K2Lgb6YfXz3Wtt for ; Mon, 21 Feb 2022 23:08:58 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645445340; x=1676981340; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=udiT9kyDge4jwNdiIHSVS1TJ7uOYTJCX2mu4kKhajtQ=; b=WdORsHAcIvfRMVryuT+q6Q9xKCkuKa/6ED6+cLC9Fx2cx7SZqfmpApDe NT/jkTYDPrE+azHAjH0UynXqMm7SQD949O17B25AGqGk3Iz7fmoZsFXg4 AqgR0KkTerhP/6q02LrOV3rnsj/60GHsI9/hXHD76IToGSC8r/WAJHCX8 rGcjMdu0icR07kpSCUUi6mkJAYM+DTPUo01WR7uj7EtLtLmuB4MxiMZHf 01kOzRl8hp9Yn/IdWB1Inc7cemzmFT/7jHzSsGoY4Jfahydj63c2TVX9p yV+bfJLUC1gh3hBi9ryuSjUbFnbb0Ksm5b4fWQkbXk87q7rL9RjlvEtPB g==; X-IronPort-AV: E=McAfee;i="6200,9189,10264"; a="235037626" X-IronPort-AV: E=Sophos;i="5.88,385,1635231600"; d="scan'208";a="235037626" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 04:07:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,385,1635231600"; d="scan'208";a="627354923" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 21 Feb 2022 04:07:54 -0800 Received: from [10.252.63.169] (zlukwins-mobl.ger.corp.intel.com [10.252.63.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id C8085580C7E; Mon, 21 Feb 2022 04:07:52 -0800 (PST) Message-ID: <27225647-6411-23e2-6332-3da79256047d@linux.intel.com> Date: Mon, 21 Feb 2022 13:07:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: Propose a new application for reading DIMM SPD directly Content-Language: en-US To: Michael Shen References: <5892de79-ea79-8922-d809-1dd5622a84ad@linux.intel.com> <54fa7998-223c-f8fe-2fb5-124822a0b06f@linux.intel.com> From: "Zbigniew, Lukwinski" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ed Tanous , Benjamin Fair , openbmc@lists.ozlabs.org Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On 2/17/2022 4:59 AM, Michael Shen wrote: >> I see. So the app will just read SPD non-volatile content and provide it >> for user, e.g. over DBus, right? > Yes, the plan is over DBus. Ok. Thanks. >> Are you going to access DIMM periodically? It seems that it shall be >> enough to access DIMMs once per ac cycle/dc cycle. And just return SPD >> ownership to the CPU for the rest of time. > I think reading the SPD once per ac/dc cycle is enough like you said. > But if we want BMC to monitor the DIMM temp instead of CPU, then BMC > can't return the SPD ownership since the temp needs to be read > periodically. Got it! > > On Wed, Feb 16, 2022 at 4:39 AM Zbigniew, Lukwinski > > wrote: >> On 2/15/2022 2:50 AM, Michael Shen wrote: >>>> What about CLTT? Switching MUX to the BMC makes CPU not able to get DIMM >>>> temperature. Are you assuming here this feature is enabled in BMC FW? >>> CPU can still monitor the DIMM temp by reading the MR4 register and >>> trigger the DIMM throttling if needed. So I think the CLTT will not be >>> affected. >>> If CPU needs something more than MR4 register provided, BMC can assist >>> it in another separate daemon like Benjamin mentioned. >> Got it. >> >>> On Tue, Feb 15, 2022 at 6:17 AM Benjamin Fair wrote: >>>> On Fri, 11 Feb 2022 at 13:21, Zbigniew, Lukwinski >>>> wrote: >>>>> On 2/11/2022 1:40 AM, Michael Shen wrote: >>>>>> On Thu, Feb 10, 2022 at 6:45 AM Ed Tanous wrote: >>>>>>> On Wed, Feb 9, 2022 at 1:14 PM Patrick Williams wrote: >>>>>>>> On Wed, Feb 09, 2022 at 12:20:00PM -0800, Ed Tanous wrote: >>>>>>>>> On Wed, Feb 9, 2022 at 11:56 AM Patrick Williams wrote: >>>>>>>>>> On Tue, Feb 08, 2022 at 04:23:12PM +0800, Michael Shen wrote: >>>>>>>>>>> On Tue, Feb 8, 2022 at 3:11 PM Patrick Williams wrote: >>>>>>>>>>>> On Tue, Feb 08, 2022 at 01:10:37PM +0800, Michael Shen wrote: >>>>>>>>>>> BIOS owns the MUX select pin and it can decide who owns the SPD(I2C/I3C) bus. >>>>>>>>>>> From my understanding, BIOS only needs to read SPD during the POST stage. >>>>>>>>>>> For the rest of time, BIOS will hand over the SPD bus to BMC. >>>>>>>>>> That seems like it might work. You'll have to deal with the time when the BIOS >>>>>>>>>> has the mux in the BMC code somehow. Ideally I'd ask for the mux select to also >>>>>>>>>> be fed to the BMC as an input GPIO so that you can differentiate between "we >>>>>>>>>> don't own the mux" and "all the devices are NAKing us". >>>>>>>>> This seems like a nitty gritty design detail that's best handled in >>>>>>>>> code when we review it. I think the important bit here is that there >>>>>>>>> are paths where this could work without a significant design issue. >>>>>>>> Just one subtlety. I wouldn't expect this, necessarily, to be in _our_ design >>>>>>>> and/or code, except that we'd want to document the GPIO line like we do all >>>>>>>> others. I was trying to hint that "if I were involved in this hardware design, >>>>>>>> I'd ask for...". If you leave it out, I'm sure it'll work _most_ of the time >>>>>>>> just fine and it'll be your problem to debug it when it doesn't. >>>>>>> Understood. >>>>>> Thanks for all your suggestions. I will keep them in mind during implementation. >>>>> What about CLTT? Switching MUX to the BMC makes CPU not able to get DIMM >>>>> temperature. Are you assuming here this feature is enabled in BMC FW? >>>> BMC could assist with CLTT, but since this is CPU-specific it would >>>> belong in a separate daemon. That daemon could get the relevant >>>> temperatures over D-Bus using the standard sensor interface, so I >>>> don't think it should affect the design for this component. >>>> >>>>> Are you going to support DCPMM as well? If so, there is another problem >>>>> since switching MUX to BMC you brakes NVDIMM related FW/SW running on >>>>> Host OS. >>>> There are no plans currently for supporting NVDIMMs, just DDR5 at >>>> first as Michael mentioned, and possibly other DDR versions in the >>>> future. >> I see. So the app will just read SPD non-volatile content and provide it >> for user, e.g. over DBus, right? >> >> Are you going to access DIMM periodically? It seems that it shall be >> enough to access DIMMs once per ac cycle/dc cycle. And just return SPD >> ownership to the CPU for the rest of time. >> >>>>>>>>>> You should take a look at what is already existing in fru-device (part of >>>>>>>>>> entity-manager repository). This is already doing this for IPMI-format EEPROM >>>>>>>>>> data. We should be able to replicate/enhance this code, in the same repository, >>>>>>>>>> to handle SPD format. >>>>>>>>> I am not sure if it's a good idea to put it into the entity-manager >>>>>>>>> repo. As you said EM >>>>>>>>> is designed for IPMI-format EEPROM. Adding another parser into that >>>>>>>>> repo may violate >>>>>>>>> EM's design. >>>>>>>> I'm not sure why it would be an issue. Hopefully one of the maintainers of that >>>>>>>> repo can weigh in. I wouldn't expect "parsing only IPMI-format EEPROMs" is a >>>>>>>> design but just the current state of implementation. >>>>>>> So long as it can function properly in its current design, i have no >>>>>>> problem with FruDevice adding more parsing types. In fact, there's >>>>>>> already patchsets out to add Linkedins proprietary fru type to >>>>>>> FruDevice, so in terms of design, Patricks request seems reasonable. >>>>>> Got it. Then I will push the code to EM.