forked from RandomDumpYard/kernel_realme_rmx1805
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpatch_Kconfig
1908 lines (1403 loc) · 46.1 KB
/
mpatch_Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
menu "Mstar Patch Apply (Only for control patch apply to kernel or not)"
menu "Platform Porting layer"
config MP_PLATFORM_ARCH_GENERAL
bool "General Config For ARCH"
default y
config MP_PLATFORM_ARM
bool "For ARM only"
default y
config MP_PLATFORM_MIPS
bool "For MIPS only"
default y
config MP_PLATFORM_PM
bool "For PM Power Off"
default y
config MP_PLATFORM_ARM_ERRATA_775420
bool "ARM errata_775420: A data cache maintenance operation which aborts, might lead to deadlock"
default y
config MP_PLATFORM_ARM_ERRATA_835769
bool "ARM errata_835769: 64-bit multiply-accumulate instruction in AArch64 state to generate an incorrect result"
default n
config MP_PLATFORM_ARM_64bit_PORTING
bool "Mstar ARM64 porting modification"
default y
config MP_PLATFORM_ARM_32bit_PORTING
bool "Mstar ARM32 porting modification"
default y
config MP_PLATFORM_ARM_64bit_BOOTARGS_NODTB
bool "parsing bootargs without DTB"
default n
config MP_PLATFORM_MSTAR_LEGANCY_INTR
bool "For Second Level Interrupt"
default y
config MP_PLATFORM_SW_PATCH_L2_SRAM_RMA
bool "For L2 Sram RMA"
default n
config MP_PLATFORM_MIPS74K_TIMER
bool "Increase waiting time for timer to response"
default y
config MP_PLATFORM_ARM_MSTAR_ETM
bool "For ARM ETM patch"
default y
config MP_PLATFORM_INT_1_to_1_SPI
bool "Interupts connect to gic spi separately"
default n
config MP_PLATFORM_FORCE_INT_BALANCE
bool "Distribute interrupt to multi cores"
default n
config MP_PLATFORM_ARM_PMU
bool "For ARM PMU"
default y
config MP_PLATFORM_LZMA_BIN_COMPRESSED
bool "Enable lzma bin compressed suppor"
default y
config MP_PLATFORM_CPU_SETTING
bool "Enable DVFS(dynamic voltage frequency scaling) function"
default y
config MP_PLATFORM_T_SENSOR_OBSERVATION
bool "Use kthread to observe the temperature difference"
default n
config MP_PLATFORM_FIXME
bool "PLEASE FIX ME"
default y
config MP_PLATFORM_FIQ_IRQ_HYP
bool "the extra irq and fiq which is designed for CA12"
default n
config MP_PLATFORM_UTOPIA2_INTERRUPT
bool "Support utopia2 interrupt framework"
default n
config MP_PLATFORM_UTOPIA2K_EXPORT_SYMBOL
bool "Export function for utopia2k"
default n
config MP_PLATFORM_ARM_MEMORY_HOTPLUG
bool "Add lx_mem2 to high mem page after SN starting"
default n
config MP_PLATFORM_ARM64_DTB_IRQNUM_CHECK_OFF
bool "turn off the dtb irq number check to avoid irq number which is bigger than 256 registering failed"
default y
config MP_PLATFORM_FRC_MAPPING
bool "mapping 2MB for FRC usage, this is used for manhattan for now"
default n
config MP_PLATFORM_XC_EXT_MAPPING
bool "mapping 2MB for XC_EXT usage(from mooney), this is used for mooney for now"
default n
config MP_PLATFORM_ARM64_POWER_CONSUMPTION
bool "This code can test ARM64 power consumption for CAE"
default n
config MP_PLATFORM_SINGLE_CORE_PRIVATE_TIMER
bool "For no smp system, add support of twd timer"
default n
config MP_PLATFORM_PIPE_FLUSH_DOUBLE_CHECK
bool "Dummy read for flushing pipe correctness"
default n
config MP_PLATFORM_GIC_SET_MULTIPLE_CPUS
bool "Use affinity hint to allow multiple CPUs for IRQ, depends on ARM_GIC && SMP. If this option is enabled, affinity is also set to all cpus present in affinity_hint and requested masks."
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_PLATFORM_ARCH_GENERAL_DEBUG
bool "(Debug) General Config For ARCH"
depends on MP_PLATFORM_ARCH_GENERAL
default n
config MP_PLATFORM_ARM_DEBUG
bool "(Debug) For ARM only"
depends on MP_PLATFORM_ARM
default n
config MP_PLATFORM_MIPS_DEBUG
bool "(Debug) For MIPS only"
depends on MP_PLATFORM_MIPS
default n
config MP_PLATFORM_PM_DEBUG
bool "(Debug) For PM Power Off"
depends on MP_PLATFORM_PM
default n
config MP_PLATFORM_ARM_ERRATA_775420_DEBUG
bool "(Debug) ARM errata_775420: A data cache maintenance operation which aborts, might lead to deadlock"
depends on MP_PLATFORM_ARM_ERRATA_775420
default n
config MP_PLATFORM_ARM_ERRATA_835769_DEBUG
bool "(Debug) ARM errata_835769: 64-bit multiply-accumulate instruction in AArch64 state to generate an incorrect result"
depends on MP_PLATFORM_ARM_ERRATA_835769
default n
config MP_PLATFORM_ARM_64bit_PORTING_DEBUG
bool "(Debug) Mstar ARM64 porting modification"
depends on MP_PLATFORM_ARM_64bit_PORTING
default n
config MP_PLATFORM_ARM_32bit_PORTING_DEBUG
bool "(Debug) Mstar ARM32 porting modification"
depends on MP_PLATFORM_ARM_32bit_PORTING
default n
config MP_PLATFORM_ARM_64bit_BOOTARGS_NODTB_DEBUG
bool "(Debug) parsing bootargs without DTB"
depends on MP_PLATFORM_ARM_64bit_BOOTARGS_NODTB
default n
config MP_PLATFORM_MSTAR_LEGANCY_INTR_DEBUG
bool "(Debug) For Second Level Interrupt"
depends on MP_PLATFORM_MSTAR_LEGANCY_INTR
default n
config MP_PLATFORM_SW_PATCH_L2_SRAM_RMA_DEBUG
bool "(Debug) For L2 Sram RMA"
depends on MP_PLATFORM_SW_PATCH_L2_SRAM_RMA
default n
config MP_PLATFORM_MIPS74K_TIMER_DEBUG
bool "(Debug) Increase waiting time for timer to response"
depends on MP_PLATFORM_MIPS74K_TIMER
default n
config MP_PLATFORM_ARM_MSTAR_ETM_DEBUG
bool "(Debug) For ARM ETM patch"
depends on MP_PLATFORM_ARM_MSTAR_ETM
default n
config MP_PLATFORM_INT_1_to_1_SPI_DEBUG
bool "(Debug) Interupts connect to gic spi separately"
depends on MP_PLATFORM_INT_1_to_1_SPI
default n
config MP_PLATFORM_ARM_PMU_DEBUG
bool "(Debug) For ARM PMU"
depends on MP_PLATFORM_ARM_PMU
default n
config MP_PLATFORM_LZMA_BIN_COMPRESSED_DEBUG
bool "(Debug) Enable lzma bin compressed suppor"
depends on MP_PLATFORM_LZMA_BIN_COMPRESSED
default n
config MP_PLATFORM_CPU_SETTING_DEBUG
bool "(Debug) Enable DVFS(dynamic voltage frequency scaling) function"
depends on MP_PLATFORM_CPU_SETTING
default n
config MP_PLATFORM_T_SENSOR_OBSERVATION_DEBUG
bool "(Debug) Use kthread to observe the temperature difference"
depends on MP_PLATFORM_T_SENSOR_OBSERVATION
default n
config MP_PLATFORM_FIXME_DEBUG
bool "(Debug) PLEASE FIX ME"
depends on MP_PLATFORM_FIXME
default n
config MP_PLATFORM_FIQ_IRQ_HYP_DEBUG
bool "(Debug) the extra irq and fiq which is designed for CA12"
depends on MP_PLATFORM_FIQ_IRQ_HYP
default n
config MP_PLATFORM_UTOPIA2_INTERRUPT_DEBUG
bool "(Debug) Support utopia2 interrupt framework"
depends on MP_PLATFORM_UTOPIA2_INTERRUPT
default n
config MP_PLATFORM_UTOPIA2K_EXPORT_SYMBOL_DEBUG
bool "(Debug) Export function for utopia2k"
depends on MP_PLATFORM_UTOPIA2K_EXPORT_SYMBOL
default n
config MP_PLATFORM_ARM_MEMORY_HOTPLUG_DEBUG
bool "(Debug) Add lx_mem2 to high mem page after SN starting"
depends on MP_PLATFORM_ARM_MEMORY_HOTPLUG
default n
config MP_PLATFORM_ARM64_DTB_IRQNUM_CHECK_OFF_DEBUG
bool "(Debug) turn off the dtb irq number check to avoid irq number which is bigger than 256 registering failed"
depends on MP_PLATFORM_ARM64_DTB_IRQNUM_CHECK_OFF
default n
config MP_PLATFORM_FRC_MAPPING_DEBUG
bool "(Debug) mapping 2MB for FRC usage, this is used for manhattan for now"
depends on MP_PLATFORM_FRC_MAPPING
default n
config MP_PLATFORM_XC_EXT_MAPPING_DEBUG
bool "(Debug) mapping 2MB for XC_EXT usage(from mooney), this is used for mooney for now"
depends on MP_PLATFORM_XC_EXT_MAPPING
default n
config MP_PLATFORM_ARM64_POWER_CONSUMPTION_DEBUG
bool "(Debug) This code can test ARM64 power consumption for CAE"
depends on MP_PLATFORM_ARM64_POWER_CONSUMPTION
default n
config MP_PLATFORM_SINGLE_CORE_PRIVATE_TIMER_DEBUG
bool "(Debug) For no smp system, add support of twd timer"
depends on MP_PLATFORM_SINGLE_CORE_PRIVATE_TIMER
default n
config MP_PLATFORM_PIPE_FLUSH_DOUBLE_CHECK_DEBUG
bool "(Debug) Dummy read for flushing pipe correctness"
depends on MP_PLATFORM_PIPE_FLUSH_DOUBLE_CHECK
default n
config MP_PLATFORM_GIC_SET_MULTIPLE_CPUS_DEBUG
bool "(Debug) Use affinity hint to allow multiple CPUs for IRQ, depends on ARM_GIC && SMP. If this option is enabled, affinity is also set to all cpus present in affinity_hint and requested masks."
depends on MP_PLATFORM_GIC_SET_MULTIPLE_CPUS
default n
endmenu
menu "NAND Driver Porting layer"
config MP_NAND_UBI
bool "Patch for UBI"
default y
config MP_NAND_MTD
bool "Patch for MTD"
default y
config MP_NAND_UBIFS
bool "Patch for UBIFS"
default y
config MP_NAND_Spansion
bool "Patch for specific customers"
default y
config MP_NAND_BBT
bool "patch for the security mechanism of bbt"
default y
config MP_NAND_BBT_SIZE
bool "add bbt size compatibility and pair page effect"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_NAND_UBI_DEBUG
bool "(Debug) Patch for UBI"
depends on MP_NAND_UBI
default n
config MP_NAND_MTD_DEBUG
bool "(Debug) Patch for MTD"
depends on MP_NAND_MTD
default n
config MP_NAND_UBIFS_DEBUG
bool "(Debug) Patch for UBIFS"
depends on MP_NAND_UBIFS
default n
config MP_NAND_Spansion_DEBUG
bool "(Debug) Patch for specific customers"
depends on MP_NAND_Spansion
default n
config MP_NAND_BBT_DEBUG
bool "(Debug) patch for the security mechanism of bbt"
depends on MP_NAND_BBT
default n
config MP_NAND_BBT_SIZE_DEBUG
bool "(Debug) add bbt size compatibility and pair page effect"
depends on MP_NAND_BBT_SIZE
default n
endmenu
menu "USB Driver Patch"
config MP_USB_MSTAR
bool "MSTAR USB Porting"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_USB_MSTAR_DEBUG
bool "(Debug) MSTAR USB Porting"
depends on MP_USB_MSTAR
default n
endmenu
menu "USB STR patch"
config MP_USB_STR_PATCH
bool "MSTAR Patch for usb str"
default y
config MP_EHCI_PORT_QUICK_RESUME
bool "Quick resume EHCI port but not reset"
depends on SUSPEND
default n
help
Since some EHCI root hub ports may not lose power during STR,
to reduce the system response time, we needn't reset the EHCI ports
config MP_EHCI_QUICK_RESUME_PORT_MASK
hex "EHCI root hub PORT mask bit4 ~ bit0 for port5 ~ port1"
depends on MP_EHCI_PORT_QUICK_RESUME
default 0x0
help
Since there may be up to 5 ports in DTS, the mask range should be 0x00 ~ 0x1F.
Specify the EHCI controller port mask to decide which port shouldn't lose power during STR.
menu "-------------------Debug Options-------------------"
endmenu
config MP_USB_STR_PATCH_DEBUG
bool "(Debug) MSTAR Patch for usb str"
depends on MP_USB_STR_PATCH
default n
endmenu
menu "EMMC driver patch"
config MP_EMMC_TRIM
bool "TRIM patch for EMMC driver"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_EMMC_TRIM_DEBUG
bool "(Debug) TRIM patch for EMMC driver"
depends on MP_EMMC_TRIM
default n
endmenu
menu "JBD2 Patch"
config MP_JBD2_REMOVE_JOURNAL_CHECKPOINT
bool "Remove the jbd2 journal checkpoint when plug usb abnormal"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_JBD2_REMOVE_JOURNAL_CHECKPOINT_DEBUG
bool "(Debug) Remove the jbd2 journal checkpoint when plug usb abnormal"
depends on MP_JBD2_REMOVE_JOURNAL_CHECKPOINT
default n
endmenu
menu "Print for autotest"
config MP_CHECKPT_BOOT
bool "Add a checkpoint for boottime autotest"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_CHECKPT_BOOT_DEBUG
bool "(Debug) Add a checkpoint for boottime autotest"
depends on MP_CHECKPT_BOOT
default n
endmenu
menu "Fix Compiler Error"
config MP_COMPILER_ERROR
bool "Please Fix Compiler Error"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_COMPILER_ERROR_DEBUG
bool "(Debug) Please Fix Compiler Error"
depends on MP_COMPILER_ERROR
default n
endmenu
menu "MSTAR Android Patch"
config MP_Android_DUMMY_MSTAR_RTC
bool "MSTAR Fake RTC For Android"
default n
config MP_Android_MSTAR_HARDCODE_LPJ
bool "hardcode lpj for china customer"
default n
config MP_Android_MSTAR_RC_MAP_DEFINE
bool "MStar rc map define, depend on CONFIG_MSTAR_IR_INPUT_DEVICE"
default y
config MP_Android_MSTAR_ADJUST_LOW_MEM_KILLER_POLICY
bool "Adjust low_mem_killer's policy for low ram device"
default n
config MP_Android_MSTAR_CHANGE_IRQ_FILE_PERMISSION
bool "Chagne /proc/irq/*/irq permission to 666"
default y
config MP_Android_MSTAR_PER_AN_VERSION_MODIFICATION
bool "For each an_version, do specified modification for it"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_Android_DUMMY_MSTAR_RTC_DEBUG
bool "(Debug) MSTAR Fake RTC For Android"
depends on MP_Android_DUMMY_MSTAR_RTC
default n
config MP_Android_MSTAR_HARDCODE_LPJ_DEBUG
bool "(Debug) hardcode lpj for china customer"
depends on MP_Android_MSTAR_HARDCODE_LPJ
default n
config MP_Android_MSTAR_RC_MAP_DEFINE_DEBUG
bool "(Debug) MStar rc map define, depend on CONFIG_MSTAR_IR_INPUT_DEVICE"
depends on MP_Android_MSTAR_RC_MAP_DEFINE
default n
config MP_Android_MSTAR_ADJUST_LOW_MEM_KILLER_POLICY_DEBUG
bool "(Debug) Adjust low_mem_killer's policy for low ram device"
depends on MP_Android_MSTAR_ADJUST_LOW_MEM_KILLER_POLICY
default n
config MP_Android_MSTAR_CHANGE_IRQ_FILE_PERMISSION_DEBUG
bool "(Debug) Chagne /proc/irq/*/irq permission to 666"
depends on MP_Android_MSTAR_CHANGE_IRQ_FILE_PERMISSION
default n
config MP_Android_MSTAR_PER_AN_VERSION_MODIFICATION_DEBUG
bool "(Debug) For each an_version, do specified modification for it"
depends on MP_Android_MSTAR_PER_AN_VERSION_MODIFICATION
default n
endmenu
menu "MSTAR DEBUG_TOOL"
config MP_DEBUG_TOOL_COREDUMP
bool "Enable COREDUMP Item"
default y
config MP_DEBUG_TOOL_KDEBUG
bool "Enable KDEBUG Item"
default y
config MP_DEBUG_TOOL_OPROFILE
bool "Enable OProfile Item"
default y
config MP_DEBUG_TOOL_PMU_TIMER_MODE
bool "Enable PMU Timer Mode"
default n
config MP_DEBUG_TOOL_VM_USED_SIZE_CHECK
bool "Add a Check for VM Space Usage"
default y
config MP_DEBUG_TOOL_CHANGELIST
bool "Display Kernel Changelist"
default y
config MP_DEBUG_TOOL_MEMORY_USAGE_MONITOR
bool "To monitor the order and migratetype of buddy system pages, and the page_alloc time cose"
default n
config MP_DEBUG_TOOL_MEMORY_USAGE_TRACE
bool "Tools to trace all page allocation, we can used it to analysis mem leak, or trace migration failed pages"
default n
config MP_DEBUG_TOOL_THREAD_CREATE_MONITOR
bool "Trace and print thead info creations"
default n
config MP_DEBUG_TOOL_DUMP_STACK_EACH_CPU
bool "dump each cpu's stack on timer"
default n
config MP_DEBUG_TOOL_SHOW_CPU_WORKQUEUE_INFO
bool "To show the cpu work_queue info(debug for dpm_wd_handler)"
default n
config MP_DEBUG_TOOL_TASK_PRIORITY
bool "To detect task priority change"
default y
config MP_DEBUG_TOOL_LOG_PREFIX
bool "Enable DEBUG prefix"
default n
config MP_DEBUG_TOOL_MSTAR_PAGE_OWNER
bool "Enable a specified pfn owner info"
default n
config MP_DEBUG_TOOL_SYSRQ
bool "Enable Mstar sysrq"
select MAGIC_SYSRQ
default n
config MP_DEBUG_TOOL_SYSRQ_FORCE_ENABLE
hex "Enable magic SysRq key functions by force"
depends on MP_DEBUG_TOOL_SYSRQ
default 0x0
config MP_DISABLE_COREDUMP_FILEMODE_CHECK
bool "Disable coredump file mode check"
default n
menu "-------------------Debug Options-------------------"
endmenu
config MP_DEBUG_TOOL_COREDUMP_DEBUG
bool "(Debug) Enable COREDUMP Item"
depends on MP_DEBUG_TOOL_COREDUMP
default n
config MP_DEBUG_TOOL_KDEBUG_DEBUG
bool "(Debug) Enable KDEBUG Item"
depends on MP_DEBUG_TOOL_KDEBUG
default n
config MP_DEBUG_TOOL_OPROFILE_DEBUG
bool "(Debug) Enable OProfile Item"
depends on MP_DEBUG_TOOL_OPROFILE
default n
config MP_DEBUG_TOOL_PMU_TIMER_MODE_DEBUG
bool "(Debug) Enable PMU Timer Mode"
depends on MP_DEBUG_TOOL_PMU_TIMER_MODE
default n
config MP_DEBUG_TOOL_VM_USED_SIZE_CHECK_DEBUG
bool "(Debug) Add a Check for VM Space Usage"
depends on MP_DEBUG_TOOL_VM_USED_SIZE_CHECK
default n
config MP_DEBUG_TOOL_CHANGELIST_DEBUG
bool "(Debug) Display Kernel Changelist"
depends on MP_DEBUG_TOOL_CHANGELIST
default n
config MP_DEBUG_TOOL_MEMORY_USAGE_MONITOR_DEBUG
bool "(Debug) To monitor the order and migratetype of buddy system pages, and the page_alloc time cose"
depends on MP_DEBUG_TOOL_MEMORY_USAGE_MONITOR
default n
config MP_DEBUG_TOOL_MEMORY_USAGE_TRACE_DEBUG
bool "(Debug) Tools to trace all page allocation, we can used it to analysis mem leak, or trace migration failed pages"
depends on MP_DEBUG_TOOL_MEMORY_USAGE_TRACE
default n
config MP_DEBUG_TOOL_THREAD_CREATE_MONITOR_DEBUG
bool "(Debug) Trace and print thead info creations"
depends on MP_DEBUG_TOOL_THREAD_CREATE_MONITOR
default n
config MP_DEBUG_TOOL_DUMP_STACK_EACH_CPU_DEBUG
bool "(Debug) dump each cpu's stack on timer"
depends on MP_DEBUG_TOOL_DUMP_STACK_EACH_CPU
default n
config MP_DEBUG_TOOL_SHOW_CPU_WORKQUEUE_INFO_DEBUG
bool "(Debug) To show the cpu work_queue info(debug for dpm_wd_handler)"
depends on MP_DEBUG_TOOL_SHOW_CPU_WORKQUEUE_INFO
default n
config MP_DEBUG_TOOL_TASK_PRIORITY_DEBUG
bool "(Debug) To detect task priority change"
depends on MP_DEBUG_TOOL_TASK_PRIORITY
default n
config MP_DEBUG_TOOL_LOG_PREFIX_DEBUG
bool "(Debug) Enable DEBUG prefix"
depends on MP_DEBUG_TOOL_LOG_PREFIX
default n
config MP_DEBUG_TOOL_MSTAR_PAGE_OWNER_DEBUG
bool "(Debug) Enable a specified pfn owner info"
depends on MP_DEBUG_TOOL_MSTAR_PAGE_OWNER
default n
endmenu
menu "MIPS Mstar L2 Patch"
config MP_MIPS_L2_CACHE
bool "Enable MIPS L2 Cache Mechanism"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_MIPS_L2_CACHE_DEBUG
bool "(Debug) Enable MIPS L2 Cache Mechanism"
depends on MP_MIPS_L2_CACHE
default n
endmenu
menu "Core 2 control"
config MP_SMP_STARTUP
bool "Booting address of core2"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_SMP_STARTUP_DEBUG
bool "(Debug) Booting address of core2"
depends on MP_SMP_STARTUP
default n
endmenu
menu "MSTAR UART"
config MP_UART_SERIAL_8250_RIU_BASE
bool "RIU BASE for SERIAL 8250"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_UART_SERIAL_8250_RIU_BASE_DEBUG
bool "(Debug) RIU BASE for SERIAL 8250"
depends on MP_UART_SERIAL_8250_RIU_BASE
default n
endmenu
menu "NTFS3G CONTROL"
config MP_NTFS3G_WRAP
bool "Enable NTFS3G WRAP"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_NTFS3G_WRAP_DEBUG
bool "(Debug) Enable NTFS3G WRAP"
depends on MP_NTFS3G_WRAP
default n
endmenu
menu "MStar STR"
config MP_MSTAR_STR_BASE
bool "Enable MStar STR"
default n
config MP_MSTAR_STR_PROCESS_FREEZE_LATE
bool "During STR suspend phase,support user mode process can be frozen after all user space processes but together with kernel threads"
default y
config MP_MSTAR_STR_OF_ORDER
bool "Parser DTB to change driver STR order and policy"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_MSTAR_STR_BASE_DEBUG
bool "(Debug) Enable MStar STR"
depends on MP_MSTAR_STR_BASE
default n
config MP_MSTAR_STR_PROCESS_FREEZE_LATE_DEBUG
bool "(Debug) During STR suspend phase,support user mode process can be frozen after all user space processes but together with kernel threads"
depends on MP_MSTAR_STR_PROCESS_FREEZE_LATE
default n
endmenu
menu "CA7 Quad Core patch"
config MP_CA7_QUAD_CORE_PATCH
bool "MSTAR porting code for CA7 Quad-Core"
default n
menu "-------------------Debug Options-------------------"
endmenu
config MP_CA7_QUAD_CORE_PATCH_DEBUG
bool "(Debug) MSTAR porting code for CA7 Quad-Core"
depends on MP_CA7_QUAD_CORE_PATCH
default n
endmenu
menu "security"
config MP_security_dm_verity
bool "porting dm verity"
default n
menu "-------------------Debug Options-------------------"
endmenu
config MP_security_dm_verity_DEBUG
bool "(Debug) porting dm verity"
depends on MP_security_dm_verity
default n
endmenu
menu "Sync 3.1.10 setting"
config MP_SYNC_3_1_10_SETTING_VMALLOC_SETTING
bool "Sync 3.1.10 vmalloc setting"
default n
menu "-------------------Debug Options-------------------"
endmenu
config MP_SYNC_3_1_10_SETTING_VMALLOC_SETTING_DEBUG
bool "(Debug) Sync 3.1.10 vmalloc setting"
depends on MP_SYNC_3_1_10_SETTING_VMALLOC_SETTING
default n
endmenu
menu "Reserved VMA Patch"
config MP_RESERVED_VMA_PATCH_FOR_DFB
bool "Reserved VMA for DFB"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_RESERVED_VMA_PATCH_FOR_DFB_DEBUG
bool "(Debug) Reserved VMA for DFB"
depends on MP_RESERVED_VMA_PATCH_FOR_DFB
default n
endmenu
menu "CMA PATCH"
config MP_CMA_PATCH_LX_MEMORY_ALIGN_TO_8K_CHECK
bool "cma_buffer will be re-mapped, so we need to ensure LX_MEMORY alignment"
default y
config MP_CMA_PATCH_CMA_MSTAR_DRIVER_BUFFER
bool "Store MSTAR DRIVER CMA BUFFER INFO"
default y
config MP_CMA_PATCH_CMA_AGGRESSIVE_ALLOC
bool "Aggressively allocate the pages on cma reserved memory, depends on CONFIG_CMA"
default y
config MP_CMA_PATCH_CMA_DYNAMIC_STRATEGY
bool "Dynamic strategy to control allocation ratio between CMA and normal memory"
default y
config MP_CMA_PATCH_CMA_DEFAULT_BUFFER_LIMITTED_TO_LX0
bool "cma default buffer will be limitted to LX0 MEM, otherwise, it will be limitted to arm_lowmem_limit"
default y
config MP_CMA_PATCH_FORCE_ALLOC_START_ADDR
bool "dma_alloc_at_from_contiguous() will change start_addr if alloc_contig_range is failed and start is 0x0(offset of cma_pool is 0x0), this will lead dma_release_from_contiguous failed"
default y
config MP_CMA_PATCH_DELAY_FREE
bool "Delay Free CMA Buffer"
default y
config MP_CMA_PATCH_MIGRATION_FILTER
bool "compaction migrate bdev/journal buffer page is not allowed"
default y
config MP_CMA_PATCH_SMALLER_SOCKET_BUFFER
bool "change the socket buffer max_order from 2 to 0, for preventing memory fragmentation issue"
default y
config MP_CMA_PATCH_DO_FORK_PAGE_POOL
bool "reserve a page_pool of order 2 page, for preventing memory fragmentation issue when do_fork @ creating thread_info"
default y
config MP_CMA_PATCH_SMALLER_SLAB_PAGE
bool "change the alloc_slab_page() size to min order 0"
default y
config MP_CMA_PATCH_ION_LOW_ORDER_ALLOC
bool "change the ion only alloc order 0 page"
default y
config MP_CMA_PATCH_DISABLE_HIORDER
bool "Disable all hiorder page alloc"
default y
config MP_CMA_PATCH_KSM_MIGRATION_FAILURE
bool "Patch for KSM page migrating failture"
default y
config MP_CMA_PATCH_VM_UNMAP
bool "Forcibly removed VM unuse pages"
default y
config MP_CMA_PATCH_SPARSEMEM_MAPPING_256MB
bool "ARM64 SPARSEMEM SECTION bit use 28bit to mapping,for reduce mapping size"
default n
config MP_CMA_PATCH_MBOOT_STR_USE_CMA
bool "We will reserver a cma_memory for mboot use. Reserver before str_suspend, and Release after str_resume"
default n
config MP_CMA_PATCH_COUNT_TIMECOST
bool "If you need to count the time cost of each cma_ioctl"
default y
config MP_CMA_PATCH_POOL_UTOPIA_TO_KERNEL
bool "CMA POOL utopia to kernel mode"
default y
config MP_CMA_PATCH_USE_UNMOVABLE_FILE_CACHE
bool "use non-movable memory for ext4 superblock and jbd superblock"
default y
menu "-------------------Debug Options-------------------"
endmenu
config MP_CMA_PATCH_LX_MEMORY_ALIGN_TO_8K_CHECK_DEBUG
bool "(Debug) cma_buffer will be re-mapped, so we need to ensure LX_MEMORY alignment"
depends on MP_CMA_PATCH_LX_MEMORY_ALIGN_TO_8K_CHECK
default n
config MP_CMA_PATCH_CMA_MSTAR_DRIVER_BUFFER_DEBUG
bool "(Debug) Store MSTAR DRIVER CMA BUFFER INFO"
depends on MP_CMA_PATCH_CMA_MSTAR_DRIVER_BUFFER
default n
config MP_CMA_PATCH_CMA_AGGRESSIVE_ALLOC_DEBUG
bool "(Debug) Aggressively allocate the pages on cma reserved memory, depends on CONFIG_CMA"
depends on MP_CMA_PATCH_CMA_AGGRESSIVE_ALLOC
default n
config MP_CMA_PATCH_CMA_DYNAMIC_STRATEGY_DEBUG
bool "(Debug) Dynamic strategy to control allocation ratio between CMA and normal memory"
depends on MP_CMA_PATCH_CMA_DYNAMIC_STRATEGY
default n
config MP_CMA_PATCH_CMA_DEFAULT_BUFFER_LIMITTED_TO_LX0_DEBUG
bool "(Debug) cma default buffer will be limitted to LX0 MEM, otherwise, it will be limitted to arm_lowmem_limit"
depends on MP_CMA_PATCH_CMA_DEFAULT_BUFFER_LIMITTED_TO_LX0
default n
config MP_CMA_PATCH_FORCE_ALLOC_START_ADDR_DEBUG
bool "(Debug) dma_alloc_at_from_contiguous() will change start_addr if alloc_contig_range is failed and start is 0x0(offset of cma_pool is 0x0), this will lead dma_release_from_contiguous failed"
depends on MP_CMA_PATCH_FORCE_ALLOC_START_ADDR
default n
config MP_CMA_PATCH_DELAY_FREE_DEBUG
bool "(Debug) Delay Free CMA Buffer"
depends on MP_CMA_PATCH_DELAY_FREE
default n
config MP_CMA_PATCH_MIGRATION_FILTER_DEBUG
bool "(Debug) compaction migrate bdev/journal buffer page is not allowed"
depends on MP_CMA_PATCH_MIGRATION_FILTER
default n
config MP_CMA_PATCH_SMALLER_SOCKET_BUFFER_DEBUG
bool "(Debug) change the socket buffer max_order from 2 to 0, for preventing memory fragmentation issue"
depends on MP_CMA_PATCH_SMALLER_SOCKET_BUFFER
default n
config MP_CMA_PATCH_DO_FORK_PAGE_POOL_DEBUG
bool "(Debug) reserve a page_pool of order 2 page, for preventing memory fragmentation issue when do_fork @ creating thread_info"
depends on MP_CMA_PATCH_DO_FORK_PAGE_POOL
default n
config MP_CMA_PATCH_SMALLER_SLAB_PAGE_DEBUG
bool "(Debug) change the alloc_slab_page() size to min order 0"
depends on MP_CMA_PATCH_SMALLER_SLAB_PAGE
default n
config MP_CMA_PATCH_ION_LOW_ORDER_ALLOC_DEBUG
bool "(Debug) change the ion only alloc order 0 page"
depends on MP_CMA_PATCH_ION_LOW_ORDER_ALLOC
default n
config MP_CMA_PATCH_DISABLE_HIORDER_DEBUG
bool "(Debug) Disable all hiorder page alloc"
depends on MP_CMA_PATCH_DISABLE_HIORDER
default n
config MP_CMA_PATCH_KSM_MIGRATION_FAILURE_DEBUG
bool "(Debug) Patch for KSM page migrating failture"
depends on MP_CMA_PATCH_KSM_MIGRATION_FAILURE
default n
config MP_CMA_PATCH_VM_UNMAP_DEBUG
bool "(Debug) Forcibly removed VM unuse pages"
depends on MP_CMA_PATCH_VM_UNMAP
default n
config MP_CMA_PATCH_SPARSEMEM_MAPPING_256MB_DEBUG
bool "(Debug) ARM64 SPARSEMEM SECTION bit use 28bit to mapping,for reduce mapping size"
depends on MP_CMA_PATCH_SPARSEMEM_MAPPING_256MB
default n
config MP_CMA_PATCH_MBOOT_STR_USE_CMA_DEBUG
bool "(Debug) We will reserver a cma_memory for mboot use. Reserver before str_suspend, and Release after str_resume"
depends on MP_CMA_PATCH_MBOOT_STR_USE_CMA
default n
config MP_CMA_PATCH_COUNT_TIMECOST_DEBUG
bool "(Debug) If you need to count the time cost of each cma_ioctl"
depends on MP_CMA_PATCH_COUNT_TIMECOST
default n
config MP_CMA_PATCH_POOL_UTOPIA_TO_KERNEL_DEBUG
bool "(Debug) CMA POOL utopia to kernel mode"