Jump to content
XPEnology Community

hw transcoding fix v1.04b DS918+


x01015918

Recommended Posts

@Olegin i use the extra.lzma from the russian post and i don't have an i915.ko module in /usr/lib/modules/update, so the /dev/dri is not created :(

In the russian post there a reference to another extra.lzma file of a person who have remove the optional modules and download the last i915 firmware. As i didn't speak russian, can you help me to find me the reference to the informations to use this ?

Edited by John RAZ
Link to comment
Share on other sites

11 минуту назад, John RAZ сказал:

i use the extra.lzma from the russian post and i don't have an i915.ko module in /usr/lib/modules/update, so the /dev/dri is not created

Because i915 was deleted from this extra.lzma. Install Plex and try hw transcoding

Link to comment
Share on other sites

Yes about i915.ko not in  /usr/lib/modules/update directory. But an lsmod show me that i915 module is not loaded at all (even the one from synology in /usr/lib/modules).

Currently i don't have a Plex Pass, because i don't want to spend money for nothing if it didn't work.
Do you have another solution to check hw transcoding.
For me if no /dev/dri exists no software can use the HW transcoding.

Edited by John RAZ
Link to comment
Share on other sites

Ok now it's seem working 😃

I needed to delete all the modules in /usr/lib/modules/update and reboot. Now i have the /dev/dri device.

The HW transcoding is working on the first movie, but after i have playback errors.

Edited by John RAZ
Link to comment
Share on other sites

@Olegin the HW transcoding start but a KP appear then the transcoding is stop.

Révélation

