Message ID | 20180322102352.2881-10-thellstrom@vmware.com |
---|---|
State | Accepted |
Commit | 37efe80ce85f76b3b30d7b4ea40550e6a5a5b71a |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp649566ljb; Thu, 22 Mar 2018 03:25:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELveb6yrhDl7p7fhQuMni5uon6Y8nyAoD7kKaBp3QnD8vnhSWUdYGRw4QLuWYF5037I1XLYl X-Received: by 2002:a17:902:2d24:: with SMTP id o33-v6mr11072016plb.143.1521714320206; Thu, 22 Mar 2018 03:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521714320; cv=none; d=google.com; s=arc-20160816; b=sZNpra1cs4A3KIc63FxMbpzd5SSaHB/EohUsOkBlPp5X8vV4VfmEDuhbz5U1shTt23 6/AJOJb5+tpGPVmQrOuRAH0i2G9IZ7i+5JRB+74USG61zukk7VHmQh2BPyBImEav0g73 r1W0GbgUd/V5Dn5LjzGmh8Vn+Pc0IosLj9mL6Iebmw6HE3hyzQtQC43gKJrNA5oyUTX0 KJT/FjpMecNy82IBZZDkmUH5jUVZwg5R5trEQdlC8u+X220VA69Rtg+Rxqxzk//E5CGV QLdbXuZU9nr+wvFZkgSojnHs18vXye4nepdcE4JUczls+2jgWnYe1Op8u1dXT/xSrpOv d2kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :spamdiagnosticmetadata:spamdiagnosticoutput:mime-version:references :in-reply-to:message-id:date:subject:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=8r/sudjEtIf/3TiUe6fln92hoPr5zIM1gMNMtcq9dp4=; b=sU5AXE3BH/6EWmYUowq2Rxrwvths6K6VAXQPTlveLOHHwIQov57G0i9rgHF0TDl9gZ Uyf605d82OnJifzuOOPwQWuPlLqWXq/g7agXZ/CrtpBaWsE1bkktroMRdJY/Z9ZL5Jb0 eVQemMMj5sjotkG1yBUnecIGy6yeOwMe8OpJKDuMcmcHvo2zUYj+RyPUh3ddvaiPEQ8C 1bkOx+eTgiC/t3MnmyoUn4nm73Cz7NmR6zF8BK2HvbNB9VD1azqgrcvzGGTnU1CD1nR2 zjBwq84KOsK8kiUP5/PN0eZ4Ejwj1qM3fnyt649Bkcrq+XfQDTxHNb7hcp67HNKpwZwt WL3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@onevmw.onmicrosoft.com header.s=selector1-vmware-com header.b=b0bZYf5a; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id r3-v6si5799928plb.666.2018.03.22.03.25.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Mar 2018 03:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@onevmw.onmicrosoft.com header.s=selector1-vmware-com header.b=b0bZYf5a; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6F406EBE6; Thu, 22 Mar 2018 10:25:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0042.outbound.protection.outlook.com [104.47.40.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id E37536EBD6 for <dri-devel@lists.freedesktop.org>; Thu, 22 Mar 2018 10:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LTX+J7VlrfYIqucGAaRrHRZN66+V0N77aJDrkImKX0g=; b=b0bZYf5aqcU+AX5Z9SW7A0FlSDSguCSwMMhVtHR0egwV/+ar+CABfvOtX4l7So1hEv0KxMUI37CLKDoQcaDcxtmnuP3DF7FIXCGfBLEjrdEqBlp9RGoNyu/Ao7hajeX1RVkIx+8tjs2JiuZ4wuvL3P4SXLN0aGLfClmNMWjundc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=thellstrom@vmware.com; Received: from localhost.localdomain (155.4.205.56) by DM2PR05MB767.namprd05.prod.outlook.com (2a01:111:e400:244d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.6; Thu, 22 Mar 2018 10:24:46 +0000 From: Thomas Hellstrom <thellstrom@vmware.com> To: dri-devel@lists.freedesktop.org, linux-graphics-maintainer@vmware.com Subject: [PATCH -next 10/11] drm/vmwgfx: use monotonic event timestamps Date: Thu, 22 Mar 2018 11:23:51 +0100 Message-Id: <20180322102352.2881-10-thellstrom@vmware.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180322102352.2881-1-thellstrom@vmware.com> References: <20180322102352.2881-1-thellstrom@vmware.com> MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: HE1PR0502CA0021.eurprd05.prod.outlook.com (2603:10a6:3:e3::31) To DM2PR05MB767.namprd05.prod.outlook.com (2a01:111:e400:244d::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bae90f08-bbeb-44a1-6653-08d58fdf230c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM2PR05MB767; X-Microsoft-Exchange-Diagnostics: 1; DM2PR05MB767; 3:Zy/6mfX5t6RI65goElDGq9WsC0Zhzr28QPutXsBmdFapR9zZi2GJmR/X1a+leWjcufybZc3aKXAfXZ6QFWl972mczFRowqvk8zZIXFrbBUwu8SRmZLvFKfTahcGv85Kg7/bhuZbIJ/2j1o1bI0JUq/pqglUOAlGcwDhs/Ybdhdxt2tIkMNXBolA5Y8F5/9rHlY9vQ5H4dKyxRTgtJ+c9f3uzQHpEQBiOaaJKgYnO3r+ys2Op9G2+pLyqLO9IarF6; 25:DXYc7hCcv6lGLeYdT4G4bRd60v7RUYt+ZoIN/0rRTDK40UROKZ+JKpQjBLtrB8272xhIjm/Sup/1hqLke1OZJtPqm4mm5lu8ROhvsDfIQJlCBaXT/26MOaS9v2LpfLiJQqLe3jJZ5jBoHfjr6F9/Pw97kXrhT9l7oVsPHCOeSEW+IhrAacuci9TBqAk7h1cNFNos0JmhVORNUefgBrjIfFteiRWqhbMPFJvZ2t2UsKjHh894vIeNPTgIdb9Z4RArEP8wjXSiRbj1St+BNg7wQrFuK8n/SqQapm7SIxs/3H+EVWyDPGahTJI1jGnlOBWLb8ci0Z3CCOtfdKV8ZYydDUuLFrlgbxXrZsdGV152i/w=; 31:refPqM3CoUoToGJccQO+CRgN8MKVzdXGbeJVJo/7piscS4T64/mgij9xAHeCK4BbH657T3pNmkyttgZYQspHUZ84nSwkMkde+aFnNFWzFn9mLtlsQM822ECnxsu4XT5FMOSbJankgcgteqS1ZD6ZgiaglUJYVfh1b6BCVvkWbIPPuXAqLA9xnk2N+xuryyDezQ9+NJCAFuzPvGgUoXBB0I8quQzcsDeEjQ3ExoRD2ek= X-MS-TrafficTypeDiagnostic: DM2PR05MB767: X-LD-Processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DM2PR05MB767; 20:Fb01MCo6CxRpuzDkOL7if1/+NmAfAYaLWQXdSZTOiWkGjNGBTndc1UuDWMcVP+WSz6BBYUR3z1+qjtI02tazXa9nzEQS4mKDFaU9m4ZvG4RezBbZw4pCpgIoufe/It109MgURyGXrj7bTm/UaB7uRm1jtllgNtfE2352gQboffK3hkvZ3em2wLUDXWvX98PR4S7bx+5Fuhg1tqKk9tU7QrdwwHMch9oVtQeqecR7ugjmHp2/loz2FJ5FQhFId98cRaFn9kPPOjWXG9cH3LNOxpQ1OGrcfGDM2XN6yHvZ1javnrcXDhUJuHkdVC+LIQUl2Y0PobC8t2M300dgKIEycPLXEbEUrjnFPUhCoiABQguUy08oM2HbZDwLOLhX+gi26Cgo59njPSYqzg8rm27IMOYCviHFLz7c+s6dgp4ZDioSxUHZBprNP9xsQYU3jCYhzweiptucKAGG8YIB/SJtKqqVpf8iVMs4S2ctii2sli6ivyTzCSa5Q4u78MWEM1j4; 4:yHoW1zfox8EeVeSpTKMUQNg79DFhimes3jwE3Ogcx6HGpcBpue7NhJSaTMB3B3SZL1ohxfQOwgESggkwyv4w3Zm5OdSbWcpL/wSwS54MsdvcWWIVbpdpDo7lx9he5vBTX412bC9ADTzL7YO6mVoEsmnK4WrUgQLtt10ZZ/NNyZHEeWSg/I48tU7jzWPgJjWGHwLCwluTMklz11rM7jlsGFzhAwx4xEnQVppINz4bL9nQ3ynX+ZbGkytY+RNp2qnuBY/uuV3o8TG4aMR5Uy/UjnlPEbd2SEV7O6PXx6xFGSIzynJiOfwpIe1KsA0zqn0t X-Microsoft-Antispam-PRVS: <DM2PR05MB76702AAD17ED3B19011AE34A1A90@DM2PR05MB767.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:DM2PR05MB767; BCL:0; PCL:0; RULEID:; SRVR:DM2PR05MB767; X-Forefront-PRVS: 0619D53754 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(39380400002)(376002)(396003)(39860400002)(366004)(199004)(189003)(76176011)(59450400001)(8676002)(81156014)(316002)(68736007)(5660300001)(305945005)(8936002)(50226002)(16586007)(36756003)(81166006)(86362001)(50466002)(6486002)(48376002)(186003)(16526019)(6512007)(53936002)(6666003)(6636002)(6506007)(386003)(2950100002)(25786009)(6116002)(52116002)(106356001)(105586002)(51416003)(47776003)(3846002)(26005)(1076002)(2906002)(97736004)(7736002)(66066001)(478600001)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR05MB767; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR05MB767; 23:2TR6W8IaYfM4qHYUBDlPKp6F7jCraKLSMrQwPeTZg7?= BH5fWjRbBSwaBPcvIwZ5B20HGevfFSew/aOlg6GexFq2PE5C3tTx8ob75wI43AAmiZAjma2MBewQ0+xzhl0+dyE10J0O+23WxLx92d05H/90x8rho4Bo3/dQSgvZZNjld8hbh0EtBrtrA6HkBtLb0WSDXeCSj37gX3iDzfrGUMMYkHAaMw8BRJP03fVS040ydGBeAbyAqBFAFNBMcq6u+tRJzQwjWQhlIA5ggpV7mtGYCV3AbGsn4vx4oeezt7jNdS9J1qxRQMxD+3zAz44oZHX28NidIkk5tRF5x1WkTbFqY0ZLEEgaqsB6vKe7J9ToO3MY4aTo8R/iz0icFNrLuaIv9wRyOrTo1h5PQXAZXtWYcVGbFCTELBXeklF3QOSXEusjs+dChfExmplrdZUJDd42GiVYFAUyEKi/9jex3MRRYz9bAqqKt54uhikxkJmJJVgWR/nrI3BZz5bCQVgM2qA3P9ERWQyD/exms+5p/cPI+U6UIleHWYEhPG4ejnNO+CBpnRL2oSV9k346v7r4dtG0a/DM9HEl2BC/IIQVKgosgjNIcatvv7/ag/MTFzCyUECx2wkUei7WDVBXEcUbqJZjI/xcm3l+VCAStanVoYVyWDGQidKfutYXnmXOmB3293xAB+lno9rdx7q1lc7iR7fpYK+7s1EgBoy4DqrF+C01bMk2w8MtBAkgZL1IEkhj5UtDElDAyXdTOWLIol1pnoIvim/Cn9p9phl1QDm+z1jby7zWywH895S/yu8PdPz6bCpExvO9jAXWKbEXFtUeCimqeYDKvf/xbNZWuzGqpNyIeJUNnF0ByJGuMUb7cU/M6G5g8G63oCjIhR/jMXvBKUfRSJIKEUXWv7cIKf6zZalXFuiVIMf1WtROAK63DX6AEGJq00rWxeacBAsXekNMi9Cp7gNVWciyi2h+WQDGzs3QJOd4pfSdTVS7J5bjuY/hwqZp26qevaHE44EgnuDlemnxGa8u8Qx/t5Y5A/56C+0RPw6mFWmviei9orYHaOeEstvue6xtKiIQc7GLakBpIX1m8p0fj+8LQOas3K+H4Fvsl+h4Szzg3FL1yCEdj2BzCO7yX1C/wQlva8x8qCJkxD5OdOY7p98uRA4F2CYWJuSw== X-Microsoft-Antispam-Message-Info: 4MuMXcOulbbQLXuhpw0fgcDGbp++gky7oI3XDggWlN1WKmxaOGaaRr4/UWlc3NtULYO8iL7t0ZI6yxwurYQeBAVzdE7NsE+vnjQLh247nWff5lxChDOOeUOJh0CaEyW6cy7OAS5frLayo+wlC1QWS4XuNhWlN92NxDG+j0/UhV/btvMV75dPpdF15QLMbRTr X-Microsoft-Exchange-Diagnostics: 1; DM2PR05MB767; 6:My19g73modmr2DYMi8rxNJWlaSsEiB7g447Xb+tDjRvjNQQbjzNDnI1mQJBcdMLcypxGU3EKHi5CeWIdG/8JNI3Eb+3mCL9JfQ5ilqwsI6cnx26qENveWtWpWT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AjNJJ3Fw7HU8d1jsqztjIpqN7LONZC93dd8EGZzdRKE1hilFtz3KgPFzd8NiLMp4gA2gh8pWlu0= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2018 10:24:46.4612 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bae90f08-bbeb-44a1-6653-08d58fdf230c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR05MB767 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
None
|
expand
|
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index 6c5c75cf5e6c..9ed544f8958f 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c @@ -901,11 +901,12 @@ static void vmw_event_fence_action_seq_passed(struct vmw_fence_action *action) spin_lock_irq(&dev->event_lock); if (likely(eaction->tv_sec != NULL)) { - struct timeval tv; + struct timespec64 ts; - do_gettimeofday(&tv); - *eaction->tv_sec = tv.tv_sec; - *eaction->tv_usec = tv.tv_usec; + ktime_get_ts64(&ts); + /* monotonic time, so no y2038 overflow */ + *eaction->tv_sec = ts.tv_sec; + *eaction->tv_usec = ts.tv_nsec / NSEC_PER_USEC; } drm_send_event_locked(dev, eaction->event);