Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E18E3C4321E for ; Wed, 22 Dec 2021 19:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345238AbhLVTbf (ORCPT ); Wed, 22 Dec 2021 14:31:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345206AbhLVTbd (ORCPT ); Wed, 22 Dec 2021 14:31:33 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67750C061574; Wed, 22 Dec 2021 11:31:33 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id a37so5356700ljq.13; Wed, 22 Dec 2021 11:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UWoUyTKuCZBPTUWhT4JDOJqnu500xgBuHlWsCulVizk=; b=c67/4h+IbZqTrY6VpgQDBqvTDORUmjxz5PuQFbzOb8h6CTGOMmAJth5gzc+C8JbWPQ 2ihYecoc2Q0UoVe859s8GGOvOWFAoWc8AqLS+WuHNuL7F44YYEJgC8ZwMJ8uSfmqNcrO ylPbfoXFXr9pVBOTzRp+Dyz4Cwlu7Nnzw1lpBGGz7s0/XNBghnJeG9duEF4uisvpLD34 69RK0hU/i5Eie/4QF7tzDaBGpK0vVr8/aLXZEvBQGmJAFP5CroY6qbipQC2t85Ms+Xc2 T8xab18TQMMjYS587kdP8Cl+RLxnmmbhPSRGQyY3mmXUNfKPnIYwmxpy8x14K5404Q3L o9eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=UWoUyTKuCZBPTUWhT4JDOJqnu500xgBuHlWsCulVizk=; b=baACjWPHLD/j3vkYlntSyv6RDnZyGncVCvHP/NJyfj6zA1V1oID+L5mBvbdnuGTVYY ZHh7qybuKRkyStHDaOhBb34gWfQ/shfv1y0vUKFShuOboXIFtpf4qJjC421xXLuzoDt3 EiawrbzxRJKnjfdGJUBVUdjUKSxElc5Dp25nj+axConPm4vfeYNX44eorLiLuy6iCE1/ b3Oo09OYydXcH6JxdoMXZxv8+e1KCk+UL83WUtBjJn3vChNfc7fJiyPNGj4KGAKN0HzE 61FuK37wqlBI323WLNU+LAkD6ZuKXKfnDEWiniNBKd0HiOI89g6SoMquFiDgiJhSvoIp 0uCQ== X-Gm-Message-State: AOAM533JSiFAwT5dH1d29lFVuIUueEPV5yHlcyNGt7JhdKjbVT2o0a83 bqKJla1g1CL0dJlpE3HxzjU= X-Google-Smtp-Source: ABdhPJx+htWwi+v3AtjfsW4JydR93mF82QsXr8O0IkG6rltx1oU1VGhRQ2z9X1SX8wNh1+xujo7/WA== X-Received: by 2002:a05:651c:199f:: with SMTP id bx31mr591962ljb.109.1640201491742; Wed, 22 Dec 2021 11:31:31 -0800 (PST) Received: from [192.168.2.145] (46-138-43-24.dynamic.spd-mgts.ru. [46.138.43.24]) by smtp.googlemail.com with ESMTPSA id bn30sm262179ljb.29.2021.12.22.11.31.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Dec 2021 11:31:31 -0800 (PST) Subject: Re: [PATCH v16 08/40] gpu: host1x: Add initial runtime PM and OPP support To: Jon Hunter , Thierry Reding , Ulf Hansson , Viresh Kumar , Stephen Boyd , Peter De Schrijver , Mikko Perttunen , Lee Jones , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Nishanth Menon , Adrian Hunter , Michael Turquette Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-pwm@vger.kernel.org, linux-mmc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, David Heidelberg References: <20211130232347.950-1-digetx@gmail.com> <20211130232347.950-9-digetx@gmail.com> <21212ddb-205f-71d6-0199-d75768eaf32c@nvidia.com> <41edc53b-5ed1-d524-2546-c3d1ee6cdea4@gmail.com> <6652ac84-36f5-0e43-65fa-04786f384f21@nvidia.com> <56dce9c7-397d-75b0-b5b8-18ce1084e72b@nvidia.com> <6dbc8205-5669-8b08-16b8-fe5e1acdd06f@gmail.com> <796eb3f7-80e2-bc55-fd52-43e76220f8c2@nvidia.com> From: Dmitry Osipenko Message-ID: <40983f6e-92ee-40d4-861f-06faea0113fc@gmail.com> Date: Wed, 22 Dec 2021 22:31:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <796eb3f7-80e2-bc55-fd52-43e76220f8c2@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 22.12.2021 22:30, Jon Hunter пишет: > > On 22/12/2021 19:01, Dmitry Osipenko wrote: > > ... > >> diff --git a/drivers/gpu/host1x/syncpt.c b/drivers/gpu/host1x/syncpt.c >> index e08e331e46ae..8194826c9ce3 100644 >> --- a/drivers/gpu/host1x/syncpt.c >> +++ b/drivers/gpu/host1x/syncpt.c >> @@ -137,6 +137,15 @@ void host1x_syncpt_restore(struct host1x *host) >>       struct host1x_syncpt *sp_base = host->syncpt; >>       unsigned int i; >> >> +    for (i = 0; i < host->info->nb_pts; i++) { >> +        /* >> +         * Unassign syncpt from channels for purposes of Tegra186 >> +         * syncpoint protection. This prevents any channel from >> +         * accessing it until it is reassigned. >> +         */ >> +        host1x_hw_syncpt_assign_to_channel(host, sp_base + i, NULL); >> +    } >> + >>       for (i = 0; i < host1x_syncpt_nb_pts(host); i++) >>           host1x_hw_syncpt_restore(host, sp_base + i); >> >> @@ -352,13 +361,6 @@ int host1x_syncpt_init(struct host1x *host) >>       for (i = 0; i < host->info->nb_pts; i++) { >>           syncpt[i].id = i; >>           syncpt[i].host = host; >> - >> -        /* >> -         * Unassign syncpt from channels for purposes of Tegra186 >> -         * syncpoint protection. This prevents any channel from >> -         * accessing it until it is reassigned. >> -         */ >> -        host1x_hw_syncpt_assign_to_channel(host, &syncpt[i], NULL); >>       } >> >>       for (i = 0; i < host->info->nb_bases; i++) >> > > > Thanks! This fixed it! I'll prepare proper patch with yours t-b, thank you.