[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-09-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

Patrik Kullman  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #27 from Patrik Kullman  ---
Patch seems to be included in 4.19-rc1, so this can be closed.

Sadly no Reported-by or Tested-by signature :/

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-08-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #26 from Marcus Spading  ---
I still have the same problem (I think) with a vanilla 4.18.3 kernel with patch
applied. The setup is similar too: TV attached to AV receiver connected via
HDMI.



kernel BUG at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4829!
invalid opcode:  [#1] PREEMPT SMP PTI
CPU: 3 PID: 1075 Comm: X Not tainted 4.18.3 #146
Hardware name: System manufacturer System Product Name/P6T DELUXE V2, BIOS 1108
   09/21/2010
RIP: 0010:dm_update_crtcs_state+0x408/0x490
Code: 9a fd ff ff 8b 44 24 08 48 83 c4 30 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48
83 bb 00 0d 00 00 00 0f 85 0a ff ff ff e9 fe fe ff ff <0f> 0b b8 ea ff ff ff e9
d4 fc ff ff 41 8b 4e 60 48 c7 c2 70 08 ec 
RSP: 0018:c90002507a78 EFLAGS: 00010246
RAX: 880321259401 RBX: 88032cb81000 RCX: 0002dc73
RDX:  RSI: 8803332e2dc0 RDI: 88032125ec00
RBP: 88032b6b4300 R08: 00022dc0 R09: 816863e5
R10: ea000c849600 R11: 880332c06e80 R12: 
R13: 88032125b000 R14: 88032cb8b000 R15: 880322731800
FS:  7f156911c9c0() GS:8803332c() knlGS:
CS:  0010 DS:  ES:  CR0: 80050033
CR2: 7f2e579ff024 CR3: 00031e3b4000 CR4: 26e0
Call Trace:
 amdgpu_dm_atomic_check+0x18c/0x3e0
 drm_atomic_check_only+0x335/0x500
 drm_atomic_commit+0xe/0x50
 drm_atomic_helper_set_config+0x7b/0x90
 __drm_mode_set_config_internal+0x62/0x120
 drm_mode_setcrtc+0x40f/0x5e0
 ? amdgpu_cs_wait_ioctl+0xd3/0x150
 ? drm_mode_getcrtc+0x180/0x180
 drm_ioctl_kernel+0x7c/0xe0
 ? try_to_wake_up+0x202/0x3a0
 drm_ioctl+0x2cb/0x380
 ? drm_mode_getcrtc+0x180/0x180
 amdgpu_drm_ioctl+0x44/0x80
 do_vfs_ioctl+0x9f/0x630
 ksys_ioctl+0x35/0x60
 __x64_sys_ioctl+0x11/0x20
 do_syscall_64+0x43/0xf0
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f15668e70e7
Code: 00 00 00 75 0c 48 c7 c0 ff ff ff ff 48 83 c4 18 c3 e8 5d df 01 00 66 2e
0f 1f 84 00 00 00 00 00 0f 1f 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01
c3 48 8b 0d 71 5d 2c 00 f7 d8 64 89 01 48 
RSP: 002b:7ffe455bbaa8 EFLAGS: 0246 ORIG_RAX: 0010
RAX: ffda RBX: 7ffe455bbafc RCX: 7f15668e70e7
RDX: 7ffe455bbae0 RSI: c06864a2 RDI: 000c
RBP: 7ffe455bbae0 R08:  R09: 55b58ec77b70
R10: 7ffe455bbba0 R11: 0246 R12: c06864a2
R13: 000c R14:  R15: 55b58ec77b70
Modules linked in: devlink ebtable_filter ebtables ip6table_filter ip6_tables
xt_recent ipt_REJECT nf_reject_ipv4 xt_comment xt_multiport xt_hashlimit
xt_addrtype xt_mark ipt_MASQUERADE xt_NFLOG nf_log_ipv4 nf_log_common xt_LOG
nf_conntrack_netlink nf_nat_sip nf_nat_irc nf_nat_ftp nf_conntrack_sip
nf_conntrack_irc nf_conntrack_ftp xt_conntrack iptable_mangle iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_raw
iptable_filter ip_tables bpfilter tun cfg80211 rfkill 8021q hid_roccat_koneplus
hid_roccat hid_roccat_common input_leds led_class hid_steam snd_usb_audio
joydev snd_usbmidi_lib snd_rawmidi snd_seq_device snd_hda_codec_analog
snd_hda_codec_generic pktcdvd uhci_hcd intel_powerclamp coretemp kvm_intel
snd_hda_codec_hdmi kvm irqbypass snd_hda_intel
 crc32c_intel snd_hda_codec pcspkr snd_hwdep snd_hda_core snd_pcm xhci_pci
i2c_i801 snd_timer snd xhci_hcd ehci_pci sky2 lpc_ich soundcore ehci_hcd
i7core_edac asus_atk0110 button acpi_cpufreq sch_fq_codel
---[ end trace b9ac78ef0a693ba7 ]---
RIP: 0010:dm_update_crtcs_state+0x408/0x490
Code: 9a fd ff ff 8b 44 24 08 48 83 c4 30 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48
83 bb 00 0d 00 00 00 0f 85 0a ff ff ff e9 fe fe ff ff <0f> 0b b8 ea ff ff ff e9
d4 fc ff ff 41 8b 4e 60 48 c7 c2 70 08 ec 
RSP: 0018:c90002507a78 EFLAGS: 00010246
RAX: 880321259401 RBX: 88032cb81000 RCX: 0002dc73
RDX:  RSI: 8803332e2dc0 RDI: 88032125ec00
RBP: 88032b6b4300 R08: 00022dc0 R09: 816863e5
R10: ea000c849600 R11: 880332c06e80 R12: 
R13: 88032125b000 R14: 88032cb8b000 R15: 880322731800
FS:  7f156911c9c0() GS:8803332c() knlGS:
CS:  0010 DS:  ES:  CR0: 80050033
CR2: 7f2e579ff024 CR3: 00031e3b4000 CR4: 26e0

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-08-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #25 from Patrik Kullman  ---
Any idea when this will go upstream?
Anywhere to track it?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #24 from Peter  ---
Seems fixed to me. I can't reproduce the bug any more on 4.18-rc5 with that
patch.

Thanks for the help.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #23 from Patrik Kullman  ---
Ok so it seems the custom kernel build is at fault, for some reason hid/usbhid
are not built(?). Sorry for spamming the issue and thanks a lot for the great
work!

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #22 from Patrik Kullman  ---
Oh, I guess we can close this issue if the patch will make it to the kernel?
Would it be possible that it could land in 4.18-rc6 ?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #21 from Patrik Kullman  ---
Nope, the dead input devices does not seem to be connected to the patch, I can
draw stuff by starting apps remotely, and connecting a regular monitor makes no
difference.

Very weird how the input devices stopped working though, either something weird
with my build (make -j8 bindeb-pkg) or some change with input devices (regular
USB keyboard and mouse, different USB ports..)

Gonna try the patch on rc3 to see if it's a regression in rc5.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #20 from Patrik Kullman  ---
Yes this actually fixes the crash and I do get picture on the TV!

Not sure if related but I can't interact with the system/desktop with keyboard
or mouse. Either it's a separate input issue (although it works perfectly when
connected to a monitor on HDMI) or it's related to the custom kernel build, or
there is some issue with the screen update rather than the input devices.

Don't have more time to investigate right now but will keep you posted.

Thanks for the patch!

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #19 from Leo Li  ---
(In reply to Patrik Kullman from comment #17)
> Created attachment 140685 [details]
> 4.18-rc5 dmesg with debug (-freesync)
> 
> Could also not build with freesync.
> 
> Mine seem to crash a lot faster.

Ah, I got lazy and did not rebase onto the stable tree, thank you both for
fixing it :)

I've attached a new patch, should fix it - given what I can tell from the logs.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

Leo Li  changed:

   What|Removed |Added

 Attachment #140678|0   |1
is obsolete||

--- Comment #18 from Leo Li  ---
Created attachment 140711
  --> https://bugs.freedesktop.org/attachment.cgi?id=140711=edit
[PATCH] drm/amd/display: Consider HDMI aspect ratio when comparing streams

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #17 from Patrik Kullman  ---
Created attachment 140685
  --> https://bugs.freedesktop.org/attachment.cgi?id=140685=edit
4.18-rc5 dmesg with debug (-freesync)

Could also not build with freesync.

Mine seem to crash a lot faster.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #16 from Peter  ---
Created attachment 140681
  --> https://bugs.freedesktop.org/attachment.cgi?id=140681=edit
Dmesg with patch minus freesync

The kernel wouldn't build with that patch. It doesn't seem to recognize the
freesync_enable part. Is that in 4.18?

I removed the three Freesync lines from the patch and built 4.18-rc5. I've
attached its dmesg output.


Build error:

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function
‘dm_update_crtcs_state’:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4832:29: error:
‘struct dm_crtc_state’ has no member named ‘freesync_enabled’; did you mean
‘crc_enabled’?
  dm_old_crtc_state->freesync_enabled,
 ^~~~
 crc_enabled
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4833:29: error:
‘struct dm_crtc_state’ has no member named ‘freesync_enabled’; did you mean
‘crc_enabled’?
  dm_new_crtc_state->freesync_enabled);
 ^~~~
 crc_enabled

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

