x01015918

hw transcoding fix v1.04b DS918+

Recommended Posts

Hi,

I removed the faulty i915 drivers from extra, you can download and test it here.

  • hw transcoding is working but performance is low on both videostation and plex but I don't think is related to the loader.
  • on ASRock j4205-ITX you have to unplug any monitor before using hw transcoding otherwise the system will reboot, this one might be due to /dev/dri permissions or the DP to hdmi coverter on this board.
  • reboot/shutdown is working properly again.
  • I recommend doing a clean install, formatting the hard drive before testing.
  • You can test disabling video outputs in the grub, for me it didn't install properly.
  • video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d

     

root@DS918:~# ls /dev/dri
card0  controlD64  renderD128
root@DS918:~# cat /sys/kernel/debug/dri/0/i915_frequency_info
PM IER=0x00000070 IMR=0xffffff8f ISR=0x00000000 IIR=0x00000000, MASK=0x00003fae
pm_intr_keep: 0x80000000
GT_PERF_STATUS: 0x006030cb
Render p-state ratio: 48
Render p-state VID: 203
Render p-state limit: 0
RPSTAT1: 0x12000030
RPMODECTL: 0x00000d92
RPINCLIMIT: 0x000027d8
RPDECLIMIT: 0x00005a00
RPNSWREQ: 800MHz
CAGF: 600MHz
RP CUR UP EI: 3192 (2660us)
RP CUR UP: 477 (397us)
RP PREV UP: 0 (0us)
Up threshold: 85%
RP CUR DOWN EI: 5109 (4257us)
RP CUR DOWN: 482 (401us)
RP PREV DOWN: 0 (0us)
Down threshold: 60%
Lowest (RPN) frequency: 100MHz
Nominal (RP1) frequency: 250MHz
Max non-overclocked (RP0) frequency: 800MHz
Max overclocked frequency: 800MHz
Current freq: 800 MHz
Actual freq: 600 MHz
Idle freq: 100 MHz
Min freq: 100 MHz
Boost freq: 800 MHz
Max freq: 800 MHz
efficient (RPe) frequency: 250 MHz
Current CD clock frequency: 624000 kHz
Max CD clock frequency: 624000 kHz
Max pixel clock frequency: 624000 kHz
[  127.551937] ACPI: Power Button [PWRB]
[  127.601681] Linux agpgart interface v0.103
[  127.674041] [drm] Initialized drm 1.1.0 20060810
[  127.809306] [drm] Memory usable by graphics device = 4096M
[  127.882071] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[  127.882075] [drm] Driver supports precise vblank timestamp query.
[  127.884752] [drm] Finished loading i915/bxt_dmc_ver1_07.bin (v1.7)
[  127.885302] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[  128.859977] [drm] failed to retrieve link info, disabling eDP
[  128.861274] [drm] GuC firmware load skipped
[  128.865805] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[  128.866518] acpi device:10: registered as cooling_device4
[  128.866603] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input1
[  128.866659] [drm] Initialized i915 1.6.0 20160919 for 0000:00:02.0 on minor 0
[  128.882007] i915 0000:00:02.0: No connectors reported connected with modes
[  128.882013] [drm] Cannot find any crtc or sizes - going 1024x768
[  128.882929] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[  128.938416] Btrfs loaded, crc32c=crc32c-intel

 

Edited by x01015918
  • Thanks 2

Share this post


Link to post
Share on other sites

Currently i915 driver is causing kernel panic on ASRock Apollo Lake boards and dev/dri folder is missing. many reported the issue around the forum. 

Share this post


Link to post
Share on other sites
2 часа назад, x01015918 сказал:

Currently i915 driver is causing kernel panic on ASRock Apollo Lake boards and dev/dri folder is missing. many reported the issue around the forum. 

It's true for ASRock 3544-itx & 4205-itx only...

Скрытый текст

sudo cat /sys/kernel/debug/dri/0/i915_frequency_info
Password:
Video Turbo Mode: yes
HW control enabled: yes
SW control enabled: no
PM IER=0x00000400 IMR=0xffffffff ISR=0x00000000 IIR=0x00000000, MASK=0x0000007a
pm_intrmsk_mbz: 0x00000004
GT_PERF_STATUS: 0x00000400
Render p-state ratio: 4
Render p-state VID: 0
Render p-state limit: 255
RPSTAT1: 0x00048200
RPMODECTL: 0x00000d92
RPINCLIMIT: 0x00002e63
RPDECLIMIT: 0x00005302
RPNSWREQ: 200MHz
CAGF: 200MHz
RP CUR UP EI: 2335 (2988us)
RP CUR UP: 121 (154us)
RP PREV UP: 0 (0us)
Up threshold: 95%
RP CUR DOWN EI: 121 (154us)
RP CUR DOWN: 122 (156us)
RP PREV DOWN: 0 (0us)
Down threshold: 85%
Lowest (RPN) frequency: 200MHz
Nominal (RP1) frequency: 350MHz
Max non-overclocked (RP0) frequency: 1250MHz
Max overclocked frequency: 1250MHz
Current freq: 200 MHz
Actual freq: 200 MHz
Idle freq: 200 MHz
Min freq: 200 MHz
Boost freq: 1250 MHz
Max freq: 1250 MHz
efficient (RPe) frequency: 350 MHz
Current CD clock frequency: 540000 kHz
Max CD clock frequency: 540000 kHz
Max pixel clock frequency: 540000 kHz

 

Edited by Olegin

Share this post


Link to post
Share on other sites

ok, further info, I managed to keep 2 x 4k streams simultaneously with minimal buffering by enabling CSM / UEFI ONLY .....

 

transcode.png

  • Like 3

Share this post


Link to post
Share on other sites

 

9 hours ago, x01015918 said:

are you formatting the HDD in your NAS before each install?

yes, but I think the problem isn't in your etxtra.lzma.

I used  "video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d" for clean intstall and I think the problem is in this setting.

The same problem was with my extra.lzma. I deleted this line and it all worked.

The difference in my extra.lzma is  that I have deleted all optional modules. 

 

 

 

8 hours ago, x01015918 said:

by enabling CSM / UEFI ONLY .....

There are three options, I need to set all to "UEFI only"?

 

My bios config:  version: 1.80

CPU Configuration: Intel SpeedStep Technology: disable; CPU C States Support: disable; Intel Virtualization Technology: enable; IntelVt-d: enable;

Chipset Configuration: DRAM Frequency: 1866; DRAM Voltage: 1.5; Primary Graphics Adapter: Onboard; Share Memory: 512; 

ACPI Configuration: Suspend to RAM:disable; ACPI HPET Table: disable;

Boot: UEFI; CSM: disable.

 

With these settings, the plex works fine, but the Videostation and Multimedia Server are not: buffering every 10/20 sec.

 

Would you please share your settings?

 

 

Edited by TeleDDim

Share this post


Link to post
Share on other sites
3 часа назад, x01015918 сказал:

there is hope :)

Is it in the Plex? Can you do the same in the Video Station?

Share this post


Link to post
Share on other sites

I mentioned "video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d" is not working for me. just remove the cables

 

Quote

There are three options, I need to set all to "UEFI only"?

CSM yes all three to UEFI Only

 

Don't disable  Intel SpeedStep, it will not burst to 2.6.

 

try to keep RAM and Voltage to auto until you make a successful installation

 

Suspend to RAM: AUTO; ACPI HPET Table: enable

 

get also https://synocommunity.com/package/ffmpeg

and run ....@appstore/ffmpeg/bin/ffmpeg -config

  • Thanks 1

Share this post


Link to post
Share on other sites

maybe unrelated, I had issues with cold power up with this board and it got better by removing the bios jumper, asrock j4205-itx supports jumperfree so I see no damage in trying it also.

I will try and make a detailed explanation with what works for me when I get back from work.

  • Like 1

Share this post


Link to post
Share on other sites

