Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2858438pxa; Mon, 17 Aug 2020 23:02:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKPa5MhojTFSzmJde7m6Xo7kQ25wfxZZ1kYIK4VxFQ7lQR1jDQpLV75r5ioqD2ITVFVU2S X-Received: by 2002:a17:906:fa0c:: with SMTP id lo12mr19487842ejb.390.1597730525135; Mon, 17 Aug 2020 23:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597730525; cv=none; d=google.com; s=arc-20160816; b=ZQpO4YosbWgSA5L8GErkxD2OnC4If8q0dJvqlsAmDKXsvtM5sqMhUA5Wba2nbMKWdu 0HV/ibpnSKJR4qng8ZKc3EuogsHAhpO5BA/gQ+veJ4M0ELEPmhayZqDXSiJBmZ+TJBzM sZ2hdRF3dtX2ta1foMGFlDmjJTG7bgn9LLqz7Bli74oq5u4xfivUeJKDmQHarmpk5+4/ 4ipnOzAX/9HtNu46v3LFh7SxNjE1nNA30GanORd39x5rnSZjUq33zWGURcohClYVx2N3 xI39vjAceDPjhI/DXH+D59KNC0KrkLbDbHOYiw7Gn/3eSkIdIDYbFVgtrfCnJigtuv3U lpJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ETkqLyVFzRYqMgbcRFKBAG7Km4x+4gDnlzbCjLqix38=; b=Hmo6sd6k6nmBZl02sdNjVI4TJ+qod+X/J+bYH9o/WZGYUUi5igUPXXS7jRu4i9dRjC ZwkhvT+PoxrmIkCUunkjUVCE/kSv+r6y+W+Ya1E+r/YPiN2KMCLcA2KlNowaFqqO9bhY srcPvlzbccaFrtbFsXhZw0N3StbDxjqC/FKAlLB47kcScCztEik4k1RGDueZaUCPUDuQ wB54/mOE95sp3E4rQyOkUsOgVrRomBay37EziEMV8cFdhIlAc/KUjXT1MBjvvtzPihM8 vhpur9+IQggnHiXAjOMl0b8ZVXHuLRkn8w1/uyBjIyuYEWv8DtfDMcFdqBzj84wVqE09 FQIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PTnj8hAp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx26si6955308ejb.560.2020.08.17.23.01.40; Mon, 17 Aug 2020 23:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PTnj8hAp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbgHRGAG (ORCPT + 99 others); Tue, 18 Aug 2020 02:00:06 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:22052 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726228AbgHRGAF (ORCPT ); Tue, 18 Aug 2020 02:00:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597730404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ETkqLyVFzRYqMgbcRFKBAG7Km4x+4gDnlzbCjLqix38=; b=PTnj8hApCY/SBCepGFQV/4I3+7K5oYdfEM0jhZiXQF2+QK8kZjHFGf5JPM5xFytyhVR+lx PRBkYtdRSS029fwWvnuJ87D8CxYQM0xNLCbCkHpet4JBedJe9Tqg0M2M4MZQXZcZwaGluE sAd/oVASHRPi2Cz7UbKD5yFiIi9nn4w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-370-8UBKwuVyNTeLOGkX_s5Ztg-1; Tue, 18 Aug 2020 01:59:58 -0400 X-MC-Unique: 8UBKwuVyNTeLOGkX_s5Ztg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5760580732F; Tue, 18 Aug 2020 05:59:55 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-195.ams2.redhat.com [10.36.112.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id C83E616597; Tue, 18 Aug 2020 05:59:50 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C0B321753B; Tue, 18 Aug 2020 07:59:49 +0200 (CEST) Date: Tue, 18 Aug 2020 07:59:49 +0200 From: Gerd Hoffmann To: David Stevens Cc: David Airlie , Daniel Vetter , Sumit Semwal , "Michael S . Tsirkin" , Jason Wang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, virtio-dev@lists.oasis-open.org Subject: Re: [PATCH v6 0/3] Support virtio cross-device resources Message-ID: <20200818055949.6si4jzuubba5dx5u@sirius.home.kraxel.org> References: <20200818013744.3327271-1-stevensd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200818013744.3327271-1-stevensd@chromium.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 10:37:41AM +0900, David Stevens wrote: > This patchset implements the current proposal for virtio cross-device > resource sharing [1]. It will be used to import virtio resources into > the virtio-video driver currently under discussion [2]. The patch > under consideration to add support in the virtio-video driver is [3]. > It uses the APIs from v3 of this series, but the changes to update it > are relatively minor. > > This patchset adds a new flavor of dma-bufs that supports querying the > underlying virtio object UUID, as well as adding support for exporting > resources from virtgpu. > > [1] https://markmail.org/thread/2ypjt5cfeu3m6lxu > [2] https://markmail.org/thread/p5d3k566srtdtute > [3] https://markmail.org/thread/j4xlqaaim266qpks > > v5 -> v6 changes: > - Fix >80 character comment Hmm, checkpatch still complains, full log below. IIRC "dim checkpatch" runs scripts/checkpatch.pl with --strict so it is a bit more picky ... The FILE_PATH_CHANGES isn't a problem given that the new file is covered by existing wildcard. take care, Gerd --------------------------------------------------------------- + dim checkpatch drm-misc-next..drm-qemu-next drm-misc ee194dc222ae virtio: add dma-buf support for exported objects -:29: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #29: new file mode 100644 -:65: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #65: FILE: include/linux/virtio_dma_buf.h:32: +struct dma_buf *virtio_dma_buf_export( -:112: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #112: FILE: drivers/virtio/virtio_dma_buf.c:19: +struct dma_buf *virtio_dma_buf_export( -:115: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #115: FILE: drivers/virtio/virtio_dma_buf.c:22: + const struct virtio_dma_buf_ops *virtio_ops = container_of( -:119: CHECK:LOGICAL_CONTINUATIONS: Logical continuations should be on the previous line #119: FILE: drivers/virtio/virtio_dma_buf.c:26: + if (!exp_info->ops + || exp_info->ops->attach != &virtio_dma_buf_attach -:120: CHECK:LOGICAL_CONTINUATIONS: Logical continuations should be on the previous line #120: FILE: drivers/virtio/virtio_dma_buf.c:27: + || exp_info->ops->attach != &virtio_dma_buf_attach + || !virtio_ops->get_uuid) { -:135: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #135: FILE: drivers/virtio/virtio_dma_buf.c:42: + const struct virtio_dma_buf_ops *ops = container_of( -:167: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #167: FILE: drivers/virtio/virtio_dma_buf.c:74: + const struct virtio_dma_buf_ops *ops = container_of( total: 0 errors, 1 warnings, 7 checks, 144 lines checked 76c9c2abbe6b virtio-gpu: add VIRTIO_GPU_F_RESOURCE_UUID feature 9c3f3edd1cc4 (HEAD -> drm-qemu-next, kraxel.org/drm-qemu-next) drm/virtio: Support virtgpu exported resources -:53: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #53: FILE: drivers/gpu/drm/virtio/virtgpu_drv.h:222: + spinlock_t resource_export_lock; -:250: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t' #250: FILE: drivers/gpu/drm/virtio/virtgpu_vq.c:1118: + uint32_t resp_type = le32_to_cpu(resp->hdr.type); -:256: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #256: FILE: drivers/gpu/drm/virtio/virtgpu_vq.c:1124: + if (resp_type == VIRTIO_GPU_RESP_OK_RESOURCE_UUID && + obj->uuid_state == UUID_INITIALIZING) { -:286: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #286: FILE: drivers/gpu/drm/virtio/virtgpu_vq.c:1154: + cmd_p = virtio_gpu_alloc_cmd_resp(vgdev, + virtio_gpu_cmd_resource_uuid_cb, &vbuf, sizeof(*cmd_p), total: 0 errors, 0 warnings, 4 checks, 250 lines checked + exit 1