platform/x86: thinkpad_acpi: Add more ThinkPads with non-standard reg address for fan
Message ID | 20240228150149.4799-1-vishnuocv@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-85232-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3400576dyb; Wed, 28 Feb 2024 07:02:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQ/sZ5H+kA+6MXZVtmY8QJOtQpMe5R2UhqiwsGjj5sJqERzntfSFm0N6XCDcyCMwQmtYJM+7R5JaY6vrUddlvaO/CsSQ== X-Google-Smtp-Source: AGHT+IEnRsEjobfC7dQRpdRNnRGvN6kN722eUFXHnWIszvz9LpvUdAb/z9r6ouHXlA6HPduTb3dv X-Received: by 2002:a17:906:b41:b0:a44:1496:d9cd with SMTP id v1-20020a1709060b4100b00a441496d9cdmr848433ejg.26.1709132563477; Wed, 28 Feb 2024 07:02:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709132563; cv=pass; d=google.com; s=arc-20160816; b=zz+VusvjC7W2o7xsyoOdne0t5GHnVn0h24MMQC3/dX261sy264u+DOGaGGLgZT0w8O OHW6+faZR7P78BYW5iwIzljCPAzL0g4dybYtuVF7OqqdV+wtHcrhLjSLbS0c60sFQqGY +5gV7khJEVe78yWb+MuRkTue6xGdRrVQ6GfDSl6CS9cFcp1eUkeMWYloL/cDPj323kWv C9jby5AbLOinivDqceqeTbp5M2WA0X/NTvLFbKnh2oyMc8++btJWfsxG47YgW9vxSKax LQy1uUlTn9KtSLiOfoTGSO0CosCrJq53p4knfTtxzna4P0SpTi/0l2mk15fnhSPsCMSb rz8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3VCmmq+4eba1jx1BqMgmbQQgplh1rf6OaXgPK/1tuIk=; fh=ivxO5t2DW1pPwLCcPMXf9qJRnKwMVP5XZ2pVIByTZgw=; b=SxkGw8rfm8YghyvkbC6evtoadFQkCyGDdjVc80VwwRlx7U/cPJPh5foBBbrHoTX5K2 iO3EjghGX03yc8cIkTT9mY4YCBdABkbMCiu6tKiIFgXXOs5jclZc/YFeuNinNbqNyUwL Dj5xL0rK/GdTxte2ol7NJxphZgqyuEv68jsjjNE3TEW9ut+PoVcyRi2xWoq3U1RLNT9T TKg78zVVa/6pzqt9AB8ryy9AY0UbQakW0S49VG8I+lwPfOIh01MoVYTq8eLC0CtuCs+q tf1GR2nHCCE3KrXm9v4C6uM1X69/Zc3oVit2o7/P9XoGJNuDfOJjSocxI2i2ub2PhxoM TmYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NKZLS+W4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-85232-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85232-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qk28-20020a170906d9dc00b00a3ec2361130si1845652ejb.199.2024.02.28.07.02.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:02:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85232-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NKZLS+W4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-85232-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85232-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 025DC1F27BAC for <ouuuleilei@gmail.com>; Wed, 28 Feb 2024 15:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2E1F15B972; Wed, 28 Feb 2024 15:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NKZLS+W4" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C49DE15B10F; Wed, 28 Feb 2024 15:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709132550; cv=none; b=pnJyQVqCZoWV5xe0lXLwrdSqxbu6m3mVixqjClIezcm8piwJPldWDhOkg31YfubFls4KRxhse0p/y3R+8BabHSCNzz+j8KdpX6aMbdhyfvfY0DbkuupPV+LfA1NwbdQdqRyqYS/BkcZmb9AWxiDakTMTs397S/K6vnF/dXTKc/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709132550; c=relaxed/simple; bh=LLoZpEXZrb4qyUzIaxkmCot88D7QEoKCy9xtugExuUA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eWV0swI+nNNLIJ6RW999UBsSNbtB4XMlmowCQsbfZWaJnS79vRr4dZtG1HD7325n2Q0nhDzCb9lricqjt1feOFXZ/lWy2+7RNYCFO71blJTiOUwiPItbHJLe0ex+rKvrr1gJRfKhLb3cd7F6UJeRbu+5PLw/PY795skbzhzwclk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NKZLS+W4; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6e5675f2ca2so410413b3a.0; Wed, 28 Feb 2024 07:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709132548; x=1709737348; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3VCmmq+4eba1jx1BqMgmbQQgplh1rf6OaXgPK/1tuIk=; b=NKZLS+W4Ohc3C8PgkUKpiDErLM2YCpo6iZ9BzqSTK5F3z3lsYwiciAQBwiGQL8jN7a R3m/BbGdLHxbWz3hyRfFB60lWFgYlapzgqJyIQD5aSJsLpJqLqWRCVFN19eMTJKce4DZ 1NUFM5bwoUIzv4BTGNpIPA7GSexNhkd/nAjENWHdv8OAz9n+S0gEO0m9MPmTc42ptLZB YKHyVbvRzlhNhbBZt7MaAGBl1JXBlLGxywrGDqmqQH6ndq29hJ5MYK1EWuCutdnwwhds hnKLVTbjSBs7AqL/rP1oXOvdFxg2KxA/pqNxMVvZPA8efQB1sErrkBur6MUxVr+5p6IL 2YWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709132548; x=1709737348; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3VCmmq+4eba1jx1BqMgmbQQgplh1rf6OaXgPK/1tuIk=; b=A2p2cAr885aNCR0B1Hbt4LxJusoHNgv/bv9mU8j10Qgz6ML+ypsBelIR2i68ThuiAA bto0ql6FzCjEtnz+qC8+2fnbUed+6QgG9Kt/iBN22JWTXAz6f40URj2BX5cqzfao5HrS AFh/nB8upRXzXfM0M/K9XUGJPdz73ryxbWP/G+ABN26n/lNEMM/YS/i8ztP5onX2rXj2 DHPm7CRyEplvRYTNwkA7NCZFVRLz2Ojs2LUO+Rs2jNnccIydr8YFDZGg2AFDrPuBwqzG Ic/kKSykNJZyOf/ycyllJHlc7lVqRXQrvWLhVoR3yk9jz+5tBuUusQ+OzJkm9ZiUZaWd KpYg== X-Forwarded-Encrypted: i=1; AJvYcCXGPFqjmU6LgRracguEMyAfPbs8oY7immjLB9pmk3dOGgY0DYc+KDbN+55ukowo5AvXjgCGFWvQHjvREcjQHXuNyjmk79axBF47sqjg X-Gm-Message-State: AOJu0YxHsJ9XFIfxEhmxBjc2zv428ZPWE242Vtn2eQFCb0FZLuB+shLw hrwAPWTKOgsnd6+hCT49Won+GBJ+gOK1eSUoA4PgI/ite2tPCP6ViTTq+iGvM9w5Dw== X-Received: by 2002:a05:6a21:1394:b0:1a0:ebbd:9aeb with SMTP id oa20-20020a056a21139400b001a0ebbd9aebmr5964504pzb.5.1709132547845; Wed, 28 Feb 2024 07:02:27 -0800 (PST) Received: from ares2-ThinkPad-L13-Yoga-Gen-2.. ([2400:2410:b9a0:8400:d1cb:3c04:cf19:22d9]) by smtp.googlemail.com with ESMTPSA id o30-20020a63921e000000b005e49bf50ff9sm263602pgd.0.2024.02.28.07.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 07:02:27 -0800 (PST) From: Vishnu Sankar <vishnuocv@gmail.com> To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, mpearson-lenovo@squebb.ca, vsankar@lenovo.com, Vishnu Sankar <vishnuocv@gmail.com> Subject: [PATCH] platform/x86: thinkpad_acpi: Add more ThinkPads with non-standard reg address for fan Date: Thu, 29 Feb 2024 00:01:49 +0900 Message-Id: <20240228150149.4799-1-vishnuocv@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792155387106576265 X-GMAIL-MSGID: 1792155387106576265 |
Series |
platform/x86: thinkpad_acpi: Add more ThinkPads with non-standard reg address for fan
|
|
Commit Message
Vishnu Sankar
Feb. 28, 2024, 3:01 p.m. UTC
Add more ThinkPads with non-standard register addresses to read fan values.
ThinkPads added are L13 Yoga Gen1, X13 Yoga Gen1, L380, L390, 11e Gen5 GL,
11e Gen5 GL-R, 11e Gen5 KL-Y.
Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com>
---
drivers/platform/x86/thinkpad_acpi.c | 7 +++++++
1 file changed, 7 insertions(+)
Comments
Hi, On 2/28/24 16:01, Vishnu Sankar wrote: > Add more ThinkPads with non-standard register addresses to read fan values. > > ThinkPads added are L13 Yoga Gen1, X13 Yoga Gen1, L380, L390, 11e Gen5 GL, > 11e Gen5 GL-R, 11e Gen5 KL-Y. > > Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com> Thanks, I have no objection against this patch: Reviewed-by: Hans de Goede <hdegoede@redhat.com> But this feels like it will become a game of whack-a-mole. Mark can you reach out to the ThinkPad firmware team and figure out if there is some supported way to automatically detect this ? Regards, Hans > --- > drivers/platform/x86/thinkpad_acpi.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c > index 5ecd9d33250d..23b2abe44a5a 100644 > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -8767,6 +8767,13 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = { > TPACPI_Q_LNV3('N', '3', '7', TPACPI_FAN_2CTL), /* T15g (2nd gen) */ > TPACPI_Q_LNV3('R', '1', 'F', TPACPI_FAN_NS), /* L13 Yoga Gen 2 */ > TPACPI_Q_LNV3('N', '2', 'U', TPACPI_FAN_NS), /* X13 Yoga Gen 2*/ > + TPACPI_Q_LNV3('R', '0', 'R', TPACPI_FAN_NS), /* L380 */ > + TPACPI_Q_LNV3('R', '1', '5', TPACPI_FAN_NS), /* L13 Yoga Gen 1 */ > + TPACPI_Q_LNV3('R', '1', '0', TPACPI_FAN_NS), /* L390 */ > + TPACPI_Q_LNV3('N', '2', 'L', TPACPI_FAN_NS), /* X13 Yoga Gen 1 */ > + TPACPI_Q_LNV3('R', '0', 'T', TPACPI_FAN_NS), /* 11e Gen5 GL */ > + TPACPI_Q_LNV3('R', '1', 'D', TPACPI_FAN_NS), /* 11e Gen5 GL-R */ > + TPACPI_Q_LNV3('R', '0', 'V', TPACPI_FAN_NS), /* 11e Gen5 KL-Y */ > TPACPI_Q_LNV3('N', '1', 'O', TPACPI_FAN_NOFAN), /* X1 Tablet (2nd gen) */ > }; >
Hi Hans, On Wed, Feb 28, 2024, at 11:09 AM, Hans de Goede wrote: > Hi, > > On 2/28/24 16:01, Vishnu Sankar wrote: >> Add more ThinkPads with non-standard register addresses to read fan values. >> >> ThinkPads added are L13 Yoga Gen1, X13 Yoga Gen1, L380, L390, 11e Gen5 GL, >> 11e Gen5 GL-R, 11e Gen5 KL-Y. >> >> Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com> > > Thanks, I have no objection against this patch: > > Reviewed-by: Hans de Goede <hdegoede@redhat.com> > > But this feels like it will become a game of whack-a-mole. > > Mark can you reach out to the ThinkPad firmware team and > figure out if there is some supported way to automatically detect > this ? > These are all older platforms and we're not expecting to see this on any newer platforms...if it shows up it's because they messed up (there is a spec and they're supposed to follow it). Vishnu did review with the FW team which platforms had used this implementation, and we believe the list below to be complete. Vishnu, please correct me if you've heard otherwise. As a note, I did review this during an internal review, before Vishnu pushed it, so I'll add: Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Mark
Hi Hans and Mark, Thanks for the review. On Thu, Feb 29, 2024 at 5:19 AM Mark Pearson <mpearson-lenovo@squebb.ca> wrote: > > Hi Hans, > > On Wed, Feb 28, 2024, at 11:09 AM, Hans de Goede wrote: > > Hi, > > > > On 2/28/24 16:01, Vishnu Sankar wrote: > >> Add more ThinkPads with non-standard register addresses to read fan values. > >> > >> ThinkPads added are L13 Yoga Gen1, X13 Yoga Gen1, L380, L390, 11e Gen5 GL, > >> 11e Gen5 GL-R, 11e Gen5 KL-Y. > >> > >> Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com> > > > > Thanks, I have no objection against this patch: > > > > Reviewed-by: Hans de Goede <hdegoede@redhat.com> > > > > But this feels like it will become a game of whack-a-mole. > > > > Mark can you reach out to the ThinkPad firmware team and > > figure out if there is some supported way to automatically detect > > this ? > > > These are all older platforms and we're not expecting to see this on any newer platforms...if it shows up it's because they messed up (there is a spec and they're supposed to follow it). > Vishnu did review with the FW team which platforms had used this implementation, and we believe the list below to be complete. > > Vishnu, please correct me if you've heard otherwise. This is confirmed by the FW team. The list of systems is complete and no more systems are expected (as of now). > > As a note, I did review this during an internal review, before Vishnu pushed it, so I'll add: > > Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> > > Mark
On Thu, 29 Feb 2024 00:01:49 +0900, Vishnu Sankar wrote: > Add more ThinkPads with non-standard register addresses to read fan values. > > ThinkPads added are L13 Yoga Gen1, X13 Yoga Gen1, L380, L390, 11e Gen5 GL, > 11e Gen5 GL-R, 11e Gen5 KL-Y. > > Thank you for your contribution, it has been applied to my local review-ilpo branch. Note it will show up in the public platform-drivers-x86/review-ilpo branch only once I've pushed my local branch there, which might take a while. The list of commits applied: [1/1] platform/x86: thinkpad_acpi: Add more ThinkPads with non-standard reg address for fan commit: 0dfb4617af0d4cfbaf75590a83e2ce367b67134a -- i.
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 5ecd9d33250d..23b2abe44a5a 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -8767,6 +8767,13 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = { TPACPI_Q_LNV3('N', '3', '7', TPACPI_FAN_2CTL), /* T15g (2nd gen) */ TPACPI_Q_LNV3('R', '1', 'F', TPACPI_FAN_NS), /* L13 Yoga Gen 2 */ TPACPI_Q_LNV3('N', '2', 'U', TPACPI_FAN_NS), /* X13 Yoga Gen 2*/ + TPACPI_Q_LNV3('R', '0', 'R', TPACPI_FAN_NS), /* L380 */ + TPACPI_Q_LNV3('R', '1', '5', TPACPI_FAN_NS), /* L13 Yoga Gen 1 */ + TPACPI_Q_LNV3('R', '1', '0', TPACPI_FAN_NS), /* L390 */ + TPACPI_Q_LNV3('N', '2', 'L', TPACPI_FAN_NS), /* X13 Yoga Gen 1 */ + TPACPI_Q_LNV3('R', '0', 'T', TPACPI_FAN_NS), /* 11e Gen5 GL */ + TPACPI_Q_LNV3('R', '1', 'D', TPACPI_FAN_NS), /* 11e Gen5 GL-R */ + TPACPI_Q_LNV3('R', '0', 'V', TPACPI_FAN_NS), /* 11e Gen5 KL-Y */ TPACPI_Q_LNV3('N', '1', 'O', TPACPI_FAN_NOFAN), /* X1 Tablet (2nd gen) */ };