Leo Li  changed:

   What|Removed |Added

 Attachment #140677|0   |1
is obsolete||

--- Comment #15 from Leo Li  ---
Created attachment 140678
  --> https://bugs.freedesktop.org/attachment.cgi?id=140678=edit
[Patch] BUG_ON debug prints

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

Leo Li  changed:

   What|Removed |Added

 Attachment #140613|0   |1
is obsolete||
 Attachment #140614|0   |1
is obsolete||

--- Comment #14 from Leo Li  ---
Created attachment 140677
  --> https://bugs.freedesktop.org/attachment.cgi?id=140677=edit
[Patch] BUG_ON debug prints

I'm having trouble reproducing this issue, probably because I don't have access
to a newer Onkyo receiver. It seems that's the common factor thus far.

Could you help me gather some debug info? I've attached a patch that dumps some
data to dmesg. Once it reproduces, please upload the entire dmesg log.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #13 from Patrik Kullman  ---
Interesting, thanks Peter!
I don't quite have the same combos, booting with receiver and TV on still
crashes the driver. I'll try some with this as well.

I have now tried rc5 and bug is still present.

Another detail is that after booting and connecting the HDMI, the driver
crashes. Subsequent disconnect/connects gives:

 [drm] amdgpu_dm_irq_schedule_work FAILED src 6

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #12 from Peter  ---
I'm running 4.18-rc4 on Slackware and I seem to have the same problem. My
system boots fine, but if I run startx with HDMI connected the system freezes
with a black screen and I get the bug in my kernel log.

I can start KDE and then connect HDMI and that seems to work fine. I even get
HDMI audio. If I close KDE, I then get the black screen and bug.

My system is a Ryzen 2700x, ASUS Prime x470-Pro motherboard, Radeon RX 470
video card. I have a monitor connected with DisplayPort and an AV receiver
connected with HDMI for sound. There is a TV connected to the receiver's
output, which is usually switched off.

Interestingly, I'm also using an Onkyo AV receiver. Mine's a TX-NR515AE. If I
unplug the receiver, unplug my monitor from DisplayPort and connect the monitor
with HDMI, my system starts KDE fine and HDMI audio plays from the monitor's
speakers.

I spent some time crashing and rebooting my system to find the combination that
didn't work. Turning everything off between attempts and starting with
everything turned off:

Leave AV receiver off. Turn on computer. Start KDE. Bug.

Turn on AV receiver. Turn on computer. Start KDE. Bug.

Turn on AV receiver. Turn on TV. Turn on computer. Start KDE. No bug. Monitor
and TV both work as expected. HDMI audio works.

Turn on AV receiver. Turn on TV. Turn *off* TV. Turn on computer. Start KDE. No
bug. Monitor works as expected. HDMI audio works.

I have a hunch that the AV receiver gets HDMI data from the TV. If the TV
hasn't been on, the receiver feeds odd data to the PC and hits this bug. I
don't know how to troubleshoot this further.

