irusanov / ZenTimings

https://zentimings.com/
GNU General Public License v3.0
327 stars 18 forks source link

ZenTimings closing itself - how to make debug report ? #43

Open mooms06 opened 1 year ago

mooms06 commented 1 year ago

I'm trying to use it on an AMD 7840HS to see the timings but, apparently it's not supported, and the app says to run a debug report and sen it to you

image

But as soon as I click OK, it closes, so how can I run a debug report ?

HWiNFO is apparently able to read the timings, bit it is LPDDR5X 6400, so the frequency (400 MHz) seems wrong.

image

CPU-Z is reporting 800 MHz:

image

As AIDA64:

image

irusanov commented 1 year ago

Hi, This APU model is not supported, indeed. I have no platform to test. Have to change that message as it is not correct, you can't run a debug report without a supported processor. This needs to be added as e new functionality.

Attached is the current development version, there's a slight chance it works on Phoenix, but I have no way to test it myself.

ZenTimings_v1.30.1107-debug.zip

mooms06 commented 11 months ago

Hi,

Sorry for the late answer, I wasn't notified about your reply.

Yes, the v1.30.1107 is working:, with missing/false info:

image

Please find the debug report attached.

Thank you.

Debug_Report_28283197.0074037.txt.zip

irusanov commented 9 months ago

@mooms06 There seem to be some problem with the noitifications or I have overlooked it. Thanks for the debug report, this is unknown table version for me, will try to add it for the next 1.31 release.

mooms06 commented 9 months ago

Version 1.31 is reporting more accurate information:

image

mooms06 commented 9 months ago

If I click on Tools => System Info, it crashes after two seconds.

irusanov commented 9 months ago

It's probably due to these missing values on the right. I haven't been able to read the greyed out values on my 6800HS. If I ever manage to fix it for it, then it would probably work for you as well. It's something about Lenovo as mine is Ideapad 15 Pro and I see you're using Lenovo, too.

Does Tools -> Debug work for you?

mooms06 commented 8 months ago

Sorry for the late answer, but you have asked about the debug in an edit, and Github don't send a new mail after an edit.

Yes, debug is working, here is the report if needed:

Debug_Report_28393674.9421841.txt.zip

irusanov commented 8 months ago

Thanks for the report. Lenovo really messed up the AOD table. I have finally managed to retrieve it by an alternative method, but it's unusable.

You can try this build of ZenTimings, but the important values are missing in the table my Lenovo laptop bios returns.

ZenTimings_v1.31.1212-debug.zip

It looks like this for me

image

mooms06 commented 8 months ago

Looks like this for me:

image

Debug_Report_28396414.0044209.txt.zip

irusanov commented 8 months ago

It's the stupid lenovo modifications. The same table version as yours work on an Asus laptop. I guess you can try one more build, but I doubt there will be a difference.

ZenTimings_v1.31.1213-debug.zip

If no change, then we can try the Registry. Do you know how to work with the registry editor?

Win + R -> regedit -> OK then navigate to Computer\HKEY_LOCAL_MACHINE\HARDWARE\ACPI\ and you should see bunch of folders. These are the ACPI tables and there should be several starting with SSD, expand one until there are no more levels. The IDs on my machine are CB-01___, but might be different on yours. One of these SSD entries will be the one we're looking for, but I need the identifier Lenovo decided to use to try and locate it. But it might be broken as mine and unusable.

image

mooms06 commented 8 months ago

Seems the same : image

Which one you want ?

image

Here is the first two: SSD1-2.zip

irusanov commented 8 months ago

It's probably the SSD1 or SSD2 judging from the name.

mooms06 commented 8 months ago

Then they are attached in the previous message.

mooms06 commented 8 months ago

Unrelated: it appears LPDDR5 "6400" is actually 4x 1600 MT ? Since it's DDR, the actual frequency is 800 MHz, is this correct ? That's quite low.

Latest HWiNFO64 is now reporting 800 MHz:

image

On my desktop, it's reporting 1900 MHz for the DDR4 3800 so it seems accurate:

image

image

irusanov commented 8 months ago

Can't find the signature on any of them, maybe Lenovo have changed that as well.

As for the speed, I'm not entirely sure, so I haven't changed the calculation yet. Currently it uses the DDR formula for the data rate. for LPDDR5 it's more like 2 x IO Bus frequency as it is double data rate (2x3200), but the MCLK is reported as 800. I need to read some LPDDR specs to understand it better.

https://en.wikipedia.org/wiki/LPDDR

irusanov commented 8 months ago

I think we have to consider this formula

Data Transfer Rate (MT/s) = Clock Frequency (MHz) x Data Bus Width Factor the clock frequency is the MCLK and is reported by the bios, then we have to detect the mode which the current configuration uses and determine the factor

16-bit mode: 2 32-bit mode: 4 64-bit mode: 8

mooms06 commented 8 months ago

According to Wikipedia about LPDDR5:

The doubling of the transfer rate, and the quarter-speed master clock, results in a master clock which is half the frequency of a similar LPDDR4 clock. The command (CA) bus is widened to 7 bits, and commands are transferred at double data rate, so commands end up being sent at the same rate as LPDDR4.

Also, my Laptop is equipped with LPDDR5x according to Lenovo specs, but I don't know if there is a way to differentiate it from LPDDR5.

mooms06 commented 8 months ago

HWiNFO64 is also reporting a 8:1 ratio:

image

irusanov commented 8 months ago

Yes, that's what it shows on mine as well (IdeaPad 5 Pro 16ARH7 with 6800HS and LPDDR5).