* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
@ 2014-09-11 2:15 ` bugzilla-daemon
2014-09-18 6:54 ` bugzilla-daemon
` (18 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-11 2:15 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1614 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
Michel Dänzer <michel@daenzer.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|mplayer plays video using |[vdpau,uvd] kernel oops,
|gpu hardware |Unable to handle kernel
|acceleraing(vdpau,uvd) |paging request at virtual
|kernel panic, Unable to |address
|handle kernel paging |
|request at virtual address |
Product|Mesa |DRI
Version|9.2 |unspecified
Component|Drivers/Gallium/radeonsi |DRM/Radeon
--- Comment #1 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #1)
> Hi, I try to using gpu hardware accelerate to play video from mplayer
> (vdpau+uvd) . The machine architecture is sparc64,video card is radeon
> HD7450,OS version is redhat7,kernel version is 3.10.0, mplayer version is
> 1.1-21,mesa version is 9.2.5-6.
Please attach the output of dmesg (showing at least all radeon driver related
initialization), the /var/log/Xorg.0.log file and the output of vdpauinfo.
Can you try newer versions of the kernel and Mesa?
P.S. AFAICT the 7450 is Northern Islands generation (Caicos) based, not
Southern Islands based, otherwise I'd be very surprised you even got this far,
given bug 82455. :)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3505 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
2014-09-11 2:15 ` [Bug 83708] [vdpau,uvd] kernel oops, " bugzilla-daemon
@ 2014-09-18 6:54 ` bugzilla-daemon
2014-09-18 6:55 ` bugzilla-daemon
` (17 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 6:54 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #2 from Jack <zduo006@163.com> ---
Created attachment 106479
--> https://bugs.freedesktop.org/attachment.cgi?id=106479&action=edit
xorg log
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1218 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
2014-09-11 2:15 ` [Bug 83708] [vdpau,uvd] kernel oops, " bugzilla-daemon
2014-09-18 6:54 ` bugzilla-daemon
@ 2014-09-18 6:55 ` bugzilla-daemon
2014-09-18 6:55 ` bugzilla-daemon
` (16 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 6:55 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 283 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #3 from Jack <zduo006@163.com> ---
Created attachment 106480
--> https://bugs.freedesktop.org/attachment.cgi?id=106480&action=edit
vdpau log
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1221 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (2 preceding siblings ...)
2014-09-18 6:55 ` bugzilla-daemon
@ 2014-09-18 6:55 ` bugzilla-daemon
2014-09-18 6:56 ` bugzilla-daemon
` (15 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 6:55 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #4 from Jack <zduo006@163.com> ---
Created attachment 106481
--> https://bugs.freedesktop.org/attachment.cgi?id=106481&action=edit
radeon init log
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1239 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (3 preceding siblings ...)
2014-09-18 6:55 ` bugzilla-daemon
@ 2014-09-18 6:56 ` bugzilla-daemon
2014-09-18 7:18 ` bugzilla-daemon
` (14 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 6:56 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 283 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #5 from Jack <zduo006@163.com> ---
Created attachment 106482
--> https://bugs.freedesktop.org/attachment.cgi?id=106482&action=edit
error log
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1221 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (4 preceding siblings ...)
2014-09-18 6:56 ` bugzilla-daemon
@ 2014-09-18 7:18 ` bugzilla-daemon
2014-09-18 7:28 ` bugzilla-daemon
` (13 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 7:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 2045 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #6 from Jack <zduo006@163.com> ---
(In reply to comment #1)
> (In reply to comment #1)
> > Hi, I try to using gpu hardware accelerate to play video from mplayer
> > (vdpau+uvd) . The machine architecture is sparc64,video card is radeon
> > HD7450,OS version is redhat7,kernel version is 3.10.0, mplayer version is
> > 1.1-21,mesa version is 9.2.5-6.
>
> Please attach the output of dmesg (showing at least all radeon driver
> related initialization), the /var/log/Xorg.0.log file and the output of
> vdpauinfo.
>
> Can you try newer versions of the kernel and Mesa?
>
> P.S. AFAICT the 7450 is Northern Islands generation (Caicos) based, not
> Southern Islands based, otherwise I'd be very surprised you even got this
> far, given bug 82455. :)
Hi, attachment are the logs of xort,radeon init,vdpauinfo, the output seem to
be ok.
I try to trace the code ,found that it execute radeon_uvd_cs_reloc func to get
the start address of the relocs in GPU RAM.
reloc = p->relocs_ptr[idx/4] (idx is 0)
start = reloc->lobj.gpu_offset
and the start address is start:0x182c000, the radeon_uvd_cs_msg func can remap
the gpu address to cpu virtual address use radeon_bo_kmap(bo,
&ptr)->ttm_bo_ioremap, the return cpu virtual address is [zd
radeon_uvd_cs_msg] ptr:000000ca1182c000, msg:000000ca1182c000. and this
address is the unhandle address, see the error log.
I try to change the PAGE_SHIFT to 12(gpu page shift) in the
ttm_bo_ioremap(cpu is 8K page size ,gpu is 4K page size) ,but no effects. I
think the bo store in gpu ram has the wrong gpu_offset.But I don't know the
reason. the only way can effect this is the remap,base the different cpu page
size and gpu page size.
Can give me any idea about this? Or maybe have some ways to verified?
Tks
By the way, where can download the document about the ttm and gem ? I am
puzzled about the principle of gpu memory managerment .
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3200 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (5 preceding siblings ...)
2014-09-18 7:18 ` bugzilla-daemon
@ 2014-09-18 7:28 ` bugzilla-daemon
2014-09-18 12:41 ` bugzilla-daemon
` (12 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 7:28 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 280 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
Looks like maybe ttm_bo_ioremap() doesn't work correctly. Which path does it
take?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1140 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (6 preceding siblings ...)
2014-09-18 7:28 ` bugzilla-daemon
@ 2014-09-18 12:41 ` bugzilla-daemon
2014-09-20 4:09 ` bugzilla-daemon
` (11 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-18 12:41 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 773 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #8 from Jack <zduo006@163.com> ---
(In reply to comment #7)
> Looks like maybe ttm_bo_ioremap() doesn't work correctly. Which path does it
> take?
which path does it take? you mean...
but I get the start = reloc->lobj.gpu_offset, start is 0x182c000, this address
is gpu address,base address is 0x0. when do ttm_bo_ioremap the cpu virtual
address is 0x000000ca1182c000, reference as radeon.log ,the address mapping
seems good.
By the way, when I do the ring_ib_test on ring 5, also failed, unhandle request
address come out. Next I will do some trace for ring_ib_test,because this not
depend on libdrm.only construct msg and send.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1676 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (7 preceding siblings ...)
2014-09-18 12:41 ` bugzilla-daemon
@ 2014-09-20 4:09 ` bugzilla-daemon
2014-09-20 4:09 ` bugzilla-daemon
` (10 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-20 4:09 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 556 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #9 from Jack <zduo006@163.com> ---
I solved that problem by use readl()/writel() func to access cpu virtual
address insteand of set address directly. such as use readl(&msg[1]) instead of
msg_type=msg[1]. and use the l/b endian transfer. But the new error ocurred
(error message) .
radeon:GPU lockup cp stall for ... more than...
I try to change the lockup timeout to longer but no use.
I don't know why??
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (8 preceding siblings ...)
2014-09-20 4:09 ` bugzilla-daemon
@ 2014-09-20 4:09 ` bugzilla-daemon
2014-09-20 4:10 ` bugzilla-daemon
` (9 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-20 4:09 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 288 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #10 from Jack <zduo006@163.com> ---
Created attachment 106571
--> https://bugs.freedesktop.org/attachment.cgi?id=106571&action=edit
error message
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1235 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (9 preceding siblings ...)
2014-09-20 4:09 ` bugzilla-daemon
@ 2014-09-20 4:10 ` bugzilla-daemon
2014-09-22 8:59 ` bugzilla-daemon
` (8 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-20 4:10 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 232 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #11 from Jack <zduo006@163.com> ---
The mplayer UI appear,no output. and then kernel panic
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1060 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (10 preceding siblings ...)
2014-09-20 4:10 ` bugzilla-daemon
@ 2014-09-22 8:59 ` bugzilla-daemon
2014-09-23 13:00 ` bugzilla-daemon
` (7 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-22 8:59 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 483 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #12 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #9)
> radeon:GPU lockup cp stall for ... more than...
That means the GPU hangs while processing commands, probably because the
commands are malformed in some way (e.g. wrong byte order).
Please attach the exact changes you've made to get to that point.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1414 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (11 preceding siblings ...)
2014-09-22 8:59 ` bugzilla-daemon
@ 2014-09-23 13:00 ` bugzilla-daemon
2014-09-24 9:28 ` bugzilla-daemon
` (6 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-23 13:00 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 363 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #13 from Jack <zduo006@163.com> ---
Created attachment 106731
--> https://bugs.freedesktop.org/attachment.cgi?id=106731&action=edit
solve the problem of unhandle request address
This patch can solve the address problem.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1459 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (12 preceding siblings ...)
2014-09-23 13:00 ` bugzilla-daemon
@ 2014-09-24 9:28 ` bugzilla-daemon
2014-09-24 15:18 ` bugzilla-daemon
` (5 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-24 9:28 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #14 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #13)
> This patch can solve the address problem.
writel() and readl() already convert to/from little endian. Does it work better
if you remove cpu_to_le32() from all lines using those functions?
> @@ -751,22 +748,12 @@
> }
>
> /* stitch together an UVD destroy msg */
> -#if 0
> - msg[0] = cpu_to_le32(0x00000de4);
> - msg[1] = cpu_to_le32(0x00000002);
> - msg[2] = cpu_to_le32(handle);
> - msg[3] = cpu_to_le32(0x00000000);
> - for (i = 4; i < 1024; ++i)
> - msg[i] = cpu_to_le32(0x0);
> -#endif
> -#if 1
> writel(cpu_to_le32(0x00000de4),&msg[1]);
> writel(cpu_to_le32(0x00000002),&msg[2]);
> writel(cpu_to_le32(handle),&msg[3]);
> writel(cpu_to_le32(0x00000000),&msg[4]);
> for (i = 4; i < 1024; ++i)
> writel(cpu_to_le32(0x0),&msg[i]);
> -#endif
> radeon_bo_kunmap(bo);
> radeon_bo_unreserve(bo);
Why are you enabling this code?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2218 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (13 preceding siblings ...)
2014-09-24 9:28 ` bugzilla-daemon
@ 2014-09-24 15:18 ` bugzilla-daemon
2014-09-25 2:18 ` bugzilla-daemon
` (4 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-24 15:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1617 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #15 from Jack <zduo006@163.com> ---
(In reply to comment #14)
> (In reply to comment #13)
> > This patch can solve the address problem.
>
> writel() and readl() already convert to/from little endian. Does it work
> better if you remove cpu_to_le32() from all lines using those functions?
>
>
> > @@ -751,22 +748,12 @@
> > }
> >
> > /* stitch together an UVD destroy msg */
> > -#if 0
> > - msg[0] = cpu_to_le32(0x00000de4);
> > - msg[1] = cpu_to_le32(0x00000002);
> > - msg[2] = cpu_to_le32(handle);
> > - msg[3] = cpu_to_le32(0x00000000);
> > - for (i = 4; i < 1024; ++i)
> > - msg[i] = cpu_to_le32(0x0);
> > -#endif
> > -#if 1
> > writel(cpu_to_le32(0x00000de4),&msg[1]);
> > writel(cpu_to_le32(0x00000002),&msg[2]);
> > writel(cpu_to_le32(handle),&msg[3]);
> > writel(cpu_to_le32(0x00000000),&msg[4]);
> > for (i = 4; i < 1024; ++i)
> > writel(cpu_to_le32(0x0),&msg[i]);
> > -#endif
> > radeon_bo_kunmap(bo);
> > radeon_bo_unreserve(bo);
>
> Why are you enabling this code?
1. I do not add cpu_to_le32() first ,but when I trace the messages from
printk,the value of msg_type is reversed. Add, all is ok.
2. #if 0 ...#endif is the original code from kernel. #if 1 ...#endif is changed
code. is the same as 1. Must do cpu_to_le32 transfer
By the way, u said writel() and readl() already convert to/from little
endian.
is based on the X86 arch implement?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2777 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (14 preceding siblings ...)
2014-09-24 15:18 ` bugzilla-daemon
@ 2014-09-25 2:18 ` bugzilla-daemon
2014-09-25 7:26 ` bugzilla-daemon
` (3 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-25 2:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1091 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #16 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #15)
> 1. I do not add cpu_to_le32() first ,but when I trace the messages from
> printk,the value of msg_type is reversed.
That's in radeon_uvd_cs_msg()? Sounds like the Mesa UVD code writes the
messages in host byte order, not in little endian. Maybe Christian can clarify
which byte order should be used for them.
> 2. #if 0 ...#endif is the original code from kernel. #if 1 ...#endif is
> changed code.
Ah right, never mind, I misread that hunk before.
> By the way, u said writel() and readl() already convert to/from little
> endian. is based on the X86 arch implement?
It's the same on all architectures: writel() takes a datum in host byte order
and writes it in little endian. readl() reads a little endian datum and returns
it in host byte order. (This means that on little endian hosts such as x86, the
datum is transferred unchanged)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2094 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (15 preceding siblings ...)
2014-09-25 2:18 ` bugzilla-daemon
@ 2014-09-25 7:26 ` bugzilla-daemon
2014-09-28 12:01 ` bugzilla-daemon
` (2 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-25 7:26 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 876 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #17 from Christian König <deathsimple@vodafone.de> ---
(In reply to comment #16)
> (In reply to comment #15)
> > 1. I do not add cpu_to_le32() first ,but when I trace the messages from
> > printk,the value of msg_type is reversed.
>
> That's in radeon_uvd_cs_msg()? Sounds like the Mesa UVD code writes the
> messages in host byte order, not in little endian. Maybe Christian can
> clarify which byte order should be used for them.
The hardware supports byte swapping for the message and feedback buffer, but I
think always writing/reading it in little endian will be simpler to get
working.
The userspace code currently doesn't supports big endian hosts and so will
probably write it in the wrong byte order.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1879 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (16 preceding siblings ...)
2014-09-25 7:26 ` bugzilla-daemon
@ 2014-09-28 12:01 ` bugzilla-daemon
2014-09-29 7:16 ` bugzilla-daemon
2019-11-19 8:55 ` bugzilla-daemon
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-28 12:01 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1122 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #18 from Jack <zduo006@163.com> ---
(In reply to comment #17)
> (In reply to comment #16)
> > (In reply to comment #15)
> > > 1. I do not add cpu_to_le32() first ,but when I trace the messages from
> > > printk,the value of msg_type is reversed.
> >
> > That's in radeon_uvd_cs_msg()? Sounds like the Mesa UVD code writes the
> > messages in host byte order, not in little endian. Maybe Christian can
> > clarify which byte order should be used for them.
>
> The hardware supports byte swapping for the message and feedback buffer, but
> I think always writing/reading it in little endian will be simpler to get
> working.
>
> The userspace code currently doesn't supports big endian hosts and so will
> probably write it in the wrong byte order.
I think you are right. The patch I give it it's not the original point.So I
have some work to do on userspace, such as mesa. A huge project!
By the way, which version of mesa add big endian support.or you have some plans
to do it.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2170 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (17 preceding siblings ...)
2014-09-28 12:01 ` bugzilla-daemon
@ 2014-09-29 7:16 ` bugzilla-daemon
2019-11-19 8:55 ` bugzilla-daemon
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2014-09-29 7:16 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 657 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #19 from Michel Dänzer <michel@daenzer.net> ---
(In reply to comment #18)
>
> So I have some work to do on userspace, such as mesa. A huge project!
Actually, I don't think the relevant code for UVD support is that big.
> By the way, which version of mesa add big endian support.or you have some
> plans to do it.
As Christian said, the UVD code currently currently doesn't handle big endian
hosts properly yet. I don't know of any plans to fix that either, so don't wait
for us to do it. :)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1626 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread* [Bug 83708] [vdpau,uvd] kernel oops, Unable to handle kernel paging request at virtual address
2014-09-10 11:02 [Bug 83708] New: mplayer plays video using gpu hardware acceleraing(vdpau,uvd) kernel panic, Unable to handle kernel paging request at virtual address bugzilla-daemon
` (18 preceding siblings ...)
2014-09-29 7:16 ` bugzilla-daemon
@ 2019-11-19 8:55 ` bugzilla-daemon
19 siblings, 0 replies; 21+ messages in thread
From: bugzilla-daemon @ 2019-11-19 8:55 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 805 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=83708
Martin Peres <martin.peres@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |MOVED
--- Comment #20 from Martin Peres <martin.peres@free.fr> ---
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.
You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/526.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2467 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 21+ messages in thread