Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp82058lqb; Tue, 4 Jun 2024 05:57:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaBqzYdjrzPsvz3epSdh/Hx4T02aG2qEoVstRazSuxJl6Lkecw6yTDRkai3TvjI2lNm23jiqownYJ7rc1pMWZ+RrRp0+wac8zLwue1zA== X-Google-Smtp-Source: AGHT+IFMprkGpbI/n7zr0kbYz8Qr78v8fet8mnpFj8p3VLDAaKTRec8GmfwvbKunPm5RWUxzlmY0 X-Received: by 2002:a05:620a:20de:b0:793:d22:4509 with SMTP id af79cd13be357-794f5c793acmr1293223485a.17.1717505824773; Tue, 04 Jun 2024 05:57:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717505824; cv=pass; d=google.com; s=arc-20160816; b=qIsAYUjoqD948NvZWcpgStQNZXqQb1R74+4eCHt23sfbJK2ZzrflxYyrQfw6uxV9xL ED+DtUDDifGKKjKeXjoNfvqkIzTKsqruSoWx5JnaaE3EtSoeF2teSVqFizhRCvQjqi2E +PYHlOLLNRkldSmeT5m3TEjAIcA31/cET2DdaakTuzf5tNicsjh2TnN/tcWef1vZcvj1 RpvRoDknIZx+Tuefm+nTLAgY98XeXqhiDwS8Am+m66+yE/Jj2PlFv18XpcNxwtowznra /5ITJdS2sKWYjwgf1qsQOSBn40D5QJaK5w+hnXRdsy81oEnP0pTIr4PO6cmaX0hjYyXQ Jwcw== 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=/fyE6At6AP8CyaesQw4xtgRL+2xC3Cu8iYTaTlUeaOc=; fh=t3vhN4QiouQ5+j1syF8jIm427yY5OdhOTvkNau30Zdk=; b=EviKez2tzyAqZMZFhtDee49imiWSW1i6dVjEeh+RnS2vvsoMB25Ik+hXV0PHi/qpg6 xlAqMBFvD0JjXatY/V5eHA+8hHeiih2r7X+gMbQOq5nJ7/vEQ2PeuAujxdqzyRR9RBlw 6JyB9N55+UzgUrtnLj72jhaypDzBoBe19ndQkPNpTqhrNcytogS/FeUBtq0gihbdcI01 As5iRvVcGnTub7reGQ4GI/x6qbxTGXYTMKQ/3QteVJ5spUMADHKI+hBVmjF9Fge2EyGy GyhuGHGtIaTQRCNxBF8AyjokC2fFG3MCvAIgwu/HPeQtSESx5hFAt8l6CIUvpor0NEJQ lX+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="so8G+/r2"; 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-200654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff257e585si28916171cf.431.2024.06.04.05.57.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="so8G+/r2"; 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-200654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200654-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 892631C24C4C for ; Tue, 4 Jun 2024 12:56:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6085C1482F8; Tue, 4 Jun 2024 12:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="so8G+/r2" 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 B62A61465A0; Tue, 4 Jun 2024 12:54:53 +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=1717505696; cv=none; b=usSVvh91W36gTgLu20wYtQIMAJt/H7XBHNbalUnmFTV4qoqVvP9QRe5w+uLCe/zK/lRijJV+sSXMU2oqcssoNnJlnXUw2Ah7YK+LL0fKmnlq/iFXNQrb4SwVffdx+mSzT4Yo4bfmrbwbGNR3dt1FifMtpqbFfrJczt4JxOKO7DY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505696; c=relaxed/simple; bh=6r0nPGrlvbLTowPbiR+YL8Z4O8Ed6VNmvaDIlB0sKBM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=p48wiz1+lY50R5cavvpWjDWkjh0rcfqUfCDCnsUB8T3fSSXEO6vKA0bdalvxREdpZSr9UltHWSYnJ//wRGEDRlZSLHMrm1lRWHmJHRdvxOhlPNOmIhEUwLBdPEcOw6D30HtdBv7X9AlQAhlVkrMdHE1EdiDIrTo0QJbMVj4EaBQ= 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=so8G+/r2; 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=1717505692; bh=6r0nPGrlvbLTowPbiR+YL8Z4O8Ed6VNmvaDIlB0sKBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=so8G+/r2yS3Zspfmcg9MYYNewDV9qpcRNV9MvT2PnyEP9RM347CUdAJxF+RjZ6G83 mWbzWit58s0SPgRI6uV6hh6Rlh0qNF9FgzSs8qXVk12ssqudyZBnh7EJZAzpeDRojv uDfmRVOXTWBUUqGdS/P5xhxy7JzF2Ts0te8ml0fMKCrhYJHD/c/X6r+MEmhKmXS4v2 Zu2daHxwdsdm5YDEt/ZuachZiaRmOz6aes9HhCWJVGzoj/R3onNCapuEgoBx6KUBjo fqdmcT30WAU3AccMEVQ5C37xqXjdXgAOq2hffSPyK4GS5tzpl7KF8uye3BrTBO5rMI 0WtSYrcdtL6Cg== 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 B82893782173; Tue, 4 Jun 2024 12:54:51 +0000 (UTC) From: Laura Nao To: rafael@kernel.org Cc: kernel@collabora.com, laura.nao@collabora.com, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev Subject: Re: [REGRESSION] probe with driver acpi-fan failed with error -22 Date: Tue, 4 Jun 2024 14:55:09 +0200 Message-Id: <20240604125509.553786-1-laura.nao@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Rafael, On 6/4/24 14:07, Rafael J. Wysocki wrote: > On Mon, Jun 3, 2024 at 8:20 PM Rafael J. Wysocki > wrote: >> >> Hi, >> >> On Fri, May 31, 2024 at 1:35 PM Laura Nao >> wrote: >>> >>> 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. >> >> It looks like _FST returns all ones if it is evaluated before _FSL on >> the affected platforms. >> Right, I'll look into that. >> It shouldn't do that, but then it is not particularly useful to fail >> cdev registration for this reason. >> >> The attached patch should work around this issue, please try it and >> report back. > > A !ret check is missing in that patch, so please try the attached new > version of it instead. > > Thanks! I confirm the patch works as expected and fixes the probe issue. Thank you! Laura