All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Possible 4.5 i915 Skylake regression
       [not found] <CALCETrWRt0G+RGQay1Ca584WNgx1qL8=-QvWQpjMR3_phpF3MQ@mail.gmail.com>
@ 2016-02-15 14:58 ` Andy Lutomirski
  2016-02-16 16:12   ` Daniel Vetter
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Lutomirski @ 2016-02-15 14:58 UTC (permalink / raw)
  Cc: Intel Graphics Development

On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
> Hi-
>
> On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
> model), shortly after resume, I saw a single black flash on the
> screen.  The log said:
>
> [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
> CPU pipe A FIFO underrun
>
> I haven't seen this on 4.4.
>
> I'd be happy to dig up debugging info, but I don't know what would be
> useful.  I have no i915 module options set.

It's flashing quite frequently now, although I seem to get the
underrun warning only once per resume.

intel_reg_dumper says:

                           DCC: 0x00000000 (g/dri/0/i915_forcewake_user)
                     CHDECMISC: 0x00000000 (none, ch2 enh disabled,
ch1 enh disabled, ch0 enh disabled, flex disabled, ep not present)
                        C0DRB0: 0x00000000 (0x0000)
                        C0DRB1: 0x00000000 (0x0000)
                        C0DRB2: 0x00000000 (0x0000)
                        C0DRB3: 0x00000000 (0x0000)
                        C1DRB0: 0x00000000 (0x0000)
                        C1DRB1: 0x00000000 (0x0000)
                        C1DRB2: 0x00000000 (0x0000)
                        C1DRB3: 0x00000000 (0x0000)
                       C0DRA01: 0x00000000 (0x0000)
                       C0DRA23: 0x00000000 (0x0000)
                       C1DRA01: 0x00000000 (0x0000)
                       C1DRA23: 0x00000000 (0x0000)
                    PGETBL_CTL: 0x00000000
             VCLK_DIVISOR_VGA0: 0x00800000 (n = 0, m1 = 0, m2 = 0)
             VCLK_DIVISOR_VGA1: 0x00800000 (n = 0, m1 = 0, m2 = 0)
                 VCLK_POST_DIV: 0x00800000 (vga0 p1 = 2, p2 = 2, vga1
p1 = 2, p2 = 2)
                     DPLL_TEST: 0x00000000 (, DPLLA input buffer
disabled, DPLLB input buffer disabled)
                  CACHE_MODE_0: 0x00000000
                       D_STATE: 0x00000000
                 DSPCLK_GATE_D: 0x00800000 (clock gates disabled: TVRUNIT)
                RENCLK_GATE_D1: 0x00800000
                RENCLK_GATE_D2: 0x00000000
                         SDVOB: 0x00000000 (disabled, pipe A, stall
disabled, not detected)
                         SDVOC: 0x00000000 (disabled, pipe A, stall
disabled, not detected)
                       SDVOUDI: 0x00000000
                        DSPARB: 0x00000000
                        FW_BLC: 0x00000000
                       FW_BLC2: 0x00000000
                   FW_BLC_SELF: 0x00000000
                        DSPFW1: 0x00000000
                        DSPFW2: 0x00000000
                        DSPFW3: 0x00000000
                          ADPA: 0x00000000 (disabled, transcoder A,
-hsync, -vsync)
                          LVDS: 0x00000000 (disabled, pipe A, 18 bit, 1 channel)
                          DVOA: 0x00000000 (disabled, pipe A, no
stall, -hsync, -vsync)
                          DVOB: 0x00000000 (disabled, pipe A, no
stall, -hsync, -vsync)
                          DVOC: 0x00000000 (disabled, pipe A, no
stall, -hsync, -vsync)
                   DVOA_SRCDIM: 0x00000000
                   DVOB_SRCDIM: 0x00000000
                   DVOC_SRCDIM: 0x00000000
                   BLC_PWM_CTL: 0x00000000
                  BLC_PWM_CTL2: 0x00000000
                    PP_CONTROL: 0x00000000 (power target: off)
                     PP_STATUS: 0x00000000 (off, not ready, sequencing idle)
                  PP_ON_DELAYS: 0x00000000
                 PP_OFF_DELAYS: 0x00000000
                    PP_DIVISOR: 0x00000000
                  PFIT_CONTROL: 0x00000000
               PFIT_PGM_RATIOS: 0x00000000
               PORT_HOTPLUG_EN: 0x00000000
             PORT_HOTPLUG_STAT: 0x00000000
                      DSPACNTR: 0xc4802400 (enabled)
                    DSPASTRIDE: 0x0000000f (15 bytes)
                       DSPAPOS: 0x00000000 (0, 0)
                      DSPASIZE: 0x0437077f (1920, 1080)
                      DSPABASE: 0x00000000
                      DSPASURF: 0x03300000
                   DSPATILEOFF: 0x00000000
                     PIPEACONF: 0x00000000 (disabled, inactive, pf-pd,
rotate 0, 8bpc)
                      PIPEASRC: 0x077f0437 (1920, 1080)
                     PIPEASTAT: 0x00000000 (status:)
             PIPEA_GMCH_DATA_M: 0x00000000
             PIPEA_GMCH_DATA_N: 0x00000000
               PIPEA_DP_LINK_M: 0x00000000
               PIPEA_DP_LINK_N: 0x00000000
                 CURSOR_A_BASE: 0x00000000
              CURSOR_A_CONTROL: 0x00000000
             CURSOR_A_POSITION: 0x00000000
                          FPA0: 0x00800000 (n = 0, m1 = 0, m2 = 0)
                          FPA1: 0x00800000 (n = 0, m1 = 0, m2 = 0)
                        DPLL_A: 0x00800000 (disabled, non-dvo, VGA,
default clock, unknown mode, p1 = 8, p2 = 0)
                     DPLL_A_MD: 0x00000000
                      HTOTAL_A: 0x00000000 (1 active, 1 total)
                      HBLANK_A: 0x00000000 (1 start, 1 end)
                       HSYNC_A: 0x00000000 (1 start, 1 end)
                      VTOTAL_A: 0x00000000 (1 active, 1 total)
                      VBLANK_A: 0x00000000 (1 start, 1 end)
                       VSYNC_A: 0x00000000 (1 start, 1 end)
                     BCLRPAT_A: 0x00000000
                  VSYNCSHIFT_A: 0x00000000
                      DSPBCNTR: 0x00000000 (disabled)
                    DSPBSTRIDE: 0x00000000 (0 bytes)
                       DSPBPOS: 0x00000000 (0, 0)
                      DSPBSIZE: 0x00000000 (1, 1)
                      DSPBBASE: 0x00000000
                      DSPBSURF: 0x00000000
                   DSPBTILEOFF: 0x00000000
                     PIPEBCONF: 0x00000000 (disabled, inactive, pf-pd,
rotate 0, 8bpc)
                      PIPEBSRC: 0x00000000 (1, 1)
                     PIPEBSTAT: 0x00000000 (status:)
             PIPEB_GMCH_DATA_M: 0x00000000
             PIPEB_GMCH_DATA_N: 0x00000000
               PIPEB_DP_LINK_M: 0x00000000
               PIPEB_DP_LINK_N: 0x00000000
                 CURSOR_B_BASE: 0x00000000
              CURSOR_B_CONTROL: 0x00000000
             CURSOR_B_POSITION: 0x00000000
                          FPB0: 0x00000000 (n = 0, m1 = 0, m2 = 0)
                          FPB1: 0x00000000 (n = 0, m1 = 0, m2 = 0)
                        DPLL_B: 0x00000000 (disabled, non-dvo, VGA,
default clock, unknown mode, p1 = 0, p2 = 0)
                     DPLL_B_MD: 0x00800000
                      HTOTAL_B: 0x00000000 (1 active, 1 total)
                      HBLANK_B: 0x00000000 (1 start, 1 end)
                       HSYNC_B: 0x00000000 (1 start, 1 end)
                      VTOTAL_B: 0x00000000 (1 active, 1 total)
                      VBLANK_B: 0x00000000 (1 start, 1 end)
                       VSYNC_B: 0x00000000 (1 start, 1 end)
                     BCLRPAT_B: 0x00000000
                  VSYNCSHIFT_B: 0x00000000
             VCLK_DIVISOR_VGA0: 0x00800000
             VCLK_DIVISOR_VGA1: 0x00800000
                 VCLK_POST_DIV: 0x00800000
                      VGACNTRL: 0x00000000 (enabled)
                        TV_CTL: 0x00000000
                        TV_DAC: 0x00000000
                      TV_CSC_Y: 0x00000000
                     TV_CSC_Y2: 0x00000000
                      TV_CSC_U: 0x00000000
                     TV_CSC_U2: 0x00000000
                      TV_CSC_V: 0x00000000
                     TV_CSC_V2: 0x00000000
                  TV_CLR_KNOBS: 0x00000000
                  TV_CLR_LEVEL: 0x00000000
                    TV_H_CTL_1: 0x00000000
                    TV_H_CTL_2: 0x00000000
                    TV_H_CTL_3: 0x00000000
                    TV_V_CTL_1: 0x00000000
                    TV_V_CTL_2: 0x00000000
                    TV_V_CTL_3: 0x00000000
                    TV_V_CTL_4: 0x00000000
                    TV_V_CTL_5: 0x00000000
                    TV_V_CTL_6: 0x00000000
                    TV_V_CTL_7: 0x00000000
                   TV_SC_CTL_1: 0x00000000
                   TV_SC_CTL_2: 0x00000000
                   TV_SC_CTL_3: 0x00000000
                    TV_WIN_POS: 0x00000000
                   TV_WIN_SIZE: 0x00000000
               TV_FILTER_CTL_1: 0x00000000
               TV_FILTER_CTL_2: 0x00000000
               TV_FILTER_CTL_3: 0x00000000
                 TV_CC_CONTROL: 0x00000000
                    TV_CC_DATA: 0x00000000
                   TV_H_LUMA_0: 0x00000000
                  TV_H_LUMA_59: 0x00000000
                 TV_H_CHROMA_0: 0x00000000
                TV_H_CHROMA_59: 0x00000000
                  FBC_CFB_BASE: 0x00000000
                   FBC_LL_BASE: 0x00000000
                   FBC_CONTROL: 0x00000000
                   FBC_COMMAND: 0x00000000
                    FBC_STATUS: 0x00000000
                  FBC_CONTROL2: 0x00000000
                 FBC_FENCE_OFF: 0x00000000
                   FBC_MOD_NUM: 0x00000000
                       MI_MODE: 0x00000200
                  MI_ARB_STATE: 0x00000000
                MI_RDRET_STATE: 0x00000000
                       ECOSKPD: 0x00000000
                          DP_B: 0x00000000
                DPB_AUX_CH_CTL: 0x00000000
              DPB_AUX_CH_DATA1: 0x00000000
              DPB_AUX_CH_DATA2: 0x00000000
              DPB_AUX_CH_DATA3: 0x00000000
              DPB_AUX_CH_DATA4: 0x00000000
              DPB_AUX_CH_DATA5: 0x00000000
                          DP_C: 0x00000000
                DPC_AUX_CH_CTL: 0x00000000
              DPC_AUX_CH_DATA1: 0x00000000
              DPC_AUX_CH_DATA2: 0x00000000
              DPC_AUX_CH_DATA3: 0x00000000
              DPC_AUX_CH_DATA4: 0x00000000
              DPC_AUX_CH_DATA5: 0x00000000
                          DP_D: 0x00000000
                DPD_AUX_CH_CTL: 0x00000000
              DPD_AUX_CH_DATA1: 0x00000000
              DPD_AUX_CH_DATA2: 0x00000000
              DPD_AUX_CH_DATA3: 0x00000000
              DPD_AUX_CH_DATA4: 0x00000000
              DPD_AUX_CH_DATA5: 0x00000000
                    AUD_CONFIG: 0x00000000
              AUD_HDMIW_STATUS: 0x00000000
                AUD_CONV_CHCNT: 0x00000000
                 VIDEO_DIP_CTL: 0x00000000
                 AUD_PINW_CNTR: 0x00000000
                   AUD_CNTL_ST: 0x00000000
                   AUD_PIN_CAP: 0x00000000
                  AUD_PINW_CAP: 0x00000000
            AUD_PINW_UNSOLRESP: 0x00000000
              AUD_OUT_DIG_CNVT: 0x00000000
                 AUD_OUT_CWCAP: 0x00000000
                   AUD_GRP_CAP: 0x00000000
                      FENCE  0: 0x00000000 (enabled)
                      FENCE  1: 0x00000000 (enabled)
                      FENCE  2: 0x00000000 (enabled)
                      FENCE  3: 0x00000000 (enabled)
                      FENCE  4: 0x00000000 (enabled)
                      FENCE  5: 0x00000000 (enabled)
                      FENCE  6: 0x00000000 (enabled)
                      FENCE  7: 0x00000000 (enabled)
                      FENCE  8: 0x00000000 (enabled)
                      FENCE  9: 0x00000000 (enabled)
                     FENCE  10: 0x00000000 (enabled)
                     FENCE  11: 0x00000000 (enabled)
                     FENCE  12: 0x00000000 (enabled)
                     FENCE  13: 0x00000000 (enabled)
                     FENCE  14: 0x00000000 (enabled)
                     FENCE  15: 0x00000000 (enabled)
                 FENCE START 0: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 0: 0x00000000 (
        0x00000000 end)
                 FENCE START 1: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 1: 0x00000000 (
        0x00000000 end)
                 FENCE START 2: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 2: 0x00000000 (
        0x00000000 end)
                 FENCE START 3: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 3: 0x00000000 (
        0x00000000 end)
                 FENCE START 4: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 4: 0x00000000 (
        0x00000000 end)
                 FENCE START 5: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 5: 0x00000000 (
        0x00000000 end)
                 FENCE START 6: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 6: 0x00000000 (
        0x00000000 end)
                 FENCE START 7: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 7: 0x00000000 (
        0x00000000 end)
                 FENCE START 8: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 8: 0x00000000 (
        0x00000000 end)
                 FENCE START 9: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                   FENCE END 9: 0x00000000 (
        0x00000000 end)
                FENCE START 10: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                  FENCE END 10: 0x00000000 (
        0x00000000 end)
                FENCE START 11: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                  FENCE END 11: 0x00000000 (
        0x00000000 end)
                FENCE START 12: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                  FENCE END 12: 0x00000000 (
        0x00000000 end)
                FENCE START 13: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                  FENCE END 13: 0x00000000 (
        0x00000000 end)
                FENCE START 14: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                  FENCE END 14: 0x00000000 (
        0x00000000 end)
                FENCE START 15: 0x00000000 (disabled, X tile walk,
128 pitch, 0x00000000 start)
                  FENCE END 15: 0x00000000 (
        0x00000000 end)
                       INST_PM: 0x00000000
SDVO phase shift 0 out of range -- probobly not an issue.
pipe A dot 7200 n 0 m1 0 m2 0 p1 8 p2 10
p1 out of range
SDVO phase shift 0 out of range -- probobly not an issue.
pipe B dot 57600 n 0 m1 0 m2 0 p1 1 p2 10
                 FENCE START 0: 0x065b5001
                   FENCE END 0: 0x06816027
                 FENCE START 1: 0x03b44001
                   FENCE END 1: 0x0422e02b
                 FENCE START 2: 0x08c40001
                   FENCE END 2: 0x0977003b
                 FENCE START 3: 0x00000000
                   FENCE END 3: 0x00000000
                 FENCE START 4: 0x0e750001
                   FENCE END 4: 0x0ebd7027
                 FENCE START 5: 0x00000000
                   FENCE END 5: 0x00000000
                 FENCE START 6: 0x0ee80003
                   FENCE END 6: 0x0ef3d009
                 FENCE START 7: 0x0ef41003
                   FENCE END 7: 0x0ef41000
                 FENCE START 8: 0x03300001
                   FENCE END 8: 0x03ae803b
                 FENCE START 9: 0x0ef42003
                   FENCE END 9: 0x0ef42000
                FENCE START 10: 0x00000000
                  FENCE END 10: 0x00000000
                FENCE START 11: 0x0cc38003
                  FENCE END 11: 0x0cc40002
                FENCE START 12: 0x00000000
                  FENCE END 12: 0x00000000
                FENCE START 13: 0x01d09003
                  FENCE END 13: 0x01d09000
                FENCE START 14: 0x04cf2001
                  FENCE END 14: 0x0546203b
                FENCE START 15: 0x0d4f5001
                  FENCE END 15: 0x0deda01b
                FENCE START 16: 0x054dd003
                  FENCE END 16: 0x05599006
                FENCE START 17: 0x0ef45003
                  FENCE END 17: 0x0f04400f
                FENCE START 18: 0x042a7003
                  FENCE END 18: 0x042af002
                FENCE START 19: 0x01d0e003
                  FENCE END 19: 0x01d0e000
                FENCE START 20: 0x00000000
                  FENCE END 20: 0x00000000
                FENCE START 20: 0x00000000
                  FENCE END 20: 0x00000000
                FENCE START 21: 0x065b3003
                  FENCE END 21: 0x065b3000
                FENCE START 22: 0x065b4003
                  FENCE END 22: 0x065b4000
                FENCE START 23: 0x0689c003
                  FENCE END 23: 0x0689c000
                FENCE START 24: 0x04bc5003
                  FENCE END 24: 0x04cc400f
                FENCE START 25: 0x00000000
                  FENCE END 25: 0x00000000
                FENCE START 26: 0x01d0f003
                  FENCE END 26: 0x01d0f000
                FENCE START 27: 0x00000000
                  FENCE END 27: 0x00000000
                FENCE START 28: 0x00000000
                  FENCE END 28: 0x00000000
                FENCE START 29: 0x00000000
                  FENCE END 29: 0x00000000
                FENCE START 30: 0x0081b001
                  FENCE END 30: 0x011c503b
                FENCE START 31: 0x0aa77001
                  FENCE END 31: 0x0b1e703b
               GEN6_RP_CONTROL: 0x00000d92 (enabled)
                 GEN6_RPNSWREQ: 0x1c800000
          GEN6_RP_DOWN_TIMEOUT: 0x000b71b0
      GEN6_RP_INTERRUPT_LIMITS: 0x1e000000
          GEN6_RP_UP_THRESHOLD: 0x000018e7
                 GEN6_RP_UP_EI: 0x00001d4c
               GEN6_RP_DOWN_EI: 0x00005dc0
        GEN6_RP_IDLE_HYSTERSIS: 0x0000000a
                 GEN6_RC_STATE: 0x00000000
               GEN6_RC_CONTROL: 0x88040000
      GEN6_RC1_WAKE_RATE_LIMIT: 0x03e80000
      GEN6_RC6_WAKE_RATE_LIMIT: 0x006c0000
   GEN6_RC_EVALUATION_INTERVAL: 0x0001e848
        GEN6_RC_IDLE_HYSTERSIS: 0x00000019
                 GEN6_RC_SLEEP: 0x00000000
           GEN6_RC1e_THRESHOLD: 0x00000000
            GEN6_RC6_THRESHOLD: 0x0000927c
            GEN6_RC_VIDEO_FREQ: 0x09000000
                    GEN6_PMIER: 0x00000000
                    GEN6_PMIMR: 0x00000000
                GEN6_PMINTRMSK: 0x00003f8e

I also got a warning:

[ 1754.735243] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
*ERROR* CPU pipe A FIFO underrun
[ 2008.331235] snd_hda_intel 0000:00:1f.3: azx_get_response timeout,
switching to polling mode: last cmd=0x001f0500
[ 2075.075871] ------------[ cut here ]------------
[ 2075.075946] WARNING: CPU: 0 PID: 0 at
drivers/gpu/drm/i915/intel_uncore.c:599
hsw_unclaimed_reg_debug+0x69/0x90 [i915]()
[ 2075.075953] Unclaimed register detected before writing to register 0x44324
[ 2075.075957] Modules linked in: rfcomm fuse ccm cmac xt_CHECKSUM
ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns
nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT nf_reject_ipv6
xt_conntrack ebtable_broute bridge stp llc ebtable_filter ebtable_nat
ebtables ip6table_security ip6table_raw ip6table_nat nf_conntrack_ipv6
nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_filter ip6_tables
iptable_security iptable_raw iptable_nat nf_conntrack_ipv4
nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle arc4
bnep iwlmvm mac80211 snd_hda_codec_hdmi snd_hda_codec_realtek
snd_hda_codec_generic snd_hda_intel snd_hda_codec hid_multitouch
snd_hwdep intel_rapl snd_hda_core x86_pkg_temp_thermal iwlwifi
coretemp kvm_intel snd_seq kvm uvcvideo snd_seq_device
videobuf2_vmalloc snd_pcm videobuf2_memops
[ 2075.076068]  videobuf2_v4l2 videobuf2_core btusb cfg80211
i2c_designware_platform i2c_designware_core btrtl wmi_mof videodev
dell_wmi dell_laptop btbcm btintel snd_timer bluetooth dell_smbios
vfat fat dcdbas irqbypass snd efi_pstore ghash_clmulni_intel
rtsx_pci_ms memstick joydev media pcspkr efivars shpchp soundcore
i2c_i801 mei_me rfkill mei processor_thermal_device idma64 virt_dma
intel_soc_dts_iosf intel_lpss_pci wmi acpi_als pinctrl_sunrisepoint
nfsd pinctrl_intel intel_lpss_acpi intel_lpss kfifo_buf
int3403_thermal int340x_thermal_zone int3400_thermal intel_hid
acpi_pad acpi_thermal_rel sparse_keymap industrialio tpm_tis tpm
auth_rpcgss nfs_acl lockd binfmt_misc grace sunrpc dm_crypt i915
i2c_algo_bit drm_kms_helper syscopyarea rtsx_pci_sdmmc sysfillrect
mmc_core sysimgblt fb_sys_fops drm crct10dif_pclmul
[ 2075.076192]  crc32_pclmul crc32c_intel serio_raw rtsx_pci i2c_hid video
[ 2075.076210] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.5.0-rc3-acpi+ #58
[ 2075.076215] Hardware name: Dell Inc. XPS 13 9350/07TYC2, BIOS 1.1.9
12/18/2015
[ 2075.076220]  0000000000000086 582d5957df170645 ffff880280c03c78
ffffffff81449b73
[ 2075.076230]  ffff880280c03cc0 ffffffffa01ea510 ffff880280c03cb0
ffffffff81094252
[ 2075.076240]  ffff88026eb00000 0000000000044324 ffff88026eb00000
00000000ffffff9f
[ 2075.076250] Call Trace:
[ 2075.076254]  <IRQ>  [<ffffffff81449b73>] dump_stack+0x65/0x92
[ 2075.076276]  [<ffffffff81094252>] warn_slowpath_common+0x82/0xc0
[ 2075.076285]  [<ffffffff810942ec>] warn_slowpath_fmt+0x5c/0x80
[ 2075.076345]  [<ffffffffa0161499>] hsw_unclaimed_reg_debug+0x69/0x90 [i915]
[ 2075.076399]  [<ffffffffa016474e>] gen9_write32+0x6e/0x390 [i915]
[ 2075.076408]  [<ffffffff8185705e>] ? _raw_spin_unlock+0xe/0x10
[ 2075.076433]  [<ffffffffa010df09>] snb_update_pm_irq+0x69/0xc0 [i915]
[ 2075.076457]  [<ffffffffa01123c9>] gen6_disable_pm_irq+0x19/0x40 [i915]
[ 2075.076480]  [<ffffffffa0112461>] gen6_rps_irq_handler+0x71/0xe0 [i915]
[ 2075.076503]  [<ffffffffa01131e3>] gen8_gt_irq_handler+0x183/0x250 [i915]
[ 2075.076526]  [<ffffffffa0113362>] gen8_irq_handler+0xb2/0x6e0 [i915]
[ 2075.076533]  [<ffffffff818571a0>] ? _raw_spin_unlock_irqrestore+0x20/0x40
[ 2075.076539]  [<ffffffff81857036>] ? _raw_write_unlock+0x16/0x30
[ 2075.076547]  [<ffffffff810ed861>] handle_irq_event_percpu+0x41/0x1c0
[ 2075.076553]  [<ffffffff810eda19>] handle_irq_event+0x39/0x60
[ 2075.076563]  [<ffffffff810f0ee0>] handle_edge_irq+0x90/0x150
[ 2075.076578]  [<ffffffff81007e3d>] handle_irq+0xad/0x180
[ 2075.076584]  [<ffffffff8185a0a7>] do_IRQ+0x57/0xf0
[ 2075.076591]  [<ffffffff8185820c>] common_interrupt+0x8c/0x8c
[ 2075.076594]  <EOI>  [<ffffffff816ea3b3>] ? cpuidle_enter_state+0x143/0x2d0
[ 2075.076610]  [<ffffffff816ea38e>] ? cpuidle_enter_state+0x11e/0x2d0
[ 2075.076618]  [<ffffffff816ea577>] cpuidle_enter+0x17/0x20
[ 2075.076624]  [<ffffffff810d747a>] call_cpuidle+0x2a/0x40
[ 2075.076628]  [<ffffffff810d7863>] cpu_startup_entry+0x2a3/0x360
[ 2075.076636]  [<ffffffff8184b9c9>] rest_init+0x89/0x90
[ 2075.076644]  [<ffffffff81f7a00b>] start_kernel+0x49e/0x4bf
[ 2075.076649]  [<ffffffff81f79120>] ? early_idt_handler_array+0x120/0x120
[ 2075.076655]  [<ffffffff81f79323>] x86_64_start_reservations+0x38/0x3a
[ 2075.076660]  [<ffffffff81f7946f>] x86_64_start_kernel+0x14a/0x16d
[ 2075.076665] ---[ end trace e32fa236041dc22e ]---

--Andy
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-15 14:58 ` Andy Lutomirski
@ 2016-02-16 16:12   ` Daniel Vetter
  2016-02-16 17:12     ` Andy Lutomirski
  0 siblings, 1 reply; 11+ messages in thread
From: Daniel Vetter @ 2016-02-16 16:12 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: Intel Graphics Development

On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
> > Hi-
> >
> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
> > model), shortly after resume, I saw a single black flash on the
> > screen.  The log said:
> >
> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
> > CPU pipe A FIFO underrun
> >
> > I haven't seen this on 4.4.
> >
> > I'd be happy to dig up debugging info, but I don't know what would be
> > useful.  I have no i915 module options set.
> 
> It's flashing quite frequently now, although I seem to get the
> underrun warning only once per resume.

We shut up the warning irq source to avoid hijacking an entire cpu core
;-)

There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
that should help.
-Daniel

> 
> intel_reg_dumper says:
> 
>                            DCC: 0x00000000 (g/dri/0/i915_forcewake_user)
>                      CHDECMISC: 0x00000000 (none, ch2 enh disabled,
> ch1 enh disabled, ch0 enh disabled, flex disabled, ep not present)
>                         C0DRB0: 0x00000000 (0x0000)
>                         C0DRB1: 0x00000000 (0x0000)
>                         C0DRB2: 0x00000000 (0x0000)
>                         C0DRB3: 0x00000000 (0x0000)
>                         C1DRB0: 0x00000000 (0x0000)
>                         C1DRB1: 0x00000000 (0x0000)
>                         C1DRB2: 0x00000000 (0x0000)
>                         C1DRB3: 0x00000000 (0x0000)
>                        C0DRA01: 0x00000000 (0x0000)
>                        C0DRA23: 0x00000000 (0x0000)
>                        C1DRA01: 0x00000000 (0x0000)
>                        C1DRA23: 0x00000000 (0x0000)
>                     PGETBL_CTL: 0x00000000
>              VCLK_DIVISOR_VGA0: 0x00800000 (n = 0, m1 = 0, m2 = 0)
>              VCLK_DIVISOR_VGA1: 0x00800000 (n = 0, m1 = 0, m2 = 0)
>                  VCLK_POST_DIV: 0x00800000 (vga0 p1 = 2, p2 = 2, vga1
> p1 = 2, p2 = 2)
>                      DPLL_TEST: 0x00000000 (, DPLLA input buffer
> disabled, DPLLB input buffer disabled)
>                   CACHE_MODE_0: 0x00000000
>                        D_STATE: 0x00000000
>                  DSPCLK_GATE_D: 0x00800000 (clock gates disabled: TVRUNIT)
>                 RENCLK_GATE_D1: 0x00800000
>                 RENCLK_GATE_D2: 0x00000000
>                          SDVOB: 0x00000000 (disabled, pipe A, stall
> disabled, not detected)
>                          SDVOC: 0x00000000 (disabled, pipe A, stall
> disabled, not detected)
>                        SDVOUDI: 0x00000000
>                         DSPARB: 0x00000000
>                         FW_BLC: 0x00000000
>                        FW_BLC2: 0x00000000
>                    FW_BLC_SELF: 0x00000000
>                         DSPFW1: 0x00000000
>                         DSPFW2: 0x00000000
>                         DSPFW3: 0x00000000
>                           ADPA: 0x00000000 (disabled, transcoder A,
> -hsync, -vsync)
>                           LVDS: 0x00000000 (disabled, pipe A, 18 bit, 1 channel)
>                           DVOA: 0x00000000 (disabled, pipe A, no
> stall, -hsync, -vsync)
>                           DVOB: 0x00000000 (disabled, pipe A, no
> stall, -hsync, -vsync)
>                           DVOC: 0x00000000 (disabled, pipe A, no
> stall, -hsync, -vsync)
>                    DVOA_SRCDIM: 0x00000000
>                    DVOB_SRCDIM: 0x00000000
>                    DVOC_SRCDIM: 0x00000000
>                    BLC_PWM_CTL: 0x00000000
>                   BLC_PWM_CTL2: 0x00000000
>                     PP_CONTROL: 0x00000000 (power target: off)
>                      PP_STATUS: 0x00000000 (off, not ready, sequencing idle)
>                   PP_ON_DELAYS: 0x00000000
>                  PP_OFF_DELAYS: 0x00000000
>                     PP_DIVISOR: 0x00000000
>                   PFIT_CONTROL: 0x00000000
>                PFIT_PGM_RATIOS: 0x00000000
>                PORT_HOTPLUG_EN: 0x00000000
>              PORT_HOTPLUG_STAT: 0x00000000
>                       DSPACNTR: 0xc4802400 (enabled)
>                     DSPASTRIDE: 0x0000000f (15 bytes)
>                        DSPAPOS: 0x00000000 (0, 0)
>                       DSPASIZE: 0x0437077f (1920, 1080)
>                       DSPABASE: 0x00000000
>                       DSPASURF: 0x03300000
>                    DSPATILEOFF: 0x00000000
>                      PIPEACONF: 0x00000000 (disabled, inactive, pf-pd,
> rotate 0, 8bpc)
>                       PIPEASRC: 0x077f0437 (1920, 1080)
>                      PIPEASTAT: 0x00000000 (status:)
>              PIPEA_GMCH_DATA_M: 0x00000000
>              PIPEA_GMCH_DATA_N: 0x00000000
>                PIPEA_DP_LINK_M: 0x00000000
>                PIPEA_DP_LINK_N: 0x00000000
>                  CURSOR_A_BASE: 0x00000000
>               CURSOR_A_CONTROL: 0x00000000
>              CURSOR_A_POSITION: 0x00000000
>                           FPA0: 0x00800000 (n = 0, m1 = 0, m2 = 0)
>                           FPA1: 0x00800000 (n = 0, m1 = 0, m2 = 0)
>                         DPLL_A: 0x00800000 (disabled, non-dvo, VGA,
> default clock, unknown mode, p1 = 8, p2 = 0)
>                      DPLL_A_MD: 0x00000000
>                       HTOTAL_A: 0x00000000 (1 active, 1 total)
>                       HBLANK_A: 0x00000000 (1 start, 1 end)
>                        HSYNC_A: 0x00000000 (1 start, 1 end)
>                       VTOTAL_A: 0x00000000 (1 active, 1 total)
>                       VBLANK_A: 0x00000000 (1 start, 1 end)
>                        VSYNC_A: 0x00000000 (1 start, 1 end)
>                      BCLRPAT_A: 0x00000000
>                   VSYNCSHIFT_A: 0x00000000
>                       DSPBCNTR: 0x00000000 (disabled)
>                     DSPBSTRIDE: 0x00000000 (0 bytes)
>                        DSPBPOS: 0x00000000 (0, 0)
>                       DSPBSIZE: 0x00000000 (1, 1)
>                       DSPBBASE: 0x00000000
>                       DSPBSURF: 0x00000000
>                    DSPBTILEOFF: 0x00000000
>                      PIPEBCONF: 0x00000000 (disabled, inactive, pf-pd,
> rotate 0, 8bpc)
>                       PIPEBSRC: 0x00000000 (1, 1)
>                      PIPEBSTAT: 0x00000000 (status:)
>              PIPEB_GMCH_DATA_M: 0x00000000
>              PIPEB_GMCH_DATA_N: 0x00000000
>                PIPEB_DP_LINK_M: 0x00000000
>                PIPEB_DP_LINK_N: 0x00000000
>                  CURSOR_B_BASE: 0x00000000
>               CURSOR_B_CONTROL: 0x00000000
>              CURSOR_B_POSITION: 0x00000000
>                           FPB0: 0x00000000 (n = 0, m1 = 0, m2 = 0)
>                           FPB1: 0x00000000 (n = 0, m1 = 0, m2 = 0)
>                         DPLL_B: 0x00000000 (disabled, non-dvo, VGA,
> default clock, unknown mode, p1 = 0, p2 = 0)
>                      DPLL_B_MD: 0x00800000
>                       HTOTAL_B: 0x00000000 (1 active, 1 total)
>                       HBLANK_B: 0x00000000 (1 start, 1 end)
>                        HSYNC_B: 0x00000000 (1 start, 1 end)
>                       VTOTAL_B: 0x00000000 (1 active, 1 total)
>                       VBLANK_B: 0x00000000 (1 start, 1 end)
>                        VSYNC_B: 0x00000000 (1 start, 1 end)
>                      BCLRPAT_B: 0x00000000
>                   VSYNCSHIFT_B: 0x00000000
>              VCLK_DIVISOR_VGA0: 0x00800000
>              VCLK_DIVISOR_VGA1: 0x00800000
>                  VCLK_POST_DIV: 0x00800000
>                       VGACNTRL: 0x00000000 (enabled)
>                         TV_CTL: 0x00000000
>                         TV_DAC: 0x00000000
>                       TV_CSC_Y: 0x00000000
>                      TV_CSC_Y2: 0x00000000
>                       TV_CSC_U: 0x00000000
>                      TV_CSC_U2: 0x00000000
>                       TV_CSC_V: 0x00000000
>                      TV_CSC_V2: 0x00000000
>                   TV_CLR_KNOBS: 0x00000000
>                   TV_CLR_LEVEL: 0x00000000
>                     TV_H_CTL_1: 0x00000000
>                     TV_H_CTL_2: 0x00000000
>                     TV_H_CTL_3: 0x00000000
>                     TV_V_CTL_1: 0x00000000
>                     TV_V_CTL_2: 0x00000000
>                     TV_V_CTL_3: 0x00000000
>                     TV_V_CTL_4: 0x00000000
>                     TV_V_CTL_5: 0x00000000
>                     TV_V_CTL_6: 0x00000000
>                     TV_V_CTL_7: 0x00000000
>                    TV_SC_CTL_1: 0x00000000
>                    TV_SC_CTL_2: 0x00000000
>                    TV_SC_CTL_3: 0x00000000
>                     TV_WIN_POS: 0x00000000
>                    TV_WIN_SIZE: 0x00000000
>                TV_FILTER_CTL_1: 0x00000000
>                TV_FILTER_CTL_2: 0x00000000
>                TV_FILTER_CTL_3: 0x00000000
>                  TV_CC_CONTROL: 0x00000000
>                     TV_CC_DATA: 0x00000000
>                    TV_H_LUMA_0: 0x00000000
>                   TV_H_LUMA_59: 0x00000000
>                  TV_H_CHROMA_0: 0x00000000
>                 TV_H_CHROMA_59: 0x00000000
>                   FBC_CFB_BASE: 0x00000000
>                    FBC_LL_BASE: 0x00000000
>                    FBC_CONTROL: 0x00000000
>                    FBC_COMMAND: 0x00000000
>                     FBC_STATUS: 0x00000000
>                   FBC_CONTROL2: 0x00000000
>                  FBC_FENCE_OFF: 0x00000000
>                    FBC_MOD_NUM: 0x00000000
>                        MI_MODE: 0x00000200
>                   MI_ARB_STATE: 0x00000000
>                 MI_RDRET_STATE: 0x00000000
>                        ECOSKPD: 0x00000000
>                           DP_B: 0x00000000
>                 DPB_AUX_CH_CTL: 0x00000000
>               DPB_AUX_CH_DATA1: 0x00000000
>               DPB_AUX_CH_DATA2: 0x00000000
>               DPB_AUX_CH_DATA3: 0x00000000
>               DPB_AUX_CH_DATA4: 0x00000000
>               DPB_AUX_CH_DATA5: 0x00000000
>                           DP_C: 0x00000000
>                 DPC_AUX_CH_CTL: 0x00000000
>               DPC_AUX_CH_DATA1: 0x00000000
>               DPC_AUX_CH_DATA2: 0x00000000
>               DPC_AUX_CH_DATA3: 0x00000000
>               DPC_AUX_CH_DATA4: 0x00000000
>               DPC_AUX_CH_DATA5: 0x00000000
>                           DP_D: 0x00000000
>                 DPD_AUX_CH_CTL: 0x00000000
>               DPD_AUX_CH_DATA1: 0x00000000
>               DPD_AUX_CH_DATA2: 0x00000000
>               DPD_AUX_CH_DATA3: 0x00000000
>               DPD_AUX_CH_DATA4: 0x00000000
>               DPD_AUX_CH_DATA5: 0x00000000
>                     AUD_CONFIG: 0x00000000
>               AUD_HDMIW_STATUS: 0x00000000
>                 AUD_CONV_CHCNT: 0x00000000
>                  VIDEO_DIP_CTL: 0x00000000
>                  AUD_PINW_CNTR: 0x00000000
>                    AUD_CNTL_ST: 0x00000000
>                    AUD_PIN_CAP: 0x00000000
>                   AUD_PINW_CAP: 0x00000000
>             AUD_PINW_UNSOLRESP: 0x00000000
>               AUD_OUT_DIG_CNVT: 0x00000000
>                  AUD_OUT_CWCAP: 0x00000000
>                    AUD_GRP_CAP: 0x00000000
>                       FENCE  0: 0x00000000 (enabled)
>                       FENCE  1: 0x00000000 (enabled)
>                       FENCE  2: 0x00000000 (enabled)
>                       FENCE  3: 0x00000000 (enabled)
>                       FENCE  4: 0x00000000 (enabled)
>                       FENCE  5: 0x00000000 (enabled)
>                       FENCE  6: 0x00000000 (enabled)
>                       FENCE  7: 0x00000000 (enabled)
>                       FENCE  8: 0x00000000 (enabled)
>                       FENCE  9: 0x00000000 (enabled)
>                      FENCE  10: 0x00000000 (enabled)
>                      FENCE  11: 0x00000000 (enabled)
>                      FENCE  12: 0x00000000 (enabled)
>                      FENCE  13: 0x00000000 (enabled)
>                      FENCE  14: 0x00000000 (enabled)
>                      FENCE  15: 0x00000000 (enabled)
>                  FENCE START 0: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 0: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 1: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 1: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 2: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 2: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 3: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 3: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 4: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 4: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 5: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 5: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 6: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 6: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 7: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 7: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 8: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 8: 0x00000000 (
>         0x00000000 end)
>                  FENCE START 9: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                    FENCE END 9: 0x00000000 (
>         0x00000000 end)
>                 FENCE START 10: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                   FENCE END 10: 0x00000000 (
>         0x00000000 end)
>                 FENCE START 11: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                   FENCE END 11: 0x00000000 (
>         0x00000000 end)
>                 FENCE START 12: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                   FENCE END 12: 0x00000000 (
>         0x00000000 end)
>                 FENCE START 13: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                   FENCE END 13: 0x00000000 (
>         0x00000000 end)
>                 FENCE START 14: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                   FENCE END 14: 0x00000000 (
>         0x00000000 end)
>                 FENCE START 15: 0x00000000 (disabled, X tile walk,
> 128 pitch, 0x00000000 start)
>                   FENCE END 15: 0x00000000 (
>         0x00000000 end)
>                        INST_PM: 0x00000000
> SDVO phase shift 0 out of range -- probobly not an issue.
> pipe A dot 7200 n 0 m1 0 m2 0 p1 8 p2 10
> p1 out of range
> SDVO phase shift 0 out of range -- probobly not an issue.
> pipe B dot 57600 n 0 m1 0 m2 0 p1 1 p2 10
>                  FENCE START 0: 0x065b5001
>                    FENCE END 0: 0x06816027
>                  FENCE START 1: 0x03b44001
>                    FENCE END 1: 0x0422e02b
>                  FENCE START 2: 0x08c40001
>                    FENCE END 2: 0x0977003b
>                  FENCE START 3: 0x00000000
>                    FENCE END 3: 0x00000000
>                  FENCE START 4: 0x0e750001
>                    FENCE END 4: 0x0ebd7027
>                  FENCE START 5: 0x00000000
>                    FENCE END 5: 0x00000000
>                  FENCE START 6: 0x0ee80003
>                    FENCE END 6: 0x0ef3d009
>                  FENCE START 7: 0x0ef41003
>                    FENCE END 7: 0x0ef41000
>                  FENCE START 8: 0x03300001
>                    FENCE END 8: 0x03ae803b
>                  FENCE START 9: 0x0ef42003
>                    FENCE END 9: 0x0ef42000
>                 FENCE START 10: 0x00000000
>                   FENCE END 10: 0x00000000
>                 FENCE START 11: 0x0cc38003
>                   FENCE END 11: 0x0cc40002
>                 FENCE START 12: 0x00000000
>                   FENCE END 12: 0x00000000
>                 FENCE START 13: 0x01d09003
>                   FENCE END 13: 0x01d09000
>                 FENCE START 14: 0x04cf2001
>                   FENCE END 14: 0x0546203b
>                 FENCE START 15: 0x0d4f5001
>                   FENCE END 15: 0x0deda01b
>                 FENCE START 16: 0x054dd003
>                   FENCE END 16: 0x05599006
>                 FENCE START 17: 0x0ef45003
>                   FENCE END 17: 0x0f04400f
>                 FENCE START 18: 0x042a7003
>                   FENCE END 18: 0x042af002
>                 FENCE START 19: 0x01d0e003
>                   FENCE END 19: 0x01d0e000
>                 FENCE START 20: 0x00000000
>                   FENCE END 20: 0x00000000
>                 FENCE START 20: 0x00000000
>                   FENCE END 20: 0x00000000
>                 FENCE START 21: 0x065b3003
>                   FENCE END 21: 0x065b3000
>                 FENCE START 22: 0x065b4003
>                   FENCE END 22: 0x065b4000
>                 FENCE START 23: 0x0689c003
>                   FENCE END 23: 0x0689c000
>                 FENCE START 24: 0x04bc5003
>                   FENCE END 24: 0x04cc400f
>                 FENCE START 25: 0x00000000
>                   FENCE END 25: 0x00000000
>                 FENCE START 26: 0x01d0f003
>                   FENCE END 26: 0x01d0f000
>                 FENCE START 27: 0x00000000
>                   FENCE END 27: 0x00000000
>                 FENCE START 28: 0x00000000
>                   FENCE END 28: 0x00000000
>                 FENCE START 29: 0x00000000
>                   FENCE END 29: 0x00000000
>                 FENCE START 30: 0x0081b001
>                   FENCE END 30: 0x011c503b
>                 FENCE START 31: 0x0aa77001
>                   FENCE END 31: 0x0b1e703b
>                GEN6_RP_CONTROL: 0x00000d92 (enabled)
>                  GEN6_RPNSWREQ: 0x1c800000
>           GEN6_RP_DOWN_TIMEOUT: 0x000b71b0
>       GEN6_RP_INTERRUPT_LIMITS: 0x1e000000
>           GEN6_RP_UP_THRESHOLD: 0x000018e7
>                  GEN6_RP_UP_EI: 0x00001d4c
>                GEN6_RP_DOWN_EI: 0x00005dc0
>         GEN6_RP_IDLE_HYSTERSIS: 0x0000000a
>                  GEN6_RC_STATE: 0x00000000
>                GEN6_RC_CONTROL: 0x88040000
>       GEN6_RC1_WAKE_RATE_LIMIT: 0x03e80000
>       GEN6_RC6_WAKE_RATE_LIMIT: 0x006c0000
>    GEN6_RC_EVALUATION_INTERVAL: 0x0001e848
>         GEN6_RC_IDLE_HYSTERSIS: 0x00000019
>                  GEN6_RC_SLEEP: 0x00000000
>            GEN6_RC1e_THRESHOLD: 0x00000000
>             GEN6_RC6_THRESHOLD: 0x0000927c
>             GEN6_RC_VIDEO_FREQ: 0x09000000
>                     GEN6_PMIER: 0x00000000
>                     GEN6_PMIMR: 0x00000000
>                 GEN6_PMINTRMSK: 0x00003f8e
> 
> I also got a warning:
> 
> [ 1754.735243] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
> *ERROR* CPU pipe A FIFO underrun
> [ 2008.331235] snd_hda_intel 0000:00:1f.3: azx_get_response timeout,
> switching to polling mode: last cmd=0x001f0500
> [ 2075.075871] ------------[ cut here ]------------
> [ 2075.075946] WARNING: CPU: 0 PID: 0 at
> drivers/gpu/drm/i915/intel_uncore.c:599
> hsw_unclaimed_reg_debug+0x69/0x90 [i915]()
> [ 2075.075953] Unclaimed register detected before writing to register 0x44324
> [ 2075.075957] Modules linked in: rfcomm fuse ccm cmac xt_CHECKSUM
> ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns
> nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT nf_reject_ipv6
> xt_conntrack ebtable_broute bridge stp llc ebtable_filter ebtable_nat
> ebtables ip6table_security ip6table_raw ip6table_nat nf_conntrack_ipv6
> nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_filter ip6_tables
> iptable_security iptable_raw iptable_nat nf_conntrack_ipv4
> nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle arc4
> bnep iwlmvm mac80211 snd_hda_codec_hdmi snd_hda_codec_realtek
> snd_hda_codec_generic snd_hda_intel snd_hda_codec hid_multitouch
> snd_hwdep intel_rapl snd_hda_core x86_pkg_temp_thermal iwlwifi
> coretemp kvm_intel snd_seq kvm uvcvideo snd_seq_device
> videobuf2_vmalloc snd_pcm videobuf2_memops
> [ 2075.076068]  videobuf2_v4l2 videobuf2_core btusb cfg80211
> i2c_designware_platform i2c_designware_core btrtl wmi_mof videodev
> dell_wmi dell_laptop btbcm btintel snd_timer bluetooth dell_smbios
> vfat fat dcdbas irqbypass snd efi_pstore ghash_clmulni_intel
> rtsx_pci_ms memstick joydev media pcspkr efivars shpchp soundcore
> i2c_i801 mei_me rfkill mei processor_thermal_device idma64 virt_dma
> intel_soc_dts_iosf intel_lpss_pci wmi acpi_als pinctrl_sunrisepoint
> nfsd pinctrl_intel intel_lpss_acpi intel_lpss kfifo_buf
> int3403_thermal int340x_thermal_zone int3400_thermal intel_hid
> acpi_pad acpi_thermal_rel sparse_keymap industrialio tpm_tis tpm
> auth_rpcgss nfs_acl lockd binfmt_misc grace sunrpc dm_crypt i915
> i2c_algo_bit drm_kms_helper syscopyarea rtsx_pci_sdmmc sysfillrect
> mmc_core sysimgblt fb_sys_fops drm crct10dif_pclmul
> [ 2075.076192]  crc32_pclmul crc32c_intel serio_raw rtsx_pci i2c_hid video
> [ 2075.076210] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.5.0-rc3-acpi+ #58
> [ 2075.076215] Hardware name: Dell Inc. XPS 13 9350/07TYC2, BIOS 1.1.9
> 12/18/2015
> [ 2075.076220]  0000000000000086 582d5957df170645 ffff880280c03c78
> ffffffff81449b73
> [ 2075.076230]  ffff880280c03cc0 ffffffffa01ea510 ffff880280c03cb0
> ffffffff81094252
> [ 2075.076240]  ffff88026eb00000 0000000000044324 ffff88026eb00000
> 00000000ffffff9f
> [ 2075.076250] Call Trace:
> [ 2075.076254]  <IRQ>  [<ffffffff81449b73>] dump_stack+0x65/0x92
> [ 2075.076276]  [<ffffffff81094252>] warn_slowpath_common+0x82/0xc0
> [ 2075.076285]  [<ffffffff810942ec>] warn_slowpath_fmt+0x5c/0x80
> [ 2075.076345]  [<ffffffffa0161499>] hsw_unclaimed_reg_debug+0x69/0x90 [i915]
> [ 2075.076399]  [<ffffffffa016474e>] gen9_write32+0x6e/0x390 [i915]
> [ 2075.076408]  [<ffffffff8185705e>] ? _raw_spin_unlock+0xe/0x10
> [ 2075.076433]  [<ffffffffa010df09>] snb_update_pm_irq+0x69/0xc0 [i915]
> [ 2075.076457]  [<ffffffffa01123c9>] gen6_disable_pm_irq+0x19/0x40 [i915]
> [ 2075.076480]  [<ffffffffa0112461>] gen6_rps_irq_handler+0x71/0xe0 [i915]
> [ 2075.076503]  [<ffffffffa01131e3>] gen8_gt_irq_handler+0x183/0x250 [i915]
> [ 2075.076526]  [<ffffffffa0113362>] gen8_irq_handler+0xb2/0x6e0 [i915]
> [ 2075.076533]  [<ffffffff818571a0>] ? _raw_spin_unlock_irqrestore+0x20/0x40
> [ 2075.076539]  [<ffffffff81857036>] ? _raw_write_unlock+0x16/0x30
> [ 2075.076547]  [<ffffffff810ed861>] handle_irq_event_percpu+0x41/0x1c0
> [ 2075.076553]  [<ffffffff810eda19>] handle_irq_event+0x39/0x60
> [ 2075.076563]  [<ffffffff810f0ee0>] handle_edge_irq+0x90/0x150
> [ 2075.076578]  [<ffffffff81007e3d>] handle_irq+0xad/0x180
> [ 2075.076584]  [<ffffffff8185a0a7>] do_IRQ+0x57/0xf0
> [ 2075.076591]  [<ffffffff8185820c>] common_interrupt+0x8c/0x8c
> [ 2075.076594]  <EOI>  [<ffffffff816ea3b3>] ? cpuidle_enter_state+0x143/0x2d0
> [ 2075.076610]  [<ffffffff816ea38e>] ? cpuidle_enter_state+0x11e/0x2d0
> [ 2075.076618]  [<ffffffff816ea577>] cpuidle_enter+0x17/0x20
> [ 2075.076624]  [<ffffffff810d747a>] call_cpuidle+0x2a/0x40
> [ 2075.076628]  [<ffffffff810d7863>] cpu_startup_entry+0x2a3/0x360
> [ 2075.076636]  [<ffffffff8184b9c9>] rest_init+0x89/0x90
> [ 2075.076644]  [<ffffffff81f7a00b>] start_kernel+0x49e/0x4bf
> [ 2075.076649]  [<ffffffff81f79120>] ? early_idt_handler_array+0x120/0x120
> [ 2075.076655]  [<ffffffff81f79323>] x86_64_start_reservations+0x38/0x3a
> [ 2075.076660]  [<ffffffff81f7946f>] x86_64_start_kernel+0x14a/0x16d
> [ 2075.076665] ---[ end trace e32fa236041dc22e ]---
> 
> --Andy
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-16 16:12   ` Daniel Vetter
@ 2016-02-16 17:12     ` Andy Lutomirski
  2016-02-16 17:26       ` Andy Lutomirski
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Lutomirski @ 2016-02-16 17:12 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Intel Graphics Development, Andy Lutomirski

On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
>> > Hi-
>> >
>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
>> > model), shortly after resume, I saw a single black flash on the
>> > screen.  The log said:
>> >
>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
>> > CPU pipe A FIFO underrun
>> >
>> > I haven't seen this on 4.4.
>> >
>> > I'd be happy to dig up debugging info, but I don't know what would be
>> > useful.  I have no i915 module options set.
>>
>> It's flashing quite frequently now, although I seem to get the
>> underrun warning only once per resume.
>
> We shut up the warning irq source to avoid hijacking an entire cpu core
> ;-)
>
> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
> that should help.

