From 680a14d4fa6d95f2ca5c582078a8aa05db522e31 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sat, 29 May 2021 04:49:15 +0300 Subject: [PATCH] Added text editor demo2 inspired by hackers movie :) --- pom.xml | 7 +- .../sixth/e3d/examples/TextEditorDemo2.java | 134 +++++ src/main/resources/demo.txt | 505 ++++++++++++++++++ 3 files changed, 645 insertions(+), 1 deletion(-) create mode 100644 src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo2.java create mode 100644 src/main/resources/demo.txt diff --git a/pom.xml b/pom.xml index b8c8b20..6f2ceeb 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,12 @@ eu.svjatoslav sixth-3d - 1.2 + 1.3-SNAPSHOT + + + eu.svjatoslav + svjatoslavcommons + 1.8 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo2.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo2.java new file mode 100644 index 0000000..f78734b --- /dev/null +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/TextEditorDemo2.java @@ -0,0 +1,134 @@ +/* + * Sixth 3D engine demos. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. + * +*/ + +package eu.svjatoslav.sixth.e3d.examples; + +import eu.svjatoslav.sixth.e3d.geometry.Point2D; +import eu.svjatoslav.sixth.e3d.geometry.Point3D; +import eu.svjatoslav.sixth.e3d.geometry.Rectangle; +import eu.svjatoslav.sixth.e3d.gui.Avatar; +import eu.svjatoslav.sixth.e3d.gui.ViewFrame; +import eu.svjatoslav.sixth.e3d.gui.ViewPanel; +import eu.svjatoslav.sixth.e3d.gui.textEditorComponent.LookAndFeel; +import eu.svjatoslav.sixth.e3d.gui.textEditorComponent.TextEditComponent; +import eu.svjatoslav.sixth.e3d.math.Transform; +import eu.svjatoslav.sixth.e3d.renderer.raster.Color; +import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection; +import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.LineAppearance; +import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.wireframe.Grid2D; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.net.URISyntaxException; +import java.util.stream.Collectors; + +public class TextEditorDemo2 { + + public static void main(final String[] args) { + try { + new TextEditorDemo2().build(); + } catch (URISyntaxException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + public void build() throws URISyntaxException, IOException { + final ViewFrame viewFrame = new ViewFrame(); + final ViewPanel viewPanel = viewFrame.getViewPanel(); + + final ShapeCollection shapeCollection = viewFrame.getViewPanel() + .getRootShapeCollection(); + + setAvatarLocation(viewPanel); + + addGrid(shapeCollection); + + addCity(viewPanel, shapeCollection); + } + + private void addCity(ViewPanel viewPanel, ShapeCollection shapeCollection) throws URISyntaxException, IOException { + int citySize = 4000; + for (int z = -citySize; z< citySize; z+= 1000 ){ + for (int x = -citySize; x< citySize; x+= 1000 ){ + addBuilding(viewPanel, shapeCollection, x, z); + } + } + } + + + private static void addGrid(ShapeCollection shapeCollection) { + final Transform transform = new Transform(new Point3D(0, 100, 0), 0, + Math.PI / 2); + + final Rectangle rectangle = new Rectangle(10000); + final LineAppearance appearance = new LineAppearance(10, new Color( + "00b3ad")); + + shapeCollection.addShape(new Grid2D(transform, rectangle, 50, 50, appearance)); + } + + + private void addBuilding(ViewPanel viewPanel, ShapeCollection shapeCollection, double x, double z) throws URISyntaxException, IOException { + Transform transform = new Transform(new Point3D(x, -390, z-200)); + addTextEditor(viewPanel, shapeCollection, transform); + + transform = new Transform(new Point3D(x, -390, z+200),Math.PI, 0); + addTextEditor(viewPanel, shapeCollection, transform); + + transform = new Transform(new Point3D(x-200, -390, z),Math.PI/2, 0); + addTextEditor(viewPanel, shapeCollection, transform); + + transform = new Transform(new Point3D(x+200, -390, z),Math.PI/2*3f, 0); + addTextEditor(viewPanel, shapeCollection, transform); + } + + private void addTextEditor(ViewPanel viewPanel, ShapeCollection shapeCollection, Transform transform) throws IOException { + LookAndFeel lookAndFeel = getLookAndFeel(); + + final TextEditComponent textEditor = new TextEditComponent( + transform, + viewPanel, + new Point2D(400, 1000), + lookAndFeel + ); + + String text = getResourceFileAsString("demo.txt"); + + textEditor.setText(text); + textEditor.goToLine((int)(Math.random()*200f)); + shapeCollection.addShape(textEditor); + } + + private LookAndFeel getLookAndFeel() { + LookAndFeel lookAndFeel = new LookAndFeel(); + lookAndFeel.background = new Color(20, 20, 50, 150); + lookAndFeel.tabStopBackground = lookAndFeel.background; + lookAndFeel.foreground = new Color(150, 150, 255,250); + return lookAndFeel; + } + + static String getResourceFileAsString(String fileName) throws IOException { + ClassLoader classLoader = ClassLoader.getSystemClassLoader(); + try (InputStream is = classLoader.getResourceAsStream(fileName)) { + if (is == null) return null; + try (InputStreamReader isr = new InputStreamReader(is); + BufferedReader reader = new BufferedReader(isr)) { + return reader.lines().collect(Collectors.joining(System.lineSeparator())); + } + } + } + + private static void setAvatarLocation(ViewPanel viewPanel) { + Avatar avatar = viewPanel.getAvatar(); + avatar.setLocation(new Point3D(500, -300, -800)); + avatar.setAngleXZ(0.6); + avatar.setAngleYZ(-0.5); + } +} diff --git a/src/main/resources/demo.txt b/src/main/resources/demo.txt new file mode 100644 index 0000000..fffb8fe --- /dev/null +++ b/src/main/resources/demo.txt @@ -0,0 +1,505 @@ +microcode: microcode updated early to revision 0xe2, date = 2020-07-14 +Linux version 5.10.0-6-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.28-1 (2021-04-09) +Command line: BOOT_IMAGE=/vmlinuz-5.10.0-6-amd64 root=/dev/mapper/main-root ro quiet +x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' +x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' +x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' +x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers' +x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR' +x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 +x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64 +x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64 +x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format. +BIOS-provided physical RAM map: +BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable +BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved +BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved +BIOS-e820: [mem 0x0000000000100000-0x000000005f692fff] usable +BIOS-e820: [mem 0x000000005f693000-0x000000005f693fff] ACPI NVS +BIOS-e820: [mem 0x000000005f694000-0x000000005f6ddfff] reserved +BIOS-e820: [mem 0x000000005f6de000-0x000000005f789fff] usable +BIOS-e820: [mem 0x000000005f78a000-0x0000000060089fff] reserved +BIOS-e820: [mem 0x000000006008a000-0x000000007558efff] usable +BIOS-e820: [mem 0x000000007558f000-0x0000000075f7efff] reserved +BIOS-e820: [mem 0x0000000075f7f000-0x0000000077f7efff] ACPI NVS +BIOS-e820: [mem 0x0000000077f7f000-0x0000000077ffefff] ACPI data +BIOS-e820: [mem 0x0000000077fff000-0x0000000077ffffff] usable +BIOS-e820: [mem 0x0000000078000000-0x00000000780fffff] reserved +BIOS-e820: [mem 0x0000000079000000-0x000000007e7fffff] reserved +BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved +BIOS-e820: [mem 0x00000000fd000000-0x00000000fe7fffff] reserved +BIOS-e820: [mem 0x00000000feb00000-0x00000000feb03fff] reserved +BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved +BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved +BIOS-e820: [mem 0x00000000fed10000-0x00000000fed19fff] reserved +BIOS-e820: [mem 0x00000000fed84000-0x00000000fed84fff] reserved +BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved +BIOS-e820: [mem 0x00000000ffa00000-0x00000000ffffffff] reserved +BIOS-e820: [mem 0x0000000100000000-0x00000004807fffff] usable +NX (Execute Disable) protection: active +SMBIOS 2.8 present. +DMI: LENOVO 80NV/Allsparks 5A, BIOS CDCN53WW 09/19/2016 +tsc: Detected 2600.000 MHz processor +tsc: Detected 2599.992 MHz TSC +e820: update [mem 0x00000000-0x00000fff] usable ==> reserved +e820: remove [mem 0x000a0000-0x000fffff] usable +last_pfn = 0x480800 max_arch_pfn = 0x400000000 +MTRR default type: uncachable +MTRR fixed ranges enabled: + 00000-9FFFF write-back + A0000-BFFFF uncachable + C0000-FFFFF write-protect +MTRR variable ranges enabled: + 0 base 0000000000 mask 7800000000 write-back + 1 base 0078000000 mask 7FF8000000 uncachable + 2 base 0080000000 mask 7F80000000 uncachable + 3 disabled + 4 disabled + 5 disabled + 6 disabled + 7 disabled + 8 disabled + 9 disabled +x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT +e820: update [mem 0x78000000-0xffffffff] usable ==> reserved +last_pfn = 0x78000 max_arch_pfn = 0x400000000 +found SMP MP-table at [mem 0x000fe1b0-0x000fe1bf] +ACPI: Early table checksum verification disabled +ACPI: RSDP 0x00000000000FE020 000024 (v02 LENOVO) +ACPI: XSDT 0x0000000077FC0188 0000D4 (v01 LENOVO CB-01 00000001 01000013) +ACPI: FACP 0x0000000077FEE000 0000F4 (v05 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: DSDT 0x0000000077FCB000 01E97D (v02 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: FACS 0x0000000077F60000 000040 +ACPI: UEFI 0x0000000077FFD000 000236 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: UEFI 0x0000000077FFC000 000042 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: MSDM 0x0000000077FFB000 000055 (v03 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FF5000 005104 (v02 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: DBGP 0x0000000077FF4000 000034 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: DBG2 0x0000000077FF3000 000061 (v00 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FF2000 00077C (v02 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: ASF! 0x0000000077FF1000 0000A5 (v32 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: ASPT 0x0000000077FF0000 000034 (v07 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: BOOT 0x0000000077FEF000 000028 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: HPET 0x0000000077FED000 000038 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: LPIT 0x0000000077FEC000 000094 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: APIC 0x0000000077FEB000 0000BC (v03 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: MCFG 0x0000000077FEA000 00003C (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FCA000 0002D4 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FC9000 00019A (v02 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FC8000 0003F4 (v02 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FC7000 000E58 (v02 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: SSDT 0x0000000077FC2000 004354 (v01 Insyde NVOP 00001000 INTL 20130927) +ACPI: DMAR 0x0000000077FC1000 0000A8 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: FPDT 0x0000000077FBF000 000044 (v01 LENOVO CB-01 00000001 ACPI 00040000) +ACPI: Reserving FACP table memory at [mem 0x77fee000-0x77fee0f3] +ACPI: Reserving DSDT table memory at [mem 0x77fcb000-0x77fe997c] +ACPI: Reserving FACS table memory at [mem 0x77f60000-0x77f6003f] +ACPI: Reserving UEFI table memory at [mem 0x77ffd000-0x77ffd235] +ACPI: Reserving UEFI table memory at [mem 0x77ffc000-0x77ffc041] +ACPI: Reserving MSDM table memory at [mem 0x77ffb000-0x77ffb054] +ACPI: Reserving SSDT table memory at [mem 0x77ff5000-0x77ffa103] +ACPI: Reserving DBGP table memory at [mem 0x77ff4000-0x77ff4033] +ACPI: Reserving DBG2 table memory at [mem 0x77ff3000-0x77ff3060] +ACPI: Reserving SSDT table memory at [mem 0x77ff2000-0x77ff277b] +ACPI: Reserving ASF! table memory at [mem 0x77ff1000-0x77ff10a4] +ACPI: Reserving ASPT table memory at [mem 0x77ff0000-0x77ff0033] +ACPI: Reserving BOOT table memory at [mem 0x77fef000-0x77fef027] +ACPI: Reserving HPET table memory at [mem 0x77fed000-0x77fed037] +ACPI: Reserving LPIT table memory at [mem 0x77fec000-0x77fec093] +ACPI: Reserving APIC table memory at [mem 0x77feb000-0x77feb0bb] +ACPI: Reserving MCFG table memory at [mem 0x77fea000-0x77fea03b] +ACPI: Reserving SSDT table memory at [mem 0x77fca000-0x77fca2d3] +ACPI: Reserving SSDT table memory at [mem 0x77fc9000-0x77fc9199] +ACPI: Reserving SSDT table memory at [mem 0x77fc8000-0x77fc83f3] +ACPI: Reserving SSDT table memory at [mem 0x77fc7000-0x77fc7e57] +ACPI: Reserving SSDT table memory at [mem 0x77fc2000-0x77fc6353] +ACPI: Reserving DMAR table memory at [mem 0x77fc1000-0x77fc10a7] +ACPI: Reserving FPDT table memory at [mem 0x77fbf000-0x77fbf043] +Using GB pages for direct mapping +RAMDISK: [mem 0x2efdd000-0x337e5fff] +ACPI: Local APIC address 0xfee00000 +No NUMA configuration found +Faking a node at [mem 0x0000000000000000-0x00000004807fffff] +NODE_DATA(0) allocated [mem 0x4807d6000-0x4807fffff] +Zone ranges: + DMA [mem 0x0000000000001000-0x0000000000ffffff] + DMA32 [mem 0x0000000001000000-0x00000000ffffffff] + Normal [mem 0x0000000100000000-0x00000004807fffff] + Device empty +Movable zone start for each node +Early memory node ranges + node 0: [mem 0x0000000000001000-0x000000000009dfff] + node 0: [mem 0x0000000000100000-0x000000005f692fff] + node 0: [mem 0x000000005f6de000-0x000000005f789fff] + node 0: [mem 0x000000006008a000-0x000000007558efff] + node 0: [mem 0x0000000077fff000-0x0000000077ffffff] + node 0: [mem 0x0000000100000000-0x00000004807fffff] +Initmem setup node 0 [mem 0x0000000000001000-0x00000004807fffff] +On node 0 totalpages: 4150242 + DMA zone: 64 pages used for memmap + DMA zone: 21 pages reserved + DMA zone: 3997 pages, LIFO batch:0 + DMA zone: 28771 pages in unavailable ranges + DMA32 zone: 7410 pages used for memmap + DMA32 zone: 474181 pages, LIFO batch:63 + DMA32 zone: 13243 pages in unavailable ranges + Normal zone: 57376 pages used for memmap + Normal zone: 3672064 pages, LIFO batch:63 + Normal zone: 30720 pages in unavailable ranges +Reserving Intel graphics memory at [mem 0x7a800000-0x7e7fffff] +ACPI: PM-Timer IO Port: 0x1808 +ACPI: Local APIC address 0xfee00000 +ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x04] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x05] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x06] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x07] high edge lint[0x1]) +ACPI: LAPIC_NMI (acpi_id[0x08] high edge lint[0x1]) +IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-119 +ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) +ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) +ACPI: IRQ0 used by override. +ACPI: IRQ9 used by override. +Using ACPI (MADT) for SMP configuration information +ACPI: HPET id: 0x8086a201 base: 0xfed00000 +TSC deadline timer available +smpboot: Allowing 8 CPUs, 0 hotplug CPUs +PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] +PM: hibernation: Registered nosave memory: [mem 0x0009e000-0x0009efff] +PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff] +PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000dffff] +PM: hibernation: Registered nosave memory: [mem 0x000e0000-0x000fffff] +PM: hibernation: Registered nosave memory: [mem 0x5f693000-0x5f693fff] +PM: hibernation: Registered nosave memory: [mem 0x5f694000-0x5f6ddfff] +PM: hibernation: Registered nosave memory: [mem 0x5f78a000-0x60089fff] +PM: hibernation: Registered nosave memory: [mem 0x7558f000-0x75f7efff] +PM: hibernation: Registered nosave memory: [mem 0x75f7f000-0x77f7efff] +PM: hibernation: Registered nosave memory: [mem 0x77f7f000-0x77ffefff] +PM: hibernation: Registered nosave memory: [mem 0x78000000-0x780fffff] +PM: hibernation: Registered nosave memory: [mem 0x78100000-0x78ffffff] +PM: hibernation: Registered nosave memory: [mem 0x79000000-0x7e7fffff] +PM: hibernation: Registered nosave memory: [mem 0x7e800000-0xdfffffff] +PM: hibernation: Registered nosave memory: [mem 0xe0000000-0xefffffff] +PM: hibernation: Registered nosave memory: [mem 0xf0000000-0xfcffffff] +PM: hibernation: Registered nosave memory: [mem 0xfd000000-0xfe7fffff] +PM: hibernation: Registered nosave memory: [mem 0xfe800000-0xfeafffff] +PM: hibernation: Registered nosave memory: [mem 0xfeb00000-0xfeb03fff] +PM: hibernation: Registered nosave memory: [mem 0xfeb04000-0xfebfffff] +PM: hibernation: Registered nosave memory: [mem 0xfec00000-0xfec00fff] +PM: hibernation: Registered nosave memory: [mem 0xfec01000-0xfecfffff] +PM: hibernation: Registered nosave memory: [mem 0xfed00000-0xfed00fff] +PM: hibernation: Registered nosave memory: [mem 0xfed01000-0xfed0ffff] +PM: hibernation: Registered nosave memory: [mem 0xfed10000-0xfed19fff] +PM: hibernation: Registered nosave memory: [mem 0xfed1a000-0xfed83fff] +PM: hibernation: Registered nosave memory: [mem 0xfed84000-0xfed84fff] +PM: hibernation: Registered nosave memory: [mem 0xfed85000-0xfedfffff] +PM: hibernation: Registered nosave memory: [mem 0xfee00000-0xfee00fff] +PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xff9fffff] +PM: hibernation: Registered nosave memory: [mem 0xffa00000-0xffffffff] +[mem 0x7e800000-0xdfffffff] available for PCI devices +Booting paravirtualized kernel on bare hardware +clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns +setup_percpu: NR_CPUS:8192 nr_cpumask_bits:8 nr_cpu_ids:8 nr_node_ids:1 +percpu: Embedded 54 pages/cpu s183960 r8192 d29032 u262144 +pcpu-alloc: s183960 r8192 d29032 u262144 alloc=1*2097152 +pcpu-alloc: [0] 0 1 2 3 4 5 6 7 +Built 1 zonelists, mobility grouping on. Total pages: 4085371 +Policy zone: Normal +Kernel command line: BOOT_IMAGE=/vmlinuz-5.10.0-6-amd64 root=/dev/mapper/main-root ro quiet +Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear) +Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) +mem auto-init: stack:off, heap alloc:on, heap free:off +Memory: 1904140K/16600968K available (12295K kernel code, 2544K rwdata, 7548K rodata, 2388K init, 3712K bss, 463332K reserved, 0K cma-reserved) +random: get_random_u64 called from __kmem_cache_create+0x2e/0x550 with crng_init=0 +SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1 +Kernel/User page tables isolation: enabled +ftrace: allocating 36387 entries in 143 pages +ftrace: allocated 143 pages with 5 groups +rcu: Hierarchical RCU implementation. +rcu: RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=8. + Rude variant of Tasks RCU enabled. + Tracing variant of Tasks RCU enabled. +rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. +rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8 +NR_IRQS: 524544, nr_irqs: 2048, preallocated irqs: 16 +random: crng done (trusting CPU's manufacturer) +Console: colour VGA+ 80x25 +printk: console [tty0] enabled +ACPI: Core revision 20200925 +clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635855245 ns +APIC: Switch to symmetric I/O mode setup +DMAR: Host address width 39 +DMAR: DRHD base: 0x000000fed90000 flags: 0x0 +DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 7e3ff0501e +DMAR: DRHD base: 0x000000fed91000 flags: 0x1 +DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da +DMAR: RMRR base: 0x00000075e5a000 end: 0x00000075e79fff +DMAR: RMRR base: 0x0000007a000000 end: 0x0000007e7fffff +DMAR-IR: IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1 +DMAR-IR: HPET id 0 under DRHD base 0xfed91000 +DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit. +DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting. +DMAR-IR: Enabled IRQ remapping in xapic mode +x2apic: IRQ remapping doesn't support X2APIC mode +..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 +clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x257a34a6eea, max_idle_ns: 440795264358 ns +Calibrating delay loop (skipped), value calculated using timer frequency.. 5199.98 BogoMIPS (lpj=10399968) +pid_max: default: 32768 minimum: 301 +LSM: Security Framework initializing +Yama: disabled by default; enable with sysctl kernel.yama.* +AppArmor: AppArmor initialized +TOMOYO Linux initialized +Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) +Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) +mce: CPU0: Thermal monitoring enabled (TM1) +process: using mwait in idle threads +Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 +Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4 +Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization +Spectre V2 : Mitigation: Full generic retpoline +Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch +Spectre V2 : Enabling Restricted Speculation for firmware calls +Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier +Spectre V2 : User space: Mitigation: STIBP via seccomp and prctl +Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp +TAA: Mitigation: Clear CPU buffers +SRBDS: Mitigation: Microcode +MDS: Mitigation: Clear CPU buffers +Freeing SMP alternatives memory: 32K +smpboot: CPU0: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (family: 0x6, model: 0x5e, stepping: 0x3) +Performance Events: PEBS fmt3+, Skylake events, 32-deep LBR, full-width counters, Intel PMU driver. +... version: 4 +... bit width: 48 +... generic registers: 4 +... value mask: 0000ffffffffffff +... max period: 00007fffffffffff +... fixed-purpose events: 3 +... event mask: 000000070000000f +rcu: Hierarchical SRCU implementation. +NMI watchdog: Enabled. Permanently consumes one hw-PMU counter. +smp: Bringing up secondary CPUs ... +x86: Booting SMP configuration: +.... node #0, CPUs: #1 #2 #3 #4 +MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details. +TAA CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/tsx_async_abort.html for more details. + #5 #6 #7 +smp: Brought up 1 node, 8 CPUs +smpboot: Max logical packages: 1 +smpboot: Total of 8 processors activated (41599.87 BogoMIPS) +node 0 deferred pages initialised in 16ms +devtmpfs: initialized +x86/mm: Memory block size: 128MB +PM: Registering ACPI NVS region [mem 0x5f693000-0x5f693fff] (4096 bytes) +PM: Registering ACPI NVS region [mem 0x75f7f000-0x77f7efff] (33554432 bytes) +clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns +futex hash table entries: 2048 (order: 5, 131072 bytes, linear) +pinctrl core: initialized pinctrl subsystem +NET: Registered protocol family 16 +audit: initializing netlink subsys (disabled) +audit: type=2000 audit(1622213389.056:1): state=initialized audit_enabled=0 res=1 +thermal_sys: Registered thermal governor 'fair_share' +thermal_sys: Registered thermal governor 'bang_bang' +thermal_sys: Registered thermal governor 'step_wise' +thermal_sys: Registered thermal governor 'user_space' +thermal_sys: Registered thermal governor 'power_allocator' +cpuidle: using governor ladder +cpuidle: using governor menu +Simple Boot Flag at 0x44 set to 0x1 +ACPI: bus type PCI registered +acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 +PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000) +PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in E820 +pmd_set_huge: Cannot satisfy [mem 0xe0000000-0xe0200000] with a huge-page mapping due to MTRR override. +PCI: Using configuration type 1 for base access +ENERGY_PERF_BIAS: Set to 'normal', was 'performance' +Kprobes globally optimized +HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages +HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages +ACPI: Added _OSI(Module Device) +ACPI: Added _OSI(Processor Device) +ACPI: Added _OSI(3.0 _SCP Extensions) +ACPI: Added _OSI(Processor Aggregator Device) +ACPI: Added _OSI(Linux-Dell-Video) +ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) +ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics) +ACPI: 8 ACPI AML tables successfully acquired and loaded +ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored +ACPI: Dynamic OEM Table Load: +ACPI: SSDT 0xFFFF9FC7C0C14800 0005DC (v02 PmRef Cpu0Ist 00003000 INTL 20130927) +ACPI: \_PR_.CPU0: _OSC native thermal LVT Acked +ACPI: Dynamic OEM Table Load: +ACPI: SSDT 0xFFFF9FC7C10D0800 00037F (v02 PmRef Cpu0Cst 00003001 INTL 20130927) +ACPI: Dynamic OEM Table Load: +ACPI: SSDT 0xFFFF9FC7C0C12000 0005AA (v02 PmRef ApIst 00003000 INTL 20130927) +ACPI: Dynamic OEM Table Load: +ACPI: SSDT 0xFFFF9FC7C1023200 000119 (v02 PmRef ApCst 00003000 INTL 20130927) +ACPI: EC: EC started +ACPI: EC: interrupt blocked +ACPI: EC: EC_CMD/EC_SC=0x66, EC_DATA=0x62 +ACPI: \_SB_.PCI0.LPCB.EC0_: Boot DSDT EC used to handle transactions +ACPI: Interpreter enabled +ACPI: (supports S0 S3 S4 S5) +ACPI: Using IOAPIC for interrupt routing +PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug +ACPI: Enabled 9 GPEs in block 00 to 7F +ACPI: Power Resource [PG00] (on) +ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-fe]) +acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3] +acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug SHPCHotplug PME AER PCIeCapability LTR] +PCI host bridge to bus 0000:00 +pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] +pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] +pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] +pci_bus 0000:00: root bus resource [mem 0x7e800000-0xdfffffff window] +pci_bus 0000:00: root bus resource [mem 0xfd000000-0xfe7fffff window] +pci_bus 0000:00: root bus resource [bus 00-fe] +pci 0000:00:00.0: [8086:1910] type 00 class 0x060000 +pci 0000:00:01.0: [8086:1901] type 01 class 0x060400 +pci 0000:00:01.0: PME# supported from D0 D3hot D3cold +pci 0000:00:02.0: [8086:191b] type 00 class 0x030000 +pci 0000:00:02.0: reg 0x10: [mem 0x92000000-0x92ffffff 64bit] +pci 0000:00:02.0: reg 0x18: [mem 0xa0000000-0xafffffff 64bit pref] +pci 0000:00:02.0: reg 0x20: [io 0x5000-0x503f] +pci 0000:00:14.0: [8086:a12f] type 00 class 0x0c0330 +pci 0000:00:14.0: reg 0x10: [mem 0x94300000-0x9430ffff 64bit] +pci 0000:00:14.0: PME# supported from D3hot D3cold +pci 0000:00:16.0: [8086:a13a] type 00 class 0x078000 +pci 0000:00:16.0: reg 0x10: [mem 0x9432a000-0x9432afff 64bit] +pci 0000:00:16.0: PME# supported from D3hot +pci 0000:00:17.0: [8086:a103] type 00 class 0x010601 +pci 0000:00:17.0: reg 0x10: [mem 0x94328000-0x94329fff] +pci 0000:00:17.0: reg 0x14: [mem 0x9432d000-0x9432d0ff] +pci 0000:00:17.0: reg 0x18: [io 0x5080-0x5087] +pci 0000:00:17.0: reg 0x1c: [io 0x5088-0x508b] +pci 0000:00:17.0: reg 0x20: [io 0x5060-0x507f] +pci 0000:00:17.0: reg 0x24: [mem 0x9432b000-0x9432b7ff] +pci 0000:00:17.0: PME# supported from D3hot +pci 0000:00:1c.0: [8086:a111] type 01 class 0x060400 +pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold +pci 0000:00:1c.0: Intel SPT PCH root port ACS workaround enabled +pci 0000:00:1c.2: [8086:a112] type 01 class 0x060400 +pci 0000:00:1c.2: PME# supported from D0 D3hot D3cold +pci 0000:00:1c.2: Intel SPT PCH root port ACS workaround enabled +pci 0000:00:1c.3: [8086:a113] type 01 class 0x060400 +pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold +pci 0000:00:1c.3: Intel SPT PCH root port ACS workaround enabled +pci 0000:00:1f.0: [8086:a14e] type 00 class 0x060100 +pci 0000:00:1f.2: [8086:a121] type 00 class 0x058000 +pci 0000:00:1f.2: reg 0x10: [mem 0x94324000-0x94327fff] +pci 0000:00:1f.3: [8086:a170] type 00 class 0x040300 +pci 0000:00:1f.3: reg 0x10: [mem 0x94320000-0x94323fff 64bit] +pci 0000:00:1f.3: reg 0x20: [mem 0x94310000-0x9431ffff 64bit] +pci 0000:00:1f.3: PME# supported from D3hot D3cold +pci 0000:00:1f.4: [8086:a123] type 00 class 0x0c0500 +pci 0000:00:1f.4: reg 0x10: [mem 0x9432c000-0x9432c0ff 64bit] +pci 0000:00:1f.4: reg 0x20: [io 0x5040-0x505f] +pci 0000:01:00.0: [10de:139b] type 00 class 0x030200 +pci 0000:01:00.0: reg 0x10: [mem 0x93000000-0x93ffffff] +pci 0000:01:00.0: reg 0x14: [mem 0x80000000-0x8fffffff 64bit pref] +pci 0000:01:00.0: reg 0x1c: [mem 0x90000000-0x91ffffff 64bit pref] +pci 0000:01:00.0: reg 0x24: [io 0x4000-0x407f] +pci 0000:01:00.0: reg 0x30: [mem 0xfff80000-0xffffffff pref] +pci 0000:01:00.0: Enabling HDA controller +pci 0000:00:01.0: PCI bridge to [bus 01-06] +pci 0000:00:01.0: bridge window [io 0x4000-0x4fff] +pci 0000:00:01.0: bridge window [mem 0x93000000-0x93ffffff] +pci 0000:00:01.0: bridge window [mem 0x80000000-0x91ffffff 64bit pref] +pci 0000:07:00.0: [1217:8520] type 00 class 0x080501 +pci 0000:07:00.0: reg 0x10: [mem 0x94201000-0x94201fff] +pci 0000:07:00.0: reg 0x14: [mem 0x94200000-0x942007ff] +pci 0000:07:00.0: PME# supported from D3hot D3cold +pci 0000:00:1c.0: PCI bridge to [bus 07] +pci 0000:00:1c.0: bridge window [mem 0x94200000-0x942fffff] +pci 0000:08:00.0: [8086:3166] type 00 class 0x028000 +pci 0000:08:00.0: reg 0x10: [mem 0x94100000-0x94101fff 64bit] +pci 0000:08:00.0: PME# supported from D0 D3hot D3cold +pci 0000:00:1c.2: PCI bridge to [bus 08] +pci 0000:00:1c.2: bridge window [mem 0x94100000-0x941fffff] +pci 0000:09:00.0: [10ec:8168] type 00 class 0x020000 +pci 0000:09:00.0: reg 0x10: [io 0x3000-0x30ff] +pci 0000:09:00.0: reg 0x18: [mem 0x94004000-0x94004fff 64bit] +pci 0000:09:00.0: reg 0x20: [mem 0x94000000-0x94003fff 64bit] +pci 0000:09:00.0: supports D1 D2 +pci 0000:09:00.0: PME# supported from D0 D1 D2 D3hot D3cold +pci 0000:00:1c.3: PCI bridge to [bus 09] +pci 0000:00:1c.3: bridge window [io 0x3000-0x3fff] +pci 0000:00:1c.3: bridge window [mem 0x94000000-0x940fffff] +ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 *10 11 12 14 15) +ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 10 *11 12 14 15) +ACPI: EC: interrupt unblocked +ACPI: EC: event unblocked +ACPI: EC: EC_CMD/EC_SC=0x66, EC_DATA=0x62 +ACPI: EC: GPE=0x2 +ACPI: \_SB_.PCI0.LPCB.EC0_: Boot DSDT EC initialization complete +ACPI: \_SB_.PCI0.LPCB.EC0_: EC: Used to handle transactions and events +iommu: Default domain type: Translated +pci 0000:00:02.0: vgaarb: setting as boot VGA device +pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none +pci 0000:00:02.0: vgaarb: bridge control possible +vgaarb: loaded +EDAC MC: Ver: 3.0.0 +NetLabel: Initializing +NetLabel: domain hash size = 128 +NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO +NetLabel: unlabeled traffic allowed by default +PCI: Using ACPI for IRQ routing +PCI: pci_cache_line_size set to 64 bytes +e820: reserve RAM buffer [mem 0x0009e800-0x0009ffff] +e820: reserve RAM buffer [mem 0x5f693000-0x5fffffff] +e820: reserve RAM buffer [mem 0x5f78a000-0x5fffffff] +e820: reserve RAM buffer [mem 0x7558f000-0x77ffffff] +e820: reserve RAM buffer [mem 0x480800000-0x483ffffff] +hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0 +hpet0: 8 comparators, 64-bit 24.000000 MHz counter +clocksource: Switched to clocksource tsc-early +VFS: Disk quotas dquot_6.6.0 +VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) +AppArmor: AppArmor Filesystem Enabled +pnp: PnP ACPI init +system 00:00: [mem 0xfd000000-0xfdabffff] has been reserved +system 00:00: [mem 0xfdad0000-0xfdadffff] has been reserved +system 00:00: [mem 0xfdb00000-0xfdffffff] has been reserved +system 00:00: [mem 0xfe000000-0xfe01ffff] has been reserved +system 00:00: [mem 0xfe036000-0xfe03bfff] has been reserved +system 00:00: [mem 0xfe03d000-0xfe3fffff] has been reserved +system 00:00: [mem 0xfe410000-0xfe7fffff] has been reserved +system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active) +system 00:01: [io 0x2000-0x20fe] has been reserved +system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active) +system 00:02: [io 0x0680-0x069f] has been reserved +system 00:02: [io 0xffff] has been reserved +system 00:02: [io 0xffff] has been reserved +system 00:02: [io 0xffff] has been reserved +system 00:02: [io 0x1800-0x18fe] has been reserved +system 00:02: [io 0x164e-0x164f] has been reserved +system 00:02: Plug and Play ACPI device, IDs PNP0c02 (active) +system 00:03: [io 0x0800-0x087f] has been reserved +system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active) +pnp 00:04: Plug and Play ACPI device, IDs PNP0b00 (active) +system 00:05: [io 0x1854-0x1857] has been reserved +system 00:05: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active) +pnp 00:06: Plug and Play ACPI device, IDs PNP0303 (active) +pnp 00:07: Plug and Play ACPI device, IDs SYN2b5b PNP0f03 (active) +system 00:08: [mem 0xfe035000-0xfe035fff] has been reserved +system 00:08: [mem 0xfe034008-0xfe034fff] has been reserved +system 00:08: [mem 0xfdaf0000-0xfdafffff] has been reserved +system 00:08: [mem 0xfdae0000-0xfdaeffff] has been reserved +system 00:08: [mem 0xfdac0000-0xfdacffff] has been reserved +system 00:08: Plug and Play ACPI device, IDs PNP0c02 (active) +system 00:09: [mem 0xfe034000-0xfe034007] has been reserved +system 00:09: Plug and Play ACPI device, IDs PNP0c02 (active) +system 00:0a: [mem 0xfed10000-0xfed17fff] has been reserved +system 00:0a: [mem 0xfed18000-0xfed18fff] has been reserved +system 00:0a: [mem 0xfed19000-0xfed19fff] has been reserved +system 00:0a: [mem 0xe0000000-0xefffffff] has been reserved +system 00:0a: [mem 0xfed20000-0xfed3ffff] has been reserved +system 00:0a: [mem 0xfed90000-0xfed93fff] could not be reserved +system 00:0a: [mem 0xfed45000-0xfed8ffff] could not be reserved -- 2.20.1