[Touch-packages] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-10 Thread Isaac True
The attached patch disables usage of LLVM JIT on riscv64, which was
causing the error I reported in comment #3.

I obtained this patch from the following Debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004039

This patch, combined with the previous one, seems to work well on the
Sipeed Lichee RV board. I have tested this with ubuntu-frame and a
custom-built mesa-core20 snap containing the drivers built using these
patches.

** Bug watch added: Debian Bug tracker #1004039
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004039

** Patch added: "mesa-disable-llvm-riscv64.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+attachment/5630389/+files/mesa-disable-llvm-riscv64.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1995137

Title:
  "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

Status in mesa package in Ubuntu:
  New

Bug description:
  "sun4i-drm_dri.so" is needed for some RISC-V platforms such as the
  Allwinner D1. This file is missing from the riscv64 packages, but
  present on others.  This affects (at least) 20.04 and 22.04.

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_arm64.deb | grep _dri.so
  *snip*
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so link to 
./usr/lib/aarch64-linux-gnu/dri/armada-drm_dri.so
  *snip*

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_riscv64.deb | grep _dri.so
  -rw-r--r-- root/root  16498024 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  -rw-r--r-- root/root   4692400 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r200_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r300_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r600_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeon_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeonsi_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/swrast_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/virtio_gpu_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/zink_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-09 Thread Isaac True
Using this library results in the following error:

'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
WARNING: This target JIT is not designed for the host you are running.  If bad 
things happen, please choose a different -march switch.
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
'generic' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: Cannot select: 0x3fa81e7fa8: ch = store<(store 4 into %ir.mask_ptr1 
+ 12, basealign 16), trunc to i32> 0x3fa81eadd0, 0x3fa81eea00, 0x3fa81b3358, 
undef:i64
  0x3fa81eea00: i64 = sub Constant:i64<0>, 0x3fa81e7c68
0x3fa81b59a8: i64 = Constant<0>
0x3fa81e7c68: i64 = and 0x3fa81e7ed8, Constant:i64<1>
  0x3fa81e7ed8: i64 = srl 0x3fa81e9430, Constant:i64<7>
0x3fa81e9430: i64,ch = load<(load 2 from %fixed-stack.5, align 8), zext 
from i16> 0x3fa80c34b8, FrameIndex:i64<-2>, undef:i64
  0x3fa81b2e78: i64 = FrameIndex<-2>
  0x3fa81b2da8: i64 = undef
0x3fa81e7e70: i64 = Constant<7>
  0x3fa81b5a78: i64 = Constant<1>
  0x3fa81b3358: i64 = add FrameIndex:i64<6>, Constant:i64<28>
0x3fa81b34f8: i64 = FrameIndex<6>
0x3fa8217440: i64 = Constant<28>
  0x3fa81b2da8: i64 = undef
In function: fs_variant_partial
!!! Fatal signal received. Attempting cleanup, but deadlock may occur
pure virtual method called
terminate called without an active exception
!!! Fatal signal received. Attempting cleanup, but deadlock may occur
Mir fatal error: Unsupported attempt to continue after a fatal signal: SIGABRT


Seems similar to
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1993800 but probably
unrelated

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1995137

Title:
  "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

Status in mesa package in Ubuntu:
  New

Bug description:
  "sun4i-drm_dri.so" is needed for some RISC-V platforms such as the
  Allwinner D1. This file is missing from the riscv64 packages, but
  present on others.  This affects (at least) 20.04 and 22.04.

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_arm64.deb | grep _dri.so
  *snip*
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so link to 
./usr/lib/aarch64-linux-gnu/dri/armada-drm_dri.so
  *snip*

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_riscv64.deb | grep _dri.so
  -rw-r--r-- root/root  16498024 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  -rw-r--r-- root/root   4692400 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r200_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r300_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r600_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeon_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeonsi_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/swrast_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/virtio_gpu_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/zink_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : 

[Touch-packages] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-09 Thread Ubuntu Foundations Team Bug Bot
The attachment "mesa-build-lima-on-riscv64.debdiff" seems to be a
debdiff.  The ubuntu-sponsors team has been subscribed to the bug report
so that they can review and hopefully sponsor the debdiff.  If the
attachment isn't a patch, please remove the "patch" flag from the
attachment, remove the "patch" tag, and if you are member of the
~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1995137

Title:
  "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

Status in mesa package in Ubuntu:
  New

Bug description:
  "sun4i-drm_dri.so" is needed for some RISC-V platforms such as the
  Allwinner D1. This file is missing from the riscv64 packages, but
  present on others.  This affects (at least) 20.04 and 22.04.

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_arm64.deb | grep _dri.so
  *snip*
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so link to 
./usr/lib/aarch64-linux-gnu/dri/armada-drm_dri.so
  *snip*

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_riscv64.deb | grep _dri.so
  -rw-r--r-- root/root  16498024 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  -rw-r--r-- root/root   4692400 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r200_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r300_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r600_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeon_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeonsi_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/swrast_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/virtio_gpu_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/zink_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995137] Re: "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

2022-11-09 Thread Isaac True
The attached debdiff enables building the lima driver on riscv64. This
drivers provides sun4i-drm_dri.so.

I'm currently testing this locally and waiting on riscv64 to be enabled
for my PPA to build a package on LP.

** Patch added: "mesa-build-lima-on-riscv64.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+attachment/5630053/+files/mesa-build-lima-on-riscv64.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1995137

Title:
  "sun4i-drm_dri.so" is missing from libg1-mesa-dri on riscv64

Status in mesa package in Ubuntu:
  New

Bug description:
  "sun4i-drm_dri.so" is needed for some RISC-V platforms such as the
  Allwinner D1. This file is missing from the riscv64 packages, but
  present on others.  This affects (at least) 20.04 and 22.04.

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_arm64.deb | grep _dri.so
  *snip*
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so link to 
./usr/lib/aarch64-linux-gnu/dri/armada-drm_dri.so
  *snip*

  itrue@lxc-focal ~/tmp> dpkg -c 
libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_riscv64.deb | grep _dri.so
  -rw-r--r-- root/root  16498024 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  -rw-r--r-- root/root   4692400 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r200_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r300_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/r600_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeon_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/nouveau_vieux_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/radeonsi_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/swrast_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/virtio_gpu_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so
  hrw-r--r-- root/root 0 2022-03-08 16:37 
./usr/lib/riscv64-linux-gnu/dri/zink_dri.so link to 
./usr/lib/riscv64-linux-gnu/dri/kms_swrast_dri.so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1995137/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp