Bug 99629 - kms_atomic_transition subtest causes FBC creation with size = 0
Summary: kms_atomic_transition subtest causes FBC creation with size = 0
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-01 17:25 UTC by Rami
Modified: 2017-04-11 12:10 UTC (History)
1 user (show)

See Also:
i915 platform: SKL
i915 features: display/atomic, display/FBC


Attachments
dmesg (251.20 KB, text/x-log)
2017-02-01 17:25 UTC, Rami
no flags Details

Description Rami 2017-02-01 17:25:57 UTC
Created attachment 129275 [details]
dmesg

Running kms_atomic_transition@plane-all-transition subtest on skl with i915.nuclear_pageflip=1 causes warning: 
./kms_atomic_transition --r plane-all-transition 
IGT-Version: 1.17-ga2fa75c (x86_64) (Linux: 4.10.0-rc6-tip-201702010159+ x86_64)
Running test on pipe A with resolution 1920x1080 and sprite size 1920x1080 alpha 1
Running test on pipe A with resolution 1920x1080 and sprite size 1920x1080 alpha 1
Running test on pipe B with resolution 1920x1080 and sprite size 1920x1080 alpha 1
Running test on pipe B with resolution 1920x1080 and sprite size 1920x1080 alpha 1
Running test on pipe C with resolution 1920x1080 and sprite size 1920x1080 alpha 1
Running test on pipe C with resolution 1920x1080 and sprite size 1920x1080 alpha 1
Subtest plane-all-transition: SUCCESS (5.270s)


dmesg:
======
------------[ cut here ]------------
[  907.492402] WARNING: CPU: 6 PID: 8138 at drivers/gpu/drm/drm_mm.c:392 drm_mm_insert_node_in_range_generic+0x315/0x320
[  907.492403] Modules linked in: binfmt_misc nls_iso8859_1 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_intel kvm snd_hda_codec irqbypass snd_hda_core crct10dif_pclmul crc32_pclmul snd_hwdep ghash_clmulni_intel snd_pcm pcbc snd_seq_midi snd_seq_midi_event snd_rawmidi aesni_intel aes_x86_64 crypto_simd glue_helper snd_seq cryptd snd_seq_device serio_raw snd_timer hci_uart snd mei_me btbcm mei btintel soundcore shpchp bluetooth acpi_als tpm_infineon kfifo_buf mac_hid acpi_pad industrialio parport_pc ppdev lp parport autofs4 i915 igb e1000e psmouse dca xhci_pci ptp ahci xhci_hcd pps_core libahci wmi i2c_hid video pinctrl_sunrisepoint pinctrl_intel hid
[  907.492461] CPU: 6 PID: 8138 Comm: kms_atomic_tran Tainted: G     U  W       4.10.0-rc6-tip-201702010159+ #2
[  907.492463] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./H170N-WIFI-CF, BIOS F3 10/20/2015
[  907.492464] Call Trace:
[  907.492468]  dump_stack+0x63/0x87
[  907.492473]  __warn+0xd1/0xf0
[  907.492478]  warn_slowpath_null+0x1d/0x20
[  907.492481]  drm_mm_insert_node_in_range_generic+0x315/0x320
[  907.492485]  ? __enqueue_entity+0x6c/0x70
[  907.492530]  i915_gem_stolen_insert_node_in_range+0x75/0xa0 [i915]
[  907.492574]  intel_fbc_enable+0x19b/0x500 [i915]
[  907.492613]  intel_update_crtc+0x87/0x100 [i915]
[  907.492649]  skl_update_crtcs+0x203/0x220 [i915]
[  907.492685]  intel_atomic_commit_tail+0x33e/0xfc0 [i915]
[  907.492690]  ? finish_task_switch+0x107/0x250
[  907.492694]  ? __schedule+0x224/0x6b0
[  907.492729]  intel_atomic_commit+0x3fa/0x4e0 [i915]
[  907.492734]  ? drm_mode_object_unreference+0x3c/0x80
[  907.492739]  drm_atomic_commit+0x4b/0x50
[  907.492745]  drm_mode_atomic_ioctl+0x82e/0xa90
[  907.492750]  drm_ioctl+0x321/0x420
[  907.492755]  ? drm_atomic_debugfs_init+0x30/0x30
[  907.492762]  do_vfs_ioctl+0x96/0x5b0
[  907.492766]  ? vfs_write+0x151/0x1b0
[  907.492771]  ? acct_account_cputime+0x1c/0x20
[  907.492776]  SyS_ioctl+0x79/0x90
[  907.492781]  do_syscall_64+0x6e/0x180
[  907.492784]  entry_SYSCALL64_slow_path+0x25/0x25
[  907.492786] RIP: 0033:0x7f368cd83357
[  907.492788] RSP: 002b:00007ffdea70fcb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  907.492791] RAX: ffffffffffffffda RBX: 00000000006b3fb0 RCX: 00007f368cd83357
[  907.492793] RDX: 00007ffdea70fd10 RSI: 00000000c03864bc RDI: 0000000000000003
[  907.492794] RBP: 00007ffdea70fd10 R08: 00000000006b6a30 R09: 00000000006b3be0
[  907.492796] R10: 0000000000000002 R11: 0000000000000246 R12: 00000000c03864bc
[  907.492798] R13: 0000000000000003 R14: 0000000000000001 R15: 00000000006b1c50
[  907.492801] ---[ end trace efa5912f3a075d13 ]---


