[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-10 Thread Srinivas Pandruvada
With the increase in power limit by 2W from the thermal tables results in increase power for CPU driving to higher frequency may be saturating GPU. It will take some time to come up with some algorithm. May be part of another power sharing daemon. -- You received this bug notification because

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-09 Thread Eugene86
I've performed measurements with turbostat (kernel 5.13) With new thermald ("bad" game performance): GFXAMHz: 400, PgkWatt: 16.56, CorWatt: 7.34, GFXWatt: 3.88 With old thermald (good performance): GFXAMhz: 650, PkgWatt: 14.86 CorWatt: 3.81, GFXWatt: 4.45 About game mode daemon: I have gamemode

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-09 Thread Eugene86
** Attachment added: "turbostat with old thermald" https://bugs.launchpad.net/ubuntu/+source/thermald/+bug/1944389/+attachment/5531776/+files/old.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-04 Thread Srinivas Pandruvada
Looks like some game mode daemon or program, which is changing parameters for cpu frequency. Like energy performance preference was changed to balance_power. Need to find out what is that program, may be some tuning can be done there as it knows game is going to be played. Also this will be

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-04 Thread Eugene86
I also checked with GTA IV game -- with the new thermald performance also decreased. Average FPS for in-game benchmark drop from 53 to 42 (I run only one attempt for each thermald version) (and game became unplayable as minimum FPS in complex scenes became less than 30). GTA IV has a different

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-04 Thread Srinivas Pandruvada
balance_power is not a kernel default, so something on the system running which is changing cpufreq parameters. "balamce_performance" is the default. Anyway thermald is setting the package power limit as per thermal tables. There is no power sharing info in the tables. We have this power sharing

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-10-03 Thread Eugene86
Checked with kernel 5.13.0-1014-oem (5.11.0-37-generic is not usable for this laptop as wifi and external display are not recognized) Both # echo idle > workload_type or # echo bursty > workload_type are not helpful. Also balance_power is in

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-30 Thread Srinivas Pandruvada
Thanks. I can buy, I don't have gaming skills! You already indicated that limiting cpu frequency or removing turbo boost helps. I want to see if the energy_performance_preference or workload_request works. "workload_request" will be the best as this is one setting for all CPUs. If this works

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-30 Thread Eugene86
Thank you, Srinivas! I'll try to perform the tests with the proposed configuration on the weekend. Game: https://store.steampowered.com/app/20510/STALKER_Clear_Sky/ it costs 9.99 EUR but I'll be happy to buy it for your for the test purposes. To run it with Steam on Linux one should enable

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-30 Thread Srinivas Pandruvada
It will also be great if you can specify how to download and play the game to get to this condition. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1944389 Title: Thermald 1.9.1-1ubuntu0.6 keeps

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Srinivas Pandruvada
In your current 5.10 kernel try this setting: #for i in {0..7}; do echo balance_power > /sys/devices/system/cpu/cpufreq/policy$i/energy_performance_preference; done confirm with for i in {0..7}; do cat /sys/devices/system/cpu/cpufreq/policy$i/energy_performance_preference; done balance_power

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Srinivas Pandruvada
I have the same XPS 9310 with 5.11.0-34-generic #36-Ubuntu SMP Thu Aug 26 19:22:09 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux # tree /sys/bus/pci/devices/\:00\:04.0 /sys/bus/pci/devices/:00:04.0 ... ... ├── uevent ├── vendor └── workload_request ├── workload_available_types └──

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Srinivas Pandruvada
This is just long term package power limit after reaching 53C "/sys/class/powercap/intel-rapl-mmio/intel-rapl-mmio\:0/device/intel-rapl-mmio\:0/constraint_0_power_limit_uw". Doesn't include off package limit. You need 5.11 kernel atleast for those workload controls. Tiger lake controls patches

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Eugene86
Srinvas, thank you for the explanation. But could you also explain what do you mean by > It only reduced total power Are these 15 Watts limit (after reaching 53 degrees) for the whole Core i7 chip (CPU+GPU+..) or for GPU chiplet only? If this limit is for the whole chip than something is wrong

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Srinivas Pandruvada
I can give you some other knob, please try that whether this improves while playing this game. #cd /sys/bus/pci/devices/:00:04.0/workload_request #echo idle > workload_type or # echo bursty > workload_type -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Srinivas Pandruvada
Data from /sys/class/thermal are usually stale. They are left from previous platforms. The actual limits comes from adaptive tables based on the condition match. This is what OEM defined for the system. Also without adaptive power limits are insane here. Thermal doesn't reduce GPU frequency. It

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-28 Thread Colin Ian King
I've backported the latest thermald to older releases to make testing easier: https://launchpad.net/~colin-king/+archive/ubuntu/thermald-backports -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-27 Thread Eugene86
I just checked old and new behavior again. First of all it's not clear for me from where this value of 53 is taken, according to the data in /sys/class/thermal/thermal_zone5 (THP) trip_point_0_hyst:4000 trip_point_0_temp:-274000 trip_point_0_type:passive trip_point_1_hyst:4000

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-26 Thread Srinivas Pandruvada
There is a temperature sensor "THP" which has a limit of 53C. This temperature exceeded which calls for thermal throttling to limit to 15W by thermal tables on this system. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-26 Thread Eugene86
Here is the log GPU frequency decreased to 400MHz at ~23:50 UTC+3 ** Attachment added: "log.txt" https://bugs.launchpad.net/ubuntu/+source/thermald/+bug/1944389/+attachment/5528265/+files/log.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-24 Thread Srinivas Pandruvada
Run the github version #systemctl disable thermald #thermald --no-daemon --loglevel=info --adaptive Attach the log. It is possible that skin temperature a limit -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-24 Thread Eugene86
I've checked with the latest git version -- it has the same problem. New behavior (git thermald, as well as latest Ubuntu version with backports): thermald keeps the GPU frequency at 400 Hz after reaching 85 degrees, even if temperature decreases to 74. After the thermal regime stabilizes

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-21 Thread Brian Murray
** Tags added: regression-update -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1944389 Title: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz To manage notifications about this

[Bug 1944389] Re: Thermald 1.9.1-1ubuntu0.6 keeps Tigerlake GPU frequency on 400 MHz

2021-09-20 Thread Srinivas Pandruvada
Try the upstream version https://github.com/intel/thermal_daemon May be missing some backports. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1944389 Title: Thermald 1.9.1-1ubuntu0.6 keeps