Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-16 Thread Alex Deucher
On Mon, Jul 16, 2018 at 11:25 AM, Takashi Iwai wrote: > On Mon, 16 Jul 2018 17:10:43 +0200, > Harry Wentland wrote: >> >> >> >> On 2018-07-15 10:36 AM, Alex Deucher wrote: >> > On Sat, Jul 14, 2018 at 12:31 PM, Takashi Iwai wrote: >> >> On Sat, 14 Jul 2018 14:03:26 +0200, >> >> jimqu wrote: >> >>

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 17:10:43 +0200, Harry Wentland wrote: > > > > On 2018-07-15 10:36 AM, Alex Deucher wrote: > > On Sat, Jul 14, 2018 at 12:31 PM, Takashi Iwai wrote: > >> On Sat, 14 Jul 2018 14:03:26 +0200, > >> jimqu wrote: > >>> > >>> > >>> > >>> 在 2018/7/13 23:07, Takashi Iwai 写道: > O

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-16 Thread Harry Wentland
On 2018-07-15 10:36 AM, Alex Deucher wrote: > On Sat, Jul 14, 2018 at 12:31 PM, Takashi Iwai wrote: >> On Sat, 14 Jul 2018 14:03:26 +0200, >> jimqu wrote: >>> >>> >>> >>> 在 2018/7/13 23:07, Takashi Iwai 写道: On Wed, 11 Jul 2018 13:12:01 +0200, Takashi Iwai wrote: > And the forced ru

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-15 Thread Alex Deucher
On Sat, Jul 14, 2018 at 12:31 PM, Takashi Iwai wrote: > On Sat, 14 Jul 2018 14:03:26 +0200, > jimqu wrote: >> >> >> >> 在 2018/7/13 23:07, Takashi Iwai 写道: >> > On Wed, 11 Jul 2018 13:12:01 +0200, >> > Takashi Iwai wrote: >> >> And the forced runtime PM is still an issue, and this would need the >>

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-14 Thread Takashi Iwai
On Sat, 14 Jul 2018 14:03:26 +0200, jimqu wrote: > > > > 在 2018/7/13 23:07, Takashi Iwai 写道: > > On Wed, 11 Jul 2018 13:12:01 +0200, > > Takashi Iwai wrote: > >> And the forced runtime PM is still an issue, and this would need the > >> other notification mechanism than the HD-audio unsolicited e

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-14 Thread jimqu
在 2018/7/13 23:07, Takashi Iwai 写道: On Wed, 11 Jul 2018 13:12:01 +0200, Takashi Iwai wrote: And the forced runtime PM is still an issue, and this would need the other notification mechanism than the HD-audio unsolicited event as AMD HDMI controller doesn't honor the HD-audio WAKEEN bit. Since

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-13 Thread Takashi Iwai
On Wed, 11 Jul 2018 13:12:01 +0200, Takashi Iwai wrote: > > And the forced runtime PM is still an issue, and this would need the > other notification mechanism than the HD-audio unsolicited event as > AMD HDMI controller doesn't honor the HD-audio WAKEEN bit. Since we had a nice "hack week" in th

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread Takashi Iwai
On Wed, 11 Jul 2018 12:21:03 +0200, jimqu wrote: > > > > On 2018年07月11日 17:53, Takashi Iwai wrote: > > On Wed, 11 Jul 2018 11:26:11 +0200, > > jimqu wrote: > >> > >> > >> On 2018年07月11日 17:04, Takashi Iwai wrote: > >>> On Wed, 11 Jul 2018 10:41:38 +0200, > >>> jimqu wrote: > > On 2018年

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread jimqu
On 2018年07月11日 17:53, Takashi Iwai wrote: On Wed, 11 Jul 2018 11:26:11 +0200, jimqu wrote: On 2018年07月11日 17:04, Takashi Iwai wrote: On Wed, 11 Jul 2018 10:41:38 +0200, jimqu wrote: On 2018年07月11日 15:19, Takashi Iwai wrote: On Tue, 10 Jul 2018 13:21:00 +0200, Takashi Iwai wrote: revert

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread Takashi Iwai
On Wed, 11 Jul 2018 11:26:11 +0200, jimqu wrote: > > > > On 2018年07月11日 17:04, Takashi Iwai wrote: > > On Wed, 11 Jul 2018 10:41:38 +0200, > > jimqu wrote: > >> > >> > >> On 2018年07月11日 15:19, Takashi Iwai wrote: > >>> On Tue, 10 Jul 2018 13:21:00 +0200, > >>> Takashi Iwai wrote: > > revert

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread jimqu
On 2018年07月11日 17:04, Takashi Iwai wrote: On Wed, 11 Jul 2018 10:41:38 +0200, jimqu wrote: On 2018年07月11日 15:19, Takashi Iwai wrote: On Tue, 10 Jul 2018 13:21:00 +0200, Takashi Iwai wrote: revert the fix of amdgpu suspend issue, audio issue also can be observed. Did you check the behavior

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread Takashi Iwai
On Wed, 11 Jul 2018 10:41:38 +0200, jimqu wrote: > > > > On 2018年07月11日 15:19, Takashi Iwai wrote: > > On Tue, 10 Jul 2018 13:21:00 +0200, > > Takashi Iwai wrote: > >>> revert the fix of amdgpu suspend issue, audio issue also can be observed. > >> Did you check the behavior with the single AMD G

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread jimqu
On 2018年07月11日 15:19, Takashi Iwai wrote: On Tue, 10 Jul 2018 13:21:00 +0200, Takashi Iwai wrote: revert the fix of amdgpu suspend issue, audio issue also can be observed. Did you check the behavior with the single AMD GPU hardware? If confirmed, we can forget about vga_switcheroo. ... and t

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-11 Thread Takashi Iwai
On Tue, 10 Jul 2018 13:21:00 +0200, Takashi Iwai wrote: > > > revert the fix of amdgpu suspend issue, audio issue also can be observed. > > Did you check the behavior with the single AMD GPU hardware? > If confirmed, we can forget about vga_switcheroo. ... and taking a look back at the recent ch

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread Takashi Iwai
On Tue, 10 Jul 2018 13:11:20 +0200, jimqu wrote: > > > > On 2018年07月10日 17:50, Takashi Iwai wrote: > > On Tue, 10 Jul 2018 11:13:27 +0200, > > jimqu wrote: > >> > >> > >> On 2018年07月10日 16:01, Takashi Iwai wrote: > >>> On Tue, 10 Jul 2018 09:44:42 +0200, > >>> Qu, Jim wrote: > Hi Takashi, >

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread jimqu
d-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Deucher, Alexander 主题: Re: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On Mon, 09 Jul 2018 18:05:09 +0200, Qu, Jim wrote: Hi Takashi, Not intel, but it is AMD APU+ AMD G

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread Takashi Iwai
bility awfully > > worse. > > > Sorry, I justed used outlook client. > > thanks, > > > > Takashi > > > >> Thanks > >> JimQu > >> > >> > >> 发件人: Takashi Iwai > >>

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread jimqu
eedesktop.org; Qu, Jim ; dri-de...@lists.freedesktop.org; Deucher, Alexander 主题: Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On Mon, 09 Jul 2018 17:56:43 +0200, Daniel Vetter wrote: On Mon, Jul 09, 2018 at 05:04:22PM +0200, Takashi Iwai wrote: On M

