mlx-bootctl: support icm carveout eeprom region read/write

Bug #1995296 reported by Asmaa Mnebhi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-bluefield (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Committed
Medium
Asmaa Mnebhi

Bug Description

SRU Justification:

[Impact]

The BlueField-3 ICM carveout feature will enable NIC FW to bypass the SMMU block to access DRAM memory.
The amount of memory accessible by FW will be controlled by ARM. This patch enables setting the size of the large ICM carveout from userspace. The max size is 1TB, has a granularity of 128MB and will be passed
and printed in hex. The size unit is MB.

[Fix]

* Support SMC calls to control the large ICM carveout size.

[Test Case]

* Only valid testing on BlueField-3 real hardware.
* set the region size from sysfs and NIC FW will test that it has access to the entire region requested.

[Regression Potential]

* This code doesn't really have a negative impact on the functionality of the mlxbf-bootctl driver itself but could be a risk for the overall boot if not used/tested properly.
* memory region requested is too large, adn linux cannot boot as a result. The memory allocated for the ICM carveout cannot be accessed by linux.
* the icmc size is not passed properly to NIC FW

Stefan Bader (smb)
Changed in linux-bluefield (Ubuntu Jammy):
assignee: nobody → Asmaa Mnebhi (asmaam)
importance: Undecided → Medium
status: New → In Progress
Changed in linux-bluefield (Ubuntu):
status: New → Invalid
Changed in linux-bluefield (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-bluefield/5.15.0-1010.12 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-bluefield verification-needed-jammy
Meriton Tuli (meritont)
tags: added: verification-done-jammy
removed: verification-needed-jammy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.