qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Test for TPM TIS on I2C bus
@ 2023-03-22 18:14 Stefan Berger
  0 siblings, 0 replies; only message in thread
From: Stefan Berger @ 2023-03-22 18:14 UTC (permalink / raw)
  To: qemu-devel, Marc-André Lureau, Philippe Mathieu-Daudé,
	Thomas Huth
  Cc: Cédric Le Goater, ninadpalsule

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-22 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 18:14 Test for TPM TIS on I2C bus Stefan Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).