From: David Woodhouse <dwmw2@infradead.org>
To: Andreas Heider <andreas@meetr.de>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
Arun Raghavan <arun.raghavan@collabora.co.uk>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] apple-gmux: Restore switch registers on suspend/resume
Date: Sun, 29 Jul 2012 01:42:27 +0100 [thread overview]
Message-ID: <1343522547.2488.12.camel@shinybook.infradead.org> (raw)
In-Reply-To: <4FFCC7FB.1090609@meetr.de>
[-- Attachment #1: Type: text/plain, Size: 2432 bytes --]
On Wed, 2012-07-11 at 02:25 +0200, Andreas Heider wrote:
> Thanks for adding me, seeing the gmux driver progress is always great.
>
> Regarding the original patch: This is probably only useful when the gmux
> was switched in GRUB and there's already a solution for the resume
> problem in userspace
> (http://ubuntuforums.org/showpost.php?p=10695119&postcount=261). Maybe
> the same could be achieved a bit cleaner by simply using a few parts of
> the switching patch?
>
> Regarding the gmux switching patch: The patch itself should work and
> hopefully doesn't break stuff that wasn't broken before. But without
> additional fixes to i915/nouveau/etc. It won't be too useful either,
> although it should fix the resume issue.
>
> I'll look into how well it works with the current kernel on the weekend,
> but I don't want to promise too much since time is still a bit of an
> issue for me.
Using the patches from http://www.codon.org.uk/~mjg59/tmp/radeon_efi/
and http://www.codon.org.uk/~mjg59/tmp/gmux_switcheroo.diff I can almost
get this working on my MBP8,3, chainloading the kernel from grub1-efi.
I have to fix pci_map_rom() to return pdev->rom even if the resource has
the IORESOURCE_ROM_SHADOW flag (Matthew's patch still returned 0xC0000),
and I have to fix a bug in vga_switcheroo_enable() where it uses
client->id before actually setting it.
And then, if I hack head64.c to switch the mux over to IGD but leave the
Radeon powered up: ("outb(1, 0x728); outb(2, 0x710); outb(2, 0x740);")
... and on the occasions that it doesn't crash in fbcon_event_notify()
as shown at http://david.woodhou.se/vga-switcheroo-oops.txt
... it boots with a blank screen but I can log in over the network and I
*can* actually switch between displays. After switching to 'DIS' and
back to 'IGD' it does actually start working, and I seem to have both X
and fbcon working sanely on both. Although on an earlier boot I don't
think fbcon was working on the Radeon but X *did* work on both. So maybe
that's not 100% repeatable. Hard to say... I've only managed to get it
to boot twice; mostly it oopses as shown above.
If I don't hack it to switch the mux to IGD at boot time, I never manage
to get a sane picture out of the Intel device after switching to it.
It's late now, but I'll try to get a proper debug log of the working and
failing cases tomorrow.
--
dwmw2
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 6171 bytes --]
next prev parent reply other threads:[~2012-07-29 0:42 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 3:39 Arun Raghavan
2012-07-10 13:35 ` Seth Forshee
2012-07-10 16:05 ` Matthew Garrett
2012-07-10 16:35 ` Seth Forshee
2012-07-11 0:25 ` Andreas Heider
2012-07-29 0:42 ` David Woodhouse [this message]
2012-07-29 1:18 ` David Woodhouse
2012-07-29 7:46 ` Andreas Heider
2012-07-29 19:05 ` David Woodhouse
2012-07-29 19:34 ` Andreas Heider
2012-07-29 22:44 ` David Woodhouse
2012-07-30 14:05 ` Seth Forshee
2012-07-29 19:39 ` Matthew Garrett
2012-07-29 20:33 ` David Woodhouse
2012-07-29 20:52 ` David Woodhouse
2012-07-29 20:59 ` Matthew Garrett
2012-07-31 15:18 ` Seth Forshee
2012-07-31 17:07 ` Seth Forshee
2012-08-01 15:35 ` David Woodhouse
2012-08-01 15:59 ` Seth Forshee
2012-08-01 16:06 ` Andreas Heider
2012-08-01 19:41 ` David Woodhouse
2012-08-01 19:52 ` Seth Forshee
2012-08-01 19:43 ` David Woodhouse
2012-08-01 19:52 ` Matthew Garrett
2012-08-01 19:56 ` Seth Forshee
2012-08-01 19:56 ` Andreas Heider
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=1343522547.2488.12.camel@shinybook.infradead.org \
--to=dwmw2@infradead.org \
--cc=andreas@meetr.de \
--cc=arun.raghavan@collabora.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome