just to share a workaround for this issue, because after digging up for a bit i realized that the kernel 5.19 has issues with legacy AMD hardware (2015 and early) that tried to use the AMDGPU kernel driver which crashes your system on boot up.
What i did was simply upgrade my kernel to 6.2.9-060209-generic by following the steps shared here: https://askubuntu.com/a/1388117/236992
In my case i used the shell script and it worked:
rodrigoal@rodrigoal-HP-Pavilion-14-Notebook-PC:~$ uname -r
6.2.9-060209-generic
Afterwards i edited my grub file: sudo gedit /etc/default/grub
I added the following after the "quiet splash" radeon.cik_support=0 amdgpu.cik_support=1 amdgpu.dc=1"
It looked like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.cik_support=0 amdgpu.cik_support=1 amdgpu.dc=1"
For my hardware is was cik because my integrated gpu is a Radeon R5 M330.
Once that was done, i saved the edit and executed the following command:
sudo update-grub2
Once it finishes you reboot your PC/laptop.
Now the output of the command lspci -k | grep -EA3 'VGA|3D|Display'
should be like mine:
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 05)
DeviceName: Onboard IGD
Subsystem: Hewlett-Packard Company Mullins [Radeon R4/R5 Graphics]
Kernel driver in use: amdgpu
Hope this helps anyone else who suffers from the same issue.