Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3389516ybi; Mon, 10 Jun 2019 09:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7K6KoTvlBmxHo9x8W3tnDw+xbY1EWQjuCyoiygzdItCj6GQyEbu/EXEGQlSrtUpReSb7l X-Received: by 2002:a17:90a:cb81:: with SMTP id a1mr21558328pju.81.1560183875520; Mon, 10 Jun 2019 09:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560183875; cv=none; d=google.com; s=arc-20160816; b=yznhjvMHEIw7HoAs2ohI3Xp4tYd9dAD1J2lF0tMrCdfBh+p1dxKo9GKHs6GyEoHFD9 Xa4sWjxl/IgXaZI2IhL5/3lXTR5zksxfTzIr6pJ52aecSjXlJw9FoHVLl1OkwGke3Mqs /LmFAHpF0OdRDJvCAOCBwQMfRm3/WQ/5K7WOgKyUVdsyoAf4FHQvyp3c1TWYuwxKFbga H6lz6+ZZUMJ9t7RHFGgbsG6jesTyH/zJEoJeqnPKKxwcHznuYinTVNk7FFdhROQVcp2r WsvFMqjkMHmit2zJK+U8OjagBXLUb6tR0eSLnXY2L74Zi/+B9b5xAYl9dEneF0EtSozu y9Eg== 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=FUq4suVrLDG1IIUGHRa6j68aD+lmlr5m3QrCVHn3MRk=; b=UdVMUe/DhyqIuQrcPNX+VRUjKevVl4nZX4CVS3umMLEfFOO6DrZHBmNjX9xnQd0Iqi 2rjNuykeICHcBLRHi5ABhYpocM10vNtF8RZEPLgJDLQd30iyj7oWpKMIqSJivJDV0aJz 91sGPGuz9ikodt5WTscwV/DWUVBKLBvJHG9g+DSoGiL/PkMmLekYiyG56pZpbi+p17S5 VP1PSSi+apFynyaW16Kt3jsvDyEZ11bIaeqzbCowrGUIo78fNr9RzdiqG4waaDTL0jGK V5Z/ftHIUcBvX/8ON9o7LGs8mQGseSTKrMnbXubKu9qYuXCWyc6b3Fvkcu83gwOIhye0 yPHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ebj/TmAv"; 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 m11si10132947pjr.100.2019.06.10.09.24.20; Mon, 10 Jun 2019 09:24:35 -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="ebj/TmAv"; 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 S2390368AbfFJPjD (ORCPT + 99 others); Mon, 10 Jun 2019 11:39:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:49610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390073AbfFJPjC (ORCPT ); Mon, 10 Jun 2019 11:39:02 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.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 4501620862 for ; Mon, 10 Jun 2019 15:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560181142; bh=FUq4suVrLDG1IIUGHRa6j68aD+lmlr5m3QrCVHn3MRk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ebj/TmAvxM0eiGfq3QcwS2BkcymUD0stm2bTsz0n8ZOJRWDPyP5QsRds40ChtEZ2C 4GnECJUzxfGHbm1yTUV6Am58NDs+mdLh34UCBUw+mhOLnFulQUc7uq+GZ8sgN5IQOh soytCp1XBOaDXaWt+KSm3yFKcFGhOOL6ITbKtjTY= Received: by mail-qk1-f171.google.com with SMTP id a27so5770244qkk.5 for ; Mon, 10 Jun 2019 08:39:02 -0700 (PDT) X-Gm-Message-State: APjAAAUhtq4+KL/lmqWsWPucwfgZs9PGm9QT1nVxpfRKeHAQ2i6asN+1 /i158Lg9QmbGM/tNhsVI3QCRKLtk12LRtbeyuw== X-Received: by 2002:a05:620a:13d1:: with SMTP id g17mr1603265qkl.121.1560181141516; Mon, 10 Jun 2019 08:39:01 -0700 (PDT) MIME-Version: 1.0 References: <20190520092306.27633-1-steven.price@arm.com> <20190520092306.27633-3-steven.price@arm.com> <155846303227.23981.8007374203089408422@skylake-alporthouse-com> In-Reply-To: From: Rob Herring Date: Mon, 10 Jun 2019 09:38:50 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] drm/panfrost: Use drm_gem_shmem_map_offset() To: Steven Price Cc: Chris Wilson , Tomeu Vizoso , David Airlie , Seung-Woo Kim , "linux-kernel@vger.kernel.org" , Krzysztof Kozlowski , Maxime Ripard , Kyungmin Park , Kukjin Kim , dri-devel , Sean Paul , 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, May 22, 2019 at 6:39 AM Steven Price wrote: > > On 21/05/2019 19:23, Chris Wilson wrote: > > Quoting Rob Herring (2019-05-21 16:24:27) > >> On Mon, May 20, 2019 at 4:23 AM Steven Price wrote: > >>> > >> > >> You forgot to update the subject. I can fixup when applying, but I'd > >> like an ack from Chris on patch 1. > > Sorry about that - I'll try to be more careful in the future. > > > I still think it is incorrect as the limitation is purely an issue with > > the shmem backend and not a generic GEM limitation. It matters if you > > Do you prefer the previous version of this series[1] with the shmem helper? > > [1] > https://lore.kernel.org/lkml/20190516141447.46839-1-steven.price@arm.com/ > > Although this isn't a generic GEM limitation it's currently the same > limitation that applies to the 'dumb' drivers as well as shmem backend, > so I'd prefer not implementing two identical functions purely because > this limitation could be removed in the future. In interest of moving this forward, how about some comments in drm_gem_map_offset() explaining the limitations and when it is appropriate to use the function. Rob