Do you mean:

commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
Author: Matt Roper <matthew.d.roper@intel.com>
Date:   Mon Feb 8 11:05:28 2016 -0800

    drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)

If so, it didn't help.  I'm currently doing a full rebuild just in
case I messed something up, though.

--Andy
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-16 17:12     ` Andy Lutomirski
@ 2016-02-16 17:26       ` Andy Lutomirski
  2016-02-17 16:18         ` Daniel Vetter
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Lutomirski @ 2016-02-16 17:26 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Intel Graphics Development, Andy Lutomirski

On Tue, Feb 16, 2016 at 9:12 AM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
>>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
>>> > Hi-
>>> >
>>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
>>> > model), shortly after resume, I saw a single black flash on the
>>> > screen.  The log said:
>>> >
>>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
>>> > CPU pipe A FIFO underrun
>>> >
>>> > I haven't seen this on 4.4.
>>> >
>>> > I'd be happy to dig up debugging info, but I don't know what would be
>>> > useful.  I have no i915 module options set.
>>>
>>> It's flashing quite frequently now, although I seem to get the
>>> underrun warning only once per resume.
>>
>> We shut up the warning irq source to avoid hijacking an entire cpu core
>> ;-)
>>
>> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
>> that should help.
>
> Do you mean:
>
> commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
> Author: Matt Roper <matthew.d.roper@intel.com>
> Date:   Mon Feb 8 11:05:28 2016 -0800
>
>     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
>
> If so, it didn't help.  I'm currently doing a full rebuild just in
> case I messed something up, though.
>

Definitely not fixed.  It seems to be okay after a reboot until the
first suspend/resume.

This happened after resuming.  Five cents says it's the root cause.

[  160.361200] WARNING: CPU: 2 PID: 2512 at
drivers/gpu/drm/i915/intel_uncore.c:599
hsw_unclaimed_reg_debug+0x69/0x90 [i915]()
[  160.361209] Unclaimed register detected before writing to register 0x20a8
[  160.361213] Modules linked in: rfcomm fuse ccm cmac xt_CHECKSUM
ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns
nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT nf_reject_ipv6
xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc
ebtables ip6table_raw ip6table_mangle ip6table_security ip6table_nat
nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_filter
ip6_tables iptable_raw iptable_mangle iptable_security iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bnep
arc4 iwlmvm mac80211 snd_hda_codec_hdmi snd_hda_codec_realtek
hid_multitouch snd_hda_codec_generic iwlwifi snd_hda_intel intel_rapl
snd_hda_codec x86_pkg_temp_thermal coretemp kvm_intel snd_hwdep
cfg80211 snd_hda_core kvm snd_seq uvcvideo snd_seq_device
i2c_designware_platform
[  160.361385]  i2c_designware_core btusb snd_pcm videobuf2_vmalloc
wmi_mof vfat dell_wmi fat videobuf2_memops btrtl btbcm btintel
bluetooth dell_laptop dell_smbios dcdbas videobuf2_v4l2 snd_timer
videobuf2_core rtsx_pci_ms snd irqbypass videodev memstick
ghash_clmulni_intel joydev mei_me efi_pstore mei i2c_i801 soundcore
efivars pcspkr idma64 shpchp virt_dma media rfkill intel_lpss_pci
processor_thermal_device intel_soc_dts_iosf wmi acpi_als kfifo_buf
int3403_thermal tpm_tis industrialio pinctrl_sunrisepoint tpm
intel_hid int3400_thermal pinctrl_intel intel_lpss_acpi sparse_keymap
int340x_thermal_zone acpi_thermal_rel intel_lpss nfsd acpi_pad
auth_rpcgss nfs_acl lockd binfmt_misc grace sunrpc dm_crypt i915
i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt
fb_sys_fops drm rtsx_pci_sdmmc
[  160.361548]  mmc_core crct10dif_pclmul crc32_pclmul crc32c_intel
rtsx_pci serio_raw i2c_hid video
[  160.361575] CPU: 2 PID: 2512 Comm: gnome-shell Not tainted
4.5.0-rc4-acpi+ #59
[  160.361581] Hardware name: Dell Inc. XPS 13 9350/07TYC2, BIOS 1.1.9
12/18/2015
[  160.361588]  0000000000000086 00000000604232f7 ffff88024d55ba60
ffffffff81449d83
[  160.361601]  ffff88024d55baa8 ffffffffa01e15e8 ffff88024d55ba98
ffffffff81094252
[  160.361612]  ffff88026f4d0000 00000000000020a8 ffff88026f4d0000
00000000fffffefe
[  160.361624] Call Trace:
[  160.361644]  [<ffffffff81449d83>] dump_stack+0x65/0x92
[  160.361660]  [<ffffffff81094252>] warn_slowpath_common+0x82/0xc0
[  160.361671]  [<ffffffff810942ec>] warn_slowpath_fmt+0x5c/0x80
[  160.361764]  [<ffffffffa0158469>] hsw_unclaimed_reg_debug+0x69/0x90 [i915]
[  160.361844]  [<ffffffffa015b71e>] gen9_write32+0x6e/0x390 [i915]
[  160.361855]  [<ffffffff810b86a5>] ? preempt_count_add+0x85/0xd0
[  160.361939]  [<ffffffffa014d955>] gen8_logical_ring_get_irq+0x95/0xe0 [i915]
[  160.362017]  [<ffffffffa013b4db>] __i915_wait_request+0x58b/0x650 [i915]
[  160.362028]  [<ffffffff810d7380>] ? wake_atomic_t_function+0x70/0x70
[  160.362113]  [<ffffffffa013b70e>]
i915_gem_object_wait_rendering__nonblocking+0x16e/0x2c0 [i915]
[  160.362200]  [<ffffffffa0141c34>] ? i915_gem_pwrite_ioctl+0xe4/0x9b0 [i915]
[  160.362211]  [<ffffffff810b86a5>] ? preempt_count_add+0x85/0xd0
[  160.362225]  [<ffffffff81857486>] ? _raw_write_unlock+0x16/0x30
[  160.362312]  [<ffffffffa013eed9>] i915_gem_set_domain_ioctl+0x99/0x160 [i915]
[  160.362357]  [<ffffffffa00887c2>] drm_ioctl+0x152/0x540 [drm]
[  160.362439]  [<ffffffffa013ee40>] ?
i915_gem_object_set_to_gtt_domain+0x180/0x180 [i915]
[  160.362456]  [<ffffffff813d30bd>] ? selinux_file_ioctl+0x11d/0x200
[  160.362469]  [<ffffffff81240521>] do_vfs_ioctl+0xa1/0x5b0
[  160.362480]  [<ffffffff81852c5d>] ? __schedule+0x3ad/0xa80
[  160.362492]  [<ffffffff81240aa9>] SyS_ioctl+0x79/0x90
[  160.362505]  [<ffffffff81857bae>] entry_SYSCALL_64_fastpath+0x12/0x71
[  160.362515] ---[ end trace d66ecf0dd3c2adc4 ]---
[...]
[  249.526574] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
*ERROR* CPU pipe A FIFO underrun
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-16 17:26       ` Andy Lutomirski
@ 2016-02-17 16:18         ` Daniel Vetter
  2016-02-18  1:36           ` Andy Lutomirski
  2016-03-13 22:41           ` Andy Lutomirski
  0 siblings, 2 replies; 11+ messages in thread
From: Daniel Vetter @ 2016-02-17 16:18 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: Intel Graphics Development, Andy Lutomirski

On Tue, Feb 16, 2016 at 09:26:35AM -0800, Andy Lutomirski wrote:
> On Tue, Feb 16, 2016 at 9:12 AM, Andy Lutomirski <luto@amacapital.net> wrote:
> > On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
> >> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
> >>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
> >>> > Hi-
> >>> >
> >>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
> >>> > model), shortly after resume, I saw a single black flash on the
> >>> > screen.  The log said:
> >>> >
> >>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
> >>> > CPU pipe A FIFO underrun
> >>> >
> >>> > I haven't seen this on 4.4.
> >>> >
> >>> > I'd be happy to dig up debugging info, but I don't know what would be
> >>> > useful.  I have no i915 module options set.
> >>>
> >>> It's flashing quite frequently now, although I seem to get the
> >>> underrun warning only once per resume.
> >>
> >> We shut up the warning irq source to avoid hijacking an entire cpu core
> >> ;-)
> >>
> >> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
> >> that should help.
> >
> > Do you mean:
> >
> > commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
> > Author: Matt Roper <matthew.d.roper@intel.com>
> > Date:   Mon Feb 8 11:05:28 2016 -0800
> >
> >     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
> >
> > If so, it didn't help.  I'm currently doing a full rebuild just in
> > case I messed something up, though.
> >
> 
> Definitely not fixed.  It seems to be okay after a reboot until the
> first suspend/resume.
> 
> This happened after resuming.  Five cents says it's the root cause.

That's interesting, but doesn't ring a bell unfortunately. Can you try to
attempt a bisect?

Thanks, Daniel

> 
> [  160.361200] WARNING: CPU: 2 PID: 2512 at
> drivers/gpu/drm/i915/intel_uncore.c:599
> hsw_unclaimed_reg_debug+0x69/0x90 [i915]()
> [  160.361209] Unclaimed register detected before writing to register 0x20a8
> [  160.361213] Modules linked in: rfcomm fuse ccm cmac xt_CHECKSUM
> ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns
> nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT nf_reject_ipv6
> xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc
> ebtables ip6table_raw ip6table_mangle ip6table_security ip6table_nat
> nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_filter
> ip6_tables iptable_raw iptable_mangle iptable_security iptable_nat
> nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bnep
> arc4 iwlmvm mac80211 snd_hda_codec_hdmi snd_hda_codec_realtek
> hid_multitouch snd_hda_codec_generic iwlwifi snd_hda_intel intel_rapl
> snd_hda_codec x86_pkg_temp_thermal coretemp kvm_intel snd_hwdep
> cfg80211 snd_hda_core kvm snd_seq uvcvideo snd_seq_device
> i2c_designware_platform
> [  160.361385]  i2c_designware_core btusb snd_pcm videobuf2_vmalloc
> wmi_mof vfat dell_wmi fat videobuf2_memops btrtl btbcm btintel
> bluetooth dell_laptop dell_smbios dcdbas videobuf2_v4l2 snd_timer
> videobuf2_core rtsx_pci_ms snd irqbypass videodev memstick
> ghash_clmulni_intel joydev mei_me efi_pstore mei i2c_i801 soundcore
> efivars pcspkr idma64 shpchp virt_dma media rfkill intel_lpss_pci
> processor_thermal_device intel_soc_dts_iosf wmi acpi_als kfifo_buf
> int3403_thermal tpm_tis industrialio pinctrl_sunrisepoint tpm
> intel_hid int3400_thermal pinctrl_intel intel_lpss_acpi sparse_keymap
> int340x_thermal_zone acpi_thermal_rel intel_lpss nfsd acpi_pad
> auth_rpcgss nfs_acl lockd binfmt_misc grace sunrpc dm_crypt i915
> i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt
> fb_sys_fops drm rtsx_pci_sdmmc
> [  160.361548]  mmc_core crct10dif_pclmul crc32_pclmul crc32c_intel
> rtsx_pci serio_raw i2c_hid video
> [  160.361575] CPU: 2 PID: 2512 Comm: gnome-shell Not tainted
> 4.5.0-rc4-acpi+ #59
> [  160.361581] Hardware name: Dell Inc. XPS 13 9350/07TYC2, BIOS 1.1.9
> 12/18/2015
> [  160.361588]  0000000000000086 00000000604232f7 ffff88024d55ba60
> ffffffff81449d83
> [  160.361601]  ffff88024d55baa8 ffffffffa01e15e8 ffff88024d55ba98
> ffffffff81094252
> [  160.361612]  ffff88026f4d0000 00000000000020a8 ffff88026f4d0000
> 00000000fffffefe
> [  160.361624] Call Trace:
> [  160.361644]  [<ffffffff81449d83>] dump_stack+0x65/0x92
> [  160.361660]  [<ffffffff81094252>] warn_slowpath_common+0x82/0xc0
> [  160.361671]  [<ffffffff810942ec>] warn_slowpath_fmt+0x5c/0x80
> [  160.361764]  [<ffffffffa0158469>] hsw_unclaimed_reg_debug+0x69/0x90 [i915]
> [  160.361844]  [<ffffffffa015b71e>] gen9_write32+0x6e/0x390 [i915]
> [  160.361855]  [<ffffffff810b86a5>] ? preempt_count_add+0x85/0xd0
> [  160.361939]  [<ffffffffa014d955>] gen8_logical_ring_get_irq+0x95/0xe0 [i915]
> [  160.362017]  [<ffffffffa013b4db>] __i915_wait_request+0x58b/0x650 [i915]
> [  160.362028]  [<ffffffff810d7380>] ? wake_atomic_t_function+0x70/0x70
> [  160.362113]  [<ffffffffa013b70e>]
> i915_gem_object_wait_rendering__nonblocking+0x16e/0x2c0 [i915]
> [  160.362200]  [<ffffffffa0141c34>] ? i915_gem_pwrite_ioctl+0xe4/0x9b0 [i915]
> [  160.362211]  [<ffffffff810b86a5>] ? preempt_count_add+0x85/0xd0
> [  160.362225]  [<ffffffff81857486>] ? _raw_write_unlock+0x16/0x30
> [  160.362312]  [<ffffffffa013eed9>] i915_gem_set_domain_ioctl+0x99/0x160 [i915]
> [  160.362357]  [<ffffffffa00887c2>] drm_ioctl+0x152/0x540 [drm]
> [  160.362439]  [<ffffffffa013ee40>] ?
> i915_gem_object_set_to_gtt_domain+0x180/0x180 [i915]
> [  160.362456]  [<ffffffff813d30bd>] ? selinux_file_ioctl+0x11d/0x200
> [  160.362469]  [<ffffffff81240521>] do_vfs_ioctl+0xa1/0x5b0
> [  160.362480]  [<ffffffff81852c5d>] ? __schedule+0x3ad/0xa80
> [  160.362492]  [<ffffffff81240aa9>] SyS_ioctl+0x79/0x90
> [  160.362505]  [<ffffffff81857bae>] entry_SYSCALL_64_fastpath+0x12/0x71
> [  160.362515] ---[ end trace d66ecf0dd3c2adc4 ]---
> [...]
> [  249.526574] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
> *ERROR* CPU pipe A FIFO underrun

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-17 16:18         ` Daniel Vetter
@ 2016-02-18  1:36           ` Andy Lutomirski
  2016-02-23  3:13             ` Andy Lutomirski
  2016-03-13 22:41           ` Andy Lutomirski
  1 sibling, 1 reply; 11+ messages in thread
From: Andy Lutomirski @ 2016-02-18  1:36 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Intel Graphics Development, Andy Lutomirski

On Wed, Feb 17, 2016 at 8:18 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Feb 16, 2016 at 09:26:35AM -0800, Andy Lutomirski wrote:
>> On Tue, Feb 16, 2016 at 9:12 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>> > On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>> >> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
>> >>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
>> >>> > Hi-
>> >>> >
>> >>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
>> >>> > model), shortly after resume, I saw a single black flash on the
>> >>> > screen.  The log said:
>> >>> >
>> >>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
>> >>> > CPU pipe A FIFO underrun
>> >>> >
>> >>> > I haven't seen this on 4.4.
>> >>> >
>> >>> > I'd be happy to dig up debugging info, but I don't know what would be
>> >>> > useful.  I have no i915 module options set.
>> >>>
>> >>> It's flashing quite frequently now, although I seem to get the
>> >>> underrun warning only once per resume.
>> >>
>> >> We shut up the warning irq source to avoid hijacking an entire cpu core
>> >> ;-)
>> >>
>> >> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
>> >> that should help.
>> >
>> > Do you mean:
>> >
>> > commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
>> > Author: Matt Roper <matthew.d.roper@intel.com>
>> > Date:   Mon Feb 8 11:05:28 2016 -0800
>> >
>> >     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
>> >
>> > If so, it didn't help.  I'm currently doing a full rebuild just in
>> > case I messed something up, though.
>> >
>>
>> Definitely not fixed.  It seems to be okay after a reboot until the
>> first suspend/resume.
>>
>> This happened after resuming.  Five cents says it's the root cause.
>
> That's interesting, but doesn't ring a bell unfortunately. Can you try to
> attempt a bisect?

I probably can, but it's very slow.  Is there a reasonably
straightforward way to instrument the watermark computation to see
what's going wrong?  I'm reasonably confident that the bug is in the
resume code or in something that only happens on resume, since I still
haven't seen underruns after rebooting before suspending.

--Andy
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-18  1:36           ` Andy Lutomirski
@ 2016-02-23  3:13             ` Andy Lutomirski
  2016-03-12  2:16               ` Andy Lutomirski
  0 siblings, 1 reply; 11+ messages in thread
