Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB161C433FE for ; Mon, 17 Jan 2022 09:55:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238186AbiAQJzv (ORCPT ); Mon, 17 Jan 2022 04:55:51 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:37181 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235893AbiAQJzu (ORCPT ); Mon, 17 Jan 2022 04:55:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642413350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+Zavah50CCFVi2Vkp9ku57YSss8cl2fM7vlj/N5ldog=; b=e59wMR+vcJ8VUUDtBjkuXyGshLdp+kXmsb0ehM9cbj3WjLp8x86v4a1oK6ZI78lP7FYKHK jSNWeNHRZrs6nCAbqwLxj5z1C3XIokZonqgpJkJ6QtT0jINIT202qydIQU5nYW2hjX7WPc +vnKdCCWp9pY5u7J2gxtPJhhgoEtgWk= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-151-TjfOftl8MyKDtFOVWMGdRQ-1; Mon, 17 Jan 2022 04:55:48 -0500 X-MC-Unique: TjfOftl8MyKDtFOVWMGdRQ-1 Received: by mail-ed1-f70.google.com with SMTP id r14-20020aa7da0e000000b004021fa39843so3090287eds.15 for ; Mon, 17 Jan 2022 01:55:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=+Zavah50CCFVi2Vkp9ku57YSss8cl2fM7vlj/N5ldog=; b=m6foHfoMYqRanSHHrdJ01jY+G24CrsoxvceWslKWb+4ML0YVmSYV5cPYglnIqEoC8K TuPkCoZz4J+ywwfTa8QB30VMD6x8yRfTpa7o4QvMNy9zG7tDsPzaQCpru3rYs4j3/JRs gNC52SwxGQC4WcOjc4vBBpQyyvbgVfM7xuvjyCBAtj4Ks1ME8FhZwtTHcKySJjbE1Cax InZWI4T2pGPIYOnXYay2PNjTcbTk/f5ymgqXZJGYYsyhRdYCdk3bXo0sCobCJp8sR1X/ 1FW4gIUcLwzJcrdAkNlw7/30C40gJgDRs+2iMGtte3oHHX/6yujAL/5cIHvGxzU71ICz V39g== X-Gm-Message-State: AOAM533z8w02clA47Ump02BcSbDo7MpkQUwJdujS96izBX5TiJOgmFYI rdjWNO+jraeSj2i06Q1kJT0pdnw8UQO/oB2boxy5WL5WZIGyrYjLEI9AfUCMPHIqMyjIJOGWXgB +ETJEVsz6cOo/TJjyIRKAVT/QRsKIH4O9JA== X-Received: by 2002:a17:906:5d16:: with SMTP id g22mr4334372ejt.295.1642413345943; Mon, 17 Jan 2022 01:55:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2KI0C/qgzfh/MppIpeQpRdklF/xZHpgTIX8ATMgvSSdKg4eCb403rM0L0HVtuNA3dNFP5XQ== X-Received: by 2002:a17:906:5d16:: with SMTP id g22mr4334293ejt.295.1642413344199; Mon, 17 Jan 2022 01:55:44 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1? (2001-1c00-0c1e-bf00-1db8-22d3-1bc9-8ca1.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1]) by smtp.gmail.com with ESMTPSA id x11sm5685209edq.55.2022.01.17.01.55.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jan 2022 01:55:43 -0800 (PST) Message-ID: Date: Mon, 17 Jan 2022 10:55:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH] Update whitelisted ThinkPad models with dual fan support in thinkpad_acpi Content-Language: en-US From: Hans de Goede To: David Dreschner , ibm-acpi-devel@lists.sourceforge.net, Mark Pearson Cc: platform-driver-x86@vger.kernel.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org Hi David, On 1/11/22 12:09, Hans de Goede wrote: > Hi David, > > On 1/4/22 04:41, David Dreschner wrote: >> Hey guys, >> >> the attached patch updates the list of whitelisted ThinkPad models with dual fan support. >> >> The changes were tested on my ThinkPad T15g Gen 2. According to Lenovo, the BIOS version is the same for the P15 Gen 2 and the P17 Gen 2 ( https://pcsupport.lenovo.com/us/en/downloads/ds551321-bios-update-utility-bootable-cd-for-windows-10-64-bit-thinkpad-p15-gen-2-p17-gen-2-t15g-gen-2 ). >> >> I also added the P15v Gen 2 and T15p Gen 2 to the whitelist based on the BIOS version listed on the Lenovo homepage ( https://pcsupport.lenovo.com/us/en/downloads/ds551356-bios-update-utility-bootable-cd-for-windows-10-64-bit-thinkpad-p15v-gen-2-t15p-gen-2 ). The first generation had two fans and where covered by the whitelist entry for the P15 Gen 2. As the second generation has two fans, too, I made that change for completeness. >> >> To apply the changes before it's merged in the mainline linux kernel, I made a little dkms patch: https://github.com/dreschner/thinkpad_acpi-dual-fan-patch > > Thank you for your patch submission. > > If I understand things correctly then you've only tested the addition of the: > > TPACPI_Q_LNV3('N', '3', '7', TPACPI_FAN_2CTL), /* P15 / P17 / T15g (2nd gen) */ > > quirk, correct? In that case we really only want to add that quirk, we don't > want to go and add untested quirks. But perhaps Mark from Lenovo can confirm > that this quirk: > > TPACPI_Q_LNV3('N', '3', '8', TPACPI_FAN_2CTL), /* P15v / T15p (2nd gen) */ > > also is correct and that those models really have 2 fans, Mark ? > > Mark, more in general can you perhaps talk to the firmware team and ask > if there is a better way to detect if there are 2 fans in a thinkpad then > maintaining a quirk table for this ? > > Besides the issue of the untested quirk, unfortunately your patch is not > submitted in the right format, so I cannot accept it as is, esp. the > missing of a Signed-off-by is a blocker. > > Kernel patches should be in git format-patch output format and > your patch is missing a Signed-off-by line in the commit-message. I can only > accept patches with a Signed-off-by line in the commit-message like this: > > Signed-off-by: Your Real Name > > By adding this line you indicate that you are the author of the code and > are submitting it under the existing license for the file which you are > modifying (typically GPL-2.0) or that you have permission from the author > to submit it under this license. See: > > https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin > > Given that this patch is trivial and mostly data, not code, I can turn > it into a proper patch with myself as author, crediting you like this: > > Reported-and-tested-by: David Dreschner > > And then merge it with me as the author, or you can resubmit > it in the proper format if you prefer. Despite Mark's answer that he will look into this, it might very well take quite a while before something comes out of that and it would be good to in the mean time just extend the quirk list with your ThinkPad T15g Gen 2 addition. So can you please let me know how you want to proceed with this (see above) ? Regards, Hans