From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbdFBIi0 (ORCPT ); Fri, 2 Jun 2017 04:38:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20506 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbdFBIiX (ORCPT ); Fri, 2 Jun 2017 04:38:23 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6D03E7F3F8 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=kraxel@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6D03E7F3F8 Message-ID: <1496392692.16895.1.camel@redhat.com> Subject: Re: [PATCH v6 4/6] vfio: Define vfio based vgpu's dma-buf operations From: Gerd Hoffmann To: Kirti Wankhede , Alex Williamson , "Chen, Xiaoguang" Cc: "chris@chris-wilson.co.uk" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "zhenyuw@linux.intel.com" , "Lv, Zhiyuan" , "intel-gvt-dev@lists.freedesktop.org" , "Wang, Zhi A" , "Tian, Kevin" Date: Fri, 02 Jun 2017 10:38:12 +0200 In-Reply-To: References: <1495874332-2851-1-git-send-email-xiaoguang.chen@intel.com> <1495874332-2851-5-git-send-email-xiaoguang.chen@intel.com> <1496042420.21582.3.camel@redhat.com> <93758f79-8076-9644-a8a7-6e2ebfd91fee@nvidia.com> <20170601103853.5ead4d39@w520.home> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 02 Jun 2017 08:38:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v528cVk0006297 > struct vfio_vgpu_surface_info { >         __u64 start; >         __u32 width; >         __u32 height; >         __u32 stride; >         __u32 size; >         __u32 x_pos; >         __u32 y_pos; >         __u32 padding; >         /* Only used when VFIO_VGPU_SURFACE_DMABUF_* flags set */ >         __u64 drm_format_mod; >         __u32 drm_format; Why for dmabufs only? Shouldn't the region specify the format too? Even in case you are using a fixed one (say DRM_FORMAT_XRGB8888) you can explicitly say so in drm_format (and set drm_format_mod to zero). cheers, Gerd