I also get two warnings in my kernel log on boot before starting KDE that
disappear if I unplug the AV receiver. I don't know if they're relevant.


Bug:

[   37.762733] kernel BUG at
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4829!
[   37.762742] invalid opcode:  [#1] SMP NOPTI
[   37.762746] CPU: 7 PID: 1477 Comm: Xorg Tainted: GW
4.18.0-rc4 #1
[   37.762747] Hardware name: System manufacturer System Product Name/PRIME
X470-PRO, BIOS 4011 04/19/2018
[   37.762804] RIP: 0010:dm_update_crtcs_state+0x458/0x4d0 [amdgpu]
[   37.762805] Code: ff ff 48 85 db 0f 84 d9 fd ff ff 48 c7 44 24 18 00 00 00
00 48 c7 44 24 08 00 00 00 00 48 c7 04 24 00 00 00 00 e9 91 fe ff ff <0f> 0b 48
83 c4 30 b8 ea ff ff ff 5b 5d 41 5c 41 5d 41 5e 41 5f c3 
[   37.762828] RSP: 0018:b04c0083baa0 EFLAGS: 00010246
[   37.762831] RAX: 925fca3ea401 RBX:  RCX:
02f7
[   37.762832] RDX: 02f6 RSI: 925fdede4160 RDI:
925fde806e80
[   37.762834] RBP: 925fca3a1880 R08: 00024160 R09:
c095be2e
[   37.762836] R10: df2c9028fa00 R11: f080 R12:
0001
[   37.762837] R13: 925fca3ea000 R14: 925fca3ecc00 R15:
925fc8965000
[   37.762839] FS:  7fbb6af6fd40() GS:925fdedc()
knlGS:
[   37.762841] CS:  0010 DS:  ES:  CR0: 80050033
[   37.762842] CR2: 7ffc9f29bfa8 CR3: 0003fa86a000 CR4:
003406e0
[   37.762844] Call Trace:
[   37.762901]  amdgpu_dm_atomic_check+0x1bc/0x3a0 [amdgpu]
[   37.762919]  drm_atomic_check_only+0x360/0x510 [drm]
[   37.762935]  drm_atomic_commit+0x13/0x50 [drm]
[   37.762944]  drm_atomic_helper_set_config+0x75/0x80 [drm_kms_helper]
[   37.762959]  __drm_mode_set_config_internal+0x67/0x120 [drm]
[   37.762974]  drm_mode_setcrtc+0x412/0x610 [drm]
[   37.762988]  ? drm_mode_getcrtc+0x180/0x180 [drm]
[   37.763001]  drm_ioctl_kernel+0xa1/0xf0 [drm]
[   37.763014]  drm_ioctl+0x1fc/0x390 [drm]
[   37.763028]  ? drm_mode_getcrtc+0x180/0x180 [drm]
[   37.763066]  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[   37.763071]  do_vfs_ioctl+0xa4/0x620
[   37.763075]  ? __x64_sys_futex+0x143/0x180
[   37.763078]  ksys_ioctl+0x60/0x90
[   37.763080]  __x64_sys_ioctl+0x16/0x20
[   37.763084]  do_syscall_64+0x55/0x100
[   37.763088]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   37.763091] RIP: 0033:0x7fbb68da2297
[   37.763092] Code: b3 66 90 48 8b 05 f1 1b 2d 00 64 c7 00 26 00 00 00 48 c7
c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01
f0 ff ff 73 01 c3 48 8b 0d c1 1b 2d 00 f7 d8 64 89 01 48 
[   37.763114] RSP: 002b:7fffe459de58 EFLAGS: 3246 ORIG_RAX:
0010
[   37.763116] RAX: ffda RBX: 7fffe459de90 RCX:
7fbb68da2297
[   37.763117] RDX: 7fffe459de90 RSI: c06864a2 RDI:
0016
[   37.763119] RBP: 7fffe459de90 R08:  R09:
028314f0
[   37.763120] R10: 7fffe459df50 R11: 3246 R12:
c06864a2
[   37.763122] R13: 0016 R14:  R15:
028314f0
[   37.763124] Modules linked in: ipv6 cfg80211 8021q garp mrp stp llc
nls_iso8859_1 nls_cp437 vfat fat fuse joydev hid_generic usbhid hid amdkfd
amd_iommu_v2 snd_hda_codec_realtek 

