[Bug 1850238] Re: ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent kernels

2020-04-25 Thread Nickolay Ponomarev
I'm not very familiar with the release process, but judging from the
tags on the accepted version of the fix
https://github.com/torvalds/linux/commit/d944b27df121e2ee854a6c2fad13d6c6300792d4
the fix in mainline v5.6 and later: https://kernel.ubuntu.com/~kernel-
ppa/mainline/v5.6/

Ubuntu's kernels seem to have backported it to:
https://launchpad.net/ubuntu/+source/linux/5.3.0-47.39 for eoan
https://launchpad.net/ubuntu/+source/linux/5.4.0-22.26 for focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850238

Title:
  ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent
  kernels

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850238/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850238] Re: ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent kernels

2020-03-30 Thread Nickolay Ponomarev
>
https://lore.kernel.org/lkml/20200311165806.12365-1-kai.heng.f...@canonical.com/

Much appreciated, thanks!

> Can you guys test this kernel without blacklisting ucsi_ccg:
https://people.canonical.com/~khfeng/lp1850238/

I finally got to testing this on the laptop from the original bug
report.

Both symptoms - "failed to reset PPM!" on startup and and the 50-second
hang during resume - are fixed, thank you!

Resuming from sleep often fails to complete on this system (the screen
won't turn on, system not responding), but I haven't yet figured out how
to reproduce this, and it also happens without the patch (e.g.
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4-rc5/ ), so I guess
it should be tracked separately.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850238

Title:
  ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent
  kernels

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850238/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850238] Re: ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent kernels

2020-03-19 Thread Nickolay Ponomarev
As the original reporter, I feel the obligation to reply: I'm not using
the problematic laptop anymore, so if anyone else can test the proposed
version - that would be most awesome!


kaihengfeng, thanks for taking a look! I'm curious - are you in contact with / 
part of the kernel USB team? Could you link to the commit the version you 
posted was built from? Testing new kernels is rather time-consuming for me due 
to lack of experience. Understanding the proposed patch and how it can fix the 
problem would make it much more fun (especially as the last time I checked - 
December i think? - the mainline kernel had regressed further on this hardware.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850238

Title:
  ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent
  kernels

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850238/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850238] [NEW] ucsi_ccg 50 second hang while resuming from s2ram with nvidia, recent kernels

2019-10-28 Thread Nickolay Ponomarev
Public bug reported:

Short version
=
I'm experiencing a 50-second hang each time I resume from a "deep" 
(suspend-to-RAM) sleep.

It happens with the newer kernel (5.3 series; I'm currently running the
version from eoan-proposed), but not with the version from the Ubuntu
18.04.3 LTS (uname says "5.0.0-31-generic #33~18.04.1-Ubuntu SMP").

[I haven't yet tried to test the mainline builds, nor to find/confirm
the regression range, as this seems like something that will take me
another week, and I'm not sure if it would be helpful.]

I narrowed the problem down to what I believe is a broken USB Type-C
controller on the NVIDIA GPU: the ucsi_ccg driver for
/sys/devices/pci:00/:00:01.0/:01:00.3/i2c-0/0-0008 reports a
timeout for both the initial PPM_RESET command (on system startup) and
for the SET_NOTIFICATION_ENABLE command the driver runs on resume.

I guess the hang is the driver waiting for a response to
SET_NOTIFICATION_ENABLE; it appears to have been added recently in
https://github.com/torvalds/linux/commit/a94ecde41f7e51e2742e53b5f151aee662c54d39,
which could explain why I don't see the hang with 5.0.x.

Creating /etc/modprobe.d/dell.conf with a `blacklist ucsi_ccg` line (and
rebooting) makes the hang go away.


Steps to reproduce
==
(these are not the actual steps one can take to reproduce, starting from a new 
install; let me know if those will be useful)

1. Boot Ubuntu 19.10 with NVIDIA GPU drivers uninstalled and the following 
kernel parameters 
:
nouveau.modeset=0 nouveau.runpm=0   # force using integrated graphics
# (the problem can be reproduced 
using NVIDIA's proprietary driver too, but I
# guessed it's better to avoid it, 
and nouveau prints lots of errors with this GPU)
mem_sleep_default=deep  # suspend to RAM; suspend-to-idle 
has its own problems on this system

