Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1567686lqp; Mon, 15 Apr 2024 10:01:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtxTpogDpW/qRa8zx//cM2VyRAsAhTT8CN6k5NgTOaaFEz7+V8mtnbHk9LIxudEmtZH/ALFcsDOw2vYjbGxGj/+HqVYHVyMyHZ5Ou75g== X-Google-Smtp-Source: AGHT+IHBaAK4FW1dVzpgXc9twA20K1TKY0Y5CDM1O8yz6IKezr9A0xZe7eJIMFVu+4lv/PYGqN3u X-Received: by 2002:a05:6a20:3244:b0:1a7:59b5:4276 with SMTP id hm4-20020a056a20324400b001a759b54276mr7794491pzc.54.1713200484469; Mon, 15 Apr 2024 10:01:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713200484; cv=pass; d=google.com; s=arc-20160816; b=etfqvetgmF2lAjt2EBCdQOK4AWAjU3DkNm5QnChBWs99isLRRj0crZLe2LINdj/HzY +B26lQPA01XN52HjxyXH+GRPS+1Xq1CcwNPahJ1pLecaibIJrRZ1xO2H0bc6HhP3eU0g 7l2b0IJ/n9WDexGYUFfaeBjyulGW99Jwmx8eAsSBEzXES1OTz9TA1A7FMU//Xe8aluCD cs5q93h3Ogj5zgfoUmEpODfT5px6i18eubEnveCRcfrkKc68zshB3Txh+OMSxd1KTcA0 3jP5lA05nPlGv7l92eN769rIWRVsIppTHJZbiL5CCjXzOFxgx7yTdNhYVIXSy4ePAAPW PRmQ== 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=1Y2iT+1AtzHxLD8oGSnFz0RaJt75iNC/M01LDDuCiXU=; fh=WJ2cSSqrmXbo3Q97cSrn+NNbim7pKn4UAnJp+mYFuEc=; b=mDCDREp65adV6qzbklPYky0swIGP8ylukMO/OBZQ6y6LNg5Xa/VuqSTn1OEqVpCF0o R4ofBiWN3WmIw8uiVVDS8pVw1apufQWBerv3DZmKUPpjDoNF9mo/+1iPBv0Uu+ApWGQ9 Ur9NahlTkBF/IOegnUak/HZ6v2F8manzl/mirH483XA1G80gy73LknzTx/ip4j6AX9/3 /6FYZV2yrqgYj0CsQy6PkPMYDLlaIW1gp5tREoUEomHi9bYuql2AczqyXP7nFJo/TPIV 6QjD499Gz3Sw9hi0qIxOdOr8QG63zrMcW/VCxh02oDzWrafnSA47BlX6s1W7gdK0NFev RTVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=kGOBxSNu; 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-145598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145598-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 d11-20020a634f0b000000b005f3ffb10873si8030157pgb.503.2024.04.15.10.01.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 10:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145598-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=kGOBxSNu; 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-145598-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145598-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 33A1AB214DE for ; Mon, 15 Apr 2024 16:59:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 682F0839FC; Mon, 15 Apr 2024 16:59:26 +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="kGOBxSNu" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66E9C82862; Mon, 15 Apr 2024 16:59:24 +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=1713200365; cv=none; b=CVxFyTGDFn6HppUryIIgwUfFkUlzIUWA9H4PixcN+iiDcZR6c6ZP6S7WulvHAvPPce3xgW87NosOUoP+L80ig+dXCfnYQ3G0FGIThmdwF6tcpDhXAhX/+xpf2TwWEm+laVdFLCJyS7yrg9KEsil/snGRC77+EYfQcUKh4yNELOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713200365; c=relaxed/simple; bh=O13GvU5BCT9jBH2CEsNd+5l0EKswBWOItdeZUFAgs4Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UyQVBiHY9h+KR3LV7WkVsHOD1YcvRsp0F0dg7T5fNQSk9ph8ln7N69GmETO44Td9UixpzSHleN14q5RKkCkR/De1ZLyb+izbqnv8CPwCj01dDWDHaTyjQVSf9w4wBOqomOIh1ozAh0NaV9qw0uh0O9s5FxApbfFBx+koXZod69w= 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=kGOBxSNu; 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 02C1420FC5F5; Mon, 15 Apr 2024 09:59:24 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 02C1420FC5F5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713200364; bh=1Y2iT+1AtzHxLD8oGSnFz0RaJt75iNC/M01LDDuCiXU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kGOBxSNuV/o15hSqeF5PJ0lBvo8x+fVs2dbyo8CrVulShFF2vS/mthOrmcJvjHtjO 0AZ4lG+6O6MkiQv0SctQQAYlnmht3vLQn9AJx2ZRpzZuSj7mPHwj1Cz7qRQnyAVn9Z /I8HWxTuxfiI6lchkF9g9Z1gY0bilcHDxg6nbAUg= Message-ID: <6081eadb-0879-4a7f-93a2-18a8132c0f83@linux.microsoft.com> Date: Mon, 15 Apr 2024 09:59:23 -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 v3] 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, "5 . 15+" References: <20240411231844.3306037-1-vanshikonda@os.amperecomputing.com> Content-Language: en-CA From: Jarred White In-Reply-To: <20240411231844.3306037-1-vanshikonda@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/11/2024 4:18 PM, Vanshidhar Konda wrote: > commit 2f4a4d63a193be6fd530d180bb13c3592052904c 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. > > Signed-off-by: Vanshidhar Konda > Tested-by: Jarred White > Reviewed-by: Jarred White > Reviewed-by: Easwar Hariharan > Cc: 5.15+ # 5.15+ Hi Vanshi, v3 changes are good. Thanks again for catching this! Thanks, Jarred