Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp437297pxb; Mon, 25 Oct 2021 11:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWObOiEDDnI66XAgBd3sHllAKIzS3F6GH5WK12GUGPpePbtx2Qkc69mmIvwjOUKcK0Rga5 X-Received: by 2002:a17:907:d1e:: with SMTP id gn30mr24006978ejc.272.1635185419358; Mon, 25 Oct 2021 11:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635185419; cv=none; d=google.com; s=arc-20160816; b=R837u3U1kCRkCh8WacdiWlphfh5FQJof4FNkkWODgX4cHgSCgBvjy8PTU8RMsgPKg+ kdjxtMaVv5ZXefPB9kKvku0GYt93Bw25iQ/cEpLVbnNn90Xdtg+48SwIRKrQIj4N7g+Q kF0c88xWGYN6o2GuL53wIbbaqrjPb0zasc4dxeNIqp/tj/kQaKxs6VqfYDU+iOu4igLo WQFWjElYwEANSteWvf8Uyrf3rNkreWEP2tArHlqZ5BUwIQXjXlBba83hctQoqG4nHPhR OX/VQM2sJKnLyv1sPb2T7Bgy3qu7C9P/15zd2eGOXrEW7iImkA8dqJORLU+eMb+lRy0V Vc/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0MRIJK38K2drN4e3ngKB0O6sf4yJZ/Wzh60rXLYz2VI=; b=bIxhYPu4ltf99bDld1iRTDZczGSNJPG3T4AciRzA9SrnNfRFwB4kf/HZpRFh1K8dS/ LzwQ5Pic5laRyX4G/pW304jGTPEm4VuvArHBTS1KZiWSnOnNwgIjg6dij2ZsTPT48EkV kC1LnNoKa305/CVSUhx1un/57qD2JOfi6/KCjKVnFMuX3saHBeBiAhNcLYeUy333GZMJ auI+RKhie69CqZvggJHl3YUKA26IPAVnv1w12f7ei/vG/DMF6WGKOvbo53gUAhIUkoek pCz6r3MWogw17zthadZgk+s4DMqA95KqQDh6tjWEKYGIh8OFTkYvr1Pp431BPH68HPuU NQ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cLwXICOQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho30si31449278ejc.122.2021.10.25.11.09.52; Mon, 25 Oct 2021 11:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cLwXICOQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232553AbhJYNga (ORCPT + 99 others); Mon, 25 Oct 2021 09:36:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:44054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbhJYNg3 (ORCPT ); Mon, 25 Oct 2021 09:36:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B78460C49; Mon, 25 Oct 2021 13:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635168847; bh=TGM36HNRsET/pFtiRfUexbyoYySsw2F2J7sSYWaL4F0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cLwXICOQfBRit9X+o06XSrCCVKcm+8e9Lr8O3G353b3PJm27R/6kJBXEgUANF2Q13 yFo1+jzyeBnuifrTyxAID5+YW9BmeKBbwhl0bVxV6tMEmd9Ejq2LhPh+ZWRyqB1R7k mWNhnb3OIffD3fMCcsJpq/paMle0k8Ob1NPCM9PY= Date: Mon, 25 Oct 2021 15:34:05 +0200 From: Greg Kroah-Hartman To: Patrick Williams Cc: Andy Shevchenko , Frank Rowand , Zev Weiss , kvm@vger.kernel.org, "Rafael J. Wysocki" , Kirti Wankhede , Jeremy Kerr , Rajat Jain , Jianxiong Gao , Dave Jiang , Saravana Kannan , Mauro Carvalho Chehab , openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, Konrad Rzeszutek Wilk , Alex Williamson , Rob Herring , Bhaskar Chowdhury , Thomas Gleixner , Andrew Jeffery , Cornelia Huck , linux-kernel@vger.kernel.org, Vinod Koul , dmaengine@vger.kernel.org Subject: Re: [PATCH 4/5] driver core: inhibit automatic driver binding on reserved devices Message-ID: References: <627101ee-7414-57d1-9952-6e023b8db317@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 25, 2021 at 08:20:05AM -0500, Patrick Williams wrote: > On Mon, Oct 25, 2021 at 03:58:25PM +0300, Andy Shevchenko wrote: > > On Mon, Oct 25, 2021 at 06:44:26AM -0500, Patrick Williams wrote: > > > On Mon, Oct 25, 2021 at 08:15:41AM +0200, Greg Kroah-Hartman wrote: > > > > On Mon, Oct 25, 2021 at 12:38:08AM -0500, Frank Rowand wrote: > > > > > On 10/23/21 3:56 AM, Greg Kroah-Hartman wrote: > > > > > > > We have the bind/unbind ability today, from userspace, that can control > > > > this. Why not just have Linux grab the device when it boots, and then > > > > when userspace wants to "give the device up", it writes to "unbind" in > > > > sysfs, and then when all is done, it writes to the "bind" file and then > > > > Linux takes back over. > > > > > > > > Unless for some reason Linux should _not_ grab the device when booting, > > > > then things get messier, as we have seen in this thread. > > > > > > This is probably more typical on a BMC than atypical. The systems often require > > > the BMC (running Linux) to be able to reboot independently from the managed host > > > (running anything). In the example Zev gave, the BMC rebooting would rip away > > > the BIOS chip from the running host. > > > > > > The BMC almost always needs to come up in a "I don't know what could possibly be > > > going on in the system" state and re-discover where the system was left off. > > > > Isn't it an architectural issue then? > > I'm not sure what "it" you are referring to here. > > I was trying to explain why starting in "bind" state is not a good idea for a > BMC in most of these cases where we want to be able to dynamically add a device. I think "it" is "something needs to be the moderator between the two operating systems". What is the external entity that handles the switching between the two? thanks, greg k-h