qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.ibm.com>
To: Auger Eric <eric.auger@redhat.com>,
	Stefan Berger <stefanb@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org
Cc: marcandre.lureau@redhat.com, philmd@redhat.com,
	mkedzier@redhat.com, pbonzini@redhat.com
Subject: Re: [PATCH v3 4/8] tpm: Split TPM_TIS_IRQ into TPM_TIS_ISA_IRQ and TPM_TIS_SYSBUS_IRQ
Date: Wed, 17 Jun 2020 08:06:25 -0400	[thread overview]
Message-ID: <0baa825d-138f-dfa6-b70d-5b9387b567ce@linux.ibm.com> (raw)
In-Reply-To: <62a70526-7c3d-8342-3c23-a2751b6d508c@redhat.com>

On 6/17/20 4:12 AM, Auger Eric wrote:
> Hi Stefan,
>
> On 6/16/20 10:57 PM, Stefan Berger wrote:
>> Before the enablement of interrupts on PCs, split the TPM_TIS_IRQ
>> into TPM_TIS_ISA_IRQ for PCs and TPM_TIS_SYSBUS_IRQ for ARM.
>>
>> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
>> ---
>>   hw/tpm/tpm_tis_isa.c    | 2 +-
>>   hw/tpm/tpm_tis_sysbus.c | 3 ++-
>>   include/hw/acpi/tpm.h   | 3 ++-
>>   3 files changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/hw/tpm/tpm_tis_isa.c b/hw/tpm/tpm_tis_isa.c
>> index ed6d422f05..27222a9a49 100644
>> --- a/hw/tpm/tpm_tis_isa.c
>> +++ b/hw/tpm/tpm_tis_isa.c
>> @@ -97,7 +97,7 @@ static void tpm_tis_isa_reset(DeviceState *dev)
>>   }
>>   
>>   static Property tpm_tis_isa_properties[] = {
>> -    DEFINE_PROP_UINT32("irq", TPMStateISA, state.irq_num, TPM_TIS_IRQ),
>> +    DEFINE_PROP_UINT32("irq", TPMStateISA, state.irq_num, TPM_TIS_ISA_IRQ),
> irq_num is a uint32 prop while the default value we are going to assign
> is -1. I guess we will end up with irq_num = 255?

We can make it ~0, if that's better. Otherwise it does seem to become 
0xff ff ff ff with the current -1.


    Stefan



  reply	other threads:[~2020-06-17 12:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16 20:57 [PATCH v3 0/8] tpm: Enable usage of TPM TIS with interrupts Stefan Berger
2020-06-16 20:57 ` [PATCH v3 1/8] tpm_tis: Allow lowering of IRQ also when locality is not active Stefan Berger
2020-06-17  7:37   ` Marc-André Lureau
2020-06-16 20:57 ` [PATCH v3 2/8] tpm: Extend TPMIfClass with get_irqnum() function Stefan Berger
2020-06-17  7:38   ` Marc-André Lureau
2020-06-16 20:57 ` [PATCH v3 3/8] tests: Temporarily ignore DSDT table differences Stefan Berger
2020-06-17  7:38   ` Marc-André Lureau
2020-06-16 20:57 ` [PATCH v3 4/8] tpm: Split TPM_TIS_IRQ into TPM_TIS_ISA_IRQ and TPM_TIS_SYSBUS_IRQ Stefan Berger
2020-06-17  7:39   ` Marc-André Lureau
2020-06-17  8:12   ` Auger Eric
2020-06-17 12:06     ` Stefan Berger [this message]
2020-06-17 13:09       ` Auger Eric
2020-06-16 20:57 ` [PATCH v3 5/8] acpi: Enable TPM IRQ Stefan Berger
2020-06-17  7:39   ` Marc-André Lureau
2020-06-17  8:22   ` Auger Eric
2020-06-17 11:59     ` Stefan Berger
2020-06-18 20:12       ` Michael S. Tsirkin
2020-06-18 20:57         ` Stefan Berger
2020-06-16 20:57 ` [PATCH v3 6/8] tests: Add updated DSDT Stefan Berger
2020-06-17  7:40   ` Marc-André Lureau
2020-06-16 20:57 ` [PATCH v3 7/8] tpm: Guard irq related ops in case interrupts are disabled Stefan Berger
2020-06-16 20:57 ` [PATCH v3 8/8] tpm: Disable interrupt support for TIS on sysbus Stefan Berger
2020-06-17  7:39   ` Marc-André Lureau
2020-06-16 22:58 ` [PATCH v3 0/8] tpm: Enable usage of TPM TIS with interrupts no-reply

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=0baa825d-138f-dfa6-b70d-5b9387b567ce@linux.ibm.com \
    --to=stefanb@linux.ibm.com \
    --cc=eric.auger@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mkedzier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.vnet.ibm.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).