u/Old-Personality-8817

▲ 14 r/rust

Unsafe code review

Disclaimer: It is hand written code for purpose of learning

I want to scatter Vec<T> into count size pieces and give each thread a piece for processing.

After processing is done, I want to gather my Vec<T> back.

Full source:

https://pastebin.com/Z9aN0ijP

Also, additional points if you know library name which implements this pattern properly.

reddit.com
u/Old-Personality-8817 — 2 days ago
▲ 5 r/RISCV

Should riscv define standard gpu interface?

To continue grow riscv beyond mcu's we need some standardized way render desktop / phone shell.

Here is couple ideas i here.

  • Good enough to run desktop environment / kiosk applications
  • Like older Mali in arm ecosystem
  • Unified memory
  • Same MMU (Sv39/Sv48) as main cores
  • Tiller architecture
  • No display controller (only rendering in buffer in memory)

What do you think?

reddit.com
u/Old-Personality-8817 — 3 days ago

I have problems with phantom charging on my ASUS VivoBook 14 M1407KA-LY036

CPU: AMD Ryzen AI 5 340

It's thinks that cable was plugged and unplugged 3 times when I unplugging charger.

And randomly (once in 10/15min) do plugging/unplugging cycle, only when cable disconnected.

dmesg when connecting cable:

asus_wmi: Unknown key code 0xec

dmesg | grep asus_wmi

[    5.325550] asus_wmi: ASUS WMI generic driver loaded
[    5.404686] asus_wmi: Initialization: 0x1
[    5.404747] asus_wmi: SFUN value: 0x21
[    5.441934] asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -19
[    5.442291] asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -19
[    5.442685] asus_wmi: fan_curve_get_factory_default (0x00110032) failed: -19
[  805.434558] asus_wmi: Unknown key code 0xec
[ 5202.175064] asus_wmi: Unknown key code 0xec
[ 7876.567131] asus_wmi: Unknown key code 0xec
[11106.999579] asus_wmi: Unknown key code 0xec
[11330.320852] asus_wmi: Unknown key code 0xec
[11331.336740] asus_wmi: Unknown key code 0xec
[11349.349644] asus_wmi: Unknown key code 0xec
[11557.614476] asus_wmi: Unknown key code 0xec
[15238.203314] asus_wmi: Unknown key code 0xec
[15302.880486] asus_wmi: Unknown key code 0xec
[15325.565724] asus_wmi: Unknown key code 0xec
[15355.283518] asus_wmi: Unknown key code 0xec
[15652.364750] asus_wmi: Unknown key code 0xec
[15673.493706] asus_wmi: Unknown key code 0xec
[16592.253041] asus_wmi: Unknown key code 0xec

it happens of Arch and Fedora, so it's probably kernel bug.

what is the right place to file a bug?

reddit.com
u/Old-Personality-8817 — 4 months ago