NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
nverrval.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef INCLUDED_NVERRVAL_H
14 #define INCLUDED_NVERRVAL_H
15 
43 #define NVERROR_LIST(_m) \
44  \
45 _m(Success, 0x00000000, "success") \
46 _m(NotImplemented, 0x00000001, "method or interface is not implemented") \
47 _m(NotSupported, 0x00000002, "requested operation is not supported") \
48 _m(NotInitialized, 0x00000003, "method or interface is not initialized") \
49 _m(BadParameter, 0x00000004, "bad parameter to method or interface") \
50 _m(Timeout, 0x00000005, "not completed in the expected time") \
51 _m(InsufficientMemory, 0x00000006, "insufficient system memory") \
52 _m(ReadOnlyAttribute, 0x00000007, "cannot write a read-only attribute") \
53 _m(InvalidState, 0x00000008, "module is in invalid state to perform the requested operation") \
54 _m(InvalidAddress, 0x00000009, "invalid address") \
55 _m(InvalidSize, 0x0000000A, "invalid size") \
56 _m(BadValue, 0x0000000B, "illegal value specified for parameter") \
57 _m(AlreadyAllocated, 0x0000000D, "resource has already been allocated") \
58 _m(Busy, 0x0000000E, "busy, try again") \
59 _m(ModuleNotPresent, 0x000a000E, "hw module is not peresent") \
60 _m(ResourceError, 0x0000000F, "clock, power, or pinmux resource error") \
61 _m(CountMismatch, 0x00000010, "Encounter Error on count mismatch") \
62 _m(OverFlow, 0x00000011, "Resource is full no more allocation possible") \
63 _m(Disconnected, 0x00000012, "Communication resource disconnected") \
64 _m(InterruptedBySignal, 0x00000013, "Interrupted by signal") \
65 \
66 /* HOS Error Codes */ \
67 _m(InsufficientTransferMemory, 0x00001000, "insufficient transfer memory") \
68 \
69 /* surface specific error codes */ \
70 _m(InsufficientVideoMemory, 0x00010000, "insufficient video memory") \
71 _m(BadSurfaceColorScheme, 0x00010001, "this surface scheme is not supported in the current controller") \
72 _m(InvalidSurface, 0x00010002, "invalid surface") \
73 _m(SurfaceNotSupported, 0x00010003, "surface is not supported") \
74 \
75 /* display specific error codes */ \
76 _m(DispInitFailed, 0x00020000, "display initialization failed") \
77 _m(DispAlreadyAttached, 0x00020001, "the display is already attached to a controller") \
78 _m(DispTooManyDisplays, 0x00020002, "the controller has too many displays attached") \
79 _m(DispNoDisplaysAttached, 0x00020003, "the controller does not have an attached display") \
80 _m(DispModeNotSupported, 0x00020004, "the mode is not supported by the display or controller") \
81 _m(DispNotFound, 0x00020005, "the requested display was not found") \
82 _m(DispAttachDissallowed, 0x00020006, "the display cannot attach to the given controller") \
83 _m(DispTypeNotSupported, 0x00020007, "display type not supported") \
84 _m(DispAuthenticationFailed, 0x00020008, "display authenication failed") \
85 _m(DispNotAttached, 0x00020009, "display not attached") \
86 _m(DispSamePwrState, 0x0002000A, "display already in requested power state") \
87 _m(DispEdidFailure, 0x0002000B, "edid read/parsing failure") \
88 _m(DispDsiReadAckError, 0x0002000C, "DSI display read ack error resport") \
89 _m(DispDsiReadInvalidResp, 0x0002000D, "DSI display invalid read response") \
90 \
91 /* NvOs error codes */ \
92 _m(FileWriteFailed, 0x00030000, "the file write operation failed") \
93 _m(FileReadFailed, 0x00030001, "the file read operation failed") \
94 _m(EndOfFile, 0x00030002, "the end of file has been reached") \
95 _m(FileOperationFailed, 0x00030003, "the file operation has failed") \
96 _m(DirOperationFailed, 0x00030004, "the directory operation has failed") \
97 _m(EndOfDirList, 0x00030005, "there are no more entries in the directory") \
98 _m(ConfigVarNotFound, 0x00030006, "the configuration variable is not present") \
99 _m(InvalidConfigVar, 0x00030007, "the configuration variable is corrupted") \
100 _m(LibraryNotFound, 0x00030008, "the dynamic library was not found for open") \
101 _m(SymbolNotFound, 0x00030009, "the symbol in a dyanmic library was not found") \
102 _m(MemoryMapFailed, 0x0003000A, "the memory mapping operation failed") \
103 _m(IoctlFailed, 0x0003000F, "the ioctl failed") \
104 _m(AccessDenied, 0x00030010, "the pointer is invalid or require additional privileges for access") \
105 _m(DeviceNotFound, 0x00030011, "requested device is not found") \
106 _m(KernelDriverNotFound, 0x00030012, "kernel driver not found") \
107 _m(FileNotFound, 0x00030013, "File or directory not found") \
108 _m(PathAlreadyExists, 0x00030014, "the path already exists") \
109 _m(ProcessDoesNotExist, 0x00030015, "Process associated with this request doesn't exist") \
110 \
111 /* I/O devices */ \
112 _m(SpiReceiveError, 0x00040000, "spi receive error" ) \
113 _m(SpiTransmitError, 0x00040001, "spi transmit error" ) \
114 _m(HsmmcCardNotPresent, 0x00041000, "hsmmc card not present") \
115 _m(HsmmcControllerBusy, 0x00041001, "hsmmc controller is busy") \
116 _m(HsmmcAutoDetectCard, 0x00041002, "auto detect the card in hsmmc slot") \
117 _m(SdioCardNotPresent, 0x00042000, "sdio card not present") \
118 _m(SdioInstanceTaken, 0x00042001, "Instance unavailable or in use") \
119 _m(SdioControllerBusy, 0x00042002, "controller is busy") \
120 _m(SdioReadFailed, 0x00042003, "read transaction has failed") \
121 _m(SdioWriteFailed, 0x00042004, "write transaction has failed") \
122 _m(SdioBadBlockSize, 0x00042005, "bad block size") \
123 _m(SdioClockNotConfigured, 0x00042006, "Clock is not configured") \
124 _m(SdioSdhcPatternIntegrityFailed, 0x00042007, "SDHC Check pattern integrity failed") \
125 _m(SdioCommandFailed, 0x00042008, "command failed to execute") \
126 _m(SdioCardAlwaysPresent, 0x00042009, "sdio card is soldered") \
127 _m(SdioAutoDetectCard, 0x0004200A, "auto detect the sd card") \
128 _m(SdioEnablePowerRailFailed, 0x0004200B, "enable power rail failed") \
129 _m(UsbInvalidEndpoint, 0x00043000, "usb invalid endpoint") \
130 _m(UsbfTxfrActive, 0x00043001, "The endpoint has an active transfer in progress.") \
131 _m(UsbfTxfrComplete, 0x00043002, "The endpoint has a completed transfer that has not been cleared.") \
132 _m(UsbfTxfrFail, 0x00043003, "The endpoint transfer is failed.") \
133 _m(UsbfEpStalled, 0x00043004, "The endpoint has been placed in a halted or stalled state.") \
134 _m(UsbfCableDisConnected, 0x00043005, "usb cable disconnected") \
135 _m(XusbDeviceNotAttached, 0x00043501, "xusb not attached") \
136 _m(XusbPortResetFailed, 0x00043502, "xusb port reset failed") \
137 _m(XusbInvalidBmRequest, 0x00043503, "xusb invalid bm request") \
138 _m(XusbParseConfigDescFail, 0x00043504, "xusb parsing config descriptor failed") \
139 _m(XusbMscInvalidCmd, 0x00043505, "xusb invalid msc command") \
140 _m(XusbCswStatusCmdFail, 0x00043506, "xusb csw status cmd failed") \
141 _m(XusbMscResetRecovery, 0x00043507, "xusb msc reset recovery") \
142 _m(XusbEpStalled, 0x00043508, "xusb EP stalled") \
143 _m(XusbEpError, 0x00043509, "xusb EP error") \
144 _m(XusbEpRetry, 0x0004350A, "xusb EP retry") \
145 _m(XusbEpNotReady, 0x0004350B, "xusb EP not ready") \
146 _m(XusbDeviceResponseError, 0x0004350C, "xusb Device response error") \
147 _m(UartOverrun, 0x00044000, "overrun occurred when receiving the data") \
148 _m(UartFraming, 0x00044001, "data received had framing error") \
149 _m(UartParity, 0x00044002, "data received had parity error") \
150 _m(UartBreakReceived, 0x00044004, "received break signal") \
151 _m(I2cReadFailed, 0x00045000, "Failed to read data through I2C") \
152 _m(I2cWriteFailed, 0x00045001, "Failed to write data through I2C") \
153 _m(I2cDeviceNotFound, 0x00045003, "Slave Device Not Found") \
154 _m(I2cInternalError, 0x00045004, "The controller reports the error during transaction like fifo overrun, underrun") \
155 _m(I2cArbitrationFailed, 0x00045005, "Master does not able to get the control of bus") \
156 _m(I2cSlaveNotStarted, 0x00045100, "I2c slave not started") \
157 _m(I2cSlaveAlreadyStarted, 0x00045101, "I2c slave is already started on this channel") \
158 _m(I2cSlaveTxBufferFull, 0x00045102, "I2c slave tx buffer full and no space for writing any new data") \
159 _m(I2cSlaveWriteProgress, 0x00045103, "I2c slave write (master read) is in progress") \
160 _m(I2cSlaveWriteNotStarted, 0x00045104, "I2c slave write has not been started yet") \
161 _m(IdeHwError, 0x00046000, "Ide HW error") \
162 _m(IdeReadError, 0x00046001, "Ide read error") \
163 _m(IdeWriteError, 0x00046002, "Ide write error") \
164 \
165 /* OWR error codes */ \
166 _m(OwrReadFailed, 0x00047000, "OWR data reading failed") \
167 _m(OwrWriteFailed, 0x00047001, "OWR data write failed") \
168 _m(OwrBitTransferFailed, 0x00047002, "OWR bit transfer failed") \
169 _m(OwrInvalidOffset, 0x00047003, "OWR invalid offset") \
170 \
171 /* UFS error codes */ \
172 _m(UfsCommandFailed, 0x00048000, "UFS command failed") \
173 \
174 /* Nv2D error codes */ \
175 _m(InvalidOperation, 0x00050000, "invalid operation") \
176 \
177 /* NvRm error codes */ \
178 _m(RmInitFailed, 0x00060000, "rm failed to initialize") \
179 _m(RmChannelInitFailure, 0x00060001, "channel init failed") \
180 _m(RmStreamInitFailure, 0x00060002, "stream init failed") \
181 _m(RmSyncPointAllocFailure, 0x00060003, "sync point alloc failed") \
182 _m(ResourceAlreadyInUse, 0x00060004, "resource already in use") \
183 _m(DmaBusy, 0x00061000, "the dma channel is busy and not able to take any more request") \
184 _m(InvalidSourceId, 0x00061001, "invalid source id") \
185 _m(DmaChannelNotAvailable, 0x00061002, "dma channel not available") \
186 \
187 /* NvIsp error codes */ \
188 _m(NoConnectedImager, 0x00070001, "no imager connected") \
189 _m(UnsupportedResolution, 0x00070002, "unsupported resolution") \
190 _m(I2CCommunicationError, 0x00070003, "i2c communication failed") \
191 _m(IspConfigFileParseError, 0x00070004, "isp config file parse error") \
192 _m(TooDark, 0x00070006, "image too dark for 3A operation") \
193 _m(InvalidIspConfigAttribute, 0x00070007, "invalid isp config attribute") \
194 _m(InvalidIspConfigAttributeElement, 0x00070008, "invalid isp config attribute element") \
195 _m(IspConfigSyntaxError, 0x00070009, "isp config syntax error") \
196 _m(ImagerVersionNotSupported, 0x0007000A, "imager version not supported") \
197 _m(CorruptedBuffer, 0x0007000B, "buffer is corrupted") \
198 _m(UnderConfident, 0x0007000C, "algorithm has insufficient confidence to return result") \
199 \
200 \
201 /* NvTest error codes */ \
202 _m(TestApplicationFailed, 0x00080000, "the test application failed") \
203 _m(TestNoUserInput, 0x00080001, "no user input available") \
204 _m(TestCommandLineError, 0x00080002, "command line parsing error") \
205 _m(TestDataVerificationFailed, 0x00080003, "Data verification failed error") \
206 _m(TestServerFileReadFailed, 0x00081000, "reading the test file failed") \
207 _m(TestServerInvalidAddress, 0x00081001, "invalid connection address") \
208 _m(TestServerMemoryLimitExceeded, 0x00081002, "target memory limit exceeded") \
209 \
210 /* NvCam error codes */ \
211 _m(ColorFormatNotSupported, 0x00090006, "color format not supported") \
212 _m(CameraHwNotResponding, 0x00090007, "camera hw not responding") \
213 \
214 /* Transport error codes */ \
215 _m(TransportPortAlreadyExist, 0x000A0001, "The port name already exist.") \
216 _m(TransportMessageBoxEmpty, 0x000A0003, "Received Message box empty.") \
217 _m(TransportMessageBoxFull, 0x000A0004, "Message box is full and not able to send the message.") \
218 _m(TransportConnectionFailed, 0x000A0006, "Making connection to port is failed.") \
219 _m(TransportNotConnected, 0x000A0007, "Port is not connected.") \
220 \
221 /* Nand error codes */ \
222 _m(NandReadFailed, 0x000B0000, "Nand Read failed") \
223 _m(NandProgramFailed, 0x000B0001, "Nand Program failed") \
224 _m(NandEraseFailed, 0x000B0002, "Nand Erase failed") \
225 _m(NandCopyBackFailed, 0x000B0003, "Nand Copy back failed") \
226 _m(NandOperationFailed, 0x000B0004, "requested Nand operation failed") \
227 _m(NandBusy, 0x000B0005, "Nand operation incomplete and is busy") \
228 _m(NandNotOpened, 0x000B0006, "Nand driver not opened") \
229 _m(NandAlreadyOpened, 0x000B0007, "Nand driver is already opened") \
230 _m(NandBadOperationRequest, 0x000B0008, "status for wrong nand operation is requested ") \
231 _m(NandCommandQueueError, 0x000B0009, "Command queue error occured ") \
232 _m(NandReadEccFailed, 0x000B0010, "Read with ECC resulted in uncorrectable errors") \
233 _m(NandFlashNotSupported, 0x000B0011, "Nand flash on board is not supported by the ddk") \
234 _m(NandLockFailed, 0x000B0012, "Nand flash lock feature failed") \
235 _m(NandErrorThresholdReached, 0x000B0013, "Ecc errors reached the threshold set") \
236 _m(NandWriteFailed, 0x000B0014, "Nand Write failed") \
237 _m(NandBadBlock, 0x000B0015, "Indicates a bad block on media") \
238 _m(NandBadState, 0x000B0016, "Indicates an invalid state") \
239 _m(NandBlockIsLocked, 0x000B0017, "Indicates the block is locked") \
240 _m(NandNoFreeBlock, 0x000B0018, "Indicates there is no free block in the flash") \
241 _m(NandTTFailed, 0x000B0019, "Nand TT Failure") \
242 _m(NandTLFailed, 0x000B001A, "Nand TL Failure") \
243 _m(NandTLNoBlockAssigned, 0x000B001B, "Nand TL No Block Assigned") \
244 \
245 /* nvwinsys error codes */ \
246 _m(WinSysBadDisplay, 0x000C0000, "bad display specified") \
247 _m(WinSysNoDevice, 0x000C0001, "no device found") \
248 _m(WinSysBadDrawable, 0x000C0002, "bad drawable") \
249 \
250 /* nvblserver error codes */ \
251 _m(BLServerFileReadFailed, 0x000D0000, "reading the bootloader file failed") \
252 _m(BLServerInvalidAddress, 0x000D0001, "invalid connection address") \
253 _m(BLServerInvalidElfFile, 0x000D0002, "invalid elf file") \
254 _m(BLServerConnectionFailed, 0x000D0003, "connection with target failed") \
255 _m(BLServerMemoryLimitExceeded, 0x000D0005, "target memory limit exceeded") \
256 \
257 /* NvMM Audio Mixer error codes */ \
258 _m(AudioMixerPinTypeNotSupported, 0x000E0000, "Pin type is not supported") \
259 _m(AudioMixerDirectionNotSupported, 0x000E0001, "Pin direction is not supported") \
260 _m(AudioMixerNoMorePinsAvailable, 0x000E0002, "No more pins are available") \
261 _m(AudioMixerBadPinNumber, 0x000E0003, "Bad pin number") \
262 \
263 /* NvMM Video Encoder error codes */ \
264 _m(VideoEncResolutionNotSupported, 0x000E1000, "Resolution parameters must be multiple of 16") \
265 _m(VideoEncEnqReorderBuffer, 0x000E1001, "Current buffer needs to be enqueued for reordering") \
266 _m(VideoEncEmptyReorderBufferQ, 0x000E1002, "Encode all buffers present in reorder queue") \
267 _m(VideoEncSkipHwBuffEnQ, 0x000E1003, "Don't enqueue the buffer in HWBufferQueue") \
268 \
269 /* NvMM JPEG Encoder error codes */ \
270 _m(JPEGEncHWError, 0x000E2000, "HW encountered some error in Encoding: either ICQ is full or MEMDMA is busy") \
271 \
272 /* NvMM Video Decoder error codes */ \
273 _m(VideoDecRetainLock, 0x000E3001, "Keep the HW lock with the decoder") \
274 _m(VideoDecMataDataFound, 0x000E3002, "Decoder has decoded Mata Data Information") \
275 _m(VideoDecFrameDecoded, 0x000E3004, "Decoder has decoded one complete Frame") \
276 _m(VideoDecDecodedPartialFrame, 0x000E3008, "Decoder has decoded Frame Partially") \
277 _m(VideoDecInsufficientBitstream, 0x000E3010, "unable to decode because of unavailablity of bitstream for decoding") \
278 _m(VideoDecOutputSurfaceUnavailable, 0x000E3020, "Output surface is unavailable for storing current decoded frame") \
279 _m(VideoDecUnsupportedStreamFormat, 0x000E3040, "Given i/p Stream format is not supported by Video Decoder") \
280 _m(VideoDecFrameDecodedPlusVideoDecEvent, 0x000E3080, "Decoder has decoded one complete frame and need to send event to client") \
281 _m(VideoDecFailed, 0x000E3100, "Failed to decode") \
282 _m(VideoDecDecodingComplete, 0x000E3200, "Decoder has finished decoding") \
283 _m(VideoDecProvideNextIPBuffer, 0x000E3400, "Decoder is still using current buffer,mean while provide next ip buffer") \
284 _m(VideoDecProvideCurrentIPBuffer, 0x000E3800, "provide Current ip buffer again") \
285 _m(VideoDecBypassMoreWork, 0x000E3801, "Decoder should bypass any more work related to current task") \
286 _m(VideoDecVPRMemoryAllocFail, 0x000E3802, "Video Decoder VPR memory Allocation failed") \
287 _m(VideoDecVPRMemoryAccessFail, 0x000E3803, "Video Decoder VPR memory Access failed") \
288 \
289 /* Vibrate shim error codes */ \
290 _m(PipeNotConnected, 0x000F0000, "Indicates that there are no readers attached to the message queue") \
291 _m(ReadQNotCreated, 0x000F0001, "Some error creating the read message Q") \
292 \
293 /* Content Parser, Writer, Pipe error codes */ \
294 _m(ParserEndOfStream, 0x00100000, "the end of stream has been reached") \
295 _m(ParserFailedToGetData, 0x00100001, "Could not get data because of some Error") \
296 _m(InSufficientBufferSize, 0x00100002, "InSufficientBufferSize for parser to read data") \
297 _m(ParserReadFailure, 0x00100003, "Encounter Error on parser reads") \
298 _m(ParserOpenFailure, 0x00100004, "Encounter Error on parser open") \
299 _m(UnSupportedStream, 0x00100005, "Error for Unsupported streams") \
300 _m(ParserFailure, 0x00100006, "Fail to Parse the file. Or General/logical Error encounter on other parser failures") \
301 _m(ParserHeaderDecodeNotComplete, 0x00100007, "Could not get data because Header Decode is not complete") \
302 _m(ParserCloseFailure, 0x00100008, "Encounter Error on parser close") \
303 _m(ParserMarkerHit, 0x00100009, "Parser Marker HIT") \
304 _m(ParserCorruptedStream, 0x0010000A, "Encounter error on corrupted Parser stream") \
305 _m(ParserDRMLicenseNotFound, 0x0010000B, "DRM License Not Found") \
306 _m(ParserDRMFailure, 0x0010000C, "DRM Functionality Failed") \
307 _m(ParserSeekUnSupported, 0x0010000D, "Seek UnSupported dueto non-index rntries etc., ") \
308 _m(ParserTrickModeUnSupported, 0x0010000E, "Seek UnSupported dueto non-index rntries etc., ") \
309 _m(ParserCoreNotCreated, 0x0010000F, "Core not created ") \
310 _m(UnSupported_VideoStream, 0x00100010, "Error for Unsupported streams") \
311 _m(UnSupported_AudioStream, 0x00100011, "Error for Unsupported streams") \
312 _m(ParserTruncatedFile, 0x00100012, "Indicates teh fiel is broken/truncated") \
313 _m(ParserOffsetsNotFound, 0x00100013, "Indicates teh fiel is broken/truncated") \
314 _m(WriterOpenFailure, 0x00101001, "Encounter Error on writer open") \
315 _m(WriterUnsupportedStream, 0x00101002, "Error for Unsupported streams in writer") \
316 _m(WriterUnsupportedUserData, 0x00101003, "Error Unsupported user data set in writer") \
317 _m(WriterFileSizeLimitExceeded, 0x00101004, "File size limit exceeded in writer") \
318 _m(WriterInsufficientMemory, 0x00101005, "Insufficient memory in writer") \
319 _m(WriterFailure, 0x00101006, "General/logical Error encounter on other writer failures") \
320 _m(WriterCloseFailure, 0x00101007, "Encounter Error on writer close") \
321 _m(WriterInitFailure, 0x00101008, "Writer Init Failed") \
322 _m(WriterFileWriteLimitExceeded, 0x00101009, "File Write limit exceeded in writer") \
323 _m(WriterTimeLimitExceeded, 0x00101010, "Write time limit exceeded in writer") \
324 _m(ContentPipeNoData, 0x00102001, "Data not available") \
325 _m(ContentPipeNoFreeBuffers, 0x00102002, "No free buffers") \
326 _m(ContentPipeSpareAreaInUse, 0x00102003, "Spare buffer is in use") \
327 _m(ContentPipeEndOfStream, 0x00102004, "End of stream reached") \
328 _m(ContentPipeNotReady, 0x00102005, "Not Ready") \
329 _m(ContentPipeInNonCachingMode, 0x00102006, "In non-caching mode") \
330 _m(ContentPipeInsufficientMemory, 0x00102007, "Insufficient memory in ContentPipe") \
331 _m(ContentPipeNotInvalidated, 0x00102008, "ContentPipe memory is not invalidated") \
332 \
333 _m(UnSupportedMetadata, 0x00102009, "UnSupportedMetadata") \
334 _m(MetadataSuccess, 0x0010200A, "Successfully Extracted the Metadata key") \
335 _m(MetadataFailure, 0x0010200B, "Error Encountered during Meta data Extraction") \
336 _m(NewMetaDataAvailable, 0x0010200C, "NewMetaDataAvailable") \
337 _m(RefURLAvailable, 0x0010200D, "ReferenceURLAvailable") \
338 \
339 /* TrackList error codes */ \
340 _m(TrackListInvalidTrackIndex, 0x00110001, "Invalid track number") \
341 _m(TrackListError, 0x00110002, "Error encounterd in TrackList Operation") \
342 _m(TrackListItemStillPlayingError, 0x00110003, " Track list item is currently playing") \
343 _m(TrackListNotPlaying, 0x00110004, " Track list is not playing") \
344 \
345 /* nv3p error codes */ \
346 _m(Nv3pUnrecoverableProtocol, 0x00120000, "unrecoverable protocol error") \
347 _m(Nv3pBadPacketType, 0x00120001, "bad packet type") \
348 _m(Nv3pPacketNacked, 0x00120002, "packet was nacked") \
349 _m(Nv3pBadReceiveLength, 0x00120003, "bad receive length") \
350 _m(Nv3pBadReturnData, 0x00120004, "bad return data") \
351 \
352 /* AES error codes */ \
353 _m(AesClearSbkFailed, 0x00130000, "AES clear Secure Boot Key Failed") \
354 _m(AesLockSskFailed, 0x00130001, "AES Lock Secure Storage Key Failed") \
355 _m(AesDisableCryptoFailed, 0x00130002, "AES disable crypto failed") \
356 _m(AesKeyUnWrapFailed, 0x00130003, "AES key UnWrap failed") \
357 _m(AesPermissionDenied, 0x00130004, "AES Permission denied") \
358 \
359 /* Block Driver error codes */ \
360 /* generic error codes */ \
361 _m(BlockDriverIllegalIoctl, 0x00140001, "Block Driver illegal IOCTL invoked") \
362 _m(BlockDriverOverlappedPartition, 0x00140002, "Block Driver partition overlap") \
363 _m(BlockDriverNoPartition, 0x00140003, "Block Driver IOCTL call needs partition create") \
364 _m(BlockDriverIllegalPartId, 0x00140004, "Block Driver operation using illegal partition ID") \
365 _m(BlockDriverWriteVerifyFailed, 0x00140005, "Block Driver write data comparison failed") \
366 /* Nand specific block driver errors */ \
367 _m(NandBlockDriverEraseFailure, 0x00140011, "Nand Block Driver erase failed") \
368 _m(NandBlockDriverWriteFailure, 0x00140012, "Nand Block Driver write failed") \
369 _m(NandBlockDriverReadFailure, 0x00140013, "Nand Block Driver read failed") \
370 _m(NandBlockDriverLockFailure, 0x00140014, "Nand Block Driver lock failed") \
371 _m(NandRegionIllegalAddress, 0x00140015, "Nand Block Driver sector access illegal") \
372 _m(NandRegionTableOpFailure, 0x00140016, "Nand Block Driver region operation failed") \
373 _m(NandBlockDriverMultiInterleave, 0x00140017, "Nand Block Driver multiple interleave modes") \
374 _m(NandTagAreaSearchFailure, 0x0014001C, "Nand Block Driver tag area search failed") \
375 /* EMMC specific block driver errors */ \
376 _m(EmmcBlockDriverLockNotSupported, 0x00140101, "EMMC Block Driver Lock operation not supported") \
377 _m(EmmcBlockDriverLockUnaligned, 0x00140102, "EMMC Block Driver Lock area size or location unaligned") \
378 _m(EmmcBlockDriverIllegalStateRead, 0x00140103, "EMMC Block Driver Read when state is not TRANS") \
379 _m(EmmcBlockDriverIllegalStateWrite, 0x00140104, "EMMC Block Driver Write when state is not TRANS") \
380 _m(EmmcCommandFailed, 0x00140105, "EMMC Block Driver command failed to execute") \
381 _m(EmmcReadFailed, 0x00140106, "EMMC Block Driver Read failed") \
382 _m(EmmcWriteFailed, 0x00140107, "EMMC Block Driver Write failed") \
383 _m(EmmcBlockDriverEraseFailure, 0x00140108, "Emmc Block Driver erase failed") \
384 _m(EmmcBlockDriverIllegalAddress, 0x00140109, "Emmc Block Driver address is illegal or misaligned") \
385 _m(EmmcBlockDriverLockFailure, 0x0014010A, "Emmc Block Driver lock failed") \
386 _m(EmmcBlockDriverBlockIsLocked, 0x0014010B, "Emmc Block Driver Accessed block is locked") \
387 /* Mipi Hsi error codes */ \
388 _m(MipiHsiTxFifoEmpty, 0x00140200, "TX_FIFO_CNT in Status and Interrupt Identification Register is zero") \
389 _m(MipiHsiRxFifoEmpty, 0x00140201, "RX_FIFO_CNT in Status and Interrupt Identification Register is zero") \
390 _m(MipiHsiBusy, 0x00140202, "Mipi Hsi controller is busy") \
391 _m(MipiHsiHandleNotConfigured, 0x00140203, "Mipi Hsi handle is not configured") \
392 _m(MipiHsiTransmitError, 0x00140204, "Mipi Hsi transmit error - check the write function ") \
393 _m(MipiHsiReceiveError, 0x00140205, "Mipi Hsi receive error - check the read function") \
394 _m(MipiHsiTransferIncomplete, 0x00140206, "Mipi Hsi requested number of packets are not transferred") \
395 /* Nor specific block driver errors */ \
396 _m(NorBlockDriverEraseFailure, 0x00140301, "Nor Block Driver erase failed") \
397 _m(NorBlockDriverWriteFailure, 0x00140302, "Nor Block Driver write failed") \
398 _m(NorBlockDriverReadFailure, 0x00140303, "Nor Block Driver read failed") \
399 _m(NorBlockDriverLockFailure, 0x00140304, "Nor Block Driver lock failed") \
400 _m(NorRegionIllegalAddress, 0x00140305, "Nor Block Driver sector access illegal") \
401 _m(NorRegionTableOpFailure, 0x00140306, "Nor Block Driver region operation failed") \
402 _m(NorBlockDriverMultiInterleave, 0x00140307, "Nor Block Driver multiple interleave modes") \
403 \
404 /* Shader compiler error codes */ \
405 _m(SCCompileFail, 0x00150000, "Source shader compilation failed") \
406 \
407 /* Drm error codes */ \
408 _m(DrmFailure, 0x00160000, "Drm - Failed") \
409 _m(DrmInvalidArg, 0x00160001, "Drm Invalid arguments passed") \
410 _m(DrmOutOfMemory, 0x00160002, "Drm-Memory insufficent") \
411 _m(DrmFileNotFound, 0x00160003, "Drm - File not found") \
412 _m(DrmBufferTooSmall, 0x00160004, "Drm- Buffer size passed is too small") \
413 _m(DrmInvalidLicense, 0x00160005, "Drm - Invalid license") \
414 _m(DrmLicenseExpired, 0x00160006, "Drm- License expired") \
415 _m(DrmRightsNotAvailable, 0x00160007, "Drm-Right are not available") \
416 _m(DrmLicenseNotFound, 0x00160008, "Drm - License it not found") \
417 _m(DrmInvalidBindId, 0x00160009, "Drm - Invalid Bind Id ") \
418 _m(DrmVersionNotSupported, 0x0016000A, "Drm-Unsupported Version") \
419 _m(DrmMeteringNotSupported, 0x0016000B, "Drm- Metering is not supported") \
420 _m(DrmDecryptionFailed, 0x0016000C, "Drm- Decryption failed") \
421 \
422 /* System Update error codes */ \
423 _m(SysUpdateInvalidBLVersion, 0x00170000, "NvSysUpdate InvalidBL Version") \
424 _m(SysUpdateInvalidChecksum, 0x00170001, "NvSysUpdate Invalid Checksum") \
425 _m(SysUpdateBLUpdateNotAllowed, 0x00170002, "NvSysUpdate BL update not allowed") \
426 \
427 /* Nor error codes */ \
428 _m(NorReadFailed, 0x00180000, "Nor Read failed") \
429 _m(NorProgramFailed, 0x00180001, "Nor Program failed") \
430 _m(NorOperationFailed, 0x00180002, "requested Nor operation failed") \
431 _m(NorBusy, 0x00180003, "Nor operation incomplete and is busy") \
432 _m(NorNotOpened, 0x00180004, "Nor driver not opened") \
433 _m(NorAlreadyOpened, 0x00180005, "Nor driver is already opened") \
434 _m(NorBadOperationRequest, 0x00180006, "status for wrong Nor operation is requested ") \
435 _m(NorCommandQueueError, 0x00180007, "Command queue error occured ") \
436 _m(NorReadEccFailed, 0x00180008, "Read with ECC resulted in uncorrectable errors") \
437 _m(NorFlashNotSupported, 0x00180009, "Nor flash on board is not supported by the ddk") \
438 _m(NorLockFailed, 0x00180010, "Nor flash lock feature failed") \
439 _m(NorWriteFailed, 0x00180011, "Nor Write failed") \
440 _m(NorBadState, 0x00180012, "Indicates an invalid state") \
441 _m(NorBlockIsLocked, 0x00180013, "Indicates the block is locked") \
442 _m(NorEraseFailed, 0x00180014, "Nor Erase failed") \
443 \
444 /* NvBDKTest error codes */ \
445 _m(BDKTestRegistrationCleanupFailed, 0x00190000, "Cleanup of default registration failed") \
446 _m(BDKTestCreateDefaultRegFailed , 0x00190001, "Create Default Registration failed") \
447 _m(BDKTestUnknownTest, 0x00190002, "An Unknown test is being run or registered.") \
448 _m(BDKTestUnknownSuite, 0x00190003, "An Unknown suite is being run or registered.") \
449 _m(BDKTestDupeTest, 0x00190004, "Test already exists.Duplicate test being run or registered") \
450 _m(BDKTestDupeSuite, 0x00190005, "Suite already exists.Duplicate test being run or registered") \
451 _m(BDKTestUnknownType, 0x00190006, "Request for a type of test which has not been registered") \
452 _m(BDKTestNoRegistration, 0x00190007, "Test Registry not initalized") \
453 _m(BDKTestNoSuite, 0x00190008, "No test suites registered") \
454 _m(BDKTestNoTest, 0x00190009, "No tests registered") \
455 _m(BDKTestNullTestFuncPtr, 0x00190010, "Test function pointer is null") \
456 \
457 /* NvDiag error codes */ \
458 _m(DiagDataComparisonMismatch, 0x00200000, "Data Comparison failure") \
459 \
460 /*fuse error codes */ \
461 _m(InvalidCombination, 0x00210000, "SBK & Device Key fuses cant be burned with security_mode fuse") \
462 _m(SecurityModeBurn, 0x00210001, "security_mode fuse should be the last fuse to be burned") \
463 \
464 /*se error codes */ \
465 _m(RsaPssVerify_Inconsistent, 0x00310000, "Inconsistency in verification during RsaPss") \
466 \
467 /* Android Verified Boot Flow Error Codes */ \
468 _m(ValidationError, 0x00410000, "Signature validation failed") \
469 _m(DataFlushed, 0x00410001, "Write-protected data overwritten") \
470 _m(DataLengthOverflow, 0x00410002, "Length doesn't fit in type size_t") \
471 _m(CorruptImage, 0x00410003, "Corrupt image") \
472 \
473 /* PVA error codes */ \
474 _m(PVAEngineBadState, 0x00420000, "PVA engine in bad state") \
475 _m(PVAKMDBuffPinSlotsExceeded, 0x00420001, "PVA KMD does not have any free slots for buffer pinning") \
476 _m(PVAKMDBuffPinFailInMemService, 0x00420002, "PVA KMD encountered a failure in memory service while pinning the buffers") \
477 _m(PVAVPUAuthFailed, 0x00420003, "PVA encountered a failure in authenticating VPU executable") \
478 \
479 /* DLA error codes [0x00430000 - 0x0043FFFF] */ \
480 _m(DLAInsufficientLocalDRAM, 0x00430001, "Configured local dram insufficient for compilation") \
481 _m(DLAInsufficientGlobalDRAM, 0x00430002, "Configured global dram insufficient for compilation") \
482 _m(DLALoadableVersionMismatch, 0x00430003, "DLA Loadable version mismatch") \
483 _m(DLARuntimeVersionMismatch, 0x00430004, "DLA Runtime version mismatch") \
484 _m(DLAFirmwareVersionMismatch, 0x00430005, "DLA Firmware version mismatch") \
485 _m(DLAHardwareVersionMismatch, 0x00430006, "DLA Hardware version mismatch") \
486 _m(DLAEmulatorVersionMismatch, 0x00430007, "DLA Emulator version mismatch") \
487 \
488 /* nvrm_gpu / nvrm_gpu_sc error codes (non-fatal) */ \
489 _m(GpuInvalidHandle, 0x00440000, "Invalid handle") \
490 _m(GpuHwError, 0x00440001, "Hardware error") \
491 _m(GpuInvalidDvmsState, 0x00440002, "API call not available due to DVMS state") \
492 \
493 /* nvrm_gpu / nvrm_gpu_sc error codes (fatal) */ \
494 _m(GpuFatalLockdown, 0x00441000, "Lockdown in effect due to a previous fatal error") \
495 _m(GpuFatalConsistencyError, 0x00441001, "State consistency error") \
496 _m(GpuFatalLogicError, 0x00441002, "Internal logic error") \
497 _m(GpuFatalOsError, 0x00441003, "Fatal OS error") \
498 _m(GpuFatalUncheckedException, 0x00441004, "Unchecked exception encountered") \
499 _m(GpuFatalOutOfOrderFree, 0x00441005, "Cannot free: reference count > 0")
500 
502 /* ^^^ ADD ALL NEW ERRORS RIGHT ABOVE HERE ^^^ */
503 
504 #endif /* End of INCLUDED_NVERRVAL_H */
505