Hardware HDR tonemapping still broken on 1.31.0.6654

@ChuckPa Great work! see here for debug logs: Hardware HDR tonemapping still broken on 1.31.0.6654 - #132 by matthe6038

I need one more piece of info

sudo lspci -nn

This will show the PCI Device IDs

@matthe6038

Please bring the logs here. I’m getting :dizzy: lol

@ChuckPa
Haha no problem, logs attached.
Plex Media Server Logs_2023-04-24_18-26-18.zip (846.2 KB)

Here is the output of ā€œsudo lspci -nnā€:

00:00.0 Host bridge [0600]: Intel Corporation Gemini Lake Host Bridge [8086:31f0] (rev 03)
00:00.3 System peripheral [0880]: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model [8086:3190] (rev 03)
00:02.0 VGA compatible controller [0300]: Intel Corporation GeminiLake [UHD Graphics 605] [8086:3184] (rev 03)
00:0e.0 Audio device [0403]: Intel Corporation Celeron/Pentium Silver Processor High Definition Audio [8086:3198] (rev 03)
00:0f.0 Communication controller [0780]: Intel Corporation Celeron/Pentium Silver Processor Trusted Execution Engine Interface [8086:319a] (rev 03)
00:12.0 SATA controller [0106]: Intel Corporation Celeron/Pentium Silver Processor SATA Controller [8086:31e3] (rev 03)
00:14.0 PCI bridge [0604]: Intel Corporation Gemini Lake PCI Express Root Port [8086:31d6] (rev f3)
00:14.1 PCI bridge [0604]: Intel Corporation Gemini Lake PCI Express Root Port [8086:31d7] (rev f3)
00:15.0 USB controller [0c03]: Intel Corporation Celeron/Pentium Silver Processor USB 3.0 xHCI Controller [8086:31a8] (rev 03)
00:17.0 Signal processing controller [1180]: Intel Corporation Celeron/Pentium Silver Processor I2C 4 [8086:31b4] (rev 03)
00:17.3 Signal processing controller [1180]: Intel Corporation Celeron/Pentium Silver Processor I2C 7 [8086:31ba] (rev 03)
00:1c.0 SD Host controller [0805]: Intel Corporation Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller [8086:31cc] (rev 03)
00:1f.0 ISA bridge [0601]: Intel Corporation Celeron/Pentium Silver Processor LPC Controller [8086:31e8] (rev 03)
00:1f.1 SMBus [0c05]: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model [8086:31d4] (rev 03)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
02:00.0 SATA controller [0106]: JMicron Technology Corp. JMB58x AHCI SATA controller [197b:0585]

@ChuckPa Just one more piece of evidence that your hypothesis may be correct, when I try to start a transcode stream with HDR tonemapping enabled, for a split second I see the iGPU active and drawing power, before reverting to 0 activity. Totally fits your hypothetical scenario.

We just looked at it deeper.

  1. It does kick open and start generating frames.
  2. Part 2 is to tone map the output frames
  3. If fails.
  4. House collapses

It’s supposed to be supported but now, using their updated IHD, it fails.

We need to get in deep with the hardware in the debugger (will take more work – and definitely not this weekend HAHA)

Is running without Tone Mapping acceptable for now ?

@ChuckPa Yes I don’t mind waiting. I’m just glad we have identified a point of failure so that it can eventually be fixed! Thanks for all your help and let me know when you have an update!

So it sounds like your hypothesis was correct?

My hypothesis is correct.

I am correctly describing the behavior.

ERRATA: The 605, by the documentation, ā€œIs supportedā€.

That’s a point I now must prove with the developer and define an ā€˜alternate behavior’ for these processors.

(Can’t compare to 1.29.2 – All of FFMPEG got overhauled too for 1.30.x forklift)

We will get there… Eventually the ants do move the mountain.

Very strong work. Feels good at least knowing we’ve identified the problem.

@matthe6038 Check your PM.

Just want to say, you’re awesome, and your work is appreciated :wink:

Heck of a journey we’ve all been on, I can only imagine it’s even more so internally.

There are so many colorful words which could describe it too

:rofl:

I still have another trick up my sleeve :speak_no_evil:

@ChuckPa I finally managed to install the test version. Unfortunately the problem with hw tone mapping still persists. I am running J4105 on unraid. HW transcoding without tone mapping works fine.

Unfortunately no luck with the latest public beta (1.32.2.7002). See the logs below.
Plex Media Server Logs_2023-05-09_18-54-36.zip (1.9 MB)

No longer have to use the dev version, 1.32.2.7002 works with the normal docker image again. (Intel HD P630 graphics.)

Anyone with gemini lake CPU?

Can confirm still broken on J5005 (Gemini Lake)

@ChuckPa Still broken on version 1.32.2.7100 for Gemini Lake (J5005) processors. Any update on this? Thanks.

@ChuckPa HW HDR tone mapping still broken on version 1.32.4.7164 for Gemini Lake CPUs
Plex Media Server Logs_2023-06-07_20-22-35.zip (6.3 MB)

Unraid syslog reports this:

Jun  7 20:21:53 UNRAID kernel: i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
Jun  7 20:21:53 UNRAID kernel: i915 0000:00:02.0: [drm] Plex Transcoder[16440] context reset due to GPU hang
Jun  7 20:21:53 UNRAID kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:e757fefe, in Plex Transcoder [16440]

@premikkoci

Are you calling out VaapiDriver="i965" in Preferences.xml?
If so – Remove it.

GPU hang is a problem with the kernel and its drivers. Nothing we can do about it.

I just worked with several GeminiLake CPU users and everything works correctly when i965 is no longer referenced and they’re running a mainstream kernel version with all the appropriate i915 and support drivers loaded (Kernel in isolation is insufficient and will cause otherwise non-existent problems).

VaapiDriver=ā€œi965ā€ is not set in preferences.

What is the mainstream kernel version? I’m using Unraid 6.11.5 with kernel 5.19.17. So does this mean that the necessary drivers for HW HDR tone mapping with this kernel version are buggy? Is it possible to resolve this issue with the Unraid developers or is it entirely an Intel thing?

HW HDR tone mapping works fine with Plex version 1.29.0 or Jellyfin media server. Normal transcoding also works fine.

Thanks for your help.