How to run FreeBSD on new boards built on Rockchip 35XX..

rtl8211f phy is a popular a gigabit ethernet phy used in arm sbcs
it supports both rgmii and rgmii_id variants (full tx rx)
when the gmac node uses it in rgmii mode and the gmac driver sets the delays it works
when the gmac node declares the phy mode as rmgii-id it won't work because the phy code won't set the delays

patch for rgephy to work in rgmii_id mode and rx/tx variants
tested on radxa zero 3e
 

Attachments

rtl8211f phy is a popular a gigabit ethernet phy used in arm sbcs
it supports both rgmii and rgmii_id variants (full tx rx)
when the gmac node uses it in rgmii mode and the gmac driver sets the delays it works
when the gmac node declares the phy mode as rmgii-id it won't work because the phy code won't set the delays

patch for rgephy to work in rgmii_id mode and rx/tx variants
tested on radxa zero 3e

I wanted to integrate IOMMU v2 that you posted for the radxa zero 3W,but IA told me :

Confirmed — rk_iommu_map/unmap only exist in the IOMMU module; they are not used anywhere in the Rockchip DRM code. The IOMMU driver is a standalone module that is not integrated with drm_gem_cma.

Is this true ? If it is true,I can't use your code so easily.
 
you need to patch rk_gem
see the source posted in post #299. you can diff whats in the post above with the original drm-subtree for an idea on what to change in rk_gem and rk_drm
 
Hello bro.

I have implemented a full IOMMU v2 integration with DRM / Panfrost code on the Radxa board Zero 3W. It has been a crazy 3 full days of night and day work. It's not only about to patch some file here and there. I have fixed a large numbers of bugs because in Linux it works differently than in FreeBSD. Now,this is the final situation :

1) Xorg with the glamour driver + xfce4 uses the 200% of the radxa cpus. Something is not working properly

2) I have changed xfce4 with lxde and cpu takes much less power from cpus

Despite point 1 and 2,firefox does not seem to be the best choice for surfing (and compiling from ports a fresh version of Chromium is a serious challenge)

When I go to YouTube for watching some videos I see the page has large black checks, sometimes magenta, and sometimes missing elements. Everything gets fixed after a while, but then the problems come back. I don't know what the problem is, perhaps some incompatibility between the xfce4 compositing and the panfrost driver ? Maybe there aren't bugs,but it's only Firefox that asks to the radxa board too many resources that it can't offer ?

Anyway do you know if does exists or if it's possible to port the VAAPI driver to the radxa zero 3W or in general to ARM64 for FreeBSD ? This is what I get for the moment :

Code:
# vainfo

Trying display: wayland
Trying display: x11libva info: VA-API version 1.23.0
libva info: Trying to open /usr/local/lib/dri/panfrost_drv_video.solib
va info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
 
Back
Top