So that wasn't a driver issue after all. My bad.
The driver was inside a VM with gpu passthrough.
Here is what I did.
- install amgpu-pro in the host
- add enable iommu inside the guest (with GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt") (was already inside the host)
- unblacklist amgpu inside the host
- reboot a few times
- detach the gpu from with host with
virsh nodedev-detach <pci_id>
(seems like it has to be reattached/detached between vm reboot, or clinfo will fail. A host reboot might help)
- and clinfo works inside the VM
Some steps might be unnecessary idk... hopefully that might be of some use for some people in the future.
Peace.