-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong L3 [d|i]-cache-sets on POWER9 #154
Comments
I was discussing this topic with @segher and we didn't agree on what Option 1 - N-way associativity Option 2 - Number of sets Notice the Devicetree specification v0.2 specifies the following for d-cache-sets:
Source: https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.2 |
We've got the same value in our PHYP box as well so it is odd nobody has noticed anything wrong for this long now. The change is very simple to make, literally 1 line of target_types.xml, just want to make sure we don't break anybody downstream. |
The P9 user manual says:
Where are you getting the 20-way value from? |
@dcrowell77, L1I, L1D and L2 are indeed 8-way associative on P9. But according to the P9 user manual, section 8.3 (L3 Cache - List of features and resources), L3 is 20-way associative. Anyway, notice the discussion around the definition of |
The skiboot folks control the devtree part of the equation so I can't speak much to that. Hostboot fills in the HDAT field of "Number of associativity sets in the data cache." which doesn't specifically say L1/L2/L3. Adding @stewart-ibm @ozbenh |
On Mon, 2018-12-03 at 19:47 +0000, Dan wrote:
The skiboot folks control the devtree part of the equation so I can't
speak much to that. Hostboot fills in the HDAT field of "Number of
associativity sets in the data cache." which doesn't specifically say
L1/L2/L3. Adding @stewart-ibm @ozbenh
Offset 0x44 in Cache Size Structure in the CUDA has the L2
associativity, but not the L3, so we assume they are identical.
Cheers,
Ben.
… —
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi, any updates on this issue? |
Tagging @klauskiwi , based on where the discussion is headed it might make sense to move this to the skiboot list. |
@hegdevasant looks something for you... |
Sorry. Somehow I missed this one.. From skiboot code :
I think fix should come from HDAT side.. -Vasant |
@hegdevasant Are you proposing that HDAT needs a new field or that the current values are incorrect? |
I think we need new field in HDAT for L3 associativity. Currently we are not getting that. Hence we just use L2 associativity for L3. So on P9 we are displaying L3 associativity as -Vasant |
POWER9 has an L3 that is 20-way set associative. This changed from POWER8 that had L1, L2 and L3 all with 8-way associativity.
However, after extracting DTS from HDAT, this is what we get:
Notice both L1 and L2 (8-way associative) have correct numbers:
The text was updated successfully, but these errors were encountered: