From nobody Sun Feb 8 23:32:06 2026 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 33A0130100D for ; Mon, 22 Dec 2025 23:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766444440; cv=none; b=UCwoMQjk+Ta9B+N7+elrCYTndS5VUoBTtyiKwR8ImhITduZH9ssxjZ0OYUvOS6oeTDWrGfjRfmfXhuKzXTrQ47vLVURLaYbk5AIcW+/yHazBS0tuvUKPFwAMie924QeRXS9SyvUaxnb2sBr6biyHJ4ilgrCJku00jy8CvAXo6oc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766444440; c=relaxed/simple; bh=0KhfUsCM1BqC2oh7TS2hh3iw8++cSZCHwqoXUBToTsc=; h=From:Date:Subject:MIME-Version:Message-Id:To:Cc:Content-Type: References; b=oDYWLmqsdQjYthZPRhDXOWr4iacBAZxJqYInlphQTPWzGlB00giSGqFQtTln383QPbrYjF9fI/ZP5kmMCJd9frex8dJh2n4AMXkfSAJfIGwP/c05gMLS9l5deY9i6ruNjGY9WMTRXxwnBKrEOz7XHMD3gxjbATX2Pjke2clSPj0= 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=LdUQSlCD; arc=none smtp.client-ip=210.118.77.12 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="LdUQSlCD" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20251222225350euoutp022ef763152d8012a3e493deeb7492f6aa~Dq3y18wn92101621016euoutp02V for ; Mon, 22 Dec 2025 22:53:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20251222225350euoutp022ef763152d8012a3e493deeb7492f6aa~Dq3y18wn92101621016euoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1766444031; bh=kC7Q0t/efEBJ0QALzbKklCHmQfNI6W8zXfcM+UKOfFE=; h=From:Date:Subject:To:Cc:References:From; b=LdUQSlCDvn11rfMHa/Stexonsqo5ojPU6UxQgch7qBqLPVv006nFUQTNX9vDeyMW4 /vco5bGkphJS7+DXvTPBQ2eFxfwm8LP4dRSol3CHR+Mz1gfH9TKbRHXPGbeVYIrPOy JqDw1qw8Uw6hC5OMwLcCY87Gd2US6UIRg4zn8SbA= Received: from eusmtip1.samsung.com (unknown [203.254.199.221]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20251222225350eucas1p1fc7c096318a7780ac7bdca8f63dc7ca1~Dq3yKzt5y3132931329eucas1p15; Mon, 22 Dec 2025 22:53:50 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20251222225349eusmtip1d46a466848fdd2a2e90c626b8b611888~Dq3xqltq-0596005960eusmtip1Y; Mon, 22 Dec 2025 22:53:49 +0000 (GMT) From: Michal Wilczynski Date: Mon, 22 Dec 2025 23:53:31 +0100 Subject: [PATCH] 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: <20251222-fix_imagination-v1-1-0ac80a2ff317@samsung.com> X-B4-Tracking: v=1; b=H4sIAOrLSWkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI1NDIyMj3bTMivjM3MT0zLzEEqBaXYvUNINkSxOgXLKJElBXQVEqUAnYxOj Y2loAgGJsZmEAAAA= 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 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel test robot , Michal Wilczynski X-Mailer: b4 0.15-dev X-CMS-MailID: 20251222225350eucas1p1fc7c096318a7780ac7bdca8f63dc7ca1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20251222225350eucas1p1fc7c096318a7780ac7bdca8f63dc7ca1 X-EPHeader: CA X-CMS-RootMailID: 20251222225350eucas1p1fc7c096318a7780ac7bdca8f63dc7ca1 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/ Signed-off-by: Michal Wilczynski Reviewed-by: Matt Coster --- 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 172886be4c820a32ae1b08d62bf0814250f2a9bd..1ba2a167a38b31911e0846923e4= dc70626f5ca65 100644 --- a/drivers/gpu/drm/imagination/pvr_rogue_fwif.h +++ b/drivers/gpu/drm/imagination/pvr_rogue_fwif.h @@ -2170,7 +2170,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: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 change-id: 20251222-fix_imagination-8ef0c94122c4 Best regards, --=20 Michal Wilczynski