2. Run `dmesg -w` and wait a minute or two until a message like the
following is printed:

[  175.611346] ucsi_ccg 0-0008: failed to reset PPM!
[  175.611355] ucsi_ccg 0-0008: PPM init failed (-110)

(attempting to suspend before the PPM init timeout will fail to enter sleep at 
all.)
(if your system doesn't report PPM init timeout, you probably won't see the 
hang on resume either)

3. Run `sudo pm-suspend` (using the power button to suspend causes other
problems)

...wait for the laptop to go to sleep and the fans to turn off.

4. Press Enter on the built-in keyboard to resume. (Although the way we
wake up the system doesn't seem to matter.)

5. Observe a hang lasting for almost a minute before the system is
operational, with dmesg reporting:

[  299.331393] ata1.00: configured for UDMA/100


[  346.133024] ucsi_ccg 0-0008: PPM NOT RESPONDING
[  346.133039] PM: dpm_run_callback(): ucsi_ccg_resume+0x0/0x20 
[ucsi_ccg] returns -110
[  346.133042] PM: Device 0-0008 failed to resume: error -110
...
[  346.141504] Restarting tasks ... done.
[  346.340221] PM: suspend exit


System info
===

My Dell G3 3590 laptop has an NVIDIA "GeForce GTX 1660 Ti with Max-Q Design" 
GPU.
NVIDIA's "Turing" chips include USB Type-C controller on the GPU (I read future 
VR headsets are supposed to use it 
),
 and indeed I'm seeing:

# lspci -tv
-[:00]-+-00.0  Intel Corporation 8th Gen Core Processor Host Bridge/DRAM 
Registers
   +-01.0-[01]--+-00.0  NVIDIA Corporation TU116M [GeForce GTX 1660 Ti 
Mobile]
   |+-00.1  NVIDIA Corporation Device 1aeb
   |+-00.2  NVIDIA Corporation Device 1aec
   |\-00.3  NVIDIA Corporation Device 1aed
...

Where the '1aed' device is detected as "NVIDIA USB Type-C Port Policy
Controller" in Windows.

I'm not sure if it's serving any useful purpose on this laptop, and it
certainly doesn't seem to function properly:

If I enable UCSI logging on startup (root's crontab):

@reboot bash -c 'echo 1 >
/sys/kernel/debug/tracing/events/ucsi/enable'

..the steps to reproduce above result in the following 
/sys/kernel/debug/tracing/trace:
# tracer: nop
#
# entries-in-buffer/entries-written: 10/10   #P:12
#
#  _-=> irqs-off
# / _=> need-resched
#| / _---=> hardirq/softirq
#|| / _--=> preempt-depth
#||| / delay
#   TASK-PID   CPU#  TIMESTAMP  FUNCTION
#  | |   |      | |
 kworker/6:2-679   [006] 68.593915: ucsi_command: control=0001 
(PPM_RESET)
 kworker/6:1-187   [006]    151.599

[Bug 738437]

2014-12-15 Thread Nickolay Ponomarev
This should be fixed in the current nightly (Firefox 37) by bug 1104875.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/738437

Title:
  firefox "Warning: Unresponsive script" dialog fails to wrap text in
  URL path

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/738437/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 263661]

2014-02-21 Thread Nickolay Ponomarev
*** Bug 537226 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/263661

Title:
  Black Line appears next to gif and png images

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/263661/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 353318]

2012-04-02 Thread Nickolay Ponomarev
*** Bug 714361 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/353318

Title:
  Middle mouse button invokes 'invalid URL'

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/353318/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 113201]

2011-07-21 Thread Nickolay Ponomarev
*** Bug 590247 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/113201

Title:
  firefox spends lots of time hung

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/113201/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 113201]

2011-07-21 Thread Nickolay Ponomarev
*** Bug 491253 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/113201

Title:
  firefox spends lots of time hung

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/113201/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 113201]

2011-07-21 Thread Nickolay Ponomarev
*** Bug 539922 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/113201

Title:
  firefox spends lots of time hung

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/113201/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs