Skip to contentSkip to conversation

mesa: add fix for arm6

PATCH In review Jeremy A. Puhlman 2 participants 3 messages Feb 28, 2020 – Feb 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesa: add fix for arm6

From: Jeremy Puhlman <[email protected]>

We have had similar problems with missing atomics on arm6 that arm5 has.

---
 meta/recipes-graphics/mesa/mesa.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/mesa/mesa.inc +1 -0
index 87f167c507..54d7ea8961 100644
@@ -161,6 +161,7 @@ EXTRA_OEMESON_append = " -Dasm=false"
 FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
 
 CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS"
+CFLAGS_append_armv6 = " -DMISSING_64BIT_ATOMICS"
 
 # Remove the mesa dependency on mesa-dev, as mesa is empty
 RDEPENDS_${PN}-dev = ""
Signature · 1 line
2.20.1
#1 lore raw
Quoted 4 lines · Jeremy A. Puhlman

From: Jeremy Puhlman <[email protected]>

We have had similar problems with missing atomics on arm6 that arm5 has.

How are you able to reproduce this problem?

I was wondering why the upstream fixes that happened in the meantime didn't fix it for armv5, but a qemuarmv5 build of mesa on master worked even after commenting out this line.

meta/recipes-graphics/mesa/mesa.inc EXTRA_OEMESON_append = " -Dasm=false" · line 164

Quoted 9 lines

...

meta/recipes-graphics/mesa/mesa.inc +1 -0
@@ -161,6 +161,7 @@ EXTRA_OEMESON_append = " -Dasm=false"
 FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
 
 CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS"
+CFLAGS_append_armv6 = " -DMISSING_64BIT_ATOMICS"
...

cu
Adrian

BTW: armv6, not arm6 - arm6 is armv3

#2 lore raw

This was in my queue from a previous yotco version. I haven't gotten my arm bsp up and running yet. I will double check.

Quoted 25 lines · Adrian Bunk
Quoted 4 lines · Jeremy A. Puhlman

From: Jeremy Puhlman <[email protected]>

We have had similar problems with missing atomics on arm6 that arm5 has.

How are you able to reproduce this problem?

I was wondering why the upstream fixes that happened in the meantime didn't fix it for armv5, but a qemuarmv5 build of mesa on master worked even after commenting out this line.

meta/recipes-graphics/mesa/mesa.inc EXTRA_OEMESON_append = " -Dasm=false" · line 164

Quoted 9 lines

...

meta/recipes-graphics/mesa/mesa.inc +1 -0
@@ -161,6 +161,7 @@ EXTRA_OEMESON_append = " -Dasm=false"
  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
 
  CFLAGS_append_armv5 = " -DMISSING_64BIT_ATOMICS"
+CFLAGS_append_armv6 = " -DMISSING_64BIT_ATOMICS"
...

cu
Adrian

BTW: armv6, not arm6 - arm6 is armv3

Signature · 2 lines
Jeremy A. Puhlman
[email protected]