From nobody Wed Aug 26 21:05:12 2026 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51C27348C7D for ; Mon, 10 Aug 2026 10:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786357242; cv=none; b=ZTNcEgBTCn9Ijex77xrBMY8VcB59qbYg+QHbHS4kvQYL6edT+iFVynuB13D9KHFzma2J0XBdpqAuXDwzCtUMH1Yv8U6qFnJHWn82XX5T/nODaoHEvI1iaAvG9a4YTMAME5/l/C4k9sh60ILkxCi/6/KWhJYaNbfDFGOaqButqDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786357242; c=relaxed/simple; bh=P/ouuuMO6OH/G/XLDxdGw9tTuBSKR6Qa/Pcf+Rx3Aks=; h=From:Date:Subject:MIME-Version:Message-Id:To:Cc:Content-Type: References; b=ufZMBNnQsF9rliZc1jvp319M9w8B2Auovxttts632iwtQXUqw6ddT1ef7bjFqjby+RxcsfAoul2lLccxWkwQxJ15m3OT/SQPOTjzXJ+4W87ZB5DKYL8zWcCPmbNDfPSIpvCLlRzGm8hrJYWp7Psk58zRauqwu7u5bEiwyy8RBAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=OOpCsCS4; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="OOpCsCS4" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20260810102038euoutp01233c9d39b8cfa5c90dbd45b70d1eaa7b~KanGOFHDl3182831828euoutp01I for ; Mon, 10 Aug 2026 10:20:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20260810102038euoutp01233c9d39b8cfa5c90dbd45b70d1eaa7b~KanGOFHDl3182831828euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1786357238; bh=nrDSqWh7fWlae3uBeMAL2gKZRJmUMcCwGW+tWicoz3Q=; h=From:Date:Subject:To:Cc:References:From; b=OOpCsCS4wtHw8vz8ZksAvrrM9uRvibrXy/9HSD5hWNbiJtX9o2OT1WmlYMzIKvFf+ eIc/M0ylaYzFDbhsShRWgjamM67wjpxUX3tnoVgRpK2Wt4455vgPlTZqm3hUmEI0SG hfFHm5KGschmva1KxB0ZtQ1zrfnugQaF2G5J2zQM= Received: from eusmtip1.samsung.com (unknown [203.254.199.221]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20260810102037eucas1p2f68492f185b4e411aafa83d5d15d0499~KanF2J6DV2887128871eucas1p2K; Mon, 10 Aug 2026 10:20:37 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20260810102036eusmtip1521f40c891104fdf7da0fde0f4b31e8d~KanFFXxgc0452904529eusmtip1H; Mon, 10 Aug 2026 10:20:36 +0000 (GMT) From: Michal Wilczynski Date: Mon, 10 Aug 2026 12:20:04 +0200 Subject: [PATCH v3] drm/imagination: Align rogue_fwif_hwrtdata to 64 bytes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <20260810-fix_imagination-v3-1-e512359722fc@samsung.com> X-B4-Tracking: v=1; b=H4sIANOleWoC/3XNwQ6CMAwG4FchOzuzdiDDk+9hjFnmBj0AZsNFQ 3h3C4kHYzz+7d+vs0g+kk/iWMwi+kyJxoGD3hXCdXZovaQbZ4EKK0BEGeh5pd62NNiJu9L4oFx T8s6Vgq/u0XNlE88Xzh2laYyv7UGGdfrfyiBBKuuMshiChvqUbJ8eQ7t3Yy9WLeNHOCijql8BW ah1Axa0Mw2Eb2FZljf0Diup8gAAAA== X-Change-ID: 20251222-fix_imagination-8ef0c94122c4 To: Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Donald Robson , Sarah Walker , Alessio Belle Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel test robot , Luigi Santivetti , Michal Wilczynski X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2220; i=m.wilczynski@samsung.com; h=from:subject:message-id; bh=P/ouuuMO6OH/G/XLDxdGw9tTuBSKR6Qa/Pcf+Rx3Aks=; b=owEBbQGS/pANAwAKASw99I2nQptuAcsmYgBqeaXzVWKQPaIJHmLrNWjsrVgPzIA1rdSmxcbwn iw533dUzliJATMEAAEKAB0WIQR2xBTdTO5XfoUTSOYsPfSNp0KbbgUCanml8wAKCRAsPfSNp0Kb bmdaB/4sH8cPKxybtSHXED7vHt0XRQFiYi/TmglRI4fanaJwB5/gtEc9AS0TS7I2cEeigOee2AY aP6ZgQCAdDMIucBDlL5nJ8yxU9vkCULesPWYFzr+vyyC7sOLcKxOfXF2ehkIcwBH2h+A2qAMZNR q+5jrcrAHIuY42WiMk92/Sd57Z0EykZudyD41XvGzDwPT33IhCC+lp0gztw2MOPwDcbwwkIHlcC GGhyyj60G96MPVF0TB7ny3/feLOJ+ULXb/hbu25/YsqSCIOoYlL0n7gcGpweT8CujDiHXCtC80c 6RDTc0O8zx/rxgu596rpPOAMFRLdhHHG4cPWQbQefldx5BOD X-Developer-Key: i=m.wilczynski@samsung.com; a=openpgp; fpr=76C414DD4CEE577E851348E62C3DF48DA7429B6E X-CMS-MailID: 20260810102037eucas1p2f68492f185b4e411aafa83d5d15d0499 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20260810102037eucas1p2f68492f185b4e411aafa83d5d15d0499 X-EPHeader: CA X-CMS-RootMailID: 20260810102037eucas1p2f68492f185b4e411aafa83d5d15d0499 References: The build fails on RISC-V using GCC because `SIZE_CHECK(struct rogue_fwif_hwrtdata, 384)` expects 384 bytes, but the compiler generates a 336-byte structure. This is due to an alignment conflict: the inner member `cleanup_state` requires 64-byte alignment, but the outer struct is explicitly marked `__aligned(8)`. While GCC on ARM64 implicitly pads the size to a multiple of 64, GCC on RISC-V strictly respects the 8-byte outer alignment, resulting in a size mismatch. Fix this by aligning the entire structure to 64 bytes, which resolves the contradiction and forces the correct 384 byte size on all architectures. Fixes: a26f067feac1 ("drm/imagination: Add FWIF headers") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202512131851.1WNXk3BC-lkp@int= el.com/ Reviewed-by: Luigi Santivetti Signed-off-by: Michal Wilczynski --- Changes in v3: - Cleaned up the changelog section by removing the accidental b4 "EDITME" template from v2. - No changes to the code or commit message. - Rebased patch on latest master. Changes in v2: - Expanded the commit message to properly explain the root cause of the GCC alignment conflict on RISC-V vs ARM64, based on v1 feedback. - No changes to the code. --- drivers/gpu/drm/imagination/pvr_rogue_fwif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imagination/pvr_rogue_fwif.h b/drivers/gpu/drm= /imagination/pvr_rogue_fwif.h index 5d590c4c25663e431601dd26944465b62c31526b..2f8daa93c9e6832bbeec7460275= c4b803792cb02 100644 --- a/drivers/gpu/drm/imagination/pvr_rogue_fwif.h +++ b/drivers/gpu/drm/imagination/pvr_rogue_fwif.h @@ -2174,7 +2174,7 @@ struct rogue_fwif_hwrtdata { bool geom_caches_need_zeroing __aligned(4); =20 struct rogue_fwif_cleanup_ctl cleanup_state __aligned(64); -} __aligned(8); +} __aligned(64); =20 /* *************************************************************************= ***** --- base-commit: db2ddb87143519e20a95aa36c60b36107b736a58 change-id: 20251222-fix_imagination-8ef0c94122c4 Best regards, --=20 Michal Wilczynski