$ Copyright 1996-2003 Sun Microsystems, Inc.  All rights reserved.
$ Use is subject to license terms.

$ #ident  "@(#)l2sramtest.msg  1.4  03/02/20  SMI"

$ Message ID ranges:
$ VERBOSE  1 ~ 1999
$ INFO     2000 ~ 3999
$ WARNING  4000 ~ 5999
$ ERROR    6000 ~ 7999
$ FATAL    8000 ~ 9998
$ 9999 is reserved by test library for old style messages.
$ 0 is reserved and is an invalid message for all tests.

$ *********************************************
$ VERBOSE messages
$ *********************************************
$ L2_START_MSG 1
1	"Initiating L2 cache thrashing test  ..."
$ L2_PASSCOUNT_MSG 2
2       "Thrash set to %lu iterations"
$ L2_WRVCYLE_MSG 3
3       "Thrashing L2 cache ..."
$ L2_END_MSG 4
4       "L2 cache thrashing complete"
$ L2_CPCLIB_MSG	5
5	"SUNWcpc, SUNWcpcu(x) packages not installed. Performance counters will not be available."
$ RAND_SWAP_START 6
6	"Start l2sram random swapping pattern test"
$ TEST_PATTERNS 7
7	"Pattern = %lX, Inverse Pattern = %lX"
$ RAND_SWAP_END 8
8	"End l2sram random swapping pattern test"
$ MARCH_TEST_ROW_STRIDE_START 9
9	"Start L2 March test with row striding"
$ MARCH_TEST_ROW_STRIDE_END 10
10	"End L2 March test with row striding"
$ MARCH_TEST_COLUMN_STRIDE_START 11 
11	"Start L2 March test with column striding"
$ MARCH_TEST_COLUMN_STRIDE_END 12 
12	"End Start L2 March test with column striding"
$ MARCH_TEST_LINE_STRIDE_START 13 
13	"Start L2 30N March test with line-length striding"
$ MARCH_TEST_LINE_STRIDE_END 14 
14	"End L2 30N March test with line-length striding"
$ MEM_READ_START 15
15	"Start memory reading thread"	
$ MEM_READ_END 16
16	"End memory reading thread"
$ MARCH_STRIDE_TEST_START 17 
17	"Start L2 30N March with variable stride length"
$ MARCH_STRIDE_TEST_END 18 
18	"End L2 30N March test with variable stride length"
$ INTERCONNECT_TEST_START 19 
19	"Start CPU-Ecache interconnect stress"
$ INTERCONNECT_TEST_END 20 
20	"End CPU-Ecache interconnect stress"
$ START_ECC_MONITOR 21
21	"Start ECC Monitor"
$ SSO_PATTERN 22
22	"SSO pattern generated: %llX\n"

23	"Desirable count range [1 .. 1024], Defaulting to count = %d"
$ L2_CPCLIB_X86_MSG 24
24	"libcpc libraries not fully supported on x86 platform. CPC is not enabled."\n
$ L2_MSG_CPC_INIT_FAILED 25
25 	"CPC interface initialization failed; %s: %s\n Performance counter will not be sampled"
$ L2_CPC_COUNTINFO 	26
26	"L2 cache %s%s %llu, %s %llu for Processor with cpuid = %d"
$ ASSOC_TEST_START	27
27	"Start March test with set striding"
$ ASSOC_TEST_END	28
28	"End March test with set striding"

$ L2_DEFAULT_ALLCORES   30
30	"Core option not selected. Default considered."
$ BANK_TEST_START       31
31	"Start Bankwide stress test"
$ BANK_TEST_END         32
32	"End Bankwide stress test"
$ L2_ISOLATION_TEST_BEGIN	33
33	"Isolation test started on core %d"
$ L2_ISOLATION_TEST_END		34
34	"Isolation test finished on core %d"
$ L2_TAG_TEST_BEGIN		35
35	"Cache Tag test started on core %d with %d iterations"
$ L2_TAG_TEST_END		36	
36	"Cache Tag test ended on core %d"
$ L2_TAG_TEST_LOWER_BEGIN	37
37	"Testing for lower bits of tag started on cpu %d"
$ L2_TAG_TEST_LOWER_END	38
38	"Testing for lower bits of tag ended on cpu %d"
$ L2_TAG_TEST_HIGHER_BEGIN	39
39	"Testing for higher bits of tag started on cpu %d"
$ L2_TAG_TEST_HIGHER_END	40
40	"Testing for higher bits of tag ended on cpu %d"

$ L2_CALLBACK_MSG	1999
1999 "Message received from VTS kernel: Type %d %s\n "
$L2_LOCK_INFO
35 	"Starting l2sram subtests on cpu = %d\n"
$ *****************************************************
$ INFO messages (includeing INFO, CONSOLE, and LOGFILE)
$ No double quotes (" ") is needed for INFO messages.
$ *****************************************************
$ TEST_USAGE_MSG_SPARC 2000
2000	%s specific arguments: \n\
	dev=l2sram,count=[1..1024],tag=[1..1024],em=[Enabled,Disabled],threshold=[0..255],coresync=[Enabled,Disabled] \n\
default: dev=l2sram,tag=1,count=8,em=Disabled,threshold=1,coresync=Disabled \n
$ L1_CONNECT_MSG 2001
2001	"Connected : CPU Level 1 cache : size %d KBytes line %d bytes associativity %d"
$ L1_DISCONNECT_MSG 2002
2002	"Not Connected : CPU Level 1 cache"
$ L2_ECC_SUMMARY 2003
2003	\nECC error summary (After reaching the Threshold)\n\
Found %d correctable ECC errors during the current pass\n\
Will Terminate l2sramtest instance#%d through pass#%d\n\
Test will  continue to run if run_on_error! is set system wide\n\n\t%s
$ L2_FMA_ERR_MSG        2004
2004  %s 
$ TEST_USAGE_MSG_x86 2005
2005	%s specific arguments: \n\
	dev=l2sram,count=[1..1024],cpc=[Enabled,Disabled] \n\
default: dev=l2sram,count=8,cpc=Disabled \n
$ TEST_USAGE_MSG_NIAGARA 2006
2006	%s specific arguments: \n\
	dev=l2sram,count=[1..1024],em=[Enabled,Disabled],threshold=[0..255],core=[0+1+2+...] \n\
default: dev=l2sram,count=8,em=Disabled,threshold=1 \n

$ DEBUG

2070	"Associativity-March testing : cpu %d, core %d, Thread %d"
2071	"Bank testing : cpu %d, core %d, Thread %d, Bank %d"
2072	"Associativity testing : Thread %d, StartAddress %p"
2073	"Want Test : core %d"
2074	"Core %d is an invalid coreid, testing will not be performed in this core"
2075	"CPU %d selected in core %d"
2076	"Number of chips present in the system is %d"
2079	"chip_id %d :  core_id %d - cpu_id %d"
2080	"Failed to allocate ISM : Trying to allocate from heap..."
2081	"Buffer start address %p"
2082	"Stress test using all cores"
2083	"cache %d line %d loops %d testsize1 0x%x addr1 %p testsize2 0x%x addr2 %p"
2084	"Start stress test with all cores"
2085	"End stress test with all cores"
$ L2_SHMALLOC_FAIL	2086
2086	"Failed to allocate ISM : System call %s Failed : %s"
$ L2_SHMREM_FAIL	2087
2087	"Failed to remove ISM : System call %s Failed : %s"
$ L2_PHYS_ALLOC	2088
2088	"Number of physical pages allocated for testing: %d". 
$ L2_TAG_TEST_MATCH	2089
2089	"Address matching is found for cpu %d with %d/22 tag bits matching. The corresponding physical addresses are: %llx & %llx\n"
$ L2_TAG_LOWER_TF_START 2090
2090	"Transition Fault Testing of Lower Order Bits of Tag Started".
$ L2_TAG_LOWER_TF_END 2091
2091	"Transition Fault Testing of Lower Order Bits of Tag Ended".
$ L2_TAG_LOWER_CF_START 2092
2092	"Coupling Fault Testing of Lower Order Bits of Tag Started".
$ L2_TAG_LOWER_CF_END 2093
2093	"Coupling Fault Testing of Lower Order Bits of Tag Ended".
$ L2_TAG_HIGHER_TF_START 2094
2094	"Transition Fault Testing of Higher Order Bits of Tag Started".
$ L2_TAG_HIGHER_TF_END 2095
2095	"Transition Fault Testing of Higher Order Bits of Tag Ended".
$ L2_TAG_HIGHER_CF_START 2096
2096	"Coupling Fault Testing of Higher Order Bits of Tag Started".
$ L2_TAG_HIGHER_CF_END 2097
2097	"Coupling Fault Testing of Higher Order Bits of Tag Ended".