[  778.013554] BUG: unable to handle kernel NULL pointer dereference at 00000000000000f8
[  778.021805] IP: [<ffffffffa050fa6c>] send_vblank_event+0x2c/0x60 [drm]
[  778.028639] PGD 24f521067 PUD 24f528067 PMD 0
[  778.033331] Oops: 0000 [#1] PREEMPT SMP
[  778.037496] Modules linked in: snd_usb_hiface snd_pcm_oss snd_mixer_oss snd_usb_audio snd_pcm snd_timer snd_hwdep snd_usbmidi_lib snd_rawmidi snd_seq_device snd soundcore xt_ipvs ip_vs_rr ip_vs xt_mark iptable_mangle br_netfilter bridge stp aufs macvlan veth xt_conntrack xt_addrtype ipt_MASQUERADE xt_REDIRECT nf_nat_masquerade_ipv4 xt_nat iptable_nat nf_nat_ipv4 nf_nat_redirect nf_nat cifs udf isofs loop tcm_loop(O) iscsi_target_mod(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) hid_generic usbhid hid usblp uhci_hcd ehci_pci ehci_hcd nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables xt_recent xt_iprange xt_limit xt_state xt_tcpudp xt_multiport xt_LOG nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack
[  778.112402]  iptable_filter ip_tables x_tables apollolake_synobios(PO) ax88179_178a(E) usbnet tg3(E) cnic(E) bnx2(E) vmxnet3(E) pcnet32(E) e1000(E) sfc(E) netxen_nic(E) qlge(E) qlcnic(E) qla3xxx(E) sky2(E) skge(E) jme(E) uio(E) alx(E) atl1c(E) atl1e(E) atl1(E) libphy(E) mii(E) exfat(O) btrfs i915 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cfbfillrect cfbcopyarea cfbimgblt drm fb fbdev intel_agp intel_gtt agpgart video backlight button synoacl_vfs(PO) hfsplus md4 hmac r8168(OE) ixgbe(E) igb(E) i2c_algo_bit e1000e(E) vxlan ip6_udp_tunnel udp_tunnel fuse vfat fat crc32c_intel aesni_intel glue_helper lrw gf128mul ablk_helper arc4 cryptd ecryptfs sha256_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance acpi_cpufreq processor cpufreq_stats
[  778.187298]  dm_snapshot dm_bufio crc_itu_t crc_ccitt quota_v2 quota_tree psnap p8022 llc sit tunnel4 ip_tunnel ipv6 zram sg etxhci_hcd rtc_cmos(E) mdio(E) mpt3sas(E) raid_class(E) scsi_transport_sas(E) megaraid_sas(E) megaraid(E) mptctl(E) mptspi(E) mptscsih(E) mptbase(E) scsi_transport_spi(E) megaraid_mbox(E) megaraid_mm(E) vmw_pvscsi(E) BusLogic(E) usb_storage xhci_pci xhci_hcd usbcore usb_common imwz(OE) [last unloaded: apollolake_synobios]
[  778.228276] CPU: 2 PID: 18760 Comm: Plex Media Serv Tainted: P           OE   4.4.59+ #23824
[  778.237143] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./J4205-ITX, BIOS P1.40 07/14/2017
[  778.247161] task: ffff880276f25200 ti: ffff8801d628c000 task.ti: ffff8801d628c000
[  778.255062] RIP: 0010:[<ffffffffa050fa6c>]  [<ffffffffa050fa6c>] send_vblank_event+0x2c/0x60 [drm]
[  778.264524] RSP: 0018:ffff8801d628fba0  EFLAGS: 00010006
[  778.270131] RAX: 00000000000000f0 RBX: ffff880271a80000 RCX: ffff8802234ed758
[  778.277589] RDX: 0000000000008cfd RSI: ffff8802234ed740 RDI: ffff880271a80000
[  778.285050] RBP: ffff8801d628fba0 R08: 0000000000000004 R09: 0000000000000002
[  778.292570] R10: ffff880271a80000 R11: 0000000000000003 R12: ffff8802234ed740
[  778.300012] R13: ffff8801d628fbb0 R14: 0000000000000000 R15: ffff88023b76f000
[  778.307499] FS:  00007f6520b43700(0000) GS:ffff88027fd00000(0000) knlGS:0000000000000000
[  778.315946] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  778.321930] CR2: 00000000000000f8 CR3: 000000024f53f000 CR4: 00000000003406f0
[  778.329406] Stack:
[  778.331492]  ffff8801d628fbe0 ffffffffa050faeb 0000000000000309 00000000000dac90
[  778.339270]  0000000000000000 ffff880271a801d8 ffff880036cff000 ffff880271a80000
[  778.347103]  ffff8801d628fbf0 ffffffffa050fb25 ffff8801d628fca8 ffffffffa0620b8b
[  778.354977] Call Trace:
[  778.357549]  [<ffffffffa050faeb>] drm_send_vblank_event+0x4b/0x70 [drm]
[  778.364459]  [<ffffffffa050fb25>] drm_crtc_send_vblank_event+0x15/0x20 [drm]
[  778.371868]  [<ffffffffa0620b8b>] intel_atomic_commit_tail+0x32b/0x10a0 [i915]
[  778.379427]  [<ffffffffa05887ab>] ? drm_atomic_helper_swap_state+0x14b/0x2f0 [drm_kms_helper]
[  778.388403]  [<ffffffffa0621cbe>] intel_atomic_commit+0x3be/0x4e0 [i915]
[  778.395496]  [<ffffffffa0527a85>] ? drm_atomic_add_affected_connectors+0x25/0xe0 [drm]
[  778.403808]  [<ffffffffa05274d2>] drm_atomic_commit+0x32/0x50 [drm]
[  778.410393]  [<ffffffffa058da76>] restore_fbdev_mode+0x156/0x280 [drm_kms_helper]
[  778.418191]  [<ffffffffa058f3ae>] drm_fb_helper_restore_fbdev_mode_unlocked+0x2e/0x80 [drm_kms_helper]
[  778.427978]  [<ffffffffa063dcc4>] intel_fbdev_restore_mode+0x34/0xb0 [i915]
[  778.435321]  [<ffffffffa05a6029>] i915_driver_lastclose+0x9/0x10 [i915]
[  778.442271]  [<ffffffffa050c209>] drm_lastclose+0x29/0x130 [drm]
[  778.448614]  [<ffffffffa050c576>] drm_release+0x266/0x390 [drm]
[  778.454872]  [<ffffffff81133f0a>] __fput+0xca/0x1d0
[  778.460042]  [<ffffffff81134079>] ____fput+0x9/0x10
[  778.465124]  [<ffffffff81060eb0>] task_work_run+0x80/0xa0
[  778.470772]  [<ffffffff810020e7>] exit_to_usermode_loop+0xa7/0xb0
[  778.477157]  [<ffffffff810023d3>] syscall_return_slowpath+0x63/0x70
[  778.483706]  [<ffffffff815675b6>] int_ret_from_sys_call+0x25/0x93
[  778.490019] Code: 87 d8 01 00 00 85 c0 74 53 55 89 56 68 48 8b 01 48 89 e5 89 46 60 48 8b 41 08 48 8d 4e 18 89 46 64 48 8b 46 38 48 05 f0 00 00 00 <48> 8b 50 08 48 89 48 08 48 89 56 20 48 89 46 18 48 89 0a 31 c9
[  778.511166] RIP  [<ffffffffa050fa6c>] send_vblank_event+0x2c/0x60 [drm]
[  778.518113]  RSP <ffff8801d628fba0>
[  778.521808] CR2: 00000000000000f8
[  778.525266] ---[ end trace ff6fd7bed36bee57 ]---
[  778.631568] note: Plex Media Serv[18760] exited with preempt_count 1

 

 

Edited by John RAZ
Link to comment
Share on other sites

2 hours ago, x01015918 said:

hi,

 

don't assume all issue are related, could be just a faulty plex install or upgrade, I prefer in between testing iterations to format the drive just to get a consistent behavior. 

Hello,

Is the hw transcoding useful in the plex for a long time? I can use hw transcoding for  several minutes in plex, and then the nas automatic reboot.And when I play movies by hw transcoding, it stops from time to time.

Could you share your full setting in BIOS?

And what  is your plex version?

Thank you!

Link to comment
Share on other sites

Hello guys, just for your info.


