From patchwork Fri Jan 30 18:57:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 5752421 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9D394BF440 for ; Fri, 30 Jan 2015 18:57:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E498920109 for ; Fri, 30 Jan 2015 18:57:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2A2CD20034 for ; Fri, 30 Jan 2015 18:57:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EDEA72047; Fri, 30 Jan 2015 10:57:11 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yh0-f44.google.com (mail-yh0-f44.google.com [209.85.213.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BE8672047 for ; Fri, 30 Jan 2015 10:57:10 -0800 (PST) Received: by mail-yh0-f44.google.com with SMTP id i57so11666605yha.3 for ; Fri, 30 Jan 2015 10:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7TjuGaKMPdKFE6OecKBv+LldBwpAH4lhc/E5gE08PHE=; b=eMlyQOv3CAFF6cTqW2wLiiCRSXWlnLxXPLbZhyWJnSgnA2/vdk4MnbTqT4LulaI/b3 UNGEnwAVi8L6G2vdNe8CFDfc4xtOd07C7y/gXFnVjCJCOlKk1ObMCxfpvIBo1vK0eKbz z3a6dILQRLNIr+WgtcFOLBnoxIw/x/K6ZzIuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7TjuGaKMPdKFE6OecKBv+LldBwpAH4lhc/E5gE08PHE=; b=YkomM5+3l8MWNkBn37wviTD7BTW/Z1tFTuSvPk0B9Gu4xSO5SuVx2GXuFFyh+Lbq4z JXg+4O2H35yqMLFgWSV4kLFMFQPPvkkIZHGC7LnvUxMHwbzoiGXg1jHUUvb/Kby7Ooys KOAYyUan24JLabO4jL8FovU7bJou8A+bVCVCo77pMD/+Kt1hpWT3VJ4GwJehmSp3lvkl dA/z0NIiIXpbRnp+9V4neXECinukEMl2sTIE4+5iTOTUcF4BsxdcWM5R6R1hHwY5YhvB 3TrZt0NiL/BnFexcObQTvZwsHZUZ/byu/9J0B5wINv5R1uYs2gzAZ+onybHSkWy2jwRp cWFg== X-Gm-Message-State: ALoCoQk/z6EEYjIH8SjxeSRaRKEQK4INnsvflQp7773p+wUiG/S9MYCSfXgMmELt07vjJNVbR8Er X-Received: by 10.236.18.194 with SMTP id l42mr3804266yhl.172.1422644229435; Fri, 30 Jan 2015 10:57:09 -0800 (PST) Received: from billyjoel.roam.corp.google.com (cpe-173-095-180-236.nc.res.rr.com. [173.95.180.236]) by mx.google.com with ESMTPSA id t28sm5626063yhg.27.2015.01.30.10.57.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 10:57:08 -0800 (PST) From: Sean Paul To: kusmabite@gmail.com, thierry.reding@gmail.com Subject: [PATCH v3] drm/tegra: Use 64-bit offset for tegra_gem_mmap Date: Fri, 30 Jan 2015 13:57:01 -0500 Message-Id: <1422644221-24432-1-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <20150130094935.GB16744@ulmo> References: <20150130094935.GB16744@ulmo> Cc: marcheu@chromium.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 64-bit targets, tegra_gem_mmap doesn't return the offset to userspace. As such, subsequent calls to mmap(2) fail. Alter the args to use 64-bit offset to fix this. Signed-off-by: Sean Paul --- include/uapi/drm/tegra_drm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/drm/tegra_drm.h b/include/uapi/drm/tegra_drm.h index c15d781..5391780 100644 --- a/include/uapi/drm/tegra_drm.h +++ b/include/uapi/drm/tegra_drm.h @@ -36,7 +36,8 @@ struct drm_tegra_gem_create { struct drm_tegra_gem_mmap { __u32 handle; - __u32 offset; + __u32 pad; + __u64 offset; }; struct drm_tegra_syncpt_read {