Bug 108257

Summary: animating overlayed leak/glitch when switching to "TTY" console from X
Product: DRI Reporter: whomst.watch.the.watchers
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED WORKSFORME QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: high CC: intel-gfx-bugs, ville.syrjala
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: Triaged, ReadyForDev
i915 platform: KBL i915 features: display/Other
Attachments:
Description Flags
a short video of the animating console glitch/leak
none
dmesg from boot
none
dmesg from boot to xinit and switching to console
none
intel_display.c (patched)
none
drm-tip.head.852b9329fbb6ea8bdbb3dac78328aae73d919305.patch none

Description whomst.watch.the.watchers 2018-10-06 05:16:26 UTC
Created attachment 141921 [details]
a short video of the animating console glitch/leak

### FWD OF BUG: https://bugzilla.kernel.org/show_bug.cgi?id=201283

OVERVIEW:

    Switching to a TTY console (eg: CTRL + ALT + F1) from X desktop is causing an overlayed glitch to reveal itself ~90% of the time.

    It seems like a memory/data leak, not just a graphical leak.

    1.  Sometimes the glitch animates, reflecting system activity.
    (eg:  in the attached video, nmap and cryptocurrency mining was running in the background, the glitch animates in a particular section.  Sometimes, other parts animate reflecting other activity)

    2.  The glitch remains in the same place overlaying the console, regardless of scrolling activity.

    i have tried different Kernel versions, and differing versions of ubuntu & debian distributions.  Most recently i have compiled 4.18.9 after i changed more .config settings before Kernel compilation, to see if i could root it out, but the glitch still occurs.

STEPS TO REPRODUCE:

    1.  invoke X graphical desktop
    2.  switch back to a TTY, eg: using CTRL + ALT + F1
    3.  the bug appears ~90% of the time

CURRENT BUILD & HARDWARE:

    Kernel:  Linux 4.18.9 SMP PREEMPT
    Distro:  Debian GNU/Linux 9.5 (Stretch)

    CPU: Intel Core i7-7700K
    CPU microcode:  0x8e

    Display GPU: Intel (i915)

    Secondary GPUs: PCIe GPUs inside KVM guests with no amd or nvidia drivers/modules on the host.

