From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796306336; b=ua+YX5xGJCU13ru0NzDCL/fwyA+arJKEIhWjyMDBzhzLueoVbxnXoI5bytyrYMWhqICL HD23TKejLBw2LX7VOsZfuRVMN8p7X6drOh3L2iljgt15RqG/5nPsveWvvcNfLFh+izdUG 3uNHX4AO0bhSNKeaAgGWmtOOC/CENhCNtGgC1p2s2rkQckIvbY88CxAvi0xYXXK6dehXH PRQusEJbuLwfopXECj6B1rRGvtKhZSdXs6IwAV9VjqftmZmjz1Ip89UXkpPY0mGTUHh7b O4ccLn4qAnOLKqshC+4ZexYAEmMGsoio7a8pxF7JJCrUm0tA9XIvg99WQWY0IdYpurA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796306336; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=qOhbs9tAHq5ildNiJTC//Cn5+NohDu4IYupzqwA3A6k=; b=FRhjK8WBLbS1VhMsEjkxzd3/Jp5F4NkUGoTEN4RYi6utmy1cfu7cPw0uBkfxFgnJH+By qDJgdUToae4YF4M1RdNOvrAFca9rUkXBXO/9CFkJq4mfPOYMSipQE5xT74BSW3u3XENK3 9UMx/Pw+kBWu0lOZkhUCJQwkuWVu9iTeXMRX7PbiNMnEGi8lSKK/B3Ny2T+jfPPinNmOq qUEUgQz/BkGEMYv9iecqrzJKHCz6fkFBATyUi1WwHL4hGx+sGO7DfHjUT/izv0fpTeA4A L3l9vOScGqhX7m2ehnZbOsM2CHMr8u/wd4gm7ogWsnBp+QNt375dYBhR06oFXzlP0gg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=j1rV3dyV; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72EFC606A322; Thu, 3 Dec 2026 13:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=j1rV3dyV Received: by smtp.kernel.org (Postfix) with ESMTPSA id D067D1F00893; Thu, 3 Dec 2026 13:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796306336; bh=qOhbs9tAHq5ildNiJTC//Cn5+NohDu4IYupzqwA3A6k=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=j1rV3dyVBP5IpMibb11X9SET713BzGGFHgupbvpHepJvnY8mk9gXWbS3011M4sHkj 1Cu1m3jmly0ilSOb/aXanUtFSpppmOt/vr0J4oHQt2lfTrA2soImD7pPh+6Svw3kIj dSQbl20rCvtne3+9nHOqlyO+0GwqBlpfT5CgWq9rTxAycIf6yoZlGWus0zQ3e5zOis 97qadm7qIQLuz0MeyUjpNffzda4MJZ8OzR8RQmawx4tNBAF4uQug4jvYy6wMEkyc37 nyPqs4ISFNZMq7z6mJvPpDEKE5dTQAC8Fe/u1bm3y2pnPhekQum599glIwAXBnMDyq KZIHaNLGrR84w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 05/22] ACPI: APEI: GHES: apply read-acknowledge masks directly Reply-To: sashiko-reviews@lists.linux.dev To: "Ahmed Tiba" Cc: linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-5-157aac88560b@arm.com> References: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com> <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-5-157aac88560b@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 13:58:55 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] ACPI: APEI: false apei_read()/apei_write() bit_offset claim in commit log - [Low] ACPI: APEI: GHES: missing Fixes trailer for ghes_ack_error() fix -- commit af58a14d28e306fe12ab5084c99fd989085fdb05 Author: Ahmed Tiba > ACPI: APEI: GHES: apply read-acknowledge masks directly > > apei_read() and apei_write() operate on the value described by the Generic > Address Structure and already account for its bit offset. Shifting the > GHESv2 Read Ack Preserve and Write masks by that offset a second time can > modify the wrong bits and fail to acknowledge an error source. [Severity: Medium] Is this description of apei_read() and apei_write() accurate? Neither function shifts by reg->bit_offset: apei_check_gar() only checks that bit_width + bit_offset fits within access_bit_width, and apei_read() and apei_write() perform raw unshifted reads and writes. Callers that need bit_offset shifting do it themselves, as in __apei_exec_read_register(). Removing the shifts in ghes_ack_error() therefore ignores read_ack_register.bit_offset completely rather than removing a duplicate shift. This misdocuments the apei_read()/apei_write() contract and hides that read_ack_register.bit_offset is no longer applied. Applying read_ack_preserve and read_ack_write directly matches ACPI full-register mask semantics (as in pcc_chan_reg_read_modify_write()), so the commit message could state that rationale instead. > Apply the firmware-provided masks directly to the value returned by > apei_read(). > > Reported-by: sashiko-bot@kernel.org > Link: https://sashiko.dev/#/message/20260617141511.F13231F000E9%40smtp.ke= rnel.org > Signed-off-by: Ahmed Tiba [Severity: Low] This looks like a bug fix for ghes_ack_error(). Should this include: Fixes: 42aa56044662 ("acpi: apei: read ack upon ghes record consumption") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-topics-ahm= tib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com?part=3D5