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

Issue 913273006: ozone: choose a card useful for display rather than by default (Closed)

Created:
5 years, 10 months ago by zachr
Modified:
5 years, 10 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

ozone: choose a card useful for display rather than by default Due to the introduction of VGEM, /dev/dri/card0 is not necessarily capable of display. This patch adds a procedure that opens each card in order starting from card0 and returns an open fd of the first card usable for display. Also, the defaults are taken out of the ozone_platforms and dri_wrapper will use the new procedure when no default card path is given. Usability for the purposes of display is determined by success of the DRM_IOCTL_MODE_GETRESOURCES ioctl. TEST=run chromiumos freon in qemu BUG= R=dnicoara@chromium.org Committed: https://crrev.com/d555b733bcb6b6a1ce551d15f3c642e7c91a6295 Cr-Commit-Position: refs/heads/master@{#316632}

Patch Set 1 #

Total comments: 4

Patch Set 2 : count crtcs #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -6 lines) Patch
M ui/ozone/platform/dri/dri_util.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri_util.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
zachr
5 years, 10 months ago (2015-02-13 00:51:07 UTC) #1
dnicoara
Overall I think the approach is fine. Would you mind sync-ing up with ToT. There's ...
5 years, 10 months ago (2015-02-13 02:38:26 UTC) #3
marcheu
https://codereview.chromium.org/913273006/diff/1/ui/ozone/platform/dri/dri_util.cc File ui/ozone/platform/dri/dri_util.cc (right): https://codereview.chromium.org/913273006/diff/1/ui/ozone/platform/dri/dri_util.cc#newcode155 ui/ozone/platform/dri/dri_util.cc:155: int ret = drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res); I'm going to ...
5 years, 10 months ago (2015-02-13 04:34:42 UTC) #4
Zach Reizner
PTAL https://codereview.chromium.org/913273006/diff/1/ui/ozone/platform/dri/dri_util.cc File ui/ozone/platform/dri/dri_util.cc (right): https://codereview.chromium.org/913273006/diff/1/ui/ozone/platform/dri/dri_util.cc#newcode155 ui/ozone/platform/dri/dri_util.cc:155: int ret = drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res); On 2015/02/13 ...
5 years, 10 months ago (2015-02-13 18:45:15 UTC) #6
dnicoara
You've forgot to rebase.
5 years, 10 months ago (2015-02-13 19:53:49 UTC) #7
marcheu
lgtm
5 years, 10 months ago (2015-02-13 21:57:32 UTC) #8
Zach Reizner
On 2015/02/13 21:57:32, marcheu wrote: > lgtm I think I still need a reply from ...
5 years, 10 months ago (2015-02-17 17:46:02 UTC) #9
dnicoara
On 2015/02/17 17:46:02, Zach Reizner wrote: > On 2015/02/13 21:57:32, marcheu wrote: > > lgtm ...
5 years, 10 months ago (2015-02-17 19:20:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913273006/40001
5 years, 10 months ago (2015-02-17 19:23:18 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-17 19:53:09 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 19:53:32 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d555b733bcb6b6a1ce551d15f3c642e7c91a6295
Cr-Commit-Position: refs/heads/master@{#316632}

Powered by Google App Engine
This is Rietveld 408576698