Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp628995lqo; Fri, 10 May 2024 09:42:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlKsmnZdknnMugOB2ZJaGLG1NvjWAwadUpC5JSkxBnosbRP9HRde4zxGzhaMCArBAOVjA1rCb+KYq2iZN+CVXxm6VDxV/d2LtsU2BSTw== X-Google-Smtp-Source: AGHT+IFG3z9kltsgpdnTzS4osyu5ECAZ/QFVarDZ/vrDvP8Ni7S80RazIpQqXGhVemTN2Z00nyW9 X-Received: by 2002:a05:6808:2747:b0:3c9:7a7b:a7cd with SMTP id 5614622812f47-3c9970cd017mr3124131b6e.51.1715359337983; Fri, 10 May 2024 09:42:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715359337; cv=pass; d=google.com; s=arc-20160816; b=iDD4LSsM/8AuLPENW9D5AieXHk2ErDwm/DotVKG8CnLa174uVY7kkPAnqkR2OHKdYF 88pch4ZpOHRCN/gvwO96k7me2x7J4/BLGXi19V1DmMpA9Jn2Pd2vHGsOrfLB1KCzqNej FXf0a1a5J8hUl6x/gsQsAfuNZW6BLo0X8gFI+ug59OCSD86YmzHgyVn/sN+mOr4r/v2r YFgR71/uiKuqGHJXCf0jh1FZxXCUDlmA8uf7wfnDYEFmWynNk+OYoJxJlS8V+highYmx k7ATJwyZZ4P+BNndcPS9Ae5dhViZ5fLQ5Zd3Y8S0XG4UgVcrxQBs/GiQm04IIIIUaz8M xssQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=LqPObOHQWhY/XhSaaM/W5/trWulBZtKBZDYjqhuexKQ=; fh=xBqq1WbUKGLbjjUr254zLbWVX3GTyn3i7tftG83o9qo=; b=yXfJsg3P/0VThNaYA9pJa6zxJdMBCtk48ART9nEFgFqO4GOlShGR3DnWOd2qoQzzYP K2HpOl5/Qg1zlr0q9oaDS7Oi3OwOSnzjAJIGdMVFAP19I8VU8qH0mNefz27Q8HUFuVCF py6qtNn1xv4MK1mh5LjTU1/MrchOpCgTjmEDIO87qG0GSB2PP/qtPXuBkGJlO9ci/OYI dA+aaW5xMTQ+B6uFsL+wOsV12eELQkQUjjQFC/WuFyUa+mpv1mtWoAiS+66cI6puIouS Us/g/H7YnQVWRfvNNIoKjvOU7PCbh+JL+YJN4KFkTnRNgqpXEyoQ024Jg/aO9JdG9J/E eE5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sz3BRG37; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f75bsi40430731cf.335.2024.05.10.09.42.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 09:42:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sz3BRG37; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 28CD41C21811 for ; Fri, 10 May 2024 16:42:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64569175AB; Fri, 10 May 2024 16:42:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sz3BRG37" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 85978134CC; Fri, 10 May 2024 16:42:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715359320; cv=none; b=Ozyv4vexuBctK0pORGErpYUoSg7Hom3nzgNkzfgpiR8YIBO3iZBhoUFD0nxF7a8Mv0oZdWp4ZEw7rDBI2hXcVH6DADebTQKLCrXg7H5ihgjW8XMZHdshD4UeUJ70grs8lj5SqeT3NpdUGTyZ9owxMnW5NMQaM+lTGZgQBYdTFwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715359320; c=relaxed/simple; bh=ygyighZLCuqVcaU8l/9kZcic3nWIHgkYfGhPv0f8hkA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DJHJ2SmUhy0CMFLOvY304lwC4wCHU7YQ4XTxr8IDq657IpjuaSIqiG0eRDZFcszvKsVrqXhh5WVR7UE/kh+1WFY3e0jbQFEpssFgU11+uMkUmzLthShQMU7sFXq9IOlbE8/5DzTM4bFDBRDKIXDD8xHWJayBM6P3OKEK+bNzv1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sz3BRG37; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E84AC2BD10; Fri, 10 May 2024 16:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715359320; bh=ygyighZLCuqVcaU8l/9kZcic3nWIHgkYfGhPv0f8hkA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sz3BRG37uQSQUrUbmiZDBnTugn48pGoTMogovsy6PlJ0Ay1R87wj6OKL2dOl6EzeK 9imWJw0SJriBsHda8wb8gjlk1oPlMQkkcZP/bSHFuTv7zwir0qIWiHiesMoy5rsnod POMWy/NRt8nX2ouMYYosZljLE69JNM9Y7gAYYIMB89Kl4bQTeghOsunYmNUJD0XPA/ cqjMmKNWZ1uywV664fXLqJLsrbZtBsDDt8Zhub5Oi2Nk2i/IZV1QHPHMbOkAZasVSR pjpmiIxlrvE8bBy883e10VQ0hGGGQpCGuxOdhpYZIRlro7FqQWQ3Bo4h3ISj2Habaf paE/NPfT2R3hg== Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6f0e6015834so297780a34.1; Fri, 10 May 2024 09:42:00 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVrCJwnpPYCiBsMoKzCZEhVklMIODVD4wkZOfsZG0upIpl7PBrE1ya+YrTyKcCiHn42HoW2SiIa5bXcnVJM6QZZTJkLTEY7fGjGC9/V40jtXLO7oqxfgFRalEp0g0Tyz/DkcrQN7n4tog== X-Gm-Message-State: AOJu0YwEud5DPIC9/78LX7T4yMF8gg2MY+y7twIg1KAc8fBc44/eNpju oYOgNn4AkpSQyUSIJibrNTcb+L13ZN0dqJiYVTIPsL7xgecUZuvZ1m0YLl0m6EEYCd8rZMpZIOQ IUOQyRl7RLzk/xCtsiLHAXGhOLpU= X-Received: by 2002:a05:6808:f03:b0:3c8:2af6:1125 with SMTP id 5614622812f47-3c997036e42mr3561264b6e.1.1715359319438; Fri, 10 May 2024 09:41:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5787281.DvuYhMxLoT@kreacher> <4926735.31r3eYUQgx@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 10 May 2024 18:41:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/2] ACPI: EC: Install address space handler at the namespace root To: Armin Wolf Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Andy Shevchenko , Hans de Goede , Mario Limonciello , Heikki Krogerus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 10, 2024 at 6:10=E2=80=AFPM Armin Wolf wrote: > > 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 address > > space: > > > > ACPI Error: No handler for Region [ECSI] (000000007b8176ee) [Embedded= Control] (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 multiple > 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.