Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9797848ybi; Wed, 24 Jul 2019 10:07:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5CdtubWR3osDYN4ct4p1yHVHJKOfZ0GoK/LKU/GS9tD6x2wsOx9emB1daWRsV/IUnlZEw X-Received: by 2002:a17:902:654f:: with SMTP id d15mr81755338pln.253.1563988042453; Wed, 24 Jul 2019 10:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563988042; cv=none; d=google.com; s=arc-20160816; b=ShZv6AxGT0+y9AZj4I3ncQ9cEkZSpw36DU+DX24rC/0F7fASfPaOuTP5L5csifah2C fkoG0o9jxJFSMNMFrqKWKKS3e6b5q2MLi0p0eQfXbbFwzG0U2RX3BvaqgcsNhZ7HS1hP p8c31NaFZM1AL7fKi3b8gGTOQflvJYs05Y/zBRaVzlwhHm2VI4U1h70LtpLdHPlfovgv LoLlniNzHpC5Rsg6nd0AjH7qGv9DKssMGFIb+yENMA/9eyVGUJm/x06w6SyFQTIe5ao7 OMp14xI5eE1hwRmgeuz8deuTtZ2XKXp5f68uR1aEiFtM/Q+cauSDtUfnM7AyQABz6YtC 6VFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HCOBwaOmDwCGd4CsWvxeMUJ2ZL29C+02dFRJHGuJj3g=; b=hELSCzJsRxjeOslCL1aH7K7QU9vkfOrs8p2poEqWcEygSr9ns58S5TV39xWBS7d6pS VaUrx322OydzVoaYw3WmhDFTv0vbo9XUV2G11eiqzvU/yh/Y+ILLKifn4XzkknVbrWZW NcS507tlBn9WBVHXpyvadO+xwtQ40FsbHHyh96pYtHKsR9MgPVe+ZdKykdz8F3GEe1rZ Nu68b35YT57RYI0vx8qFyuO+wqCU16TjuMCZxS5JgI7WY9boMs01a9/QLqwgDCaQhBLd FqdmwUge0d39esPV4+dmlAoKKjylDGndRWeUiLXMpm6JKQ+KKPi9vDSaCV0vPBWqIuZY Cfgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m8VMnvra; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si12538170plh.137.2019.07.24.10.07.06; Wed, 24 Jul 2019 10:07:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=m8VMnvra; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387595AbfGXQpY (ORCPT + 99 others); Wed, 24 Jul 2019 12:45:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:57714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387587AbfGXQpY (ORCPT ); Wed, 24 Jul 2019 12:45:24 -0400 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 53B6821951 for ; Wed, 24 Jul 2019 16:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563986723; bh=oK5t/PL8WcOVCFcv86Gw02DGqzqgmltoUOuxGNqt6Zc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=m8VMnvraXywFQynfV8V3aXOYEnGYm741q6++csDVAfQDWzNSrzMOXX2FPtus/HCMT p9cc03h+ORrk6+h+ooxu/GmU+b3duUc01qQmVvKeGQ036aE7jcP5Cr3mwARAzIH7p6 HRwqCbKuxSe4MmnlUD3GoFva2hyc/Xanj97WWIW8= Received: by mail-qt1-f171.google.com with SMTP id a15so46120184qtn.7 for ; Wed, 24 Jul 2019 09:45:23 -0700 (PDT) X-Gm-Message-State: APjAAAWCfzO6HBjn9FZJWIL37SJ7QQsCrKsJBcJanMMj422wjvfu9loF ZdjvrNqKQ/ONGmXxyeheUg0+IqOPtJEqqJwHkw== X-Received: by 2002:aed:3f10:: with SMTP id p16mr58310435qtf.110.1563986722543; Wed, 24 Jul 2019 09:45:22 -0700 (PDT) MIME-Version: 1.0 References: <20190724105626.53552-1-steven.price@arm.com> <20190724164004.GA8255@kevin> In-Reply-To: <20190724164004.GA8255@kevin> From: Rob Herring Date: Wed, 24 Jul 2019 10:45:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/panfrost: Export all GPU feature registers To: Alyssa Rosenzweig Cc: Steven Price , Daniel Vetter , David Airlie , Tomeu Vizoso , dri-devel , "linux-kernel@vger.kernel.org" , Alyssa Rosenzweig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 24, 2019 at 10:40 AM Alyssa Rosenzweig wrote: > > 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. I think this ship already sailed when we added the first one with GPU_ID. Also, at least etnaviv works the same way. > > Granted this would be on driver init so not a critical path. Exactly. > > On Wed, Jul 24, 2019 at 10:27:03AM -0600, Rob Herring wrote: > > Adding Alyssa's Collabora email. > > > > 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 space > > > 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(-) > > > > LGTM. I'll give it a bit more time to see if there are any comments > > before I apply it. > > > > Rob