Skip to content

Make aie smu code common for aie2 and aie4#1120

Open
donwalkarsoham wants to merge 3 commits intoamd:mainfrom
donwalkarsoham:dev_patch_5-6
Open

Make aie smu code common for aie2 and aie4#1120
donwalkarsoham wants to merge 3 commits intoamd:mainfrom
donwalkarsoham:dev_patch_5-6

Conversation

@donwalkarsoham
Copy link

@donwalkarsoham donwalkarsoham commented Feb 26, 2026

Problem solved by the commit
Add common smu code for both aie2 and aie4

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
N/A

How problem was solved, alternative solutions (if any) and why they were rejected
1> Removed duplicates and merged common code.

Risks (if any) associated the changes in the commit
Should be backward compatible

What has been tested and how, request additional testing if necessary
1> Driver installation successful.
2> Ran xrt_test 0 1 2 6 successfully

Documentation impact (if any)
N/A

Signed-off-by: Soham Donwalkar <soham.donwalkar@amd.com>
@AMDGithubSCIMAdmin
Copy link

Can one of the admins verify this patch?

@xdavidz
Copy link
Contributor

xdavidz commented Feb 26, 2026

ok to test

1 similar comment
@maxzhen
Copy link
Collaborator

maxzhen commented Mar 2, 2026

ok to test

@amd-gevadlam
Copy link
Contributor

retest this please

@xdavidz xdavidz requested review from hlaccabu and xdavidz March 2, 2026 19:47
struct pci_dev *pdev = to_pci_dev(xdna->ddev.dev);
void __iomem *tbl[PCI_NUM_RESOURCES] = {0};
struct amdxdna_dev_hdl *ndev;
struct smu_config smu_conf = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

no {} please

Copy link
Author

Choose a reason for hiding this comment

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

ok will remove it.

Copy link
Author

Choose a reason for hiding this comment

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

Synced with latest upstream patch as well as rebased the commit on top of other changes added to the driver.
Addressed above comments in the latest version.

xdavidz
xdavidz previously approved these changes Mar 2, 2026
Copy link
Contributor

@xdavidz xdavidz left a comment

Choose a reason for hiding this comment

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

I am ok with this, but in the future we should not have smu.interval and smu.timeout.
The smu IP is the same between aie2 and aie4.

donwalkarsoham and others added 2 commits March 2, 2026 16:40
Signed-off-by: Soham Donwalkar <soham.donwalkar@amd.com>
@donwalkarsoham
Copy link
Author

donwalkarsoham commented Mar 3, 2026

I am ok with this, but in the future we should not have smu.interval and smu.timeout. The smu IP is the same between aie2 and aie4.

Synced with latest upstream patch as well as rebased the commit on top of other changes added to the driver.
Addressed above comments in the latest version.

@NishadSaraf
Copy link
Member

retest this please

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.

6 participants