Jump to content
XPEnology Community

hw transcoding fix v1.04b DS918+


x01015918

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
  • Like 1
  • Thanks 3
Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
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.  

  • Like 1
Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
Share on other sites

  • 3 weeks later...
1 hour ago, kevingu said:

Is there any way to enable hw transcoding with asrock j3455-itx? /dev/dri is missing in my 918_6.2.1 DSM.

Dear

I would be very interested if you find a way. I made lot of tests in December without success. 

My PCI is used with a sata additional port so I can't add a Intel nic card.

 

Regards

Link to comment
Share on other sites

On 2/26/2019 at 9:50 PM, hubogoss62 said:

Dear

I would be very interested if you find a way. I made lot of tests in December without success. 

My PCI is used with a sata additional port so I can't add a Intel nic card.

 

Regards

no, I still can not figure out a way to utilize gpu, i915 driver always crashes, I read all the related topics in xpenology, no solutiton for this.

Link to comment
Share on other sites

  • 3 months later...
On 1/30/2019 at 5:43 PM, x01015918 said:

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

 

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

Hello,

Thank you for your experience sharing. 

Could you tell me where is this option set about "video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d"?I can't find the relevant settings in the BIOS or grub.ckg.

Now when I playing movies in Video Station or Plex by using hardware transcoding,nas will automatic restart.And, I have unplugged all the monitors in advance.But I can use offline transcoding normally by hardware transcoding in Video Station.

Forgive me for my poor English.

Looking forward to your guidance.

Thank you.

Link to comment
Share on other sites

4 hours ago, crazi said:

Could you tell me where is this option set about "video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d"?I can't find the relevant settings in the BIOS or grub.ckg

You need to add this parameters to the line set common_args_918='...video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d' in grub.cfg.

 

  • Thanks 1
Link to comment
Share on other sites

14 minutes ago, TeleDDim said:

You need to add this parameters to the line set common_args_918='...video=eDP:d video=DP-1:d video=HDMI-A-1:d video=HDMI-A-2:d' in grub.cfg.

 

Thank you very much. I get it .I will try it.

Link to comment
Share on other sites

Hello,

 

I have an ASRock j4205-ITX.

  • With the jun extra.lzma file the module i915.ko KP at boot and no /dev/dri was create.
  • If i use the extra.lzma of @x01015918 that don't have the i915.ko module and remove the i915.ko file from /usr/lib/modules/update directory: like i expected the i915.ko module (the one by synology in /usr/lib/modules) is not loaded. So i have no KP but also no /dev/dri because the module was not loaded.

 

So for the one that have a working i915 module that work on ASRock j4205-ITX can you give me the i915.ko file you use with the md5sum of the file please.

Edited by John RAZ
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...