@@ -93,6 +93,29 @@ config SERIAL_TX_BUFSIZE
Default value is 32768 (32KiB).
+config CONRING_LOG_SHIFT
+ int "Console buffer size"
+ range 14 25
+ default 15
+ help
+ Select the boot console buffer size as a power of 2.
+ Run-time console buffer size is the same as the boot console size,
+ unless enforced via 'conring_size=' boot parameter.
+
+ Examples:
+ 25 => 32 MiB
+ 24 => 16 MiB
+ 23 => 8 MiB
+ 22 => 4 MiB
+ 21 => 2 MiB
+ 20 => 1 MiB
+ 19 => 512 KiB
+ 18 => 256 KiB
+ 17 => 128 KiB
+ 16 => 64 KiB
+ 15 => 32 KiB
+ 14 => 16 KiB
+
config XHCI
bool "XHCI DbC UART driver"
depends on X86
@@ -102,11 +102,11 @@ static int cf_check parse_console_timestamps(const char *s);
custom_runtime_param("console_timestamps", parse_console_timestamps,
con_timestamp_mode_upd);
-/* conring_size: allows a large console ring than default (16kB). */
+/* conring_size: allows a large console ring than default (32 KiB). */
static uint32_t __initdata opt_conring_size;
size_param("conring_size", opt_conring_size);
-#define _CONRING_SIZE 16384
+#define _CONRING_SIZE (1U << CONFIG_CONRING_LOG_SHIFT)
#define CONRING_IDX_MASK(i) ((i)&(conring_size-1))
static char __initdata _conring[_CONRING_SIZE];
static char *__read_mostly conring = _conring;