All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
@ 2018-06-21 17:22 Jagan Teki
  2018-06-22 10:45 ` Giulio Benetti
       [not found] ` <ac701773-49ba-2022-3c85-29525c8f384e@micronovasrl.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Jagan Teki @ 2018-06-21 17:22 UTC (permalink / raw)
  To: buildroot

Hi,

I'm trying to use sunxi-mali-mainline with linux-next for H3 platform.

Since Mali dt support is already added on linux-next, So I've directly
used buildroot and enabled necessary options.

Look like Mali initialization seems failing. I've not investigated
further but just to post if anyone found this already and seeking for
help.

Log:
# modprobe -a mali
[   43.364438] mali: loading out-of-tree module taints kernel.
[   43.379577] Allwinner sunXi mali glue initialized
[   43.568791] Mali: ERR:
/home/jagan/work/code/buildroot/output/build/sunxi-mali-mainline-driver-52ef1c5e133cc5fd791ca636239dc5e7b19c26d5/r6p2/src/devicedrv/mali/common/mali_pp.c
[   43.584511]            mali_pp_reset_wait() 269
[   43.584511]
[   43.584516] Mali PP: Failed to reset core Mali_PP0, rawstat: 0x00000000
[   43.598088]
[   43.599585] Mali: ERR:
/home/jagan/work/code/buildroot/output/build/sunxi-mali-mainline-driver-52ef1c5e133cc5fd791ca636239dc5e7b19c26d5/r6p2/src/devicedrv/mali/common/mali_kernec
[   43.616079]            mali_parse_product_info() 174
[   43.616079]
[   43.616091] Failed to create initial PP object
[   43.627935]
[   43.629486] Mali: ERR:
/home/jagan/work/code/buildroot/output/build/sunxi-mali-mainline-driver-52ef1c5e133cc5fd791ca636239dc5e7b19c26d5/r6p2/src/devicedrv/mali/linux/mali_kernelc
[   43.645995]            mali_probe() 606
[   43.645995]
[   43.645998] mali_probe(): Failed to initialize Mali device driver.
[   43.652267]
[   43.659966] mali-utgard: probe of mali-utgard.0 failed with error -14
[   43.666447] Mali:
[   43.666449] Mali device driver loaded
# /usr/lib/qt/examples/opengl/hellowindow/hellowindow
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Could not initialize egl display
Aborted


Jagan.