Re: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread Takashi Iwai
hanks, Takashi > > Thanks > JimQu > > > 发件人: Takashi Iwai > 发送时间: 2018年7月10日 1:09 > 收件人: Qu, Jim > 抄送: Daniel Vetter; Alex Deucher; alsa-de...@alsa-project.org; > amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.

答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread Qu, Jim
sa-de...@alsa-project.org; amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Deucher, Alexander 主题: 答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id Hi Takashi, I am not expert in audio driver, so I just update some test r

答复: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-10 Thread Qu, Jim
发送时间: 2018年7月10日 1:09 收件人: Qu, Jim 抄送: Daniel Vetter; Alex Deucher; alsa-de...@alsa-project.org; amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; Deucher, Alexander 主题: Re: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On Mo

Re: 答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Takashi Iwai
.freedesktop.org; Qu, Jim ; > dri-de...@lists.freedesktop.org; Deucher, Alexander > > 主题: Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according > to bound gpu client id > > On Mon, 09 Jul 2018 17:56:43 +0200, > Daniel Vetter wrote: > > > > On M

答复: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Qu, Jim
sa-de...@alsa-project.org; amd-gfx@lists.freedesktop.org; Qu, Jim ; dri-de...@lists.freedesktop.org; Deucher, Alexander 主题: Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On Mon, 09 Jul 2018 17:56:43 +0200, Daniel Vetter wrote: > > On Mon, J

Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Takashi Iwai
On Mon, 09 Jul 2018 17:56:43 +0200, Daniel Vetter wrote: > > On Mon, Jul 09, 2018 at 05:04:22PM +0200, Takashi Iwai wrote: > > On Mon, 09 Jul 2018 15:58:51 +0200, > > Alex Deucher wrote: > > > > > > On Mon, Jul 9, 2018 at 6:16 AM, Qu, Jim wrote: > > > > Hi Lukas, > > > > > > > > Thanks to your e

Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Daniel Vetter
On Mon, Jul 09, 2018 at 05:04:22PM +0200, Takashi Iwai wrote: > On Mon, 09 Jul 2018 15:58:51 +0200, > Alex Deucher wrote: > > > > On Mon, Jul 9, 2018 at 6:16 AM, Qu, Jim wrote: > > > Hi Lukas, > > > > > > Thanks to your explanation, and see comments in line. > > > > > > > > > Do you need to runti

Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Takashi Iwai
On Mon, 09 Jul 2018 16:02:48 +0200, Alex Deucher wrote: > > On Mon, Jul 9, 2018 at 6:16 AM, Qu, Jim wrote: > > Hi Lukas, > > > > Thanks to your explanation, and see comments in line. > > > > > > Do you need to runtime resume the HDA controller even if user space isn't > > streaming audio? Why, a

