Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp636968lqo; Fri, 10 May 2024 09:57:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/DYWGJf2Ez6QODcHIhtq4u35/2LBKdw1iUTWZqo+J/l2v9AZ8A5aQvuZ+tB7rNPj5lwOigub7Rl3e6Y5Fw81dPZZDP25pXQm5K0TIuA== X-Google-Smtp-Source: AGHT+IEEVbpgP2kMW1yGnKLTXcgVLHTEzCC3VjF4LTeT8Nxs59T86yX/xJcpNXjnwZ0XxfJrARd6 X-Received: by 2002:a17:90a:ad86:b0:2b6:22bd:f4b2 with SMTP id 98e67ed59e1d1-2b6cc03f435mr3014910a91.4.1715360268954; Fri, 10 May 2024 09:57:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715360268; cv=pass; d=google.com; s=arc-20160816; b=sVW2yf2hPfXXQeuks1H4V8NPi0q1qOcaFr9X+CcMvshXqZn0cYD/sThX+dPRLAsTc/ tSkwzxsQG6/ayL/trdJc4Q2tzfZu2TG2ntBPY1Jm+YQh2nlXJRp9noynA/l5ABqnWZvk Uc37J+4vT4ZztaMgjroNmCaQTTxHUrWuQpmaCxpY6Qu/6f2+kYy4fLbo7C5ctXU/6QdR U2fYvLybUvP7goKgI+X37AHdOZHNq1GAxLhn2ePap3V86Mtm1FpVgJbNNE8foHYm1wK9 NX7S/e9ck8MOzfKTc/CDfpJC/PjRKjbGD8i2XM9uKAFPhufSQtGQQwnyaUde7X5oAD2N Ag6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=mhQkjxX4w4Mf8leWb3/CRafMDhGUNfdMTpC/gKigdVs=; fh=AaGEKjrm6NiABinITyO/gD8/PvgtBgUakF3XwVW7qrE=; b=RBi/tlfoBz1qLv5aQWn9OM0PSDaGG/+qApAVCIbrXgsbMQeaUrMIXoZw12+nCPsu7m R+jLwKyO/r9w2lzkHtD+dXmcKnOVVcutDzK5qCLLegKC4AVGEd2e9K2TH64OPgNrk4iU E1u1XOm6JGNccRZbUM/ROaTHHcd4Ybyh1nCdgIzccyw/bYfZJ7bpV9dgMkmeHMyJTOgJ AybEGSC1htE1SHxP1nKPIcDhDfFxVa7mQNibifhb4VTPbEQ0ynmXzowSBA0rcNrhQsrj 0knj/3mw/BoOnK7KXrPI33Pk8g+gTXrh+s5I63/sCo5TY/3Ln9rVAZ9CCXnjylnrWS38 64Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=CpeLNlie; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-176032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628fc6985si4659601a91.153.2024.05.10.09.57.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 09:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=CpeLNlie; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-176032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B802DB2235B for ; Fri, 10 May 2024 16:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48BC317995; Fri, 10 May 2024 16:53:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="CpeLNlie" Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 079631429A; Fri, 10 May 2024 16:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715359980; cv=none; b=DmGDD0ZJPUixzs9L1snRpWttTtrDvzac0CUqMzT8xsWQjxHHDy0a2lsKIc296sHCTC0NH8NXm7YFDDjjFBoBZEvFSMcXjv+Wu8nBj2jZaXLiIvEwgB7dvk/LQ/F4Bal69VRwIhcSNlZ91oXqcbS6BBVLjnf7TRof3y9L+vFmxy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715359980; c=relaxed/simple; bh=wobM+EUBnTvnR3c74kJs6/+/i326MO182y/6299O00s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=N9ZP90/Tk1aeg8EA70OaNVUdGSVdLPC48GvhjnLd9n4Fp2/cuQJkKM3z/qpyaXUoKXA7OR3reM+DUxHxRcB1+0DpX8BHYcl7rch+ZszzSJuEPSopv2J7GblGXQNlF/wZk39mF6b/cPLppfgc4CBD3wdJm+hwhvxAhu271PVBNQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=CpeLNlie; arc=none smtp.client-ip=212.227.15.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715359963; x=1715964763; i=w_armin@gmx.de; bh=mhQkjxX4w4Mf8leWb3/CRafMDhGUNfdMTpC/gKigdVs=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=CpeLNlieKIKBy+RC7bHVnYTvjxkaEwilqq14lnD8zAGJDvhsjFj0pfFPlCZDC0jJ TC1U4g66lFDNRzBwj+V45eAj8MFxtI3wV7Y/v4pZvdWy/JddpXGhtvomwQ7ttRC7S NcJUJllFJfMRGzTFpDpW8x+RxMCj4PxYITHVwas8xbrKWit+gl05akzS0xc1ZxCcW NXPYKu5sms4dizQfBkrdH6RCFe96ybVfr+AJkfLzRaAykUOFiGfrQfUBVsaE2avvD yGVTo3zWR34QWicWJYggT55V2/Tx6ExdkcPDB4PVrJz6JDnOylLHzGk55FBW84BKg 4nBYbzBUyM/l7UqMDQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [141.30.226.129] ([141.30.226.129]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mof9P-1sPiDK0iXB-00o0FB; Fri, 10 May 2024 18:52:43 +0200 Message-ID: <568291fc-fd79-4f08-9eb7-aed7f5a32345@gmx.de> Date: Fri, 10 May 2024 18:52:41 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/2] ACPI: EC: Install address space handler at the namespace root To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Andy Shevchenko , Hans de Goede , Mario Limonciello , Heikki Krogerus References: <5787281.DvuYhMxLoT@kreacher> <4926735.31r3eYUQgx@kreacher> Content-Language: en-US From: Armin Wolf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:65zII5bXn7iGnNlKowCzVpQpphVdt6/gLiy+9vE9bdqUagLeE1+ 8DYZyTLyqHq+vPT6WDRAwUdkfBRjzNzBuFl/y5BJgEC/asgrKEx1Zqp0VDYaosVcjneCsb3 AYnkGLG6PzXyrU3mbUdN8dbeOE5iuVaMx+jJ7SAokboSK6CADSsFNPPjHmLu7jE0GG6YWbS BKtIY333VN27THAkvZbEA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:MxWBLCHTiOE=;zivxnuFUWIO8ZckWjLUWROWykZ7 IviydntdKeRc4kvo42JvpZniPyQ3yS1z09840MYgFJLdbIP1Mg6AVJxPCw7aqd9yhU+WOtdD5 /mhk2FSOTEhJTRyRc+U3BoUbKhcZ1IAqtcW/8GzDLOtVgfM5ieRcFFfP1phuT6G5Cb0X9NyVp iYiFFlTdhO+ZubE4uVRnFLTkOZ+VfcmFOJBl1hjoG3mDO1/ZOzcD10eNuvrYzmTIePKqczDkI wj5AnqXkdGSFqisiGUvdVphQBAkmCAeU/s8kfc1LRDOEIh+dTE//S7gvTkO4dkPGyEW0SSqJN 5BZUBlZobNkWKK9fcH1XC5cCrfu6U7BtrSad7TYKf5sE0dS8KCdJPE5jMxUN+BjJz24xwsww2 6u0fUBoDXhuh0XxSJxmokVgASvGKwPm06yECSKkvvGcoDcKQ23ygKoKrPSPh7K/13ijtP9mJb k7KgkuASAH9hvG7H4b4t/SM8Rikip6Sqe5NJHuypG/UL07aTJFbEkcLqCv3jxFexc/knej5Gx Z1C7LkheHRnalqP0JLXC/5jKgFcr3SVCMx59I26vKy8pCME/h+88IgGRyYLnKWRi1f8BAvuYL YnqVkswQOKtT+V4EZlaNA85DcijA5uU0njnpXOMr/lQbuwhPjBxJsBUGxDkatSZNrYxJszkL6 9aODojqTgiw3j5UFnub+M/hyEMEkSS8yikQx9y8ivwJ++oeBMqr2hSfmWk51TVq4dZT5A5msl HjmM/ZYI8Vr8hfgSVhxPtc/C8ZTSvwPy3B+bjS1PFOz1C+HHSWfs0egr9h8AU+G3gpdq1JrvD MuBjemZsfc5oAjYpKpWqHHXLVVysmNLrZdh4XdSizzORM= Am 10.05.24 um 18:41 schrieb Rafael J. Wysocki: > On Fri, May 10, 2024 at 6:10=E2=80=AFPM Armin Wolf wrot= e: >> Am 10.05.24 um 16:03 schrieb Rafael J. Wysocki: >> >>> From: Rafael J. Wysocki >>> >>> It is reported that _DSM evaluation fails in ucsi_acpi_dsm() on Lenovo >>> IdeaPad Pro 5 due to a missing address space handler for the EC addres= s >>> space: >>> >>> ACPI Error: No handler for Region [ECSI] (000000007b8176ee) [Embedd= edControl] (20230628/evregion-130) >>> >>> This happens because the EC driver only registers the EC address space >>> handler for operation regions defined in the EC device scope of the >>> ACPI namespace while the operation region being accessed by the _DSM >>> in question is located beyond that scope. >>> >>> To address this, modify the ACPI EC driver to install the EC address >>> space handler at the root of the ACPI namespace. >>> >>> Note that this change is consistent with some examples in the ACPI >>> specification in which EC operation regions located outside the EC >>> device scope are used (for example, see Section 9.17.15 in ACPI 6.5), >>> so the current behavior of the EC driver is arguably questionable. >> Hi, >> >> the patch itself looks good to me, but i wonder what happens if multipl= e >> ACPI EC devices are present. How would we handle such a situation? > I'm wondering if this is a theoretical question or do you have any > existing or planned systems in mind? > > ec_read(), ec_write() and ec_transaction() use only the first EC that > has been found anyway. Its a theoretical question, i do not know of any systems which have more t= han one ACPI EC device. This patch would prevent any ACPI ECs other than the first one from probin= g, since they would fail to register their address space handler. I am just curious if/how we want to handle such situations. Thanks, Armin Wolf