Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Issue 1151533002: drm: Make DrmDisplayHostManager handle VGEM fd by itself. (Closed)

Created:
5 years, 7 months ago by dshwang
Modified:
5 years, 6 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

drm: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -4 lines) Patch
M ui/ozone/platform/drm/host/drm_display_host_manager.h View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/host/drm_display_host_manager.cc View 1 2 3 6 chunks +33 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
dshwang
after discussion in https://codereview.chromium.org/1124063003/, I realize that it might be better for GPU process to ...
5 years, 7 months ago (2015-05-20 14:29:38 UTC) #2
reveman
Does it really make sense to use DrmDeviceHandle for vgem? What's the benefit of DrmDeviceHandle ...
5 years, 7 months ago (2015-05-26 16:38:31 UTC) #3
dshwang
On 2015/05/26 16:38:31, reveman wrote: > Does it really make sense to use DrmDeviceHandle for ...
5 years, 7 months ago (2015-05-26 17:06:12 UTC) #4
dshwang
On 2015/05/26 17:06:12, dshwang wrote: > On 2015/05/26 16:38:31, reveman wrote: > > Does it ...
5 years, 7 months ago (2015-05-26 18:00:29 UTC) #5
vignatti (out of this project)
https://codereview.chromium.org/1151533002/diff/20001/ui/ozone/platform/drm/host/drm_display_host_manager.cc File ui/ozone/platform/drm/host/drm_display_host_manager.cc (right): https://codereview.chromium.org/1151533002/diff/20001/ui/ozone/platform/drm/host/drm_display_host_manager.cc#newcode36 ui/ozone/platform/drm/host/drm_display_host_manager.cc:36: const char kVgemSysCardPath[] = "/sys/bus/platform/devices/vgem/drm/"; note that this only ...
5 years, 7 months ago (2015-05-26 18:28:34 UTC) #7
spang
On 2015/05/26 18:28:34, vignatti wrote: > https://codereview.chromium.org/1151533002/diff/20001/ui/ozone/platform/drm/host/drm_display_host_manager.cc > File ui/ozone/platform/drm/host/drm_display_host_manager.cc (right): > > https://codereview.chromium.org/1151533002/diff/20001/ui/ozone/platform/drm/host/drm_display_host_manager.cc#newcode36 > ...
5 years, 7 months ago (2015-05-26 19:31:45 UTC) #8
vignatti (out of this project)
On 2015/05/26 19:31:45, spang wrote: > I think we'd welcome patches that make things work ...
5 years, 7 months ago (2015-05-26 19:35:12 UTC) #9
dshwang
spang, could you review again? It removes the error log in both chrome://gpu and /var/log/ui/ui.LATEST ...
5 years, 6 months ago (2015-06-03 10:07:35 UTC) #10
spang
https://codereview.chromium.org/1151533002/diff/40001/ui/ozone/platform/drm/host/drm_display_host_manager.cc File ui/ozone/platform/drm/host/drm_display_host_manager.cc (right): https://codereview.chromium.org/1151533002/diff/40001/ui/ozone/platform/drm/host/drm_display_host_manager.cc#newcode84 ui/ozone/platform/drm/host/drm_display_host_manager.cc:84: base::FilePath::FromUTF8Unsafe(kVgemSysCardPath), false, I don't think you need the FromUTF8Unsafe(). ...
5 years, 6 months ago (2015-06-03 19:03:22 UTC) #11
dshwang
Thank you for nice review. I addressed. Could you review again? https://codereview.chromium.org/1151533002/diff/40001/ui/ozone/platform/drm/host/drm_display_host_manager.cc File ui/ozone/platform/drm/host/drm_display_host_manager.cc (right): ...
5 years, 6 months ago (2015-06-04 08:32:07 UTC) #12
spang
lgtm
5 years, 6 months ago (2015-06-04 11:18:24 UTC) #13
dshwang
On 2015/06/04 11:18:24, spang wrote: > lgtm thx for reviewing!
5 years, 6 months ago (2015-06-04 12:35:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151533002/60001
5 years, 6 months ago (2015-06-04 12:35:52 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-04 12:39:14 UTC) #17
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 12:40:16 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/da2c3cd1997a44a54c4166835d62bb8b1cd30f11
Cr-Commit-Position: refs/heads/master@{#332822}

Powered by Google App Engine
This is Rietveld 408576698