public inbox for iommu@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH 0/1] iommu/generic_pt: disable GCOV for iommu_amdv1.o
@ 2026-04-02 14:10 Konstantin Khorenko
  2026-04-02 14:10 ` [PATCH] " Konstantin Khorenko
  2026-04-09 17:01 ` [PATCH v2 0/1] iommu/generic_pt: fix GCOV build failure for amdv1 Konstantin Khorenko
  0 siblings, 2 replies; 7+ messages in thread
From: Konstantin Khorenko @ 2026-04-02 14:10 UTC (permalink / raw)
  To: Joerg Roedel, Will Deacon, Jason Gunthorpe
  Cc: Robin Murphy, Kevin Tian, Peter Oberparleiter, Mikhail Zaslonko,
	iommu, linux-kernel, Konstantin Khorenko, Pavel Tikhomirov,
	Vasileios Almpanis, Thomas Weißschuh

This patch fixes a build failure in drivers/iommu/generic_pt/fmt/iommu_amdv1.o
when -fprofile-update=atomic is added to global CFLAGS_GCOV.

This is part of a larger effort to add -fprofile-update=atomic to
global CFLAGS_GCOV to fix GCOV counter races that cause crashes on SMP
(posted earlier as a combined series):
  https://lore.kernel.org/lkml/20260401142020.1434243-1-khorenko@virtuozzo.com/T/#t

That combined series was split per subsystem as requested by reviewers.
The companion patches are:

 - net: fix skb_ext BUILD_BUG_ON failures (sent to netdev)
 - gcov: add -fprofile-update=atomic globally (sent to gcov/kbuild
   maintainers, depends on this patch and the net patches)

FIELD_PREP() compile-time checks fail because the entire call chain is
__always_inline functions generated by PT_MAKE_LEVELS(), and GCC's
.constprop cloning creates new profiled function bodies that bypass
__no_profile.  Disabling GCOV for the file is the only viable fix.

Konstantin Khorenko (1):
  iommu/generic_pt: disable GCOV for iommu_amdv1.o

 drivers/iommu/generic_pt/fmt/Makefile | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.43.5

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-09 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 14:10 [PATCH 0/1] iommu/generic_pt: disable GCOV for iommu_amdv1.o Konstantin Khorenko
2026-04-02 14:10 ` [PATCH] " Konstantin Khorenko
2026-04-03 16:07   ` Jason Gunthorpe
2026-04-09 17:01     ` Konstantin Khorenko
2026-04-09 17:01 ` [PATCH v2 0/1] iommu/generic_pt: fix GCOV build failure for amdv1 Konstantin Khorenko
2026-04-09 17:01   ` [PATCH v2] iommu/generic_pt: use __always_inline for amdv1pt_install_leaf_entry() Konstantin Khorenko
2026-04-09 18:29     ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox