qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.ibm.com>
To: qemu-devel <qemu-devel@nongnu.org>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>
Cc: "Cédric Le Goater" <clg@kaod.org>, ninadpalsule@us.ibm.com
Subject: Test for TPM TIS on I2C bus
Date: Wed, 22 Mar 2023 14:14:10 -0400	[thread overview]
Message-ID: <dd43ec84-51e4-11f7-e067-2fb57a567f09@linux.ibm.com> (raw)

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	other threads:[~2023-03-22 18:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd43ec84-51e4-11f7-e067-2fb57a567f09@linux.ibm.com \
    --to=stefanb@linux.ibm.com \
    --cc=clg@kaod.org \
    --cc=marcandre.lureau@redhat.com \
    --cc=ninadpalsule@us.ibm.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).