-- 
Jagan Teki
Senior Linux Kernel Engineer | Amarula Solutions
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
  2018-06-21 17:22 [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next Jagan Teki
@ 2018-06-22 10:45 ` Giulio Benetti
  2018-06-22 11:28   ` Giulio Benetti
       [not found] ` <ac701773-49ba-2022-3c85-29525c8f384e@micronovasrl.com>
  1 sibling, 1 reply; 7+ messages in thread
From: Giulio Benetti @ 2018-06-22 10:45 UTC (permalink / raw)
  To: buildroot

Resend, I was not subscribed to ML sorry.

Hi Jagan,

Il 21/06/2018 19:22, Jagan Teki ha scritto:
> Hi,
> 
> I'm trying to use sunxi-mali-mainline with linux-next for H3 platform.
> 
> Since Mali dt support is already added on linux-next, So I've directly
> used buildroot and enabled necessary options.

I would suggest you to use master branch or at least 4.17 version 
instead of linux-next.
But I'm not sure this is the root-cause.
Maybe give it a try if you can.

> 
> Look like Mali initialization seems failing. I've not investigated
> further but just to post if anyone found this already and seeking for
> help.
> 
> Log:
> # modprobe -a mali
> [   43.364438] mali: loading out-of-tree module taints kernel.
> [   43.379577] Allwinner sunXi mali glue initialized
> [   43.568791] Mali: ERR:
> /home/jagan/work/code/buildroot/output/build/sunxi-mali-mainline-driver-52ef1c5e133cc5fd791ca636239dc5e7b19c26d5/r6p2/src/devicedrv/mali/common/mali_pp.c
> [   43.584511]            mali_pp_reset_wait() 269
> [   43.584511]
> [   43.584516] Mali PP: Failed to reset core Mali_PP0, rawstat: 0x00000000
> [   43.598088]
> [   43.599585] Mali: ERR:
> /home/jagan/work/code/buildroot/output/build/sunxi-mali-mainline-driver-52ef1c5e133cc5fd791ca636239dc5e7b19c26d5/r6p2/src/devicedrv/mali/common/mali_kernec
> [   43.616079]            mali_parse_product_info() 174
> [   43.616079]
> [   43.616091] Failed to create initial PP object
> [   43.627935]
> [   43.629486] Mali: ERR:
> /home/jagan/work/code/buildroot/output/build/sunxi-mali-mainline-driver-52ef1c5e133cc5fd791ca636239dc5e7b19c26d5/r6p2/src/devicedrv/mali/linux/mali_kernelc
> [   43.645995]            mali_probe() 606
> [   43.645995]
> [   43.645998] mali_probe(): Failed to initialize Mali device driver.
> [   43.652267]
> [   43.659966] mali-utgard: probe of mali-utgard.0 failed with error -14
> [   43.666447] Mali:
> [   43.666449] Mali device driver loaded

IMHO this is very specific to driver more than buildroot package and
I suggest you to open an issue on https://github.com/mripard/sunxi-mali
So everything dealing with driver is treated there and maybe it's a 
better place to find help and keep trace for the others
(hope it's the right way, this is my first package maintained in 
Buildroot, so I don't know if I'm doing good, please let me know Peter, 
Maxime, Thomas and others, thanks).

Kind regards
Giulio

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
  2018-06-22 10:45 ` Giulio Benetti
@ 2018-06-22 11:28   ` Giulio Benetti
  2018-06-25 13:35     ` Jagan Teki
  0 siblings, 1 reply; 7+ messages in thread
From: Giulio Benetti @ 2018-06-22 11:28 UTC (permalink / raw)
  To: buildroot

Hi Jagan,

Il 22/06/2018 12:45, Giulio Benetti ha scritto:
> Resend, I was not subscribed to ML sorry.
> 
> Hi Jagan,
> 
> Il 21/06/2018 19:22, Jagan Teki ha scritto:
>> Hi,
>>
>> I'm trying to use sunxi-mali-mainline with linux-next for H3 platform.
>>
>> Since Mali dt support is already added on linux-next, So I've directly
>> used buildroot and enabled necessary options.
> 
> I would suggest you to use master branch or at least 4.17 version 
> instead of linux-next.
> But I'm not sure this is the root-cause.
> Maybe give it a try if you can.
> 
>>
>> Look like Mali initialization seems failing. I've not investigated
>> further but just to post if anyone found this already and seeking for
>> help.
>>
>> Log:
>> # modprobe -a mali

Driver is loaded automatically on boot,
since during install it is added to /lib/modules/extras
Are you sure you're not trying to modprobe twice?
Can you post lsmod before modprobe?
It should be already loaded.

If it's already loaded and not working can you post your dmesg?

Thanks

Kind regards
Giulio Benetti

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
       [not found] ` <ac701773-49ba-2022-3c85-29525c8f384e@micronovasrl.com>
@ 2018-06-22 11:33   ` Peter Korsgaard
  2018-06-22 11:37     ` Giulio Benetti
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2018-06-22 11:33 UTC (permalink / raw)
  To: buildroot

>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:

Hi,
 >> [   43.666449] Mali device driver loaded

 > IMHO this is very specific to driver more than buildroot package and
 > I suggest you to open an issue on https://github.com/mripard/sunxi-mali
 > So everything dealing with driver is treated there and maybe it's a
 > better place to find help and keep trace for the others
 > (hope it's the right way, this is my first package maintained in
 > Buildroot, so I don't know if I'm doing good, please let me know
 > Peter, Maxime, Thomas and others, thanks).

Yes, I agree. The sunxi-mali project is the best place to discuss these
things if they are not directly related to the Buildroot packaging. If a
fix is found, then the version in Buildroot should naturally be bumped.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
  2018-06-22 11:33   ` Peter Korsgaard
@ 2018-06-22 11:37     ` Giulio Benetti
  0 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2018-06-22 11:37 UTC (permalink / raw)
  To: buildroot

Il 22/06/2018 13:33, Peter Korsgaard ha scritto:
>>>>>> "Giulio" == Giulio Benetti <giulio.benetti@micronovasrl.com> writes:
> 
> Hi,
>   >> [   43.666449] Mali device driver loaded
> 
>   > IMHO this is very specific to driver more than buildroot package and
>   > I suggest you to open an issue on https://github.com/mripard/sunxi-mali
>   > So everything dealing with driver is treated there and maybe it's a
>   > better place to find help and keep trace for the others
>   > (hope it's the right way, this is my first package maintained in
>   > Buildroot, so I don't know if I'm doing good, please let me know
>   > Peter, Maxime, Thomas and others, thanks).
> 
> Yes, I agree. The sunxi-mali project is the best place to discuss these
> things if they are not directly related to the Buildroot packaging. If a
> fix is found, then the version in Buildroot should naturally be bumped.
> 

Thank you

Giulio

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
  2018-06-22 11:28   ` Giulio Benetti
@ 2018-06-25 13:35     ` Jagan Teki
  2018-06-25 21:08       ` Giulio Benetti
  0 siblings, 1 reply; 7+ messages in thread
From: Jagan Teki @ 2018-06-25 13:35 UTC (permalink / raw)
  To: buildroot

On Fri, Jun 22, 2018 at 4:58 PM, Giulio Benetti
<giulio.benetti@micronovasrl.com> wrote:
> Hi Jagan,
>
> Il 22/06/2018 12:45, Giulio Benetti ha scritto:
>>
>> Resend, I was not subscribed to ML sorry.
>>
>> Hi Jagan,
>>
>> Il 21/06/2018 19:22, Jagan Teki ha scritto:
>>>
>>> Hi,
>>>
>>> I'm trying to use sunxi-mali-mainline with linux-next for H3 platform.
>>>
>>> Since Mali dt support is already added on linux-next, So I've directly
>>> used buildroot and enabled necessary options.
>>
>>
>> I would suggest you to use master branch or at least 4.17 version instead
>> of linux-next.
>> But I'm not sure this is the root-cause.
>> Maybe give it a try if you can.
>>
>>>
>>> Look like Mali initialization seems failing. I've not investigated
>>> further but just to post if anyone found this already and seeking for
>>> help.
>>>
>>> Log:
>>> # modprobe -a mali
>
>
> Driver is loaded automatically on boot,
> since during install it is added to /lib/modules/extras
> Are you sure you're not trying to modprobe twice?
> Can you post lsmod before modprobe?
> It should be already loaded.
>
> If it's already loaded and not working can you post your dmesg?

I've tried with 4.17.2 please find the dmesg[1]

[1] https://paste.ubuntu.com/p/Y5GtCP4Tjj/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next
  2018-06-25 13:35     ` Jagan Teki
@ 2018-06-25 21:08       ` Giulio Benetti
  0 siblings, 0 replies; 7+ messages in thread
From: Giulio Benetti @ 2018-06-25 21:08 UTC (permalink / raw)
  To: buildroot

Hi Jagan,

Il 25/06/2018 15:35, Jagan Teki ha scritto:
> On Fri, Jun 22, 2018 at 4:58 PM, Giulio Benetti
> <giulio.benetti@micronovasrl.com> wrote:
>> Hi Jagan,
>>
>> Il 22/06/2018 12:45, Giulio Benetti ha scritto:
>>>
>>> Resend, I was not subscribed to ML sorry.
>>>
>>> Hi Jagan,
>>>
>>> Il 21/06/2018 19:22, Jagan Teki ha scritto:
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to use sunxi-mali-mainline with linux-next for H3 platform.
>>>>
>>>> Since Mali dt support is already added on linux-next, So I've directly
>>>> used buildroot and enabled necessary options.
>>>
>>>
>>> I would suggest you to use master branch or at least 4.17 version instead
>>> of linux-next.
>>> But I'm not sure this is the root-cause.
>>> Maybe give it a try if you can.
>>>
>>>>
>>>> Look like Mali initialization seems failing. I've not investigated
>>>> further but just to post if anyone found this already and seeking for
>>>> help.
>>>>
>>>> Log:
>>>> # modprobe -a mali
>>
>>
>> Driver is loaded automatically on boot,
>> since during install it is added to /lib/modules/extras
>> Are you sure you're not trying to modprobe twice?
>> Can you post lsmod before modprobe?
>> It should be already loaded.
>>
>> If it's already loaded and not working can you post your dmesg?
> 
> I've tried with 4.17.2 please find the dmesg[1]
> 
> [1] https://paste.ubuntu.com/p/Y5GtCP4Tjj/
> 

Ok, so on Buildroot side it's ok.
I ask you to open an issue on https://github.com/mripard/sunxi-mali

Thanks
Giulio

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-25 21:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21 17:22 [Buildroot] sun8i-h3: sunxi-mali-mainline package with linux-next Jagan Teki
2018-06-22 10:45 ` Giulio Benetti
2018-06-22 11:28   ` Giulio Benetti
2018-06-25 13:35     ` Jagan Teki
2018-06-25 21:08       ` Giulio Benetti
     [not found] ` <ac701773-49ba-2022-3c85-29525c8f384e@micronovasrl.com>
2018-06-22 11:33   ` Peter Korsgaard
2018-06-22 11:37     ` Giulio Benetti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.