Received: by 10.223.185.116 with SMTP id b49csp1307933wrg; Fri, 23 Feb 2018 16:02:03 -0800 (PST) X-Google-Smtp-Source: AH8x226O+OB69F7QtQCgkp9Lc/zOd17/2lJm1YFI84cSljan0NhJANHxZpgD7yJ0CA/MHvlXTw2B X-Received: by 2002:a17:902:d205:: with SMTP id t5-v6mr3362089ply.322.1519430523829; Fri, 23 Feb 2018 16:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519430523; cv=none; d=google.com; s=arc-20160816; b=q6e0ME9oAf0RwHw3oAYuTY9YKhoxLewDS81+1GCfLIRUrHg4p+SayKjrnzn+61kaSS H7Jv7IyDpm2XeOR+zQD8GGU2E7jwf/k93dtuDlO0WfoRx/LgOihFiiAxopzrKPrWI4Kq vc0ni+jdOXjNhaSYrCfJ5W6iXTx9PZuFWzRMcbGI2qiXTOThIpiuOaeZ2mD91oYXdLe1 GIQahhFRFg7tEal/RRz32vUsksV3xOwdDgGtdxxOM8IfTozV5yGGZBOPHnPAHuVD7T/T HY+x7ySpiQfkJg6hHES9U5Se9XTKS0T3bLAFJACkNejqMcwNjFcy9dWMSZpazKxQsBXZ dbAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fVzH3b+seDJbUEtOtN6/TDOtnCpwPcNbN4E0ahurEPY=; b=nyhYL7hRuheiLRWFu6L5D7DRIxV7Eh75IOzl3uW5sAjXySb6mxQ3N57AxGroC6NA0g mIRH8NdQUbiYq2PK1TQIjHj4oOiUthTbnWO6qEf/H+s7u138S5Fi2D8oc2Wfm6/1m1ol ndWYirnCNESfCoiiY+NCOlkDa5EQV+922/o9Edao+oOhI3MlfeDN30FClUbkyKpVd5WG v7vw2N8JDaRlpXAVkbGVJ8KAj3BUPz3P4eimLdbIArlEvhLm2XsxUsE2TTCgn0uGDPzm +86aelnk/t3nwteQrxgjt2vMmyRqO1e/p6T2CevTSmNkjGh2DQvUOHjTZ1EznYsjHsat 5gXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jj3N/RVa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si2142612pgs.149.2018.02.23.16.01.48; Fri, 23 Feb 2018 16:02:03 -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=@gmail.com header.s=20161025 header.b=Jj3N/RVa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752217AbeBXABL (ORCPT + 99 others); Fri, 23 Feb 2018 19:01:11 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:43765 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751422AbeBXABJ (ORCPT ); Fri, 23 Feb 2018 19:01:09 -0500 Received: by mail-qt0-f169.google.com with SMTP id d26so12612689qtk.10; Fri, 23 Feb 2018 16:01:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fVzH3b+seDJbUEtOtN6/TDOtnCpwPcNbN4E0ahurEPY=; b=Jj3N/RVaeQb1BcTDbKF9tQSEDDpEMN0Lr065t7XRoCe12DAWRxT1DXObRQHl5NpM15 BxBT4pXThph4m5tBWYhjzLKD5Php5UlqtBj4fdQ87b0LTwMP6v5xTV7U3ckzNcIOQDGv hQ7I/RWvBar7v7CqitZIFZchSRs3epiYl1yYdLSoENMVOC7VMpobwzA60dmGa16nW2X8 gjUI8QFjjoPzqfYnBC2GcMe/mYDuX24qoEXmNfphy5wI/vD0Kpld98ovTLr0UlZE4zFg XaUJBPC2nSc352vNeWUtX4DDBGtQpv3oM7132qyJMcxvmKQk4PW2Oh4uk5vQfzlYs5Y3 /Lpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fVzH3b+seDJbUEtOtN6/TDOtnCpwPcNbN4E0ahurEPY=; b=AWrEx8McZ0YhfLJci55qC6ACZY3lgletPeqfQRv8FOiYtM7k8bvYZy3S4pA8Spa0Lh aW/E+gn4a8vUrJsEy5wkTv3SuItsgxnrjWESEtOTOx6ysb3WoGdq03y/ucB4HL6vsaTV gSgQ/L7AWxONYH2tW4mLGEHXw/juLWxA+H8/2oJfSOuhvEq6C7dCcB/eGx+ytKSUo+4P qMHXJeebbM7eEOzAWPjH3ntZnWWGlyQ61TNIpAXaAAe5/3Iw1bUGQwmXGAX4aouE4cGi s+tduR/6mdaGAB+6WL11Aeun3kGo58MHn2e0ECUIcAj7U0ywboKFmYfzekL+OMwBOMpS +5WQ== X-Gm-Message-State: APf1xPA+sGz749M80HZC7dghSsqdIxfhuWocTmNEUwTMR2+ut9udxMB6 V9pXYygPD42KbP53LQhb7WiAtKo3fzj8pA+aCFk= X-Received: by 10.237.57.197 with SMTP id m63mr5516365qte.249.1519430468294; Fri, 23 Feb 2018 16:01:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.52.247 with HTTP; Fri, 23 Feb 2018 16:00:47 -0800 (PST) In-Reply-To: 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> <20180222003720.GA25250@lunn.ch> From: Miguel Ojeda Date: Sat, 24 Feb 2018 01:00:47 +0100 Message-ID: Subject: Re: [PATCH v2 7/8] [PATCH 7/8] drivers/hwmon: Add a generic PECI hwmon client driver To: Jae Hyun Yoo Cc: Andrew Lunn , Guenter Roeck , joel@jms.id.au, andrew@aj.id.au, Arnd Bergmann , Greg KH , jdelvare@suse.com, benh@kernel.crashing.org, linux-kernel , linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 22, 2018 at 2:29 AM, Jae Hyun Yoo wrote: > On 2/21/2018 4:37 PM, Andrew Lunn wrote: >>> >>> 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 >> > > That seems like a possible option. I'll rewrite the hwmon driver again like > that. > > Thanks for the good idea. :) By the way, in the rewrite, please try to avoid the create*workqueue() functions (they are deprecated :). Cheers, Miguel > > Jae