Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3811415yba; Tue, 9 Apr 2019 05:28:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCMKMk6KUEcrnepo153nqXwyD9u7lBTQIeOpqkjDV38q5EJgJh4bNDCD3wB7up6fHwEaiZ X-Received: by 2002:a17:902:6bc5:: with SMTP id m5mr36782466plt.180.1554812892991; Tue, 09 Apr 2019 05:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554812892; cv=none; d=google.com; s=arc-20160816; b=lCQvTYyT6uGNitgL0SvKBFvd/mKM2VSQXT9YjjwDzVYwjOmUxt672ru3J/cGY0svU4 jJl1DSi01gSAbH0YWRNIbrpvpEB7mO02WFzEGIYru3o5UEQ1Od7DLAwQ6t194OTY6i0e rg/u0zsgs5DDltL0Q1mzJ+77fkcna7Gdr76Ux9zpVKZpqP6Me5UrZn49rz7OFHmvdNr3 LFGLTwlXUe7SgV4NKGYIKnhVkQOqOsNcTGFDvir/bUu6zQ0DnODc/AsDjhl+Xyd0Hu+p ArCZcgoflYVOuZiYMqaP05sapF1gjCPm6kEsXJ+tVT+M1pEXpgI1YsWrAHRp2ukJebw6 boBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=k1+ajLdv6Y7n42n2cCsGhhXZ0/nRGX4k9m++oxflkW4=; b=Oar9nqdUXjTcOBUGwFOu+AGvDhCh37c3U+T6npKNUqpxWmxyUT39j4XmKWApq+bRbk DIKkPewSlh5f0kBJ2Awc2GbOsB2nmV5H67cTI1gRPAOPhIh33p+IzWpcHC6XaeoaDWNk 5jqEEwYGpMENopcVuiCG7ghlhuTyJFLzbR2PHA7PFU6ZI39BSvolw0doakpGAu7VG5kN oJiaS3v1NWuSPlXjI39DrzbPYOkoJgT6IOlqEMNIRIF3PjEFMcIuVV1vfZcL/e7gX5hs aLcHOe3ggJWY++fMdfemdBOjiy7AsCP80Fg1jseZgWnYotuNV/ZwKh0G5Dr5Xubz6qjh ScAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si28724533pgl.264.2019.04.09.05.27.56; Tue, 09 Apr 2019 05:28:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfDIM1P (ORCPT + 99 others); Tue, 9 Apr 2019 08:27:15 -0400 Received: from mga18.intel.com ([134.134.136.126]:45470 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfDIM1P (ORCPT ); Tue, 9 Apr 2019 08:27:15 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2019 05:27:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,329,1549958400"; d="scan'208";a="147757555" Received: from dcondura-mobl.ger.corp.intel.com (HELO intel.com) ([10.252.20.22]) by FMSMGA003.fm.intel.com with ESMTP; 09 Apr 2019 05:27:10 -0700 Date: Tue, 9 Apr 2019 13:27:10 +0100 From: Eric Engestrom To: Ayan Halder Cc: Liviu Dudau , Brian Starkey , "malidp@foss.arm.com" , "maarten.lankhorst@linux.intel.com" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "airlied@linux.ie" , "daniel@ffwll.ch" , "robdclark@gmail.com" , "jani.nikula@linux.intel.com" , "joonas.lahtinen@linux.intel.com" , "rodrigo.vivi@intel.com" , "intel-gfx@lists.freedesktop.org" , "linux-arm-msm@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "freedreno@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , nd Subject: Re: [PATCH libdrm] headers: Sync with drm-next Message-ID: <20190409122710.k2bh25xg43lrqzvq@intel.com> References: <20190408205422.dj7z4dl36nauwlk7@intel.com> <1554809706-15389-1-git-send-email-ayan.halder@arm.com> <20190409115913.hvyjxlda4wtzm75t@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190409115913.hvyjxlda4wtzm75t@intel.com> Organization: Intel Corporation (UK) Ltd. - Co. Reg. 1134945 - Pipers Way, Swindon SN3 1RJ User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, 2019-04-09 12:59:13 +0100, Eric Engestrom wrote: > On Tuesday, 2019-04-09 11:35:14 +0000, Ayan Halder wrote: > > Generated using make headers_install from the drm-next > > tree - git://anongit.freedesktop.org/drm/drm > > branch - drm-next > > commit - 14d2bd53a47a7e1cb3e03d00a6b952734cf90f3f > > > > The changes were as follows :- > > > > core: (drm.h, drm_fourcc.h, drm_mode.h) > > - Added 'struct drm_syncobj_transfer', 'struct drm_syncobj_timeline_wait' and 'struct drm_syncobj_timeline_array' > > - Added various DRM_IOCTL_SYNCOBJ_ ioctls > > - Added some new RGB and YUV formats > > - Added 'DRM_FORMAT_MOD_VENDOR_ALLWINNER' > > - Added 'SAMSUNG' and Arm's 'AFBC' and 'ALLWINNER' format modifiers > > - Added 'struct drm_mode_rect' > > > > i915: > > - Added struct 'struct i915_user_extension' and various 'struct drm_i915_gem_context_' > > - Added different modes of per-process Graphics Translation Table > > > > msm: > > - Added various get or set GEM buffer info flags > > - Added some MSM_SUBMIT_BO_ macros > > - Modified 'struct drm_msm_gem_info' > > > > Signed-off-by: Ayan Kumar halder > > This looks sane, and applies cleanly :) > Acked-by: Eric Engestrom Actually, revoking that, as this patch breaks the build; see below. > > > --- > > include/drm/drm.h | 36 +++++++ > > include/drm/drm_fourcc.h | 136 +++++++++++++++++++++++++++ > > include/drm/drm_mode.h | 23 ++++- > > include/drm/i915_drm.h | 237 ++++++++++++++++++++++++++++++++++++++++------- > > include/drm/msm_drm.h | 25 +++-- > > 5 files changed, 415 insertions(+), 42 deletions(-) > > [snip] > > diff --git a/include/drm/msm_drm.h b/include/drm/msm_drm.h > > index c06d0a5..91a16b3 100644 > > --- a/include/drm/msm_drm.h > > +++ b/include/drm/msm_drm.h > > @@ -105,14 +105,24 @@ struct drm_msm_gem_new { > > __u32 handle; /* out */ > > }; > > > > -#define MSM_INFO_IOVA 0x01 > > - > > -#define MSM_INFO_FLAGS (MSM_INFO_IOVA) > > +/* Get or set GEM buffer info. The requested value can be passed > > + * directly in 'value', or for data larger than 64b 'value' is a > > + * pointer to userspace buffer, with 'len' specifying the number of > > + * bytes copied into that buffer. For info returned by pointer, > > + * calling the GEM_INFO ioctl with null 'value' will return the > > + * required buffer size in 'len' > > + */ > > +#define MSM_INFO_GET_OFFSET 0x00 /* get mmap() offset, returned by value */ > > +#define MSM_INFO_GET_IOVA 0x01 /* get iova, returned by value */ > > +#define MSM_INFO_SET_NAME 0x02 /* set the debug name (by pointer) */ > > +#define MSM_INFO_GET_NAME 0x03 /* get debug name, returned by pointer */ > > > > struct drm_msm_gem_info { > > __u32 handle; /* in */ > > - __u32 flags; /* in - combination of MSM_INFO_* flags */ > > - __u64 offset; /* out, mmap() offset or iova */ > > + __u32 info; /* in - one of MSM_INFO_* */ > > + __u64 value; /* in or out */ > > + __u32 len; /* in or out */ > > + __u32 pad; freedreno/msm/msm_bo.c needs to be updated to reflect those changes. > > }; > > > > #define MSM_PREP_READ 0x01 > > @@ -188,8 +198,11 @@ struct drm_msm_gem_submit_cmd { > > */ > > #define MSM_SUBMIT_BO_READ 0x0001 > > #define MSM_SUBMIT_BO_WRITE 0x0002 > > +#define MSM_SUBMIT_BO_DUMP 0x0004 > > > > -#define MSM_SUBMIT_BO_FLAGS (MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_WRITE) > > +#define MSM_SUBMIT_BO_FLAGS (MSM_SUBMIT_BO_READ | \ > > + MSM_SUBMIT_BO_WRITE | \ > > + MSM_SUBMIT_BO_DUMP) > > > > struct drm_msm_gem_submit_bo { > > __u32 flags; /* in, mask of MSM_SUBMIT_BO_x */ > > -- > > 2.7.4 > >