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

Issue 905873003: [8/8][Ozone-Dri] Pass DRM FD to GPU process on hotplug event (Closed)

Created:
5 years, 10 months ago by dnicoara
Modified:
5 years, 10 months ago
CC:
chromium-reviews, piman+watch_chromium.org, ozone-reviews_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@udl2.9-allow-ndd-to-handle-multiple-drm-devices
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Ozone-Dri] Pass DRM FD to GPU process on hotplug event Adds the ability to open a new DRM device in the GPU process as a result of a hotplug event. This allows us to drive multiple displays using multiple DRM devices. BUG=427959 Committed: https://crrev.com/4795d133c6be918f8f6a1f43cabbbb4e9a3a472e Cr-Commit-Position: refs/heads/master@{#317401}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 12

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -19 lines) Patch
M ui/ozone/common/gpu/ozone_gpu_messages.h View 2 chunks +4 lines, -2 lines 0 comments Download
M ui/ozone/platform/dri/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri_gpu_platform_support.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ui/ozone/platform/dri/dri_gpu_platform_support.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
A ui/ozone/platform/dri/drm_device_generator.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A ui/ozone/platform/dri/drm_device_generator.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/gbm_buffer.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_dri.h View 1 2 3 4 chunks +7 lines, -2 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_dri.cc View 1 2 3 4 4 chunks +45 lines, -5 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_proxy.h View 3 chunks +5 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_proxy.cc View 1 2 3 4 5 6 5 chunks +59 lines, -3 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 2 3 4 5 4 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
dnicoara
PTAL
5 years, 10 months ago (2015-02-06 22:44:15 UTC) #2
spang
https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc File ui/ozone/platform/dri/dri_gpu_platform_support.cc (right): https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc#newcode186 ui/ozone/platform/dri/dri_gpu_platform_support.cc:186: ndd_->AddGraphicsDevice(drm); Why are the open devices tracked both in ...
5 years, 10 months ago (2015-02-11 21:13:21 UTC) #3
dnicoara
https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc File ui/ozone/platform/dri/dri_gpu_platform_support.cc (right): https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc#newcode186 ui/ozone/platform/dri/dri_gpu_platform_support.cc:186: ndd_->AddGraphicsDevice(drm); On 2015/02/11 21:13:21, spang wrote: > Why are ...
5 years, 10 months ago (2015-02-11 22:21:14 UTC) #4
spang
https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc File ui/ozone/platform/dri/dri_gpu_platform_support.cc (right): https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc#newcode186 ui/ozone/platform/dri/dri_gpu_platform_support.cc:186: ndd_->AddGraphicsDevice(drm); On 2015/02/11 22:21:14, dnicoara wrote: > On 2015/02/11 ...
5 years, 10 months ago (2015-02-11 22:47:57 UTC) #5
spang
https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc File ui/ozone/platform/dri/dri_gpu_platform_support.cc (right): https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc#newcode186 ui/ozone/platform/dri/dri_gpu_platform_support.cc:186: ndd_->AddGraphicsDevice(drm); On 2015/02/11 22:21:14, dnicoara wrote: > On 2015/02/11 ...
5 years, 10 months ago (2015-02-11 22:52:54 UTC) #6
dnicoara
https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc File ui/ozone/platform/dri/dri_gpu_platform_support.cc (right): https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc#newcode186 ui/ozone/platform/dri/dri_gpu_platform_support.cc:186: ndd_->AddGraphicsDevice(drm); On 2015/02/11 22:52:54, spang wrote: > On 2015/02/11 ...
5 years, 10 months ago (2015-02-11 23:04:40 UTC) #7
spang
https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc File ui/ozone/platform/dri/dri_gpu_platform_support.cc (right): https://codereview.chromium.org/905873003/diff/20001/ui/ozone/platform/dri/dri_gpu_platform_support.cc#newcode186 ui/ozone/platform/dri/dri_gpu_platform_support.cc:186: ndd_->AddGraphicsDevice(drm); On 2015/02/11 23:04:40, dnicoara wrote: > On 2015/02/11 ...
5 years, 10 months ago (2015-02-11 23:11:56 UTC) #8
dnicoara
Rebased, mind taking a look?
5 years, 10 months ago (2015-02-12 17:25:40 UTC) #9
spang
lgtm https://codereview.chromium.org/905873003/diff/60001/ui/ozone/platform/dri/native_display_delegate_dri.cc File ui/ozone/platform/dri/native_display_delegate_dri.cc (right): https://codereview.chromium.org/905873003/diff/60001/ui/ozone/platform/dri/native_display_delegate_dri.cc#newcode221 ui/ozone/platform/dri/native_display_delegate_dri.cc:221: if (it != devices_.end()) maybe warn?
5 years, 10 months ago (2015-02-12 18:02:46 UTC) #10
dnicoara
+jl@ for security review This is the CR adding support for display link devices via ...
5 years, 10 months ago (2015-02-12 18:11:19 UTC) #13
jln (very slow on Chromium)
Sorry, this slipped through. I went through it fast (should have more time tomorrow): - ...
5 years, 10 months ago (2015-02-19 01:28:58 UTC) #14
dnicoara
To better understand the chain of events here's a breakdown: On the browser side: 1) ...
5 years, 10 months ago (2015-02-19 02:42:53 UTC) #15
jln (very slow on Chromium)
lgtm, thanks!
5 years, 10 months ago (2015-02-20 19:46:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/905873003/120001
5 years, 10 months ago (2015-02-20 20:49:53 UTC) #18
hshi1
On 2015/02/20 19:46:07, jln wrote: > lgtm, thanks! Tested with UDL+i915 on top of TOT ...
5 years, 10 months ago (2015-02-20 20:50:00 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-20 21:09:36 UTC) #20
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/4795d133c6be918f8f6a1f43cabbbb4e9a3a472e Cr-Commit-Position: refs/heads/master@{#317401}
5 years, 10 months ago (2015-02-20 21:10:24 UTC) #21
gunsch
On 2015/02/20 21:10:24, I haz the power (commit-bot) wrote: > Patchset 7 (id:??) landed as ...
5 years, 10 months ago (2015-02-20 22:39:44 UTC) #22
hshi1
On 2015/02/20 22:39:44, gunsch wrote: > On 2015/02/20 21:10:24, I haz the power (commit-bot) wrote: ...
5 years, 10 months ago (2015-02-20 22:42:53 UTC) #23
spang
On 2015/02/20 22:42:53, hshi1 wrote: > On 2015/02/20 22:39:44, gunsch wrote: > > On 2015/02/20 ...
5 years, 10 months ago (2015-02-20 22:43:50 UTC) #24
gunsch
5 years, 10 months ago (2015-02-20 23:18:39 UTC) #25
Message was sent while issue was closed.
On 2015/02/20 22:43:50, spang wrote:
> On 2015/02/20 22:42:53, hshi1 wrote:
> > On 2015/02/20 22:39:44, gunsch wrote:
> > > On 2015/02/20 21:10:24, I haz the power (commit-bot) wrote:
> > > > Patchset 7 (id:??) landed as
> > > > https://crrev.com/4795d133c6be918f8f6a1f43cabbbb4e9a3a472e
> > > > Cr-Commit-Position: refs/heads/master@{#317401}
> > > 
> > > Hey, we're seeing some failures on our Cast Linux bots from this CL:
> > 
> > re: gunsch: sorry it appears that this CL was not tested against the Cast
> Linux
> > bots in the pre-submit queue.
> > 
> > I think it suffices to replace the "class FileDescriptor" to "struct
> > FileDescriptor" in native_display_delegate_dri.h? Can you confirm if that
> fixes
> > the build?
> 
> alexst@ is compiling a fix now

Our presubmit bots are WIP and should be running on actual CLs soon (probably as
advisory for awhile). Looks like the other Linux ozone bots immediately went red
on this CL as well but just aren't blocking yet.

Powered by Google App Engine
This is Rietveld 408576698