From: Andy Lutomirski @ 2016-02-23  3:13 UTC (permalink / raw)
  To: Daniel Vetter, Matt Roper; +Cc: Intel Graphics Development, Andy Lutomirski

[-- Attachment #1: Type: text/plain, Size: 6844 bytes --]

On Wed, Feb 17, 2016 at 5:36 PM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Wed, Feb 17, 2016 at 8:18 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>> On Tue, Feb 16, 2016 at 09:26:35AM -0800, Andy Lutomirski wrote:
>>> On Tue, Feb 16, 2016 at 9:12 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>>> > On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>>> >> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
>>> >>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
>>> >>> > Hi-
>>> >>> >
>>> >>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
>>> >>> > model), shortly after resume, I saw a single black flash on the
>>> >>> > screen.  The log said:
>>> >>> >
>>> >>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
>>> >>> > CPU pipe A FIFO underrun
>>> >>> >
>>> >>> > I haven't seen this on 4.4.
>>> >>> >
>>> >>> > I'd be happy to dig up debugging info, but I don't know what would be
>>> >>> > useful.  I have no i915 module options set.
>>> >>>
>>> >>> It's flashing quite frequently now, although I seem to get the
>>> >>> underrun warning only once per resume.
>>> >>
>>> >> We shut up the warning irq source to avoid hijacking an entire cpu core
>>> >> ;-)
>>> >>
>>> >> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
>>> >> that should help.
>>> >
>>> > Do you mean:
>>> >
>>> > commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
>>> > Author: Matt Roper <matthew.d.roper@intel.com>
>>> > Date:   Mon Feb 8 11:05:28 2016 -0800
>>> >
>>> >     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
>>> >
>>> > If so, it didn't help.  I'm currently doing a full rebuild just in
>>> > case I messed something up, though.
>>> >
>>>
>>> Definitely not fixed.  It seems to be okay after a reboot until the
>>> first suspend/resume.
>>>
>>> This happened after resuming.  Five cents says it's the root cause.
>>
>> That's interesting, but doesn't ring a bell unfortunately. Can you try to
>> attempt a bisect?
>
> I probably can, but it's very slow.  Is there a reasonably
> straightforward way to instrument the watermark computation to see
> what's going wrong?  I'm reasonably confident that the bug is in the
> resume code or in something that only happens on resume, since I still
> haven't seen underruns after rebooting before suspending.
>

With some instrumentation applied, I got this:

[  369.471064] skl_update_wm(crtc-0): computed update
[  369.471072] skl_update_other_pipe_wm(crtc-0): no change
[  369.471075] skl_write_wm_values...
[  369.471078]  CRTC crtc-0 pipe A
[  369.471083]   wm_linetime = 121
[  369.471086]   plane_wm level 0 plane 0 = 2147500036
[  369.471090]   plane_wm level 0 plane 1 = 0
[  369.471094]   plane_wm level 0 cursor = 2147500036
[  369.471097]   plane_wm level 1 plane 0 = 2147516439
[  369.471101]   plane_wm level 1 plane 1 = 0
[  369.471104]   plane_wm level 1 cursor = 2147516439
[  369.471108]   plane_wm level 2 plane 0 = 2147516448
[  369.471111]   plane_wm level 2 plane 1 = 0
[  369.471115]   plane_wm level 2 cursor = 0
[  369.471118]   plane_wm level 3 plane 0 = 2147532837
[  369.471121]   plane_wm level 3 plane 1 = 0
[  369.471125]   plane_wm level 3 cursor = 0
[  369.471128]   plane_wm level 4 plane 0 = 2147565639
[  369.471131]   plane_wm level 4 plane 1 = 0
[  369.471135]   plane_wm level 4 cursor = 0
[  369.471138]   plane_wm level 5 plane 0 = 2147582038
[  369.471141]   plane_wm level 5 plane 1 = 0
[  369.471145]   plane_wm level 5 cursor = 0
[  369.471148]   plane_wm level 6 plane 0 = 2147582044
[  369.471151]   plane_wm level 6 plane 1 = 0
[  369.471155]   plane_wm level 6 cursor = 0
[  369.471158]   plane_wm level 7 plane 0 = 2147598443
[  369.471161]   plane_wm level 7 plane 1 = 0
[  369.471164]   plane_wm level 7 cursor = 0
[  369.471168]   wm_trans plane 0 = 0
[  369.471171]   wm_trans plane 1 = 0
[  369.471174]   wm_trans cursor = 0
[  369.471182]  CRTC crtc-1 pipe B
[  369.471184]   clean
[  369.471186]  CRTC crtc-2 pipe C
[  369.471189]   clean
[  369.471226] skl_update_wm(crtc-0): no update
[  372.068755] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
*ERROR* CPU pipe A FIFO underrun
[  373.399396] skl_update_wm(crtc-0): computed update
[  373.399408] skl_update_other_pipe_wm(crtc-0): no change
[  373.399413] skl_write_wm_values...
[  373.399418]  CRTC crtc-0 pipe A
[  373.399426]   wm_linetime = 121
[  373.399431]   plane_wm level 0 plane 0 = 2147500036
[  373.399438]   plane_wm level 0 plane 1 = 0
[  373.399443]   plane_wm level 0 cursor = 16388
[  373.399449]   plane_wm level 1 plane 0 = 2147516439
[  373.399455]   plane_wm level 1 plane 1 = 0
[  373.399460]   plane_wm level 1 cursor = 32791
[  373.399465]   plane_wm level 2 plane 0 = 2147516448
[  373.399471]   plane_wm level 2 plane 1 = 0
[  373.399476]   plane_wm level 2 cursor = 0
[  373.399481]   plane_wm level 3 plane 0 = 2147532837
[  373.399486]   plane_wm level 3 plane 1 = 0
[  373.399491]   plane_wm level 3 cursor = 0
[  373.399497]   plane_wm level 4 plane 0 = 2147565639
[  373.399502]   plane_wm level 4 plane 1 = 0
[  373.399557]   plane_wm level 4 cursor = 0
[  373.399562]   plane_wm level 5 plane 0 = 2147582038
[  373.399568]   plane_wm level 5 plane 1 = 0
[  373.399573]   plane_wm level 5 cursor = 0
[  373.399578]   plane_wm level 6 plane 0 = 2147582044
[  373.399591]   plane_wm level 6 plane 1 = 0
[  373.399596]   plane_wm level 6 cursor = 0
[  373.399602]   plane_wm level 7 plane 0 = 2147598443
[  373.399607]   plane_wm level 7 plane 1 = 0
[  373.399612]   plane_wm level 7 cursor = 0
[  373.399617]   wm_trans plane 0 = 0
[  373.399623]   wm_trans plane 1 = 0
[  373.399627]   wm_trans cursor = 0
[  373.399638]  CRTC crtc-1 pipe B
[  373.399642]   clean
[  373.399646]  CRTC crtc-2 pipe C
[  373.399650]   clean

