From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.1 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 53EF0C1B08C for ; Thu, 15 Jul 2021 15:26:27 +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 126DE613C4 for ; Thu, 15 Jul 2021 15:26:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 126DE613C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F4496E832; Thu, 15 Jul 2021 15:26:26 +0000 (UTC) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4D5356E832 for ; Thu, 15 Jul 2021 15:26:25 +0000 (UTC) Received: by mail-lf1-x12a.google.com with SMTP id y42so10585092lfa.3 for ; Thu, 15 Jul 2021 08:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pwgJCon9nCgOfdweHqPCtSYWnR/Tmiv3AEfGAwUX/Ig=; b=B/FYL1vrHNRhRSchZNW254RE0VbNaFwkL9dpxD3oO73ZK9097d/OivNvrj94PdEseF UQUcVN6YKvSDmktIqfeBtC+DXITe/7E5EwwqNlhHFmZ7ta32Y5hG0KQ8q49vsTMyRBs6 zXZeQEyZIOm2oY9TjcH9ZyRB+xiIrc0rJyKFh9EyrnYkfXTMzM0l/Exg8QKVHX4Uxt7c th3o+wfDy5PaY8jWM8iWmTNSgSDaslScphQusFPZmI8TU6l565BRFLxQX0l5xJsx2lSq EUsgGPbGas4InfIV+ThTh2pE/Xg8/ejBtoutfhJIw6+LcwGpBIWIWv1Hc4ccoQSbXc0Y Xk8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pwgJCon9nCgOfdweHqPCtSYWnR/Tmiv3AEfGAwUX/Ig=; b=H7km0Bxfriu84CTMPZffIXbNbmCTR7PR8vHGGp1I+YW1XZSaVadr9MgaQZ1jEyVn6y 0e4fsgka9v7EtgP1hrzB5l791HSbFw6Jo3sFJRVIL9QcLjH7CB6JzYgscS62jDW5kZIt oJeQlCHR59HoeQ5n1scRxhnmpjr7or6APQpvOzGThvhG8fvrJHdOS37kmcWIGVGX1hkD B5BkDxXaKa8KTPgcHrnoDh00xBES1CwmjXVkNCZqqlv8y3vltzwdsdDfJBup7Ys7GW6o AkLP4wfArp2BhUo2WxkjC+TSY+alj9X59LM3CezuLPbPSbJmWLfInuhFQzkPK1z/3FNe JIkQ== X-Gm-Message-State: AOAM531pKfGqEhO41rgeMfwYNqib++XwRGR2Ogy5Y/Sgbt5FqqZ6nRXy CjzzhD09Qsz+U0NRVk862EE= X-Google-Smtp-Source: ABdhPJwYzpMZuuHfEVQVi0dDR1Lf3mUn0GL9YiaenC6oCVG07jEOp5GTB0SYlVfputOkkkjLSMdijQ== X-Received: by 2002:a19:5f43:: with SMTP id a3mr3868266lfj.504.1626362783717; Thu, 15 Jul 2021 08:26:23 -0700 (PDT) Received: from [192.168.2.145] (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.googlemail.com with ESMTPSA id r7sm436354lfr.242.2021.07.15.08.26.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jul 2021 08:26:22 -0700 (PDT) Subject: Re: [PATCH v8 01/14] gpu: host1x: Add DMA fence implementation To: Thierry Reding References: <20210709193146.2859516-1-thierry.reding@gmail.com> <20210709193146.2859516-2-thierry.reding@gmail.com> From: Dmitry Osipenko Message-ID: Date: Thu, 15 Jul 2021 18:26:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210709193146.2859516-2-thierry.reding@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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: , Cc: linux-tegra@vger.kernel.org, kernel test robot , dri-devel@lists.freedesktop.org, Mikko Perttunen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 09.07.2021 22:31, Thierry Reding пишет: > diff --git a/drivers/gpu/host1x/fence.c b/drivers/gpu/host1x/fence.c > new file mode 100644 > index 000000000000..06c6b86237bd > --- /dev/null > +++ b/drivers/gpu/host1x/fence.c > @@ -0,0 +1,209 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Syncpoint dma_fence implementation > + * > + * Copyright (c) 2020, NVIDIA Corporation. > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#include "fence.h" > +#include "intr.h" > +#include "syncpt.h" > + > +DEFINE_SPINLOCK(lock); *static*