Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp52994imd; Wed, 31 Oct 2018 14:30:18 -0700 (PDT) X-Google-Smtp-Source: AJdET5f+DzYOtsEvd/nUA5m4c2r4YSnVez0KQYIMpxCpXg/955U39c0hJtTd4JpWk9v6dkJAaxwf X-Received: by 2002:a63:f710:: with SMTP id x16mr4742219pgh.322.1541021418674; Wed, 31 Oct 2018 14:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541021418; cv=none; d=google.com; s=arc-20160816; b=w71BpIRSP9gv0DDOsisWFjYqiy8jShiCVNX7zPsHjZBbHMFQOyk7izD7yCJf77IvZu iaUtDlo5AVPqg9MnLQYKfxQBUSYCXphX5n3WQCwR5G4YIX9Ox1zR+QEGWSexjpslgc0Q XxB09faU03L8ga1xg1oLSZM4IsuCL+S5+8W/OjCAbzmOEFYHvgM37jU727FkQfr9xNLL Xa3EqrSDiIszLFMMEBaDD2ZfyUYjRZgtmcWedX/PQ2INu+H3ro5rhh2SfkxRIjl1xiPV CBGSseI/nMU3c/BRcep72bJ4lOWWcCeI156uVjtlO58WQil81uwPUOdEpVBucLE/kfMy 5izw== 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=0G85Kx39zGxZ8q3L47ldXCNqZ5BBMx7UP+SlzKDVKpQ=; b=taTRHq/R7CBg8yWHA+m4MDoRB3WmeSEeUr/Ugd9srKsU6KrjUfuJJNFQnQrbqVCiVm l2xD3tq5h3F5JMpdme0pNBTVOT30WJt0z0Jx+cTrn57DR7dmbTKqet0tpOVBOPLDWp8y 7ZH1QxYEKLTDrRqAPxNdrCoBFmqG7kLgXa+MO4zcV/SocpiufybRnXFnYxstZA/rxVj9 OJk5bLWIG+4T+6hlzd8LETiGF5B4MwiF6qPg0Sh/bJeBc+BwuZf07kvzlbywfmnADtOP /jVzJ9I+hqtazzo8CIggZHvxYiCLGPOS8OT91R9TqZqG4aaMwXZyCBCPhVyGBWVhze4X +hig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=c3AdRRpe; 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 v13-v6si14491976pgf.435.2018.10.31.14.30.01; Wed, 31 Oct 2018 14:30:18 -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=c3AdRRpe; 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 S1726012AbeKAG1P (ORCPT + 99 others); Thu, 1 Nov 2018 02:27:15 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:45156 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725736AbeKAG1P (ORCPT ); Thu, 1 Nov 2018 02:27:15 -0400 Received: by mail-yb1-f193.google.com with SMTP id 131-v6so7271844ybe.12 for ; Wed, 31 Oct 2018 14:27:25 -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=0G85Kx39zGxZ8q3L47ldXCNqZ5BBMx7UP+SlzKDVKpQ=; b=c3AdRRpeyp8+YJN6JpQrI71DHsfwkrXm1/NMqs+5a0mp5Jadcy3o91bY6NrvNZiFev 8H0A6QyBnDRkDEiRsk6I24CKPHhsn1JMPgCXLZ/QleMXlS+NIDYHF58VcJ+7fzInSHtL f4sgRyoPMF/NypZeYO1vY8oRu8/VCtERzTzwlQo2MHSr+p3TekVCQrcwBESmQqYn9it4 ZMXZPWQqosgsv8ALfb9h1XJG4MW/R6o6awjKR9gOxIQ5b7I5OQ8NnkSSEF24V3XKPB+3 VtzHKHmR+crwgKkuMlgvgUAoZTgzPmEZ2S36rjkOjdApRum+ZdxMEfjnFKrIX7usIMVf FIjQ== 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=0G85Kx39zGxZ8q3L47ldXCNqZ5BBMx7UP+SlzKDVKpQ=; b=p/SzP9hxGQcH1rBVS5VUp0U2vRNRql91a3NZX/vSbbo1Tzj4mRu3+1nrTZItvYTxN2 OHNZVw6HmweZ+hOsNdWk5mqr1udwdRUwKDqD76g+AK9pRrPMoQOz8cGp1LaSdvRygz4Q TaHRI8Yo1Guwi6g8ji9j6v4THvZqCABg+613C15SWHvQjxWIzMIZ8WR/HUjkNWYd54n4 1fs0tc9U1KgTUf4d9NXnFAQ75CMlghD+Jz7ZzOPkKG0pbnJIkxeN4dh4IvBA3EthOF9b /KfSwxcVXhCCnQczmhSvwO8kvvvN28shNX/+OWMmnRQGA9c/UAwU2hUMs9b3CgDo2qny 8CCg== X-Gm-Message-State: AGRZ1gKTKbvHEFvYMUdV+n95PajkBMe1TRhPVhz6ka8044HoiNc+QrWa +9+qIjYsnzBMWvzEjYnkyrEHTQ== X-Received: by 2002:a25:2c93:: with SMTP id s141-v6mr4831307ybs.193.1541021244888; Wed, 31 Oct 2018 14:27:24 -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 d63-v6sm5694499ywf.100.2018.10.31.14.27.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 14:27:24 -0700 (PDT) Date: Wed, 31 Oct 2018 17:27:22 -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 0/4] ntb: idt: Add hwmon temperature sensor interface Message-ID: <20181031212721.GA2565@kudzu.us> References: <20180714115834.3350-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180714115834.3350-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 Sat, Jul 14, 2018 at 02:58:30PM +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. > > Signed-off-by: Serge Semin FYI, I'm waiting on you to correct the kbuild issues. I have been assuming you knew this, but given the lack of follow-up patches I am beginning to this you might believe I'm ignoring them. I'm not :) 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 >