The diff between those two dumps was:

--- a.txt    2016-02-22 18:56:32.613058614 -0800
+++ b.txt    2016-02-22 18:56:49.219079057 -0800
@@ -3,10 +3,10 @@
   wm_linetime = 121
   plane_wm level 0 plane 0 = 2147500036
   plane_wm level 0 plane 1 = 0
-  plane_wm level 0 cursor = 2147500036
+  plane_wm level 0 cursor = 16388
   plane_wm level 1 plane 0 = 2147516439
   plane_wm level 1 plane 1 = 0
-  plane_wm level 1 cursor = 2147516439
+  plane_wm level 1 cursor = 32791
   plane_wm level 2 plane 0 = 2147516448
   plane_wm level 2 plane 1 = 0
   plane_wm level 2 cursor = 0


The code that generated this is attached.

Is the fix from Matt that you mentioned this one:

commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
Author: Matt Roper <matthew.d.roper@intel.com>
Date:   Mon Feb 8 11:05:28 2016 -0800

    drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)

On brief inspection, it doesn't look like that patch will have any
effect on Skylake.

--Andy

[-- Attachment #2: i915-dbg.patch --]
[-- Type: text/x-patch, Size: 2823 bytes --]

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index a234687792f0..cb65f45a75ff 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3318,25 +3318,38 @@ static void skl_write_wm_values(struct drm_i915_private *dev_priv,
 	struct drm_device *dev = dev_priv->dev;
 	struct intel_crtc *crtc;
 
+	pr_info("skl_write_wm_values...\n");
+
 	for_each_intel_crtc(dev, crtc) {
 		int i, level, max_level = ilk_wm_max_level(dev);
 		enum pipe pipe = crtc->pipe;
 
-		if (!new->dirty[pipe])
+		pr_info(" CRTC %s pipe %c\n", crtc->base.name, pipe_name(pipe));
+
+		if (!new->dirty[pipe]) {
+			pr_info("  clean\n");
 			continue;
+		}
 
 		I915_WRITE(PIPE_WM_LINETIME(pipe), new->wm_linetime[pipe]);
+		pr_info("  wm_linetime = %u\n", new->wm_linetime[pipe]);
 
 		for (level = 0; level <= max_level; level++) {
-			for (i = 0; i < intel_num_planes(crtc); i++)
+			for (i = 0; i < intel_num_planes(crtc); i++) {
+				pr_info("  plane_wm level %d plane %d = %u\n", level, i, new->plane[pipe][i][level]);
 				I915_WRITE(PLANE_WM(pipe, i, level),
 					   new->plane[pipe][i][level]);
+			}
+			pr_info("  plane_wm level %d cursor = %u\n", level, new->plane[pipe][PLANE_CURSOR][level]);
 			I915_WRITE(CUR_WM(pipe, level),
 				   new->plane[pipe][PLANE_CURSOR][level]);
 		}
-		for (i = 0; i < intel_num_planes(crtc); i++)
+		for (i = 0; i < intel_num_planes(crtc); i++) {
+			pr_info("  wm_trans plane %d = %u\n", i, new->plane_trans[pipe][i]);
 			I915_WRITE(PLANE_WM_TRANS(pipe, i),
 				   new->plane_trans[pipe][i]);
+		}
+		pr_info("  wm_trans cursor = %u\n", new->plane_trans[pipe][PLANE_CURSOR]);
 		I915_WRITE(CUR_WM_TRANS(pipe),
 			   new->plane_trans[pipe][PLANE_CURSOR]);
 
@@ -3520,8 +3533,10 @@ static void skl_update_other_pipe_wm(struct drm_device *dev,
 	 * enabled crtcs will keep the same allocation and we don't need to
 	 * recompute anything for them.
 	 */
-	if (!skl_ddb_allocation_changed(&r->ddb, this_crtc))
+	if (!skl_ddb_allocation_changed(&r->ddb, this_crtc)) {
+		pr_info("skl_update_other_pipe_wm(%s): no change\n", crtc->name);
 		return;
+	}
 
 	/*
 	 * Otherwise, because of this_crtc being freshly enabled/disabled, the
@@ -3587,12 +3602,16 @@ static void skl_update_wm(struct drm_crtc *crtc)
 
 	skl_clear_wm(results, intel_crtc->pipe);
 
-	if (!skl_update_pipe_wm(crtc, &results->ddb, pipe_wm))
+	if (!skl_update_pipe_wm(crtc, &results->ddb, pipe_wm)) {
+		pr_info("skl_update_wm(%s): no update\n", crtc->name);
 		return;
+	}
 
 	skl_compute_wm_results(dev, pipe_wm, results, intel_crtc);
 	results->dirty[intel_crtc->pipe] = true;
 
+	pr_info("skl_update_wm(%s): computed update\n", crtc->name);
+
 	skl_update_other_pipe_wm(dev, crtc, results);
 	skl_write_wm_values(dev_priv, results);
 	skl_flush_wm_values(dev_priv, results);

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
@ 2016-02-27 20:46 Cyril Yab
  2016-02-29 10:29 ` Jani Nikula
  0 siblings, 1 reply; 11+ messages in thread
From: Cyril Yab @ 2016-02-27 20:46 UTC (permalink / raw)
  To: intel-gfx

Hello,

I have the same laptop and the same issue, which still happens as of
today's Linus' tree.

A couple of additional details: for me, I don't need to suspend my
system to have the flashes appear (they do immediately after boot).
Also, setting i915.enable_rc6=0 solves the issue.

I've tried bisecting on drivers/gpu/drm/i915/ but I must have failed
somehow, as it blamed a trivial commit (drm/i195: Rename
gt_irq_handler variable).

-- 
Cyril
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-27 20:46 Possible 4.5 i915 Skylake regression Cyril Yab
@ 2016-02-29 10:29 ` Jani Nikula
  0 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2016-02-29 10:29 UTC (permalink / raw)
  To: Cyril Yab, intel-gfx

On Sat, 27 Feb 2016, Cyril Yab <cyril.yab@gmail.com> wrote:
> I have the same laptop and the same issue, which still happens as of
> today's Linus' tree.

Same as what?

Please file a bug at the freedesktop.org bugzilla [1], or amend an
existing bug there.

BR,
Jani.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-23  3:13             ` Andy Lutomirski
@ 2016-03-12  2:16               ` Andy Lutomirski
  0 siblings, 0 replies; 11+ messages in thread
From: Andy Lutomirski @ 2016-03-12  2:16 UTC (permalink / raw)
  To: Daniel Vetter, Matt Roper, DRI
  Cc: Intel Graphics Development, Andy Lutomirski

On Mon, Feb 22, 2016 at 7:13 PM, Andy Lutomirski <luto@amacapital.net> wrote:
> On Wed, Feb 17, 2016 at 5:36 PM, Andy Lutomirski <luto@amacapital.net> wrote:
>> On Wed, Feb 17, 2016 at 8:18 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>>> On Tue, Feb 16, 2016 at 09:26:35AM -0800, Andy Lutomirski wrote:
>>>> On Tue, Feb 16, 2016 at 9:12 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>>>> > On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>>>> >> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
>>>> >>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
>>>> >>> > Hi-
>>>> >>> >
>>>> >>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
>>>> >>> > model), shortly after resume, I saw a single black flash on the
>>>> >>> > screen.  The log said:
>>>> >>> >
>>>> >>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
>>>> >>> > CPU pipe A FIFO underrun
>>>> >>> >
>>>> >>> > I haven't seen this on 4.4.
>>>> >>> >
>>>> >>> > I'd be happy to dig up debugging info, but I don't know what would be
>>>> >>> > useful.  I have no i915 module options set.
>>>> >>>
>>>> >>> It's flashing quite frequently now, although I seem to get the
>>>> >>> underrun warning only once per resume.
>>>> >>
>>>> >> We shut up the warning irq source to avoid hijacking an entire cpu core
>>>> >> ;-)
>>>> >>
>>>> >> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
>>>> >> that should help.
>>>> >
>>>> > Do you mean:
>>>> >
>>>> > commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
>>>> > Author: Matt Roper <matthew.d.roper@intel.com>
>>>> > Date:   Mon Feb 8 11:05:28 2016 -0800
>>>> >
>>>> >     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
>>>> >
>>>> > If so, it didn't help.  I'm currently doing a full rebuild just in
>>>> > case I messed something up, though.
>>>> >
>>>>
>>>> Definitely not fixed.  It seems to be okay after a reboot until the
>>>> first suspend/resume.
>>>>
>>>> This happened after resuming.  Five cents says it's the root cause.
>>>
>>> That's interesting, but doesn't ring a bell unfortunately. Can you try to
>>> attempt a bisect?
>>
>> I probably can, but it's very slow.  Is there a reasonably
>> straightforward way to instrument the watermark computation to see
>> what's going wrong?  I'm reasonably confident that the bug is in the
>> resume code or in something that only happens on resume, since I still
>> haven't seen underruns after rebooting before suspending.
>>
>
> With some instrumentation applied, I got this:
>
> [  369.471064] skl_update_wm(crtc-0): computed update
> [  369.471072] skl_update_other_pipe_wm(crtc-0): no change
> [  369.471075] skl_write_wm_values...
> [  369.471078]  CRTC crtc-0 pipe A
> [  369.471083]   wm_linetime = 121
> [  369.471086]   plane_wm level 0 plane 0 = 2147500036
> [  369.471090]   plane_wm level 0 plane 1 = 0
> [  369.471094]   plane_wm level 0 cursor = 2147500036
> [  369.471097]   plane_wm level 1 plane 0 = 2147516439
> [  369.471101]   plane_wm level 1 plane 1 = 0
> [  369.471104]   plane_wm level 1 cursor = 2147516439
> [  369.471108]   plane_wm level 2 plane 0 = 2147516448
> [  369.471111]   plane_wm level 2 plane 1 = 0
> [  369.471115]   plane_wm level 2 cursor = 0
> [  369.471118]   plane_wm level 3 plane 0 = 2147532837
> [  369.471121]   plane_wm level 3 plane 1 = 0
> [  369.471125]   plane_wm level 3 cursor = 0
> [  369.471128]   plane_wm level 4 plane 0 = 2147565639
> [  369.471131]   plane_wm level 4 plane 1 = 0
> [  369.471135]   plane_wm level 4 cursor = 0
> [  369.471138]   plane_wm level 5 plane 0 = 2147582038
> [  369.471141]   plane_wm level 5 plane 1 = 0
> [  369.471145]   plane_wm level 5 cursor = 0
> [  369.471148]   plane_wm level 6 plane 0 = 2147582044
> [  369.471151]   plane_wm level 6 plane 1 = 0
> [  369.471155]   plane_wm level 6 cursor = 0
> [  369.471158]   plane_wm level 7 plane 0 = 2147598443
> [  369.471161]   plane_wm level 7 plane 1 = 0
> [  369.471164]   plane_wm level 7 cursor = 0
> [  369.471168]   wm_trans plane 0 = 0
> [  369.471171]   wm_trans plane 1 = 0
> [  369.471174]   wm_trans cursor = 0
> [  369.471182]  CRTC crtc-1 pipe B
> [  369.471184]   clean
> [  369.471186]  CRTC crtc-2 pipe C
> [  369.471189]   clean
> [  369.471226] skl_update_wm(crtc-0): no update
> [  372.068755] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
> *ERROR* CPU pipe A FIFO underrun
> [  373.399396] skl_update_wm(crtc-0): computed update
> [  373.399408] skl_update_other_pipe_wm(crtc-0): no change
> [  373.399413] skl_write_wm_values...
> [  373.399418]  CRTC crtc-0 pipe A
> [  373.399426]   wm_linetime = 121
> [  373.399431]   plane_wm level 0 plane 0 = 2147500036
> [  373.399438]   plane_wm level 0 plane 1 = 0
> [  373.399443]   plane_wm level 0 cursor = 16388
> [  373.399449]   plane_wm level 1 plane 0 = 2147516439
> [  373.399455]   plane_wm level 1 plane 1 = 0
> [  373.399460]   plane_wm level 1 cursor = 32791
> [  373.399465]   plane_wm level 2 plane 0 = 2147516448
> [  373.399471]   plane_wm level 2 plane 1 = 0
> [  373.399476]   plane_wm level 2 cursor = 0
> [  373.399481]   plane_wm level 3 plane 0 = 2147532837
> [  373.399486]   plane_wm level 3 plane 1 = 0
> [  373.399491]   plane_wm level 3 cursor = 0
> [  373.399497]   plane_wm level 4 plane 0 = 2147565639
> [  373.399502]   plane_wm level 4 plane 1 = 0
> [  373.399557]   plane_wm level 4 cursor = 0
> [  373.399562]   plane_wm level 5 plane 0 = 2147582038
> [  373.399568]   plane_wm level 5 plane 1 = 0
> [  373.399573]   plane_wm level 5 cursor = 0
> [  373.399578]   plane_wm level 6 plane 0 = 2147582044
> [  373.399591]   plane_wm level 6 plane 1 = 0
> [  373.399596]   plane_wm level 6 cursor = 0
> [  373.399602]   plane_wm level 7 plane 0 = 2147598443
> [  373.399607]   plane_wm level 7 plane 1 = 0
> [  373.399612]   plane_wm level 7 cursor = 0
> [  373.399617]   wm_trans plane 0 = 0
> [  373.399623]   wm_trans plane 1 = 0
> [  373.399627]   wm_trans cursor = 0
> [  373.399638]  CRTC crtc-1 pipe B
> [  373.399642]   clean
> [  373.399646]  CRTC crtc-2 pipe C
> [  373.399650]   clean
>
> The diff between those two dumps was:
>
> --- a.txt    2016-02-22 18:56:32.613058614 -0800
> +++ b.txt    2016-02-22 18:56:49.219079057 -0800
> @@ -3,10 +3,10 @@
>    wm_linetime = 121
>    plane_wm level 0 plane 0 = 2147500036
>    plane_wm level 0 plane 1 = 0
> -  plane_wm level 0 cursor = 2147500036
> +  plane_wm level 0 cursor = 16388
>    plane_wm level 1 plane 0 = 2147516439
>    plane_wm level 1 plane 1 = 0
> -  plane_wm level 1 cursor = 2147516439
> +  plane_wm level 1 cursor = 32791
>    plane_wm level 2 plane 0 = 2147516448
>    plane_wm level 2 plane 1 = 0
>    plane_wm level 2 cursor = 0
>
>
> The code that generated this is attached.
>
> Is the fix from Matt that you mentioned this one:
>
> commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
> Author: Matt Roper <matthew.d.roper@intel.com>
> Date:   Mon Feb 8 11:05:28 2016 -0800
>
>     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
>
> On brief inspection, it doesn't look like that patch will have any
> effect on Skylake.
>

Re-ping.

This is still broken AFAICT, and it's also not fixed in drm-intel-nightly.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Possible 4.5 i915 Skylake regression
  2016-02-17 16:18         ` Daniel Vetter
  2016-02-18  1:36           ` Andy Lutomirski
@ 2016-03-13 22:41           ` Andy Lutomirski
  1 sibling, 0 replies; 11+ messages in thread
From: Andy Lutomirski @ 2016-03-13 22:41 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Intel Graphics Development, DRI, Andy Lutomirski

On Wed, Feb 17, 2016 at 8:18 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Feb 16, 2016 at 09:26:35AM -0800, Andy Lutomirski wrote:
>> On Tue, Feb 16, 2016 at 9:12 AM, Andy Lutomirski <luto@amacapital.net> wrote:
>> > On Tue, Feb 16, 2016 at 8:12 AM, Daniel Vetter <daniel@ffwll.ch> wrote:
>> >> On Mon, Feb 15, 2016 at 06:58:33AM -0800, Andy Lutomirski wrote:
>> >>> On Sun, Feb 14, 2016 at 6:59 PM, Andy Lutomirski <luto@kernel.org> wrote:
>> >>> > Hi-
>> >>> >
>> >>> > On 4.5-rc3 on a Dell XPS 13 9350 (Skylake i915, no nvidia on this
>> >>> > model), shortly after resume, I saw a single black flash on the
>> >>> > screen.  The log said:
>> >>> >
>> >>> > [Feb13 07:05] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR*
>> >>> > CPU pipe A FIFO underrun
>> >>> >
>> >>> > I haven't seen this on 4.4.
>> >>> >
>> >>> > I'd be happy to dig up debugging info, but I don't know what would be
>> >>> > useful.  I have no i915 module options set.
>> >>>
>> >>> It's flashing quite frequently now, although I seem to get the
>> >>> underrun warning only once per resume.
>> >>
>> >> We shut up the warning irq source to avoid hijacking an entire cpu core
>> >> ;-)
>> >>
>> >> There's a fix from Matt right after 4.5-rc4 in Linus' branch. I'm hoping
>> >> that should help.
>> >
>> > Do you mean:
>> >
>> > commit e2e407dc093f530b771ee8bf8fe1be41e3cea8b3
>> > Author: Matt Roper <matthew.d.roper@intel.com>
>> > Date:   Mon Feb 8 11:05:28 2016 -0800
>> >
>> >     drm/i915: Pretend cursor is always on for ILK-style WM calculations (v2)
>> >
>> > If so, it didn't help.  I'm currently doing a full rebuild just in
>> > case I messed something up, though.
>> >
>>
>> Definitely not fixed.  It seems to be okay after a reboot until the
>> first suspend/resume.
>>
>> This happened after resuming.  Five cents says it's the root cause.
>
> That's interesting, but doesn't ring a bell unfortunately. Can you try to
> attempt a bisect?
>

I'm giving up on my attempt to bisect for now.  After a bunch of false
starts to avoid this crap, I'm stuck at
651174a4a0ccaf41e14fadc4bc525d61ae7f7b18, which is based on 4.3-rc3
and doesn't merge cleanly up to 4.4.  It's also annoying because it
reproduces reasonably quickly but not instantaneously, and I can never
reproduce it before a suspend/resume, so my bisection attempts are
full of errors.

--Andy

> Thanks, Daniel
>
>>
>> [  160.361200] WARNING: CPU: 2 PID: 2512 at
>> drivers/gpu/drm/i915/intel_uncore.c:599
>> hsw_unclaimed_reg_debug+0x69/0x90 [i915]()
>> [  160.361209] Unclaimed register detected before writing to register 0x20a8
>> [  160.361213] Modules linked in: rfcomm fuse ccm cmac xt_CHECKSUM
>> ipt_MASQUERADE nf_nat_masquerade_ipv4 tun nf_conntrack_netbios_ns
>> nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT nf_reject_ipv6
>> xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc
>> ebtables ip6table_raw ip6table_mangle ip6table_security ip6table_nat
>> nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_filter
>> ip6_tables iptable_raw iptable_mangle iptable_security iptable_nat
>> nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bnep
>> arc4 iwlmvm mac80211 snd_hda_codec_hdmi snd_hda_codec_realtek
>> hid_multitouch snd_hda_codec_generic iwlwifi snd_hda_intel intel_rapl
>> snd_hda_codec x86_pkg_temp_thermal coretemp kvm_intel snd_hwdep
>> cfg80211 snd_hda_core kvm snd_seq uvcvideo snd_seq_device
>> i2c_designware_platform
>> [  160.361385]  i2c_designware_core btusb snd_pcm videobuf2_vmalloc
>> wmi_mof vfat dell_wmi fat videobuf2_memops btrtl btbcm btintel
>> bluetooth dell_laptop dell_smbios dcdbas videobuf2_v4l2 snd_timer
>> videobuf2_core rtsx_pci_ms snd irqbypass videodev memstick
>> ghash_clmulni_intel joydev mei_me efi_pstore mei i2c_i801 soundcore
>> efivars pcspkr idma64 shpchp virt_dma media rfkill intel_lpss_pci
>> processor_thermal_device intel_soc_dts_iosf wmi acpi_als kfifo_buf
>> int3403_thermal tpm_tis industrialio pinctrl_sunrisepoint tpm
>> intel_hid int3400_thermal pinctrl_intel intel_lpss_acpi sparse_keymap
>> int340x_thermal_zone acpi_thermal_rel intel_lpss nfsd acpi_pad
>> auth_rpcgss nfs_acl lockd binfmt_misc grace sunrpc dm_crypt i915
>> i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt
>> fb_sys_fops drm rtsx_pci_sdmmc
>> [  160.361548]  mmc_core crct10dif_pclmul crc32_pclmul crc32c_intel
>> rtsx_pci serio_raw i2c_hid video
>> [  160.361575] CPU: 2 PID: 2512 Comm: gnome-shell Not tainted
>> 4.5.0-rc4-acpi+ #59
>> [  160.361581] Hardware name: Dell Inc. XPS 13 9350/07TYC2, BIOS 1.1.9
>> 12/18/2015
>> [  160.361588]  0000000000000086 00000000604232f7 ffff88024d55ba60
>> ffffffff81449d83
>> [  160.361601]  ffff88024d55baa8 ffffffffa01e15e8 ffff88024d55ba98
>> ffffffff81094252
>> [  160.361612]  ffff88026f4d0000 00000000000020a8 ffff88026f4d0000
>> 00000000fffffefe
>> [  160.361624] Call Trace:
>> [  160.361644]  [<ffffffff81449d83>] dump_stack+0x65/0x92
>> [  160.361660]  [<ffffffff81094252>] warn_slowpath_common+0x82/0xc0
>> [  160.361671]  [<ffffffff810942ec>] warn_slowpath_fmt+0x5c/0x80
>> [  160.361764]  [<ffffffffa0158469>] hsw_unclaimed_reg_debug+0x69/0x90 [i915]
>> [  160.361844]  [<ffffffffa015b71e>] gen9_write32+0x6e/0x390 [i915]
>> [  160.361855]  [<ffffffff810b86a5>] ? preempt_count_add+0x85/0xd0
>> [  160.361939]  [<ffffffffa014d955>] gen8_logical_ring_get_irq+0x95/0xe0 [i915]
>> [  160.362017]  [<ffffffffa013b4db>] __i915_wait_request+0x58b/0x650 [i915]
>> [  160.362028]  [<ffffffff810d7380>] ? wake_atomic_t_function+0x70/0x70
>> [  160.362113]  [<ffffffffa013b70e>]
>> i915_gem_object_wait_rendering__nonblocking+0x16e/0x2c0 [i915]
>> [  160.362200]  [<ffffffffa0141c34>] ? i915_gem_pwrite_ioctl+0xe4/0x9b0 [i915]
>> [  160.362211]  [<ffffffff810b86a5>] ? preempt_count_add+0x85/0xd0
>> [  160.362225]  [<ffffffff81857486>] ? _raw_write_unlock+0x16/0x30
>> [  160.362312]  [<ffffffffa013eed9>] i915_gem_set_domain_ioctl+0x99/0x160 [i915]
>> [  160.362357]  [<ffffffffa00887c2>] drm_ioctl+0x152/0x540 [drm]
>> [  160.362439]  [<ffffffffa013ee40>] ?
>> i915_gem_object_set_to_gtt_domain+0x180/0x180 [i915]
>> [  160.362456]  [<ffffffff813d30bd>] ? selinux_file_ioctl+0x11d/0x200
>> [  160.362469]  [<ffffffff81240521>] do_vfs_ioctl+0xa1/0x5b0
>> [  160.362480]  [<ffffffff81852c5d>] ? __schedule+0x3ad/0xa80
>> [  160.362492]  [<ffffffff81240aa9>] SyS_ioctl+0x79/0x90
>> [  160.362505]  [<ffffffff81857bae>] entry_SYSCALL_64_fastpath+0x12/0x71
>> [  160.362515] ---[ end trace d66ecf0dd3c2adc4 ]---
>> [...]
>> [  249.526574] [drm:intel_cpu_fifo_underrun_irq_handler [i915]]
>> *ERROR* CPU pipe A FIFO underrun
>
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch



-- 
Andy Lutomirski
AMA Capital Management, LLC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-03-13 22:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-27 20:46 Possible 4.5 i915 Skylake regression Cyril Yab
2016-02-29 10:29 ` Jani Nikula
     [not found] <CALCETrWRt0G+RGQay1Ca584WNgx1qL8=-QvWQpjMR3_phpF3MQ@mail.gmail.com>
2016-02-15 14:58 ` Andy Lutomirski
2016-02-16 16:12   ` Daniel Vetter
2016-02-16 17:12     ` Andy Lutomirski
2016-02-16 17:26       ` Andy Lutomirski
2016-02-17 16:18         ` Daniel Vetter
2016-02-18  1:36           ` Andy Lutomirski
2016-02-23  3:13             ` Andy Lutomirski
2016-03-12  2:16               ` Andy Lutomirski
2016-03-13 22:41           ` Andy Lutomirski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.