Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp255001rwr; Tue, 2 May 2023 20:12:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ECjCENhuAjoh7WGTQqqKRgW8FkQNVuLUImYourbTdxuOw2TxmV5lBLOLe03QdU2Kz4hKj X-Received: by 2002:a17:902:e741:b0:1a5:22f3:220d with SMTP id p1-20020a170902e74100b001a522f3220dmr853356plf.49.1683083549563; Tue, 02 May 2023 20:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683083549; cv=none; d=google.com; s=arc-20160816; b=IAn4wSi7Fnp57DdvisOraTqe2QzAwsEeFILogjPa3Q24wTz7MRQUkOO7KAixBDW1h4 IJldPQITUXU9jOUR6i1qaoWb+cFhwPIdSVIksOyQPfebcnoq+jEDmwSo3SRUErxbJbLK W5DjX5bD78ou3FXN1ZoWLjEFRr8ycb/tiP03Zv0/g2t033sE6tXp49rMGufsvtERB8Iu jc6gV88i+USMrXcTmKHSL2iHcWxnJWXAt0fGA+YqFXRpVNVlxEP8wI+iAuEwjwJaDG7H gLVegIabtsTjMv7koi9nbbM8EBcFAfW3vIuIgs6Te9Z8sB4OAwwRD+GB9AFrVlArT/XN lK+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QFFKyRIxpf6CICzVj56kiitBZnmRJIZfRmx7FbFEHxg=; b=sxYvqpUPg2Os9n5VDKIW4Hjah53SKEgDgg9eOlSwfE8lHd/8C7a6onL+fatqDtZt2A yxPWPtlDc7r9YWk+4+RHV9G/vUXnf0F3+88Mpkjx/aDfnKutd9kHyc5gBG6YMOxyfwU+ nYTTnWqngZv8vSd+/UF007JGLhv5yV6OebGMmTYTC5hAfZqemhJjnny1oeCkbMoS7Qd3 rmKkBJpSf6MEEep6nLQIOC1hhWNbOkXOsP7wZEoFB3TPE/6IIuwgW5etPz72xOa+d0/e isERmq0Ye6o4ZTUAtTBQVaexlp/Q4mf4IP4WnQbgYM5PP80ZZV8y/ACXwQPoyUMyEGNW zF3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DZV63wtM; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x16-20020a170902ec9000b001a1efc91917si32773425plg.634.2023.05.02.20.12.16; Tue, 02 May 2023 20:12:29 -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=@intel.com header.s=Intel header.b=DZV63wtM; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229653AbjECDGx (ORCPT + 99 others); Tue, 2 May 2023 23:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjECDGs (ORCPT ); Tue, 2 May 2023 23:06:48 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3601C2682; Tue, 2 May 2023 20:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683083205; x=1714619205; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7Ighfp5E/Al9/svQfOrOI4+bSPRt3bo1pMOcWF2LXzY=; b=DZV63wtMLR186izXzEPdxw2DxMqMkxGyTAp7bb8ExzsSUMnqF8vDofHI m0X+8NxDcZDyuhJblJKbP4vKPAp/mCQy8QXlWupMF8H/L3AbILocwkdHJ ovxRJNou18q0baKidJNK+JctVRFwuFVL9e4/cxV/Jgp6Ge9ESpzqHEC5u cSt+XxQIh6w6fkUQBcjTGoPUzh0T1r0F5E0MEh/x7bGAbTOu04/sVxU4v B+qUmFaY5kx7hWZjGJoQ1Ho1CTYa5veCPI5xOSx7utIEK4prlGZJ0MxnY ylXVTWeGyHjFaxWXOAzFwpPxPGvEf/ZPuvsNGfpAwF9NDuiT0bT3LicZ9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10698"; a="347370808" X-IronPort-AV: E=Sophos;i="5.99,246,1677571200"; d="scan'208";a="347370808" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2023 20:06:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10698"; a="765983747" X-IronPort-AV: E=Sophos;i="5.99,246,1677571200"; d="scan'208";a="765983747" Received: from unknown (HELO localhost.localdomain) ([10.226.216.116]) by fmsmga004.fm.intel.com with ESMTP; 02 May 2023 20:06:42 -0700 From: niravkumar.l.rabara@intel.com To: Dinh Nguyen , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter , linux-edac@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Niravkumar L Rabara Subject: [PATCH 1/2] firmware: stratix10-svc: Add command to get SEU error info Date: Wed, 3 May 2023 11:06:39 +0800 Message-Id: <20230503030639.3269266-1-niravkumar.l.rabara@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Niravkumar L Rabara Introduce a new command to get Single Event Upset Error information. Signed-off-by: Niravkumar L Rabara --- include/linux/firmware/intel/stratix10-smc.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/linux/firmware/intel/stratix10-smc.h b/include/linux/firmware/intel/stratix10-smc.h index a718f853d457..7eb1799e8d8a 100644 --- a/include/linux/firmware/intel/stratix10-smc.h +++ b/include/linux/firmware/intel/stratix10-smc.h @@ -595,4 +595,24 @@ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FPGA_CONFIG_COMPLETED_WRITE) #define INTEL_SIP_SMC_FCS_GET_PROVISION_DATA \ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FCS_GET_PROVISION_DATA) +/** + * Request INTEL_SIP_SMC_READ_SEU_ERR + * Sync call to get Single Event Upsate Error information + * SEU detects both corrected and uncorrected error + * + * Call register usage: + * a0 INTEL_SIP_SMC_READ_SEU_ERR + * a1-7 not used + * + * Return status: + * a0 INTEL_SIP_SMC_STATUS_OK, INTEL_SIP_SMC_STATUS_NOT_SUPPORTED or + * INTEL_SIP_SMC_STATUS_ERROR + * a1 error count of response data + * a2 sector address of response data + * a3 error data + */ +#define INTEL_SIP_SMC_FUNCID_SEU_ERR_STATUS 143 +#define INTEL_SIP_SMC_READ_SEU_ERR \ + INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_SEU_ERR_STATUS) + #endif -- 2.25.1