Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp922457imd; Thu, 1 Nov 2018 07:38:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5e8H4WJP3VZOSp4T3qHDLxed29TaJF862Sa5k46tE+DdGQ4QPKDXTmUlMWxmMjhZuXb9fP9 X-Received: by 2002:a17:902:aa8d:: with SMTP id d13-v6mr8007175plr.74.1541083103234; Thu, 01 Nov 2018 07:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541083103; cv=none; d=google.com; s=arc-20160816; b=m169uR7ELzog15dcdFU4IpEMyjoRaheVE+sOwIfjrKLvLOpGuJv9jG5j62jb0beSZ8 AZM6z4bN7XgqiHc+l4KrHRJffMI2vJ/dRvDe5DfkbqJkCNFIOuPURExSB84DxIiwvdNa O7lBEJIl+j3mIjFQ8MXYFmchcPGeLV3JUKTEq0U6rhWZ58DuyUU33v3t3WZ5GaLkJIn3 rNhYRFQ1Vi/ZbMZz4cPKHvd8n7GlyhwmYxX9RmrLNpSqgcMd1ulvSmEmrlIEaNYLcv3a Ii+ptDw6sx94XbQSiWF5XpUii6aDULlmVkpEhsegmd3H0zGaYjmNlfqkVsK0Ll063C27 opcw== 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; bh=fElzWe2NNg7U5IzTkze/2y/3Xx+Q4y3yBOMkhfvRtA4=; b=J62zWsG2sY74JUWWi2eiZoodVP6IIs+WFOvZ3ngGgrv7Y8TEQh5Mnsd6q4aqK3xtJg yjmSSG2LU82ZgCJtXOHgi+EJzlyagoX1jygZpEMiVoHLtobGFv2fzeCVoI0rfRUTlQE2 XA3ZStGi7a7n7teCXRhd73USgzZKvuc/mABbelXiDxFJ0fDDROwadoNNrXKMOOxfE8BC ZA7bG5TDa4smoQ8yvAEQfKou4NE/viLLnstIDgIVHJqkyjFUxMasGVD02stBZEaMBIms d3dV1aORlfAXAe7TKaBqA4+yzZuvcE5llNzeY1Tpd4jRRTr/yj8y17+8SInDIpk/MpEQ +NGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=vrbI7anJ; 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 c18-v6si32091447pfc.153.2018.11.01.07.38.09; Thu, 01 Nov 2018 07:38:23 -0700 (PDT) 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=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=vrbI7anJ; 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 S1728840AbeKAXih (ORCPT + 99 others); Thu, 1 Nov 2018 19:38:37 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:43188 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728122AbeKAXih (ORCPT ); Thu, 1 Nov 2018 19:38:37 -0400 Received: by mail-yw1-f65.google.com with SMTP id j75-v6so7972498ywj.10 for ; Thu, 01 Nov 2018 07:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fElzWe2NNg7U5IzTkze/2y/3Xx+Q4y3yBOMkhfvRtA4=; b=vrbI7anJ+W8dR+iY6HtRpTf9lC9nlFz5D9Zxs0Crfq/l9K8w0ZnGaJklc74wPQKm0O fgLCTbU7OSa95yY18aLDztEwfELQFzdQaJkdFJoF1idhp0BASn2P4NeqzivBY9dqvGgY +SeOPYPodGqP8GobhZNPuWjNUFeoHcToinGYjei5sonB6jtMh1eJ+BwnI8sW/aQ+xLov Yi9iO+/jBMOxQM70N4ENQ4qLAWl5VjuSXAvykGvawZ8sIEUp0vu0C9J1Wc2UWGwPinNl p85mzpEvUs5DJW+Nr4d97rDwATcsi7PXEcDwJ+BHDtH4MrRiR0XdlO5lqYQwTNzIU2mu 96Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fElzWe2NNg7U5IzTkze/2y/3Xx+Q4y3yBOMkhfvRtA4=; b=e/QdraLaz2C4JFdmrAGtRmBmZvRpbQQkeYPEfZuAEcqAHEt7R6IY9++MA8XeYEbdmF 0noQdENLVUG18AmCxAMt31lpTypuJl8T7D2UsG+gCNCug+dYZzK6wzuM+zMfgbSMLSGM d93mQe0cnMJ4CvNrxp814R1qA0UJQ3+TjEt+bzSZHl6e/w8ds69FCx0o2Wx2iWWxs4Cv 1FaGcHiWbTAZg76dfWWFcFgFesGAuy0Udn/3Dx7ZDnZ/58NkiSB7hx7q+o4PILpTJL37 LF75lSMk0xxbrCxIYeWZ4Q+SGWoceCxVpVaeZiGrvER8tMKpwm009ob5CeElLKVTbbct UmWw== X-Gm-Message-State: AGRZ1gJNANpEoZVd5bWpmXJ71gqqAOcH+W8W7Mrp+m+ZnGnwNVrO5ZFv rxdm+ZP4RIMbhQFYUOnwOFWFPA== X-Received: by 2002:a0d:ebd7:: with SMTP id u206-v6mr7843304ywe.40.1541082922540; Thu, 01 Nov 2018 07:35:22 -0700 (PDT) Received: from kudzu.us (76-230-155-4.lightspeed.rlghnc.sbcglobal.net. [76.230.155.4]) by smtp.gmail.com with ESMTPSA id x3-v6sm6603045ywc.56.2018.11.01.07.35.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 07:35:22 -0700 (PDT) Date: Thu, 1 Nov 2018 10:35:20 -0400 From: Jon Mason To: Serge Semin Cc: dave.jiang@intel.com, allenbh@gmail.com, Sergey.Semin@t-platforms.ru, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/4] ntb: idt: Add hwmon temperature sensor interface Message-ID: <20181101143520.GA1939@kudzu.us> References: <20180714115834.3350-1-fancer.lancer@gmail.com> <20180717092437.18918-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180717092437.18918-1-fancer.lancer@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 17, 2018 at 12:24:33PM +0300, Serge Semin wrote: > IDT PCIe-switches are equipped with an embedded temperature sensor. It > works within the range [0; 127.5]C with a resolution of 0.5C. It can > be used to monitor the chip core temperature so to have prevent it from > possible overheating. It might be very topical for the chip, since it > gets heated like in hell especially if ASPM isn't enabled. > > Other than the current sampled temperatur, the sensor interface exposes > history registors with lowest and highest measured temperature, thresholds > and alarm IRQs enabled/disable bits, ADC/filter settings. The device manual > states that the switch is able to generate a msi interrupt on PCIe upstreams > if the temperature crosses one of three configurable thresholds. But in > practice we discovered that the enable/disable threshold IRQs bits interface > is very broken (see the third patch commit message), so it can't be used > to create the hwmon alarm interface. As the result we had to remove the > already available temperature sensor IRQ handler and disable the corresponding > interrupt. > > Current version of the driver provides following standard hwmon sysfs > files: temperature input, lowest and highest measured temperature > with possibility to reset the history, temperature offset. The rest of the > nodes can't be safely implemented for the chip due to the described issues. > > Changelog v2: > - Add "select HWMON" to the NTB_IDT kconfig > > Signed-off-by: Serge Semin was waiting on you to address the kbuild errors, and it appears you did already. Somehow I missed v2 of this series and just found it now. Sorry :( Applied to the ntb-next branch Thanks, Jon > > Serge Semin (4): > ntb: idt: Alter temperature read method > ntb: idt: Add basic hwmon sysfs interface > ntb: idt: Discard temperature sensor IRQ handler > ntb: idt: Alter the driver info comments > > drivers/ntb/hw/idt/Kconfig | 4 +- > drivers/ntb/hw/idt/ntb_hw_idt.c | 317 ++++++++++++++++++++++++++++++++++------ > drivers/ntb/hw/idt/ntb_hw_idt.h | 87 ++++++++++- > 3 files changed, 353 insertions(+), 55 deletions(-) > > -- > 2.12.0 >