lkml.org 
[lkml]   [2014]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/4] drm/i915: add support for vga_switcheroo reprobe
Hi Chris,

Chris Wilson wrote:
>> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
>> index 5c64842..336a835b 100644
>> --- a/drivers/gpu/drm/i915/i915_dma.c
>> +++ b/drivers/gpu/drm/i915/i915_dma.c
>> @@ -1265,6 +1265,12 @@ static void i915_switcheroo_set_state(struct pci_dev *pdev, enum vga_switcheroo_
>> }
>> }
>>
>> +static void i915_switcheroo_reprobe(struct pci_dev *pdev)
>> +{
>> + struct drm_device *dev = pci_get_drvdata(pdev);
>> + intel_fbdev_output_poll_changed(dev);
>> +}
>
> switcheroo should be sending a hotplug notification, which should
> trigger both this kernel listener and userspace.

If I understand correctly, switcheroo will send a hotplug notification
when LVDS is connected to the i915 device, and trigger this reprobe
function(), which in a later patch calls get-edid. Right?


\
 
 \ /
  Last update: 2014-01-07 12:41    [W:0.092 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site