Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1052304rdg; Wed, 11 Oct 2023 12:57:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwGgCwElmRpktb73JRYS4lQCYYcIMHKDiVxDPZsLadJVyKUMI2Gaabjj5oGVY+l8RmNbgJ X-Received: by 2002:a05:6870:158b:b0:1e9:b0fa:de4c with SMTP id j11-20020a056870158b00b001e9b0fade4cmr279196oab.33.1697054220652; Wed, 11 Oct 2023 12:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697054220; cv=none; d=google.com; s=arc-20160816; b=ei7Iw7g5XNFxPtXjFxWh4wt1x2Movp5+wWFYR73pWVezJe7bi4CluBDPi2P9P0akLF kRYzI9o0XE5W8WjjGlKYpU+iXlDZG86D9UV5LW5TeJ91t73ucvuW8frznCkkZu6AkGXj sxCYxGXkmpVS1OQFAAVScwAht2s0v1D1BQixcSzYZlfBkCjXEFhW4dbgonE579Z3MqwA 2GtEYR1h8wjmels0Ly7WJOIT+P9+INiSbv9ulyDpkdg+gZEwEMn9t5eH8SCim2ZKkDL2 pzmrjKf4m92i0SDsR4u3ZJQNK7RXUU0tlBCtyDxtbrbvACX94JWFrBwU4NIS3TjbPrxe EhJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=TBZdQQUltpuV9HyLOh65oqRuciUQw/90/g0T1N3ig58=; fh=NGmLUhohh4IXW45y5LUPciKrO9cw4W81k0wiz9usqXU=; b=PAPZphNcxRJr+R62vIts1osZd3rRF8vxZJOBLykOXwxvuL00X526kACCvEn7WnnMmv PQHvtxj8347LRxozidVogPEWugwD1vpSqRpP6dAvYVtFVc0L/pny8qZk/EYoboQtdUUA haU0k55W93pt6JN14ZZf6isACi6OlFqpe/RMM3flevepXbrQSpVQoD6EGfel2R22LZ27 Z6VKyXpuWHsui59gUSJsUFGObUw/vUt2BHH7QdeMguZPJ3jt+Wx5w/pwea1GsToCee5i WcfIV2rHv7AP8mwoV2JN6c7ewwPlbFoen99i5hi1yQ3NDcQaa6ZzTj7Pn/K4ZSzy/CP5 K09A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZyVqHMVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l13-20020a635b4d000000b00589336ba9f7si448465pgm.822.2023.10.11.12.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 12:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZyVqHMVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9DF0080758E0; Wed, 11 Oct 2023 12:56:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233170AbjJKT4n (ORCPT + 99 others); Wed, 11 Oct 2023 15:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233103AbjJKT4m (ORCPT ); Wed, 11 Oct 2023 15:56:42 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D2CE94; Wed, 11 Oct 2023 12:56:41 -0700 (PDT) Received: from [10.192.9.210] (unknown [167.220.81.210]) by linux.microsoft.com (Postfix) with ESMTPSA id 988F920B74C0; Wed, 11 Oct 2023 12:56:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 988F920B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1697054200; bh=TBZdQQUltpuV9HyLOh65oqRuciUQw/90/g0T1N3ig58=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZyVqHMVfdzF1nHDzGIyQs8vM2aDPTwCds7lZxmqJqjCOERCi0zfxlsR1mjY6tx/mY 3bDqV/Y/TqlTdddJjx62dNjea5bYxAji++z/ZLwt3bu0K7pssZR6JHCjRuYRZAkigi /B3Rix3JpJCc271GhTucwh8yg626j8LAl5b4ZiJ0= Message-ID: <42a5c36d-8b65-418f-9826-2808ab49d67a@linux.microsoft.com> Date: Wed, 11 Oct 2023 12:56:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] acpi: Use access_width over register_width for system memory accesses Content-Language: en-US To: "Rafael J. Wysocki" Cc: Len Brown , "open list:ACPI" , open list References: <20230925180552.76071-1-jarredwhite@linux.microsoft.com> From: Jarred White In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 12:56:58 -0700 (PDT) On 10/3/2023 11:50 AM, Rafael J. Wysocki wrote: > On Mon, Sep 25, 2023 at 8:06 PM Jarred White > wrote: >> To align with ACPI 6.3+, since bit_width can be any 8-bit value, we cannot >> depend on it being always on a clean 8b boundary. Instead, use access_width >> to determine the size and use the offset and width to shift and mask the >> bit swe want to read/write out. Make sure to add a check for system memory >> since pcc redefines the access_width to subspace id. > This is fine, but what if there are systems in the field where > bit_width is invalid, but they just happen to work because of the way > it is currently handled? For the kernel coding style issues, I will clean up for the v2 patch. On the invalid bit_width for systems out there in the field, do you have any suggestions on how to handle this particular scenario? Would it be appropriate to add a kernel parameter flag that can revert back to the previous implementation? P.S. Sorry for the HTML email. Thanks, Jarred