Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1603196ybb; Fri, 29 Mar 2019 07:44:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEyua+8wIaRUE4eocRh0KqyKjncHz4EmW0mGlAW6dkRUMycusjWddG2vg9cXN2oMHO6tDn X-Received: by 2002:a62:e411:: with SMTP id r17mr47258830pfh.127.1553870646371; Fri, 29 Mar 2019 07:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553870646; cv=none; d=google.com; s=arc-20160816; b=OCIS8nlECcT/98mUgNCuCxMb+3ny1Ek3QsSgUMlM8Ve7mJtBYYRqGLztPBPgiZjjTd tmA8KhwcM7vXkAtc64lGtawJ6YKbykqZ3V9lTf95s5py9r0Ni836gLKVNf9rTzqzo1eq bpF3kRibZWUhuX8vebSvHUoiwpKTLL/In+6ibafqCeMZasyWGPk+0HuZJMyKgU77v9Xb oT8raDikMCPqN6EJ7F3OB60O5Td4GVFeyCvx+UVQvEIshx33b55kl6EbULYEg1TLrSgF LLqLrE8471kP5fnHTLtWSmgieLHkt5u9CQEPCp/IEEjKk2EGrcwXNhSO4ZMSn9MC+ZDy zmzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=UXQKCuHabLhXy2xKcvoaxx50oQTi0aKzQ2AV/6En5R4=; b=pWW79mcQ9MuSSGRFOR7JjOlhfcPn3hk0aOFwn4+eDHbwR27WKplW1SObY+MNFonFfL 6nlkfELT9b89CySpdtrVMZXWFVFEF/3bMIr4mBUldOBr0IunCFH+Y5faOrJkDFw8gYNA TdS32VhfRkx7GbGMJllkx/Gh8fT3Q6Pcq9Qjctc7tfJuA9vLEb7finpgPlbXD1Gj2v0q CS0WaRvn6RhrTYA10F766ZsIuph0RalCEXewYrR8Zh5AXXryAyLYXdg7hf9W5Fjg5E4J zJ7RobIilZp4yVfv44grY0ppAhHp6I7V754rnaOYSkkp0vqcQKtz12lwAF9cHTK9E39n RzBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si2012404plk.150.2019.03.29.07.43.50; Fri, 29 Mar 2019 07:44:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729442AbfC2Olf (ORCPT + 99 others); Fri, 29 Mar 2019 10:41:35 -0400 Received: from mga03.intel.com ([134.134.136.65]:50079 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728717AbfC2Olf (ORCPT ); Fri, 29 Mar 2019 10:41:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2019 07:41:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,284,1549958400"; d="scan'208";a="138352091" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga003.jf.intel.com with ESMTP; 29 Mar 2019 07:41:33 -0700 From: thor.thayer@linux.intel.com To: bp@alien8.de, mchehab@kernel.org, james.morse@arm.com, atull@kernel.org, richard.gong@intel.com, gregkh@linuxfoundation.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Thor Thayer Subject: [PATCH 1/2] firmware: Intel: Add Stratix10 ECC DBE SMC call Date: Fri, 29 Mar 2019 09:43:58 -0500 Message-Id: <1553870639-23895-1-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thor Thayer Reserve ECC Double Bit Error SMC call to alert U-Boot that a DBE has occurred. Moving the call from local EDAC header file to this common file. Reviewed-by: Richard Gong Reviewed-by: Alan Tull Signed-off-by: Thor Thayer --- include/linux/firmware/intel/stratix10-smc.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/linux/firmware/intel/stratix10-smc.h b/include/linux/firmware/intel/stratix10-smc.h index 5be5dab50b13..01684d935580 100644 --- a/include/linux/firmware/intel/stratix10-smc.h +++ b/include/linux/firmware/intel/stratix10-smc.h @@ -309,4 +309,23 @@ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FPGA_CONFIG_COMPLETED_WRITE) #define INTEL_SIP_SMC_FUNCID_RSU_UPDATE 12 #define INTEL_SIP_SMC_RSU_UPDATE \ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_RSU_UPDATE) + +/* + * Request INTEL_SIP_SMC_ECC_DBE + * + * Sync call used by service driver at EL1 to alert EL3 that a Double + * Bit ECC error has occurred. + * + * Call register usage: + * a0 INTEL_SIP_SMC_ECC_DBE + * a1 SysManager Double Bit Error value + * a2-7 not used + * + * Return status + * a0 INTEL_SIP_SMC_STATUS_OK + */ +#define INTEL_SIP_SMC_FUNCID_ECC_DBE 13 +#define INTEL_SIP_SMC_ECC_DBE \ + INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_ECC_DBE) + #endif -- 2.7.4