3000	"End testing on CPUs in Core 0"
3001	"End testing on CPUs in Core 1"
3002	"End testing on all online CPUs "
3003	"Total CPUs - %d , Core-0 CPUs - %d , Core-1 CPUs %d"
3004	"Core-0 CPU list"
3005	"Core-1 CPU list"
3006	%d   -  cpu-%d
3007	"For CPU ID %d, startAddress = 0x%llx, size = %lld"
3008	"startAddress = 0x%llx"
3009	"Starting March C- for all 5 strides"
3010	"Marching with stride = %d"
3011	"Starting March MATS+ for all 5 strides"
3012	"Starting modified March SCAN for all 5 strides"



$ *****************************************************
$ WARNING messages
$ *****************************************************
$ L2_ALLOCERROR_MSG 4001
4001    "failed to allocate thrash test buffer"
$ L2_MALLOCERR_MSG 4002
4002	"Failed to allocate stress test buffer"
$ PROC_BIND_FAIL 4003 
4003	"Processor binding failed for CPU%d: %s. It will not be tested"
$ MEM_THR_FAIL 4004
4004	"Memory read thread creation failed."
$ MEM_THR_KILL_FAIL 4005
4005	"Failure to kill memory reading thread."
$ THR_CREATE_FAIL 4006
4006	"Failed to create l2sram thread on CPU%d. It will not be tested"

4007	"Test lib call %s failure on cpu %d: Return value %d: %s"

$ L2_PATTERR_MSG 4008
4008	"Failed SSO pattern generation."
4009	"Mismatch in number of cores"
4011	"System call %s Failed : %s"

$ L2_STRESS_CORE_FAIL  4012
4012	"%s Failed on cpu %d, Return value %d."

$ L2_BIND_TO_CPU_FAIL  4013
4013	"Thread %s should bind to CPU %d, but it is bound to CPU %d"

4014	"vts lib call %s failure on cpu %d: %s.\nProbable_Cause(s): <Dynamic Reconfiguration(DR) was carried out in a Starcat system.>\nRecommended_Action(s): <Reboot the system and try the test again.> "

4015	"Invalid Coreid %d"
4016	"Test lib call %s failure on cpu %d: Return value %d: %s" 

$ L2_TAG_TEST_LOWER_MUNLOCK_FAIL	4017	
4017	"munlock failed while testing for lower bits of the Tag on CPU %d"
$ L2_TAG_TEST_LOWER_MUNMAP_FAIL 	4018	
4018	"munmap failed while testing for lower bits of the Tag on CPU %d"
$ L2_TAG_TEST_LOWER_MLOCK_FAIL	4019	
4019	"mlock failed while testing for lower bits of the Tag on CPU %d"

4020	"Testlib call %s failure:: %d: %s"

