Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp120985rwb; Mon, 26 Sep 2022 15:50:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4AKbTW55PGdaUyhLwUzAU/kDs5ie6jDnLhQ9zrNYmBE7Zjhe7Uv1P+9ijjFjiwi6wDBILH X-Received: by 2002:a17:903:228c:b0:179:c530:e6dc with SMTP id b12-20020a170903228c00b00179c530e6dcmr17467837plh.14.1664232608652; Mon, 26 Sep 2022 15:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664232608; cv=none; d=google.com; s=arc-20160816; b=NTpY/zFF4kr1f8QhjZgX8+apOK6qw4oGdbac9MO74k01NzyeD/2AIFvJ+382JBmsFm axwGOJJC7fKHXTu8CJxaf+ILTz+0gJY0aKjanXmipzD5MsuuGyVtxTF18XRUWR0fbOdh cOGaCY7qJo+k+7PzMJeIAe8b1xuC+tTHj7X+RPHMq0VR6XJOuJR/pYy2XqxI9s0jtEom X73IJ30J7bJjamRKKkfzAJNaXShU3LXBZuHQcXgNq46CzP9PYnBRjk1hdq5QAChYEhR2 HTcx0QYmakFoiJD8YGORQbthnuwYjWR5qhYCtB2rI3W674ogykFV2Z28FuEcE8VaB0z8 yMsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=abGQ+SFO+OZC5brFN/svHW6veRyd/BLpiVn5dfBpMBc=; b=0OvX9zb1m92Vp2AGX18ZVmti8OouqhDKq5lZCmIgvwno1xWLi/8rH4Io2op9cyboGP mZJRF0B4ox7WMj5uBjpGTfNN9/MUDFaMu4HkylgTOJTHH1c+q3gZKWm4mTJD45bXlkqV yFVsNObihKbyfvCiVTv3gBpnYMMs4QMiUBB+8/MQz+Ych84vKj0bkKUdajH+s4/y5ZiW EjEKnRGg8huQlTZUvptHMaG6ZmZfCenfDijbvheT70Swe/sAIvdAbzAP9wjLPPJy+8lR BJJj17AfwE15NkonnLGRaF1xozjNoJgAbOM51GtKlQ8Vk9Od8DAFZPzI+wjPARoYeHCU eR+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DHO/eYpw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq3-20020a17090b380300b00202df748eefsi14789248pjb.159.2022.09.26.15.49.56; Mon, 26 Sep 2022 15:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DHO/eYpw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229508AbiIZWaL (ORCPT + 99 others); Mon, 26 Sep 2022 18:30:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiIZWaI (ORCPT ); Mon, 26 Sep 2022 18:30:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD293B4; Mon, 26 Sep 2022 15:30:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CCEBF61474; Mon, 26 Sep 2022 22:30:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38709C433C1; Mon, 26 Sep 2022 22:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664231402; bh=daJUsJdpezSteh4PXZTQzO/Wj8zE/TGbRLm95dLUJTM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DHO/eYpw22NjkkzgLcbAIgXyvcbjYSZJ8Gj3T05jFCFyi0aO7GG8UKoBFxcxuvhqP o95RRqSvAA7W3zfxKvp3vPZhfHADu07j1dDXhUo6VWv433BqZqsqZtHL8Qqvf1J/+Z 5pbO2KtQBgPPNlOAgZuVToOxwUcoOrU0N98hB+6uGkEqr2lCVTHQ7Fce9t4s13holb StpwMxy/maF6OCUGNtfIMUX+wFRWRoECXX3l0xwiQTTa8PfrcLlc2zOMvPVKpVBo4R JHaxrrZucjkoygTeLBERXzdneJho4ubHZKqqNv/X042I3VbRDmvmznMXD/j4RwRRSB UcahDe+qKfMKQ== Received: by mail-vk1-f171.google.com with SMTP id r193so1354072vke.13; Mon, 26 Sep 2022 15:30:02 -0700 (PDT) X-Gm-Message-State: ACrzQf1ZB+TV6xKU9z3ZEDAyi+kFg+yURrL5xVOlbzmG5r6jX7CO41H3 pJsl+vbvTFoMudS/92iF6Vx0m+Qpnc13GvHQVw== X-Received: by 2002:a1f:9fc5:0:b0:3a3:44f1:be23 with SMTP id i188-20020a1f9fc5000000b003a344f1be23mr10054334vke.35.1664231401156; Mon, 26 Sep 2022 15:30:01 -0700 (PDT) MIME-Version: 1.0 References: <973f7127-8165-45f6-071f-04360046b7d7@gmail.com> <20220908003510.GE4320@zorba> <3fcea82c-f5cf-f066-67b9-08669c44a9c6@gmail.com> <20220912170524.GX4320@zorba> <75e803f8-2b25-22c8-0831-e90d0c889da1@gmail.com> <20220913005153.GZ4320@zorba> <00850627-7ada-3a02-158c-30f3b8334d51@gmail.com> <20220916225646.GK4320@zorba> <20220917032610.GM4320@zorba> In-Reply-To: <20220917032610.GM4320@zorba> From: Rob Herring Date: Mon, 26 Sep 2022 17:29:49 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] driver: of: overlay: demote message to warning To: Daniel Walker Cc: Frank Rowand , Pantelis Antoniou , xe-linux-external@cisco.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 16, 2022 at 10:26 PM Daniel Walker wrote: > > On Fri, Sep 16, 2022 at 09:47:19PM -0500, Frank Rowand wrote: > > On 9/16/22 17:56, Daniel Walker wrote: > > > On Fri, Sep 16, 2022 at 05:47:54PM -0500, Frank Rowand wrote: > > >>> > > >>> Maybe you could add a flag or other indicator which would indicate the overlay will never be > > >>> removed. Then your code could rely on this property to inform on if the author > > >>> has consider the removal issues related to overlays. > > >> > > >> No. I guess I wasn't clear enough above, where I said: > > >> > > >> "And I will not accept a > > >> change that suppresses the message if there is no expectation to remove the > > >> overlay." > > >> > > >> There are multiple reasons for this, but the most fundamental is that if a > > >> new overlay is not removable, then any overlay already applied can not be > > >> removed (because overlays must be removed in the reverse order that they > > >> are applied). It would be incredibly bad architecture to allow an overlay > > >> to block another overlay from being removed. > > > > > > So how about an option to turn off removable overlays entirely? As far as I can > > > tell it's not used currently by the tiny number of implementation I've seen. > > > > > > Cisco doesn't need it, and we could have a smaller kernel without it. > > > > > > The issue is that the error log on blast is log level abuse in my opinion. If > > > there's no way to fix it, it should not be an error. > > > > The way to fix it is to not have a construct in the overlay that triggers the > > message. In other words, do not add a property to a pre-existing node. (At > > least I think that is what is the underlying cause, if I recall correctly.) > > > > -Frank > > Here's the check, > > if (!of_node_check_flag(target->np, OF_OVERLAY)) > > If the print shows when the modifications is made to a non-overlay, I'm not > sure how you could construct a device tree where you only modify other overlays. > > It seems like this should print on the vast majority of overlays. There is essentially zero support in the kernel for nodes to change once they are in use (typ. bound to a driver), and I don't see us ever supporting that use case. Unless shown otherwise, I don't think that is a good split between a base DT and overlay either. What I've said multiple times for supporting runtime overlays, is that it needs to be restricted to adding/removing whole nodes/subtrees. Rob