All of lore.kernel.org
 help / color / mirror / Atom feed
* mesa-22.3.0-devel + linux-5.19.6 + mediapipe: panfrost js fault
@ 2022-09-04  4:13 Chris Ruehl
  2022-09-06 12:06 ` Robin Murphy
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Ruehl @ 2022-09-04  4:13 UTC (permalink / raw)
  To: dri-devel

[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]

Hi,

Something you might have a head up for it,

have a mediapipe application for POSE which use the T860 GPU for the calculation
but the kernel driver report error (js fault) - I see one or 2 calculation 
frames on the mat-picture output only before
the pipe stop working.

Linux bullseye64 5.19.6 #1 SMP PREEMPT Fri Sep 2 02:25:59 UTC 2022 aarch64 GNU/Linux

[    5.164415] panfrost ff9a0000.gpu: clock rate = 500000000
[    5.169845] panfrost ff9a0000.gpu: [drm:panfrost_devfreq_init [panfrost]] 
Failed to register cooling device
[    5.169989] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 0x0 
status 0x0
[    5.169999] panfrost ff9a0000.gpu: features: 00000000,00000407, issues: 
00000000,24040400
[    5.170008] panfrost ff9a0000.gpu: Features: L2:0x07120206 Shader:0x00000000 
Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
[    5.170017] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1
[    5.206827] [drm] Initialized panfrost 1.2.0 20180908 for ff9a0000.gpu on minor 1
...
[  162.862064] panfrost ff9a0000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, 
head=0xaba7100, tail=0xaba7100
[  162.862269] panfrost ff9a0000.gpu: js fault, js=1, status=DATA_INVALID_FAULT, 
head=0xa1e0100, tail=0xa1e0100

Have a RK3399 customized board and compiled the mesa drivers for it

meson $1 . build/ \
-D dri-drivers= \
-D vulkan-drivers= \
-D gallium-drivers=panfrost,kmsro \
-D llvm=disabled \
-D libunwind=false \
-D platforms=x11,wayland

glmark2 runs flawless scores 588.

Same code run on a x86_64 with an AMD GPU working fine.

Anything help fix the bug is welcome.

Thanks
Chris

[-- Attachment #2: Type: text/html, Size: 2150 bytes --]

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

* Re: mesa-22.3.0-devel + linux-5.19.6 + mediapipe: panfrost js fault
  2022-09-04  4:13 mesa-22.3.0-devel + linux-5.19.6 + mediapipe: panfrost js fault Chris Ruehl
@ 2022-09-06 12:06 ` Robin Murphy
  2022-09-08  8:06   ` Chris Ruehl
  0 siblings, 1 reply; 3+ messages in thread
From: Robin Murphy @ 2022-09-06 12:06 UTC (permalink / raw)
  To: Chris Ruehl, dri-devel

On 2022-09-04 05:13, Chris Ruehl wrote:
> Hi,
> 
> Something you might have a head up for it,
> 
> have a mediapipe application for POSE which use the T860 GPU for the 
> calculation
> but the kernel driver report error (js fault) - I see one or 2 
> calculation frames on the mat-picture output only before
> the pipe stop working.
> 
> Linux bullseye64 5.19.6 #1 SMP PREEMPT Fri Sep 2 02:25:59 UTC 2022 
> aarch64 GNU/Linux
> 
> [    5.164415] panfrost ff9a0000.gpu: clock rate = 500000000
> [    5.169845] panfrost ff9a0000.gpu: [drm:panfrost_devfreq_init 
> [panfrost]] Failed to register cooling device
> [    5.169989] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 
> 0x0 status 0x0
> [    5.169999] panfrost ff9a0000.gpu: features: 00000000,00000407, 
> issues: 00000000,24040400
> [    5.170008] panfrost ff9a0000.gpu: Features: L2:0x07120206 
> Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
> [    5.170017] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1
> [    5.206827] [drm] Initialized panfrost 1.2.0 20180908 for 
> ff9a0000.gpu on minor 1
> ...
> [  162.862064] panfrost ff9a0000.gpu: js fault, js=1, 
> status=DATA_INVALID_FAULT, head=0xaba7100, tail=0xaba7100
> [  162.862269] panfrost ff9a0000.gpu: js fault, js=1, 
> status=DATA_INVALID_FAULT, head=0xa1e0100, tail=0xa1e0100
> 
> Have a RK3399 customized board and compiled the mesa drivers for it
> 
> meson $1 . build/ \
> -D dri-drivers= \
> -D vulkan-drivers= \
> -D gallium-drivers=panfrost,kmsro \
> -D llvm=disabled \
> -D libunwind=false \
> -D platforms=x11,wayland
> 
> glmark2 runs flawless scores 588.
> 
> Same code run on a x86_64 with an AMD GPU working fine.
> 
> Anything help fix the bug is welcome.

This is almost certainly a userspace problem, so you're best off raising 
a Mesa issue with some more details - an apitrace of the failing 
application and/or PAN_MESA_DEBUG=trace output capturing the offending 
invalid descriptors would probably be a good starting point.

Robin.

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

* Re: mesa-22.3.0-devel + linux-5.19.6 + mediapipe: panfrost js fault
  2022-09-06 12:06 ` Robin Murphy
