All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mesa: Disable asm on musl
@ 2018-10-02 19:11 Khem Raj
  2018-10-02 19:27 ` Burton, Ross
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2018-10-02 19:11 UTC (permalink / raw)
  To: openembedded-core

some unknown part of mesa's x86 assembly
code is broken by readonly text segments

[ YOCTO #12918 ]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 8d0e2cb67c..e6f3712706 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -107,7 +107,7 @@ PACKAGECONFIG[osmesa] = "--enable-${OSMESA},--disable-${OSMESA}"
 PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
 
 EXTRA_OECONF_remove_libc-musl = "--enable-glx-tls"
-EXTRA_OECONF_append_libc-musl = " --disable-glx-tls"
+EXTRA_OECONF_append_libc-musl = " --disable-asm --disable-glx-tls"
 # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
 FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
 
-- 
2.19.0



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

* Re: [PATCH] mesa: Disable asm on musl
  2018-10-02 19:11 [PATCH] mesa: Disable asm on musl Khem Raj
@ 2018-10-02 19:27 ` Burton, Ross
  2018-10-02 19:37   ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2018-10-02 19:27 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

Isn't this a bit overkill?  Is the assembler actually broken?

Ross
On Tue, 2 Oct 2018 at 20:21, Khem Raj <raj.khem@gmail.com> wrote:
>
> some unknown part of mesa's x86 assembly
> code is broken by readonly text segments
>
> [ YOCTO #12918 ]
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-graphics/mesa/mesa.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> index 8d0e2cb67c..e6f3712706 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -107,7 +107,7 @@ PACKAGECONFIG[osmesa] = "--enable-${OSMESA},--disable-${OSMESA}"
>  PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
>
>  EXTRA_OECONF_remove_libc-musl = "--enable-glx-tls"
> -EXTRA_OECONF_append_libc-musl = " --disable-glx-tls"
> +EXTRA_OECONF_append_libc-musl = " --disable-asm --disable-glx-tls"
>  # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
>  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
>
> --
> 2.19.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH] mesa: Disable asm on musl
  2018-10-02 19:27 ` Burton, Ross
@ 2018-10-02 19:37   ` Khem Raj
  2018-10-02 20:42     ` Burton, Ross
  2018-10-02 21:19     ` Paul Eggleton
  0 siblings, 2 replies; 6+ messages in thread
From: Khem Raj @ 2018-10-02 19:37 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]

I think it is. The way th calls are set for performance reasons seems to be
causing this
Ideally we should ensure to use right dialect for  tls calls I think musl
is exposing a bug in Mesa
Which we covered by disabling tls in Glx once we disable that then this
problem pops up so we disable ASM

So this is a workaround until then

On Tue, Oct 2, 2018 at 12:28 PM Burton, Ross <ross.burton@intel.com> wrote:

> Isn't this a bit overkill?  Is the assembler actually broken?
>
> Ross
> On Tue, 2 Oct 2018 at 20:21, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > some unknown part of mesa's x86 assembly
> > code is broken by readonly text segments
> >
> > [ YOCTO #12918 ]
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/recipes-graphics/mesa/mesa.inc | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-graphics/mesa/mesa.inc
> b/meta/recipes-graphics/mesa/mesa.inc
> > index 8d0e2cb67c..e6f3712706 100644
> > --- a/meta/recipes-graphics/mesa/mesa.inc
> > +++ b/meta/recipes-graphics/mesa/mesa.inc
> > @@ -107,7 +107,7 @@ PACKAGECONFIG[osmesa] =
> "--enable-${OSMESA},--disable-${OSMESA}"
> >  PACKAGECONFIG[unwind] =
> "--enable-libunwind,--disable-libunwind,libunwind"
> >
> >  EXTRA_OECONF_remove_libc-musl = "--enable-glx-tls"
> > -EXTRA_OECONF_append_libc-musl = " --disable-glx-tls"
> > +EXTRA_OECONF_append_libc-musl = " --disable-asm --disable-glx-tls"
> >  # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
> >  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
> >
> > --
> > 2.19.0
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 2736 bytes --]

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

