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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 142AFC76196 for ; Thu, 6 Apr 2023 17:46:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48ADC10E0F6; Thu, 6 Apr 2023 17:46:40 +0000 (UTC) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C9DF10E0F6 for ; Thu, 6 Apr 2023 17:46:38 +0000 (UTC) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-93b8c095335so12476266b.0 for ; Thu, 06 Apr 2023 10:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1680803197; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=RAECb/3wNcHEoEDLKDANAykGZzZoDwXPK2wrIHEQ2M4=; b=VuuDK66XzIMzwP6ttaCqfnUgY9nG0smMaIRc2nItlYvdgub/p6Y5Aa/2Li187iMw48 FSSOONefopbdzJ9NJLaAgo+pTjRJ+YPqXb3OGyMqG5pyauXQCCsJvkWAv86EwxejwnHR ZRjXXsO6i2UWS8m+V4FYPkXIk+0oncskp5Vgs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680803197; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RAECb/3wNcHEoEDLKDANAykGZzZoDwXPK2wrIHEQ2M4=; b=W1XeWZ2c2gUHq2JsRyfVNsK1Y9Zt+KSFrsqL3yZpcizyE3Sx5LkhpxqHCJQt4CLIQL hvMYbyjCiq64CdmkCXjUmJBH8rXFdEPC33PQS80h8U6KC+FAIdE/YULGYT6cRDZ7gSHN tD4PoO/LxezU5zUynU1g6XBBMx4VFOIBbrvrNZmSU+q4Fzz4WbyFuqdB2p+JiPEZLy4z q18LS3FQjKBAGOe7JzDBA6N4ewpAnkSZoe4GTcYENCdxGbimOgpPsJBPoYWfq72HVYkt FRXA0tcFFETHKSsNYUqqdqG2Z5CNCyTuHO8GVZM1VK+gKTwyidw4ACD0IlWPGiQr1W6y 4b5Q== X-Gm-Message-State: AAQBX9c1zWtHOpu/vB45NapPhB26M5EawPXvB4QKLsAn9+3C6TmrWSNF U5wmYpM7vCOuxaYZQc4We69roA== X-Google-Smtp-Source: AKy350aYVOBsBs4/QQEvEUySoLjUIJYlbxbRczjqincoI9f4tnDptyR2vR64siqyySZnHr2/QV8hxw== X-Received: by 2002:a17:906:3f12:b0:947:8734:a058 with SMTP id c18-20020a1709063f1200b009478734a058mr5629604ejj.4.1680803196956; Thu, 06 Apr 2023 10:46:36 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-33.fiber7.init7.net. [212.51.149.33]) by smtp.gmail.com with ESMTPSA id kg13-20020a17090776ed00b008bc8ad41646sm1067618ejc.157.2023.04.06.10.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 10:46:36 -0700 (PDT) Date: Thu, 6 Apr 2023 19:46:34 +0200 From: Daniel Vetter To: Asahi Lina , Christian =?iso-8859-1?Q?K=F6nig?= , Luben Tuikov , Danilo Krummrich , Lucas Stach , Dave Airlie , Bagas Sanjaya , andrey.grodzovsky@amd.com, tvrtko.ursulin@linux.intel.com, Matthew Brost , yuq825@gmail.com, Boris Brezillon , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [Regression] drm/scheduler: track GPU active time per entity Message-ID: Mail-Followup-To: Asahi Lina , Christian =?iso-8859-1?Q?K=F6nig?= , Luben Tuikov , Danilo Krummrich , Lucas Stach , Dave Airlie , Bagas Sanjaya , andrey.grodzovsky@amd.com, tvrtko.ursulin@linux.intel.com, Matthew Brost , yuq825@gmail.com, Boris Brezillon , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <28d10733-b217-7ccc-4b8c-54bdc8249234@amd.com> <24fe6e14-0d0a-f874-766d-e8d045d1e80e@asahilina.net> <9500edc9-4e9d-9d64-b444-ea9523779700@asahilina.net> <30534307-24af-b6f8-ea9f-e4264997bf9d@asahilina.net> <2416c870-d069-defc-d14e-514e7db7d2fd@asahilina.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 6.1.0-7-amd64 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 Thu, Apr 06, 2023 at 07:42:44PM +0200, Daniel Vetter wrote: > But I think there's tools to make sure we don't dig a complete hole with > these it sounds like. I guess another topic for pestering the rust folks. Or to put it very bluntly: Could we make Arc at least runtime enforce (with the usual lockdep annotation trick like fs_reclaim) that and Drop is the final one? If that's the rust Arc linux semantics then I think my worries are 100% covered. And we'll sort out the trickier type based enforcement for special cases when they hit us. The downside is that this is substantially stricter than kref on the C side, but I think that's a Good Thing :-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch