Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FA43C433EF for ; Wed, 15 Sep 2021 09:55:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CB2136124E for ; Wed, 15 Sep 2021 09:55:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CB2136124E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5D236E8F0; Wed, 15 Sep 2021 09:55:01 +0000 (UTC) Received: from fanzine.igalia.com (fanzine.igalia.com [178.60.130.6]) by gabe.freedesktop.org (Postfix) with ESMTPS id E4D276E8F0 for ; Wed, 15 Sep 2021 09:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=BCjzl5InWXrrE07+i9aAPJnv7UBJQLhh+xxUdLR/bEg=; b=rkcG3XqvBvcDubYLkhqnWVkDGpeVWIZxAeS8L+zn2q0s2umHToOMnYBHr7m5r2J2LE0whXCObxSTuYc/V8eH2ny9Jwm6C9LIqMmeH1bBAgN8p1TupJxnZBlmU8Kg29FYD5HRx4K5vhcl66FPHmfez3SjK4Y0ex+SQtwHSfZ1oqbl1U+9/a+sZzZHIKk592j8sGWMbNETyFLWfbokMFJXILnw21OzBdheTFlF8bxd6AYSQ5jqbiE0Gs3+ZGiGY8vtQX6R2TjhnLP60SeLYLIer00b88n5Hf8PtsC4u2Avw9Bh2k0lt5zRIFXr7W1tJME9incGxTkHVQHIGTFtDFnqrQ==; Received: from 191.49.165.83.dynamic.reverse-mundo-r.com ([83.165.49.191] helo=zeus) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1mQRd3-0001mB-Uz; Wed, 15 Sep 2021 11:54:58 +0200 Message-ID: <0131f4a040341b42e7502f24ae72db19fb3286ff.camel@igalia.com> Subject: Re: [PATCH] drm/v3d: fix wait for TMU write combiner flush From: Iago Toral To: Melissa Wen Cc: dri-devel@lists.freedesktop.org Date: Wed, 15 Sep 2021 11:54:48 +0200 In-Reply-To: <20210915085707.7ph5sx4nnetb2mbn@mail.igalia.com> References: <20210914055549.4340-1-itoral@igalia.com> <20210915085707.7ph5sx4nnetb2mbn@mail.igalia.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, 2021-09-15 at 09:57 +0100, Melissa Wen wrote: > On 09/14, Iago Toral Quiroga wrote: > > The hardware sets the TMUWCF bit back to 0 when the TMU write > > combiner flush completes so we should be checking for that instead > > of the L2TFLS bit. > > > > Fixes spurious Vulkan CTS failures in: > > dEQP-VK.binding_model.descriptorset_random.* > Hi Iago, > > makes sense to me. > > can you add the fix tag? > Fixes: d223f98f02099 ("drm/v3d: Add support for compute shader > dispatch") > > also, you forgot to add your Signed-off-by tag. Will include both, thanks. > > --- > > drivers/gpu/drm/v3d/v3d_gem.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/v3d/v3d_gem.c > > b/drivers/gpu/drm/v3d/v3d_gem.c > > index a3529809d547..5159f544bc16 100644 > > --- a/drivers/gpu/drm/v3d/v3d_gem.c > > +++ b/drivers/gpu/drm/v3d/v3d_gem.c > > @@ -197,7 +197,7 @@ v3d_clean_caches(struct v3d_dev *v3d) > > > > V3D_CORE_WRITE(core, V3D_CTL_L2TCACTL, V3D_L2TCACTL_TMUWCF); > > if (wait_for(!(V3D_CORE_READ(core, V3D_CTL_L2TCACTL) & > > - V3D_L2TCACTL_L2TFLS), 100)) { > > + V3D_L2TCACTL_TMUWCF), 100)) { > > DRM_ERROR("Timeout waiting for L1T write combiner > > flush\n"); > hm.. would it be clearer to say "TMU write combiner" here? Yes, I guess it does. I'll add this too. > > in the next version, you can already include: > Reviewed-by: Melissa Wen > Thanks! Iago > Thanks, > > Melissa > > } > > > > -- > > 2.25.1 > >