* Re: [PATCH] mesa: Disable asm on musl
  2018-10-02 19:37   ` Khem Raj
@ 2018-10-02 20:42     ` Burton, Ross
  2018-10-02 20:58       ` Khem Raj
  2018-10-02 21:19     ` Paul Eggleton
  1 sibling, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2018-10-02 20:42 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

Can you file a bug with mesa so we don't forget and Mesa knows?

Ross
On Tue, 2 Oct 2018 at 20:37, Khem Raj <raj.khem@gmail.com> wrote:
>
> I think it is. The way th calls are set for performance reasons seems to be causing this
> Ideally we should ensure to use right dialect for  tls calls I think musl is exposing a bug in Mesa
> Which we covered by disabling tls in Glx once we disable that then this problem pops up so we disable ASM
>
> So this is a workaround until then
>
> On Tue, Oct 2, 2018 at 12:28 PM Burton, Ross <ross.burton@intel.com> wrote:
>>
>> Isn't this a bit overkill?  Is the assembler actually broken?
>>
>> Ross
>> On Tue, 2 Oct 2018 at 20:21, Khem Raj <raj.khem@gmail.com> wrote:
>> >
>> > some unknown part of mesa's x86 assembly
>> > code is broken by readonly text segments
>> >
>> > [ YOCTO #12918 ]
>> >
>> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> > ---
>> >  meta/recipes-graphics/mesa/mesa.inc | 2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
>> > index 8d0e2cb67c..e6f3712706 100644
>> > --- a/meta/recipes-graphics/mesa/mesa.inc
>> > +++ b/meta/recipes-graphics/mesa/mesa.inc
>> > @@ -107,7 +107,7 @@ PACKAGECONFIG[osmesa] = "--enable-${OSMESA},--disable-${OSMESA}"
>> >  PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
>> >
>> >  EXTRA_OECONF_remove_libc-musl = "--enable-glx-tls"
>> > -EXTRA_OECONF_append_libc-musl = " --disable-glx-tls"
>> > +EXTRA_OECONF_append_libc-musl = " --disable-asm --disable-glx-tls"
>> >  # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
>> >  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
>> >
>> > --
>> > 2.19.0
>> >
>> > --
>> > _______________________________________________
>> > Openembedded-core mailing list
>> > Openembedded-core@lists.openembedded.org
>> > http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH] mesa: Disable asm on musl
  2018-10-02 20:42     ` Burton, Ross
@ 2018-10-02 20:58       ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2018-10-02 20:58 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer

Yes, will do. I think it will need some time since this needs to be
well explained so mesa devs can see the reasoning behind it
On Tue, Oct 2, 2018 at 1:42 PM Burton, Ross <ross.burton@intel.com> wrote:
>
> Can you file a bug with mesa so we don't forget and Mesa knows?
>
> Ross
> On Tue, 2 Oct 2018 at 20:37, Khem Raj <raj.khem@gmail.com> wrote:
> >
> > I think it is. The way th calls are set for performance reasons seems to be causing this
> > Ideally we should ensure to use right dialect for  tls calls I think musl is exposing a bug in Mesa
> > Which we covered by disabling tls in Glx once we disable that then this problem pops up so we disable ASM
> >
> > So this is a workaround until then
> >
> > On Tue, Oct 2, 2018 at 12:28 PM Burton, Ross <ross.burton@intel.com> wrote:
> >>
> >> Isn't this a bit overkill?  Is the assembler actually broken?
> >>
> >> Ross
> >> On Tue, 2 Oct 2018 at 20:21, Khem Raj <raj.khem@gmail.com> wrote:
> >> >
> >> > some unknown part of mesa's x86 assembly
> >> > code is broken by readonly text segments
> >> >
> >> > [ YOCTO #12918 ]
> >> >
> >> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> >> > ---
> >> >  meta/recipes-graphics/mesa/mesa.inc | 2 +-
> >> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >> >
> >> > diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> >> > index 8d0e2cb67c..e6f3712706 100644
> >> > --- a/meta/recipes-graphics/mesa/mesa.inc
> >> > +++ b/meta/recipes-graphics/mesa/mesa.inc
> >> > @@ -107,7 +107,7 @@ PACKAGECONFIG[osmesa] = "--enable-${OSMESA},--disable-${OSMESA}"
> >> >  PACKAGECONFIG[unwind] = "--enable-libunwind,--disable-libunwind,libunwind"
> >> >
> >> >  EXTRA_OECONF_remove_libc-musl = "--enable-glx-tls"
> >> > -EXTRA_OECONF_append_libc-musl = " --disable-glx-tls"
> >> > +EXTRA_OECONF_append_libc-musl = " --disable-asm --disable-glx-tls"
> >> >  # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
> >> >  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
> >> >
> >> > --
> >> > 2.19.0
> >> >
> >> > --
> >> > _______________________________________________
> >> > Openembedded-core mailing list
> >> > Openembedded-core@lists.openembedded.org
> >> > http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH] mesa: Disable asm on musl
  2018-10-02 19:37   ` Khem Raj
  2018-10-02 20:42     ` Burton, Ross
@ 2018-10-02 21:19     ` Paul Eggleton
  1 sibling, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2018-10-02 21:19 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