@ 2022-09-08  8:06   ` Chris Ruehl
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Ruehl @ 2022-09-08  8:06 UTC (permalink / raw)
  To: Robin Murphy, dri-devel

[-- Attachment #1: Type: text/plain, Size: 2160 bytes --]


On 6/9/2022 20:06, Robin Murphy wrote:
> On 2022-09-04 05:13, Chris Ruehl wrote:
>> Hi,
>>
>> Something you might have a head up for it,
>>
>> have a mediapipe application for POSE which use the T860 GPU for the calculation
>> but the kernel driver report error (js fault) - I see one or 2 calculation 
>> frames on the mat-picture output only before
>> the pipe stop working.
>>
>> Linux bullseye64 5.19.6 #1 SMP PREEMPT Fri Sep 2 02:25:59 UTC 2022 aarch64 
>> GNU/Linux
>>
>> [    5.164415] panfrost ff9a0000.gpu: clock rate = 500000000
>> [    5.169845] panfrost ff9a0000.gpu: [drm:panfrost_devfreq_init [panfrost]] 
>> Failed to register cooling device
>> [    5.169989] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 0x0 
>> status 0x0
>> [    5.169999] panfrost ff9a0000.gpu: features: 00000000,00000407, issues: 
>> 00000000,24040400
>> [    5.170008] panfrost ff9a0000.gpu: Features: L2:0x07120206 
>> Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7
>> [    5.170017] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1
>> [    5.206827] [drm] Initialized panfrost 1.2.0 20180908 for ff9a0000.gpu on 
>> minor 1
>> ...
>> [  162.862064] panfrost ff9a0000.gpu: js fault, js=1, 
>> status=DATA_INVALID_FAULT, head=0xaba7100, tail=0xaba7100
>> [  162.862269] panfrost ff9a0000.gpu: js fault, js=1, 
>> status=DATA_INVALID_FAULT, head=0xa1e0100, tail=0xa1e0100
>>
>> Have a RK3399 customized board and compiled the mesa drivers for it
>>
>> meson $1 . build/ \
>> -D dri-drivers= \
>> -D vulkan-drivers= \
>> -D gallium-drivers=panfrost,kmsro \
>> -D llvm=disabled \
>> -D libunwind=false \
>> -D platforms=x11,wayland
>>
>> glmark2 runs flawless scores 588.
>>
>> Same code run on a x86_64 with an AMD GPU working fine.
>>
>> Anything help fix the bug is welcome.
>
> This is almost certainly a userspace problem, so you're best off raising a 
> Mesa issue with some more details - an apitrace of the failing application 
> and/or PAN_MESA_DEBUG=trace output capturing the offending invalid descriptors 
> would probably be a good starting point.
>
> Robin.

Thanks, I will do this!

-Chris

[-- Attachment #2: Type: text/html, Size: 3239 bytes --]

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

end of thread, other threads:[~2022-09-08  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-04  4:13 mesa-22.3.0-devel + linux-5.19.6 + mediapipe: panfrost js fault Chris Ruehl
2022-09-06 12:06 ` Robin Murphy
2022-09-08  8:06   ` Chris Ruehl

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.