[Bug 117131] vga_switcheroo does not switch IGP -> DIS ( IGP == i915 , DIS == radeon )

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Tue Apr 26 16:55:59 UTC 2016


https://bugzilla.kernel.org/show_bug.cgi?id=117131

--- Comment #20 from Jason Vas Dias <jason.vas.dias at gmail.com> ---
When I look at linux 4.5.0 boot dmesg log messages like :

[    3.115380] vga_switcheroo: enabled
[    3.115463] ATPX version 1, functions 0x00000033
[    3.115541] [drm] DMAR active, disabling use of stolen memory


I think 'you lie, Linux' !

vga_switcheroo can never be enabled on this platform because 
it has no MUX , and the logs above show the quality of the 
ACPI ATPX support.

I think this is the core linux relevant issue here - plus, I think it
should in the case where only one card has control of the actual
laptop display:

[    3.115580] device: 'i2c-8': device_add
[    3.115587] bus: 'i2c': add device i2c-8
[    3.115598] PM: Adding info for i2c:i2c-8
[    3.115607] i2c i2c-8: adapter [i915 gmbus ssc] registered
[    3.115706] device: 'i2c-9': device_add
[    3.115710] bus: 'i2c': add device i2c-9
[    3.115720] PM: Adding info for i2c:i2c-9
[    3.115724] i2c i2c-9: adapter [i915 gmbus vga] registered
[    3.115730] device: 'i2c-10': device_add
[    3.115734] bus: 'i2c': add device i2c-10
[    3.115742] PM: Adding info for i2c:i2c-10
[    3.115746] i2c i2c-10: adapter [i915 gmbus panel] registered
[    3.115751] device: 'i2c-11': device_add
[    3.115755] bus: 'i2c': add device i2c-11
[    3.115762] PM: Adding info for i2c:i2c-11
[    3.115767] i2c i2c-11: adapter [i915 gmbus dpc] registered
[    3.115772] device: 'i2c-12': device_add
[    3.115776] bus: 'i2c': add device i2c-12
[    3.115784] PM: Adding info for i2c:i2c-12
[    3.115787] i2c i2c-12: adapter [i915 gmbus dpb] registered
[    3.115792] device: 'i2c-13': device_add
[    3.115796] bus: 'i2c': add device i2c-13
[    3.115804] PM: Adding info for i2c:i2c-13
[    3.115807] i2c i2c-13: adapter [i915 gmbus dpd] registered
[    3.115843] vgaarb: device changed decodes:
PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[    3.115848] vgaarb: device changed decodes:
PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
[    3.116170] device: 'card1-VGA-1': device_add
[    3.116188] PM: Adding info for No Bus:card1-VGA-1
[    3.116212] device: 'card1-eDP-1': device_add
[    3.116231] PM: Adding info for No Bus:card1-eDP-1
[    3.116251] device: 'i2c-14': device_add
[    3.116257] bus: 'i2c': add device i2c-14
[    3.116265] PM: Adding info for i2c:i2c-14
[    3.116269] i2c i2c-14: adapter [DPDDC-A] registered
[    3.116961] i2c i2c-14: master_xfer[0] W, addr=0x50, len=1
[    3.116962] i2c i2c-14: master_xfer[1] R, addr=0x50, len=1
[    3.118007] i2c i2c-14: master_xfer[0] W, addr=0x50, len=1
[    3.118009] i2c i2c-14: master_xfer[1] R, addr=0x50, len=128
[    3.137993] device: 'card1-DP-1': device_add
[    3.138011] PM: Adding info for No Bus:card1-DP-1
[    3.138023] device: 'i2c-15': device_add
[    3.138028] bus: 'i2c': add device i2c-15
[    3.138037] PM: Adding info for i2c:i2c-15
[    3.138042] i2c i2c-15: adapter [DPDDC-B] registered
[    3.138062] device: 'card1-HDMI-A-1': device_add
[    3.138076] PM: Adding info for No Bus:card1-HDMI-A-1
[    3.138091] device: 'card1-HDMI-A-2': device_add
[    3.138104] PM: Adding info for No Bus:card1-HDMI-A-2
[    3.138124] device: 'card1-DP-2': device_add
[    3.138142] PM: Adding info for No Bus:card1-DP-2
[    3.138154] device: 'i2c-16': device_add
[    3.138162] bus: 'i2c': add device i2c-16
[    3.138171] PM: Adding info for i2c:i2c-16
[    3.138176] i2c i2c-16: adapter [DPDDC-D] registered
[    3.138203] device: 'card1-HDMI-A-3': device_add
[    3.138216] PM: Adding info for No Bus:card1-HDMI-A-3
[    3.161200] device: 'intel_backlight': device_add
[    3.161224] PM: Adding info for No Bus:intel_backlight
[    3.161286] bus: 'acpi': add driver video
[    3.161319] bus: 'acpi': driver_probe_device: matched device LNXVIDEO:00
with driver video
[    3.161322] bus: 'acpi': really_probe: probing driver video with device
LNXVIDEO:00
[    3.161327] video LNXVIDEO:00: no default pinctrl state
[    3.161333] devices_kset: Moving LNXVIDEO:00 to end of list
[    3.161349] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    3.161394] ACPI: Video Device [PEGP] (multi-head: yes  rom: no  post: no)
[    3.161559] device: 'input4': device_add
[    3.161597] PM: Adding info for No Bus:input4
[    3.161615] input: Video Bus as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4d/LNXVIDEO:00/input/input4
[    3.161625] driver: 'video': driver_bound: bound to device 'LNXVIDEO:00'
[    3.161627] bus: 'acpi': really_probe: bound device LNXVIDEO:00 to driver
video
[    3.161631] bus: 'acpi': driver_probe_device: matched device LNXVIDEO:01
with driver video
[    3.161633] bus: 'acpi': really_probe: probing driver video with device
LNXVIDEO:01
[    3.161636] video LNXVIDEO:01: no default pinctrl state
[    3.161640] devices_kset: Moving LNXVIDEO:01 to end of list
[    3.161710] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    3.161923] device: 'input5': device_add
[    3.161959] PM: Adding info for No Bus:input5
[    3.161973] input: Video Bus as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input5
[    3.161983] driver: 'video': driver_bound: bound to device 'LNXVIDEO:01'
[    3.161985] bus: 'acpi': really_probe: bound device LNXVIDEO:01 to driver
video
[    3.162001] i915 0000:00:02.0: adding component (ops 0xffffffff81efb930)
[    3.162004] [drm] Initialized i915 1.6.0 20151218 for 0000:00:02.0 on minor
1
[    3.162008] driver: 'i915': driver_bound: bound to device '0000:00:02.0'
[    3.162012] bus: 'pci': really_probe: bound device 0000:00:02.0 to driver
i915
[    3.162045] bus: 'pci': add driver qxl
[    3.162064] bus: 'pci': add driver bochs-drm
[    3.162086] device: 'lightnvm': device_add


something in the kernel should see that only one device has the actual
laptop display connected and cause an error for operations that cannot
be performed like vga_switcheroo or putting the radeon device into
graphics console mode.

My primary question is : How do I refer to this device where the actual laptop
LCD is connected in xorg.conf ? 

PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
[    3.116170] device: 'card1-VGA-1': device_add
[    3.116188] PM: Adding info for No Bus:card1-VGA-1
[    3.116212] device: 'card1-eDP-1': device_add
[    3.116231] PM: Adding info for No Bus:card1-eDP-1
[    3.116251] device: 'i2c-14': device_add



Where in xorg.conf / on the X-server command line can the fact that I want
driver X to control output Y be specified ? 

  Do I have to use a config like :

Section "Device"
  Identifier "Intel"
  Driver "intel"
  Option "Monitor-eDP-1" "eDP" 
  Option "Monitor-DisplayPort-0" "eDP"
EndSection


What are the precise values of X and Y in my case ? 
Guessing:  X:"intel" Y: "eDP-1" / "EDP1" /  "DP-1" / "DP1" / "VGA-1" / "VGA1" ?

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


More information about the dri-devel mailing list