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

Issue 2805503003: ClientNativePixmapFactoryDmabuf uses ioctl, instead of drmIoctl. (Closed)

Created:
3 years, 8 months ago by dshwang
Modified:
3 years, 8 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ClientNativePixmapFactoryDmabuf uses ioctl, instead of drmIoctl. DMA_BUF_SYNC ioctl is not drmIoctl, because it uses dma-buf fd, instead of drm device fd. In addition, remove LOCAL_ prefix to fix build failure >= kernel 4.6 Actually, ChromeOS doesn't need this local DMA_BUF_SYNC definition as all verion of kernel for cros has dma-buf.h header. https://chromium-review.googlesource.com/c/459544/ However, there is not any way to distinguish real ChromeOS build and current_os="chromeos" build, so remain the local definition to ChromeOS as well. BUG=584248 R=reveman@chromium.org Review-Url: https://codereview.chromium.org/2805503003 Cr-Commit-Position: refs/heads/master@{#465425} Committed: https://chromium.googlesource.com/chromium/src/+/27bab2297187099229a1e4304d8feb866c8da55a

Patch Set 1 #

Total comments: 3

Patch Set 2 : use HANDLE_EINTR #

Total comments: 6

Patch Set 3 : remove dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -28 lines) Patch
M ui/gfx/linux/client_native_pixmap_dmabuf.cc View 1 2 2 chunks +21 lines, -28 lines 0 comments Download

Messages

Total messages: 40 (15 generated)
dshwang
reveman, could you review this follow-up CL of https://codereview.chromium.org/2774583002/ danakj, could you review as owner?
3 years, 8 months ago (2017-04-06 00:55:11 UTC) #4
marcheu
https://codereview.chromium.org/2805503003/diff/1/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/1/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode51 ui/gfx/linux/client_native_pixmap_dmabuf.cc:51: ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync_start); ioctl returns an error value, you ...
3 years, 8 months ago (2017-04-06 00:56:11 UTC) #6
dshwang
https://codereview.chromium.org/2805503003/diff/1/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/1/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode21 ui/gfx/linux/client_native_pixmap_dmabuf.cc:21: #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) I want to ...
3 years, 8 months ago (2017-04-06 00:56:32 UTC) #7
dshwang
https://codereview.chromium.org/2805503003/diff/1/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/1/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode51 ui/gfx/linux/client_native_pixmap_dmabuf.cc:51: ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync_start); On 2017/04/06 00:56:11, marcheu wrote: > ...
3 years, 8 months ago (2017-04-06 01:19:25 UTC) #10
gurchetansingh
https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode22 ui/gfx/linux/client_native_pixmap_dmabuf.cc:22: #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) Can we just ...
3 years, 8 months ago (2017-04-06 01:39:09 UTC) #12
spang
https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode22 ui/gfx/linux/client_native_pixmap_dmabuf.cc:22: #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) On 2017/04/06 01:39:09, ...
3 years, 8 months ago (2017-04-06 02:17:46 UTC) #14
gurchetansingh
On 2017/04/06 02:17:46, spang wrote: > https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc > File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): > > https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode22 > ...
3 years, 8 months ago (2017-04-06 03:18:34 UTC) #15
spang
On 2017/04/06 03:18:34, gurchetansingh wrote: > On 2017/04/06 02:17:46, spang wrote: > > > https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc ...
3 years, 8 months ago (2017-04-06 05:11:35 UTC) #18
gurchetansingh
On 2017/04/06 05:11:35, spang wrote: > On 2017/04/06 03:18:34, gurchetansingh wrote: > > On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 15:22:53 UTC) #19
dshwang
spang, marcheu, could you review again? I think I resolved your comments. If I miss, ...
3 years, 8 months ago (2017-04-06 16:39:59 UTC) #20
marcheu
https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode63 ui/gfx/linux/client_native_pixmap_dmabuf.cc:63: HANDLE_EINTR(ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync_end)); HANDLE_EINTR can still return an error ...
3 years, 8 months ago (2017-04-06 22:47:11 UTC) #21
gurchetansingh
https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode63 ui/gfx/linux/client_native_pixmap_dmabuf.cc:63: HANDLE_EINTR(ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync_end)); On 2017/04/06 22:47:10, marcheu wrote: > ...
3 years, 8 months ago (2017-04-06 22:52:02 UTC) #22
dshwang
could you review again? thx! https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc File ui/gfx/linux/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc#newcode63 ui/gfx/linux/client_native_pixmap_dmabuf.cc:63: HANDLE_EINTR(ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync_end)); On ...
3 years, 8 months ago (2017-04-07 01:32:20 UTC) #23
dshwang
all, could you review again? danakj, could you review as owner?
3 years, 8 months ago (2017-04-12 21:13:11 UTC) #24
danakj
On 2017/04/12 21:13:11, dshwang wrote: > all, could you review again? > > danakj, could ...
3 years, 8 months ago (2017-04-18 15:43:14 UTC) #25
spang1
lgtm Can you make a CL to turn the logging back on? I agree with ...
3 years, 8 months ago (2017-04-18 15:48:42 UTC) #27
danakj
rs LGTM
3 years, 8 months ago (2017-04-18 15:51:47 UTC) #28
dshwang
On 2017/04/18 15:48:42, spang1 wrote: > lgtm > > Can you make a CL to ...
3 years, 8 months ago (2017-04-18 16:44:40 UTC) #29
spang1
On 2017/04/18 16:44:40, dshwang wrote: > On 2017/04/18 15:48:42, spang1 wrote: > > lgtm > ...
3 years, 8 months ago (2017-04-18 16:55:05 UTC) #30
gurchetansingh
On 2017/04/18 16:44:40, dshwang wrote: > On 2017/04/18 15:48:42, spang1 wrote: > > lgtm > ...
3 years, 8 months ago (2017-04-18 17:17:18 UTC) #31
dshwang
On 2017/04/18 16:55:05, spang1 wrote: > On 2017/04/18 16:44:40, dshwang wrote: > > On 2017/04/18 ...
3 years, 8 months ago (2017-04-18 22:16:45 UTC) #32
marcheu
On 2017/04/07 01:32:20, dshwang wrote: > could you review again? thx! > > https://codereview.chromium.org/2805503003/diff/20001/ui/gfx/linux/client_native_pixmap_dmabuf.cc > ...
3 years, 8 months ago (2017-04-18 22:40:47 UTC) #33
dshwang
On 2017/04/18 22:40:47, marcheu wrote: > On 2017/04/07 01:32:20, dshwang wrote: > > could you ...
3 years, 8 months ago (2017-04-18 22:47:49 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805503003/40001
3 years, 8 months ago (2017-04-18 22:49:14 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 23:45:10 UTC) #40
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/27bab2297187099229a1e4304d8f...

Powered by Google App Engine
This is Rietveld 408576698