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

Issue 1874643003: Do not lose secondary gpus and make sure to have an active gpu on multiple gpu configurations (Closed)

Created:
4 years, 8 months ago by Julien Isorce Samsung
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not lose secondary gpus and make sure to have an active gpu on multiple gpu configurations Currently on chrome://gpu the user will always see GPU0: VENDOR = 0x10de, DEVICE= 0x0de1 First problem is that "*ACTIVE*" marker is missing. Second problem is that on multiple gpu configuration it will not show GPUi gpus and no *ACTIVE* as well (is active gpu is not the primary gpu) When merging GpuInfo received from the GPU process the secondary_gpus vector is always cleared. Indeed the GPU process always sends an empty secondary_gpus vector. This CL also adds identification of active GPU that uses the "nouveau" open source graphic driver. This CL also add a 4 new browser tests IdentifyActiveGpuPageN that check the active gpu is properly listed on chrome://gpu page as well as the secondary gpus. R=kbr@chromium.org, piman@chromium.org, zmo@chromium.org BUG=547025 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/74cae740e2e5bb6ee994888200f3b70af8431d88 Cr-Commit-Position: refs/heads/master@{#389546}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add kGpuSecondaryVendorIDs and kGpuSecondaryDeviceIDs and more tests #

Patch Set 3 : Add utility function gpu::ParseSecondaryGpuDevicesFromCommandLine (and rebase) #

Total comments: 10

Patch Set 4 : Added use_testing_switches param to ParseSecondaryGpuDevicesFromCommandLine and added IdentifyActiv… #

Total comments: 4

Patch Set 5 : Add unit test and remove use_testing_switches boolean (TODO: add kGpuActiveDeviceId) #

Patch Set 6 : Add kGpuActiveDeviceID #

Patch Set 7 : Add more unit tests #

Patch Set 8 : Enable new browser tests on osx because they should work thanks to the new kGpuActiveDeviceID switc… #

Total comments: 2

Patch Set 9 : Add kGpuActiveVendorID and fix clang build errors #

Patch Set 10 : Last Patch Set was missing small local build fix #

Patch Set 11 : Rebase #

