Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1761974pxp; Mon, 7 Mar 2022 01:41:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+tiLnFXjbCvCDS2ottKg0Xuxf86pi24LggvuWodBzJwLE8V891lX1kM/eXQJSDr7uqJ7u X-Received: by 2002:a17:906:aed4:b0:6da:aa56:c923 with SMTP id me20-20020a170906aed400b006daaa56c923mr8131822ejb.148.1646646092944; Mon, 07 Mar 2022 01:41:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646646092; cv=pass; d=google.com; s=arc-20160816; b=SPo/uJPYuMdePOR4d7nmIrK1PZ24fFH9SgT4GZoHxrG9mqkLtkUnFK0Arp/cs7DQ7o FkiQfAKD3AFr3ZvO4M/GrQ6VCcyS/zwGip6ce3dXbta5bdbG5/29ITd+2pxuhsDOvdv6 ftGZZoPCE0PqbHnLwcKa1ZMTqo4lsgJzSudMUGFUideEcCaQMko6TGWFV/iY3VN113cz btB86yIBMGDkoeszoy//mARl6ZpFKDecNCuLLngAKT+VF7ZXkLUC4G/+YsSI22/pF+TZ lgAC26V5bhbj5h3RJT+BNNjygUWBCZKP8cYFHqtz4rHRImb+acrBlVC8IH+fDodF6y0z kpog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:content-language:references:cc:to:subject:from :user-agent:date:message-id:dkim-signature; bh=Ay36domTlTnIwET+Vh1YQcMpsJyz+dP1yZC06oysOrQ=; b=twY/q4yZF3bTDZivcmTs5YNNQjZMOpAnwp1O+TMDhBFe1K9CFXWEdOmOGt2zMnsTEZ XD9XTAQM84Fg+Ye+jtzOvF1HO2Yyph+/rDJl08hEAqQPo2fEtwy9dj5p9EklRfoMGZ3N 0X7EqJFc5pq28E240LaZOKjHz9ZcCmcRBoWBI2I+zXROAqkWYY0T6pg8BC2427FlAkER CaRSc+0aPZbVWHPWngQWCcAiCnpS3PULKjAi3wlZYmCos7ITBObth9AtdVRktJXhIM/6 4DkC+RNeJ+H4KS69eYxvoAQGYU2hHouDtoGKr+mzt4DfzFkLSlPQ5JxOuMTAIZVigbFC 4mTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=Dscsku1G; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a1709063fc100b006b27e2877fesi7540682ejj.885.2022.03.07.01.41.09; Mon, 07 Mar 2022 01:41:32 -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=@os.amperecomputing.com header.s=selector2 header.b=Dscsku1G; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233815AbiCGIdV (ORCPT + 99 others); Mon, 7 Mar 2022 03:33:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236195AbiCGIdT (ORCPT ); Mon, 7 Mar 2022 03:33:19 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2137.outbound.protection.outlook.com [40.107.223.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83F717E10; Mon, 7 Mar 2022 00:32:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KyH5fLBlnQ8Qd76bGqZGKOudE5Ejb5ivIqdmYWMfaFizRrNCfHCitYjMjrWOnq44N/E3B86/Yg7TSF4Ckm26XTea9z75agMBdO1mevBbljiFiDqnxZ34GqWEqaFaH/FXJ9b6to3QbKcMesy1pjkFVboCh0upjPfYrst6pWj0OjYit8Jyeos4IEr1grsu88C+ByFDCgGnJ8xCZnyjsNiKsxfslYs+w7QdlgWQfHDwvI1rRYl1N7efBpo1OWTqmU0KN7r8f+cSQ2hG366Wtt9Cr7BnnC6v/nQmqsHGix1pJ2yLp8rswMULQcnCihfIIDk79wE+iZbZ0U1VrgUsWTcZ+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ay36domTlTnIwET+Vh1YQcMpsJyz+dP1yZC06oysOrQ=; b=lW0blIFinDMCtFSh+4OJWoUUhQX9ye0WjJD1fNkOkEYTzoj15fR4N0OOQnfDhYWdowr0NIqIFtfj/NOaQ02CGuHs+l7H1JbDdq9Up13v8OZ6bRKM7MpnyORduZJiyjmfTFA1akE8wrZFZtjYs1qEX08qCAcVFeAVh3WDpndglncCV7TOQpAh4Oy/PowYYtFRE6GLeWxRBiwrwMeBI2NnkG1tFKEZsLqKFgwrx9qbhC+j2T/2TWS2OiV5kX3JfOW8CDTWwqMbsrJSO+IQxNspkZfT8iROeH17+K4yoBb75JVVwImx3To8ESqCaoOwRFtv9xVm+j1FLDccTU2OcBiG7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ay36domTlTnIwET+Vh1YQcMpsJyz+dP1yZC06oysOrQ=; b=Dscsku1Gl+1ofBaluCe0IQM1et7K09pTDB5VY6VrEYpfYymACx4NmuBBu6M1ivOmzRTNfClpOVmLqqwicRioRfM1bS8d88fdf6ebWxQqsW7XY6/j+DjrJzOHG0tExnRcDLrJAQttkumf9iBHF6xVGjKc/P5PPSIKWV44vgok8AE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) by MW2PR0102MB3498.prod.exchangelabs.com (2603:10b6:302:3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.20; Mon, 7 Mar 2022 08:32:22 +0000 Received: from SJ0PR01MB7282.prod.exchangelabs.com ([fe80::cd24:39ed:7042:46d6]) by SJ0PR01MB7282.prod.exchangelabs.com ([fe80::cd24:39ed:7042:46d6%6]) with mapi id 15.20.5038.026; Mon, 7 Mar 2022 08:32:22 +0000 Message-ID: Date: Mon, 7 Mar 2022 15:32:10 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: Quan Nguyen Subject: Re: [PATCH v6 6/9] misc: smpro-errmon: Add Ampere's SMpro error monitor driver To: Greg Kroah-Hartman Cc: Joel Stanley , Andrew Jeffery , Jean Delvare , Guenter Roeck , Rob Herring , Lee Jones , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Mark Brown , "Rafael J . Wysocki" , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Gustavo Pimentel , Open Source Submission , Phong Vo , "Thang Q . Nguyen" References: <20211224041352.29405-1-quan@os.amperecomputing.com> <20211224041352.29405-7-quan@os.amperecomputing.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: HK0PR03CA0097.apcprd03.prod.outlook.com (2603:1096:203:b0::13) To SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5186937a-acea-4657-e8f3-08da0014ffff X-MS-TrafficTypeDiagnostic: MW2PR0102MB3498:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DtHYHAsf8xTr1wxxwY0ra2yDTFFzu+BRn3/ZLZvs5/N4mDWHP9X6bpQEMlWXljVffXxV6OEy7GO+jkbxNg9xvlDh1hBoGlKPP/rIdVduBDrhVZOvMifP0c2do/hZIDRVLGAKcBFnUfbMA33DvLKMn9zMrI7ZtMsAUC3oyX7X88ukKkZYTjYXKJ3RCDsLMaRg9uCYSYKaCp0LP9MSOZPagWYQh7ETRJVOz1F32K/N7ipq9UK9X2S8L2g8Mhqz8YtEm9aSLQX/5ND+aYzr+jTV6UpO5/sA2mGzNO/BIVz8tDNyknMAjrndNYeTLhQCPicWY50ndgQYRCd+p8OFs4Usl+EK7lmi414jps7sOjiZo0Ki//M4+pkxpwevoPCY8g+/bG6ZqwOv1f3i4SrCjN8iD65C1B7HRZyvuE5/Eby2jvzt4Z8r6uzC0vR467YAcc2GizD/Cto88mWe0L+Tw2wlpbK9aJmk06AvgCPdkGYv++PK+UWahpxl4VGZwjRkSweKx9/HEiF3SwQbaoSTEuxZTH1jQ1Vn8Gj1cqH+XFzrNOTWOjXtkulQlibE27+4CGfKvn3bvw6aKjGv58iPeJtYn9UbNGk9CAU5TZb0TEmKAaYcEcJ2S4OF0ZhbNrGu3zUC8+Ht48XN7JVgZkOIuYttvMqluaHQCQV+qrEnCbvaE+ZmRhjoPABOvNtWV0+rOQbzduzD4AgxSlEubB2ppznLKmwSwHH1TU1cDhpCm2GphIM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR01MB7282.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6512007)(5660300002)(52116002)(6916009)(31686004)(6506007)(26005)(38350700002)(8676002)(66476007)(6666004)(86362001)(6486002)(55236004)(53546011)(54906003)(316002)(31696002)(2906002)(186003)(107886003)(66556008)(4326008)(83380400001)(508600001)(8936002)(66946007)(7416002)(38100700002)(2616005)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L0hqZnYzcjRwUjdkcFNxZElrdnNOM3pTeUxxTHJDREF4S1VUSU15eVVYV00x?= =?utf-8?B?UTJyM2htTFo5YUhWRGZiQ0JqUjhLL1N0QWh1czRzbHN1UG1wdTJhWS85Mm5q?= =?utf-8?B?VEdwUm5ZZDBXRHN0QW90S2dHRTJVYnZiSUI4V3pSdVllK0V2RzJSNWZ2bkwy?= =?utf-8?B?bFBWbTRyVU9UWUhXVTdTM2laMmI4OHp0OC9ZamZYQWs1SStrdy9CLzA4SGhk?= =?utf-8?B?c2hPcXFPcnd4OHl4d3RKV09QV1VPaForTHRYTkxSQXdSc0xhZElvV1dvK25J?= =?utf-8?B?NW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UtuOGpkVUlIUzUwbENrSVhnMDhFdlFO?= =?utf-8?B?Z0xsNGc4UDFCb2RpcVNUTmt1RUFISisySDV3Zis3Mld6aHRWdmwzWGhvZXVF?= =?utf-8?B?ZWl6WlJjZDVKaVI3R0xab1VxNytoYmk2TGMwcHVJQTNrVlR6bUMrSmwzZ2hl?= =?utf-8?B?b0RhRldaaGlCbUF6bkxQWDZZTTFRPT0=?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5186937a-acea-4657-e8f3-08da0014ffff X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB7282.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 08:32:22.3934 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: juju/3QgeCQCl9iqMAd6TRdaT7kSPgHIaMdnRBjM+G6S0JMkNSuiFi8TcTYR4xepyRdpd809xvqtzHZzpA/1QsMbxcZZqeivSpugkEJKclI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR0102MB3498 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 On 24/12/2021 15:32, Greg Kroah-Hartman wrote: > On Fri, Dec 24, 2021 at 11:13:49AM +0700, Quan Nguyen wrote: >> This commit adds Ampere's SMpro error monitor driver for monitoring >> and reporting RAS-related errors as reported by SMpro co-processor >> found on Ampere's Altra processor family. >> >> Signed-off-by: Quan Nguyen >> --- >> Change in v6: >> + First introduced in v6 [Quan] >> >> drivers/mfd/smpro-mfd.c | 1 + >> drivers/misc/Kconfig | 7 + >> drivers/misc/Makefile | 1 + >> drivers/misc/smpro-errmon.c | 571 ++++++++++++++++++++++++++++++++++++ >> 4 files changed, 580 insertions(+) >> create mode 100644 drivers/misc/smpro-errmon.c > > You need Documentation/ABI/ updates when you add sysfs files. Please do > that for your next version of this patch. > Thanks greg for the review, Will update Documentation/ABI/testing/sysfs-* file in next version. > Also remember that sysfs is only "one value per file", this driver seems > to violate that in huge ways and is not ok. > These sysfs's does not return "multi value per file" but a single record of data, one example is to return the 48-byte ARM RAS Vendor specific error record. Thanks - Quan