Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1806783imm; Sun, 15 Jul 2018 17:58:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpen0KtJckRQF/RtsH2svHq6H17rOA0Qq/fGTIuzUl5FpyQjNwQz7NMQIcMkPGPzMWKA9Ha8 X-Received: by 2002:a17:902:292a:: with SMTP id g39-v6mr9481324plb.174.1531702702048; Sun, 15 Jul 2018 17:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531702702; cv=none; d=google.com; s=arc-20160816; b=H3KXQMcd38/7jmQhKoyKj/DLJrcGbAFp0SYHU/TLJ0yEVAXaUNXvimoeSz8UFaa3vD v1zQR5ozpnETEo6Snokz/HHIVoS9fuLOFJ7uEdyDo50Xe1OnDJCvzXf8XsBsv9iuzx0B 3ZODffITwmzi3rUvE6R++ze3EI0aRlsgWyznqwAo4fMdh4Uzx7oTaLnoO59eKnf0MPY0 Gzrg75dCy4784jmLroT6+Cpy7L6dI5o6pTX7wUl6jLNxngWR1VGJKZ6DTV8uV+4fIOUE Ov9WzVU/1St/x0Tlk32HBMSbSEfpCQ+uF5BONGMtuL+X76FGKterXzkSI3Y09A3I8dHB hc9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:references:subject:date :content-transfer-encoding:mime-version:cc:to:from:message-id :dkim-signature:dkim-signature:arc-authentication-results; bh=XEAg+bgFTMCgKyEUQISkbEtNSiOjaW1S8UioMM3vWSs=; b=QNSJE1gCcKPnFh9lTivwYp9lBnHwmx72nlWyJMc9/sCR4o/PFeVYY5Q+Qe0R4oGHn/ n8I1IzWJPrg3Mq4cEqHGqGha8EQLRgTNJ29d79cs/q4kfpv5MVFaaGUxyQ1gAUUAq4bN bpov9R8RY3t3oCF6hA02k71HwsmjfPqEMGfeI5W3wByNO54tro9KiaYEWG3fx74qrYWy B0BMMjcY3EaK/erZIWlv2tIAUpjh5p7s50fAB1MmtjCVMbnDL1oKFYLnBNwE/ZnEw3Ue WMNfWRv+qtd7eZeTgQ0bxUL3Z97oeHj1hE9VXyKeTSAp7chgx2Ae9LvgYa/eR8NXRfuE BxVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=L9EsC5KK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=INubpysV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12-v6si2574150pgk.391.2018.07.15.17.58.06; Sun, 15 Jul 2018 17:58:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=L9EsC5KK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=INubpysV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727299AbeGPBWZ (ORCPT + 99 others); Sun, 15 Jul 2018 21:22:25 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34007 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727180AbeGPBWZ (ORCPT ); Sun, 15 Jul 2018 21:22:25 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B5FC320D12; Sun, 15 Jul 2018 20:57:33 -0400 (EDT) Received: from web5 ([10.202.2.215]) by compute4.internal (MEProxy); Sun, 15 Jul 2018 20:57:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=XEAg+bgFTMCgKyEUQISkbEtNSiOja W1S8UioMM3vWSs=; b=L9EsC5KK35t+tvbnt5m0qkrP4TYBJjN320siJHQa1ylZR NxwITUGEENdkS8fkIFIJLk7MlJSa8W3tN3DZ0JG7s/6d4UJ1JRe9cAM2JqrZ5wS/ ZCqur5OsKFUw6M3LPX5CJWZc5wuvniqWijaE4YnZErPlIFD6Rs+HnK58BF8OYHN+ 6JHeght0ZfHUxp4YTyCGp6mxJ77jt4NaDd1DHRprjPSKajQsFuqg6IEc0EI6HoeL 03a1b8nxpTmTwl7MTcbOsz45ejM9QWdHxhArKjeQ9XYr+fyf6zhyvyGzNcpc5SRK dctmZ4DyIMXNzS9LeVRNXGS08AZAFCQ5es4e53uEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=XEAg+b gFTMCgKyEUQISkbEtNSiOjaW1S8UioMM3vWSs=; b=INubpysVMkoFrSWKwpEM8c fg+A+0budXBp/JpMV8HS4TR4Wax+eroTdVGPOUAZIgzxXXwpAaTiF32u0rStz7x0 aNKfR8D6HN6rYqlbYjXoewgJm/hk005JaBfIdWFC0HOUj96q06N5PpDGpUVQp18b 1cFVCWCLc9q8TdGVBjpjcYzjIgpaCpjG7p7HjtcTGHoimP54UNkzz0qEBgb7zdwG p8y41Wd8MUBylGC6C1FrAMD2plHqg1noGM8JAXsOljae14sMJyH8rrPzuiXWI5Pz y4LMcCzbxCtr4EKR0xaHC7avLmKbgVM2lw9r35hRUUjoq+jd1cZ3iB4/gQxLrm8A == X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 08FE49E0F5; Sun, 15 Jul 2018 20:57:31 -0400 (EDT) Message-Id: <1531702650.981120.1441646240.2E63DD09@webmail.messagingengine.com> From: Andrew Jeffery To: Alexander Amelkin , Benjamin Herrenschmidt , Rob Herring Cc: Mark Rutland , devicetree@vger.kernel.org, "Greg Kroah-Hartman" , Eugene.Cho@dell.com, linux-kernel@vger.kernel.org, Joel Stanley , stewart@linux.ibm.com, OpenBMC Maillist , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , avi.fishman@nuvoton.com MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-957169fa Date: Mon, 16 Jul 2018 10:27:30 +0930 Subject: Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields References: <20180711053122.30773-1-andrew@aj.id.au> <20180711053122.30773-2-andrew@aj.id.au> <20180711200450.GB17291@rob-hp-laptop> <1531356830.3551458.1437853280.551CA8C5@webmail.messagingengine.com> <1531463489.747186.1439263128.075AECE1@webmail.messagingengine.com> In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexander, I've rearranged your reply slightly :) On Sat, 14 Jul 2018, at 00:44, Alexander Amelkin wrote: > > So I'm writing this to support your position in this discussion and to > let Rob and other reviewers know that this feature is actually needed. Thanks. So to summarise some other replies so far, YADRO (Alexander) and Dell (Eugene) - platform vendors integrating BMCs - are interested in a solution, and the patches are seen useful for ASPEED and Nuvoton (Avi) BMCs. > > From the discussion it looks to me like Rob is not familiar with > specifics of BMC-managed servers and tries to apply to them the rules > that have proven to be good for workstations and laptops. > Whatever Rob's familiarity with BMCs or other systems, I'm keen to listen to, explore and gain from his experience. I was certainly expecting push back on these patches and in different circumstances I'd probably say no to them as well. The argument for them needs to stand up to scrutiny, and if that scrutiny leads to alternative solutions (that, ideally, are not /dev/mem) then that's fine. Currently I think we need what I've proposed despite it looking like a violation of abstractions, because the hardware itself doesn't have a neat, abstract design. But we could be thinking about it wrong, e.g. maybe what we need instead are no devicetree bindings and simply some in-kernel helpers that allow arbitrary drivers to instantiate the sysfs interface I've proposed for these fields under their control. That removes the need for explicit description in the devicetree, though may lead to the creation of a number of unique drivers (and bindings) that each cover only the functions we're trying to generalise over here. It would be good to have some feedback on the proposed sysfs interface as well - as explored above we could feasibly live without the bindings in their current form but taking away the sysfs interface would nuke the series. Cheers, Andrew