Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1269420rdb; Fri, 20 Oct 2023 13:25:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHH/B+Wib0gJUTCCs/ufSzmxA9cK+nvnGgtL+w5D4u4aw8BjARHG5Z80tuZP4KDIvYn6uuh X-Received: by 2002:a17:90b:3013:b0:27c:fd8c:7d28 with SMTP id hg19-20020a17090b301300b0027cfd8c7d28mr2854436pjb.39.1697833540489; Fri, 20 Oct 2023 13:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697833540; cv=none; d=google.com; s=arc-20160816; b=NRzAqOI/80eJ53rou8zNe3UNU8roXti1LWfEqAo4MqXFNP/UqAPixOdut6dDPxvOCH 9guEAXryU21N3hEByiMlDv3UGZjVxTtjbvcVhmU6Qs6S84ld5wHRAuDHJFR/KcOrBGJ3 VNcXybe0hXdND8w5aOiMMj+Vk91V91hpJ1H/F9CfK5+pFsHbSsUK+YRc8t4V9EjPfuSI J/kXLvyzUsdqjq7SJdfWdLK0v6ceIt4cSco1Mei7+T5k38Z+LHTps3EusfkoK733ejEF M1OcNh7u7k40VgPNQesG1OQ9Ukb4twGo6aNdcEWbG4j+Qv9LNKeSG6QHA6r6K/dZV8d1 fktQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sfiWF1djQwW183R/n1Ql11Gvhq6s/Znqmh+4YVfuGWU=; fh=MortZ91P2nXqFN8b5xgAXWUf6sbSi+1tBQGDCvDMez4=; b=07tqghw0NmE+NSBt6SW9P5c0gl4CqorzQ/o94/6+lMMPzvM8tQg1RlgWEpPRi5Tq2a tNPOVpAyKq1ELg5WBQr+g6sMDbyBe68wMoR5Qf/T1R/EXHhmyarykqL5PJ5KLCeqb56W FOxjbKkCBL6numkY3qkDp2ipbqdlDh4bTbE9g1DedQgM+XcebYUZG/7RrRl8QB+iOUJN JM8vfVZHgcsjLkB8mw1RFBqHw+XGxSv7JeMD8hhYNGlPW8/i6I8FqrQVpctOfrXZG43p AGnKx0kAnjCFqo1e4BqJSDy4IzRH3Du753NFrw3ZfYIK5UfXaN8YuEjBoXQvd7ohSCaR 1meA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lmMEKHcO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id nv16-20020a17090b1b5000b002741e78e66asi5287942pjb.153.2023.10.20.13.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lmMEKHcO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E5A7582BDD45; Fri, 20 Oct 2023 13:25:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjJTUZ0 (ORCPT + 99 others); Fri, 20 Oct 2023 16:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbjJTUZZ (ORCPT ); Fri, 20 Oct 2023 16:25:25 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8C4D66 for ; Fri, 20 Oct 2023 13:25:21 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id B6A9CE0003; Fri, 20 Oct 2023 20:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697833520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sfiWF1djQwW183R/n1Ql11Gvhq6s/Znqmh+4YVfuGWU=; b=lmMEKHcO4Kfebn4Ds5bXoJ7JSSdHmrZVL0PjwehYTgvNmjc0wbpbssC5t6ldsPBp7LuHKt hwu2U9DK6qnP1764Y3xC+dEUESkCTPTjHEWANuEofysAwrEZWB9Ztm3hzbnSaoWSisDl85 Knb7vG4qL9rZ+gqij5IqasMyIYBnheXqXN1TAEbsOLZlxm35tNxXmBuj4Caus2EVjMrHrz QL78DZXcXfbAmF5VHe3diLW6dxyHQ8oyTdJZVD5+VQCwlkYvjHXi2GOEHieXEl7CSsM0nd 5P5OUbDVxXNeEIupFx9uPcFeTokOY+ABWFENSlsxCr6QG+osKNzGNDbSMIp1NA== Date: Fri, 20 Oct 2023 22:25:19 +0200 From: Alexandre Belloni To: "Zbigniew, Lukwinski" Cc: Miquel Raynal , Frank Li , conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/6] i3c: master: add enable(disable) hot join in sys entry Message-ID: <20231020202519b2449707@mail.local> References: <20231018205929.3435110-1-Frank.Li@nxp.com> <20231018205929.3435110-2-Frank.Li@nxp.com> <57efe6de-cf65-32ed-fd1e-a388e1676c70@linux.intel.com> <20231020154528.2f5f68f5@xps-13> <20231020163348.1752167d@xps-13> <8a7ac52e-f102-6f5e-35ab-217e6ecc6ba5@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8a7ac52e-f102-6f5e-35ab-217e6ecc6ba5@linux.intel.com> X-GND-Sasl: alexandre.belloni@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 20 Oct 2023 13:25:38 -0700 (PDT) On 20/10/2023 17:12:53+0200, Zbigniew, Lukwinski wrote: > On 10/20/2023 4:33 PM, Miquel Raynal wrote: > > Hi Frank, > > > > Frank.li@nxp.com wrote on Fri, 20 Oct 2023 10:20:57 -0400: > > > > > On Fri, Oct 20, 2023 at 03:45:28PM +0200, Miquel Raynal wrote: > > > > Hi Lukwinski, > > > > > > > > zbigniew.lukwinski@linux.intel.com wrote on Fri, 20 Oct 2023 10:55:27 > > > > +0200: > > > > > On 10/18/2023 10:59 PM, Frank Li wrote: > > > > > > Add hotjoin entry in sys file system allow user enable/disable hotjoin > > > > > > feature. > > > > > > > > > > > > Add (*enable(disable)_hotjoin)() to i3c_master_controller_ops. > > > > > > Add api i3c_master_enable(disable)_hotjoin(); > > > > > What is the use case for having HJ enable knob in sysfs available for user space other than for debug stuff? In other words, does user space really need to enable/disable HJ in runtime for other reason but debug? If it is only for debug maybe it? could be move to debugFS? > > > > I don't think hotjoin should be considered as a debug feature. The > > > > problem here is the power consumption which is higher if you enable > > > > this feature (you need to keep everything clocked and ready to handle > > > > an IBI) whereas if your design is "fixed" (more like an I2C bus) you > > > > may save power by disabling this feature. > > > > > > > > A module parameter does not fit here because it's a per-bus > > > > configuration. > > > I agree. sys entry is more flexiable. and let controller choose better > > > power saving policy for difference user case. > > Maybe it's not the first time this case is faced, would you mind > > including power management maintainers in this discussion? Perhaps they > > might have pointers or even have the solution already. > > I did not mind HJ as debug feature. But enabling / disabling the HJ sounds > to me like debug option. > > So the flow you are considering here is like this:? > > 1. system boot with HJ enabled, so HJ works during initial bus > discovery > 2. some entity in user space decides to disable HJ because power > consumption? > 3. some entity in use space decide some time later to re-enable HJ > because some reason? > > I am just wondering whether there is real use case when you starts with HJ > enabled and than disable it > > in runtime or start with HJ disabled and enable it in runtime. If you are > taking care about power saving > > ?let's keep HJ disabled all the time. Default state for HJ could be > controlled by DT entry. > This would be HW configuration and not HW description. > > > Thanks, > > Miqu?l -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com