In last weekend I have tested extra.lzma from this topic on the MB Asrock j3455.

 

Here are my steps for reproducing:

  1. Update extra.lzma file on the USB flash(use it from this topic)
  2. Set correct key and mac in the loader
  3. Fresh install of DSM


As a result, I have got:

  1. The power button is work correctly(use powerbutton.spk addon from the forum)
  2. The files in /dev/dri folders are presented
  3. Transcoding via Videostation and Multimedia Server are not: buffering every 10/20 sec.
     

P.S. Looks not bad. But the HW transcoding still doesn't work on this MB.

Link to comment
Share on other sites

It seems that the hw transcoding is successful in Video Station and Plex.

ASRock J3455-itx,DS918+,6.2.1,jun's1.04b,x01015918's extra.lzma

The screenshot is about using hw transcoding in Video Station.video_station_HW(6).thumb.gif.f02cc6904cff484bbd441bc3a178dabf.gif

Edited by crazi
  • Like 2
Link to comment
Share on other sites

The name of this thread is not good, this thread is about ASRock J4205-ITX, all j3455 or j4015  have a working HW transcoding, no need of a custom lzma, it work with only the jun's1.04b.

(video station need a real serial, plex dont, but need a plex pass)

Edited by real3x
Link to comment
Share on other sites

On 6/7/2019 at 7:12 PM, crazi said:

It seems that the hw transcoding is successful in Video Station and Plex.

ASRock J3455-itx,DS918+,6.2.1,jun's1.04b,x01015918's extra.lzma

The screenshot is about using hw transcoding in Video Station.

 Dear @crazi,

Do you have an intel NIC card or do you use onboard one? I've made many test in december without succes with onboard NIC card?

my PCI port is used with a 2 sata part card

 

regards,

Link to comment
Share on other sites

  • 5 months later...
On 6/8/2019 at 1:12 AM, crazi said:

It seems that the hw transcoding is successful in Video Station and Plex.

ASRock J3455-itx,DS918+,6.2.1,jun's1.04b,x01015918's extra.lzma

The screenshot is about using hw transcoding in Video Station.video_station_HW(6).thumb.gif.f02cc6904cff484bbd441bc3a178dabf.gif

 

 

could you please post a tutorial with firmware for J3455 HW transcoding?

I tried many time and failed。

Link to comment
Share on other sites

1 hour ago, x01015918 said:

where exactly are you failing?

1、

Hardware:ASRock J3455-itx

synology:DS918+ 6.2.1 23824

loader:jun's1.04b,

extarlzma:x01015918's extra.lzma

2、

grub.cfg added:

   set common_args_918='syno_hdd_powerup_seq=1 HddHotplug=0 syno_hw_version=DS918+ vender_format_version=2 console=ttyS0,115200n8 withefi elevator=elevator quiet syno_hdd_detect=0 syno_port_thaw=1 video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2 :d'

3、

completely new install

4、ls /dev/dri

      card0 controlD64 renderD128

5、cat /sys/kernel/debug/dri/0/i915_frequency_info   

  it can list i915 info like below:

image.thumb.png.128e64f1b16adb4912c472c6adbac404.png

 

6、install video station and top shows this

image.thumb.png.64d8882c5f35284e565c48e1dc63d9af.png

 

7、conf shows this

image.thumb.png.ead06706f4a14b8994a053b27210461b.png

 

8、till now I this it can support hwacc.

 

9、install jellyfin in docker use command:

 

image.png.da3cd318afb60d4a1b479c74bc52c11c.png

 

 

10、 set transcode

image.png.79c642a13791e9100b734d7699424390.png

 

11, open video in jellyfin, and top in ssh,it can not show hwacc+

 

12、the video file can not play in chrome

 

13、turn off video acceleration in jellyfin ,it can play and use  software transcoding。

 

14、then I turn back to video station,and chose high quality in the web,it can not paly 。

 

15、see top in ssh,it did not show hwacc。

 

16、all the above is what I did ,and the system reboot took too long time ,so I chaned my synology system to DS3617+ 6.1.7 15284, so I can not offer any logs now。

 

So I do not know it is caused by jellyfin? or it crashed and can not be used again?

 

I have another nas using J1900,doing the same process as above,it worked well.

Edited by wangweitung
  • Like 1
Link to comment
Share on other sites

8 hours ago, x01015918 said:

not much to say if you don't have any logs, on VS seem to be working... what I can tell you now is that you can remove " video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2 :d' " and don't keep a monitor plugged in .

additional info as below:

1、monitor plugged out all the time。

2、I used real SN&MAC with the right type DS918+。

3、For I am busy for the next month ,I will figure out wether I have time to reinstall and test,for testing J3455 as above 1-15 took too much time 。

4、any other member who has the same mainboard can also test it as what I did。 And feedback to x01015918。

5、I remember may be I have some printscreen in my chat software,maybe I can post it tonight 20:00,in +8:00 time zone local time。

And after all ,thanks for your support for everyone ,@x01015918。

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...