setup:

=========

SKLS1:

------

Platform SKL Gigabyte

CPU: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz (family 6, model 94, stepping 3)

GPU: Intel® HD Graphics 530 - Intel Corporation Sky Lake Integrated Graphics

(rev 06)

Motherboard version: H170N-WIFI-CF

Memory: 2x 4GB Kingston 9905622-055.A00G

 

Software

Bios: F3

Linux distribution: Ubuntu 16.04 64 bits

DMC 1.26 from

https://01.org/sites/default/files/downloads/intelr-graphics-linux/skldmcver126.tar_1.bz2

GUC 6.1 from

https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2

Kernel: drm-tip: 2017y-01m-30d-21h-14m-37s UTC integration manifest

commit 123d798c350471aba7e0625c154c6d9e395756c8

Author: Daniel Vetter <daniel.vetter@ffwll.ch>

Date:  Mon Jan 30 21:15:12 2017 +0000

drm:libdrm-2.4.75-3-gd4b8344 from git://anongit.freedesktop.org/mesa/drm

mesa: mesa-13.0.3-bec04114 from git://anongit.freedesktop.org/mesa/mesa

cairo:1.15.4-68bbb693 from git://anongit.freedesktop.org/cairo

xserver: xorg-server-1.19.0-66-ga6fcb15 from

git://git.freedesktop.org/git/xorg/xserver

xf86-video-intel: 2.99.917-750-g2d6f2e8 from

git://git.freedesktop.org/git/xorg/driver/xf86-video-intel

libva:  libva-1.7.3.pre1-48-ge677ad9 from

git://git.freedesktop.org/git/vaapi/libva

vaapi-intel-driver: 1.7.3-287-g05d2d25 from

git://git.freedesktop.org/git/vaapi/intel-driver
Comment 1 Jari Tahvanainen 2017-04-11 11:05:41 UTC
Marking as resolved+fixed based on 4.11.0-rc4-drm-tip-qa-ww13-commit-5c7479a+ (SKL-1-NUC6i5SYB)
igt@kms_atomic_transition@plane-all-transition		Pass
Unfortunately cannot say what commit did fix this...
Comment 2 Jari Tahvanainen 2017-04-11 12:10:05 UTC
no WARNING even on 500 repetitions for the case on my dev-SKL (6600k). Closing.


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