From: "Jörg-Volker Peetz" <jvpeetz@web.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 0/2] HD-audio HDMI regression fixes with VGA-switcheroo
Date: Fri, 08 Jun 2012 22:17:29 +0200 [thread overview]
Message-ID: <4FD25DD9.3030705@web.de> (raw)
In-Reply-To: <s5hfwa56bso.wl%tiwai@suse.de>
Takashi Iwai wrote, on 06/08/12 17:52:
> At Fri, 08 Jun 2012 17:45:17 +0200,
> Jörg-Volker Peetz wrote:
>>
>> Hello Takashi,
>>
>> Takashi Iwai wrote, on 06/08/12 15:03:
>>> At Fri, 08 Jun 2012 13:26:57 +0200,
>>> Jörg-Volker Peetz wrote:
>>>>
>>>> Takashi Iwai wrote, on 06/07/12 12:15:
>>>>> Hi,
>>>>>
>>>>> this is a series of patches to fix the regressions of HD-audio HDMI
>>>>> on D-GPUs in 3.5-rc1 due to the support of VGA-switcheroo audio clients.
>>>>>
>>>>> The first patch adds a new helper function to vga-switcheroo and the
>>>>> second just uses that instead of an open code.
>>>>>
>>>>> Dave, if the first patch is OK, I'm going to apply it though sound tree.
>>>>> Let me know if any problem is found.
>>>>>
>>>>> Joerg, could you check whether this doesn't break your setup, too?
>>>>>
>>>>>
>>>>> thanks,
>>>>>
>>>>> Takashi
>>>>
>>>> Hello Takashi,
>>>>
>>>> I applied both your patches on 3.5-rc1. With this kernel I made three tests.
>>>> 1) After booting I switched off the discrete GPU via vga_switcheroo.
>>>> Then ca. 210 times the message
>>>>
>>>> hda-intel: spurious response 0x0:0x0, last cmd=0x170503
>>>>
>>>> appears on the console and in the logs.
>>>> Starting X and using the built-in USB web-cam work, as well as sound with
>>>> mplayer2 works.
>>>>
>>>> 2) After booting I switched to the discrete GPU via
>>>>
>>>> echo -n DDIS > /sys/kernel/debugfs/vgaswitcheroo/switch
>>>>
>>>> Then I started X via startx. The desktop screen appears but the system
>>>> freezes. No reaction on keyboard or touchpad input. The computer is not
>>>> reachable via ethernet wire.
>>>
>>> Hm, these issues aren't seen on 3.5-rc1 before my patches?
>>> If so, we need to fix now.
>>>
>> No, these issues aren't seen on 3.5-rc1 without your patches. I'm able to start
>> X with the discrete GPU in use, direct rendering and the built-in USB camera work.
>
> OK, it means that the switching from the audio-ON to audio-OFF doesn't
> work. Could you try the patch below in additon?
>
Applying all your three patches on 3.5-rc1 makes the discrete GPU work on my
system: after mounting debugfs and switching to "DDIS", I can start X and direct
rendering, sound and built-in USB camera work.
By the way, writing "DDIS" to /sys/kernel/debugfs/vgaswitcheroo switches off the
integrated GPU. That's the reason for loosing the control over the screen
brightness. Switching on also the integrated GPU (writing "ON" to
/sys/kernel/debugfs/vgaswitcheroo) enables the brightness control of the screen.
Of course for the energy consumption this is awkward.
I write all this as information about the state of vga_switcheroo for David.
Many thanks to you and David for all your work.
>> Probably unrelated: in both cases I'm unable to lower the screen brightness from
>> highest value. Without your patches it appears a warning:
>>
>> ACPI Warning: _BQC returned an invalid level (20120320/video-472)
>
> Hmm, I see no relation between this and the HDMI audio part.
> It's of course possible that some non-working state gives
> side-effects...
>
>
> thanks,
>
> Takashi
>
<snip>
--
Best regards,
Jörg-Volker.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2012-06-08 20:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 10:15 [PATCH 0/2] HD-audio HDMI regression fixes with VGA-switcheroo Takashi Iwai
2012-06-07 10:15 ` [PATCH 1/2] vga_switcheroo: Add a helper function to get the client state Takashi Iwai
2012-06-08 8:42 ` Dave Airlie
2012-06-08 9:26 ` Takashi Iwai
2012-06-07 10:15 ` [PATCH 2/2] ALSA: hda - Fix uninitialized HDMI controllers with VGA-switcheroo Takashi Iwai
2012-06-08 11:26 ` [PATCH 0/2] HD-audio HDMI regression fixes " Jörg-Volker Peetz
2012-06-08 13:03 ` Takashi Iwai
2012-06-08 15:45 ` Jörg-Volker Peetz
2012-06-08 15:52 ` Takashi Iwai
2012-06-08 20:17 ` Jörg-Volker Peetz [this message]
2012-06-09 6:51 ` Takashi Iwai
2012-06-09 7:57 ` [alsa-devel] " Dave Airlie
2012-06-09 10:16 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD25DD9.3030705@web.de \
--to=jvpeetz@web.de \
--cc=alsa-devel@alsa-project.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.