Descriptiondrm: Make DrmDisplayHostManager handle VGEM fd by itself.
GPU process doesn't need VGEM fd, so DrmDisplayHostManager doesn't send it to
GPU process.
This CL fixes a subtle bug which is that VGEM device is corrupted because of
invalid ioctl call to VGEM device. After this CL, following error log disappears;
[ERROR:drm_device_manager.cc(54)] Could not initialize DRM device for /dev/dri/card1
It's part of "native GpuMemoryBuffer on ChromeOS Freon" implementation.
* Design doc: https://docs.google.com/document/d/1qpLLo4mBkzHBh5cuBtBjJZAzXK2X9BgBJtpESh-mNn8
TEST=Run chromeos using amd64-generic_freon image
BUG=475633
Committed: https://crrev.com/da2c3cd1997a44a54c4166835d62bb8b1cd30f11
Cr-Commit-Position: refs/heads/master@{#332822}
Patch Set 1 #Patch Set 2 : Don't abuse DrmDeviceHandle #
Total comments: 1
Patch Set 3 : handle the case when vgem is absent #
Total comments: 6
Patch Set 4 : use ScopedFD #
Messages
Total messages: 18 (3 generated)
|