Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1245357pxb; Thu, 7 Oct 2021 04:03:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkor+Eo+saj+1ThJCEfY4Bn3vYe+bnYTN3TFma+s13qUOmnSmqb8Yl91JuTV6BZ/PM6g08 X-Received: by 2002:a17:906:fc7:: with SMTP id c7mr4823647ejk.333.1633604623305; Thu, 07 Oct 2021 04:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633604623; cv=none; d=google.com; s=arc-20160816; b=DkaZjnPxj4lZqxu9jDmoyc5TIdzIeTiR8mEbG0KiA+KdbpLKpRvIubMrCFrZdkiAmc cXEnUFyNwV3tgxzy3HhK+ygsquH/0o+L8xYUQPBGBUNbGCqpsYpk/pXEtSayXqgDR1oh 5b+NTW9MTUgB5M9TLoAENNMNnj/bHPfG4cJx/sTs3WWfYZ7r3dGwiWOI2o+MapLuhzAe JboEP7WkyyE2Jv5+YcCW5ttZN0hcCB+8Nb+qIxt+CujA6td5lLmxUYXQ6msEN3+ykmqN CGz15hasEVSCpCsG3C0onGQShpI0y6rD2pL53XAgCBMcY4k09H4lDu0J0Q4njjwM1cmy kBIQ== 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=c6VrkhoHUZAUQiVKmGwVpXB8+KjHrbmREjdH/fFD+Ag=; b=RqvEoWq6Pb6+MKOm3SZLiVLUNjodzSq1v5eeMvwqAsi9h00NtWSnIdPtXlNZIp3Wyt nAu4NEuGRsRrF1JxFWhl2ul2Hpc/VyWPR5a2pYal/hfNQt5a0hwAB5I20odM7YDDsYcL GvtVO2dpn63ia6jv2guPmTyCTnyh+oakXXm9xbt9ZLexDgUPZqa5WVDGzs1qlhVRRPDC N5Ui1xQpX4K3IpHyl7jYhaE1w+uyVNsW2GIRJQGN3jEnQ8YqMh17bZ+JOLHwZYy0b1Kg 7FRJGSLMJFIdvD1xiCdsxLKYbBN9v3sMqwaY50Lk6EmxYzME9yGTAG70SsrtWHoAUwzZ 0SgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TVp1j6rP; 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 u5si21104741edj.237.2021.10.07.04.03.17; Thu, 07 Oct 2021 04:03:43 -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=TVp1j6rP; 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 S240746AbhJGKdm (ORCPT + 99 others); Thu, 7 Oct 2021 06:33:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240726AbhJGKde (ORCPT ); Thu, 7 Oct 2021 06:33:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BFC7D60FC3; Thu, 7 Oct 2021 10:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633602701; bh=rjKhAROtKEemtbK1MVWHzDSSAHwzCKKa7aWIBII+u6M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TVp1j6rPJYoLyLt69ZNT1udPquyr/jFRQSTF7wMlB1LXK+gRz7W1gztYG8NuWXV5K 3k+GYtqr+AHd7kjE7khwdWutNiVXOERGnxcRBRzRylGTlRseYSSAz5Ah5koaYjtfiV CaJq3tPOwQ2j6tYoxFbKJj/yQKXeJEukMZ4RPdYc= Date: Thu, 7 Oct 2021 12:31:39 +0200 From: Greg Kroah-Hartman To: Zev Weiss Cc: Andy Shevchenko , OpenBMC Maillist , Jeremy Kerr , Joel Stanley , Rob Herring , devicetree , Andrew Jeffery , Frank Rowand , "Rafael J. Wysocki" , Andy Shevchenko , Andrew Morton , Francis Laniel , Kees Cook , Andrey Konovalov , Jonathan Cameron , Daniel Axtens , Alexey Dobriyan , Dan Williams , Daniel Vetter , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Heiner Kallweit , Nick Desaulniers , Linux Kernel Mailing List , linux-arm Mailing List , "moderated list:ARM/ASPEED MACHINE SUPPORT" Subject: Re: [PATCH 0/9] Dynamic DT device nodes Message-ID: References: <20211007000954.30621-1-zev@bewilderbeest.net> 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 Thu, Oct 07, 2021 at 02:05:41AM -0700, Zev Weiss wrote: > On Thu, Oct 07, 2021 at 12:04:41AM PDT, Andy Shevchenko wrote: > > On Thu, Oct 7, 2021 at 3:10 AM Zev Weiss wrote: > > > This patch series is in some ways kind of a v2 for the "Dynamic > > > aspeed-smc flash chips via 'reserved' DT status" series I posted > > > previously [0], but takes a fairly different approach suggested by Rob > > > Herring [1] and doesn't actually touch the aspeed-smc driver or > > > anything in the MTD subsystem, so I haven't marked it as such. > > > > > > To recap a bit of the context from that series, in OpenBMC there's a > > > need for certain devices (described by device-tree nodes) to be able > > > to be attached and detached at runtime (for example the SPI flash for > > > the host's firmware, which is shared between the BMC and the host but > > > can only be accessed by one or the other at a time). > > > > This seems quite dangerous. Why do you need that? > > Sometimes the host needs access to the flash (it's the host's firmware, > after all), sometimes the BMC needs access to it (e.g. to perform an > out-of-band update to the host's firmware). To achieve the latter, the > flash needs to be attached to the BMC, but that requires some careful > coordination with the host to arbitrate which one actually has access to it > (that coordination is handled by userspace, which then tells the kernel > explicitly when the flash should be attached and detached). > > What seems dangerous? > > > Why can't device tree overlays be used? > > I'm hoping to stay closer to mainline. The OpenBMC kernel has a documented > policy strongly encouraging upstream-first development: > https://github.com/openbmc/docs/blob/master/kernel-development.md > > I doubt Joel (the OpenBMC kernel maintainer) would be eager to start > carrying the DT overlay patches; I'd likewise strongly prefer to avoid > carrying them myself as additional downstream patches. Hence the attempt at > getting a solution to the problem upstream. Then why not work to get device tree overlays to be merged properly? Don't work on a half-of-a-solution when the real solution is already here. thanks, greg k-h