Hi,
I use an Asrock Q1900-itx for xpenology since a few years now without problems and recently installed jun 1.04b DS918+ on it. It works good but HW transcoding in Plex is resulting in ugly video, strangely, Emby HW transcoding works much better with video output quality as good as software transcoding... But I have random video stops while playing, so it's useless.
I just wanted to have your opinion about the J4205-itx because I plan to replace my old Q1900 with it, but many users are reporting it's difficult to get HW transcoding working and it's the only feature that could justify an upgrade without paying a lot more for new sticks of DDR4 RAM and a J5005-itx.

So, if I understand well, Plex HW transcoding is working good when setting the bios like you did and kindly explained? 
I can't get my Q1900-itx to boot headless, so I plugged in permanently an active hdmi to DP adapter and it doesn't cause reboot when transcoding like apollo lake. Did you managed to boot the J4205-itx headless or do you unplug the monitor cable after boot to get HW transcoding without instant crash?

Thank you for your help and your work on this motherboard :)
 

Edited by pmchan

Share this post


Link to post
Share on other sites

hi,

12 hours ago, pmchan said:

So, if I understand well, Plex HW transcoding is working good when setting the bios like you did and kindly explained? 
I can't get my Q1900-itx to boot headless, so I plugged in permanently an active hdmi to DP adapter and it doesn't cause reboot when transcoding like apollo lake. Did you managed to boot the J4205-itx headless or do you unplug the monitor cable after boot to get HW transcoding without instant crash?

Both works for me, booting headless or unplug the monitor after you have everything set up. 

 

I find it hard to recommend this board, generally I find it hard to get a consistent behavior out if it. currently I have gigabyte 1037u that is working 24/7 for 5 years no problem, this one I'm still testing.

on J4205 hw transcoding still buffering in Videostation but In Plex seem to work ok . I'm currently checking why transfer rates are inconsistent sometimes.

 

With all this said if you need hw transcoding or you try to get as close as possible to the real DS918, DS1019, DS619slim, apollo lake boards are your best bet. Maybe Gigabyte has a better implementation with GA-J3455N-D3H if you can find one.  

Share this post


Link to post
Share on other sites

Thank you for your honest feedback, good to know it can boot headless!
My J1900 and your 1037U are almost the same generation and I can confirm it's rock solid 24/7 without any problem and Plex software transcoding is doing fine with multiple simultaneous streams as long as you set reasonable bitrates. 
May I ask what Bios version you have on your J4205? I saw many people keep the old 1.30 because it was meltdown patch free, but I also saw people with 1.80 who just disabled the meltdown reference in conf file.
Yeah, I keep an eye on used GA-J3455N-D3H too, but its pci-e format is different, I would have to replace my actual SYBA SI-PEX40064.

Edited by pmchan

Share this post


Link to post
Share on other sites

@pmchan If it's interesting for you, some days ago i tested AsRock 4105-itx, here is topic, but in Russian, you can use Google translate.

Share this post


Link to post
Share on other sites
15 minutes ago, pmchan said:

May I ask what Bios version you have on your J4205?

1.80, with specter and meltdown on, should I expect big difference in performance if I disable meltdown?

Share this post


Link to post
Share on other sites
il y a 42 minutes, Olegin a dit :

@pmchan If it's interesting for you, some days ago i tested AsRock 4105-itx, here is topic, but in Russian, you can use Google translate.

Thank you for pointing me to your post, I saw it and following with great interest your (and others russians fellows) progresses since few months already, google translate is not doing a great job at translating but I think I understand most of your discussions :)  
Gemini Lake motherboards looks cool but I would have to buy DDR4, so the bill is a bit too high just for HW transcoding, which I don't need a lot, it's just a tantrum :)

Edited by pmchan

Share this post


Link to post
Share on other sites
il y a 29 minutes, x01015918 a dit :

1.80, with specter and meltdown on, should I expect big difference in performance if I disable meltdown?

I don't know, I've read Synology included the Meltdown and Spectre patch since DSM 6.2-23739-2, so it's already there, a second patch at BIOS level would surely impact performances a bit more but difficult to tell how much.

Edited by pmchan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now