[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #11 from Patrik Kullman  ---
No updates in rc5 looking at "git log v4.18-rc4..v4.18-rc5
drivers/gpu/drm/amd/", but I'll try it out anyway once it's available at
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18-rc5/

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

Patrik Kullman  changed:

   What|Removed |Added

 CC||mikita.lip...@amd.com

--- Comment #10 from Patrik Kullman  ---
These two were already in rc4 (in fact, the only changes since rc3):

$ git log --oneline v4.18-rc3..v4.18-rc4 drivers/gpu/drm/amd/display/amdgpu_dm
413ff0b94248 drm/amd/display: add a check for display depth validity
a6311be8f062 drm/amd/display: adding ycbcr420 pixel encoding for hdmi

So issue is still present :(

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #9 from Patrik Kullman  ---
That's amazing! I'll try it out in a few hours! Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #8 from Leo Li  ---
Thanks for filing the ticket Patrik, can you please give the attached two
patches a shot? I cp'ed them over 4.18-rc3 and they seem to fix it for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #7 from Leo Li  ---
Created attachment 140614
  --> https://bugs.freedesktop.org/attachment.cgi?id=140614=edit
Patch 2/2

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #6 from Leo Li  ---
Created attachment 140613
  --> https://bugs.freedesktop.org/attachment.cgi?id=140613=edit
Patch 1/2

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #5 from Patrik Kullman  ---
For reference, they seem to reference the same line and is vanilla compared to
Ubuntu-kernels:

https://github.com/torvalds/linux/blob/v4.18-rc3/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4784
https://github.com/torvalds/linux/blob/v4.18-rc4/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c#L4829

(According to the bug line references)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #4 from Patrik Kullman  ---
Same with 4.18-rc4:

[   44.170327] [drm] fb mappable at 0x2000A28000
[   44.170328] [drm] vram apper at 0x20
[   44.170329] [drm] size 35389440
[   44.170329] [drm] fb depth is 24
[   44.170329] [drm]pitch is 16384
[   44.170388] fbcon: amdgpudrmfb (fb0) is primary device
[   44.366023] Console: switching to colour frame buffer device 512x135
[   44.392795] amdgpu :01:00.0: fb0: amdgpudrmfb frame buffer device
[   44.399041] [ cut here ]
[   44.399042] kernel BUG at
/home/kernel/COD/linux/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4829!
[   44.399046] invalid opcode:  [#1] SMP PTI
[   44.399047] CPU: 4 PID: 949 Comm: Xorg Tainted: GW
4.18.0-041800rc4-generic #201807082030
[   44.399048] Hardware name: Intel Corporation NUC8i7HVK/NUC8i7HVB, BIOS
HNKBLi70.86A.0044.2018.0615.1726 06/15/2018
[   44.399081] RIP: 0010:dm_update_crtcs_state+0x41e/0x4a0 [amdgpu]
[   44.399082] Code: e9 8f fd ff ff 8b 45 c0 48 8d 65 d8 5b 41 5c 41 5d 41 5e
41 5f 5d c3 48 83 bb 08 0d 00 00 00 0f 85 08 ff ff ff e9 fc fe ff ff <0f> 0b b8
ea ff ff ff e9 ca fc ff ff 41 8b 4e 60 48 c7 c2 30 1b 81 
[   44.399094] RSP: 0018:a1f042bfba18 EFLAGS: 00010246
[   44.399095] RAX: 916f25b0a401 RBX:  RCX:
131a
[   44.399095] RDX: 1319 RSI: 916f3ed27160 RDI:
916f2e002f00
[   44.399096] RBP: a1f042bfba78 R08: 00027160 R09:
c07c6836
[   44.399096] R10: ce861196c200 R11: f080 R12:
916f270c0200
[   44.399096] R13:  R14: 916f1fd75800 R15:
916f25b0f800
[   44.399097] FS:  7f6116645600() GS:916f3ed0()
knlGS:
[   44.399098] CS:  0010 DS:  ES:  CR0: 80050033
[   44.399098] CR2: 55f131e14480 CR3: 000468a2a006 CR4:
003606e0
[   44.399099] Call Trace:
[   44.399124]  amdgpu_dm_atomic_check+0x18e/0x3d0 [amdgpu]
[   44.399126]  ? radix_tree_lookup+0xd/0x10
[   44.399136]  drm_atomic_check_only+0x33b/0x510 [drm]
[   44.399141]  drm_atomic_commit+0x18/0x50 [drm]
[   44.399146]  drm_atomic_helper_set_config+0x7c/0x90 [drm_kms_helper]
[   44.399151]  __drm_mode_set_config_internal+0x6b/0x120 [drm]
[   44.399156]  drm_mode_setcrtc+0x4b0/0x6a0 [drm]
[   44.399160]  ? drm_mode_getcrtc+0x1a0/0x1a0 [drm]
[   44.399164]  drm_ioctl_kernel+0xa4/0xf0 [drm]
[   44.399168]  drm_ioctl+0x37b/0x440 [drm]
[   44.399172]  ? drm_mode_getcrtc+0x1a0/0x1a0 [drm]
[   44.399185]  amdgpu_drm_ioctl+0x4f/0x90 [amdgpu]
[   44.399187]  do_vfs_ioctl+0xa8/0x630
[   44.399189]  ? recalc_sigpending+0x1b/0x50
[   44.399190]  ? _copy_from_user+0x3e/0x60
[   44.399191]  ksys_ioctl+0x75/0x80
[   44.399192]  __x64_sys_ioctl+0x1a/0x20
[   44.399194]  do_syscall_64+0x5a/0x120
[   44.399195]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   44.399196] RIP: 0033:0x7f6113a3a5d7
[   44.399196] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7
c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01
f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48 
[   44.399208] RSP: 002b:7fff4f70d328 EFLAGS: 0246 ORIG_RAX:
0010
[   44.399209] RAX: ffda RBX: 7fff4f70d360 RCX:
7f6113a3a5d7
[   44.399210] RDX: 7fff4f70d360 RSI: c06864a2 RDI:
000c
[   44.399210] RBP: 7fff4f70d360 R08:  R09:
55f131e07380
[   44.399210] R10: 7fff4f70d420 R11: 0246 R12:
c06864a2
[   44.399211] R13: 000c R14:  R15:
55f131e07380
[   44.399212] Modules linked in: ccm thunderbolt rfcomm cmac bnep
nls_iso8859_1 arc4 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp
kvm_intel kvm irqbypass morus1280_avx2 8250_dw morus1280_sse2 morus1280_glue
morus640_sse2 morus640_glue aegis256_aesni aegis128l_aesni aegis128_aesni
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc iwlmvm
snd_hda_codec_realtek snd_hda_codec_generic snd_seq_midi mac80211
snd_seq_midi_event snd_hda_codec_hdmi snd_rawmidi snd_hda_intel btusb
snd_hda_codec btrtl btbcm aesni_intel snd_hda_core btintel snd_hwdep iwlwifi
aes_x86_64 crypto_simd cryptd glue_helper snd_seq input_leds bluetooth snd_pcm
intel_cstate snd_seq_device intel_rapl_perf ir_rc6_decoder cfg80211 serio_raw
intel_wmi_thunderbolt wmi_bmof snd_timer ecdh_generic idma64 snd virt_dma
mei_me soundcore
[   44.399229]  intel_lpss_pci mei intel_pch_thermal intel_lpss rc_rc6_mce
ite_cir rc_core tps6598x typec acpi_pad mac_hid sch_fq_codel parport_pc ppdev
lp parport ip_tables x_tables autofs4 amdkfd amd_iommu_v2 amdgpu chash
gpu_sched ttm drm_kms_helper syscopyarea sysfillrect igb sysimgblt psmouse
fb_sys_fops e1000e drm sdhci_pci dca cqhci i2c_algo_bit sdhci wmi
pinctrl_sunrisepoint pinctrl_intel video
[   44.399240] ---[ end trace 8a687bbe699300d5 ]---
[   44.399264] RIP: 

[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #3 from Patrik Kullman  ---
Also present in dmesg now after leaving the system on:

[44775.903197] [drm] amdgpu_dm_irq_schedule_work FAILED src 6
[44777.523222] [drm] amdgpu_dm_irq_schedule_work FAILED src 6
[44778.253228] [drm] amdgpu_dm_irq_schedule_work FAILED src 6
[44779.433248] [drm] amdgpu_dm_irq_schedule_work FAILED src 6
[44838.184045] [drm] amdgpu_dm_irq_schedule_work FAILED src 6

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #2 from Patrik Kullman  ---
Right before this in journalctl:

[  268.322916] hades-media /usr/lib/gdm3/gdm-x-session[896]: (--) AMDGPU(0):
HDMI max TMDS frequency 30KHz
[  268.324908] hades-media /usr/lib/gdm3/gdm-x-session[896]: (II) AMDGPU(0):
Allocate new frame buffer 4096x2160
[  268.324976] hades-media /usr/lib/gdm3/gdm-x-session[896]: (II) AMDGPU(0): 
=> pitch 16384 bytes

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

--- Comment #1 from Patrik Kullman  ---
Very similar to https://bugs.freedesktop.org/show_bug.cgi?id=106194 but still
happens in 4.18-rc3

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 107153] 4.18-rc3 crash on hdmi (0010:dm_update_crtcs_state+0x41e/0x4a0)

2018-07-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107153

Bug ID: 107153
   Summary: 4.18-rc3 crash on hdmi
(0010:dm_update_crtcs_state+0x41e/0x4a0)
   Product: DRI
   Version: unspecified
  Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
  Severity: blocker
  Priority: medium
 Component: DRM/AMDgpu
  Assignee: dri-devel@lists.freedesktop.org
  Reporter: patrik.kull...@gmail.com

Just installed Ubuntu 18.04 on my Hades Canyon Intel NUC with Vega M graphics.
To get it to work I have installed the latest BIOS (44), a 4.18-rc3 kernel from
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18-rc3/, the Vega M firmware
from https://people.freedesktop.org/~agd5f/radeon_ucode/vegam/ and mesa 18.1
from
https://launchpad.net/~ubuntu-x-swat/+archive/ubuntu/updates?field.series_filter=bionic.

Now, when booting it with HDMI connected to an Onkyo TX-NR555 receiver through
HDMI, it hangs on boot.
If I disconnect the HDMI while booting and reconnect it after boot, I get the
following crash:

[  268.434749] [drm] fb mappable at 0x2000A28000
[  268.434750] [drm] vram apper at 0x20
[  268.434750] [drm] size 35389440
[  268.434751] [drm] fb depth is 24
[  268.434751] [drm]pitch is 16384
[  268.434811] fbcon: amdgpudrmfb (fb0) is primary device
[  268.643348] Console: switching to colour frame buffer device 512x135
[  268.659459] amdgpu :01:00.0: fb0: amdgpudrmfb frame buffer device
[  268.676523] [ cut here ]
[  268.676523] kernel BUG at
/home/kernel/COD/linux/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4784!
[  268.676527] invalid opcode:  [#1] SMP PTI
[  268.676528] CPU: 6 PID: 898 Comm: Xorg Tainted: GW
4.18.0-041800rc3-generic #201807012030
[  268.676529] Hardware name: Intel Corporation NUC8i7HVK/NUC8i7HVB, BIOS
HNKBLi70.86A.0044.2018.0615.1726 06/15/2018
[  268.676567] RIP: 0010:dm_update_crtcs_state+0x41e/0x4a0 [amdgpu]
[  268.676567] Code: e9 8f fd ff ff 8b 45 c0 48 8d 65 d8 5b 41 5c 41 5d 41 5e
41 5f 5d c3 48 83 bb 08 0d 00 00 00 0f 85 08 ff ff ff e9 fc fe ff ff <0f> 0b b8
ea ff ff ff e9 ca fc ff ff 41 8b 4e 60 48 c7 c2 30 eb 57 
[  268.676579] RSP: 0018:b43642be7a18 EFLAGS: 00010246
[  268.676580] RAX: 9014665e0001 RBX:  RCX:
10b8
[  268.676581] RDX: 10b7 RSI: 90147eda7160 RDI:
90146e002f00
[  268.676581] RBP: b43642be7a78 R08: 00027160 R09:
c0534386
[  268.676582] R10: fc7211997800 R11: f080 R12:
901464f30f80
[  268.676582] R13:  R14: 901460322800 R15:
9014665e0c00
[  268.676583] FS:  7fde55c2c600() GS:90147ed8()
knlGS:
[  268.676583] CS:  0010 DS:  ES:  CR0: 80050033
[  268.676584] CR2: 555b891b2670 CR3: 00046307c005 CR4:
003606e0
[  268.676584] Call Trace:
[  268.676612]  amdgpu_dm_atomic_check+0x18e/0x3d0 [amdgpu]
[  268.676614]  ? radix_tree_lookup+0xd/0x10
[  268.676626]  drm_atomic_check_only+0x33b/0x510 [drm]
[  268.676631]  drm_atomic_commit+0x18/0x50 [drm]
[  268.676637]  drm_atomic_helper_set_config+0x7c/0x90 [drm_kms_helper]
[  268.676642]  __drm_mode_set_config_internal+0x6b/0x120 [drm]
[  268.676647]  drm_mode_setcrtc+0x4b0/0x6a0 [drm]
[  268.676652]  ? drm_mode_getcrtc+0x1a0/0x1a0 [drm]
[  268.676656]  drm_ioctl_kernel+0xa4/0xf0 [drm]
[  268.676660]  drm_ioctl+0x37b/0x440 [drm]
[  268.676664]  ? drm_mode_getcrtc+0x1a0/0x1a0 [drm]
[  268.676680]  amdgpu_drm_ioctl+0x4f/0x90 [amdgpu]
[  268.676682]  do_vfs_ioctl+0xa8/0x630
[  268.676683]  ? recalc_sigpending+0x1b/0x50
[  268.676685]  ? _copy_from_user+0x3e/0x60
[  268.676686]  ksys_ioctl+0x75/0x80
[  268.676687]  __x64_sys_ioctl+0x1a/0x20
[  268.676688]  do_syscall_64+0x5a/0x120
[  268.676690]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  268.676690] RIP: 0033:0x7fde530215d7
[  268.676691] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7
c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01
f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48 
[  268.676703] RSP: 002b:762d35d8 EFLAGS: 0246 ORIG_RAX:
0010
[  268.676704] RAX: ffda RBX: 762d3610 RCX:
7fde530215d7
[  268.676704] RDX: 762d3610 RSI: c06864a2 RDI:
000c
[  268.676705] RBP: 762d3610 R08:  R09:
555b891a3690
[  268.676705] R10: 762d36d0 R11: 0246 R12:
c06864a2
[  268.676706] R13: 000c R14:  R15:
555b891a3690
[  268.676706] Modules linked in: ccm thunderbolt rfcomm cmac bnep arc4
nls_iso8859_1 8250_dw intel_rapl x86_pkg_temp_thermal intel_powerclamp
snd_hda_codec_realtek snd_hda_codec_generic coretemp snd_hda_codec_hdmi
kvm_intel snd_hda_intel kvm snd_hda_codec irqbypass snd_hda_core morus1280_avx2