Patch Set 12 : Added back line removed by mistake and just rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -2 lines) Patch
M content/test/gpu/page_sets/gpu_process_tests.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +44 lines, -0 lines 0 comments Download
M gpu/config/software_rendering_list_json.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
Julien Isorce gmail
Note that solving the TODO I added: https://codereview.chromium.org/1874643003/patch/1/10001 would solve everything. Also it would avoid ...
4 years, 8 months ago (2016-04-08 16:50:23 UTC) #2
Ken Russell (switch to Gerrit)
Thanks for putting this together. It looks pretty good overall but Mo should review it ...
4 years, 8 months ago (2016-04-14 01:54:59 UTC) #3
Ken Russell (switch to Gerrit)
On 2016/04/08 16:50:23, capOM wrote: > Note that solving the TODO I added: > https://codereview.chromium.org/1874643003/patch/1/10001 ...
4 years, 8 months ago (2016-04-14 02:06:21 UTC) #4
Julien Isorce Samsung
>Thanks for putting this together. It looks pretty good >overall but Mo should review it ...
4 years, 8 months ago (2016-04-14 18:02:47 UTC) #5
Julien Isorce Samsung
On 2016/04/14 18:02:47, j.isorce wrote: > >Thanks for putting this together. It looks pretty good ...
4 years, 8 months ago (2016-04-18 17:01:46 UTC) #6
Julien Isorce Samsung
> On 2016/04/14 18:02:47, j.isorce wrote: > Thanks for putting this together. It looks pretty ...
4 years, 8 months ago (2016-04-19 16:13:11 UTC) #7
Zhenyao Mo
Mostly looks good. https://codereview.chromium.org/1874643003/diff/40001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1874643003/diff/40001/content/gpu/gpu_main.cc#newcode445 content/gpu/gpu_main.cc:445: gpu_info.gpu.active = true; Why assume the ...
4 years, 8 months ago (2016-04-19 21:05:28 UTC) #8
Julien Isorce Samsung
Thx for the review, here are my replies. https://codereview.chromium.org/1874643003/diff/40001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1874643003/diff/40001/content/gpu/gpu_main.cc#newcode445 content/gpu/gpu_main.cc:445: gpu_info.gpu.active ...
4 years, 8 months ago (2016-04-20 17:19:21 UTC) #9
Julien Isorce Samsung
In patch set 4 I addressed all remarks but still missing the c++ unit test ...
4 years, 8 months ago (2016-04-20 17:54:13 UTC) #10
Zhenyao Mo
Mostly look good. Please address the "active" bit and add the unit tests. https://codereview.chromium.org/1874643003/diff/60001/content/gpu/gpu_main.cc File ...
4 years, 8 months ago (2016-04-21 17:03:38 UTC) #11
Julien Isorce Samsung
https://codereview.chromium.org/1874643003/diff/60001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1874643003/diff/60001/content/gpu/gpu_main.cc#newcode447 content/gpu/gpu_main.cc:447: gpu_info.gpu.active = true; On 2016/04/21 17:03:37, Zhenyao Mo wrote: ...
4 years, 8 months ago (2016-04-21 23:27:08 UTC) #12
Julien Isorce Samsung
On 2016/04/21 17:03:38, Zhenyao Mo wrote: > Mostly look good. Please address the "active" bit ...
4 years, 8 months ago (2016-04-21 23:29:22 UTC) #13
Julien Isorce Samsung
On 2016/04/21 23:29:22, j.isorce wrote: > On 2016/04/21 17:03:38, Zhenyao Mo wrote: > > Mostly ...
4 years, 8 months ago (2016-04-22 14:26:18 UTC) #14
Zhenyao Mo
https://codereview.chromium.org/1874643003/diff/140001/content/browser/gpu/gpu_data_manager_impl_private.cc File content/browser/gpu/gpu_data_manager_impl_private.cc (right): https://codereview.chromium.org/1874643003/diff/140001/content/browser/gpu/gpu_data_manager_impl_private.cc#newcode776 content/browser/gpu/gpu_data_manager_impl_private.cc:776: base::StringPrintf("0x%04x", maybe_active_gpu_device.device_id)); You should use vendor_id + devcie_id to ...
4 years, 8 months ago (2016-04-22 17:17:53 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874643003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874643003/140001
4 years, 8 months ago (2016-04-22 17:18:17 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/55496)
4 years, 8 months ago (2016-04-22 17:33:10 UTC) #20
Julien Isorce Samsung
Done in Patch Set 9. Thx https://codereview.chromium.org/1874643003/diff/140001/content/browser/gpu/gpu_data_manager_impl_private.cc File content/browser/gpu/gpu_data_manager_impl_private.cc (right): https://codereview.chromium.org/1874643003/diff/140001/content/browser/gpu/gpu_data_manager_impl_private.cc#newcode776 content/browser/gpu/gpu_data_manager_impl_private.cc:776: base::StringPrintf("0x%04x", maybe_active_gpu_device.device_id)); On ...
4 years, 8 months ago (2016-04-22 20:57:33 UTC) #21
Zhenyao Mo
LGTM if bots are green
4 years, 8 months ago (2016-04-22 21:20:10 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874643003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874643003/180001
4 years, 8 months ago (2016-04-22 22:27:30 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-23 00:41:37 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874643003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874643003/200001
4 years, 8 months ago (2016-04-25 08:49:41 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 10:19:25 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874643003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874643003/200001
4 years, 8 months ago (2016-04-25 10:30:41 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/172577)
4 years, 8 months ago (2016-04-25 10:38:01 UTC) #35
Julien Isorce Samsung
On 2016/04/25 10:38:01, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-25 10:47:07 UTC) #38
piman
lgtm
4 years, 8 months ago (2016-04-25 18:23:23 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1874643003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1874643003/200001
4 years, 8 months ago (2016-04-25 19:55:38 UTC) #41
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-25 20:01:13 UTC) #43
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/74cae740e2e5bb6ee994888200f3b70af8431d88 Cr-Commit-Position: refs/heads/master@{#389546}
4 years, 8 months ago (2016-04-25 20:03:03 UTC) #45
Julien Isorce Samsung
4 years, 8 months ago (2016-04-26 16:17:22 UTC) #46
Message was sent while issue was closed.
On 2016/04/25 20:03:03, commit-bot: I haz the power wrote:
> Patchset 11 (id:??) landed as
> https://crrev.com/74cae740e2e5bb6ee994888200f3b70af8431d88
> Cr-Commit-Position: refs/heads/master@{#389546}

Oups, "Patch Set 12" has nothing to do with this CL. (Only patch set 11 has
landed)

Powered by Google App Engine
This is Rietveld 408576698