Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57262 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727489AbgDFL6Q (ORCPT ); Mon, 6 Apr 2020 07:58:16 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 036BXDOs186468 for ; Mon, 6 Apr 2020 07:58:15 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 3082j7jp4r-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 Apr 2020 07:58:15 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Apr 2020 12:57:48 +0100 Date: Mon, 6 Apr 2020 13:58:07 +0200 From: Vasily Gorbik Subject: Re: [PATCH 0/2] s390/cio: correct some uevent issues References: <20200327124503.9794-1-cohuck@redhat.com> <20200406135441.743db659.cohuck@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200406135441.743db659.cohuck@redhat.com> Message-Id: Sender: linux-s390-owner@vger.kernel.org List-ID: To: Cornelia Huck Cc: linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger , Peter Oberparleiter , Eric Farman , Halil Pasic , Boris Fiuczynski On Mon, Apr 06, 2020 at 01:54:41PM +0200, Cornelia Huck wrote: > On Fri, 27 Mar 2020 13:45:01 +0100 > Cornelia Huck wrote: > > > For subchannels, we currently delay the initial ADD uevent to a > > point in time controlled by the driver bound to it (this is to > > avoid a storm of useless uevents for I/O subchannels that do not > > have an operational device behind it and will get deregistered > > again, which are potentially a lot on LPARs.) > > > > If we unbind from the io_subchannel driver and rebind again later, > > we'll get a duplicate ADD uevent -- not a common workflow, but might > > happen e.g. when you use a device in the host, then pass it to a > > guest via vfio-ccw, and then want to use it in the host again. Fixed > > by the first patch. > > > > The vfio_ccw subchannel driver did not generate any ADD uevent at > > all -- currently not a problem, as every I/O subchannel will have been > > bound to the io_subchannel driver before, but let's fix this anyway > > (second patch). > > > > [As an aside, setting driver_override via a udev rule does not work > > as expected, due to the uevent delaying -- a specified driver_override > > works as designed, but userspace won't get the ADD uevent until after > > the io_subchannel driver has been bound to the device already... we > > may want to rethink this whole uevent mechanism for subchannels later, > > but I don't think it's too pressing an issue.] > > > > Probably easiest for both patches to go via the s390 arch maintainers. > > Friendly ping. Anyone taking these? I've just applied them, thank you!