Skip to contentSkip to conversation

Fury fails to boot since vce3: add support for third vce ring

Bug 98016 [email protected] 1 participant 17 messages Oct 2, 2016 – Dec 14, 2016

lore
Share & tools
lore

[email protected]

author Reviewed-by JimQu Reviewed-by Christian König
#0 lore raw

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

Bug ID: 98016
Summary: [bisected] Fury fails to boot since vce3: add support
for third vce ring
Product: DRI
Version: DRI git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Haven't been able to boot agd5f kernels for a while, did a big bisect today. It came up with this commit:

commit 6f0359ff73076483902de0c17f9649bf55651e2a

Author: Alex Deucher <[email protected]>
Date:   Wed Aug 24 17:15:33 2016 -0400

drm/amdgpu/vce3: add support for third vce ring

Not of much use at the moment (we don't really use the second ring either), but may be useful later.

[    16.822] (--) AMDGPU(0): Chipset: "FIJI" (ChipID = 0x7300)
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

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

--- Comment #2 from Ernst Sjöstrand <[email protected]> --- Wait, now I'm not so sure about the bisect.
Could there be a could/warm boot thing playing tricks with me? Now I couldn't boot even with the patch reverted. But if I reboot from a stable kernel quickly I can boot...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

Ernst Sjöstrand <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|[bisected] Fury fails to    |[bisected] Fury fails to
                   |boot since vce3: add        |boot on drm-next-4.9
                   |support for third vce ring  |

--- Comment #3 from Ernst Sjöstrand <[email protected]> ---
This seems to be very hard to reproduce. Perhaps it's related to the kernel I'm rebooting from or some complex combination.
Pretty hard to debug when the computer simply stops responding without any text etc.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #4 from Andy Furniss <[email protected]> --- (In reply to Ernst Sjöstrand from comment #3)

Quoted 4 lines

This seems to be very hard to reproduce. Perhaps it's related to the kernel I'm rebooting from or some complex combination.
Pretty hard to debug when the computer simply stops responding without any text etc.

Yea, it's tricky sometimes.

For my (I guess different) tonga start up issue I had to power down "properly" between bisect steps. By properly I mean shutdown/halt then cut the power to the PSU and wait a couple of minutes before powering up again.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #5 from Andy Furniss <[email protected]> ---
Also the way 4.9-wip changes and things get merged may not make bisecting a long way back that easy compared to something like mesa.

I notice it's changed again 17 hours ago - it may even work now without you being able to see any sign od a revert or fix in the history.

Maybe testing other branches (after power off of course) would give you a better idea where you are.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #6 from Ernst Sjöstrand <[email protected]> --- Do you think I can get both false positives and false negatives? Have tested a bit more but still behaving in a silly way...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #7 from Andy Furniss <[email protected]> --- (In reply to Ernst Sjöstrand from comment #6)

Quoted 2 lines

Do you think I can get both false positives and false negatives? Have tested a bit more but still behaving in a silly way...

I guess your issue not as clear cut as mine then.

If you find that you can sometimes boot and sometimes not on the same kernel after power off, then that's going to be quite a pain and time consuming to find.

It's not really normal to have to power off - I haven't needed to for ages, just that with my recent boot up issue I knew I did need to as when I first built it it worked from a reboot, but not the next day from off. I though your issue may be similar, but apparently not.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #8 from Ernst Sjöstrand <[email protected]> ---
I have never been able to reproduce the problem with self-compiled 4.8-rc8 from that workspace so I think my local builds are working at least. drm/amd/amdgpu: enable clockgating only after late init
sounded like it could be similar to my problem but it didn't help.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #9 from Ernst Sjöstrand <[email protected]> ---
I know what may have been fooling me.
I run sudo make install on Ubuntu. It adds a .old entry in grub. However that .old entry doesn't have a .old initrd, where the amdgpu kernel module lives, it shares initrd.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #10 from Ernst Sjöstrand <[email protected]> --- Created attachment 127299
--> https://bugs.freedesktop.org/attachment.cgi?id=127299&action=edit
Patch that fixes the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #11 from Alex Deucher <[email protected]> --- Odd. We haven't seen any failures internally with Fiji and 3 VCE rings enabled. Can you provide a log of the failure? Try manually loading amdgpu after boot. E.g., append modprobe.blacklist=amdgpu to the kernel command line and boot to a non-X runlevel, then manually modprobe amdgpu and capture the dmesg output. Please attach the dmesg output from a successful boot as well. If you have remote access via ssh, that would make it easier. What VCE firmware are you using? Can you try the latest version from git and see if that helps:
https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #12 from Ernst Sjöstrand <[email protected]> --- Couldn't get anything after modprobe, the computer really dies. However updating the firmware fixed it.

Should there be some kind of check or do you consider this fixed?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #13 from Ernst Sjöstrand <[email protected]> ---
I was running the Ubuntu firmware from Xenial, the firmware bundled in Wily fixed it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #14 from Alex Deucher <[email protected]> --- (In reply to Ernst Sjöstrand from comment #12)

Quoted 4 lines

Couldn't get anything after modprobe, the computer really dies. However updating the firmware fixed it.

Should there be some kind of check or do you consider this fixed?

I'll add a check. Thanks for confirming.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

--- Comment #15 from Alex Deucher <[email protected]> --- Created attachment 127542
--> https://bugs.freedesktop.org/attachment.cgi?id=127542&action=edit
possible fix

Does this patch fix the issue?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 98016] [bisected] Fury fails to boot on drm-next-4.9

In reply to [email protected]

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

Ernst Sjöstrand <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel