From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754102AbaLATqF (ORCPT ); Mon, 1 Dec 2014 14:46:05 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:46287 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbaLATqD (ORCPT ); Mon, 1 Dec 2014 14:46:03 -0500 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Guenter Roeck Subject: Re: [PATCH 2/3] i8k: Rework error retries Date: Mon, 1 Dec 2014 20:45:59 +0100 User-Agent: KMail/1.13.7 (Linux/3.18.0-031800rc5-generic; KDE/4.14.1; x86_64; ; ) Cc: "Greg Kroah-Hartman" , Arnd Bergmann , lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org References: <1417381240-7641-1-git-send-email-linux@roeck-us.net> <1417381240-7641-2-git-send-email-linux@roeck-us.net> In-Reply-To: <1417381240-7641-2-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1455025.ZsU8UBEka1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201412012045.59404@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1455025.ZsU8UBEka1 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sunday 30 November 2014 22:00:39 Guenter Roeck wrote: > Instead of returning a previous value if the SMM code returns > an error when trying to read a temperature, retry once. > If that fails again, return -ENODATA. Also return -ENODATA if > an attempt is made to read the GPU temperature but the GPU is > currently turned off. >=20 > Drop the I8K_TEMPERATURE_BUG definition and handle the related > bug unconditionally. >=20 > Cc: Pali Roh=C3=A1r > Signed-off-by: Guenter Roeck > --- > Applies on top of Pali's patch series. >=20 > drivers/char/i8k.c | 47 > ++++++++++++++++++++++++----------------------- 1 file > changed, 24 insertions(+), 23 deletions(-) >=20 Working fine GPU temp (turned on or off). Tested-by: Pali Roh=C3=A1r =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1455025.ZsU8UBEka1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlR8xXcACgkQi/DJPQPkQ1Jo+ACgw4LyEqUIZaC3TLjYvVNcVP9P XNQAoIkmi5pyhK0kqZwkxzqIvmDUk600 =NGEm -----END PGP SIGNATURE----- --nextPart1455025.ZsU8UBEka1--