Skip to contentSkip to conversation

New: [NVE4] freezes: HUB_INIT timed out

Bug 91557 [email protected] 1 participant 19 messages Aug 4, 2015 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 91557
Summary: [NVE4] freezes: HUB_INIT timed out
Product: xorg
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 117518
--> https://bugs.freedesktop.org/attachment.cgi?id=117518&action=edit
dmesg log from freeze with runpm=0

I have a Medion X7827 laptop with GK104 GPU in an Optimus setup, running:
Linux 4.1.2 x86_64
Mesa 10.6.2
Xorg 1.17.2

I've been experiencing some freezes:
- a total freeze (no ping, no sysrq, only hard reset) shortly after xorg start
- if nouveau is loaded *without* runpm=0
- a recoverable freeze (sysrq+K worked) when exiting xorg - if nouveau is loaded *with* runpm=0

On #nouveau IRC channel I've been told to try the hack-gk106m branch of this
repository: http://... , with runpm=0
At first I thought it helped, but then I noticed the freezez happen randomly.

When runpm=0 is set, the freeze has about 60% chance of happening. I've tested it with both in-tree nouveau.ko and one built from hack-gk106m branch, and looks like the chance is the same on both.
When the freeze happens, there's either a "HUB_INIT timed out" message or "grctx template channel unload timeout" message in dmesg.
If the freeze is to happen, the error message shows up at nouveau module load time, and then again when Xorg starts. Full logs in attachments.

I did mmiotraces of the nouveau.ko from hack-gk106m branch (can repeat with in-tree nouveau.ko if necessary), with runpm=0, for all of the cases:
- the driver loading succesfully
- the driver loading with HUB_INIT timeout error
- the driver loading with grctx timeout error
The traces and corresponding dmesg logs are in attachments. I have more traces, but included only one per case.
I did not try to start xorg and trigger the freeze during the mmiotraces, because:
a) I believe the problem happens at nouveau load time, when it tries to initialize the GPU
b) The traces compressed with xz -9 barely fit in the max attachment size of bugzilla, if they were longer I doubt I could make them fit.

I hope these traces will be useful and help figure out why it sometimes works and sometimes doesn't, and how to make it always work.
Let me know if there's anything more I could to to help you figure this out.

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): bug-91557-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

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

--- Comment #1 from [email protected] --- Created attachment 117519
--> https://bugs.freedesktop.org/attachment.cgi?id=117519&action=edit
Xorg log from freeze with runpm=0

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #2 from [email protected] --- Created attachment 117520
--> https://bugs.freedesktop.org/attachment.cgi?id=117520&action=edit
netconsole log from freeze *without* runpm=0

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

[email protected] changed:

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

 Attachment #117520|netconsole log from freeze  |netconsole log from freeze
        description|*without* runpm=0           |with default runpm setting
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #3 from [email protected] --- Created attachment 117521
--> https://bugs.freedesktop.org/attachment.cgi?id=117521&action=edit
Xorg log from freeze with default runpm settings

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #4 from [email protected] --- Created attachment 117522
--> https://bugs.freedesktop.org/attachment.cgi?id=117522&action=edit
journalctl output (kernel messages only) from freeze with default runpm settings

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #5 from [email protected] --- (In reply to wolf480 from comment #0)

Quoted 2 lines

On #nouveau IRC channel I've been told to try the hack-gk106m branch of this
repository: http://... , with runpm=0

I mean http://cgit.freedesktop.org/~darktama/nouveau/log/?h=hack-gk106m

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #6 from [email protected] --- Created attachment 117523
--> https://bugs.freedesktop.org/attachment.cgi?id=117523&action=edit
mmiotrace of successful nouveau initialization

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #7 from [email protected] --- Created attachment 117524
--> https://bugs.freedesktop.org/attachment.cgi?id=117524&action=edit
dmesg log from successful nouveau initialization

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #8 from [email protected] --- Created attachment 117525
--> https://bugs.freedesktop.org/attachment.cgi?id=117525&action=edit
lspci output

from successful nouveau initialization, dunno if that matters

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #9 from [email protected] --- Created attachment 117526
--> https://bugs.freedesktop.org/attachment.cgi?id=117526&action=edit
mmiotrace of nouveau loading with HUB_INIT timeout

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #10 from [email protected] --- Created attachment 117527
--> https://bugs.freedesktop.org/attachment.cgi?id=117527&action=edit
dmesg log from nouveau loading with HUB_INIT timeout

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #11 from [email protected] --- Created attachment 117528
--> https://bugs.freedesktop.org/attachment.cgi?id=117528&action=edit
mmiotrace of nouveau loading with grctx timeout

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#14 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #12 from [email protected] --- Created attachment 117529
--> https://bugs.freedesktop.org/attachment.cgi?id=117529&action=edit
dmesg log from nouveau loading with grctx timeout

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#15 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #13 from [email protected] --- I also did an mmiotrace of the proprietary nvidia driver being loaded when running nvidia-smi. Even compressed it doesn't fit in a bugzilla attachment, so I uploaded it here:
https://www.dropbox.com/s/14mchinykvfqrg9/nvidia-trace.txt.xz?dl=1

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#16 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #14 from [email protected] --- Created attachment 117531
--> https://bugs.freedesktop.org/attachment.cgi?id=117531&action=edit
dmesg log from nvidia-smi with proprietary driver

the corresponding mmiotrace (over 3MiB compressed) is here:
https://www.dropbox.com/s/14mchinykvfqrg9/nvidia-trace.txt.xz?dl=1

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#17 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #15 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Please try (a) kernel v4.3-rc7, and (b) kernel v4.3-rc7 booted with nouveau.config=War00C800_0=1

The former has an updated pgob protocol, the latter enables an additional workaround necessary for some laptops. If it works, we can whitelist your specific subdevice, so please provide the output from

lspci -vnn -d 10de::300

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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#18 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

--- Comment #16 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Update from OP on IRC: War00C800_0=1 makes it work

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104M [GeForce GTX 870M] [10de:1199] (rev a1) (prog-if 00 [VGA controller])

    Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:1106]
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#19 lore raw

[Bug 91557] [NVE4] freezes: HUB_INIT timed out

In reply to a message not in the archive

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

Martin Peres <[email protected]> changed:

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

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #17 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/207.

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

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau