[Freedreno] Whether A200 driver is supported by Linux Mainline Kernel

abhijit abhijitnaik27 at gmail.com
Fri Jul 14 10:52:13 UTC 2017


Hi all,

Running xinit load freedreno_drv.so file after adding configuration in 
/etc/X11/xorg.conf,

Section "Server Flags"
              Option               "IgnoreABI"
EndSection

Section "Device"
     Identifier     "Device0"
     Driver         "freedreno"
     VendorName     "Freedreno "
     BoardName      "SoC"
EndSection

But I am getting segmentaion fault and following is snippet of 
/var/log/Xorg.0.log

[  6587.058] (II) No msm DRM/KMS, fallback to fbdev/kgsl
[  6587.059]
[  6587.059] Backtrace:
[  6587.059]
[  6587.059] Segmentation fault at address 0x3
[  6587.059]
Fatal server error:
[  6587.059] Caught signal 11 (Segmentation fault). Server aborting

Please let me know how I can go about debugging it

On Friday 14 July 2017 01:13 PM, abhijit naik wrote:
> Hi Ilia,
>
> Thank you very much for your reply.
>
> I am able to create msm_dri.so file with options you provided
>
> Even after that, soft pipe is being used for rendering.
>
> I am suspecting that glxinfo will use driver depending on _drv.so being
> detected by xinit
>
> Now I have freedreno_drv.so too. But still soft pipe is being used. I am
> trying to solve this puzzle.
>
>  Warm Regards,
>         Abhijit
>
>> On 10-Jul-2017, at 8:25 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>
>>> On Mon, Jul 10, 2017 at 10:53 AM, abhijit <abhijitnaik27 at gmail.com>
>>> wrote:
>>> Hi Rob,
>>>
>>> Thank you very much for your reply.
>>>
>>> I ensured that --enable-freedreno-kgsl is enabled in libdrm build and
>>> the
>>> same is copied to target
>>>
>>> The issue seems to be in mesa build
>>>
>>> I observed that there are two mechanism in which application can
>>> interact
>>> with underlaying DRM,
>>>    1. With DRI ($MESA_INSTALL_PATH/src/mesa/drivers/dri)
>>>    2. With Gallium driver ($MESA_INSTALL_PATH/src/gallium/drivers)
>>>
>>> Freedreno driver is present only in Case 2. For that reason I
>>> disabled dri
>>> in Mesa build and enabled gallium-xlib intreface, which will enable
>>> case 2
>>
>> You absolutely need --enable-dri. Gallium drivers are also DRI
>> drivers. The "src/mesa/drivers/dri" drivers are "classic" drivers,
>> while the others are "gallium" drivers. However they're all DRI
>> drivers.
>>
>> You can build mesa --with-dri-drivers=""
>> --with-gallium-drivers="freedreno", but you have to leave DRI(3)
>> enabled.
>>
>>  -ilia


More information about the Freedreno mailing list