Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9798241ybi; Wed, 24 Jul 2019 10:07:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkqR5aLqmqyQOEkbTvFDI9gQT2SWypBi4hVtDidvmmv93d2MaYxRzrvolLM6uNtI6B7gU8 X-Received: by 2002:a62:7552:: with SMTP id q79mr12420957pfc.71.1563988064846; Wed, 24 Jul 2019 10:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563988064; cv=none; d=google.com; s=arc-20160816; b=t+aVC36DhGirr03GLmBPHqmX6VG1b6lqOY5bmWg4xwEwIZXOcsj/kmHyv4u5kJjd4m g+M9VCutTR2PrHIRYwfLEisrS+hXZxVQdMrTcFWCZ5Dw6sZd2sff0ksTTS45VvJCCgoc cyy9Yv7rKh2q2QCdBNCJG3rstKP0djQGeppRXu+ExdOfsdpto9NJzvNd07vb7sSBee80 j5K8yryzyEkcD225FvCdxcWLGIwon1eJODZFT0Fd6jhcD1UlTaKwO/F2U8YuBRSXIEn2 NQssDvOPEwI9jCvB5HrCnfrv4dlhcedZpFFbtdrC0eytUWe0UIO/yLCXL42E8n/ZxOgr ZJCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7tJ8IJnGYGMqxchgchsbpS1t6mFFErqfShUyH9cIz0E=; b=g5g+cCBoHHv651wCp4U5cU8/IF96Q8LD12LiQi2iwEmItFjQru3K2RAueQBDPHdrLY ON30DRHTUH7H/m9qujmjfXlvkDyRluWY8Ou6yDIKkijGKhU6iBlLrEqJyaqtddSbbgkV KNAU/KCJkfzHtzfYIOVYuUZ9u4/9dD2JP8fqglFhtxMrMnJUSw3Or05o39yzjPvxV5vW rIcLU+JCrIoO3COYIMu4QAomSxSOXijkeqxIahdLFFDMOvdDdaHY6SL5a7gxUjNsWpmB 8PTDtx/bYW1jJv5gXSIvHRa8UiFzZP/o7WtOJRbiq8UEeXrZ/fioGaRcIUXtfBS9DiWc N0jw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si17832805pjk.57.2019.07.24.10.07.30; Wed, 24 Jul 2019 10:07:44 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727956AbfGXQkL (ORCPT + 99 others); Wed, 24 Jul 2019 12:40:11 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34202 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbfGXQkL (ORCPT ); Wed, 24 Jul 2019 12:40:11 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id 09C9B284CF8 Date: Wed, 24 Jul 2019 09:40:04 -0700 From: Alyssa Rosenzweig To: Rob Herring Cc: Steven Price , Daniel Vetter , David Airlie , Tomeu Vizoso , dri-devel , "linux-kernel@vger.kernel.org" , Alyssa Rosenzweig Subject: Re: [PATCH] drm/panfrost: Export all GPU feature registers Message-ID: <20190724164004.GA8255@kevin> References: <20190724105626.53552-1-steven.price@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This is definitely helpful! My one concern is, supposing userspace really does need all of this information, is it wasteful to have to do 30+ ioctls just to get this? kbase had a single ioctl to grab all of the properties, whether userspace wanted them or not. I'm not sure if that's better -- the two approaches are rather polar opposites. Granted this would be on driver init so not a critical path. On Wed, Jul 24, 2019 at 10:27:03AM -0600, Rob Herring wrote: > Adding Alyssa's Collabora email. >=20 > On Wed, Jul 24, 2019 at 4:56 AM Steven Price wrote: > > > > Midgard/Bifrost GPUs have a bunch of feature registers providing details > > of what the hardware supports. Panfrost already reads these, this patch > > exports them all to user space so that the jobs created by the user spa= ce > > driver can be tuned for the particular hardware implementation. > > > > Signed-off-by: Steven Price > > --- > > drivers/gpu/drm/panfrost/panfrost_device.h | 1 + > > drivers/gpu/drm/panfrost/panfrost_drv.c | 38 +++++++++++++++++++-- > > drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 ++ > > include/uapi/drm/panfrost_drm.h | 39 ++++++++++++++++++++++ > > 4 files changed, 77 insertions(+), 3 deletions(-) >=20 > LGTM. I'll give it a bit more time to see if there are any comments > before I apply it. >=20 > Rob --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEQ17gm7CvANAdqvY4/v5QWgr1WA0FAl04id4ACgkQ/v5QWgr1 WA0lzRAAi1aJutAUzh1Pr9kmsSkjB1v5aMpdDQPOT7W/hfgODztRyqINqZNWuItB Mmt45PyXLcFV+S+ZT7rzYtwRlm9HOL+N5iXakC8UgfqlF3lCYmosrAJHNjb3Czmk aJ0WAyXZOHpmDQI6p0ATa5H8sNJGy31UbtHVYfT7WO55XW2VH/F+f9nIoOJMA/SF L3ktWjzTg7PNBqSIPde/2xy2czZTXHyMwQV4aP8U7U/V0OViYxhXyO6Nyuy9XBsW OpO1Q6Ka+DO6o/rEAwWREFOfI/NI4ISeyJhW60gBT2uq6oaLh3ohseET4oM0/EkM BI4QcwuB1cwjfUFK7uuCdFR8KNhKRdJeE9iuw6+spU8/BUmBwsJtd6y+k2QVTfOq oiD8ebpNoFXdLncQcVYRz85q2idD0BvhNLoslFPRs/pX/kYPax6uppmXRZ98XOEt wN0Fg29ph8TmDS+fsyljPUd12pgEtb4EDMouJAwROGqSNqw7IjISYHaGH3oojGSt K5+Zx8halrk78aYFh9Wv+0REtrK2bzxPv4vd4pEMnS3oHtc37qNei5WXeL1wvjMa /L/cFSAw2cl3NN8Ex2+CKFstI1I702BOQMI0yoGCgbnFTjiWC5QpO1O4VZuFBhJg 1I6nA8xn4bOUxcrCYKiMmhylTL9BasZ9RDFQKk2ggWvayAR3/l4= =+QFJ -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--