Skip to content
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

Remove describe_tlb function #419

Merged
merged 5 commits into from
Dec 23, 2024
Merged

Remove describe_tlb function #419

merged 5 commits into from
Dec 23, 2024

Conversation

broskoTT
Copy link
Contributor

@broskoTT broskoTT commented Dec 18, 2024

Issue

Related to #417

Description

Seems like we've had a redundant get_tlb_configuration and describe_tlb functions. I also noted that sometimes we downcasted 64bit address to 32bit, so this should solve those problems if they were even present.

List of the changes

  • Removed describe_tlb everywhere
  • Changed describe_tlb calls with get_tlb_configuration
  • API now returns tlb_configuration type.

Testing

Existing CI tests

API Changes

This PR has API changes. I've left old API in place so that this change is not breaking, but is marked as deprecated.

@broskoTT broskoTT added the changes api API changing PR, needs changes in client code label Dec 18, 2024
@broskoTT broskoTT requested a review from pjanevskiTT December 18, 2024 13:09
@broskoTT broskoTT changed the title init Remove describe_tlb function Dec 18, 2024
Copy link
Contributor

@pjanevskiTT pjanevskiTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes. Left a few nit comments. In general, I think we should start writing tests for TLB configs, to be sure that we hit the address that we want or index if we care for the index. Not sure what is the right path here since maybe we don't want to expose BAR0 space, but we can think about it, maybe you can just open the follow up issue to have this on the radar

device/api/umd/device/cluster.h Outdated Show resolved Hide resolved
device/cluster.cpp Outdated Show resolved Hide resolved
device/cluster.cpp Outdated Show resolved Hide resolved
device/cluster.cpp Outdated Show resolved Hide resolved
device/cluster.cpp Outdated Show resolved Hide resolved
device/cluster.cpp Outdated Show resolved Hide resolved
@broskoTT broskoTT removed the changes api API changing PR, needs changes in client code label Dec 23, 2024
@broskoTT broskoTT enabled auto-merge (squash) December 23, 2024 07:43
@broskoTT broskoTT merged commit 28a483b into main Dec 23, 2024
19 checks passed
@broskoTT broskoTT deleted the brosko/tlb_data branch December 23, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants