Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support
@ 2018-04-27 14:07 Michał Kalbarczyk
  2018-04-28 13:33 ` Thomas Petazzoni
  2018-04-28 13:55 ` Romain Naour
  0 siblings, 2 replies; 5+ messages in thread
From: Michał Kalbarczyk @ 2018-04-27 14:07 UTC (permalink / raw)
  To: buildroot



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

* [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support
  2018-04-27 14:07 [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support Michał Kalbarczyk
@ 2018-04-28 13:33 ` Thomas Petazzoni
  2018-04-28 13:55 ` Romain Naour
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-04-28 13:33 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 27 Apr 2018 16:07:06 +0200, Micha? Kalbarczyk wrote:
> From adff41d0ec39d5e89ce713c88edb0ee6468c7236 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Micha=C5=82=20Kalbarczyk?= <fazibear@gmail.com>
> Date: Fri, 27 Apr 2018 15:49:15 +0200
> Subject: [PATCH 1/1] package/mesa3d: add Radeon SI support
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> Signed-off-by: Micha? Kalbarczyk <fazibear@gmail.com>
> ---
>  package/mesa3d/Config.in | 20 ++++++++++++++++++++
>  package/mesa3d/mesa3d.mk |  1 +
>  2 files changed, 21 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support
  2018-04-27 14:07 [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support Michał Kalbarczyk
  2018-04-28 13:33 ` Thomas Petazzoni
@ 2018-04-28 13:55 ` Romain Naour
  2018-04-28 14:59   ` Michał Kalbarczyk
  1 sibling, 1 reply; 5+ messages in thread
From: Romain Naour @ 2018-04-28 13:55 UTC (permalink / raw)
  To: buildroot

Hi Michal,

Le 27/04/2018 ? 16:07, Micha? Kalbarczyk a ?crit?:
> From adff41d0ec39d5e89ce713c88edb0ee6468c7236 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Micha=C5=82=20Kalbarczyk?= <fazibear@gmail.com>
> Date: Fri, 27 Apr 2018 15:49:15 +0200
> Subject: [PATCH 1/1] package/mesa3d: add Radeon SI support
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit

Thanks for this contribution!
I know it's too late since the patch is already applied but here is my review.

> Signed-off-by: Micha? Kalbarczyk <fazibear@gmail.com>
> ---
>  package/mesa3d/Config.in | 20 ++++++++++++++++++++
>  package/mesa3d/mesa3d.mk |  1 +
>  2 files changed, 21 insertions(+)
> 
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index bd3d050e29..cbaa20370f 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -108,6 +108,26 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
>  	help
>  	  Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
> 
> +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
> +	bool "Gallium Radeon SI driver"
> +	depends on BR2_i386 || BR2_x86_64
> +	depends on !BR2_PACKAGE_MESA3D_LLVM || \

The RadeonSI support require LLVM.

checking for AMDGPU... yes
configure: error: --enable-llvm is required when building radeonsi

> +		(BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
> +			BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
> +	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> +	select BR2_PACKAGE_LIBDRM_AMDGPU

In my previous review, mesa is checking for libdrm-amdgpu and libdrm-radeon [1]

checking for EXPAT... yes
checking for RADEON... no
configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >= 2.4.71)

> +	select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
> +	select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
> +	select BR2_PACKAGE_MESA3D_NEEDS_XA
> +	help
> +	  Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
> +
> +# Radeon SI needs libelf when Mesa3D is built with LLVM support
> +# musl is not currently compatible with elfutils
> +comment "Radeon SI driver needs a uClibc or glibc toolchain when llvm is enabled"
> +	depends on BR2_PACKAGE_MESA3D_LLVM
> +	depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)

The comment should be updated accordingly since llvm is mandatory.

Best regards,
Romain

[1] http://lists.busybox.net/pipermail/buildroot/2018-April/219308.html

> +
>  # R600 needs libelf when Mesa3D is built with LLVM support
>  # musl is not currently compatible with elfutils
>  comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
> diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
> index e93490c042..9857b597cf 100644
> --- a/package/mesa3d/mesa3d.mk
> +++ b/package/mesa3d/mesa3d.mk
> @@ -80,6 +80,7 @@ endif
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV)  += etnaviv imx
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)  += nouveau
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)     += r600
> +MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) += radeonsi
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA)     += svga
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST)   += swrast
>  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4)      += vc4
> --
> 2.17.0
> 

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

* [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support
  2018-04-28 13:55 ` Romain Naour
@ 2018-04-28 14:59   ` Michał Kalbarczyk
  2018-04-28 15:03     ` Romain Naour
  0 siblings, 1 reply; 5+ messages in thread
From: Michał Kalbarczyk @ 2018-04-28 14:59 UTC (permalink / raw)
  To: buildroot

I get it now. It works for me because I have selected LIB_RADEON and
MESA3D_LLVM in my defconfig. I?ll create another patch. Should i post it in
this thread or create another one?

On Sat, 28 Apr 2018 at 15:55, Romain Naour <romain.naour@gmail.com> wrote:

> Hi Michal,
>
> Le 27/04/2018 ? 16:07, Micha? Kalbarczyk a ?crit :
> > From adff41d0ec39d5e89ce713c88edb0ee6468c7236 Mon Sep 17 00:00:00 2001
> > From: =?UTF-8?q?Micha=C5=82=20Kalbarczyk?= <fazibear@gmail.com>
> > Date: Fri, 27 Apr 2018 15:49:15 +0200
> > Subject: [PATCH 1/1] package/mesa3d: add Radeon SI support
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset=UTF-8
> > Content-Transfer-Encoding: 8bit
>
> Thanks for this contribution!
> I know it's too late since the patch is already applied but here is my
> review.
>
> > Signed-off-by: Micha? Kalbarczyk <fazibear@gmail.com>
> > ---
> >  package/mesa3d/Config.in | 20 ++++++++++++++++++++
> >  package/mesa3d/mesa3d.mk |  1 +
> >  2 files changed, 21 insertions(+)
> >
> > diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> > index bd3d050e29..cbaa20370f 100644
> > --- a/package/mesa3d/Config.in
> > +++ b/package/mesa3d/Config.in
> > @@ -108,6 +108,26 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
> >       help
> >         Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
> >
> > +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
> > +     bool "Gallium Radeon SI driver"
> > +     depends on BR2_i386 || BR2_x86_64
> > +     depends on !BR2_PACKAGE_MESA3D_LLVM || \
>
> The RadeonSI support require LLVM.
>
> checking for AMDGPU... yes
> configure: error: --enable-llvm is required when building radeonsi
>
> > +             (BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
> > +                     BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
> > +     select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> > +     select BR2_PACKAGE_LIBDRM_AMDGPU
>
> In my previous review, mesa is checking for libdrm-amdgpu and
> libdrm-radeon [1]
>
> checking for EXPAT... yes
> checking for RADEON... no
> configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >=
> 2.4.71)
>
> > +     select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
> > +     select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
> > +     select BR2_PACKAGE_MESA3D_NEEDS_XA
> > +     help
> > +       Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
> > +
> > +# Radeon SI needs libelf when Mesa3D is built with LLVM support
> > +# musl is not currently compatible with elfutils
> > +comment "Radeon SI driver needs a uClibc or glibc toolchain when llvm
> is enabled"
> > +     depends on BR2_PACKAGE_MESA3D_LLVM
> > +     depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
>
> The comment should be updated accordingly since llvm is mandatory.
>
> Best regards,
> Romain
>
> [1] http://lists.busybox.net/pipermail/buildroot/2018-April/219308.html
>
> > +
> >  # R600 needs libelf when Mesa3D is built with LLVM support
> >  # musl is not currently compatible with elfutils
> >  comment "R600 driver needs a uClibc or glibc toolchain when llvm is
> enabled"
> > diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
> > index e93490c042..9857b597cf 100644
> > --- a/package/mesa3d/mesa3d.mk
> > +++ b/package/mesa3d/mesa3d.mk
> > @@ -80,6 +80,7 @@ endif
> >  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV)  +=
> etnaviv imx
> >  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)  +=
> nouveau
> >  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)     +=
> r600
> > +MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) +=
> radeonsi
> >  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA)     +=
> svga
> >  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST)   +=
> swrast
> >  MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4)      +=
> vc4
> > --
> > 2.17.0
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180428/f93d07fb/attachment.html>

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

