Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5324880ybf; Wed, 4 Mar 2020 22:21:49 -0800 (PST) X-Google-Smtp-Source: ADFU+vtyFVlTLXE4l4VCJVyF9G4ky60lef8CPrBDGC9zyiH8B4OgNX8rSE02cO3wojm8hiR06RQW X-Received: by 2002:aca:1c09:: with SMTP id c9mr4627090oic.85.1583389309791; Wed, 04 Mar 2020 22:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583389309; cv=none; d=google.com; s=arc-20160816; b=iEID1fbmsigl4UUfChM+xive4KMMVwCnRavj0xjJm9FG5Tyaq+ilfp2hXsd5gTTY9M OakGL+aNru3ztT7a3cIrDL9ogI5u/8SaJxhu+bXC+sL3IZbgW7iP+zjlkQEUUJubD5Di 96sBipt+hAPLZc0Lc3exaPF3fCbuWUq+UGEFOX5U4hTceOW/tdnofNkevi0T/x2o2p/s SP5rNSPK8tOriXA4wszie3PHLDKCqzfi0gJQv6OaYI1LZ+kzP+NgiOknKVoHIxP0Jhns zP7PEc565FN9L5kS/hu3/eZzDRNagpoHo9JGxjLrqA+JZnWAgj52jy3iKsSeMFyXv/Fh fF6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PEmhObW/jpADaANqPhkfSckuY3+qAcewjBs0fek5zKc=; b=tJWPxAX+lCymTAghcGS4Wx5dtJVItGgjqFSw/gmDuB14O/sLRYm/TP4RYKR9IESEaz ZmZCbCVJTOGHDOh/nylkHzm7Pwo9+FQ0Ila4r+u7zhSW21VU+egWZt6BqwoXWdtEZRFy 35t5ehOt03cNvXpublkpHCt09P3KAh6SPEmldsMtqT6rsclXGzgAHsEJfVloMxv8uGwE PfGjBC2KqgrbJDzWnJoS/y2Nf1nmcuWX1mCW9SgC1r9CIbPNSg8JoowPkSSjsG7qnB1s 0EJi3Bf5uFZh8daELALKpNBvw/OI17StLY/iZqn9kZlmzro5yuwVVJigKdbschQgkn6a jjAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=gTA2qM38; 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 f20si2707627otl.313.2020.03.04.22.21.36; Wed, 04 Mar 2020 22:21:49 -0800 (PST) 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; dkim=pass header.i=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=gTA2qM38; 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 S1725861AbgCEGVM (ORCPT + 99 others); Thu, 5 Mar 2020 01:21:12 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37947 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbgCEGVM (ORCPT ); Thu, 5 Mar 2020 01:21:12 -0500 Received: by mail-lj1-f194.google.com with SMTP id w1so4722847ljh.5 for ; Wed, 04 Mar 2020 22:21:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anholt-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PEmhObW/jpADaANqPhkfSckuY3+qAcewjBs0fek5zKc=; b=gTA2qM38DxWUoV6HAHoHMGwWShAl0vDPQEcHnQS/KXrKpZo2uVuk5SB0r+UgtYi21j W0hTTcDDrl/c9DECGmtDjh0xFtI2NtkqpFpZtCGVCJ0TYuXKXojyk1KS/unGVCLQfjpM wUYCNuQS8Ylkz3QT9ip1AEe/N21TrOiUsrSwusufbkcUAoBG3K6m8HHxDer/P6C7hGUm 6YkPQjybUF1CuEtBxtsXjdSc6u31f5YbQVDXls9bAV947fo9Eqpko43D5LN7FmVr22Or prdngeHQ8wVR1GAhx9CeTqDDtZRzwahlKD/cSGAa3fDlgxRNvb5sJqSqM+7pyBgfS+Dr MDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PEmhObW/jpADaANqPhkfSckuY3+qAcewjBs0fek5zKc=; b=LCng6npU5GU3RnaLmPr/yLiRT0JTqrbZr3zcGrGpKgZGbbL1mN3UgtP1DTLkUX3W1a eHraaG5crfr0FyXeaN6gBVxbgli8TZWObE1YDXQiJn2uMLIt4AXYZe/mYn+bii0bzAOv HZs6GFD2T3wGAmJLrrs7qlnUQDDUQ2vwN2fI1Hq3EhVGBoOdPtVZ57wzvwetDwkAPW25 cusnXqovbw8TZsfvulTwQQg12/w+cSn+9W3hQ1Oehm6YBq4coNAXeuV/N7zM2bvvGS6E VZB1GsAIMgj0/C1/Qu3GBBzQ1A6bzHT/no+kB/JiLZuyFlZVPwUFp0DXHds/XuLeFCqL n84g== X-Gm-Message-State: ANhLgQ3LofQBE/w8oXYvSXkl264lXKg3EF+OVLMJp7BXCQR+2LA/wBf8 NkVyJU1SnprM5e1m6XLZ3lIFVG9QMot+7up0ftUUU7uGrH0= X-Received: by 2002:a2e:9094:: with SMTP id l20mr3931274ljg.131.1583389270542; Wed, 04 Mar 2020 22:21:10 -0800 (PST) MIME-Version: 1.0 References: <20200217153145.13780-1-james.hughes@raspberrypi.com> In-Reply-To: From: Eric Anholt Date: Wed, 4 Mar 2020 22:20:59 -0800 Message-ID: Subject: Re: [PATCH] GPU: DRM: VC4/V3D Replace wait_for macros in to remove use of msleep To: James Hughes Cc: David Airlie , DRI Development , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 20, 2020 at 1:44 AM James Hughes wrote: > > On Wed, 19 Feb 2020 at 22:51, Eric Anholt wrote: > > > > On Mon, Feb 17, 2020 at 7:41 AM James Hughes > > wrote: > > > > > > The wait_for macro's for Broadcom VC4 and V3D drivers used msleep > > > which is inappropriate due to its inaccuracy at low values (minimum > > > wait time is about 30ms on the Raspberry Pi). > > > > > > This patch replaces the macro with the one from the Intel i915 version > > > which uses usleep_range to provide more accurate waits. > > > > > > Signed-off-by: James Hughes > > > > To apply this, we're going to want to split the patch up between v3d > > (with a fixes tag to the introduction of the driver, since it's a > > pretty critical fix) and vc4 (where it's used in KMS, and we're pretty > > sure we want it but changing timing like this in KMS paths is risky so > > we don't want to backport to stable). And adjust the commit messages > > to have consistent prefixes to the rest of the commits to those > > drivers. > > > > I've been fighting with the drm maintainer tools today to try to apply > > the patch, with no luck. I'll keep trying, and if I succeed, I'll > > push it. > > Hi Eric, > > unclear whether you want me to do the split or whether you are going > to (your last paragraph). Also I'm a bit unclear on the exact > requirements for the prefixes etc. I debugged what was going on with my maintainer tools and got the patches applied: https://cgit.freedesktop.org/drm/drm-misc/commit/?id=9daee6141cc9c75b09659b02b1cb9eeb2f5e16cc https://cgit.freedesktop.org/drm/drm-misc/commit/?id=7f2a09ecf2e8d86e22598dfb879db48e72c5a40e Apologies for the wait! I've fixed some mail filters I think so I should notice pings like this in the future. But also I hope Maxime can feel enabled to merge patches to vc4/v3d in the future -- I certainly don't want to be the limiting factor here, and it's under drm-misc so any drm-misc maintainer can apply stuff.