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

Issue 1100973002: [2/4]Allow hotplugging of primary DRM device (Closed)

Created:
5 years, 8 months ago by dnicoara
Modified:
5 years, 7 months ago
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org, jcliang, Daniel Kurtz, oak-mtk_chromium.org, oak-img_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@fix-hotplug
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow hotplugging of primary DRM device Removes special initialization of the primary DRM device from the GPU process. This allows us to work around sandboxing issues on initialization on ARM devices since the DRM card devices will all be sent to the sandboxed GPU via IPCs. BUG=477792, 476728 Committed: https://crrev.com/a889b38d983fd85071dd5d5324e6d1450eaba2ed Cr-Commit-Position: refs/heads/master@{#327518}

Patch Set 1 #

Total comments: 9

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : DrmDeviceVector #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : Rebased #

Patch Set 7 : Fix rebase #

Total comments: 1

Patch Set 8 : unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -170 lines) Patch
M ui/ozone/platform/drm/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gbm_surface_factory.cc View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_device.cc View 1 2 3 4 5 2 chunks +0 lines, -30 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_device_manager.h View 1 2 3 4 2 chunks +34 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_device_manager.cc View 1 2 3 4 5 6 7 2 chunks +77 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc View 1 2 3 4 5 7 chunks +10 lines, -70 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_surface_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_device.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager_unittest.cc View 1 2 3 4 5 6 7 8 chunks +9 lines, -11 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_native_display_delegate.cc View 1 2 3 4 5 6 7 3 chunks +45 lines, -9 lines 0 comments Download
M ui/ozone/platform/drm/ozone_platform_drm.cc View 3 chunks +5 lines, -13 lines 0 comments Download
M ui/ozone/platform/drm/ozone_platform_gbm.cc View 3 chunks +4 lines, -16 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
dnicoara
5 years, 8 months ago (2015-04-22 17:47:26 UTC) #2
alexst (slow to review)
https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc File ui/ozone/platform/drm/gpu/drm_device_manager.cc (right): https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc#newcode60 ui/ozone/platform/drm/gpu/drm_device_manager.cc:60: if (!primary_device_) Document this please, so we know that ...
5 years, 8 months ago (2015-04-22 18:27:56 UTC) #3
dnicoara
https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc File ui/ozone/platform/drm/gpu/drm_device_manager.cc (right): https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc#newcode60 ui/ozone/platform/drm/gpu/drm_device_manager.cc:60: if (!primary_device_) On 2015/04/22 18:27:56, alexst wrote: > Document ...
5 years, 8 months ago (2015-04-22 18:41:30 UTC) #4
spang
https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc File ui/ozone/platform/drm/gpu/drm_device_manager.cc (right): https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc#newcode53 ui/ozone/platform/drm/gpu/drm_device_manager.cc:53: VLOG(2) << "Could not initialize DRM device for " ...
5 years, 8 months ago (2015-04-22 18:50:58 UTC) #5
dnicoara
Also added thread checking in DrmDeviceManager https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc File ui/ozone/platform/drm/gpu/drm_device_manager.cc (right): https://codereview.chromium.org/1100973002/diff/1/ui/ozone/platform/drm/gpu/drm_device_manager.cc#newcode53 ui/ozone/platform/drm/gpu/drm_device_manager.cc:53: VLOG(2) << "Could ...
5 years, 8 months ago (2015-04-22 19:10:01 UTC) #6
alexst (slow to review)
code lgtm, curious about boot time. https://codereview.chromium.org/1100973002/diff/40001/ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc File ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc (right): https://codereview.chromium.org/1100973002/diff/40001/ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc#newcode174 ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc:174: std::vector<scoped_refptr<DrmDevice>> devices = ...
5 years, 8 months ago (2015-04-23 00:01:20 UTC) #7
dnicoara
bootperf results on a test image with "--noenable_rootfs_verification": without this patch: (on 10 cycles): time ...
5 years, 8 months ago (2015-04-23 13:40:07 UTC) #8
alexst (slow to review)
okay, lgtm https://codereview.chromium.org/1100973002/diff/60001/ui/ozone/platform/drm/gpu/drm_device_manager.h File ui/ozone/platform/drm/gpu/drm_device_manager.h (right): https://codereview.chromium.org/1100973002/diff/60001/ui/ozone/platform/drm/gpu/drm_device_manager.h#newcode58 ui/ozone/platform/drm/gpu/drm_device_manager.h:58: DrmDeviceVector GetDrmDevices(); One more nit: do you ...
5 years, 8 months ago (2015-04-23 13:53:43 UTC) #9
dnicoara
https://codereview.chromium.org/1100973002/diff/60001/ui/ozone/platform/drm/gpu/drm_device_manager.h File ui/ozone/platform/drm/gpu/drm_device_manager.h (right): https://codereview.chromium.org/1100973002/diff/60001/ui/ozone/platform/drm/gpu/drm_device_manager.h#newcode58 ui/ozone/platform/drm/gpu/drm_device_manager.h:58: DrmDeviceVector GetDrmDevices(); On 2015/04/23 13:53:43, alexst wrote: > One ...
5 years, 8 months ago (2015-04-23 14:06:11 UTC) #10
spang
lgtm
5 years, 8 months ago (2015-04-27 22:18:30 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100973002/120001
5 years, 7 months ago (2015-04-28 18:08:38 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/12164)
5 years, 7 months ago (2015-04-28 18:52:59 UTC) #16
dnicoara
Realized the unittests needed updating. (Also found some mistakes in the process) Could you take ...
5 years, 7 months ago (2015-04-28 21:08:03 UTC) #17
alexst (slow to review)
still lgtm
5 years, 7 months ago (2015-04-29 17:33:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100973002/140001
5 years, 7 months ago (2015-04-29 17:34:53 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-04-29 17:40:15 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 17:41:13 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a889b38d983fd85071dd5d5324e6d1450eaba2ed
Cr-Commit-Position: refs/heads/master@{#327518}

Powered by Google App Engine
This is Rietveld 408576698