Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1676854pxb; Thu, 7 Oct 2021 12:39:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxztJ51s56wvoyJTiH/CEDTljvLt+gkLcihDCTNfDkpabnetJ7r3Wp3cakobe1P2gm5GZ/Q X-Received: by 2002:a17:90a:db51:: with SMTP id u17mr1806109pjx.171.1633635594373; Thu, 07 Oct 2021 12:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633635594; cv=none; d=google.com; s=arc-20160816; b=Bg4qnuV8eDxa4Ij7NZ+Pr+tfJh8shGGZ+2wqoPuMX4JjAd6kJ+ezYVAWaRCA+h44bh qFUBLLsNbGklbfmW+e0aPa7Znxg7b59Oxa06lfbubKj3MgUbCdchSChjOzY3unCBo2GB nqq3gXk7ZlYtGEzDY20zfZLwIfmA3y9FDNigu+pBDtqsi5p/l3R6qBSnF9EQVwXPRowu bAMmV7ZroXzwUqq8q9ritVSFe/xaylcwafMed5SWl4CA7Ud3IJXt2YRjOw+ZHoqepPh0 RZRzb+kE4RtoDJjGfr0EsHfndLyCzLwxjiOZd/FPj9jR/zycvjlMFy2/BqjefFHxxyYX LAaw== 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=Sp4De8iMtZ/6e2Np59FI+yTdsoee6zx033jfHJqL1Pc=; b=Ru4b5MWDlWBz1HdvC2e+k1R8xl6do9xgska9NCGMaYHYSmqzfdNywxhshVgn1wBmVy 4KY7KjE6RHcKVNwWKvyioAhr+el1Cbl/5ObGVjj9DW+/m4iQkUjJ8AU9BeKNRAmb/kXm eiCm50jzY+7FCSN9KhlBNeKPGV0gkqvwqDJHAebzmWQzvIoa7Wkh9lUnnDbpY64lCyBb cjWVBo2dlYJGSL6KnfABU7KPqFUfzwM9ZR8fnZwfhXb+hil8sHJb2uU+MLMZrOTO1fgG QZs4syX9uK1tHN3URYN0h2yExC2nHYbzStr6zitnAaXcK09Le/vrrrJg3r7GG22SjgP4 CcNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=osSImv0n; 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=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si364576pgj.102.2021.10.07.12.39.38; Thu, 07 Oct 2021 12:39:54 -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=@bewilderbeest.net header.s=thorn header.b=osSImv0n; 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=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241784AbhJGPnN (ORCPT + 99 others); Thu, 7 Oct 2021 11:43:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234337AbhJGPnN (ORCPT ); Thu, 7 Oct 2021 11:43:13 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58644C061570; Thu, 7 Oct 2021 08:41:19 -0700 (PDT) Received: from hatter.bewilderbeest.net (71-212-29-146.tukw.qwest.net [71.212.29.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 5595F3F9; Thu, 7 Oct 2021 08:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1633621278; bh=Sp4De8iMtZ/6e2Np59FI+yTdsoee6zx033jfHJqL1Pc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=osSImv0naSv90iNaTrO7E06s7W++x6zvCTTPMROOgiTfywg5ODLiD6boZlkAh0jBO 18YZTarxBxjDUQESB9+wTQfy6L5oZsNKFCJbzgM+oiUnN4rG+5myF5vXMEijHzTa3t 9QLrBQncRbV0hoNa2Cqc/4rjtV5K6xRl0Uz4ksQU= Date: Thu, 7 Oct 2021 08:41:13 -0700 From: Zev Weiss To: Greg Kroah-Hartman 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; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 07, 2021 at 03:31:39AM PDT, Greg Kroah-Hartman wrote: >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. > I had been under the impression that the overlay patches had very dim prospects of ever being accepted and that this might be a more tractable alternative, but apparently was mistaken -- I'll look into what the outstanding issues were with that and perhaps take a stab at addressing them. Zev