[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-08-08 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #4 from Sebastien Fievet  ---
(In reply to Jani Nikula from comment #3)
I reverted the patch and double checked. The workaround is enough for me.
What I do is :
1. echo OFF > /sys/kernel/debug/vgaswitcheroo/switch at init time with a rc
script. Hence I always start on the IGD with the DIS OFF : 
  cat /sys/kernel/debug/vgaswitcheroo/switch
  0:DIS: :Off::02:00.0
  1:DIS-Audio: :Off::02:00.1
  2:IGD:+:Pwr::00:02.0

2. to switch from IGD to DIS I do :
  for cmd in "ON MIGD DDIS"; do
echo $cmd > /sys/kernel/debug/vgaswitcheroo/switch
  done
The screen flickers a bit during the OFF -> ON -> MIGD transition
  cat /sys/kernel/debug/vgaswitcheroo/switch
  0:DIS: :Pwr::02:00.0
  1:DIS-Audio: :Pwr::02:00.1
  2:IGD:+:Pwr::00:02.0

3.I logout/login to X. To switch back to IGD I do :
  for cmd in "ON DIGD"; do
echo $cmd > /sys/kernel/debug/vgaswitcheroo/switch
  done
The screen doesn't flicker.

=> I can cycle through IGD and DIS at will.

When testing your patch I was starting with both IGD and DIS ON. So initial
conditions were different :-(. Then :
1. echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch worked, while without
your patch it didn't.
2. logout/login to X
  echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch worked.
3. logout/login to X
  echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch screwed up the display.

So I think I have been abused by the favourable initial conditions I used when
testing your patch. Let me know if you need anything else.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-08-08 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #3 from Jani Nikula  ---
Sebastien, to confirm, you need "drm/i915: do not disable backlight on
vgaswitcheroo switch off" to be able to switch from IGD to DIS? So having that
is an improvement? And without that, the workarounds won't help?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-08-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #3 from Jani Nikula jani.nik...@intel.com ---
Sebastien, to confirm, you need drm/i915: do not disable backlight on
vgaswitcheroo switch off to be able to switch from IGD to DIS? So having that
is an improvement? And without that, the workarounds won't help?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-08-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #4 from Sebastien Fievet sebastien.fie...@free.fr ---
(In reply to Jani Nikula from comment #3)
I reverted the patch and double checked. The workaround is enough for me.
What I do is :
1. echo OFF  /sys/kernel/debug/vgaswitcheroo/switch at init time with a rc
script. Hence I always start on the IGD with the DIS OFF : 
  cat /sys/kernel/debug/vgaswitcheroo/switch
  0:DIS: :Off::02:00.0
  1:DIS-Audio: :Off::02:00.1
  2:IGD:+:Pwr::00:02.0

2. to switch from IGD to DIS I do :
  for cmd in ON MIGD DDIS; do
echo $cmd  /sys/kernel/debug/vgaswitcheroo/switch
  done
The screen flickers a bit during the OFF - ON - MIGD transition
  cat /sys/kernel/debug/vgaswitcheroo/switch
  0:DIS: :Pwr::02:00.0
  1:DIS-Audio: :Pwr::02:00.1
  2:IGD:+:Pwr::00:02.0

3.I logout/login to X. To switch back to IGD I do :
  for cmd in ON DIGD; do
echo $cmd  /sys/kernel/debug/vgaswitcheroo/switch
  done
The screen doesn't flicker.

= I can cycle through IGD and DIS at will.

When testing your patch I was starting with both IGD and DIS ON. So initial
conditions were different :-(. Then :
1. echo DDIS  /sys/kernel/debug/vgaswitcheroo/switch worked, while without
your patch it didn't.
2. logout/login to X
  echo DIGD  /sys/kernel/debug/vgaswitcheroo/switch worked.
3. logout/login to X
  echo DDIS  /sys/kernel/debug/vgaswitcheroo/switch screwed up the display.

So I think I have been abused by the favourable initial conditions I used when
testing your patch. Let me know if you need anything else.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-08-05 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #2 from Sebastien Fievet  ---
After a *lot* of googling effort, I managed to narrow down and find a
workaround to this bug.
- First, my mistake was to have an xorg.conf.d directory defining the video
drivers. 
  Letting X auto detect the driver was the necessary first step.

- Second I applied the "drm/i915: do not disable backlight on vgaswitcheroo
switch off" patch referenced in
https://bugs.freedesktop.org/show_bug.cgi?id=59785
  It made switching from IGD to discrete functional, but switching away from
IGD with discrete OFF was still screwing up the display.

- Finally, I found
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1077675, which was
reporting the exact same bug as I was experiencing.
  Same hardware, same issue. Same workaround : echoing MIGD to
/sys/kernel/debug/vgaswitcheroo/switch restores display when discrete is
  switched back ON

- I am now on 3.11.0-rc4 + drm/i915 patch and everything works fine (with the
workaround)

Conclusion :
  1. DPM is not involved at all.
  2. Switcheroo doesn't fully support Acer 3820TG hybrid (muxed) laptop out of
the box, but workaround exists.

If anyone wants to investigate further, I'll be glad to provide any relevant
information.
Thanks,
Seb.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-08-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #2 from Sebastien Fievet sebastien.fie...@free.fr ---
After a *lot* of googling effort, I managed to narrow down and find a
workaround to this bug.
- First, my mistake was to have an xorg.conf.d directory defining the video
drivers. 
  Letting X auto detect the driver was the necessary first step.

- Second I applied the drm/i915: do not disable backlight on vgaswitcheroo
switch off patch referenced in
https://bugs.freedesktop.org/show_bug.cgi?id=59785
  It made switching from IGD to discrete functional, but switching away from
IGD with discrete OFF was still screwing up the display.

- Finally, I found
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1077675, which was
reporting the exact same bug as I was experiencing.
  Same hardware, same issue. Same workaround : echoing MIGD to
/sys/kernel/debug/vgaswitcheroo/switch restores display when discrete is
  switched back ON

- I am now on 3.11.0-rc4 + drm/i915 patch and everything works fine (with the
workaround)

Conclusion :
  1. DPM is not involved at all.
  2. Switcheroo doesn't fully support Acer 3820TG hybrid (muxed) laptop out of
the box, but workaround exists.

If anyone wants to investigate further, I'll be glad to provide any relevant
information.
Thanks,
Seb.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-07-22 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #1 from Sebastien Fievet  ---
I did proofread my report, but missed a obvious mistake :

  cat /sys/kernel/debug/vgaswitcheroo/switch 
  0:IGD:+:Pwr::00:02.0
  1:DIS: :Pwr::02:00.0
  2:DIS-Audio: :Pwr::02:00.1

  echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
  cat /sys/kernel/debug/vgaswitcheroo/switch 
  0:IGD:+:Pwr::00:02.0
  1:DIS: :Off::02:00.0
  2:DIS-Audio: :Off::02:00.1

all apologies.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon

2013-07-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60606

--- Comment #1 from Sebastien Fievet sebastien.fie...@free.fr ---
I did proofread my report, but missed a obvious mistake :

  cat /sys/kernel/debug/vgaswitcheroo/switch 
  0:IGD:+:Pwr::00:02.0
  1:DIS: :Pwr::02:00.0
  2:DIS-Audio: :Pwr::02:00.1

  echo OFF  /sys/kernel/debug/vgaswitcheroo/switch
  cat /sys/kernel/debug/vgaswitcheroo/switch 
  0:IGD:+:Pwr::00:02.0
  1:DIS: :Off::02:00.0
  2:DIS-Audio: :Off::02:00.1

all apologies.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel