Received: by 10.223.185.116 with SMTP id b49csp1321299wrg; Wed, 21 Feb 2018 16:39:27 -0800 (PST) X-Google-Smtp-Source: AH8x225LX2zYB2497LKNgO2tjuAy+JsEExJKMIyEj4ySYvjOCmKTzVXSR+SrO/NgCq8W5S6ceJ4B X-Received: by 2002:a17:902:8ec7:: with SMTP id x7-v6mr4739866plo.330.1519259967690; Wed, 21 Feb 2018 16:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519259967; cv=none; d=google.com; s=arc-20160816; b=Xr0+XvVEOOKfl/3qDBT2T8RkjkZHvgrMxw4UjkKKETggLcQQKzbPY84aQ7jmwrZaSB StIpQOA1+uwwA2GdBSLYMVywliRqBfZ9jWRZmBj0tyXlM5+6mMA2UwYaiv9k7TuGbXXN k/JX4OLoKzoPo5Yu1tF2Tdfoq2dd2S7UoH5Uq4u36Gh5rmSTiBq5pE4q2SGfuqRH3hoH 5bv6k+7P3L6uu0eggOWLuDv1x9u1zPoCGNgyAEkCFmprEGVreprvZKfGEdNhsJGv9OJh NpC+vWf+S72AdBrEv4Dh+UOoaKdwUT0J1CQPJ+5cRGem8RpTQ+M0xAlnrq40Ie5yNVee 51pg== 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:dkim-signature:arc-authentication-results; bh=kiMGOIPGWWr68BNAvR7Mq34VCt2OkZo3EsFWRY27ocs=; b=xc2DDEje/SzZM6LzBo/ZL+RFuOoIsaGdau3MXUPJGDNMmZXkGq7JG3XDxHw7ruI6LG TFG/W/gCS6WTze4Xat+17PKXG9Cz7+fIR5KcHADAyUx8Z3OKRmSiARgKqgEmqZeDz2aT O1Bsx5Ml15FDQ2mED10+eFtxTze2Wi1p7KO7CSVn1hm6rOoBDVjCjqNudt/Zl63BTb2Q Jh7LNOOHrL5xqfv4N4BM6gQ4HNeAr6D7RM5IyK/WzktHFYr5QTMD/FfOAeZuA9/WKjYN zvE7U9t+hTX/p8Wgg5///5E0KhFKmr2Lrnt6JxkGp3WMV08h7RDm2hYtHeEs3GwsXOSw ZBlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=zLjSbd+e; 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 i14si243488pgr.733.2018.02.21.16.39.10; Wed, 21 Feb 2018 16:39:27 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=zLjSbd+e; 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 S1751573AbeBVAhx (ORCPT + 99 others); Wed, 21 Feb 2018 19:37:53 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:33552 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270AbeBVAhw (ORCPT ); Wed, 21 Feb 2018 19:37:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=kiMGOIPGWWr68BNAvR7Mq34VCt2OkZo3EsFWRY27ocs=; b=zLjSbd+ezg0+KiBcXvolyc7RlUbcvKPLk0eOiTk+hbLZjfpCY2xYId/Af7UZxs8iuhj9bk2W2/p6vxe9VqzEoVva/U8fQ8lebceQ/rd+Fbv5WkfMYxHzU4b6EXQ2UCbujfPh7crnu9gwJX/dKRH7/QsjwTcEa7Nc4b+OphlvXTw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1eoesy-0003g7-7l; Thu, 22 Feb 2018 01:37:20 +0100 Date: Thu, 22 Feb 2018 01:37:20 +0100 From: Andrew Lunn To: Jae Hyun Yoo Cc: Guenter Roeck , joel@jms.id.au, andrew@aj.id.au, arnd@arndb.de, gregkh@linuxfoundation.org, jdelvare@suse.com, benh@kernel.crashing.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH v2 7/8] [PATCH 7/8] drivers/hwmon: Add a generic PECI hwmon client driver Message-ID: <20180222003720.GA25250@lunn.ch> References: <20180221161606.32247-1-jae.hyun.yoo@linux.intel.com> <20180221161606.32247-8-jae.hyun.yoo@linux.intel.com> <20180221182608.GA11635@roeck-us.net> <618f34cd-ee43-d8e4-4fb0-3c23bf03835f@linux.intel.com> <20180221214859.GA30263@roeck-us.net> <576a50c6-c302-654c-ceb3-aaf820b7738a@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <576a50c6-c302-654c-ceb3-aaf820b7738a@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > But even with this change, it still needs to use delayed creation > because BMC side kernel doesn't know how many DIMMs are populated on > a remote server before the remote server completes its memory > training and testing in BIOS, but it needs to check the remote > server's CPU temperature as immediate as possible to make > appropriate thermal control based on the remote CPU's temperature to > avoid any critical thermal issue. What would be a better solution in > this case? You could change this driver so that it supports one DIMM. Move the 'hotplug' part into another driver which creates and destroys instances of the hwmon DIMM device as the DIMMS come and go. Also, do you need to handle CPU hotplug? You could split the CPU temperature part into a separate hwmon driver? And again create and destroy devices as CPUs come and go? Andrew