Bug 434923 - Add support for Hygon Dhyana processor
Summary: Add support for Hygon Dhyana processor
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-25 09:54 UTC by Jinke Fan
Modified: 2021-03-25 09:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Patch (1.48 KB, application/mbox)
2021-03-25 09:58 UTC, Jinke Fan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jinke Fan 2021-03-25 09:54:35 UTC
SUMMARY
Add support to get caches info and hardware capabilities on Hygon Dhyana processor[1].

STEPS TO REPRODUCE
1. ./autogen.sh
2. ./configure
3. make;make install
4. ./coregrind/valgrind -d ls

OBSERVED RESULT
```
--14750:1: main Get hardware capabilities ...
--14750:1: cache CPU vendor ID not recognised (HygonGenuine)
--14750:1: cache Could not autodetect cache info
--------------------
--25601:1: main ... arch = X86, hwcaps = x86-mmxext-sse1-sse2-sse3
```

EXPECTED RESULT
```
--554:1:    main Get hardware capabilities ...
--554:1:   cache Autodetected cache info is sensible
--554:1:   cache Cache info:
--554:1:   cache   #levels = 3
--554:1:   cache   #caches = 4
--554:1:   cache      cache #0:
--554:1:   cache         kind = data
--554:1:   cache         level = 1
--554:1:   cache         size = 32768 bytes
--554:1:   cache         linesize = 64 bytes
--554:1:   cache         assoc = 8
--------------
--555:1:    main ... arch = X86, hwcaps = x86-mmxext-sse1-sse2-sse3-lzcnt
```

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 4.4.0


ADDITIONAL INFORMATION
[1]: https://git.kernel.org/torvalds/c/c9661c1e80b609cd038db7c908e061f0535804ef
Comment 1 Jinke Fan 2021-03-25 09:58:38 UTC
Created attachment 137048 [details]
Patch