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

I2C timeout on jetson-agx-orin-devkit #84

Open
matsunaoki opened this issue Nov 20, 2023 · 2 comments
Open

I2C timeout on jetson-agx-orin-devkit #84

matsunaoki opened this issue Nov 20, 2023 · 2 comments

Comments

@matsunaoki
Copy link

matsunaoki commented Nov 20, 2023

Issues

  • Timeout error occurs while issuing TegraI2cStartRequest
  • How can I skip initializing I2C if it is not mandatory for edk2 on AGX Orin developer kit?
[2023-10-24 16:38:22] Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
[2023-10-24 16:38:22] Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
[2023-10-24 16:38:22] Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
[2023-10-24 16:38:22] Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
[2023-10-24 16:38:22] Invalid EFI_I2C_DEVICE reported by I2c Enumerate protocol.
[2023-10-24 16:38:23] Installed Fat filesystem on 8221EE398
[2023-10-24 16:38:23] [ext4] Needs journal recovery, mounting read-only
[2023-10-24 16:38:25] TegraI2cStartRequest: Timeout waiting for Packet Complete
[2023-10-24 16:38:25] TegraI2cStartRequest: Timeout waiting for Packet Complete
[2023-10-24 16:38:25] TegraI2cStartRequest: Timeout waiting for Packet Complete
[2023-10-24 16:38:25] TegraI2cStartRequest: Timeout waiting for Packet Complete
[2023-10-24 16:38:26] TegraI2cStartRequest: Timeout waiting for Packet Complete
[2023-10-24 16:38:26] PrintBootOrder: Current BootOrder:
[2023-10-24 16:38:26] PrintBootOrder: BootOrder[0] = 0x0008 = UEFI I-O DATA USB Flash Disk 1242609221250144
[2023-10-24 16:38:26] PrintBootOrder: BootOrder[1] = 0x0001 = UEFI eMMC Device

Environment

Background

It's important boot time on some embedded scene. so, We investigate how many seconds spent each compornent. We found the above time out messages.

@ashishsingha
Copy link
Contributor

Hello,

You can do it in two ways:

  1. In the UEFI DTB, disable the I2C controllers that you know you would not be using on your platform.
  2. In the Supported function in TegraI2C driver in UEFI, you can return EFI_UNSUPPORTED for the controllers you want UEFI to ignore.

Thanks

@matsunaoki
Copy link
Author

Thanks for comment. I know disable tips by nvidia forum.

I think 2 problems. No1) initialize slowly, No2) It's difficult to know whether impact if disabled.

If the initializing is fast, it's no problems and no need to disable. Therefore, I hope driver developer team to improve it.

I have a question in No2's view point. Does it have impact to secure boot when disable i2c?

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

No branches or pull requests

2 participants