Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp662131lqo; Fri, 10 May 2024 10:40:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOX6UoFhPQ0WjSgHIOjR5W8GCgIDmxqalqrsidR5AajPtnSTMkPDHop74XZwTPEUkeuaXxchrfATAk/Z1lU1hKyOw9H7XNls4zfs/GJg== X-Google-Smtp-Source: AGHT+IGKZ+aKq89ENXKz9sTVXvhIxzp8Zs+vLDjI8Y2QZjY4NiNISAmO84/86MJK+yqBZu7QxVrb X-Received: by 2002:a05:620a:7f7:b0:792:970a:86a6 with SMTP id af79cd13be357-792c760e8f2mr298110985a.65.1715362821970; Fri, 10 May 2024 10:40:21 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf278b82si391016585a.17.2024.05.10.10.40.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 10:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176058-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=@amd.com header.s=selector1 header.b="ODEhD/Vt"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-176058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 A13DE1C222CA for ; Fri, 10 May 2024 17:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A5701C6B8; Fri, 10 May 2024 17:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="ODEhD/Vt" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) (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 4A63918654; Fri, 10 May 2024 17:40:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.47 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715362814; cv=fail; b=YHxAMpue49TZ48tPxvGR28RBmBJEj28+Z9pt5vrjKjVH7Gu2plwH+7loksoo/f/KKe+Jn4F0oLXuzNysg7ONeZ1Gaz5HJGuNDKvNsIoiB18yTSSdm8Ma28oFg2viEAtusY/sJNKHpH1zxauQrTMMwtON9Dpg4qmgvafN5K4cz08= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715362814; c=relaxed/simple; bh=Xmyzy/xr0KNSmapfcHIL7bNnHxfvYEbp9bB1YYiCc0Q=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=V8i2kske+BvCeKj1FT9BOZLKSY2JGOfPFq0Nncjvcc/oxx8UPl/BpOoBvlOyOY8K277Dhl+4WRmst8wqjYudiSKPAKib6qWDTx987Y5mMOX0WX+ub1niiqH26jsnw29i/pQu6+rC7A4Vk0quj56Vg/RVefpyUpgYJ+RFGOoGFD4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=ODEhD/Vt; arc=fail smtp.client-ip=40.107.92.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=np47MNZ9Mwwv2cfZHhzoC1E7JTsuN/gEchTD8heVl5jPuTuQgQs6Xdz42Any0K3+l3FCbjaZk4XOG9xS2dEfoLCZQc+eCwN+armH+GRCyfZgTXKt/RgVpLZ6zB7iYIzYmWjbdVgWqX3TzD6wwGrIehionXl2moiLdv0Qh4PP7MsA/0i/w0n3308LUuXqRMsX3D/GdCOZhxtvwo0ff943hfx9G9pN6wCBl4NYkdIm3IOLruTYM3yf7NSmZQB8XEaYXZsWdsHVDB50Wsb/SuT6Jb541P14ukFxoPGiAJS28VrkgT1Qnj2o5fyjrP5J/ZTfv9m4aD4ZYkevPIjC2OyjbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ML+Hzn1IhTbvxYtbSjlmWzReEJ/s4IOD44MV+td42Os=; b=aFpUfikh2uTuG9ru+1fLmZmjbdC+6WOQhBVkNjfh8UZK7TqgdYPVekCzHyNm2UEbKWAddwpyxVvi7OuOHRhGHRLPmq6uLsox4sFvoiYZnImL9xpt1H1MwaEmFqFFbMeJyN1S0vwjqCXFc1m1e8wvcX3QqnCup/AeuFOc4fdN+94nKwEVB1sqglDkYj/ZaYlg3V/VIW+IDjfIVHCus2YDV3lE3jPNIofteyXDYKno7TCETevj7Xegaf/79tCImDhbDSp1umbCWoG0+SPR902OI6Prz/t3z5L+uZbMHy2ZLkg0KUCmJuTNpl4cM1rNSow4EDpU70UjHCV+owQAsz8/Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ML+Hzn1IhTbvxYtbSjlmWzReEJ/s4IOD44MV+td42Os=; b=ODEhD/VtwT85yrqY/jrxxWuk/SGQpdXi1VPYznDyNYVjeZ9xIuKS78nElwdQD1I3WMxYaVbEYsMtT3fuzNmClbHyvKk1Pi2BSB/LUWTesKxVXKdrU/enwaqpoNVvmCVveivNNMej43LLwGdfY7etvfyXtklb9RbllseTEt6JOXQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by MN0PR12MB6127.namprd12.prod.outlook.com (2603:10b6:208:3c5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.49; Fri, 10 May 2024 17:40:07 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::37ee:a763:6d04:81ca]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::37ee:a763:6d04:81ca%7]) with mapi id 15.20.7544.046; Fri, 10 May 2024 17:40:07 +0000 Message-ID: <0cdf0af6-851b-4781-83fe-99320c35544f@amd.com> Date: Fri, 10 May 2024 12:40:05 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/2] ACPI: EC: Install address space handler at the namespace root To: Andy Shevchenko , Armin Wolf Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux ACPI , LKML , Hans de Goede , Heikki Krogerus References: <5787281.DvuYhMxLoT@kreacher> <4926735.31r3eYUQgx@kreacher> <568291fc-fd79-4f08-9eb7-aed7f5a32345@gmx.de> Content-Language: en-US From: Mario Limonciello In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SA9PR13CA0063.namprd13.prod.outlook.com (2603:10b6:806:23::8) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|MN0PR12MB6127:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ef309e5-2eb8-4dd6-c855-08dc71183bce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?Mkk3Qk1McERldGtLMDM3L2lYVVU0N0FLK1FjVmhzcXdTcmtHQ1BrNzdnaHZz?= =?utf-8?B?V3NJbXdWUm1Mb28vY1JBZjM2bk1MdDdROGpnR0hIS0Vodkh3d1hySS9Qd3FC?= =?utf-8?B?LzdXanZiN28wZXViaHFDK1k1RUl3L1RocldEaGkwckNEQTEyUHZPM2dmSGVi?= =?utf-8?B?bWVTRUlpVFJkaTYrZWlwaXg5c3NndGtXVG85aDJMMzdjTVJkSHM1NURNUGJm?= =?utf-8?B?QTlzUW9MUEU2M01jZGNzME5ScGJ6VUpibzUwY0tZb2k3aGlGdmsydFM5NFFY?= =?utf-8?B?UFFaZTQzSHUzZW9ibkJGMmF0Vk0waDFqUmdPVDNGRFJKTFluVWVTaGtjRktS?= =?utf-8?B?SVVRMG82V1I4eGdnY3FlZDk5cnRvVS9mNG5wQkd6QzZXR01Xa2plRjNKUE56?= =?utf-8?B?dlZ2ZlZiMWs3NjErMVVSSzRxWk8vZ0RWSHgvSXFZZ1J1MDdwbGZKMTA2dkxy?= =?utf-8?B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-8?B?OVkzRVBMQUxDaGovOVcxZ1kzNGlCK2tkdlFOWVJIWFFHdmtaYk8rdm9nVm5k?= =?utf-8?B?VWRyT3drbWNyS2laU0doMlZsak5zZVV2bUhiK2hUWTFDcmEzclpHeVJ2UUIv?= =?utf-8?B?WVVzVXZZczB2eCtCUXBxOHY0bEwyNFI0eEZ1cVBabFRxZGNsdVVTWndISzY4?= =?utf-8?B?SjJoV0VNUjdrM2c3RjhGZ3dDOXU1Z1lZaEs3WXk3Sm5kWGg2S0RObjBqNUVC?= =?utf-8?B?cnpHQ29UMFZna2Zsd1BpaXNNZzZDVExnQUs3dGlTc1M5SVcxRXVEbFJLeG5J?= =?utf-8?B?Q095MTlySFMyV2daVGY1Nm5DdHgzenNXdWhLcXFMTnpvYzc1YVV6WWxnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z1BKbkljNTNBcllYSmxOZkRFWTZwV2hRcUhZbHU2cVpwRnVteHNiZWE1MThX?= =?utf-8?B?c0JvbGlnRVJJNmxNUHR0aDlRZGVLK2w3VE80aXRPMXNSblgwcWpSL2YyRE9W?= =?utf-8?B?aUpJMkFuNXk5TVVQMkc3aTUrWVFVM1liTTc2TTlCd1FQVWIyVG5WVEo4N3Ux?= =?utf-8?B?MkozWXQvV0wxUGg0R2UwbGh5ZG03cGxLam5qdW9LM3BrSWhDRXlZWlhhNFRZ?= =?utf-8?B?dzRsU3IwMUFWa3JDL3JFbUhLcmhldFlyWUhDeUlhTlZsZmRNL0xNUzMxNFhp?= =?utf-8?B?RlhCblk4UExaTzhYSkcwR1gwWEF6NW82ZmJUeDZYNVd3NkxlTXBzVDB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SAtMnpCy+xfG?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ef309e5-2eb8-4dd6-c855-08dc71183bce X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2024 17:40:07.7728 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6VxOmnMbpcO4F1TG/MeLoGivrIK4w6WfJVlMbEigK48Z9+fnwrDsw6E5Fy/RvBso4pWA//jX83PV1NgaMC3qFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6127 On 5/10/2024 12:29, Andy Shevchenko wrote: > On Fri, May 10, 2024 at 06:52:41PM +0200, Armin Wolf wrote: >> Am 10.05.24 um 18:41 schrieb Rafael J. Wysocki: >>> On Fri, May 10, 2024 at 6:10 PM 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) [EmbeddedControl] (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. >> >> Its a theoretical question, i do not know of any systems which have more than >> one ACPI EC device. > > The specification is clear about this case in the "ACPI Embedded Controller > Interface Specification": > > "The ACPI standard supports multiple embedded controllers in a system, > each with its own resources. Each embedded controller has a flat > byte-addressable I/O space, currently defined as 256 bytes." > > However, I haven't checked deeper, so it might be a leftover in the documentation. > > The OperationRegion() has no reference to the EC (or in general, device) which > we need to speak to. The only possibility to declare OpRegion() for the second+ > EC is to use vendor specific RegionSpace, AFAIU. So, even if ACPI specification > supports 2+ ECs, it doesn't support OpRegion():s for them under the same > RegionSpace. > > That said, the commit message might be extended to summarize this, but at > the same time I see no way how this series can break anything even in 2+ ECs > environments. It's deviating from the patch, but in practice /why/ would you even want to have a design with two ECs? In general that is going to mean a much more complex state machine with synchronizing the interaction between both of them and the host. Understanding the benefit of such a design might make it easier to hypothesize impacts. > >> This patch would prevent any ACPI ECs other than the first one from probing, >> since they would fail to register their address space handler. >> I am just curious if/how we want to handle such situations. >