Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1713640pxb; Wed, 9 Feb 2022 02:55:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAIQLoQo4DEl4Py+4bK6HRuxCgCqBd/It1zVjZZ3JYHc2XaEsi0G+Pro9cCWrOrB6szNVJ X-Received: by 2002:a62:fb19:: with SMTP id x25mr955501pfm.58.1644404140948; Wed, 09 Feb 2022 02:55:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644404140; cv=none; d=google.com; s=arc-20160816; b=vZzmos1mFUFx7P2Kok4VvFgi4lUdIErUaSdu7Grh5tuQFPzE0QuSrAQpHdFyRaIUjZ xepdUtL/G7WjsNH0aqpqPfSSeFQi2IKYFmY3DwgBUPVw9Vgnq90zrO4xADXWfHqS2rGl 5yOsWjPLFm0baKWSI1LflhcHSUrcrtbJ2Djz8a4F3ORyZmFw9mktYeRfmIqB/H3gadmn RxmogPVuvkcPp8bpgDs7gjmC4pe0wYO2As+agvDQhGhxtOFHkRJronINy1JPwMRN/qBZ oDYt1SRagZzF5JZsIvm9x57aJujCeRwmU8RuHmfN6qxRkpEPfexmHmOMgorvPDUvmmTQ PLKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NcB9gVIjMBjGgdZ9AjtkcBv3gMoo7EkfWZ8DssZzUZc=; b=e4p/KDYw36o7TxAtCZirTTzr96RbxdbcfLB69YgzQukIb8tekOe+58wCddTCLR7Cq8 uuinXZJ7iF4dA1ajzlaWw2pNlNaGbHS4QVuAOVa7oZsP0AYrPERxD3XwNNOyaMNaIbLf u5Lb/UB49IDRMjT1h/7bpm0fGay8Kj0jI3SZeA2FhM7XrCRN1P1q1iD2hkHnS6NJ57zf G+CkPNGt0i3gYvo6nF5kUMLb74pRPpC/JgSzrOgyLhxlxJqjlSjP+u/OVuBzVkY6IbbZ WjN7p8aFhJGU8B8GuPpiaaQaVv+G0qt7nYkUTrm/CIiDsSTw9/N8+A07OwfCOdZNPSPV 7Hvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=gVZCqvKD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g6si13609804pfv.118.2022.02.09.02.55.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:55:40 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=gVZCqvKD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9AE0E0BEE87; Wed, 9 Feb 2022 01:28:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239807AbiBGTdb (ORCPT + 99 others); Mon, 7 Feb 2022 14:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240570AbiBGTbQ (ORCPT ); Mon, 7 Feb 2022 14:31:16 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7454BC0401E2 for ; Mon, 7 Feb 2022 11:31:15 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 30676 invoked from network); 7 Feb 2022 20:31:11 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1644262271; bh=NcB9gVIjMBjGgdZ9AjtkcBv3gMoo7EkfWZ8DssZzUZc=; h=Subject:To:Cc:From; b=gVZCqvKDnZVfPgusVMyDK+QwLyDaymw9BcNNOa6OTYRNXvtiuDu6jCuH58VoEv1M3 tk8R0vinsLujdFXbUywNyiivhhmoiMhV4j2SXQipxq3wZaly+OkEGvJcxvXuMaqEIq yKhkD0CmidAj351JzJWsqN/ni+FrWH28+Hcqg8fQ= Received: from aaem217.neoplus.adsl.tpnet.pl (HELO [192.168.1.22]) (mat.jonczyk@o2.pl@[83.4.116.217]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 7 Feb 2022 20:31:11 +0100 Message-ID: Date: Mon, 7 Feb 2022 20:31:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 1/2] x86/Kconfig: move and modify CONFIG_I8K Content-Language: en-GB To: Hans de Goede , linux-kernel@vger.kernel.org, x86@kernel.org, linux-hwmon@vger.kernel.org Cc: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Jean Delvare , Guenter Roeck , Mark Gross References: <20220207182940.242838-1-mat.jonczyk@o2.pl> <43bfd6d9-58a3-6f9c-0848-4ef147552afb@redhat.com> From: =?UTF-8?Q?Mateusz_Jo=c5=84czyk?= In-Reply-To: <43bfd6d9-58a3-6f9c-0848-4ef147552afb@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-WP-MailID: 39cfd62f4e752cf0cc3fb42c12cb8ded X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [UUNE] X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org W dniu 07.02.2022 o 19:51, Hans de Goede pisze: > Hi, > > On 2/7/22 19:29, Mateusz Jończyk wrote: >> In Kconfig, inside the "Processor type and features" menu, there is >> the CONFIG_I8K option: "Dell i8k legacy laptop support". This is >> very confusing - enabling CONFIG_I8K is not required for the kernel to >> support old Dell laptops. This option is specific to the dell-smm-hwmon >> driver, which mostly exports some hardware monitoring information and >> allows the user to change fan speed. >> >> This option is misplaced, so move CONFIG_I8K to drivers/hwmon/Kconfig, >> where it belongs. >> >> Also, modify the dependency order - change >> select SENSORS_DELL_SMM >> to >> depends on SENSORS_DELL_SMM >> as it is just a configuration option of dell-smm-hwmon. This includes >> changing the option type from tristate to bool. It was tristate because >> it could select CONFIG_SENSORS_DELL_SMM=m . >> >> When running "make oldconfig" on configurations with >> CONFIG_SENSORS_DELL_SMM enabled , this change will result in an >> additional question (which could be printed several times during >> bisecting). I think that tidying up the configuration is worth it, >> though. >> >> Next patch tweaks the description of CONFIG_I8K. >> >> [snip] > For other reviewers, the only consumer of the CONFIG_I8K > option is drivers/hwmon/dell-smm-hwmon.c > which has a couple of: > "#if IS_ENABLED(CONFIG_I8K)" checks to enable its old > legacy /proc/i8k interface. > > So this move definitely makes sense. > > I wonder if it would not be better to just completely drop > the old /proc/i8k interface though ? No!!! I use it. The problem is that the laptop (2010-ish Dell Latitude E6500) has only three fan power levels: off, mild and full. So I think it is not well-suited to traditional fancontrol. On the other hand, i8kmon (slightly modified), which is designed for a small number of fan power levels, works well. > With that said, this series looks good to me, so: > > Reviewed-by: Hans de Goede > > for the series. Thanks, Mateusz > Regards, > > Hans > >