Re: [alsa-devel] 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Takashi Iwai
On Mon, 09 Jul 2018 15:58:51 +0200, Alex Deucher wrote: > > On Mon, Jul 9, 2018 at 6:16 AM, Qu, Jim wrote: > > Hi Lukas, > > > > Thanks to your explanation, and see comments in line. > > > > > > Do you need to runtime resume the HDA controller even if user space isn't > > streaming audio? Why, a

Re: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Alex Deucher
On Mon, Jul 9, 2018 at 6:16 AM, Qu, Jim wrote: > Hi Lukas, > > Thanks to your explanation, and see comments in line. > > > Do you need to runtime resume the HDA controller even if user space isn't > streaming audio? Why, and in which situation exactly? > > Jim: OEM system uses pactl to queiry aud

Re: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Alex Deucher
On Mon, Jul 9, 2018 at 6:16 AM, Qu, Jim wrote: > Hi Lukas, > > Thanks to your explanation, and see comments in line. > > > Do you need to runtime resume the HDA controller even if user space isn't > streaming audio? Why, and in which situation exactly? > > Jim: OEM system uses pactl to queiry aud

答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Qu, Jim
Hi Lukas, Thanks to your explanation, and see comments in line. Do you need to runtime resume the HDA controller even if user space isn't streaming audio? Why, and in which situation exactly? Jim: OEM system uses pactl to queiry audio card and audio output sink, since the audio has power dow

答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-07-09 Thread Qu, Jim
Hi Lukas, Our OEM report the issue also can be observed with v4.17rc7 of test platform, and I also backported these 7 patches to v4.15, have confirmed the issue. Now, I found the audio device will auto suspend even if the gpu is active, and if I plug in a HDMI device it also do not resume back.

Re: 答复: 答复: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Zhang, Jerry (Junwei)
JimQu 发件人: Zhang, Jerry 发送时间: 2018年6月29日 16:54 收件人: Qu, Jim; Alex Deucher 抄送: Deucher, Alexander; amd-gfx list 主题: Re: 答复: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On 06/29/2018 04:06 PM, Qu, Jim wrote: I mean if the VGA_OT

答复: 答复: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Qu, Jim
时间: 2018年6月29日 16:54 收件人: Qu, Jim; Alex Deucher 抄送: Deucher, Alexander; amd-gfx list 主题: Re: 答复: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On 06/29/2018 04:06 PM, Qu, Jim wrote: > I mean if the VGA_OTHER is only for headless, and there is no audio on

答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Qu, Jim
Hi Lukas, Thanks to your response, please see comments in line. Thanks JimQu 发件人: Lukas Wunner 发送时间: 2018年6月29日 16:06 收件人: Qu, Jim 抄送: alsa-de...@alsa-project.org; dri-de...@lists.freedesktop.org; Deucher, Alexander; amd-gfx@lists.freedesktop.org 主题: Re

Re: 答复: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Zhang, Jerry (Junwei)
Thanks JimQu 发件人: amd-gfx 代表 Zhang, Jerry (Junwei) 发送时间: 2018年6月29日 15:40:14 收件人: Qu, Jim; Alex Deucher 抄送: Deucher, Alexander; amd-gfx list 主题: Re: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On 06/29/2018 01:59 PM

答复: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Qu, Jim
. Thanks JimQu 发件人: amd-gfx 代表 Zhang, Jerry (Junwei) 发送时间: 2018年6月29日 15:40:14 收件人: Qu, Jim; Alex Deucher 抄送: Deucher, Alexander; amd-gfx list 主题: Re: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id On 06/29/2018 01:59 PM

Re: 答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Zhang, Jerry (Junwei)
On 06/29/2018 01:59 PM, Qu, Jim wrote: If the GFX is headless, the audio codec should be disabled on PCIE bus. the the HDA driver will never probe the audio. right? After checking the HDA a little, looks HDA could also handle many other audio devices. In this case, HDA may probe other audio d

答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-29 Thread Qu, Jim
HI, Any comments for the patch? Thanks JimQu 发件人: Alex Deucher 发送时间: 2018年6月28日 20:43 收件人: Qu, Jim; alsa-de...@alsa-project.org; Maling list - DRI developers 抄送: amd-gfx list; Deucher, Alexander 主题: Re: [PATCH] vgaswitchroo: set audio client id according

答复: [PATCH] vgaswitchroo: set audio client id according to bound gpu client id

2018-06-28 Thread Qu, Jim
If the GFX is headless, the audio codec should be disabled on PCIE bus. the the HDA driver will never probe the audio. right? Thanks JimQu 发件人: Alex Deucher 发送时间: 2018年6月29日 12:01 收件人: Zhang, Jerry 抄送: Qu, Jim; amd-gfx list; Deucher, Alexander 主题: Re: [P