From: Pierre Morel <pmorel@linux.ibm.com>
To: Cornelia Huck <cohuck@redhat.com>
Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org,
frankja@linux.ibm.com, david@redhat.com, thuth@redhat.com,
drjones@redhat.com
Subject: Re: [kvm-unit-tests PATCH v10 9/9] s390x: css: ssch/tsch with sense and interrupt
Date: Tue, 7 Jul 2020 13:14:49 +0200 [thread overview]
Message-ID: <9080a181-90f5-425b-dc36-41444079c41e@linux.ibm.com> (raw)
In-Reply-To: <20200707130530.1f365c5f.cohuck@redhat.com>
On 2020-07-07 13:05, Cornelia Huck wrote:
> On Tue, 7 Jul 2020 12:57:03 +0200
> Pierre Morel <pmorel@linux.ibm.com> wrote:
>
>> On 2020-07-06 16:24, Cornelia Huck wrote:
>>> On Mon, 6 Jul 2020 15:01:50 +0200
>>> Pierre Morel <pmorel@linux.ibm.com> wrote:
>>>
>>>> On 2020-07-06 11:46, Cornelia Huck wrote:
>>>>> On Thu, 2 Jul 2020 18:31:20 +0200
>>>>> Pierre Morel <pmorel@linux.ibm.com> wrote:
>>>>>
>>>>>> After a channel is enabled we start a SENSE_ID command using
>>>>>> the SSCH instruction to recognize the control unit and device.
>>>>>>
>>>>>> This tests the success of SSCH, the I/O interruption and the TSCH
>>>>>> instructions.
>>>>>>
>>>>>> The SENSE_ID command response is tested to report 0xff inside
>>>>>> its reserved field and to report the same control unit type
>>>>>> as the cu_type kernel argument.
>>>>>>
>>>>>> Without the cu_type kernel argument, the test expects a device
>>>>>> with a default control unit type of 0x3832, a.k.a virtio-net-ccw.
>>>>>>
>>>>>> Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
>>>>>> ---
>>>>>> lib/s390x/asm/arch_def.h | 1 +
>>>>>> lib/s390x/css.h | 32 ++++++++-
>>>>>> lib/s390x/css_lib.c | 148 ++++++++++++++++++++++++++++++++++++++-
>>>>>> s390x/css.c | 94 ++++++++++++++++++++++++-
>>>>>> 4 files changed, 272 insertions(+), 3 deletions(-)
>>>
>>> (...)
>>>
>>>>>> @@ -114,6 +128,7 @@ retry:
>>>>>> return cc;
>>>>>> }
>>>>>>
>>>>>> + report_info("stsch: flags: %04x", pmcw->flags);
>>>>>
>>>>> It feels like all of this already should have been included in the
>>>>> previous patch?
>>>>
>>>> Yes, I did not want to modify it since it was reviewed-by.
>>>
>>> It's not such a major change (the isc change and this here), though...
>>> what do the others think?
>> changed my mind:
>> What about keeping css_enable() to only do enable, in case we only want
>> to do this, and add a function to modify the ISC.
>
> Hm, the isc is only really relevant while the subchannel is enabled, so
> this would be fine if we only ever modified the isc while the
> subchannel is disabled. On the other hand, we introduce an extra round
> of msch. No strong opinion on my side.
>
Hum too, I fear we can not avoid the msch round:
After your comment I realize that we can not let the channel enabled
without a valid ISC in the case we enable IRQ.
So unless other opinion, back to the css_enable(schid, isc).
--
Pierre Morel
IBM Lab Boeblingen
prev parent reply other threads:[~2020-07-07 11:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 16:31 [kvm-unit-tests PATCH v10 0/9] s390x: Testing the Channel Subsystem I/O Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 1/9] s390x: saving regs for interrupts Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 2/9] s390x: I/O interrupt registration Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 3/9] s390x: export the clock get_clock_ms() utility Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 4/9] s390x: clock and delays calculations Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 5/9] s390x: define function to wait for interrupt Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 6/9] s390x: Library resources for CSS tests Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 7/9] s390x: css: stsch, enumeration test Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 8/9] s390x: css: msch, enable test Pierre Morel
2020-07-02 16:31 ` [kvm-unit-tests PATCH v10 9/9] s390x: css: ssch/tsch with sense and interrupt Pierre Morel
2020-07-03 8:41 ` Thomas Huth
2020-07-03 9:05 ` Pierre Morel
2020-07-03 12:01 ` Janosch Frank
2020-07-03 12:25 ` Pierre Morel
2020-07-06 9:46 ` Cornelia Huck
2020-07-06 13:01 ` Pierre Morel
2020-07-06 14:24 ` Cornelia Huck
2020-07-07 10:57 ` Pierre Morel
2020-07-07 11:05 ` Cornelia Huck
2020-07-07 11:14 ` Pierre Morel [this message]
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=9080a181-90f5-425b-dc36-41444079c41e@linux.ibm.com \
--to=pmorel@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=drjones@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.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