Can we have bit more detail in the commit message about what the issues are? 
We're not supposed to rely solely on a bug report reference to do that; also 
if it's considered a workaround and we're working with upstream to fix it, the 
commit message should state that as well.

Thanks
Paul

On Wednesday, 3 October 2018 8:37:10 AM NZDT Khem Raj wrote:
> I think it is. The way th calls are set for performance reasons seems to be
> causing this
> Ideally we should ensure to use right dialect for  tls calls I think musl
> is exposing a bug in Mesa
> Which we covered by disabling tls in Glx once we disable that then this
> problem pops up so we disable ASM
> 
> So this is a workaround until then
> 
> On Tue, Oct 2, 2018 at 12:28 PM Burton, Ross <ross.burton@intel.com> wrote:
> 
> > Isn't this a bit overkill?  Is the assembler actually broken?
> >
> > Ross
> > On Tue, 2 Oct 2018 at 20:21, Khem Raj <raj.khem@gmail.com> wrote:
> > >
> > > some unknown part of mesa's x86 assembly
> > > code is broken by readonly text segments
> > >
> > > [ YOCTO #12918 ]
> > >
> > > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > > ---
> > >  meta/recipes-graphics/mesa/mesa.inc | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/meta/recipes-graphics/mesa/mesa.inc
> > b/meta/recipes-graphics/mesa/mesa.inc
> > > index 8d0e2cb67c..e6f3712706 100644
> > > --- a/meta/recipes-graphics/mesa/mesa.inc
> > > +++ b/meta/recipes-graphics/mesa/mesa.inc
> > > @@ -107,7 +107,7 @@ PACKAGECONFIG[osmesa] =
> > "--enable-${OSMESA},--disable-${OSMESA}"
> > >  PACKAGECONFIG[unwind] =
> > "--enable-libunwind,--disable-libunwind,libunwind"
> > >
> > >  EXTRA_OECONF_remove_libc-musl = "--enable-glx-tls"
> > > -EXTRA_OECONF_append_libc-musl = " --disable-glx-tls"
> > > +EXTRA_OECONF_append_libc-musl = " --disable-asm --disable-glx-tls"
> > >  # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2)
> > >  FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer"
> > >
> > > --
> > > 2.19.0
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-core mailing list
> > > Openembedded-core@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> 


-- 

Paul Eggleton
Intel Open Source Technology Centre




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

end of thread, other threads:[~2018-10-02 21:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-02 19:11 [PATCH] mesa: Disable asm on musl Khem Raj
2018-10-02 19:27 ` Burton, Ross
2018-10-02 19:37   ` Khem Raj
2018-10-02 20:42     ` Burton, Ross
2018-10-02 20:58       ` Khem Raj
2018-10-02 21:19     ` Paul Eggleton

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.