Thanks @DisEnchantment , those are nice patches.
The first patch is more about RAS features, there is very little information that could help us deduce other behaviour/features.
It pays to be very specific about those errors, it's the natural path, DDR5 will bring even more powerful memory error reporting features later on.
That said, the L3 cache in Zen2 already acts as a probe filter for the CCX. Quoting https://en.wikichip.org/wiki/amd/microarchitectures/zen_2 :
This wikichip page is very interesting and well worth a read.
Looking at the second patch, I was expecting to find some evidence of SMT2 or SMT4, but I found nothing conclusive. I don't know what those masks are used for and I'm not sure I found the correct implementation for the topology_is_primary_thread function.
The first patch is more about RAS features, there is very little information that could help us deduce other behaviour/features.
It pays to be very specific about those errors, it's the natural path, DDR5 will bring even more powerful memory error reporting features later on.
That said, the L3 cache in Zen2 already acts as a probe filter for the CCX. Quoting https://en.wikichip.org/wiki/amd/microarchitectures/zen_2 :
The L3 cache maintains shadow tags for all cache lines of each L2 cache in the CCX. This simplifies coupled fill/victim transactions between the L2 and L3 cache, and allows the L3 cache to act as a probe filter for requests between the L2 caches in the CCX, external probes and, taking advantage of its knowledge that a cache line shared by two or more L2 caches is exclusive to this CCX, probe traffic to the rest of the system.
This wikichip page is very interesting and well worth a read.
Looking at the second patch, I was expecting to find some evidence of SMT2 or SMT4, but I found nothing conclusive. I don't know what those masks are used for and I'm not sure I found the correct implementation for the topology_is_primary_thread function.