Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp163510pxb; Mon, 25 Oct 2021 06:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkcymdWLScTsbYZKtyLtxRzf0q9PQvyOJd2gDdjp7AXTlF6DH5JIh6R6r2fGjx2SxQujfH X-Received: by 2002:a17:902:7101:b0:140:3e2c:1cbe with SMTP id a1-20020a170902710100b001403e2c1cbemr11108015pll.83.1635166874464; Mon, 25 Oct 2021 06:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635166874; cv=none; d=google.com; s=arc-20160816; b=ZIBrwYCXUo9h9m2gHVxcb1S1XdCDF3tgpXnO0HV8TOgUv+kOjJozYViCTs0TEHkx17 8OGaH2ckXtqEtDF17lN/kesCTHdvQESTcveSNSNznvCQQJIDUUEJqHs+FrN8NZkuT67g xq09WnxHg/2JV2A8weBXR7S8OzxlDiZNM8J7HFO+kPv9+7ulSvjgQAYLWnvlRlmZPJ6/ sfTNarIuiDE6tibKlUiw4r/A/mTkV9/OzsDJ5Lxl7yhrmpfb7ihBAE3qguiZ4oHNgzms HHEVkbkw8AGhqDAQk3aweq1qBnUDP35dnCoMmTliAEs2ukWQnZ82OHk5uJmVPAuTh7E2 dHBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zXGqgq7LpuiFvzNeXIDiGD23xgovpFhEdIdVTb/lAA4=; b=lSAPQXbpUZGYtCCK3aIDO+1/ipRVttLpqBPJ61fOB3MtjmoqeTv5SKdBccAFx+yZqr gxU0pLRfiVAEJHAUoBAhRVodCVe8Oqdg5tICbTphaBmnje8VTdXWrJsotjZ7itPpxNWE bqKZLGZDr9ukMlYlVLgOi99UIrx6mC1y1EsBXi0Os0bqFQNeOCTeHsZvVuJKaupEYLcq 696RGT48oKu7ywxhLcpUlCaMYUYwF3r7YP7hiN6iIBhplScFG60hAUpI/Ahbh5Sa9y8u FXvpNYzP1o/dQEtmxHNlK1wYFjym2FLj20NQPiv7DLcDSDSYzq112nOx0DxtnToO1G16 Xhag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y129si21463194pfb.64.2021.10.25.06.00.32; Mon, 25 Oct 2021 06:01:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233423AbhJYNBP (ORCPT + 99 others); Mon, 25 Oct 2021 09:01:15 -0400 Received: from mga14.intel.com ([192.55.52.115]:27939 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbhJYNBO (ORCPT ); Mon, 25 Oct 2021 09:01:14 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10147"; a="229913159" X-IronPort-AV: E=Sophos;i="5.87,180,1631602800"; d="scan'208";a="229913159" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2021 05:58:52 -0700 X-IronPort-AV: E=Sophos;i="5.87,180,1631602800"; d="scan'208";a="571607199" Received: from smile.fi.intel.com ([10.237.72.184]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2021 05:58:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mezYX-000cfz-I6; Mon, 25 Oct 2021 15:58:25 +0300 Date: Mon, 25 Oct 2021 15:58:25 +0300 From: Andy Shevchenko To: Patrick Williams Cc: Greg Kroah-Hartman , 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: <20211022020032.26980-1-zev@bewilderbeest.net> <20211022020032.26980-5-zev@bewilderbeest.net> <627101ee-7414-57d1-9952-6e023b8db317@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- With Best Regards, Andy Shevchenko