########################
### CPU mitigations  ###
########################

    cat /sys/devices/system/cpu/vulnerabilities/*

    Mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
    Mitigation: PTI
    Mitigation: Speculative Store Bypass disabled via prctl and seccomp
    Mitigation: __user pointer sanitization
    Mitigation: Full generic retpoline, IBPB, IBRS_FW

########################
### FUTHER lshw INFO ###
########################

    description: Desktop Computer
    product: TB250-BTC (None)
    vendor: BIOSTAR Group
    version: Default string
    serial: None
    width: 64 bits
    capabilities: smbios-3.0 dmi-3.0 smp vsyscall32
    configuration: chassis=desktop family=None sku=None uuid=00020003-0004-0005-0006-000700080009
  *-core
       description: Motherboard
       product: TB250-BTC
       vendor: BIOSTAR Group
       physical id: 0
       serial: None
       slot: None
     *-firmware
          description: BIOS
          vendor: American Megatrends Inc.
          physical id: 0
          version: 5.12
          date: 04/13/2018
          size: 64KiB
          capacity: 15MiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
          vendor: Intel Corp.
          physical id: 13
          bus info: cpu@0
          version: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 4399MHz
          capacity: 4500MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp flush_l1d cpufreq
          configuration: cores=4 enabledcores=4 threads=4
        *-cache:0
             description: L1 cache
             physical id: 10
             slot: L1 Cache
             size: 256KiB
             capacity: 256KiB
             capabilities: synchronous internal write-back unified
             configuration: level=1
        *-cache:1
             description: L2 cache
             physical id: 11
             slot: L2 Cache
             size: 1MiB
             capacity: 1MiB
             capabilities: synchronous internal write-back unified
             configuration: level=2
        *-cache:2
             description: L3 cache
             physical id: 12
             slot: L3 Cache
             size: 8MiB
             capacity: 8MiB
             capabilities: synchronous internal write-back unified
             configuration: level=3
     *-memory
          description: System Memory
          physical id: a
          slot: System board or motherboard
          size: 32GiB
        *-bank:0
             description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
             product: BLS16G4D240FSB.16FBD
             vendor: 859B
             physical id: 0
             serial: 2604008A
             slot: ChannelA-DIMM0
             size: 16GiB
             width: 64 bits
             clock: 2400MHz (0.4ns)
        *-bank:1
             description: [empty]
             physical id: 1
             slot: ChannelA-DIMM1
        *-bank:2
             description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
             product: BLS16G4D240FSB.16FBD
             vendor: 859B
             physical id: 2
             serial: 260400CF
             slot: ChannelB-DIMM0
             size: 16GiB
             width: 64 bits
             clock: 2400MHz (0.4ns)
        *-bank:3
             description: [empty]
             physical id: 3
             slot: ChannelB-DIMM1
     *-pci
          description: Host bridge
          product: Intel Corporation
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 05
          width: 32 bits
          clock: 33MHz
        *-pci:0
             description: PCI bridge
             product: Skylake PCIe Controller (x16)
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 05
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:123 ioport:e000(size=4096) memory:de000000-df0fffff ioport:2fa0000000(size=301989888)
           *-display
                description: VGA compatible controller
                product: NVIDIA Corporation
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
                configuration: driver=vfio-pci latency=0
                resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:157 memory:de000000-deffffff memory:2fa0000000-2fafffffff memory:2fb0000000-2fb1ffffff ioport:e000(size=128) memory:df000000-df07ffff
           *-multimedia
                description: Audio device
                product: NVIDIA Corporation
                vendor: NVIDIA Corporation
                physical id: 0.1
                bus info: pci@0000:01:00.1
                version: a1
                width: 32 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list
                configuration: driver=vfio-pci latency=0
                resources: irq:17 memory:df080000-df083fff
        *-display
             description: VGA compatible controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 04
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: iomemory:2f0-2ef irq:150 memory:2ffe000000-2ffeffffff memory:c0000000-cfffffff ioport:f000(size=64) memory:c0000-dffff
        *-generic UNCLAIMED
             description: System peripheral
             product: Skylake Gaussian Mixture Model
             vendor: Intel Corporation
             physical id: 8
             bus info: pci@0000:00:08.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm bus_master cap_list
             configuration: latency=0
             resources: iomemory:2f0-2ef memory:2fff012000-2fff012fff
        *-usb
             description: USB controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: iomemory:2f0-2ef irq:136 memory:2fff000000-2fff00ffff
        *-communication
             description: Communication controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: iomemory:2f0-2ef irq:143 memory:2fff011000-2fff011fff
        *-storage
             description: SATA controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 17
             bus info: pci@0000:00:17.0
             version: 00
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:135 memory:df904000-df905fff memory:df907000-df9070ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:df906000-df9067ff
        *-pci:1
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: f0
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:124 ioport:d000(size=4096) memory:df800000-df8fffff ioport:2fe0000000(size=270532608)
           *-display
                description: VGA compatible controller
                product: Ellesmere [Radeon RX 470/480]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0
                bus info: pci@0000:02:00.0
                version: e7
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
                configuration: driver=vfio-pci latency=0
                resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:144 memory:2fe0000000-2fefffffff memory:2ff0000000-2ff01fffff ioport:d000(size=256) memory:df800000-df83ffff memory:df840000-df85ffff
           *-multimedia
                description: Audio device
                product: Advanced Micro Devices, Inc. [AMD/ATI]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0.1
                bus info: pci@0000:02:00.1
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=vfio-pci latency=0
                resources: irq:151 memory:df860000-df863fff
        *-pci:2
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1b.5
             bus info: pci@0000:00:1b.5
             version: f0
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:125 ioport:6000(size=16384) memory:df100000-df4fffff ioport:2f00000000(size=1881145344)
           *-pci
                description: PCI bridge
                product: ASMedia Technology Inc.
                vendor: ASMedia Technology Inc.
                physical id: 0
                bus info: pci@0000:03:00.0
                version: 00
                width: 32 bits
                clock: 33MHz
                capabilities: pci msi pm pciexpress normal_decode bus_master cap_list
                configuration: driver=pcieport
                resources: irq:130 ioport:6000(size=16384) memory:df100000-df4fffff ioport:2f00000000(size=1881145344)
              *-pci:0
                   description: PCI bridge
                   product: ASMedia Technology Inc.
                   vendor: ASMedia Technology Inc.
                   physical id: 1
                   bus info: pci@0000:04:01.0
                   version: 00
                   width: 64 bits
                   clock: 33MHz
                   capabilities: pci msi pm pciexpress normal_decode bus_master cap_list
                   configuration: driver=pcieport
                   resources: iomemory:91910-9190f irq:131 ioport:9000(size=4096) memory:df400000-df4fffff ioport:2f60000000(size=270532608)
                 *-display
                      description: VGA compatible controller
                      product: Ellesmere [Radeon RX 470/480]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0
                      bus info: pci@0000:05:00.0
                      version: e7
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
                      configuration: driver=vfio-pci latency=0
                      resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:145 memory:2f60000000-2f6fffffff memory:2f70000000-2f701fffff ioport:9000(size=256) memory:df400000-df43ffff memory:df440000-df45ffff
                 *-multimedia
                      description: Audio device
                      product: Advanced Micro Devices, Inc. [AMD/ATI]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0.1
                      bus info: pci@0000:05:00.1
                      version: 00
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi bus_master cap_list
                      configuration: driver=vfio-pci latency=0
                      resources: irq:152 memory:df460000-df463fff
              *-pci:1
                   description: PCI bridge
                   product: ASMedia Technology Inc.
                   vendor: ASMedia Technology Inc.
                   physical id: 3
                   bus info: pci@0000:04:03.0
                   version: 00
                   width: 64 bits
                   clock: 33MHz
                   capabilities: pci msi pm pciexpress normal_decode bus_master cap_list
                   configuration: driver=pcieport
                   resources: iomemory:81810-8180f irq:132 ioport:8000(size=4096) memory:df300000-df3fffff ioport:2f40000000(size=270532608)
                 *-display
                      description: VGA compatible controller
                      product: Ellesmere [Radeon RX 470/480]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0
                      bus info: pci@0000:06:00.0
                      version: e7
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
                      configuration: driver=vfio-pci latency=0
                      resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:146 memory:2f40000000-2f4fffffff memory:2f50000000-2f501fffff ioport:8000(size=256) memory:df300000-df33ffff memory:df340000-df35ffff
                 *-multimedia
                      description: Audio device
                      product: Advanced Micro Devices, Inc. [AMD/ATI]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0.1
                      bus info: pci@0000:06:00.1
                      version: 00
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi bus_master cap_list
                      configuration: driver=vfio-pci latency=0
                      resources: irq:153 memory:df360000-df363fff
              *-pci:2
                   description: PCI bridge
                   product: ASMedia Technology Inc.
                   vendor: ASMedia Technology Inc.
                   physical id: 5
                   bus info: pci@0000:04:05.0
                   version: 00
                   width: 64 bits
                   clock: 33MHz
                   capabilities: pci msi pm pciexpress normal_decode bus_master cap_list
                   configuration: driver=pcieport
                   resources: iomemory:71710-7170f irq:133 ioport:7000(size=4096) memory:df200000-df2fffff ioport:2f20000000(size=270532608)
                 *-display
                      description: VGA compatible controller
                      product: Ellesmere [Radeon RX 470/480]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0
                      bus info: pci@0000:07:00.0
                      version: e7
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
                      configuration: driver=vfio-pci latency=0
                      resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:147 memory:2f20000000-2f2fffffff memory:2f30000000-2f301fffff ioport:7000(size=256) memory:df200000-df23ffff memory:df240000-df25ffff
                 *-multimedia
                      description: Audio device
                      product: Advanced Micro Devices, Inc. [AMD/ATI]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0.1
                      bus info: pci@0000:07:00.1
                      version: 00
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi bus_master cap_list
                      configuration: driver=vfio-pci latency=0
                      resources: irq:154 memory:df260000-df263fff
              *-pci:3
                   description: PCI bridge
                   product: ASMedia Technology Inc.
                   vendor: ASMedia Technology Inc.
                   physical id: 7
                   bus info: pci@0000:04:07.0
                   version: 00
                   width: 64 bits
                   clock: 33MHz
                   capabilities: pci msi pm pciexpress normal_decode bus_master cap_list
                   configuration: driver=pcieport
                   resources: iomemory:61610-6160f irq:134 ioport:6000(size=4096) memory:df100000-df1fffff ioport:2f00000000(size=270532608)
                 *-display
                      description: VGA compatible controller
                      product: Ellesmere [Radeon RX 470/480]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0
                      bus info: pci@0000:08:00.0
                      version: e7
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
                      configuration: driver=vfio-pci latency=0
                      resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:148 memory:2f00000000-2f0fffffff memory:2f10000000-2f101fffff ioport:6000(size=256) memory:df100000-df13ffff memory:df140000-df15ffff
                 *-multimedia
                      description: Audio device
                      product: Advanced Micro Devices, Inc. [AMD/ATI]
                      vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                      physical id: 0.1
                      bus info: pci@0000:08:00.1
                      version: 00
                      width: 64 bits
                      clock: 33MHz
                      capabilities: pm pciexpress msi bus_master cap_list
                      configuration: driver=vfio-pci latency=0
                      resources: irq:155 memory:df160000-df163fff
        *-pci:3
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: f0
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:126 ioport:c000(size=4096) memory:df700000-df7fffff
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:09:00.0
                logical name: enp9s0
                version: 15
                serial: b8:97:5a:f6:84:54
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.0.3 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
                resources: irq:16 ioport:c000(size=256) memory:df704000-df704fff memory:df700000-df703fff
        *-pci:4
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1c.5
             bus info: pci@0000:00:1c.5
             version: f0
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:127 ioport:b000(size=4096) memory:dc000000-dd0fffff ioport:2f80000000(size=301989888)
           *-display
                description: VGA compatible controller
                product: GP104 [GeForce GTX 1070]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:0a:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
                configuration: driver=vfio-pci latency=0
                resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:158 memory:dc000000-dcffffff memory:2f80000000-2f8fffffff memory:2f90000000-2f91ffffff ioport:b000(size=128) memory:dd000000-dd07ffff
           *-multimedia
                description: Audio device
                product: GP104 High Definition Audio Controller
                vendor: NVIDIA Corporation
                physical id: 0.1
                bus info: pci@0000:0a:00.1
                version: a1
                width: 32 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list
                configuration: driver=vfio-pci latency=0
                resources: irq:18 memory:dd080000-dd083fff
        *-pci:5
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1c.7
             bus info: pci@0000:00:1c.7
             version: f0
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:128 ioport:a000(size=4096) memory:df600000-df6fffff ioport:2fc0000000(size=270532608)
           *-display
                description: VGA compatible controller
                product: Ellesmere [Radeon RX 470/480]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0
                bus info: pci@0000:0b:00.0
                version: e7
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
                configuration: driver=vfio-pci latency=0
                resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:149 memory:2fc0000000-2fcfffffff memory:2fd0000000-2fd01fffff ioport:a000(size=256) memory:df600000-df63ffff memory:df640000-df65ffff
           *-multimedia
                description: Audio device
                product: Advanced Micro Devices, Inc. [AMD/ATI]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0.1
                bus info: pci@0000:0b:00.1
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=vfio-pci latency=0
                resources: irq:156 memory:df660000-df663fff
        *-pci:6
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: f0
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:129 memory:df500000-df5fffff
           *-storage
                description: Non-Volatile memory controller
                product: Samsung Electronics Co Ltd
                vendor: Samsung Electronics Co Ltd
                physical id: 0
                bus info: pci@0000:0c:00.0
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
                configuration: driver=nvme latency=0
                resources: irq:16 memory:df500000-df503fff
        *-isa
             description: ISA bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-memory UNCLAIMED
             description: Memory controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 00
             width: 32 bits
             clock: 33MHz (30.3ns)
             capabilities: bus_master
             configuration: latency=0
             resources: memory:df900000-df903fff
        *-serial UNCLAIMED
             description: SMBus
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1f.4
             bus info: pci@0000:00:1f.4
             version: 00
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: iomemory:2f0-2ef memory:2fff010000-2fff0100ff ioport:f040(size=32)
Comment 1 Lakshmi 2018-10-08 07:47:52 UTC
Reporter, Can you verify if you have same issue on latest drm-tip:
(https://cgit.freedesktop.org/drm-tip) with kernel parameters drm.debug=0x1e log_buf_len=4M.

If the problem persists attach the full dmesg from boot.
Comment 2 Lakshmi 2018-10-24 10:41:22 UTC
Reporter, any updates here?
Comment 3 whomst.watch.the.watchers 2018-10-29 11:39:13 UTC
Lakshmi, thank you for the reply

i will report back as soon as i have tested latest drm-tip

this system is used for multiple server applications so reboots do not happen often, please bear with me
Comment 4 Denis 2018-10-29 13:19:10 UTC
Hi. This issue really looks like these:

https://bugs.freedesktop.org/show_bug.cgi?id=107951
https://bugs.freedesktop.org/show_bug.cgi?id=106478

Could you please check the same with Vadym on your system? (more info on the first link, pasting only the "final" investigations below):


Following patch fixes the issue for me: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/877396/

That patch fixes similar issue on the ChromeOS.
Comment 5 whomst.watch.the.watchers 2018-10-29 14:24:37 UTC
Created attachment 142254 [details]
dmesg from boot
Comment 6 whomst.watch.the.watchers 2018-10-29 14:25:40 UTC
Created attachment 142255 [details]
dmesg from boot to xinit and switching to console
Comment 7 whomst.watch.the.watchers 2018-10-29 14:31:56 UTC
Lakshmi,

the problem is still occurring on latest drm-tip from git (HEAD:  c4487dca27970879bf67f331614142c749984d65)

i have attached:

  1.  dmesg from boot
  2.  dmesg from boot to xinit and console switch from XFCE

Denis,

thank you for the info, i will check that thread
Comment 8 vadym 2018-10-30 13:46:52 UTC
(In reply to whomst.watch.the.watchers from comment #7)
> Lakshmi,
> 
> the problem is still occurring on latest drm-tip from git (HEAD: 
> c4487dca27970879bf67f331614142c749984d65)
> 
> i have attached:
> 
>   1.  dmesg from boot
>   2.  dmesg from boot to xinit and console switch from XFCE
> 
> Denis,
> 
> thank you for the info, i will check that thread

There is another one patch to drm-tip which is one review now: https://patchwork.freedesktop.org/patch/244232/.

Can you please rebuild the drm tip with that patch and test again ?
Comment 9 whomst.watch.the.watchers 2018-10-30 17:15:10 UTC
Created attachment 142281 [details]
intel_display.c (patched)

(In reply to vadym from comment #8)
> (In reply to whomst.watch.the.watchers from comment #7)
> 
> There is another one patch to drm-tip which is one review now:
> https://patchwork.freedesktop.org/patch/244232/.
> 
> Can you please rebuild the drm tip with that patch and test again ?

Vadym,

thanks, i have applied the patch but the problem is the same

for sanity i have attached the `intel_display.c` i used for this build

(`git apply` and also `patch` command failed for me, so i added the patch line manually)
Comment 10 vadym 2018-11-05 17:53:42 UTC
Yep, it doesn't work for me as well. There is a link to original fix (in ChromeOS) in that patch, so that is why I thought it should fix the problem. 

I can confirm that for me only original patch https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/877396/3/drivers/gpu/drm/i915/intel_display.c works well.
Comment 11 Lakshmi 2018-11-06 08:45:58 UTC
Reporter, can you try with the original patch as mentioned in comment#10? Will that help?
Comment 12 whomst.watch.the.watchers 2018-11-08 22:59:31 UTC
Created attachment 142416 [details] [review]
drm-tip.head.852b9329fbb6ea8bdbb3dac78328aae73d919305.patch

(In reply to Lakshmi from comment #11)
> Reporter, can you try with the original patch as mentioned in comment#10?
> Will that help?

Lakshmi, i can confirm the patch works, but more code is in the new drm-tip head which requires butchering compared to the old patch, i have attached my patch

(built from latest drm-tip, head 852b9329fbb6ea8bdbb3dac78328aae73d919305)
the latest head still has the glitch when not patched.

i am happy to help if you want me to test any further patches, please let me know.

thanks for the help
Comment 13 Lakshmi 2018-11-14 10:44:04 UTC
Ville, any help here?
Comment 14 Lakshmi 2018-11-14 10:48:48 UTC
Reporter, can you verify with this patch on top of latest drm-tip?
https://patchwork.freedesktop.org/series/51878/
Comment 15 whomst.watch.the.watchers 2018-11-20 10:40:29 UTC
(In reply to Lakshmi from comment #14)
> Reporter, can you verify with this patch on top of latest drm-tip?
> https://patchwork.freedesktop.org/series/51878/

using `git am` to patch with the mbox file failed on latest drm-tip:

  $ git am drm-i915-Program-SKL-watermarks-ddb-more-carefully.mbox
  Applying: drm/i915: Reorganize plane register writes to make them more atomic
  Applying: drm/i915: Move single buffered plane register writes to the end
  Applying: drm/i915: Introduce crtc_state->update_planes bitmask
  Applying: drm/i915: Pass the new crtc_state to ->disable_plane()
  error: patch failed: drivers/gpu/drm/i915/intel_display.h:382
  error: drivers/gpu/drm/i915/intel_display.h: patch does not apply
  Patch failed at 0004 drm/i915: Pass the new crtc_state to ->disable_plane()

mbox patching is new to me, am i missing something?
Comment 16 whomst.watch.the.watchers 2018-12-01 23:07:35 UTC
(In reply to Lakshmi from comment #14)
> Reporter, can you verify with this patch on top of latest drm-tip?
> https://patchwork.freedesktop.org/series/51878/

the bug is not appearing on latest drm-tip

i can confirm the patch is not needed now

( using recent drm-tip https://cgit.freedesktop.org/drm-tip/commit/?id=2f99c4889e4124f9cf50b745d037f432318c4bb4 )
Comment 17 Lakshmi 2018-12-03 09:06:55 UTC
Thanks for the feedback. Closing this bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.