Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp723750ybi; Fri, 21 Jun 2019 07:08:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4PAg61dfIEuLIBbzwebpO5XqCZApNgFMfh+kCkRHbyNzfyTkx8odNaLtEZPazc7u3Lj8S X-Received: by 2002:a63:5902:: with SMTP id n2mr7979126pgb.291.1561126092579; Fri, 21 Jun 2019 07:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561126092; cv=none; d=google.com; s=arc-20160816; b=reB9kY/nwxM9CQWCl5JJSt2cBSpwUKxI3UhZYWbYbYvTb8nxdQFd2v0orJfz9hib3G H74jYK17F0aJoydPAHRRGCMVe9qKM7WEvkJPfT2icHyl27MAdWCwy5Xu6Gqzg9thgzq4 YHABUqzXMFSgM56TU/bwTtDlluYWGvv5ESvHlUJZb0DIHeQYsGxP9kIQy/LTW/trzZ4Z qmt+WpU+sLUySaTnLLnncYOO6qulKecWzJNnh36o7rev+u8u7kIl8cEb47fB2bGO5WVW WzaahwuEgFeEO5PphlDIGndnxdRdy2GsoOzE6GTr+BhKNI72y8izxNSRdCo1RKyi5w9P kT3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=HTZag8bPfa5yUG5jlYe/1cGSlt2Nvj3LLNnBPc3LATE=; b=Av9J4KZMlBIBAwmVNce6qoKS0pqDr28gUmpuO8TDTtePO2+6PxpgJJonmExZk74R9+ NuI9meb5o0PVreFRY7H4P8g+prCO5Oj1Dbyuz9X7Vm8jXwqgXfGf4dU55eNa+/AkILsD mRwm+g/ow3hoBviyVmSbnile1rIQehoczNHhGsEUrMqipdJjt/4qTp6NzbWuY1YgtVq6 o7nyuLdz6cPoabrF5xcq4NmwFr+0FKYCT+YmLY1MqLts/QDD+WyaVrjBKC8XLuNQ6zU2 ryI/jRShj1o3ERtU+8iXX7sW13pHaEUTcip8Y6sNbf5kXWkf7o//QSmzlqkMtFcAKv0L 2KMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si2589079plt.387.2019.06.21.07.07.57; Fri, 21 Jun 2019 07:08:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbfFUOF6 (ORCPT + 99 others); Fri, 21 Jun 2019 10:05:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59284 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfFUOF5 (ORCPT ); Fri, 21 Jun 2019 10:05:57 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BB4FF30C31B1; Fri, 21 Jun 2019 14:05:57 +0000 (UTC) Received: from gondolin (dhcp-192-192.str.redhat.com [10.33.192.192]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1269E61101; Fri, 21 Jun 2019 14:05:53 +0000 (UTC) Date: Fri, 21 Jun 2019 16:05:51 +0200 From: Cornelia Huck To: Halil Pasic Cc: Sebastian Ott , Peter Oberparleiter , Alex Williamson , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390/cio: introduce driver_override on the css bus Message-ID: <20190621160551.7f11adb7.cohuck@redhat.com> In-Reply-To: <20190621153711.7d713c4d.pasic@linux.ibm.com> References: <20190613110815.17251-1-cohuck@redhat.com> <20190621115604.0f3e3f69.cohuck@redhat.com> <20190621153711.7d713c4d.pasic@linux.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 21 Jun 2019 14:05:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Jun 2019 15:37:11 +0200 Halil Pasic wrote: > On Fri, 21 Jun 2019 11:56:04 +0200 > Cornelia Huck wrote: > > > On Thu, 13 Jun 2019 13:08:15 +0200 > > Cornelia Huck wrote: > > > > > Sometimes, we want to control which of the matching drivers > > > binds to a subchannel device (e.g. for subchannels we want to > > > handle via vfio-ccw). > > > > > > For pci devices, a mechanism to do so has been introduced in > > > 782a985d7af2 ("PCI: Introduce new device binding path using > > > pci_dev.driver_override"). It makes sense to introduce the > > > driver_override attribute for subchannel devices as well, so > > > that we can easily extend the 'driverctl' tool (which makes > > > use of the driver_override attribute for pci). > > > > > > Note that unlike pci we still require a driver override to > > > match the subchannel type; matching more than one subchannel > > > type is probably not useful anyway. > > > > > > Signed-off-by: Cornelia Huck > > Reviewed-by: Halil Pasic Thanks! > > I guess the '\n' handling is customary, and is what the same what > the pci counterpart (782a985d7af2) does anyway. It bothers > me a little that you don't necessarily get back from with show > what you stored. E.g. # echo -e "bug\nfree" > > /sys/bus/css/devices/0.0.0001/driver_override # echo $? > 0 > # cat /sys/bus/css/devices/0.0.0001/driver_override > bug > # echo $? > 0 > But given the previous art (782a985d7af2) I think it is the best way > to do it. Yeah; I shamelessly copied a lot :) And I agree it's probably useful to have both act in the same way. > > The rest is very straightforward. > > > > --- > > > > > > Lightly tested; did not yet attempt to adapt driverctl to actually > > > make use of it. > > > > Friendly ping. > > > > In the meanwhile, I figured out that you do not need to adapt driverctl > > at all, but just need to pass it '-b css' to work on the css bus; this > > seems to work just fine with this patch applied. > > > > Interesting. I hope to get around and have a closer look at it > eventually. Nice; somebody else looking at it is always useful :)