162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/*************************************************************************** 362306a36Sopenharmony_ci * * 462306a36Sopenharmony_ci * Copyright (c) 2000-2008 LSI Corporation. All rights reserved. * 562306a36Sopenharmony_ci * * 662306a36Sopenharmony_ci * Description * 762306a36Sopenharmony_ci * ------------ * 862306a36Sopenharmony_ci * This include file contains SAS firmware interface IOC Log Info codes * 962306a36Sopenharmony_ci * * 1062306a36Sopenharmony_ci *-------------------------------------------------------------------------* 1162306a36Sopenharmony_ci */ 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#ifndef IOPI_IOCLOGINFO_H_INCLUDED 1462306a36Sopenharmony_ci#define IOPI_IOCLOGINFO_H_INCLUDED 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#define SAS_LOGINFO_NEXUS_LOSS 0x31170000 1762306a36Sopenharmony_ci#define SAS_LOGINFO_MASK 0xFFFF0000 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci/****************************************************************************/ 2062306a36Sopenharmony_ci/* IOC LOGINFO defines, 0x00000000 - 0x0FFFFFFF */ 2162306a36Sopenharmony_ci/* Format: */ 2262306a36Sopenharmony_ci/* Bits 31-28: MPI_IOCLOGINFO_TYPE_SAS (3) */ 2362306a36Sopenharmony_ci/* Bits 27-24: IOC_LOGINFO_ORIGINATOR: 0=IOP, 1=PL, 2=IR */ 2462306a36Sopenharmony_ci/* Bits 23-16: LOGINFO_CODE */ 2562306a36Sopenharmony_ci/* Bits 15-0: LOGINFO_CODE Specific */ 2662306a36Sopenharmony_ci/****************************************************************************/ 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci/****************************************************************************/ 2962306a36Sopenharmony_ci/* IOC_LOGINFO_ORIGINATOR defines */ 3062306a36Sopenharmony_ci/****************************************************************************/ 3162306a36Sopenharmony_ci#define IOC_LOGINFO_ORIGINATOR_IOP (0x00000000) 3262306a36Sopenharmony_ci#define IOC_LOGINFO_ORIGINATOR_PL (0x01000000) 3362306a36Sopenharmony_ci#define IOC_LOGINFO_ORIGINATOR_IR (0x02000000) 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci#define IOC_LOGINFO_ORIGINATOR_MASK (0x0F000000) 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/****************************************************************************/ 3862306a36Sopenharmony_ci/* LOGINFO_CODE defines */ 3962306a36Sopenharmony_ci/****************************************************************************/ 4062306a36Sopenharmony_ci#define IOC_LOGINFO_CODE_MASK (0x00FF0000) 4162306a36Sopenharmony_ci#define IOC_LOGINFO_CODE_SHIFT (16) 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci/****************************************************************************/ 4462306a36Sopenharmony_ci/* IOP LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = IOP */ 4562306a36Sopenharmony_ci/****************************************************************************/ 4662306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_INVALID_SAS_ADDRESS (0x00010000) 4762306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_UNUSED2 (0x00020000) 4862306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x00030000) 4962306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_RT (0x00030100) /* Route Table Entry not found */ 5062306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PN (0x00030200) /* Invalid Page Number */ 5162306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_FORM (0x00030300) /* Invalid FORM */ 5262306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x00030400) /* Invalid Page Type */ 5362306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DNM (0x00030500) /* Device Not Mapped */ 5462306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_PERSIST (0x00030600) /* Persistent Page not found */ 5562306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_CONFIG_INVALID_PAGE_DEFAULT (0x00030700) /* Default Page not found */ 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_FWUPLOAD_NO_FLASH_AVAILABLE (0x0003E000) /* Tried to upload from flash, but there is none */ 5862306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_FWUPLOAD_UNKNOWN_IMAGE_TYPE (0x0003E001) /* ImageType field contents were invalid */ 5962306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_FWUPLOAD_WRONG_IMAGE_SIZE (0x0003E002) /* ImageSize field in TCSGE was bad/offset in MfgPg 4 was wrong */ 6062306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_FWUPLOAD_ENTIRE_FLASH_UPLOAD_FAILED (0x0003E003) /* Error occurred while attempting to upload the entire flash */ 6162306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_FWUPLOAD_REGION_UPLOAD_FAILED (0x0003E004) /* Error occurred while attempting to upload single flash region */ 6262306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_FWUPLOAD_DMA_FAILURE (0x0003E005) /* Problem occurred while DMAing FW to host memory */ 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_DIAG_MSG_ERROR (0x00040000) /* Error handling diag msg - or'd with diag status */ 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_TASK_TERMINATED (0x00050000) 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_ENCL_MGMT_READ_ACTION_ERR0R (0x00060001) /* Read Action not supported for SEP msg */ 6962306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_ENCL_MGMT_INVALID_BUS_ID_ERR0R (0x00060002) /* Invalid Bus/ID in SEP msg */ 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_TARGET_ASSIST_TERMINATED (0x00070001) 7262306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_TARGET_STATUS_SEND_TERMINATED (0x00070002) 7362306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_ALL_IO (0x00070003) 7462306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_EXACT_IO (0x00070004) 7562306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_TARGET_MODE_ABORT_EXACT_IO_REQ (0x00070005) 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci#define IOP_LOGINFO_CODE_LOG_TIMESTAMP_EVENT (0x00080000) 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ci/****************************************************************************/ 8062306a36Sopenharmony_ci/* PL LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = PL */ 8162306a36Sopenharmony_ci/****************************************************************************/ 8262306a36Sopenharmony_ci#define PL_LOGINFO_CODE_OPEN_FAILURE (0x00010000) /* see SUB_CODE_OPEN_FAIL_ below */ 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_NO_DEST_TIME_OUT (0x00000001) 8562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_PATHWAY_BLOCKED (0x00000002) 8662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_CONTINUE0 (0x00000003) 8762306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_CONTINUE1 (0x00000004) 8862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_INITIALIZE0 (0x00000005) 8962306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_INITIALIZE1 (0x00000006) 9062306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_STOP0 (0x00000007) 9162306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RES_STOP1 (0x00000008) 9262306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RETRY (0x00000009) 9362306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_BREAK (0x0000000A) 9462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_UNUSED_0B (0x0000000B) 9562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_OPEN_TIMEOUT_EXP (0x0000000C) 9662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_UNUSED_0D (0x0000000D) 9762306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_DVTBLE_ACCSS_FAIL (0x0000000E) 9862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_BAD_DEST (0x00000011) 9962306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RATE_NOT_SUPP (0x00000012) 10062306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_PROT_NOT_SUPP (0x00000013) 10162306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON0 (0x00000014) 10262306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON1 (0x00000015) 10362306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON2 (0x00000016) 10462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_RESERVED_ABANDON3 (0x00000017) 10562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_STP_RESOURCES_BSY (0x00000018) 10662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_WRONG_DESTINATION (0x00000019) 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_PATH_BLOCKED (0x0000001B) /* Retry Timeout */ 10962306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAIL_AWT_MAXED (0x0000001C) /* Retry Timeout */ 11062306a36Sopenharmony_ci 11162306a36Sopenharmony_ci 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci#define PL_LOGINFO_CODE_INVALID_SGL (0x00020000) 11462306a36Sopenharmony_ci#define PL_LOGINFO_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00030000) 11562306a36Sopenharmony_ci#define PL_LOGINFO_CODE_FRAME_XFER_ERROR (0x00040000) 11662306a36Sopenharmony_ci#define PL_LOGINFO_CODE_TX_FM_CONNECTED_LOW (0x00050000) 11762306a36Sopenharmony_ci#define PL_LOGINFO_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00060000) 11862306a36Sopenharmony_ci#define PL_LOGINFO_CODE_SATA_READ_LOG_RECEIVE_DATA_ERR (0x00070000) 11962306a36Sopenharmony_ci#define PL_LOGINFO_CODE_SATA_NCQ_FAIL_ALL_CMDS_AFTR_ERR (0x00080000) 12062306a36Sopenharmony_ci#define PL_LOGINFO_CODE_SATA_ERR_IN_RCV_SET_DEV_BIT_FIS (0x00090000) 12162306a36Sopenharmony_ci#define PL_LOGINFO_CODE_RX_FM_INVALID_MESSAGE (0x000A0000) 12262306a36Sopenharmony_ci#define PL_LOGINFO_CODE_RX_CTX_MESSAGE_VALID_ERROR (0x000B0000) 12362306a36Sopenharmony_ci#define PL_LOGINFO_CODE_RX_FM_CURRENT_FRAME_ERROR (0x000C0000) 12462306a36Sopenharmony_ci#define PL_LOGINFO_CODE_SATA_LINK_DOWN (0x000D0000) 12562306a36Sopenharmony_ci#define PL_LOGINFO_CODE_DISCOVERY_SATA_INIT_W_IOS (0x000E0000) 12662306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE (0x000F0000) 12762306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_PL_NOT_INITIALIZED (0x000F0001) /* PL not yet initialized, can't do config page req. */ 12862306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PT (0x000F0100) /* Invalid Page Type */ 12962306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NUM_PHYS (0x000F0200) /* Invalid Number of Phys */ 13062306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NOT_IMP (0x000F0300) /* Case Not Handled */ 13162306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_DEV (0x000F0400) /* No Device Found */ 13262306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_FORM (0x000F0500) /* Invalid FORM */ 13362306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_PHY (0x000F0600) /* Invalid Phy */ 13462306a36Sopenharmony_ci#define PL_LOGINFO_CODE_CONFIG_INVALID_PAGE_NO_OWNER (0x000F0700) /* No Owner Found */ 13562306a36Sopenharmony_ci#define PL_LOGINFO_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00100000) 13662306a36Sopenharmony_ci#define PL_LOGINFO_CODE_RESET (0x00110000) /* See Sub-Codes below (PL_LOGINFO_SUB_CODE) */ 13762306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ABORT (0x00120000) /* See Sub-Codes below (PL_LOGINFO_SUB_CODE)*/ 13862306a36Sopenharmony_ci#define PL_LOGINFO_CODE_IO_NOT_YET_EXECUTED (0x00130000) 13962306a36Sopenharmony_ci#define PL_LOGINFO_CODE_IO_EXECUTED (0x00140000) 14062306a36Sopenharmony_ci#define PL_LOGINFO_CODE_PERS_RESV_OUT_NOT_AFFIL_OWNER (0x00150000) 14162306a36Sopenharmony_ci#define PL_LOGINFO_CODE_OPEN_TXDMA_ABORT (0x00160000) 14262306a36Sopenharmony_ci#define PL_LOGINFO_CODE_IO_DEVICE_MISSING_DELAY_RETRY (0x00170000) 14362306a36Sopenharmony_ci#define PL_LOGINFO_CODE_IO_CANCELLED_DUE_TO_R_ERR (0x00180000) 14462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE (0x00000100) 14562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_NO_DEST_TIMEOUT (0x00000101) 14662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_SATA_NEG_RATE_2HI (0x00000102) 14762306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_RATE_NOT_SUPPORTED (0x00000103) 14862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_BREAK (0x00000104) 14962306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ZONE_VIOLATION (0x00000114) 15062306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON0 (0x00000114) /* Open Reject (Zone Violation) - available on SAS-2 devices */ 15162306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON1 (0x00000115) 15262306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON2 (0x00000116) 15362306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ABANDON3 (0x00000117) 15462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_ORR_TIMEOUT (0x0000011A) /* Open Reject (Retry) Timeout */ 15562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_PATH_BLOCKED (0x0000011B) 15662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_OPEN_FAILURE_AWT_MAXED (0x0000011C) /* Arbitration Wait Timer Maxed */ 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_TARGET_BUS_RESET (0x00000120) 15962306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_TRANSPORT_LAYER (0x00000130) /* Leave lower nibble (1-f) reserved. */ 16062306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_PORT_LAYER (0x00000140) /* Leave lower nibble (1-f) reserved. */ 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci 16362306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_INVALID_SGL (0x00000200) 16462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_WRONG_REL_OFF_OR_FRAME_LENGTH (0x00000300) 16562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_FRAME_XFER_ERROR (0x00000400) 16662306a36Sopenharmony_ci/* Bits 0-3 encode Transport Status Register (offset 0x08) */ 16762306a36Sopenharmony_ci/* Bit 0 is Status Bit 0: FrameXferErr */ 16862306a36Sopenharmony_ci/* Bit 1 & 2 are Status Bits 16 and 17: FrameXmitErrStatus */ 16962306a36Sopenharmony_ci/* Bit 3 is Status Bit 18 WriteDataLenghtGTDataLengthErr */ 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_TX_FM_CONNECTED_LOW (0x00000500) 17262306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00000600) 17362306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_SATA_READ_LOG_RECEIVE_DATA_ERR (0x00000700) 17462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_SATA_NCQ_FAIL_ALL_CMDS_AFTR_ERR (0x00000800) 17562306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_SATA_ERR_IN_RCV_SET_DEV_BIT_FIS (0x00000900) 17662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_RX_FM_INVALID_MESSAGE (0x00000A00) 17762306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_RX_CTX_MESSAGE_VALID_ERROR (0x00000B00) 17862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_RX_FM_CURRENT_FRAME_ERROR (0x00000C00) 17962306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_SATA_LINK_DOWN (0x00000D00) 18062306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_DISCOVERY_SATA_INIT_W_IOS (0x00000E00) 18162306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_DISCOVERY_REMOTE_SEP_RESET (0x00000E01) 18262306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_SECOND_OPEN (0x00000F00) 18362306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_DSCVRY_SATA_INIT_TIMEOUT (0x00001000) 18462306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_BREAK_ON_SATA_CONNECTION (0x00002000) 18562306a36Sopenharmony_ci/* not currently used in mainline */ 18662306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_BREAK_ON_STUCK_LINK (0x00003000) 18762306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_BREAK_ON_STUCK_LINK_AIP (0x00004000) 18862306a36Sopenharmony_ci#define PL_LOGINFO_SUB_CODE_BREAK_ON_INCOMPLETE_BREAK_RCVD (0x00005000) 18962306a36Sopenharmony_ci 19062306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_FAILURE (0x00200000) /* Can't get SMP Frame */ 19162306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_READ_ERROR (0x00200010) /* Error occurred on SMP Read */ 19262306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_WRITE_ERROR (0x00200020) /* Error occurred on SMP Write */ 19362306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_NOT_SUPPORTED_ON_ENCL (0x00200040) /* Encl Mgmt services not available for this WWID */ 19462306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_ADDR_MODE_NOT_SUPPORTED (0x00200050) /* Address Mode not suppored */ 19562306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_BAD_SLOT_NUM (0x00200060) /* Invalid Slot Number in SEP Msg */ 19662306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SGPIO_NOT_PRESENT (0x00200070) /* SGPIO not present/enabled */ 19762306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_NOT_CONFIGURED (0x00200080) /* GPIO not configured */ 19862306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_FRAME_ERROR (0x00200090) /* GPIO can't allocate a frame */ 19962306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_GPIO_CONFIG_PAGE_ERROR (0x002000A0) /* GPIO failed config page request */ 20062306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SES_FRAME_ALLOC_ERROR (0x002000B0) /* Can't get frame for SES command */ 20162306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SES_IO_ERROR (0x002000C0) /* I/O execution error */ 20262306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SES_RETRIES_EXHAUSTED (0x002000D0) /* SEP I/O retries exhausted */ 20362306a36Sopenharmony_ci#define PL_LOGINFO_CODE_ENCL_MGMT_SMP_FRAME_ALLOC_ERROR (0x002000E0) /* Can't get frame for SMP command */ 20462306a36Sopenharmony_ci 20562306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_NOT_PRESENT (0x00200100) /* SEP not present when msg received */ 20662306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_SINGLE_THREAD_ERROR (0x00200101) /* Can only accept 1 msg at a time */ 20762306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_ISTWI_INTR_IN_IDLE_STATE (0x00200102) /* ISTWI interrupt recvd. while IDLE */ 20862306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_RECEIVED_NACK_FROM_SLAVE (0x00200103) /* SEP NACK'd, it is busy */ 20962306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_DID_NOT_RECEIVE_ACK (0x00200104) /* SEP didn't rcv. ACK (Last Rcvd Bit = 1) */ 21062306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_BAD_STATUS_HDR_CHKSUM (0x00200105) /* SEP stopped or sent bad chksum in Hdr */ 21162306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_STOP_ON_DATA (0x00200106) /* SEP stopped while transferring data */ 21262306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_STOP_ON_SENSE_DATA (0x00200107) /* SEP stopped while transferring sense data */ 21362306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_1 (0x00200108) /* SEP returned unknown scsi status */ 21462306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_UNSUPPORTED_SCSI_STATUS_2 (0x00200109) /* SEP returned unknown scsi status */ 21562306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP (0x0020010A) /* SEP returned bad chksum after STOP */ 21662306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_CHKSUM_ERROR_AFTER_STOP_GETDATA (0x0020010B) /* SEP returned bad chksum after STOP while gettin data*/ 21762306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND (0x0020010C) /* SEP doesn't support CDB opcode f/w location 1 */ 21862306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND_2 (0x0020010D) /* SEP doesn't support CDB opcode f/w location 2 */ 21962306a36Sopenharmony_ci#define PL_LOGINFO_DA_SEP_UNSUPPORTED_COMMAND_3 (0x0020010E) /* SEP doesn't support CDB opcode f/w location 3 */ 22062306a36Sopenharmony_ci 22162306a36Sopenharmony_ci 22262306a36Sopenharmony_ci/****************************************************************************/ 22362306a36Sopenharmony_ci/* IR LOGINFO_CODE defines, valid if IOC_LOGINFO_ORIGINATOR = IR */ 22462306a36Sopenharmony_ci/****************************************************************************/ 22562306a36Sopenharmony_ci#define IR_LOGINFO_RAID_ACTION_ERROR (0x00010000) 22662306a36Sopenharmony_ci#define IR_LOGINFO_CODE_UNUSED2 (0x00020000) 22762306a36Sopenharmony_ci 22862306a36Sopenharmony_ci/* Amount of information passed down for Create Volume is too large */ 22962306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_CREATE_INVALID_LENGTH (0x00010001) 23062306a36Sopenharmony_ci/* Creation of duplicate volume attempted (Bus/Target ID checked) */ 23162306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_CREATE_DUPLICATE (0x00010002) 23262306a36Sopenharmony_ci/* Creation failed due to maximum number of supported volumes exceeded */ 23362306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_CREATE_NO_SLOTS (0x00010003) 23462306a36Sopenharmony_ci/* Creation failed due to DMA error in trying to read from host */ 23562306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_CREATE_DMA_ERROR (0x00010004) 23662306a36Sopenharmony_ci/* Creation failed due to invalid volume type passed down */ 23762306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_CREATE_INVALID_VOLUME_TYPE (0x00010005) 23862306a36Sopenharmony_ci/* Creation failed due to error reading MFG Page 4 */ 23962306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_MFG_PAGE4_ERROR (0x00010006) 24062306a36Sopenharmony_ci/* Creation failed when trying to create internal structures */ 24162306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_INTERNAL_CONFIG_STRUCTURE_ERROR (0x00010007) 24262306a36Sopenharmony_ci 24362306a36Sopenharmony_ci/* Activation failed due to trying to activate an already active volume */ 24462306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATING_AN_ACTIVE_VOLUME (0x00010010) 24562306a36Sopenharmony_ci/* Activation failed due to trying to active unsupported volume type */ 24662306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATING_INVALID_VOLUME_TYPE (0x00010011) 24762306a36Sopenharmony_ci/* Activation failed due to trying to active too many volumes */ 24862306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATING_TOO_MANY_VOLUMES (0x00010012) 24962306a36Sopenharmony_ci/* Activation failed due to Volume ID in use already */ 25062306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATING_VOLUME_ID_IN_USE (0x00010013) 25162306a36Sopenharmony_ci/* Activation failed call to activateVolume returned failure */ 25262306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATE_VOLUME_FAILED (0x00010014) 25362306a36Sopenharmony_ci/* Activation failed trying to import the volume */ 25462306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATING_IMPORT_VOLUME_FAILED (0x00010015) 25562306a36Sopenharmony_ci/* Activation failed trying to import the volume */ 25662306a36Sopenharmony_ci#define IR_LOGINFO_VOLUME_ACTIVATING_TOO_MANY_PHYS_DISKS (0x00010016) 25762306a36Sopenharmony_ci 25862306a36Sopenharmony_ci/* Phys Disk failed, too many phys disks */ 25962306a36Sopenharmony_ci#define IR_LOGINFO_PHYSDISK_CREATE_TOO_MANY_DISKS (0x00010020) 26062306a36Sopenharmony_ci/* Amount of information passed down for Create Pnysdisk is too large */ 26162306a36Sopenharmony_ci#define IR_LOGINFO_PHYSDISK_CREATE_INVALID_LENGTH (0x00010021) 26262306a36Sopenharmony_ci/* Creation failed due to DMA error in trying to read from host */ 26362306a36Sopenharmony_ci#define IR_LOGINFO_PHYSDISK_CREATE_DMA_ERROR (0x00010022) 26462306a36Sopenharmony_ci/* Creation failed due to invalid Bus TargetID passed down */ 26562306a36Sopenharmony_ci#define IR_LOGINFO_PHYSDISK_CREATE_BUS_TID_INVALID (0x00010023) 26662306a36Sopenharmony_ci/* Creation failed due to error in creating RAID Phys Disk Config Page */ 26762306a36Sopenharmony_ci#define IR_LOGINFO_PHYSDISK_CREATE_CONFIG_PAGE_ERROR (0x00010024) 26862306a36Sopenharmony_ci 26962306a36Sopenharmony_ci 27062306a36Sopenharmony_ci/* Compatibility Error : IR Disabled */ 27162306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_RAID_DISABLED (0x00010030) 27262306a36Sopenharmony_ci/* Compatibility Error : Inquiry Command failed */ 27362306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_INQUIRY_FAILED (0x00010031) 27462306a36Sopenharmony_ci/* Compatibility Error : Device not direct access device */ 27562306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_NOT_DIRECT_ACCESS (0x00010032) 27662306a36Sopenharmony_ci/* Compatibility Error : Removable device found */ 27762306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_REMOVABLE_FOUND (0x00010033) 27862306a36Sopenharmony_ci/* Compatibility Error : Device SCSI Version not 2 or higher */ 27962306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_NEED_SCSI_2_OR_HIGHER (0x00010034) 28062306a36Sopenharmony_ci/* Compatibility Error : SATA device, 48 BIT LBA not supported */ 28162306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_SATA_48BIT_LBA_NOT_SUPPORTED (0x00010035) 28262306a36Sopenharmony_ci/* Compatibility Error : Device does not have 512 byte block sizes */ 28362306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_DEVICE_NOT_512_BYTE_BLOCK (0x00010036) 28462306a36Sopenharmony_ci/* Compatibility Error : Volume Type check failed */ 28562306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_VOLUME_TYPE_CHECK_FAILED (0x00010037) 28662306a36Sopenharmony_ci/* Compatibility Error : Volume Type is unsupported by FW */ 28762306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_UNSUPPORTED_VOLUME_TYPE (0x00010038) 28862306a36Sopenharmony_ci/* Compatibility Error : Disk drive too small for use in volume */ 28962306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_DISK_TOO_SMALL (0x00010039) 29062306a36Sopenharmony_ci/* Compatibility Error : Phys disk for Create Volume not found */ 29162306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_PHYS_DISK_NOT_FOUND (0x0001003A) 29262306a36Sopenharmony_ci/* Compatibility Error : membership count error, too many or too few disks for volume type */ 29362306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_MEMBERSHIP_COUNT (0x0001003B) 29462306a36Sopenharmony_ci/* Compatibility Error : Disk stripe sizes must be 64KB */ 29562306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_NON_64K_STRIPE_SIZE (0x0001003C) 29662306a36Sopenharmony_ci/* Compatibility Error : IME size limited to < 2TB */ 29762306a36Sopenharmony_ci#define IR_LOGINFO_COMPAT_ERROR_IME_VOL_NOT_CURRENTLY_SUPPORTED (0x0001003D) 29862306a36Sopenharmony_ci 29962306a36Sopenharmony_ci/* Device Firmware Update: DFU can only be started once */ 30062306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_DFU_IN_PROGRESS (0x00010050) 30162306a36Sopenharmony_ci/* Device Firmware Update: Volume must be Optimal/Active/non-Quiesced */ 30262306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_DEVICE_IN_INVALID_STATE (0x00010051) 30362306a36Sopenharmony_ci/* Device Firmware Update: DFU Timeout cannot be zero */ 30462306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_INVALID_TIMEOUT (0x00010052) 30562306a36Sopenharmony_ci/* Device Firmware Update: CREATE TIMER FAILED */ 30662306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_NO_TIMERS (0x00010053) 30762306a36Sopenharmony_ci/* Device Firmware Update: Failed to read SAS_IO_UNIT_PG_1 */ 30862306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_READING_CFG_PAGE (0x00010054) 30962306a36Sopenharmony_ci/* Device Firmware Update: Invalid SAS_IO_UNIT_PG_1 value(s) */ 31062306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_PORT_IO_TIMEOUTS_REQUIRED (0x00010055) 31162306a36Sopenharmony_ci/* Device Firmware Update: Unable to allocate memory for page */ 31262306a36Sopenharmony_ci#define IR_LOGINFO_DEV_FW_UPDATE_ERR_ALLOC_CFG_PAGE (0x00010056) 31362306a36Sopenharmony_ci 31462306a36Sopenharmony_ci 31562306a36Sopenharmony_ci/****************************************************************************/ 31662306a36Sopenharmony_ci/* Defines for convenience */ 31762306a36Sopenharmony_ci/****************************************************************************/ 31862306a36Sopenharmony_ci#define IOC_LOGINFO_PREFIX_IOP ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_IOP) 31962306a36Sopenharmony_ci#define IOC_LOGINFO_PREFIX_PL ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_PL) 32062306a36Sopenharmony_ci#define IOC_LOGINFO_PREFIX_IR ((MPI_IOCLOGINFO_TYPE_SAS << MPI_IOCLOGINFO_TYPE_SHIFT) | IOC_LOGINFO_ORIGINATOR_IR) 32162306a36Sopenharmony_ci 32262306a36Sopenharmony_ci#endif /* end of file */ 32362306a36Sopenharmony_ci 324