Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6121874rdb; Thu, 14 Dec 2023 08:52:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEflj3V1jt6IfeObPktzBQek0PfgwChOCV/25GgaW+Pm4QsC3EpSFj8tdYkP9hnt7gI/EMn X-Received: by 2002:a17:90a:51a1:b0:286:6cc0:cacb with SMTP id u30-20020a17090a51a100b002866cc0cacbmr7439500pjh.66.1702572723749; Thu, 14 Dec 2023 08:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702572723; cv=none; d=google.com; s=arc-20160816; b=fPRv7I3MOhj0z9Q+fpejp4l0JU0wszE0On7UE4N8xQV/CyvdA71+D+xwe5mJKd0Rt9 FtG3YzZkF7xWD/9AGARzDJ6UBMmkjrF+smaDSvB+SLgmLuncBudPc1sGcAeiMd9mc/li LAc8ZvBr9kMcV4+1XDdNJrNpo98UgP2cEnBS7roGHDjV70tDxuBqLa+4ORGQTPz6/a0T sg/UL/ofKOeMDLpSopG+PL2YDVIy7S1iNrCrXCRXUoOZMSai8ktPzxVEqIevyVsZvzuR tygYao7udVz0GAZfc3UZfSeBODGwgvsfj+b4e+zepGaHhrrxWve/X0R0vu1GJXCOBmCo Itsw== 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=GCp7oH/gOJp7J9eGa5Fv3Vw5adjzdlx0cxRf567SUHs=; fh=DVLFmgY5OmQE/ZmCh8tPzZJ9IKc71fSI8ZsvrOXUS4U=; b=tkABNaBiaq9nxuvJNR8lJi5CSNO5Uc+45HCpbzLhMiZfI9rbAWsxaQBWuibsPQro8z w5y0gkRMI/ImNE0qrgAgdO0CrBRsDyVchDzZcMn/gegt2NsKDzcSEWMkUECdhtcMbvCB QHbLbOUzcPq8ZTTBfzOzVjJ7z57D2BYP80sYopNGb5nkMLRbWXPFs2pdqT8jHw7WHpYd 3NPtrv9URwdFkVwz4bvzHJ/P1ewJjrZDab+4jSZ/jj2I9iNMtPYKAQdHz5GOx2VG81tp 77rG53m5Qd+w/Hu5n8qwacSzvJz9z3BeSU2C0+tyifZCaivo24RQoOc3tdbCs8ylzNwl tDYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gQqUft8O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j12-20020a170903024c00b001cfc46abb07si11845184plh.128.2023.12.14.08.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 08:52:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gQqUft8O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C6ED4807C5C9; Thu, 14 Dec 2023 08:52:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443793AbjLNQvD (ORCPT + 99 others); Thu, 14 Dec 2023 11:51:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444085AbjLNQum (ORCPT ); Thu, 14 Dec 2023 11:50:42 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F16B01A7; Thu, 14 Dec 2023 08:50:33 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-dbcd7d63789so1174686276.3; Thu, 14 Dec 2023 08:50:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702572633; x=1703177433; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GCp7oH/gOJp7J9eGa5Fv3Vw5adjzdlx0cxRf567SUHs=; b=gQqUft8OxkQt7V/pOUO3nNujYVABSB+zXRDRQhgAt7hr82sD5ife0HehJJF9+uBv0H kGueEGeL3Pbv4uuct4dB13L13/Xii27IfoiV1GuZYct+HC+sy965xn/VZJbQsIoPjzTK yiPOdJmWFPbVMIHTgHq/dmJxwOFdi7yeFCkvH6Y1DBrmFglJZatgAqFQAUISG4ZTqZO1 tHhHupsimyhAWoxodaHqa+P6+O+W8a8mhkGjshjZawscLDaDjBLSZNCHjWMn4eC0iACy NwQAvyL9tFn3vxnzbzzfDBpIrYbUc/2ia6cDgjUCTRRC0uu3F52HSoYy02bg0PvOxmOl kngw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702572633; x=1703177433; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GCp7oH/gOJp7J9eGa5Fv3Vw5adjzdlx0cxRf567SUHs=; b=PRku5DYx5eePZ/D/WlqdCUIr8cBEY4pMBlgdgjLhVcd7alET7bciMlIrFyJoThGuP1 5Bts1EXkD0NRsKYebW6fq0dNwjT6/vGKxMg5mWfrxi+6vcoy5r1BcMZJi4HauNlFt5hP 2ZR3bPhNhp72d7pnBP6wXuFNa748OEvhQ041l/gitoQ71kbUb3R8bnOqy2iHEJmtLPkn aygfwmQfNROu8igPnMlmf0RBBtcPMUKBo1ehJ/Ta1HNMkPh2G+twNW3/NWI9kMtzDpk0 ltRzZcMq2diYa4Il7ZmJG2pgh9N66Cl2Ghjwdsq9n5EmhZ1A9vFqVH2HA899r+s5CEpr JoKg== X-Gm-Message-State: AOJu0YzglB9F/bUnaAUOt6iTy1o+oGqPI8geH2Q3NokWxB2HO5pKC3jD CWdpysl24nVs9xznAa9ChVUCNXwXHUaCuWISXTkMj58O X-Received: by 2002:a25:55c2:0:b0:dbc:b6e0:e302 with SMTP id j185-20020a2555c2000000b00dbcb6e0e302mr2171816ybb.83.1702572632960; Thu, 14 Dec 2023 08:50:32 -0800 (PST) MIME-Version: 1.0 References: <20231213190528.3751583-1-tmaimon77@gmail.com> <20231213190528.3751583-4-tmaimon77@gmail.com> <88040035-d971-4012-bb9f-9f2ae91fdc6e@app.fastmail.com> In-Reply-To: <88040035-d971-4012-bb9f-9f2ae91fdc6e@app.fastmail.com> From: Tomer Maimon Date: Thu, 14 Dec 2023 18:50:21 +0200 Message-ID: Subject: Re: [PATCH v3 3/3] soc: nuvoton: add NPCM BPC driver To: Arnd Bergmann Cc: pmenzel@molgen.mpg.de, Rob Herring , krzysztof.kozlowski+dt@linaro.org, Conor Dooley , avifishman70@gmail.com, tali.perry1@gmail.com, Joel Stanley , venture@google.com, yuenn@google.com, benjaminfair@google.com, =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , openbmc@lists.ozlabs.org, "open list:GPIO SUBSYSTEM" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 08:52:01 -0800 (PST) Hi Arnd, Thanks for your suggestion. Appreciate it if Joel, OpenBMC Linux kernel maintainer, could share his thoughts about it. On Thu, 14 Dec 2023 at 17:49, Arnd Bergmann wrote: > > On Thu, Dec 14, 2023, at 14:09, Tomer Maimon wrote: > > On Thu, 14 Dec 2023 at 14:44, Arnd Bergmann wrote: > >> > > >> > +config NPCM_BP > >> > + tristate "NPCM BIOS Post Code support" > >> > + depends on (ARCH_NPCM || COMPILE_TEST) > >> > + help > >> > + Provides NPCM driver to control the BIOS Post Code > >> > + interface which allows the BMC to monitor and save > >> > + the data written by the host to an arbitrary I/O port, > >> > + the BPC is connected to the host thourgh LPC or eSPI bus. > >> > + > >> > >> This one in particular looks like this might be implemented > >> by more than one BMC type, it's a fairly generic functionality. > >> > >> Have you talked to the other maintainers of SoCs used in > >> OpenBMC about coming up with a common interface? > > Yes, Both Nuvoton and Aspeed use the same user-facing code to manage > > the host snooping. > > https://github.com/openbmc/phosphor-host-postd > > Ok, that's good. I found the driver in drivers/soc/aspeed/aspeed-lpc-snoop.c > now and see that the implementation looks very similar. > > I think we should do two things here: > > - split out the common code into a shared module that exports the > symbols to be used by either one > > - find a better place for both drivers outside of drivers/soc. > I would suggest drivers/misc/bmc/ but am open to other suggestions. > > Arnd Best regards, Tomer