$ ********************************
$ ERROR messages
$ ********************************
$ L2_RVERROR_MSG 6000
6000    "Read/Verify of L2 cache failed"
$ L2_STRESSERROR_MSG 6001
6001    "Stress of L2 cache failed"
$ L1_NOBIND_MSG 6002
6002    "No process bind information specified"
$ L1_BINDFAIL_MSG 6003
6003    "Bind to processor %d failed"
$ STOP_FINDING_ECC_ERROR 6004
6004	"Stopping after finding %d ECC errors \n\
For more details on ECC errors occurred, see system log files"
$ L2_ECC_ERR_FMA        6005
6005	Stopping after finding %d correctable ECC errors \n\
Use \"fmdump -eV\" to get complete listing of the ereport\n\t%s\n
$ L2_TAG_LOWER_ERR_MSG	6006
6006	"Error in L2 cache tags on cpu %d while performing %s checking for lower tag bits.\n\
Pattern at address %llx is %llx. Complementary pattern at address %llx is %llx"
$ L2_TAG_HIGHER_ERR_MSG	6007
6007	"Error in L2 cache tags on cpu %d while performing %s checking for higher tag bits.\n\
Pattern at address 0x%llx is 0x%llx. Complementary pattern at address 0x%llx is 0x%llx"

$ *******************************
$ FATAL messages
$ *******************************
$ L2_ARGERROR_MSG 8000
8000   "Please enter an appropriate value, %s=?"
$ KVM_OPEN_FAIL 8002
8002	"System call kvm_open failed: %s"
$ SYMBOL_NOT_FND 8003
8003	"Symbol %s not found in Solaris kernel image"
$ FILE_OPEN_FAIL 8004
8004	"Could not open file /dev/mem: %s"
$ KVM_READ_FAIL 8005
8005	"Unable to read \"size\" and \"address\" in memory list"
$ NO_PHYS_MEM 8006
8006	"No physical memory found"
$ MALLOC_FAIL 8007
8007	"Memory allocation failure"
$ FILE_SEEK_FAIL 8008
8008	"llseek call failed to address 0x%llx: %s"
$ FILE_READ_FAIL 8009
8009	"read() to address 0x%llx failed: %s"
$ THR_DB_INIT_FAIL 8010
8010	"Thread database initialization failed."
$ THR_WAIT_FAIL 8011
8011	"Thread joining of E$ threads failed."

8012	"System call %s failure: %s "
$ VTS_TLIB_FAIL 8013
8013	"VTS Testlib Interface %s Failed; Return value is %d: %s "
$ CPUID_ERR_MSG 8014
8014	"Cannot identify the CPU. x86 l2sramtest supported only on Intel and AMD processors."
8016	"create_cmt_list() failed: Failed to intialize cmt data base"
8015    " Test call %s failed on cpu id = %d"

$ L2_TAG_TEST_LOWER_MMAP_FAIL	8017	
8017	"mmap failed while testing for lower bits of the Tag on CPU %d"

8018	"Library call %s failure: %s "


$ *********************************************************
$ Messages for msg_monitor library
$ Adding this here to avoid install rules in the library 
$ Unclear if the same test binary can have messages spread
$ across two .msg files
$
$ All messages are such that it is unique to L2 test. 
$**********************************************************
$------------------
$ ERROR messages
$------------------
$ MSG_NO_RULE_FILE      7000
7000    "No rule file and no default matching function specified"
$ MSG_RULE_FILE_ERROR   7001
7001    "Rule file %s error and no default matching function specified"
$ MSG_LOG_FILE_OPEN     7002
7002    "Unable to open the message log file %s"
$ MSG_LOG_IOCTL_FAIL    7003
7003    "Message log IOCTL (I_STR) failed"
$ MSG_THR_CREATE_FAIL   7004
7004    "Thread create failed : rc %x errno %x"
$ MSG_MATCH_ERROR       7005
7005    "%s"
