From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAA3064AAA; Fri, 12 Jan 2024 14:19:32 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="io8SmW2A" Received: from [10.192.9.210] (unknown [167.220.81.210]) by linux.microsoft.com (Postfix) with ESMTPSA id 3973420B3CDD; Fri, 12 Jan 2024 06:19:32 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3973420B3CDD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1705069172; bh=Hf/1xwwBQuN1sfFBigN5QHzku0/GhLdtO5+o3Q14nPg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=io8SmW2AsPSi33kTlc8853e86u0ggvFPZa+pTze/SEIO9PLniCuek13WIN5+ubJuc rTrLlIuuYeIHmJbCpRexjaoLnjy7fswD/LK8ktayRNf9aT827Epn6TRnwllZZk4ID5 SIKWCqw7DtVBx41Kj38+ha+sOLSbpWXEQ+K7lkDM= Message-ID: Date: Fri, 12 Jan 2024 06:19:31 -0800 Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v2] acpi: Use access_width over register_width for system memory accesses Content-Language: en-US To: Easwar Hariharan , "Rafael J. Wysocki" Cc: Len Brown , "open list:ACPI" , open list References: <20231216001312.1160-1-jarredwhite@linux.microsoft.com> <6e7db718-65ec-4461-bab9-0ee4c96c25eb@linux.microsoft.com> From: Jarred White In-Reply-To: <6e7db718-65ec-4461-bab9-0ee4c96c25eb@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/22/2023 4:00 PM, Easwar Hariharan wrote: > >> @@ -784,7 +792,8 @@ int acpi_cppc_processor_probe(struct > acpi_processor *pr) > >>                                                          goto out_free; > >>                                          } > >> > >> -                                       addr = > ioremap(gas_t->address, gas_t->bit_width/8); > >> +                                       access_width = > ACCESS_WIDTH_TO_BITS(gas_t) / 8; > > > > What would happen if the platform firmware incorrectly provided > > reg->access_witdh == 0? > > > Unfortunately, we have no hardware platform with this configuration to test with. What is the level of concern here? Were there previous changes that raised this similar concerns? Thanks, Jarred