Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp79654ybi; Thu, 1 Aug 2019 15:02:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVdAs2Bj+dVZQm5mXEYQNo6qmI30S2/ahv529GH70Fy+7+yl9NYIjT8JTdl/LpfF45SF0B X-Received: by 2002:aa7:96ad:: with SMTP id g13mr58276532pfk.182.1564696974183; Thu, 01 Aug 2019 15:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564696974; cv=none; d=google.com; s=arc-20160816; b=q19DRB8oxQlTT4kFhCA2vAaG7K/rLnHRoIXib2PGUetmdcPktSE5kGgiCkQp5JcK/n KbEXvJiVxUdBjOq2/stSvW8+CuHvn8bZ2jMnOoED1iIQZAFj3ceZBaxQqMyN0UZWwA5O 5n/LscUAsvCbaL+t5rJ1wYNn9bhcx/Cqt2rdd7OOuyxp7x84dp6Pqg0l2DNK5Opa3GOL s6YJ74IP31zCLb5ekjgxxppA5b1dzpukrmrS7CFqurkX2DFmXmzhHpQeLo+6X+fGKi+t MKwko/Abm0aTKhlBlJrTm5qVOQgW+CYWLvgapRXgmuQv9Q8o1fNFsOJRQhEOk9pz12wt o/pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=8y+YRCyCMPebWKgn8X/jkTTrr/FsW9yrwTpqn7eimPw=; b=xkPad5GZZrSU2s8uQFR0Q9+rU3SZhEB1lGBAfIW61qu6gasU0CchLwXyRVBsPjHC7B QHL6UC9Hn0dNL7W2UWNnrdNSwpwvmX9ToAltvORbTSKhiDzRbLDhfEAVOvmTQqfml7Ra qWGlIouRIcVS7cH3sk8TxMSI2c2BcO/rvZRRZ5WIES7UMWBnron9ys00n29IELv3Mv42 uloDbC3w3GwO62Oj0aup3JZLHxfyfE+udIT9cF2MhXFVwB5rBNLpdZoJi5trzuF5yaLt Va/b+3qWMbUuqw7J3dCcmg9i9gW4z33ffTn7zybzWqyEl4yIHOysi6JWa+pD9vbptoOW kG+g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si39395012pfv.74.2019.08.01.15.02.38; Thu, 01 Aug 2019 15:02:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731638AbfHAPeQ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Aug 2019 11:34:16 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:54789 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729062AbfHAPeQ (ORCPT ); Thu, 1 Aug 2019 11:34:16 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 17792212-1500050 for multiple; Thu, 01 Aug 2019 16:34:11 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Rob Clark From: Chris Wilson In-Reply-To: Cc: David Airlie , Deepak Sharma , Emil Velikov , Eric Anholt , Eric Biggers , Imre Deak , Rob Clark , Sean Paul , Thomas Zimmermann , dri-devel , Linux Kernel Mailing List References: <20190717211542.30482-1-robdclark@gmail.com> <20190719092153.GJ15868@phenom.ffwll.local> <20190731192331.GT104440@art_vandelay> <156466322613.6045.7313079853087889718@skylake-alporthouse-com> Message-ID: <156467364918.6045.9820603183181141608@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH] drm/vgem: fix cache synchronization on arm/arm64 Date: Thu, 01 Aug 2019 16:34:09 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rob Clark (2019-08-01 16:18:45) > On Thu, Aug 1, 2019 at 5:40 AM Chris Wilson wrote: > > > > Quoting Sean Paul (2019-07-31 20:23:31) > > > On Fri, Jul 19, 2019 at 11:21:53AM +0200, Daniel Vetter wrote: > > > > On Wed, Jul 17, 2019 at 02:15:37PM -0700, Rob Clark wrote: > > > > > From: Rob Clark > > > > > > > > > > drm_cflush_pages() is no-op on arm/arm64. But instead we can use > > > > > dma_sync API. > > > > > > > > > > Fixes failures w/ vgem_test. > > > > > > > > > > Signed-off-by: Rob Clark > > > > > --- > > > > > An alternative approach to the series[1] I sent yesterday > > > > > > > > > > On the plus side, it keeps the WC buffers and avoids any drm core > > > > > changes. On the minus side, I don't think it will work (at least > > > > > on arm64) prior to v5.0[2], so the fix can't be backported very > > > > > far. > > > > > > > > Yeah seems a lot more reasonable. > > > > > > > > Acked-by: Daniel Vetter > > > > > > Applied to drm-misc-fixes, thanks! > > > > But it didn't actually fix the failures in CI. > > Hmm, that is unfortunate, I'd assumed that silence meant latest > version was working in CI.. Ah, takes a intel-gfx@ for CI to pick up patches atm. > dma_sync_sg_* doesn't work on x86? It would be kinda unfortunate to > have vgem only work on x86 *or* arm.. maybe bringing back > drm_cflush_pages() could make it work in both cases I think it stems from the expectation that vgem provides "device coherency" for CPU access. From the testing perspective, it's nice to emulate HW interactions; but maybe that is just beyond the general capabilities and we cannot simply use vgem as we do currently. That would leave a hole for mocking prime in CI that needs filling :( -Chris