Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3206501iob; Fri, 6 May 2022 22:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGMQi/1d+4m9NtCqJHMB5bY3EvluzECivQ+biixEQHboVMwKJ5XmX0O8HnpvoGeTsqtBDA X-Received: by 2002:a05:6830:60e:b0:606:4bc0:f433 with SMTP id w14-20020a056830060e00b006064bc0f433mr2286938oti.13.1651901518773; Fri, 06 May 2022 22:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651901518; cv=none; d=google.com; s=arc-20160816; b=qP1vQDnwscSw9JfJKds0nPEJc2scz+DBm/vYOLnPh7XKcsv4dXZPLcKANRzkPkTPed X0Ch1GLn7eMCKhNtcNIY4hKI/jdQO/I3gW5RvwYA+1V5G4L63cXpyV3CQpqYA86I2v37 3O9Q02qgMU8I8+lbL52eVSfBR1ryim3CxwVytdmlxDNi0u27DR5td1WIJ0DbbcoNsl3c 8kjht5Rgj8qVR06lo+p6gVKHLN5oqNZ37C5N4DKR0kZvPmNTzLYZuRKRmEXcFRKg7l+c PV1F5218FKmd6zFnYNb51UUdNtbHSZxg+iHYajjaZG6P0hCMJVvaPtdQ0o3IzQmQHRfF JTLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EvNPzmObJdLQoZe7mkFbV9lZXE5XGs6QumW7oyIXLLg=; b=OhqFmG9ixkJmCFVaAGRSQgtsT+SI34dEB6sTRc13YN6qibvI+FD1xyP09DjVjZBjPY KBHuQlNntK3YCPU1mWpda6b8EWtTAEQTfLKgHcODaXo7/a5r96bc2sUcl2Xe5t1aZZLY 8kicCCOM+qIAV2L88HU8qrKBw048opWEsjdPuZ++/wbQbsmr4wPsOxUHK2O5LHMiEywf iTp1omd4C3lyezE0vA9MRFGiLrPfns3x0ZOWypvURU5Ynhb+249TrPz/3i9qTWfbl7bM u/nNBw6t49CubvGB2RDx34cMkqj7hMnmUJHrht//4h5mCHdv9eyjR65NqX1AQw3pWUaf 1+lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="HjL+/0qW"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a9d6c8c000000b005cb2fc13819si4206106otr.149.2022.05.06.22.31.44; Fri, 06 May 2022 22:31:58 -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=@gmail.com header.s=20210112 header.b="HjL+/0qW"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345318AbiEEHkQ (ORCPT + 99 others); Thu, 5 May 2022 03:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235142AbiEEHkO (ORCPT ); Thu, 5 May 2022 03:40:14 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2DD54838B; Thu, 5 May 2022 00:36:35 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id p10so6055080lfa.12; Thu, 05 May 2022 00:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EvNPzmObJdLQoZe7mkFbV9lZXE5XGs6QumW7oyIXLLg=; b=HjL+/0qWmEWMgyiEe4e0unetPVu7pERTINMfTVtGtp3kO1zXtYJRAuyHyPv64jg1bh YhLUSfmqysBZuPqmB6XCgmDb2SEY5ocC4kCAPKnGm51CwF0BiD38pNcOyF4A1UoZBD7m amtR0IXtpKofD2GGI6cIygG6YvWki3kN90f+MFz/AkjrhMcFhggWvs700Lr13W33NalE et2ptnCYotWOX5aLb2Chy4K6L3v76wD2TihnEObTIIsQtnO4rCv/q9TI21gHBTNUmlHI 7vgqOmq+Yl4hW020s6SrGYQZ+Az/+DposHcglABsHqAVxtMy21eDhHFXokAo/W2FLMUU BCUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EvNPzmObJdLQoZe7mkFbV9lZXE5XGs6QumW7oyIXLLg=; b=glmVIxJ1aPeGIErmNqCLZHIL4jD8CzyVyL7uoNO2wSgap4xs+KFWPGDvrcZ2XQ86oz udKcqyIAsEmABMoy2Fft306t1mK9rt4KYu9wabvkVxmJJR/MgPRQ+1BuozF14AI9IW7P s+yLV4jc8KRM1xt8Jsa/eISYqWdcx1DPDwOthfUOeRmYjYqTsw4QnslpunAcmv+GAyqG c4jPjrkGV6ACYr1fkl5P+HePOy/NEIWjDybKCZt6nK6l4FaR6D5ieWWu3fTCzIfVU9vN 0cAQarF5i3mKVKiXoLc/fMpHU0gVknwLyfD93b5OKpcCeBelwHKqvuJDj3wgbwjeM/08 /62g== X-Gm-Message-State: AOAM530pogvbhQHz5AGtY/+Kb+MdH7KI8skTpER+N2V1ROFv3xEIikIz eaTm0kK9Bd103fiJ6svzgJ16ZzVdYfw9hVKaBY0= X-Received: by 2002:ac2:42d0:0:b0:471:fc7b:e53a with SMTP id n16-20020ac242d0000000b00471fc7be53amr16112040lfl.185.1651736194069; Thu, 05 May 2022 00:36:34 -0700 (PDT) MIME-Version: 1.0 References: <20220503094728.926-1-ctcchien@nuvoton.com> <20220503094728.926-4-ctcchien@nuvoton.com> In-Reply-To: From: Medad Young Date: Thu, 5 May 2022 15:36:22 +0800 Message-ID: Subject: Re: [PATCH v8 3/3] EDAC: nuvoton: Add NPCM memory controller driver To: Paul Menzel Cc: rric@kernel.org, James Morse , tony.luck@intel.com, Mauro Carvalho Chehab , Borislav Petkov , Rob Herring , Benjamin Fair , Nancy Yuen , Patrick Venture , KWLIU@nuvoton.com, YSCHU@nuvoton.com, JJLIU0@nuvoton.com, KFTING , Avi Fishman , Tomer Maimon , Tali Perry , ctcchien@nuvoton.com, devicetree , OpenBMC Maillist , Linux Kernel Mailing List , linux-edac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Dear Paul, Paul Menzel =E6=96=BC 2022=E5=B9=B45=E6=9C=883=E6= =97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=885:58=E5=AF=AB=E9=81=93=EF=BC=9A > > Dear Medad, > > > Thank you for v8. > > Am 03.05.22 um 11:47 schrieb Medad CChien: > > Add memory controller support for Nuvoton NPCM SoC. > > > > Signed-off-by: Medad CChien > > Reviewed-by: Borislav Petkov > > Reviewed-by: Paul Menzel > > Reported-by: kernel test robot > > This line is confusing. OK, I will add more description. > > > error: > > macro "edac_printk" requires 4 arguments, but only 2 given > > > > warnings: > > performing pointer arithmetic on a null pointer has undefined behav= ior [-Wnull-pointer-arithmetic] > > logical not is only applied to the left hand side of this bitwise o= perator [-Wlogical-not-parentheses] > > mixing declarations and code is a C99 extension [-Wdeclaration-afte= r-statement] > > > > Note: > > you can force an ecc event by writing a string to edac sysfs node > > and remember to define CONFIG_EDAC_DEBUG to enable this feature > > example: force a correctable event on checkcode bit 0 > > echo "CE checkcode 0" > /sys/devices/system/edac/mc/mc0/forced_ecc_= error > > Shouldn=E2=80=99t this go above all the tags? Yes, I should move this note above all the tags > > > --- > > drivers/edac/Kconfig | 9 + > > drivers/edac/Makefile | 1 + > > drivers/edac/npcm_edac.c | 680 ++++++++++++++++++++++++++++++++++++++= + > > 3 files changed, 690 insertions(+) > > create mode 100644 drivers/edac/npcm_edac.c > > > > diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig > > index 58ab63642e72..64149b524f98 100644 > > --- a/drivers/edac/Kconfig > > +++ b/drivers/edac/Kconfig > > @@ -539,4 +539,13 @@ config EDAC_DMC520 > > Support for error detection and correction on the > > SoCs with ARM DMC-520 DRAM controller. > > > > +config EDAC_NPCM > > + tristate "Nuvoton NPCM DDR Memory Controller" > > + depends on (ARCH_NPCM || COMPILE_TEST) > > + help > > + Support for error detection and correction on the Nuvoton NPCM = DDR > > + memory controller. > > Please add a blank line below. > > > + First, ECC must be configured in the BootBlock header. Then, th= is driver > > + will expose error counters via the EDAC kernel framework. > > + > > endif # EDAC > > [=E2=80=A6] > > +module_platform_driver(npcm_edac_mc_driver); > > + > > +MODULE_AUTHOR("Medad CChien"); > > Please add a space before the <. OK > > > +MODULE_DESCRIPTION("Nuvoton NPCM EDAC Driver"); > > +MODULE_LICENSE("GPL v2"); > > > Kind regards, > > Paul B.R. Medad