Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp383386lqh; Fri, 31 May 2024 04:35:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlje1GWN920/TrfdvMVLFRvNUGBEQC2YrWnVib0XwPC23PcoeKZCwvx8p8lX+w9gRI4Y8m+gHBnpLkqHZAuUVHRJxRRvKCsLPvN/vF0w== X-Google-Smtp-Source: AGHT+IFwUGWIt74Ht/Vu7qPviBEB0VMG4VMXjdSnE98j7Z5nKI8Eok9SPecBmBYNIAN1xfQALVI5 X-Received: by 2002:a17:907:1b8b:b0:a66:e439:e509 with SMTP id a640c23a62f3a-a682042231cmr107063766b.22.1717155311347; Fri, 31 May 2024 04:35:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717155311; cv=pass; d=google.com; s=arc-20160816; b=0Dn60WmTTfYPyZhkx14XPKA6w5OmdndGLb5Rlycu89Uqq3MhJaRbYKfD2MlQd2RFmA HBHqECc9CcdGLK1bj1Fp6fKwq69E/Z4HPgshuM7G8VwheqUl4a//e92911hBNtaqDNWK JkuSSSUGhm2e4iYwYVUd0/gDK+mGEG5hORTujaJ5dJj4WQENzhB8ckrEkRZ+1o1W0nxb sQH9GKRqtFw2nUVkljWnXo2/PqL9G3wTb9zOpjlJ3nC9GBco8mT8spygTDyOH1rxI2f4 Xd5BIoN2YgCii62Ni09mA/9qm7C8VVk0USzGcMfgU/E8Vl71pK1XdoebTrhZaJbxhjdb 5lEQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7+mBMuBSb4cIB/v8UayGj24JhgCqXzVqBjFvF9xf8Sw=; fh=ZORA57VEwNHKfpMPV5emgJfXvn5BUQZqHeLNnIgU1HE=; b=0Iv7gMEzgH4/ZcwsmPzMJF9z0un0oCAew7T3fAo5Y5CfzAPhKtyRZvRf9PiZomPdua QkNRVk6YeKtQEwwX9Opoua0K1pse9oMR01rn6jkgfTojRwtGDMU1v1Gukzm1+31FI0yq yiRP0ZXuHJGigU2oWieasWUqxJ5DmuqOZ+MZK605cZ0kjoROQZqIc/dI7iza/28oMGMh aBo1OUUnthErdagOxdW5TxmYl2DXKZGl+RZ/jO7cFbfQop63gZIVjbd4Y0HLe47ZcgR8 AOSGh56aRFGLDb8RHsSk1qR0j+6cJLscQMnOIIZx1dCYB2putYNd+Zu08+9LQMtuGo7B mYjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=stdfbrAg; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-196738-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196738-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a681c3f5fbfsi75268866b.175.2024.05.31.04.35.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 04:35:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196738-linux.lists.archive=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=@collabora.com header.s=mail header.b=stdfbrAg; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-196738-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196738-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 0D4411F24308 for ; Fri, 31 May 2024 11:35:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E8A3157499; Fri, 31 May 2024 11:35:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="stdfbrAg" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20D998173C; Fri, 31 May 2024 11:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717155303; cv=none; b=prMno+7F5lmgmoVaU0W9sTQ5vf/vi225hqGSrgfnhW9eV7J5rGIMZuBht3ZWOTen5B0H0cYQceGuZfexL0ax/103WRh0l2SiS3WmAW2AEnDc7zZKIq4iv/TveaL56ooGvpZ/erm5nRcX1MMvMk7Nw//uKyvCeVpIEeYMOXH2HCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717155303; c=relaxed/simple; bh=BCulwwdYr/KSnyKqgtvuTyOnil71EDFeqJBJWRTrdjs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gw0g4nEzQ5cSmIhgO0Nov8Y6yN6zH2QQwp7KN0DNoGbi2cKRYnH7A56IsFlZGRFFemulLY68HRKZd9o37bQXY9hkUDKaV0VcxeXq3XKm2SrM4cUSjgKcW6srrbY0xoMlB31PI45fBI4j7P8171oTMelLGq05E2NomnhSCC/UfVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=stdfbrAg; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717155300; bh=BCulwwdYr/KSnyKqgtvuTyOnil71EDFeqJBJWRTrdjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stdfbrAgFa6eirwM9A9FExFkiI+T9UTFZiG8pJBuCO//NzYE0TGsZVHs841M0zehE ZRafkHT4gXAgkDjLDnpTa1vnOXmiD08fG01WCvVB0QzercN1barPPixmmiek1CRYCR SXdhXYdgeYZNMH3NegrZdwPswFK4lDFtTX0JN2Of4jH+9KJG4ut2osedriGmFu1gjt eEZff7DzrmWUBls/foADLuGXUI7wcFFFnKv9R1jY273L4XUfFC3krTKgruzfShzRtg oK/BgbRLNGKa0Wm/ubpj+88PigmwYJ/k5vpX6IUftf87/kaNL3POMjrSE7xnqzGCY9 peZl+0XZ0Oiow== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: laura.nao) by madrid.collaboradmins.com (Postfix) with ESMTPSA id C30403781FA4; Fri, 31 May 2024 11:34:59 +0000 (UTC) From: Laura Nao To: laura.nao@collabora.com Cc: kernel@collabora.com, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, regressions@lists.linux.dev Subject: Re: [REGRESSION] probe with driver acpi-fan failed with error -22 Date: Fri, 31 May 2024 13:35:34 +0200 Message-Id: <20240531113534.577055-1-laura.nao@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240530153727.843378-1-laura.nao@collabora.com> References: <20240530153727.843378-1-laura.nao@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, On 5/30/24 17:37, Laura Nao wrote: > Hello, > > We have identified a regression in the acpi-fan driver probe between > v6.9-rc7 and v6.10-rc1 on some Intel Chromebooks in the Collabora LAVA > lab. > > For the Acer Chromebook Spin 514 (CP514-2H), the following error is > reported in the logs: > > [ 0.651202] acpi-fan INTC1044:00: probe with driver acpi-fan failed with error -22 > > Similar errors are reported on other devices with fans compatible with > the same driver. > > On Acer Chromebox CXI4, ASUS Chromebook Flip C436FA and > HP Chromebook x360 14 G1: > > [ 0.488001] acpi-fan INT3404:00: probe with driver acpi-fan failed with error -22 > > On ASUS Chromebook Vero 514 CBV514-1H: > > [ 1.168905] acpi-fan INTC1048:00: probe with driver acpi-fan failed with error -22 > > The issue is still present on next-20240529. > > I'm sending this report to track the regression while a fix is > identified. I'll investigate the issue/run a bisection and report back > with the results. > > This regression was discovered during some preliminary tests with the > ACPI probe kselftest [1] in KernelCI. The config used was the upstream > x86_64 defconfig with a fragment applied on top [2]. > > Best, > > Laura > > [1] https://lore.kernel.org/all/20240308144933.337107-1-laura.nao@collabora.com/ > [2] https://pastebin.com/raw/0tFM0Zyg > > #regzbot introduced: v6.9-rc7..v6.10-rc1 The issue started happening after: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/thermal/thermal_core.c?h=v6.10-rc1&id=31a0fa0019b022024cc082ae292951a596b06f8c Before this commit, get_cur_state() was not called by __thermal_cooling_device_register, so the error was not triggered. After enabling debugging for the acpi-fan driver, I noticed these errors in the logs: [ 0.682224] acpi INTC1044:00: Invalid control value returned [ 0.682635] acpi INTC1044:00: Invalid control value returned The value stored in fst.control is 255, which is indeed not a valid value. I suspect this might be a firmware issue that is now manifesting due to the addition of the extra get_cur_state() call. I'll dig a bit more and report back. Best, Laura #regzbot introduced: 31a0fa0019