From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933163AbcE0Jrn (ORCPT ); Fri, 27 May 2016 05:47:43 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34009 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932611AbcE0Jrk (ORCPT ); Fri, 27 May 2016 05:47:40 -0400 Date: Fri, 27 May 2016 11:47:36 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Thorsten Leemhuis Cc: Jan C Peters , David =?utf-8?Q?Santamar=C3=ADa?= Rogado , Peter Saunderson , Jean Delvare , Guenter Roeck , Tolga Cakir , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dell-smm-hwmon: Cache fan_type() calls and use fan_status() for fan detection Message-ID: <20160527094736.GL29844@pali> References: <1463842001-17785-1-git-send-email-pali.rohar@gmail.com> <2fc3a0a0-950d-845c-200d-7a89b57270f6@leemhuis.info> <201605261751.47334@pali> <47313829-b0f7-9aca-443f-48ea2bdb7316@leemhuis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47313829-b0f7-9aca-443f-48ea2bdb7316@leemhuis.info> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 27 May 2016 10:00:05 Thorsten Leemhuis wrote: > 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). Ideally both. > > 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 I do not see any long taking SMM call here. Are you really sure that your machine freeze when loading or using dell-smm-hwmon? -- Pali Rohár pali.rohar@gmail.com