** Also affects: linux-bluefield (Ubuntu Jammy)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-bluefield in Ubuntu.
https://bugs.launchpad.net/bugs/2078881

Title:
  mlx-bootctl: support RTC battery status read and clear

Status in linux-bluefield package in Ubuntu:
  New
Status in linux-bluefield source package in Jammy:
  New

Bug description:
  SRU Justification:

  [Impact]

  The RTC battery status is not directly accessible from the kernel user
  space. The recent Nvidia UEFI added SMC to report the RTC battery
  status and clear the status bit if needed.

  [Fix]

  * Added an rtc_battery entry in the bootctl driver.
  * Read the rtc_battery entry will trigger an SMC call to read the RTC battery 
status.

  [Test Case]

  * Check if the bootctl driver is loaded.
  * Check the rtc_battery entry:
  cat /sys/bus/platform/drivers/mlxbf-bootctl/rtc_battery
  A value of 0x0 means RTC battery voltage is good.
  A value of 0x80 means RTC battery voltage is low. The status bit is also 
cleared after the read.
  An error code will be return if this feature is missing from UEFI.

  [Other]
  * This code is likely to change depending on feedback we received from 
maintainers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2078881/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to