From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932655AbcE0IAL (ORCPT ); Fri, 27 May 2016 04:00:11 -0400 Received: from basicbox7.server-home.net ([195.137.212.29]:50415 "EHLO basicbox7.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932077AbcE0IAJ (ORCPT ); Fri, 27 May 2016 04:00:09 -0400 Subject: Re: [PATCH] dell-smm-hwmon: Cache fan_type() calls and use fan_status() for fan detection To: =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <1463842001-17785-1-git-send-email-pali.rohar@gmail.com> <2fc3a0a0-950d-845c-200d-7a89b57270f6@leemhuis.info> <201605261751.47334@pali> Cc: Jan C Peters , =?UTF-8?Q?David_Santamar=c3=ada_Rogado?= , Peter Saunderson , Jean Delvare , Guenter Roeck , Tolga Cakir , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org From: Thorsten Leemhuis Message-ID: <47313829-b0f7-9aca-443f-48ea2bdb7316@leemhuis.info> Date: Fri, 27 May 2016 10:00:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <201605261751.47334@pali> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pali Rohár wrote on 26.05.2016 17:51: > On Thursday 26 May 2016 17:39:57 Thorsten Leemhuis wrote: >> > I need to know if this patch fixes problem on Dell Studio XPS 8000 >> > and Dell Studio XPS 8100 machines, so we can revert git commits: >> > 6220f4ebd7b4 ("hwmon: (dell-smm) Blacklist Dell Studio XPS 8000") >> > a4b45b25f18d ("hwmon: (dell-smm) Blacklist Dell Studio XPS 8100") >> Just checked: Sorry, that patch did not fix the CPU fan speed issue >> on my XPS 8000, so there is afaics no reason to revert 6220f4ebd7b4 >> :-/ > Please, can you apply patch "dell-smm-hwmon: In debug mode log duration > of SMM calls" On top of "Cache fan_type() calls and use fan_status() for fan detection" or with that patch reverted? I did the latter and tested with 4.6 (just mentioning it here in case it matters). > and compile dell-smm-hwmon in debug mode to tell us which > SMM call takes too long? This is probably they key for that XPS > problems... [ 5.941037] dell_smm_hwmon: smm(0xfea3 0x0000) = 0x4147 (took 14470 usecs) [ 5.941139] dell_smm_hwmon: smm(0x11a3 0x0000) = 0xffff (took 93 usecs) [ 5.941236] dell_smm_hwmon: smm(0x11a3 0x0001) = 0xffff (took 93 usecs) [ 5.941331] dell_smm_hwmon: smm(0x11a3 0x0002) = 0xffff (took 92 usecs) [ 5.941427] dell_smm_hwmon: smm(0x11a3 0x0003) = 0xffff (took 92 usecs) [ 5.941526] dell_smm_hwmon: smm(0x03a3 0x0000) = 0x0000 (took 95 usecs) [ 5.941625] dell_smm_hwmon: smm(0x03a3 0x0001) = 0x0001 (took 95 usecs) HTH, CU, knurd