All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix Navi cards crashing with FP exception on 5.6+
@ 2020-04-29 15:02 Daniel Kolesa
  2020-04-29 15:02 ` [PATCH 1/1] drm/amd/display: work around fp code being emitted outside of DC_FP_START/END Daniel Kolesa
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kolesa @ 2020-04-29 15:02 UTC (permalink / raw)
  To: amd-gfx; +Cc: Daniel Kolesa

This is not a real fix, but rather a workaround that should be applied to the
5.6 tree and newer. The idea here is to work around the compiler emitting FP
instructions outside the DC_FP_START/DC_FP_END blocks, which it currently does,
which causes crashes at least on ppc64le.

A proper solution would be to move all the floating point code into its own
files, then compile those with hard-float and strictly wrap all calls into
those with the DC_FP_START/DC_FP_END blocks, with the rest of the code being
compiled without floating point, but that's too extensive of a change to do,
and would not be possible in a stable tree.

The proper solution is already being discussed, it seems:

https://lore.kernel.org/lkml/CAG48ez2Sx4ELkM94aD_h_J7K7KBOeuGmvZLKRkg3n_f2WoZ_cg@mail.gmail.com/

Daniel Kolesa (1):
  drm/amd/display: work around fp code being emitted outside of
    DC_FP_START/END

 .../drm/amd/display/dc/dcn20/dcn20_resource.c | 31 ++++++++++++++-----
 1 file changed, 23 insertions(+), 8 deletions(-)

-- 
2.26.2

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2020-04-30 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-29 15:02 [PATCH 0/1] Fix Navi cards crashing with FP exception on 5.6+ Daniel Kolesa
2020-04-29 15:02 ` [PATCH 1/1] drm/amd/display: work around fp code being emitted outside of DC_FP_START/END Daniel Kolesa
2020-04-30 14:58   ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.