Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp470247ybv; Thu, 20 Feb 2020 01:46:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwYBKNcgYOXrOnGshLgEcebnGu63cLNzPSWewn9agEJqGiEiFYBX5N8r/EjXqLwneLp1cU1 X-Received: by 2002:aca:5094:: with SMTP id e142mr1294082oib.101.1582191961112; Thu, 20 Feb 2020 01:46:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582191961; cv=none; d=google.com; s=arc-20160816; b=ByTm9QPHVxjfWqsTSRUjibE5PkIA+gamcsq5K6qjUVaOwLENgXFPEYThXbIq0NyRXR MN5xM1Om+WLMlUhCLPHCJy4S9Gkwo0pLnZdGmVPi6SvMIsWdqT3U+2MJEgez0z/2lKUV F3fLvbgg3TA3Wsmz4/tNm5LM5k1S+hp/Gqe+0Ck9pyjW0fO9WJWR/eG5TvxGRadU5HDP 0G0F0rBfiBkidxAK7Tk7dALc4fn+ohHVXZwpr5x7DzKK5MxRAVgCq04tXXfxsoherEua S/clL1XMAXWwEemUheua611YlwLL8LiUQRCrIBCIqWi2GXV3i6phLKTu/0jUyqZoWY+1 h5Hg== 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=QT/bClfWBC0w+NUxOHZIftb3rGcPtYQdlmIKe6O0uis=; b=R9XxV1gCm/+4CENpqZYdqVtn22VIw00d83eid1XdSaJ9HM+m58X+lsyKnVJ7BMzMYE 4i2CuAuNPTUO9NLZHosBV1O+izWdcqvcl6jX+aitpWEpuTGZTwpHHj9en/I2iIaIsdHI IJzrn3B5sTyLA+ege9/8iHyFN3H1zVOy5/OpI/UeaCIwmP0DTrMk2jpp7vBSkU5nm/9S 3SCbH9ebUKn/rn4LqUKBlVYdsOq6mYecNNbEHTrBCQr4RmTFqLFcEkhTRsf+4hjzjWBy rm7FdVCGHlzzvFzPrHtoKoE3eiBW4uu8sS3LO6MvaKU6PU5qFMTJGE3VtEZIE+vD6L03 5KbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b="T2mze/9r"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si11642725oia.232.2020.02.20.01.45.47; Thu, 20 Feb 2020 01:46:01 -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=@raspberrypi.com header.s=google header.b="T2mze/9r"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbgBTJoP (ORCPT + 99 others); Thu, 20 Feb 2020 04:44:15 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:45914 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbgBTJoP (ORCPT ); Thu, 20 Feb 2020 04:44:15 -0500 Received: by mail-io1-f65.google.com with SMTP id i11so3906314ioi.12 for ; Thu, 20 Feb 2020 01:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QT/bClfWBC0w+NUxOHZIftb3rGcPtYQdlmIKe6O0uis=; b=T2mze/9rr0qw8y10sXtQt5GIwP0JUitC+0q73XiYA0459VrkFjIrveX7AmBOsXZqwD pt5298wgoJgIcE0mbA9M0IJRFC1mPCXYHWHNirGepJZsoEl+rgIlCtYB1wMjMABj7guI 6dzxO5kigNVc0rzJ4SGajLHf2Ef5y8u14FMNuPSnmaVAsMHcGuNoE9dCrcoJFfIpCetQ 2vzLouv7+7mDnme9illrjqtCUeFHVCLfcYq0jybqM2fuNmllXZ2VvBysIvJSaLr1ySF+ sc4bi3gurxpSBhALGTuwVMu7vR8jkhUy6IzmW015moUQfMTbnO8NZ9aLnms9Au2uNTI7 fQPQ== 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=QT/bClfWBC0w+NUxOHZIftb3rGcPtYQdlmIKe6O0uis=; b=KpyyQPnxlV8GS96O6P44h6WV1fRzjgWiAKUNmpvZxY5Ig8Rv074V9aSmtu+bdDslFA i8De+kTnCi/fdKgkFpu4Sfjx6hlnIz8atPmMaVZB08XlZIfb8HLv/rbwI4lXqbP7cIto eL+3XFS1zTA/LuYIXWT2O4hX9iwDB9QrSYFx+/CHryYgXDzIG0xSDTiuvP5uAYtGpr8h vUtG1RuvMKSY9peu9Lwm1MDqjlKSW8cWbQy+RjxflWEjXmXwpPiNq+yri04EXiEw6b4E glhOPydoZwZdBVmOGo52QDBW9UBZsRPYSUsZ79jf3bsNKrCFQ54hZAluWKCnf77wI47Z 1G+A== X-Gm-Message-State: APjAAAWQ2ruv2tvr5A6iUoZYERxMqX0fLgx/R2BupOgMq3jiXh+hMIdI oKIIcqlhCdCXI2/koRZbSPpmi9IVMWXOuRwtc2Q4TRDJ X-Received: by 2002:a05:6602:1483:: with SMTP id a3mr23929934iow.229.1582191854151; Thu, 20 Feb 2020 01:44:14 -0800 (PST) MIME-Version: 1.0 References: <20200217153145.13780-1-james.hughes@raspberrypi.com> In-Reply-To: From: James Hughes Date: Thu, 20 Feb 2020 09:44:03 +0000 Message-ID: Subject: Re: [PATCH] GPU: DRM: VC4/V3D Replace wait_for macros in to remove use of msleep To: Eric Anholt 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 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. James