Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp86183rwi; Wed, 2 Nov 2022 09:34:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4sfElEiodlDdS6s2zXmWAhSg8GODS+bGckmWwTfik5T10pJwZpTLiu3vvqZ6nnchusz/Eb X-Received: by 2002:a05:6402:1771:b0:463:c94d:c7d9 with SMTP id da17-20020a056402177100b00463c94dc7d9mr7485829edb.135.1667406895103; Wed, 02 Nov 2022 09:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667406895; cv=none; d=google.com; s=arc-20160816; b=f0JSHx+EL38mTttCIieoKxQWQpYxX0T0kL7rmNPDfSWKhgQP7j2Gu/Wz1T5y2f6yuJ bHafn/ZXP3rXVy3QNsRJ/1GwJiAke7WVSP9CniroCARLHpamWlVakXjBWVstWjeGk6On AmlYhKnf52fbnfS08qFkeL+/vrg0t2IggrscBckl7YUMhornSiImPbI2rhhzPZbgN7cn rHs8PoqfNFNuaUqiCYMD5EwSvpbsoqBiT4uGhoWzzb+jRFRrfDtl0l6rczAWnqLOxSya IrAxFIEQyVcfzg/mjTWBDq2IxuuYexHNfH+vRSK895JUoDbmg7PwcTT8U2fHFBmcYPmP O3Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=F/1grPaD+xMIby1Txd3zoCjkj1cuL2trjeEvsrdeQYk=; b=DNAB+WlMcBlFnfU+gYRIIghX2WVkIFJkTMPMKQTQ/N8RWFg5iQoMzX9SwfMdC5OJET 71fq28oCQHkZ86lrGHw1KnVDQlcZ4oy3XYcicLZi24Bqj5R10GuUXQp0HSZi2xjnncl3 +AA/gJ/A4QM+S5TyG2pEU1aFxsWO2+A7vHUQtGckTeI++wkT8YTK+KEz95dYCFU/y0gx lke2exrQL9gh+HrBvJjXVCbH+e1WB18pXtYSJNnOyJdBL+LQGKZ/C3bdxHgjlqmsXEYi +mR93OSzcS7Kr2QFkbnIkp2gmPs/m5IlCB07Ch9LZHcK5f8X20r+JTeS89o9rA7oVCeR 32vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pE+d2BMu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs34-20020a1709073ea200b007aa6262f627si18442362ejc.640.2022.11.02.09.34.30; Wed, 02 Nov 2022 09:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pE+d2BMu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbiKBQAP (ORCPT + 98 others); Wed, 2 Nov 2022 12:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbiKBP7w (ORCPT ); Wed, 2 Nov 2022 11:59:52 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F409B2C108; Wed, 2 Nov 2022 08:59:50 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id i9so9241564qki.10; Wed, 02 Nov 2022 08:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F/1grPaD+xMIby1Txd3zoCjkj1cuL2trjeEvsrdeQYk=; b=pE+d2BMuxQjQYzxQqj4PXTA8MdpkV/KJe2dAN8yPM0xASyxTbxq9if/GzGXIwkEnkm Zhq28XdD6jQ/2Ix6oTGL+2kJW+/C9S8DXs0WmmtbOwWoF4Fc/9Q2VlLDHMjAYS0aBhOI 8QrjLRVd9u5A9F0OF6DkrHbdoqLDQQzShm7+B0hYX/wvOUoGswqKQt4l7RXX+gEwCpu9 h9Mtj97CQnB26geCAwTJr+LTcXYOQCqOISPZNaTmK3RCJKbGO2QgW9zjwgAQFBxAA2WW Urz83q4xaNSKPMWBsS15Pju/tNWJnjU7O7ktboSF+MB3PDFm7tZw69e7zYLw8VeOiXJD CT3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F/1grPaD+xMIby1Txd3zoCjkj1cuL2trjeEvsrdeQYk=; b=UaKApcZZVVap+j7XxDR9L/nBkwQNpv2v4G4EbBMiHR7DSe41mZ1tMvGAJ/GzzLtltV /lPRyIemdHJkSzN/WPNiGWpDgicaAJIcRhs26PON8E+yrGHhIMQmjIXjvBC4xw6u0tou VXVB7bpDzD8Vs3wOMGn0K60RZNsSY7W/f/7ycPTPBoiLwWPOpSmNyoQuy9UKkI7JzLU8 AEYZtz1i3voJafMWUYRDYZJSMj6c0BN13lvLWKD4UBLGVAqSvlReJgtXOrNk2vWGwGHu Tya+eB8abh22RmwdiKnBVAQkK5hDDJULluxKHHLu5Hg8cYxjNUG6r+jfgQQASI4pjh/0 aAHg== X-Gm-Message-State: ACrzQf3XUs46P9nj9akgDT4lKC8ijL4LNHai/uw8ZWIu3rw/iXYf5vU1 /JpDEBjSAw1T/DNR3fhKBaC3EtFmtTec+mVh6zc= X-Received: by 2002:a05:620a:254e:b0:6c7:855c:6eb with SMTP id s14-20020a05620a254e00b006c7855c06ebmr18731720qko.39.1667404790104; Wed, 02 Nov 2022 08:59:50 -0700 (PDT) MIME-Version: 1.0 References: <20221101214051.159988-1-robdclark@gmail.com> <044540cc-1d8b-45da-ac8b-ecc133b45dc1@amd.com> In-Reply-To: <044540cc-1d8b-45da-ac8b-ecc133b45dc1@amd.com> From: Rob Clark Date: Wed, 2 Nov 2022 09:00:06 -0700 Message-ID: Subject: Re: [PATCH] drm/msm: Remove exclusive-fence hack To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Daniel Vetter , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Sumit Semwal , open list , "open list:DMA BUFFER SHARING FRAMEWORK" , "moderated list:DMA BUFFER SHARING FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 2, 2022 at 3:46 AM Christian K=C3=B6nig wrote: > > Am 01.11.22 um 22:40 schrieb Rob Clark: > > From: Rob Clark > > > > The workaround was initially necessary due to dma_resv having only a > > single exclusive fence slot, yet whe don't necessarily know what order > > the gpu scheduler will schedule jobs. Unfortunately this workaround > > also has the result of forcing implicit sync, even when userspace does > > not want it. > > > > However, since commit 047a1b877ed4 ("dma-buf & drm/amdgpu: remove > > dma_resv workaround") the workaround is no longer needed. So remove > > it. This effectively reverts commit f1b3f696a084 ("drm/msm: Don't > > break exclusive fence ordering") > > > > Signed-off-by: Rob Clark > > Oh, yes please. I had that on my todo list for after the initial patch > had landed, but couldn't find the time to look into it once more. > > There was another case with one of the other ARM drivers which could be > cleaned up now, but I can't find it any more of hand. > > Anyway this patch here is Acked-by: Christian K=C3=B6nig > . Thanks.. I had a quick look for the other driver but couldn't spot anything, so perhaps it has already been fixed? BR, -R > > Regards, > Christian. > > > --- > > drivers/gpu/drm/msm/msm_gem_submit.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/msm/msm_gem_submit.c b/drivers/gpu/drm/msm= /msm_gem_submit.c > > index 5599d93ec0d2..cc48f73adadf 100644 > > --- a/drivers/gpu/drm/msm/msm_gem_submit.c > > +++ b/drivers/gpu/drm/msm/msm_gem_submit.c > > @@ -334,8 +334,7 @@ static int submit_fence_sync(struct msm_gem_submit = *submit, bool no_implicit) > > if (ret) > > return ret; > > > > - /* exclusive fences must be ordered */ > > - if (no_implicit && !write) > > + if (no_implicit) > > continue; > > > > ret =3D drm_sched_job_add_implicit_dependencies(&submit->= base, >