Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4578003ybb; Tue, 14 Apr 2020 09:59:02 -0700 (PDT) X-Google-Smtp-Source: APiQypLUdfgq4HrvSXwvks03l29S/plwNrCRupcVdOCwk47c/BZxytfiKAvw91tN8jERPUuY1pqJ X-Received: by 2002:a50:8b01:: with SMTP id l1mr15842286edl.261.1586883542437; Tue, 14 Apr 2020 09:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586883542; cv=none; d=google.com; s=arc-20160816; b=rXfLC5l6qJYj39gpdHr4vKH8aHZWXYzi87etsaf6h3vU3g3BpCc2k/2j3mJUfhAoCO sYyUfxvD7XIpykbBtsRupovosc7zK8wUzoflwWQvdoal9XTUWxez12VVbuRDTSKWmHj/ wRbgUa/hych8EjVEXRoa4IMPyNbvG4FOHLSCSSZRgVprBV4Fav+L6waCmgjh7LCgkBAH pUrZSXkQy+UIv9oWo4wv5aBkOe2nJT40mcX7vl1xWYC63dEAkV5esZK0sSZgTBVsZxSQ lTXE56CiCmpe/fGvYyNR8+XBlWKnwP+vyTdt/Aa0OKTvzJ0r6Oq54e6+TIdeQUP4Br3T 87hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=NH9riSJWIwA5MJGEKQ1bph+dSoJ7N2LR20v9on+n36c=; b=Fjx7Ud8cCeEHZt2Y1NGxQ7DgOrZU/aXGM6W7i4NwFYtSmVCFAYfoulRTETee0cLwPg KIPKO38J3zSYKf6DbxrRvcV8/BgPdf1FPg2wo6bF5nUTDeA+kpEtXQIYsgtCOEhSG16z FkDLkiXZk+wjbGuY9ogBn4oXB3ed1pmXknDjGj9UnCx0gMCQygaal2MMGuTln8WsjkzF p/joR9IrNQ+GrtJeyoH8QpnX9wN/V3Ze9pB/I+1+HeLvSo0hI5UsIc2ZwgVIzYePUMva PSOMtYs/GrXtgWOee/45LMx8b4hZaJqkjCO2A2j8WHa/cuJpFlO/nblzaKezlNtp2qyA nwnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DEfA6DnD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si1195477edu.502.2020.04.14.09.58.38; Tue, 14 Apr 2020 09:59:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DEfA6DnD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391194AbgDNQyR (ORCPT + 99 others); Tue, 14 Apr 2020 12:54:17 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58057 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2440696AbgDNQw6 (ORCPT ); Tue, 14 Apr 2020 12:52:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586883177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NH9riSJWIwA5MJGEKQ1bph+dSoJ7N2LR20v9on+n36c=; b=DEfA6DnDToVNektqackuxJE0Xrq80DG3HGf9ipu5rPxtHVlwa3XMWz7rd/aLpJ0EMrZSX+ gTtxuXotWmbXGfyGU2H2mT0+sL6x+aOGLcEFq1Z+Ws5khk0kGddUe16zZdNdDMCqxU7B7W z2nkN7nUvd8p1Sg1si8hmFikUXl1B/8= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-372-PidPBT5jME6izHRyTxvetg-1; Tue, 14 Apr 2020 12:52:53 -0400 X-MC-Unique: PidPBT5jME6izHRyTxvetg-1 Received: by mail-qt1-f199.google.com with SMTP id u13so2201376qtk.5 for ; Tue, 14 Apr 2020 09:52:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:organization:user-agent:mime-version :content-transfer-encoding; bh=NH9riSJWIwA5MJGEKQ1bph+dSoJ7N2LR20v9on+n36c=; b=GrSTyJyVRi5vfs2Y6gjTDrvDlzts65DelqWKQc9aJGdr1NG8OqwVO9nJ9WrIBlyHkg NQbUeU98ZyE7uS3XGc7R5JMRrnQ8FZUUIjVNswoittL/aar0SBQWUti0qjaPIZtUkI2H rBrAMM+FjPjF6dBiurmYmYwU17U5p8tDGF84W4N/ntCmjtiH5/kDqwwgQti/OI2+BNH9 HxwqzX1ZYtG68inoUKnhcC8y6NtRAQ+mA4sxeUh8jjSmiGQ88sbbM0IjsCt6PhhdfCQU faBeflIiXA8XTKEPSivMusAGuOGYKHPSRsurzZP/ViBBqhoR3w1lTD6jKrYZDGHyjw9k aGVg== X-Gm-Message-State: AGi0PuYxBl6kT5kUXAmeEIh5MgIGYjZFMt5J8cosd8A2YkwcS1vXb8e3 IZcCZ6pXwTALjHv2388JA7Lurn0ieb/0dPN7x/lFrq0MHywOdjCwvGyi0O/ruY0m0FfXKSklicj 2K2KINJopVLZnmbtXPPaa7KEx X-Received: by 2002:aed:33a4:: with SMTP id v33mr16397042qtd.289.1586883173353; Tue, 14 Apr 2020 09:52:53 -0700 (PDT) X-Received: by 2002:aed:33a4:: with SMTP id v33mr16397015qtd.289.1586883173059; Tue, 14 Apr 2020 09:52:53 -0700 (PDT) Received: from Ruby.lyude.net (static-173-76-190-23.bstnma.ftas.verizon.net. [173.76.190.23]) by smtp.gmail.com with ESMTPSA id c27sm11511330qte.49.2020.04.14.09.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 09:52:52 -0700 (PDT) Message-ID: Subject: Re: [PATCH 1/9] drm/vblank: Add vblank works From: Lyude Paul To: Tejun Heo Cc: Daniel Vetter , nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , linux-kernel@vger.kernel.org Date: Tue, 14 Apr 2020 12:52:51 -0400 In-Reply-To: <20200413204243.GL60335@mtj.duckdns.org> References: <20200318004159.235623-1-lyude@redhat.com> <20200318004159.235623-2-lyude@redhat.com> <20200318134657.GV2363188@phenom.ffwll.local> <96cb912809f99d04cd5cdd46c77b66b8c1163380.camel@redhat.com> <20200413204243.GL60335@mtj.duckdns.org> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-04-13 at 16:42 -0400, Tejun Heo wrote: > Hello, > > On Mon, Apr 13, 2020 at 04:18:57PM -0400, Lyude Paul wrote: > > Hi Tejun! Sorry to bother you, but have you had a chance to look at any of > > this yet? Would like to continue moving this forward > > Sorry, wasn't following this thread. Have you looked at kthread_worker? > Hi, thanks for the response! And yes-I think this would actually be perfect for what we need, I guess one question I might as well ask since I've got you here: would patches to expose an unlocked version of kthread_queue_worker() be accepted? With something like that I should be able to just reuse the delayed_work_list and spinlocks that come with kthread_worker which would make the vblank works implementation a bit easier > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/kthread.h#n71 > > And, thanks a lot for the vblank explanation. I really enjoyed readin it. :) > -- Cheers, Lyude Paul (she/her) Associate Software Engineer at Red Hat