qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test for TPM TIS on I2C bus


From: Stefan Berger
Subject: Test for TPM TIS on I2C bus
Date: Wed, 22 Mar 2023 14:14:10 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

Hello!

  Ninad wrote an emulator for TPM TIS on I2C bus and I was wondering how one 
could implement a test case for it so that we can for example read and write 
registers. All existing TPM test cases are using qtest API and we spawn a 
thread to emulate a TPM and use the qtest API to read/write the ISA TIS's MMIO 
registers. The test cases that I see for i2c are all using the qos type of API. 
I have tried to use both in a test case but I am not sure whether they go 
together at all (from the errors I have seen they don't go together). So what 
options would we have? I thought that one could maybe write an i2c driver to 
transfer bytes to the device but the i2c in hw/i2c/aspeed_i2c.c looks complex 
to reverse engineer to try to get a byte to a connected device. Do you have any 
other suggestions?

  Regards,
      Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]