Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp682380rwb; Thu, 19 Jan 2023 00:59:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsDj+BkM/l0pXT80tpABTuJQFjoW0VIDH4hbibygnlv2S5L9OKT6JXsVymGA1n+Tpwc/3kc X-Received: by 2002:a05:6402:1764:b0:49b:7416:e3fc with SMTP id da4-20020a056402176400b0049b7416e3fcmr10046237edb.36.1674118756403; Thu, 19 Jan 2023 00:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674118756; cv=none; d=google.com; s=arc-20160816; b=OJIBa6gw33RCqudPAsUVea0PuWwh1/VTquzz+LFJ5qTaWnRiXcRdRSC6TZtiWjrttE qOay1d7PfKbNf1IGI0S1LX64yyKdRa92e8ft68TkhlaO9lJwqQeQRNmqRjet69+UiMfG vT2hJvguAGMW7QcID7M5yFmOcPZUIjHN4fMYaC0wrOxtUkhacEnJDNZfxYD6Eqy7Qigu h+jUKf1G6oudK+dTZnQ2HvxhIJfbjgxgVxVbSRng0eVaXjIqz/KPzNCWsvRL1NlMVYGS f/xh2mr/ur3huRcGnnjObbvdZEgQdUeWoxDnXkire874uHqkSS1lD4Op7RRzLJtL9Gv4 NFTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=zM/k9tWl4AZrWACJdmXZKTCMgs2DStBICdw4oFEh4H4=; b=vMLD0U7O2noUe1+2lwXAYD2cAapHvS6kQGqTvFCWfKPyFjD59eX/1WI9kL357KDTpD 9dUr2gNh69QM7h7xEc/k/pkLKW0DdHVxwkJUmv2/kCg5OLGI72MSRDi6FNp1Lxk6TtDi JHlRY3eVe53BpByAzHkeOZ3BvZxMJ+OsF6H7PQHuo0Ew0wmc1COKbjZXbYjekSFVHgap 1ATnX3hJ+zd6Ye7owApG7UCzjRPITCPxLudtT8dkZ+s+ASIMyv2ioKydM6y8rz81/7of DekaBo5nSxBLSMow+zY6EvYDjmt421VSB0V+c1okki9/uslIoaQTuxM8ErKHFid/fO4a Ttag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=nug90yAN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=LAhVEuFa; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a056402268800b0049e34ecef4asi10163132edd.5.2023.01.19.00.59.05; Thu, 19 Jan 2023 00:59:16 -0800 (PST) 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=@arndb.de header.s=fm2 header.b=nug90yAN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=LAhVEuFa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjASH4w (ORCPT + 43 others); Thu, 19 Jan 2023 02:56:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjASH4u (ORCPT ); Thu, 19 Jan 2023 02:56:50 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A11910F; Wed, 18 Jan 2023 23:56:48 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 600285C012B; Thu, 19 Jan 2023 02:56:45 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 19 Jan 2023 02:56:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1674115005; x=1674201405; bh=zM/k9tWl4A ZrWACJdmXZKTCMgs2DStBICdw4oFEh4H4=; b=nug90yANL1BU+oerGfsfC3JWCp px5nq10ZWCYRxRqjuR7cr0E1dZfNERA1YS4xgs24Uu8QSy1UqWyk48hgQ5/BJqtH svftZg4LRcVVZpRwYwObtIs5ZbUlRJGfon7agIi0xBDsQO7/0jqSFD/3dgBYDf/p qPQ99mVRoDklIyGf271Vhf5Lusz/Jhm5M9o3p2g9jCHMn4LarI5wwlv6qRLmhRjX sG440ytAjY61X6m1loZwPEK0rFlks+cH6liuttQj9EdxPT3Fv0Z4mST8ZDXOJdsm 4DiNB1r2tnHce6cBNQ+2s9S7Et6G/gBy95kyQXpI29wy9bxo6TVuuzbicPbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1674115005; x=1674201405; bh=zM/k9tWl4AZrWACJdmXZKTCMgs2D StBICdw4oFEh4H4=; b=LAhVEuFatwN4IqZ62mEz3Hnr2TNcpjs+OpJaS/SSH/vc 2meRhx/01xhC72sMQZLpp2u4IwcGe90j7Qr24dL4X2JBmw6wzNQ23KZG8JKiPWKK 8byfhu3YQE8qkOpd5PbSo5df5E/wAb5q8BbGzTOOm1AfcU7Ys7WMN/xDtjRcRYFY Z+wvvfTnQyMxjD3GnuU6ll2APFcUeiX1BiJdazHEblINDqjq1M0n6O4GI709zCRc bMqZkt2mTOK+SiLYy6Bne98gZ5UGR7pOf08Er6/gcSteneHET57cY+ZwjuhbY6uX FMn5qT3tCJ8cgKgOtM8J/C8LLS3IT1CL2JeQuztDGw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtledguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8233AB60086; Thu, 19 Jan 2023 02:56:44 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-85-gd6d859e0cf-fm-20230116.001-gd6d859e0 Mime-Version: 1.0 Message-Id: <66ef9643-b47e-428d-892d-7c1cbd358a5d@app.fastmail.com> In-Reply-To: References: <20230110042533.12894-1-clayc@hpe.com> <20230110042533.12894-3-clayc@hpe.com> <110af65f-9c18-524d-a073-ef7be60d1f5a@linaro.org> <48cd3e28-f1db-487d-8971-473dc8c12c09@app.fastmail.com> <55f09599-b553-4429-aa79-ca99ccf95cda@app.fastmail.com> Date: Thu, 19 Jan 2023 08:56:25 +0100 From: "Arnd Bergmann" To: "Clay Chang" Cc: "Krzysztof Kozlowski" , linux-kernel@vger.kernel.org, soc@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, "Verdun, Jean-Marie" , "Hawkins, Nick" , "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Russell King" , "Olof Johansson" , "Joel Stanley" , "Andrew Jeffery" , linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, "Tomer Maimon" Subject: Re: [PATCH 2/5] dt-bindings: soc: hpe: hpe,gxp-srom.yaml Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Thu, Jan 19, 2023, at 08:39, Clay Chang wrote: > On Mon, Jan 16, 2023 at 04:18:59PM +0100, Arnd Bergmann wrote: > > Sorry for not saying it clearly. I meant to put those HPE BMC related > drivers that are "not specific" to a particular subsystem in > drivers/soc/hpe. For those fit into some existing subsystems go to their > designated places. Ok, that makes sense. I'm just trying to reduce the number of drivers that fit into this category. >> >> Again, it's hard for me to tell why this even needs to be runtime >> >> configurable, please try to describe what type of application >> >> would access the sysfs interface here, and why this can't just >> >> be set to a fixed value by bootloader or kernel without user >> >> interaction. >> > >> > The register is used for communication and synchronization between the >> > BMC and the host. During runtime, user-space daemons configures the >> > value of the register for interactions. >> >> That does not sound very specific. What is the subsystem on the >> host that this communicates with? Can you put the driver into the >> same subsystem? > > This is a control register in the BMC chip that partially controls host > boot behaviors. When writing to the register, privileged mode is > required. That's why we rely on a kernel driver for writing to the > control register. And, there is no corresponding subsystem in the host > OS. For this case, is it acceptable to put this driver under > drivers/soc/hpe? I see. So this sounds like it might be generic BMC feature, which would be nice to handle consistently for all BMC families. We had some discussions about other BMC features in the past, but don't remember what the overall consensus was, so I'm adding the openbmc list and as well as aspeed and npcm maintainers to Cc. The part I'm still missing is what type of userspace makes this decision on the BMC side, and whether that might already have a generalized interface. If there is, maybe part of that interface can be abstracted in the kernel. Arnd