Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4284872ybc; Fri, 15 Nov 2019 02:04:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwxaBiAZCNtocIvvKmSjSCkixZxfzsBv37VhtN4ge+V3aQOOYnUo6O3UXBUKJfCiZSuPWFl X-Received: by 2002:adf:e28f:: with SMTP id v15mr13763809wri.130.1573812282086; Fri, 15 Nov 2019 02:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573812282; cv=none; d=google.com; s=arc-20160816; b=QH5gl0yYzz83ikTOIa/iUIBo8tpXx+f5aV4yN5t4YE3LWidBwSGNqDaOlPf/2rKNuq FUcQE302vr3Ka56YjwJuV5jFtnVO0WMAR5iM2T2aw3XDROlMwMDmdnxBVy/Jn5KH+GXq OnugKKQ9+T1OO23XPnPbZoQ/ANC5ttKeciDCQEns9OL9Y3r1pDA3aItM3L20WaC2MSMS Md6mnv/KGAhC43WjRmBVt4hlfx3Uc8yWEwp3pv5w3dHDpwyvhoe0bhrCG8wmJfcndWLG MT2Xs8NnK8Ntd5M6JaejDrCshZSV/FpmxHuTiMwUsx+MzoJ2QBH/1NMoexl9yOj8mVjh fJrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:cc:to:subject; bh=rg3hGZBDQSiRPycRFPdxI9xvlMGSW0TQ5gc7oY6F0eY=; b=Jaybm8YPgTc4Wtv6XyFLLN/621MUD9Yf8geG0WjIPonIDOr2zoH13TFvkJKbb9U/mO Do0hark5r6nEu8SBTqX4KpvYSd2Gzm40369IkaEif8AvJdSmQ7fuMA484JqnUADZA3cx g7vTFhu2+O3RZ/K/F35R01WxYoq0pykhIwibAY1Db6bmo4igt7RFClfMRmDz2+jYqtTx efh04reE7r+A549StTGLE5ut/6Ow+dAW1DC7CSA7TDuH/Oq5pTZLCbghsAkUHQ4qquSK NL0JqtULGfGS+ZcWx91Df4Y71N0e3usSjEZf+LsYuUS5cWM0nJ+RQTTPh0VryfirOhXs PSSA== ARC-Authentication-Results: i=1; mx.google.com; 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 b17si5907656edj.417.2019.11.15.02.04.17; Fri, 15 Nov 2019 02:04:42 -0800 (PST) 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; 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 S1727192AbfKOKCN (ORCPT + 99 others); Fri, 15 Nov 2019 05:02:13 -0500 Received: from pietrobattiston.it ([92.243.7.39]:48196 "EHLO jauntuale.pietrobattiston.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727004AbfKOKCN (ORCPT ); Fri, 15 Nov 2019 05:02:13 -0500 X-Greylist: delayed 620 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Nov 2019 05:02:10 EST Received: from amalgama (unknown [IPv6:2a02:578:85b0:500:6544:6148:b2c5:4b58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: giovanni) by jauntuale.pietrobattiston.it (Postfix) with ESMTPSA id 267B1E1E7B; Fri, 15 Nov 2019 10:51:49 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by amalgama (Postfix) with ESMTP id 6A7A83C01EF; Fri, 15 Nov 2019 10:51:48 +0100 (CET) Subject: Re: [PATCH] hwmon: (dell-smm-hwmon) Disable BIOS fan control on SET_FAN To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Guenter Roeck Cc: Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191114211408.22123-1-gio@debian.org> <20191114213901.GA28532@roeck-us.net> <20191114215154.hze2avicv7pwiksp@pali> From: Giovanni Mascellani Autocrypt: addr=gio@debian.org; prefer-encrypt=mutual; keydata= mQINBEuFs48BEACkd+0TjHZ81/gFb0yEsiVhFJ5S3CaAQcFloMQ0PO/CPv4fMpOzL3tfko5Y KONBxZGE2NKsRz/z1V/84nzCWMxJdNV/c5hahuoCkCnxmoHkBsSgCzm6QgAc3c+QAZa71oRr rJxpH9TyvjMimq1ZNBEVY+vgKCWkkuBqil/UYwn3YVISwlHDSc2amKCA+dtb9EQv8oTJcr7C bACH1MqszW0kKNJrAvfkT2vnawhUB0bJeqLGUN8/F+2DDbHfqNPCEOMJY78/Set+m4uvgJyN btZ7fa6FSEsk22fT+KxyPVDbEktdECGz3oupYqh7pZSManqEIvDOzHKWgvjo2yCF3dzU/ykZ gOIk2AQ3DeSB6llHbHA2/2Ms+RH6eCb8Bx+GJ5Ta5DUNQh3DZyuWR/Doc3NsAoLsaOWHwH+P D9ctmP/1ZN5a7mRcj/IKPquTvxHfg81FmS2H84lv1RrgR36QzCMiJHWOgm9UePEk8xlVeG0r lZ9yNCikzMkxuIAhlmWEyeZ9RgKOnYKy/9OgELHWsRIsPIkORVkpwz/Rpar0gbxhOisBOVQW 2f7GvNtJFyeC+xSz4hVIFQAtS/JFXZ+R2/xuhxRY1cK7gQfELioFyXmb9/gPgPjwxjizttUr LFB7WH/lwPqA7znjh2si4CNBpgcPUgY8HPjhcFPqZvi/Gf6xSwARAQABiQI3BB8BCAAhBQJL hbdXFwyAER62PUPiAU3fZ70AP/ywu1xfH79wAgcAAAoJEJ7cyZHZq0V+4Q8P/ja1ucn2tGwx kSHxwpIFDB2k8gMn5McCF6VDKojuPTJQrR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Eeh+gh9rXK78IhonFRu7RenvMem2gPyaeW6iCqjeMpSHf2cisM udzog6eDzWEtw0JciPPM71qT9oA9dCz88zpqI5CMhWx2kBs22I5f0UpnzLdP6nBinDQSGZMY XRbSaA8z+zlgPDPe+KWg8b1ekx4jks6bzOJJTABo/ybdjLkky4iKg1cqmlKn+zH6z2K5lmc3 uq3/WmRPv8r10mXRkWvDuXvi Organization: Debian Message-ID: <7ea74678-59e4-2c23-6744-6d0b2eff0a67@debian.org> Date: Fri, 15 Nov 2019 10:51:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191114215154.hze2avicv7pwiksp@pali> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VRlruaYk5NhSb22zKHuexSmqkCKNkJcx2" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VRlruaYk5NhSb22zKHuexSmqkCKNkJcx2 Content-Type: multipart/mixed; boundary="noQrS7Pec5SqEHiMVloew3aXNKUtDdFOP"; protected-headers="v1" From: Giovanni Mascellani To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Guenter Roeck Cc: Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <7ea74678-59e4-2c23-6744-6d0b2eff0a67@debian.org> Subject: Re: [PATCH] hwmon: (dell-smm-hwmon) Disable BIOS fan control on SET_FAN References: <20191114211408.22123-1-gio@debian.org> <20191114213901.GA28532@roeck-us.net> <20191114215154.hze2avicv7pwiksp@pali> In-Reply-To: <20191114215154.hze2avicv7pwiksp@pali> --noQrS7Pec5SqEHiMVloew3aXNKUtDdFOP Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, Il 14/11/19 22:51, Pali Roh=C3=A1r ha scritto: > This is model or BIOS specific. For example on E6440 are used 0x34a3 / > 0x35a3 SMM calls. Because of these platform specific problems we have > never incorporated this patch into mainline kernel. Would it be sensible to use a dmi_system_id table to discriminate between the known models and choose the right commands? Of course we wouldn't know the complete table at the beginning, but it can be filled as unknown models are reported. As a matter of facts, testing your patch I discovered that 0x34a3 / 0x35a3 work on my system as well (Dell Precision 5530). Do you know systems on which other codes only are known to work? > Also note that userspace can issue those SMM commands on its own (via > sys_iopl or sys_ioperm), fully bypassing such "protection" proposed in > this new patch. Yes, I know, but this is incompatible with Secure Boot, so I believe that this feature should go in the kernel module, and userspace should eventually stop doing direct requests and rely on the module. Isn't userspace sidestepping the kernel in this way already assumed to take their own responsibilities, much like userspace writing random things to /dev/mem? Thanks, Giovanni. --=20 Giovanni Mascellani Postdoc researcher - Universit=C3=A9 Libre de Bruxelles --noQrS7Pec5SqEHiMVloew3aXNKUtDdFOP-- --VRlruaYk5NhSb22zKHuexSmqkCKNkJcx2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSiBF6hBvCQNcghJEaNr8EMz954SQUCXc51NAAKCRCNr8EMz954 SYC1APwOZ5A2KufzPUrGbpHZH4wfIE/d3F2oWm2itXUuzAuWRgEAi+yPiuRNvxHr mmHAQ5sZ9TluvzrnsHkqJ8HvbpPLaQU= =6Yc3 -----END PGP SIGNATURE----- --VRlruaYk5NhSb22zKHuexSmqkCKNkJcx2--