From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 75985] [NVC1] HDMI audio device only visible after rescan Date: Fri, 04 Oct 2019 00:21:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1023314915==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1023314915== Content-Type: multipart/alternative; boundary="15701484852.2DC708.6322" Content-Transfer-Encoding: 7bit --15701484852.2DC708.6322 Date: Fri, 4 Oct 2019 00:21:25 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D75985 --- Comment #108 from Daniel Drake --- If codec devices are always child devices of the controller, then I also wo= nder if codec_powered could be completely removed. Seems like the PM core already ensures the children are inactive before suspending the controller: > The idle callback (a subsystem-level one, if present, or the driver one) = is > executed by the PM core whenever the device appears to be idle, which is > indicated to the PM core by two counters, the device's usage counter and = the > counter of 'active' children of the device. >=20 > * If any of these counters is decreased using a helper function provide= d by > the PM core and it turns out to be equal to zero, the other counter is > checked. If that counter also is equal to zero, the PM core executes= the > idle callback with the device as its argument. --=20 You are receiving this mail because: You are the assignee for the bug.= --15701484852.2DC708.6322 Date: Fri, 4 Oct 2019 00:21:25 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 108 on bug 75985<= /a> from Daniel Drake
If codec devices are always child devices of the controller, t=
hen I also wonder
if codec_powered could be completely removed.

Seems like the PM core already ensures the children are inactive before
suspending the controller:

> The idle callback (a subsystem-level one, if pre=
sent, or the driver one) is
> executed by the PM core whenever the device appears to be idle, which =
is
> indicated to the PM core by two counters, the device's usage counter a=
nd the
> counter of 'active' children of the device.
>=20
>   * If any of these counters is decreased using a helper function prov=
ided by
>     the PM core and it turns out to be equal to zero, the other counte=
r is
>     checked.  If that counter also is equal to zero, the PM core execu=
tes the
>     idle callback with the device as its argument.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15701484852.2DC708.6322-- --===============1023314915== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9ub3V2ZWF1 --===============1023314915==--