Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8256964rwr; Wed, 10 May 2023 21:29:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4utQWgU9icFhhV7UVIy2cIPluXtHtxGGk+Jq9K/fG8NS4x/f+sf9q8/OKa9muiBBCfEX1u X-Received: by 2002:a17:90a:6a8e:b0:234:ba34:71bf with SMTP id u14-20020a17090a6a8e00b00234ba3471bfmr20390322pjj.1.1683779378107; Wed, 10 May 2023 21:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683779378; cv=none; d=google.com; s=arc-20160816; b=t6bv7y0u/7GjbMOZLdLaC6H1hLTZ4rmB1qPY7iN4Oc1DGtbxUgYCiM1ZwK4yEWY/tH Yz6oTTOJU84JTLYFLBSimL3WRS3zVxH2C3kaIFRZPZ4G6lQGi2Co+pacyXkvc8oQZQFN cwAC1dC47QS3Y8MtAg4dK+h7xZzRweGPA42/JkPy7mqn+qvRV21aMSRZzgUYS5QNdAAq PzfpSvOdgr+pRseFXk/2cxDGO313sqIfXSldGVVgja6qnmZT00JRgBPWuWwf4VWq6oxT +JNM0xnr2LnxV5doZ1BRiHwb0CH4ylugU57I1imwbhVGtO+9yv0YZlBGKgb/91v9HgJ1 r4ig== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g1L1irPBgUJJuXzV60YuFjW6Hh2TyAn/HQCbp+NSikM=; b=sL2vhX3ZOoNM5e4UbybNeEBENdbqwlOdb7ACy3u5n04t2mQ1PrRcTdzbdmix7/kNpZ 9cftJgtUyC7UE4GoobwK+PLcSHBCtZ7cudNuSxwJdik2d33lyf55bioT5C7B5ehJKTfB v2JqVJnTnBSiNHuamlIlsuTR0CRHqUS8jPU1fFEntFmmTzopd+wMbnkVTBPTWCkTfpD7 5ksdXf3NlL+2m4J8v8XWh6/4uy9Zfi1nZaQpO0lt9fV/m4nsUePcuH3t88tQQ1J+bt8y YoG9T9SfAl6AaiZ8JSc7etS1MiEQqBDKNL0SXv/k8g2iIz9ATCRspQ4Ezojfewg+ehTm QTFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QXIiygcO; 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 s64-20020a632c43000000b005030859019fsi5963842pgs.675.2023.05.10.21.29.19; Wed, 10 May 2023 21:29:38 -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=QXIiygcO; 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 S236036AbjEKEMh (ORCPT + 99 others); Thu, 11 May 2023 00:12:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbjEKEMf (ORCPT ); Thu, 11 May 2023 00:12:35 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D522949C0; Wed, 10 May 2023 21:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683778354; x=1715314354; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=c+g78DzIgPnotxKbjQZUyQiRs7PXweLqQiSMjMRFCM8=; b=QXIiygcOAwKpum1jyb63enWer/jJT279RHnuS3Ouz2fnOLr3ioieS6s+ m0zFt7SdTP9BIQXTb4q7MUfptYWMVScywCimdG4lRuymiLAs3GQnXJBGL NPCZrzrWH4JUEZx4WVH3uZ2HYMl7UXArjg6r2bCOn0h1JNqQGTOf8fcnh E0aq8MkjH34S8r4BqswQ2T4L10MfSyf9O3lECL/15lNME4MxqlmCeKAtO cnkvN1H6ax7DFHW3MmZzidatg3v125/5C1CzTcU3HdjenekiKUDqVNxY2 ckdzCVlxxJoiGG1NBBoh9RTr4300K6MFP/i3JXsEEDZCi+gyLNexDwutc w==; X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="347854499" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="347854499" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 21:12:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="1029467214" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="1029467214" Received: from unknown (HELO localhost.localdomain) ([10.226.216.116]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2023 21:12:32 -0700 From: niravkumar.l.rabara@intel.com To: niravkumar.l.rabara@intel.com Cc: bp@alien8.de, dinguyen@kernel.org, james.morse@arm.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org, rric@kernel.org, tony.luck@intel.com Subject: [PATCH v3 1/2] firmware: stratix10-svc: Add command to get SEU error info Date: Thu, 11 May 2023 12:12:20 +0800 Message-Id: <20230511041221.135527-2-niravkumar.l.rabara@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230511041221.135527-1-niravkumar.l.rabara@intel.com> References: <20230503061000.3279381-1-niravkumar.l.rabara@intel.com> <20230511041221.135527-1-niravkumar.l.rabara@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 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 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..48810c39f612 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 Upset 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 153 +#define INTEL_SIP_SMC_READ_SEU_ERR \ + INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_SEU_ERR_STATUS) + #endif -- 2.25.1