Received: by 10.223.164.202 with SMTP id h10csp4331665wrb; Wed, 29 Nov 2017 04:51:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMY5yGPdLV2n3DEe1f5yG4IfNar2xC0jUHLIShrMv+APfShVh3RUHH5cvypVSX6FoTFjI42K X-Received: by 10.101.101.208 with SMTP id y16mr758614pgv.159.1511959875572; Wed, 29 Nov 2017 04:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511959875; cv=none; d=google.com; s=arc-20160816; b=TOmVTNi6f6d+EHzB/H4I8AIDqWplEDyvhQjEskuQe24rCxeRep45tBcg+/ppFGLSHw E1r6+d0Ozoh6lPAxL6mmJOoQdHqpzY8U/VaQ7gWDR6ayVT+FRKEs0PMam2MjVfaNxBap TrhADMCeURFpgZ3N2/3JkhRo8JORYCiEePZ9BC1BGYSr+VMpv6xYTgY0XZR04faDcOfo SdnAEqXrKyvN2IkJcnwQaIkGuK2ek9VaG0wvz+HC2oBAAVd09Tb9d6o94OoHHtXN5Xfd Yz4H/IzMN3myP9aMxjTgw1gVH5R0wAoC4c8C+8EEu2+RBNb1kFoUlAjr+XOI/i80/IU+ Ulgg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=DoBY76nPrvlJ0cwlfak3oP5nz1tkF06d1EQ3y0jcd18=; b=jwNdQas0OVSWvDCou7IQnt2tDQIu4x0B0Id4+rebfWP46CSXMOQH88l6L0ga7UCkY3 cg98m/Sm/zh1yPI1nLWDAL2zs90MVCC7FuVFSxrulCE1Geq5JsClogYXAuAD6AEvYSCP fhesVSpogeDjlhf/K5SNhrdpRMVzeSGUoi+ym1s+XF9COhDBkC3FRE0crJ258PRhpe62 B/ZvNyYGtloMJm6kbuNJMr7OSb7u10Zfq6UYM/9ks7N0mO9wwEGjctZ2lrjAG3oEA4z2 lfAcJxhcZDkPcTxkQo3L/EN3S10K4r7jBaJBtDeZVr2k7OpymlN5ahAc1YN7DYn/LoSu 0QCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=Hhj7ICud; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si1284405plt.76.2017.11.29.04.51.05; Wed, 29 Nov 2017 04:51:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kapsi.fi header.s=20161220 header.b=Hhj7ICud; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753900AbdK2JKw (ORCPT + 70 others); Wed, 29 Nov 2017 04:10:52 -0500 Received: from mail.kapsi.fi ([91.232.154.25]:40342 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbdK2JKs (ORCPT ); Wed, 29 Nov 2017 04:10:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=DoBY76nPrvlJ0cwlfak3oP5nz1tkF06d1EQ3y0jcd18=; b=Hhj7ICudzAdcJqfYe5+B6kpbHCFeL5B3eVjDvZo7LV/lqRb0ezX+BzwgpHrcjyADBMKhhE5dqbBfVQtNlvcxC7BGET0Q4Ai4iWLHRv9XAv7py+nhanUPqtKUY1xLfG38kEP/vXkl3BaYtL0iPMMb0eOAgj8gmz4NVcDgD37UTBvp3nidaPUn5JlS7qS2cARmQ+VhsiSCC2GMDXThr/Lk32tBoMPvK+QPE1DFnSzNP39J8lH/OYl3P/175I8S0CcQh5EwdfwnCSsON4kqPwceJAzv6+zH0GIypCFMxn/6Q9oHFfWCYNJCVrUXYoVeSjMajGbXmij4R+y0/CmAycDAKg==; Received: from [62.209.167.43] (helo=[10.21.26.144]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1eJyOE-0006fL-Sf; Wed, 29 Nov 2017 11:10:46 +0200 Subject: Re: [PATCH 10/10] gpu: host1x: Optionally block when acquiring channel To: Dmitry Osipenko , Mikko Perttunen , thierry.reding@gmail.com, jonathanh@nvidia.com References: <20171105110118.15142-1-mperttunen@nvidia.com> <20171105110118.15142-11-mperttunen@nvidia.com> <9c5676eb-ba6f-c187-29e4-7b331bd3962f@gmail.com> <38340901-7016-3444-5ace-64159b32f1c7@kapsi.fi> <1b35ec93-167b-3436-0ff2-5e2e0886aea7@gmail.com> <775a2536-b225-2d96-3954-7efab6bc5c3e@gmail.com> Cc: dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org From: Mikko Perttunen Message-ID: <794b713e-e4f9-0b71-d9eb-168d002ab6a2@kapsi.fi> Date: Wed, 29 Nov 2017 11:10:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <775a2536-b225-2d96-3954-7efab6bc5c3e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.209.167.43 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.11.2017 13:23, Dmitry Osipenko wrote: > On 11.11.2017 00:15, Dmitry Osipenko wrote: >> On 07.11.2017 18:29, Dmitry Osipenko wrote: >>> On 07.11.2017 16:11, Mikko Perttunen wrote: >>>> On 05.11.2017 19:14, Dmitry Osipenko wrote: >>>>> On 05.11.2017 14:01, Mikko Perttunen wrote: >>>>>> Add an option to host1x_channel_request to interruptibly wait for a >>>>>> free channel. This allows IOCTLs that acquire a channel to block >>>>>> the userspace. >>>>>> >>>>> >>>>> Wouldn't it be more optimal to request channel and block after job's pining, >>>>> when all patching and checks are completed? Note that right now we have locking >>>>> around submission in DRM, which I suppose should go away by making locking fine >>>>> grained. >>>> >>>> That would be possible, but I don't think it should matter much since contention >>>> here should not be the common case. >>>> >>>>> >>>>> Or maybe it would be more optimal to just iterate over channels, like I >>>>> suggested before [0]? >>>> >>>> Somehow I hadn't noticed this before, but this would break the invariant of >>>> having one client/class per channel. >>>> >>> >>> Yes, currently there is a weak relation of channel and clients device, but seems >>> channels device is only used for printing dev_* messages and device could be >>> borrowed from the channels job. I don't see any real point of hardwiring channel >>> to a specific device or client. >> >> Although, it won't work with syncpoint assignment to channel. > > On the other hand.. it should work if one syncpoint could be assigned to > multiple channels, couldn't it? A syncpoint can only be mapped to a single channel, so unfortunately this won't work. Mikko > -- > To unsubscribe from this list: send the line "unsubscribe linux-tegra" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > From 1585402922002572820@xxx Wed Nov 29 12:20:47 +0000 2017 X-GM-THRID: 1583223808868552366 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread