Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1573710pxp; Thu, 17 Mar 2022 11:51:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjjFdEdNqsdPjG8WdRnZbkhZtLpzTit+LDz1hVNW2e9KtlUUQESevgmS21qiU8l3AT/CqC X-Received: by 2002:a17:907:94d5:b0:6df:acce:74ad with SMTP id dn21-20020a17090794d500b006dfacce74admr1806096ejc.180.1647543071196; Thu, 17 Mar 2022 11:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647543071; cv=none; d=google.com; s=arc-20160816; b=dO3z39jqFmVn5N/Wf9sJIOoNAud7UZEhK+pmRq5V71OW8sXpXMg/uq9aDbbQNqCbCf QNFNW1h61+d7oOsl3vt59PExFHtzzQoFP2LEdYJY4wzZ09zdeBEHI9kjUtExL1MCO/xv sy1xTUwhh8g1FXa+e7OEJ+dhIpEiNZTHy9/HZRHjAMnEiW0s/0vAPMX/nehiABxPfktO DNkVApN9Dyp3F5YOsJ4fjUzY2mUpZlJcLhLlRoQUyeBZZhKnCup6TCcmiG9AzsLhYaHJ zHOAZud5Qxy3zKA1ryGKfT/LlZL6lcWqLlaoU8iGum+oCyCI+4Y2YQBnb/JMOmAWvvSX rUcw== 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=L5IHFn00HIQl3H2oahnFXJb93x4vuq9jd0lMrLSC+gw=; b=M5csbKodoX+g/aoHoH0iH+Lp5gG5GRudW5LYPYrSuX90QFgswLNAZPW2B7tlmBRoZq T+hwkYq8Vy43dJT3CY+8o1r9etNVQd6OjLcTjg/Wh1L3xOGe6yjiUE8H76UFTWdDl9MS hH3t4tzYL9llhZtUMxhawyvmiTNhVJsqkhgkmFlF1ok65kOZ1T34f233aE1MXCUNtLza Lnp3o0zKwJ7GdiunEvQlvY1GlbtYFEgk8X4lrIWa5ik+30HW4qz2gOK4nX56V/6bCOPg tPxEwDduGtorfQiVTDLAPbHbDXucfS6khzYnm0KgJ6JTRcKo3+IZnVxhBOS9d1Yp0HEb kIrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Ls/9ZPI3"; 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 l12-20020a170906414c00b006df7eae4820si3246619ejk.519.2022.03.17.11.50.42; Thu, 17 Mar 2022 11:51:11 -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="Ls/9ZPI3"; 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 S235250AbiCQQTY (ORCPT + 99 others); Thu, 17 Mar 2022 12:19:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234696AbiCQQTW (ORCPT ); Thu, 17 Mar 2022 12:19:22 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC16811BCF5; Thu, 17 Mar 2022 09:18:03 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id r190-20020a1c2bc7000000b0038a1013241dso3447084wmr.1; Thu, 17 Mar 2022 09:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=L5IHFn00HIQl3H2oahnFXJb93x4vuq9jd0lMrLSC+gw=; b=Ls/9ZPI3hpUO7732o3igrqs51Xpv4GvP68O58CQ8GjmXfEnJ6GMa/Am8TYQ+Zs5kwM vGf3/hQStd46VBRsJjmJCWYSOyWJP0QKqV0j/g9Wwze5zApNFAERL3JA38SgMTaGSgfE go3hPmGYcIXYAQvHvLdZyAE5fryTPujQVMYDgfsec9zM4Nw7MBGddwvIY+2UivYJPs4H yYZkYeTFLbTshQgbaT9lbHx/4Q3PWIvlyvEbvnCfVGdIIVBvPar+SnbrOl93gWMUHp5A 4yj9H+TSRBLSCYjYh2QvZlhglK0EOit+cVrlEG76p5Nxzv53ZuiNdm8w+uzUUE0Y3tRR eyEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=L5IHFn00HIQl3H2oahnFXJb93x4vuq9jd0lMrLSC+gw=; b=1tWifBVwZs2trrMwFfhWAp1w7eEh+ojEUsMnyRcuiNKNggunE/+qkuq2PD9u1UdkBG lGHQqOFK73VzKPTg9e+skoHeqlhBOfYDHK+qXwp4pFVPYJscm6/mVNDV87pV2tERn+dX SPzmO4iL4r+fuqL/wGt2fvPXqmnLHTGL04mRFa4/x0StMZK0TZpVGIeijIURozatkmcf DAiIgwd73YfoQIo/2qGXPZ+cds7tVY7T9P7q4Yg849XUAoCycO86IWqpuG5Knx3Ltkjc xuM2GaA40MaTUBNdjUVPvyas7QJNL7V4bKbUejfY0u0G7FJWpVIvgPlki27bjQJsD8TB Yyxg== X-Gm-Message-State: AOAM531ztaZ05k40pH3LhNXahmSAifZUoFvyI45T0T8cyO9bEwKh6taZ b8g44ocmJNMocBSWxsiiCEx3CUeiHD+Zti5Hrkk= X-Received: by 2002:a1c:f616:0:b0:37d:1e1c:f90a with SMTP id w22-20020a1cf616000000b0037d1e1cf90amr12554136wmc.148.1647533882531; Thu, 17 Mar 2022 09:18:02 -0700 (PDT) MIME-Version: 1.0 References: <20220310234611.424743-1-robdclark@gmail.com> <20220310234611.424743-3-robdclark@gmail.com> <3945551d-47d2-1974-f637-1dbc61e14702@amd.com> <865abcff-9f52-dca4-df38-b11189c739ff@amd.com> In-Reply-To: <865abcff-9f52-dca4-df38-b11189c739ff@amd.com> From: Rob Clark Date: Thu, 17 Mar 2022 09:18:44 -0700 Message-ID: Subject: Re: [PATCH 2/3] drm/msm/gpu: Park scheduler threads for system suspend To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Andrey Grodzovsky , dri-devel , freedreno , linux-arm-msm , Rob Clark , Sean Paul , Abhinav Kumar , David Airlie , Akhil P Oommen , Jonathan Marek , AngeloGioacchino Del Regno , Bjorn Andersson , Vladimir Lypak , open list 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,T_SCC_BODY_TEXT_LINE 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 Thu, Mar 17, 2022 at 9:04 AM Christian K=C3=B6nig wrote: > > Am 17.03.22 um 16:10 schrieb Rob Clark: > > [SNIP] > > userspace frozen !=3D kthread frozen .. that is what this patch is > > trying to address, so we aren't racing between shutting down the hw > > and the scheduler shoveling more jobs at us. > > Well exactly that's the problem. The scheduler is supposed to shoveling > more jobs at us until it is empty. > > Thinking more about it we will then keep some dma_fence instance > unsignaled and that is and extremely bad idea since it can lead to > deadlocks during suspend. Hmm, perhaps that is true if you need to migrate things out of vram? It is at least not a problem when vram is not involved. > So this patch here is an absolute clear NAK from my side. If amdgpu is > doing something similar that is a severe bug and needs to be addressed > somehow. I think amdgpu's use of kthread_park is not related to suspend, but didn't look too closely. And perhaps the solution for this problem is more complex in the case of amdgpu, I'm not super familiar with the constraints there. But I think it is a fine solution for integrated GPUs. BR, -R > Regards, > Christian. > > > > > BR, > > -R > > >