From mboxrd@z Thu Jan 1 00:00:00 1970 From: Halil Pasic Subject: Re: [PATCH v4 4/8] s390/airq: use DMA memory for adapter interrupts Date: Wed, 12 Jun 2019 15:33:24 +0200 Message-ID: <20190612153324.3dc6632c.pasic@linux.ibm.com> References: <20190606115127.55519-1-pasic@linux.ibm.com> <20190606115127.55519-5-pasic@linux.ibm.com> <20190611121721.61bf09b4.cohuck@redhat.com> <20190611162721.67ca8932.pasic@linux.ibm.com> <20190611181944.5bf2b953.cohuck@redhat.com> <20190612023231.7da4908c.pasic@linux.ibm.com> <20190612082127.3fd63091.cohuck@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190612082127.3fd63091.cohuck@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Cornelia Huck Cc: Vasily Gorbik , linux-s390@vger.kernel.org, Thomas Huth , Claudio Imbrenda , kvm@vger.kernel.org, Sebastian Ott , "Michael S. Tsirkin" , Farhan Ali , Heiko Carstens , Eric Farman , virtualization@lists.linux-foundation.org, Christoph Hellwig , Christian Borntraeger , "Jason J. Herne" , Michael Mueller , Viktor Mihajlovski , Janosch Frank List-Id: virtualization@lists.linuxfoundation.org On Wed, 12 Jun 2019 08:21:27 +0200 Cornelia Huck wrote: > On Wed, 12 Jun 2019 02:32:31 +0200 > Halil Pasic wrote: > > > On Tue, 11 Jun 2019 18:19:44 +0200 > > Cornelia Huck wrote: > > > > > On Tue, 11 Jun 2019 16:27:21 +0200 > > > Halil Pasic wrote: > > > > > IMHO the cleanest thing to do at this stage is to check if the > > > > airq_iv_cache is NULL and fail the allocation if it is (to preserve > > > > previous behavior). > > > > > > That's probably the least invasive fix for now. Did you check whether > > > any of the other dma pools this series introduces have a similar > > > problem due to init not failing? > > > > > > > Good question! > > > > I did a quick check. virtio_ccw_init() should be OK, because we don't > > register the driver if allocation fails, so the thing is going to end > > up dysfunctional as expected. > > > > If however cio_dma_pool_init() fails, then we end up with the same > > problem with airqs, just on the !AIRQ_IV_CACHELINE code path. It can be > > fixed analogously: make cio_dma_zalloc() fail all allocation if > > cio_dma_pool_init() failed before. > > Ok, makes sense. v5 is out with the fixes. I have no ack/r-b from you for patch 4. Would you like to give some, or should I proceed without? Regards, Halil