Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drivers for Ubuntu 22.04 Jammy #122

Open
Baonks81 opened this issue May 12, 2022 · 17 comments
Open

Drivers for Ubuntu 22.04 Jammy #122

Baonks81 opened this issue May 12, 2022 · 17 comments

Comments

@Baonks81
Copy link

Baonks81 commented May 12, 2022

I just saw libvdpau-tegra on launchpad - jammy branch, please support jammy. I built jammy mate on debootstrap/chroot and it worked on N7 2012 grouper. My work's here:
https://drive.google.com/drive/mobile/folders/1cIJaryNta43DQVxzOQu3RDl4IJNVQ9i0

@digetx
Copy link
Member

digetx commented May 13, 2022

Hi, I'll probably will get around to updating launchpad tomorrow. The libdrm2 package was dropped from Ubuntu 22.04, so perhaps we will need to bundle it with libvdpau-tegra from now on.

@Baonks81
Copy link
Author

Baonks81 commented May 15, 2022

Hi, I'll probably will get around to updating launchpad tomorrow. The libdrm2 package was dropped from Ubuntu 22.04, so perhaps we will need to bundle it with libvdpau-tegra from now on.

I tested blueman on 22.04, no result for searching, I think something wrong when ubuntu 20.04.4 worked well

@Baonks81
Copy link
Author

16526387435556311708516776051803

When blueman's searching, it took error and wifi got disconnect. But bluetooth worked. Tested

@digetx
Copy link
Member

digetx commented May 19, 2022

The PPA is ready, everything works for me, including Bluetooth.

@Baonks81
Copy link
Author

Baonks81 commented Jun 16, 2022

The PPA is ready, everything works for me, including Bluetooth.

Thanks for new linux-firmware upgrad today. I have 2 questions:

  1. I did everything I could but lightdm not auto-rotate
  2. I run upgrade new asus-grouper 5.17.0 kernel on pmbootstrap, following release but I got graphic glitch on boot, and boot.img has size 6,5MB. Is it too big? https://wiki.postmarketos.org/wiki/Upgrade_kernel_aports

@Baonks81
Copy link
Author

20220618_222506_3208816928345336390
Thanks for fix upgrade

@Baonks81
Copy link
Author

IMG_20220625_102139

After upgrade linux-firmware or ubuntu base include Xserver-xorg, Ubuntu MATE can not startx again

@Baonks81
Copy link
Author

IMG_20220625_103903

Oh, libglamoregl.so load failed 0x347f15fc

@digetx
Copy link
Member

digetx commented Jun 26, 2022

The modesetting driver won't work unless you explicitly disable accel in the Xorg config, although not sure whether it should crash. I'll take a look after finishing with updating the grate kernel.

Any reason why you're not using the Opentegra Xorg driver?

@Baonks81
Copy link
Author

Baonks81 commented Jul 5, 2022

I reinstall opentegra, libvdpau, linux-firmware and mesa. It worked when I got read-only file system error, fstab not mount /. So i checked fsck.ext4 on /dev/dm-1 (aka /). Thanks

@Baonks81
Copy link
Author

Please support ubuntu 22.10 kinetic kudu. I'll release 22.10 new image soon

@digetx
Copy link
Member

digetx commented Nov 13, 2022

I'll update it over the next week. May give you access to PPA if you want to help with the maintaining and avoid waiting for me.

@Baonks81
Copy link
Author

Baonks81 commented Dec 1, 2022

I need more documents about tegra GPU. Sending to my gmail baonks81. Thanks

@digetx
Copy link
Member

digetx commented Dec 6, 2022

The command submission is documented in Tegra TRM, you can download it form NV website. The rest is in https://github.com/grate-driver/grate/wiki and in the code.

@digetx
Copy link
Member

digetx commented Dec 19, 2022

The kinetic PPA is ready.

@Baonks81
Copy link
Author

ubuntu 23.04 released

@tamburro92
Copy link

Hi, i have just a question.
What still doesn't work for a daily usage?
I read like 3d Acceleration, audio input and some video hw decoding.
Is it still that right in 2023?

okias pushed a commit to okias/linux that referenced this issue Jan 11, 2024
Like commit 1cf3bfc ("bpf: Support 64-bit pointers to kfuncs")
for s390x, add support for 64-bit pointers to kfuncs for LoongArch.
Since the infrastructure is already implemented in BPF core, the only
thing need to be done is to override bpf_jit_supports_far_kfunc_call().

Before this change, several test_verifier tests failed:

  # ./test_verifier | grep # | grep FAIL
  grate-driver#119/p calls: invalid kfunc call: ptr_to_mem to struct with non-scalar FAIL
  grate-driver#120/p calls: invalid kfunc call: ptr_to_mem to struct with nesting depth > 4 FAIL
  grate-driver#121/p calls: invalid kfunc call: ptr_to_mem to struct with FAM FAIL
  grate-driver#122/p calls: invalid kfunc call: reg->type != PTR_TO_CTX FAIL
  grate-driver#123/p calls: invalid kfunc call: void * not allowed in func proto without mem size arg FAIL
  grate-driver#124/p calls: trigger reg2btf_ids[reg->type] for reg->type > __BPF_REG_TYPE_MAX FAIL
  grate-driver#125/p calls: invalid kfunc call: reg->off must be zero when passed to release kfunc FAIL
  grate-driver#126/p calls: invalid kfunc call: don't match first member type when passed to release kfunc FAIL
  grate-driver#127/p calls: invalid kfunc call: PTR_TO_BTF_ID with negative offset FAIL
  grate-driver#128/p calls: invalid kfunc call: PTR_TO_BTF_ID with variable offset FAIL
  grate-driver#129/p calls: invalid kfunc call: referenced arg needs refcounted PTR_TO_BTF_ID FAIL
  grate-driver#130/p calls: valid kfunc call: referenced arg needs refcounted PTR_TO_BTF_ID FAIL
  #486/p map_kptr: ref: reference state created and released on xchg FAIL

This is because the kfuncs in the loaded module are far away from
__bpf_call_base:

  ffff800002009440 t bpf_kfunc_call_test_fail1    [bpf_testmod]
  9000000002e128d8 T __bpf_call_base

The offset relative to __bpf_call_base does NOT fit in s32, which breaks
the assumption in BPF core. Enable bpf_jit_supports_far_kfunc_call() lifts
this limit.

Note that to reproduce the above result, tools/testing/selftests/bpf/config
should be applied, and run the test with JIT enabled, unpriv BPF enabled.

With this change, the test_verifier tests now all passed:

  # ./test_verifier
  ...
  Summary: 777 PASSED, 0 SKIPPED, 0 FAILED

Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants