Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1582049lqe; Mon, 8 Apr 2024 13:19:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAbayVZHIDGtBWeTsN/bgI7O4gWLGQUFUAho2if6Bdv8rta/bl6m6vxj5wHfS7/mXKdpnea64o8qC+jR/Gxq3mdfRBm0UetVkhOVqlIg== X-Google-Smtp-Source: AGHT+IEL1CSPGlekjAa1SWpfXEKqvvAY+96zZ7ae9DwwXtAtUZaJ9lHc+o5M43RH/f+SfEBllFqv X-Received: by 2002:a05:6a20:258d:b0:1a7:73cc:bcfd with SMTP id k13-20020a056a20258d00b001a773ccbcfdmr1005410pzd.13.1712607554313; Mon, 08 Apr 2024 13:19:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712607554; cv=pass; d=google.com; s=arc-20160816; b=HCIKeqdu34HlOTxYmzcWDbvrehkypjTWvFwvoQO+2WVODorzfa9kWKATavE+mvCAUM IhKt688C5PLD3AIznjUXWp7vOZL4PdLzPzFKyewtKItzCVFPhEw0PZaKv3A4/QpDbyf1 W4oOD/cHg9YIrwzUryaObmtjyh4YHdZQxHPOtfRFG1AOCOHV7SlrA1jRRLK+A/2sqbZ+ AEV5f32x1ksQtbQufTDQr7f5onCohDOyrxANRXCkkiiMQceV1PtsOu3sdm5zQZdsXtcB PMggYEZo6j7N1vuiYq+grOIPlx+FGrXvQBzERG7E/Kww9WC7rc1W1gUKZ14dfbpnpyKm Dbkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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 :dkim-filter; bh=9CF14shWGmvFsYBJo5BENhzax76hIR6cw6nC81BBl28=; fh=hP91JQdVQG+FLt//BBwuY8w5Z2sCW71p/CLCYFbhyV8=; b=gFPHyP4ARaix5qTTHt4Mx2xIyHGrsXNsUQSW6zadWcF1sTpDXZIYzTiYzI0i+U73tA eI2hRXgOK1UANvP5C+EYNpKEfbZKMErCu9vq1hTxnWPiocSBno9/xz7fXcWo91nw4yg9 KcoGnwNeoBicQ8K6ZgdjtJb1weboNlJhajtcbTeOKesSU8I9A0pss+FVGFa90gF0r8i8 HoRR6OxhC78XHG3yXjLuUVRNNoGyrF/oITTBV4urXBF5jtuzHY+IGlzmK8uYszJZjioX mCl0FUHDlhCRYE+nqengo5Wm+Do7UizpWP183ygykX6nMhySBFvLng3+U2ScrzUOu5gy gUEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=gDabHaWJ; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-135902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y40-20020a056a00182800b006ecf5e41c09si7389828pfa.382.2024.04.08.13.19.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 13:19:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135902-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=@linux.microsoft.com header.s=default header.b=gDabHaWJ; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-135902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C0B00B225C0 for ; Mon, 8 Apr 2024 20:19:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F71C146A71; Mon, 8 Apr 2024 20:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="gDabHaWJ" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7588738DD6; Mon, 8 Apr 2024 20:19:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712607542; cv=none; b=q33G/nEjzPUp9aua9xF160/EUtEEBE6u6vDQoCD/ti7i1Zikgijp5BmAZImFIVf2ME8wl9vAI2eri9njwvN0RI6EMEwtFkJxBD7xT228fTfnEwxwlUlGVNRYIv6ovtfdAAYTk73IBEqtCknOthodzJIcJhUZfH2MY4kMrxchng4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712607542; c=relaxed/simple; bh=NyGs5314UvkFHv1BlockzhAUPYtZOtClRMMt7esdDqc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HVV3NoVZiLTK2MmyY93Uj8EeHA66QSrGYKnz8ansq8WoGBV7DXeR2i460av/RONOWiFu3UqBh1O5xMeyXn9cTjZULEiZl/qOUxOMu+RhLGRcywnNuSKqBFfYo3dcoIqwf6CNWAtRN7+WoRoncXOx9Y8Ak31R77wrO0OHydOLXx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=gDabHaWJ; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from [10.192.9.210] (unknown [167.220.77.82]) by linux.microsoft.com (Postfix) with ESMTPSA id 263C420EA446; Mon, 8 Apr 2024 13:19:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 263C420EA446 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1712607541; bh=9CF14shWGmvFsYBJo5BENhzax76hIR6cw6nC81BBl28=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gDabHaWJXTKV4YaGT3f+cIScqkWv1ydP++c3PyNvWXyg9ElLEh78f7AzvkTlRrLHz hJowEX//MygT3PwRWBh1mip8XfJAb/3g4QFDMZNFh/ERQegcIUwCU4ZD7TVgk06nSK 9WF8lvgAyA8WqV6AIWm62PIvvU9YEnzT+bKoR+bc= Message-ID: <365b430b-d91c-4391-bfc4-ea6a3444cb43@linux.microsoft.com> Date: Mon, 8 Apr 2024 13:19:00 -0700 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/1] ACPI: CPPC: Fix access width used for PCC registers To: Vanshidhar Konda , Easwar Hariharan Cc: "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240329220054.1205596-1-vanshikonda@os.amperecomputing.com> Content-Language: en-CA From: Jarred White In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/1/2024 10:45 AM, Vanshidhar Konda wrote: > On Mon, Apr 01, 2024 at 09:48:28AM -0700, Easwar Hariharan wrote: >> Hi Vanshi, >> >> Thanks for testing and catching this. One comment below, but Jarred is >> OOF for a couple days so >> we'll get back again after testing on our platform. >> >> On 3/29/2024 3:00 PM, Vanshidhar Konda wrote: >>> Commit 2f4a4d63a193 ("ACPI: CPPC: Use access_width over bit_width for >>> system memory accesses") modified cpc_read/cpc_write to use >>> access_width to >>> read CPC registers. For PCC registers the access width field in the ACPI >>> register macro specifies the PCC subspace id. For non-zero PCC >>> subspace id >>> the access width is incorrectly treated as access width. This causes >>> errors >>> when reading from PCC registers in the CPPC driver. >>> >>> For PCC registers base the size of read/write on the bit width field. >>> The debug message in cpc_read/cpc_write is updated to print relevant >>> information for the address space type used to read the register. >>> >>> Fixes: 2f4a4d63a193 ("ACPI: CPPC: Use access_width over bit_width for >>> system memory accesses") >>> Signed-off-by: Vanshidhar Konda >>> --- Hi Vanshi, The patch is good. You can add, Reviewed-by: Jarred White Tested-by: Jarred White We also found another bug in the process of testing, which we will submitting a patch for. Thanks, Jarred