* [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support
  2018-04-28 14:59   ` Michał Kalbarczyk
@ 2018-04-28 15:03     ` Romain Naour
  0 siblings, 0 replies; 5+ messages in thread
From: Romain Naour @ 2018-04-28 15:03 UTC (permalink / raw)
  To: buildroot

Hi Michal,

Le 28/04/2018 ? 16:59, Micha? Kalbarczyk a ?crit?:
> I get it now. It works for me because I have selected LIB_RADEON and MESA3D_LLVM
> in my defconfig. I?ll create another patch. Should i post it in this thread or
> create another one? 

Simply post a new patch on the ml using git send-email command.

Best regards,
Romain

> 
> On Sat, 28 Apr 2018 at 15:55, Romain Naour <romain.naour@gmail.com
> <mailto:romain.naour@gmail.com>> wrote:
> 
>     Hi Michal,
> 
>     Le 27/04/2018 ? 16:07, Micha? Kalbarczyk a ?crit?:
>     > From adff41d0ec39d5e89ce713c88edb0ee6468c7236 Mon Sep 17 00:00:00 2001
>     > From: =?UTF-8?q?Micha=C5=82=20Kalbarczyk?= <fazibear@gmail.com
>     <mailto:fazibear@gmail.com>>
>     > Date: Fri, 27 Apr 2018 15:49:15 +0200
>     > Subject: [PATCH 1/1] package/mesa3d: add Radeon SI support
>     > MIME-Version: 1.0
>     > Content-Type: text/plain; charset=UTF-8
>     > Content-Transfer-Encoding: 8bit
> 
>     Thanks for this contribution!
>     I know it's too late since the patch is already applied but here is my review.
> 
>     > Signed-off-by: Micha? Kalbarczyk <fazibear@gmail.com
>     <mailto:fazibear@gmail.com>>
>     > ---
>     >? package/mesa3d/Config.in | 20 ++++++++++++++++++++
>     >? package/mesa3d/mesa3d.mk <http://mesa3d.mk> |? 1 +
>     >? 2 files changed, 21 insertions(+)
>     >
>     > diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
>     > index bd3d050e29..cbaa20370f 100644
>     > --- a/package/mesa3d/Config.in
>     > +++ b/package/mesa3d/Config.in
>     > @@ -108,6 +108,26 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
>     >? ? ? ?help
>     >? ? ? ? ?Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
>     >
>     > +config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
>     > +? ? ?bool "Gallium Radeon SI driver"
>     > +? ? ?depends on BR2_i386 || BR2_x86_64
>     > +? ? ?depends on !BR2_PACKAGE_MESA3D_LLVM || \
> 
>     The RadeonSI support require LLVM.
> 
>     checking for AMDGPU... yes
>     configure: error: --enable-llvm is required when building radeonsi
> 
>     > +? ? ? ? ? ? ?(BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
>     > +? ? ? ? ? ? ? ? ? ? ?BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
>     > +? ? ?select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
>     > +? ? ?select BR2_PACKAGE_LIBDRM_AMDGPU
> 
>     In my previous review, mesa is checking for libdrm-amdgpu and libdrm-radeon [1]
> 
>     checking for EXPAT... yes
>     checking for RADEON... no
>     configure: error: Package requirements (libdrm >= 2.4.71 libdrm_radeon >=
>     2.4.71)
> 
>     > +? ? ?select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
>     > +? ? ?select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
>     > +? ? ?select BR2_PACKAGE_MESA3D_NEEDS_XA
>     > +? ? ?help
>     > +? ? ? ?Driver for ATI/AMD Radeon HD7000/HD8000/Rx200 GPUs.
>     > +
>     > +# Radeon SI needs libelf when Mesa3D is built with LLVM support
>     > +# musl is not currently compatible with elfutils
>     > +comment "Radeon SI driver needs a uClibc or glibc toolchain when llvm is
>     enabled"
>     > +? ? ?depends on BR2_PACKAGE_MESA3D_LLVM
>     > +? ? ?depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
> 
>     The comment should be updated accordingly since llvm is mandatory.
> 
>     Best regards,
>     Romain
> 
>     [1] http://lists.busybox.net/pipermail/buildroot/2018-April/219308.html
> 
>     > +
>     >? # R600 needs libelf when Mesa3D is built with LLVM support
>     >? # musl is not currently compatible with elfutils
>     >? comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
>     > diff --git a/package/mesa3d/mesa3d.mk <http://mesa3d.mk>
>     b/package/mesa3d/mesa3d.mk <http://mesa3d.mk>
>     > index e93490c042..9857b597cf 100644
>     > --- a/package/mesa3d/mesa3d.mk <http://mesa3d.mk>
>     > +++ b/package/mesa3d/mesa3d.mk <http://mesa3d.mk>
>     > @@ -80,6 +80,7 @@ endif
>     >? MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV)? +=
>     etnaviv imx
>     >? MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)? +=
>     nouveau
>     >? MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)? ? ?+= r600
>     > +MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI) +=
>     radeonsi
>     >? MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA)? ? ?+= svga
>     >? MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST)? ?+=
>     swrast
>     >? MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4)? ? ? += vc4
>     > --
>     > 2.17.0
>     >
> 

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

end of thread, other threads:[~2018-04-28 15:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-27 14:07 [Buildroot] [PATCH 1/1] package/mesa3d: add Radeon SI support Michał Kalbarczyk
2018-04-28 13:33 ` Thomas Petazzoni
2018-04-28 13:55 ` Romain Naour
2018-04-28 14:59   ` Michał Kalbarczyk
2018-04-28 15:03     ` Romain Naour

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