Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1511264ybt; Thu, 2 Jul 2020 07:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG7B0y9lRlhb/ZzPQKe5RnyFyX8GR9REtlNtUW9/8j9oJcybwafEvYEawHe33rgA+yu0Bj X-Received: by 2002:a05:6402:a58:: with SMTP id bt24mr35956326edb.333.1593699527248; Thu, 02 Jul 2020 07:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593699527; cv=none; d=google.com; s=arc-20160816; b=mReWCI4xgpTMwpSL7AZdIbztWUaeB0rW3jVNcrSZlNKcyTfQdSvJwPZ3AeazwBU6L4 X8Z/CHahgB/JCA/PbBETxWam9OXzfXk99nNcKbLGl9TqpBfFDor+rR9f2BvbzPOZEfR8 vi3wvR7+WcRM0oX8nwhsEpJYaKWdQpe6UkeNMA32sdSyb6bfIwXlwSXgT7lyxthcS3E8 1Pt/frwMAK5M8KUbQ7Sfk5Bo3fixn1Yq1EPqYP+IqZkemYr1SI1ILESCHk3LdKtBkfKh X/Va3Zb7tVA20G1I4HeqDG6eXdR1N+nbnG7q/oq5wgGnHbA3ibuj5yBlilxcUehjd+72 dBVA== 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=9A7iY5vgoWTo7GNwa7G63eYFYvMacp50tlztFrDTtic=; b=zbwDvT4OUHJe+neBtmmiOGhc5RwVDTJMA68Gbvy0oA//34ebP4zJx9xTOnCKZdOAwD gQDaNeO3Ug6T8irGYP8adPRgHWRP8DEmyFpTtM/vj7N8gFZUjN1TuisPDZmqipGYB6Nw Kq4HoF8n+Lu2AG6ZAM9vlbyV42Fn2QQCLwEzHeAd2h5Jb0eFAmzw6sjvMpoj4njRVJOO fRAPGWES16MVGWjAraWZB599KfRSVOWZh2I7NYoVuZUq88OgfTadYCQIwqa0YTTYDIMr 6uSDhX9P2RqwYEr2BNBOGLk+ci3NvMSU3b2cTTVhTTsT+3H4+SD817RvI3cr4UUmjIXc V/Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=MTS+DY37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si5934315ejc.193.2020.07.02.07.18.09; Thu, 02 Jul 2020 07:18:47 -0700 (PDT) Received-SPF: pass (google.com: 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=@ffwll.ch header.s=google header.b=MTS+DY37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729556AbgGBOP4 (ORCPT + 99 others); Thu, 2 Jul 2020 10:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728041AbgGBOPz (ORCPT ); Thu, 2 Jul 2020 10:15:55 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97FDBC08C5C1 for ; Thu, 2 Jul 2020 07:15:55 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id a21so949673otq.8 for ; Thu, 02 Jul 2020 07:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9A7iY5vgoWTo7GNwa7G63eYFYvMacp50tlztFrDTtic=; b=MTS+DY37g24tK3D8pt2+U8KwQfmhQUXnYI74XgJj3V7kT/uYoUcT9IrsWGpHBoagcY qP2mCi82Yr4+2GBLslXn0mA3qDebBbuA63m8UPq5VJHYK3Q8yc9JNsMerUbq8w2R5vHy O0M9Xm4Ek/saTssTVrfAmwSbCKdT4MYzVS3Uo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9A7iY5vgoWTo7GNwa7G63eYFYvMacp50tlztFrDTtic=; b=RpYICL6mIjHLjj9Egvyoh5YJyc39LGiM4rgZfUhTn9Rrn5V5q2gll9Zqu4PJ5wi1Ty m1AaJYN6ehqbuOf1OI3XPu/QMcE+N607wgTkSKe5+cLE8vTkOjNEPC/m304g7zt0PVt/ /LaFH5gtmDX5B+BGtMw+EROx79DU7kaw+DqyCYJ7jw6my70F7HcMVaHwqgxV+hvHxLqD c83ZybcFSFsE5Qr+JTY9fDJZnyQfI7l12o2lhoIrqdtpyWzC5M/3ZxD249ACrW0muEpc 0iTcrHh8wHOcpK7dGydm71BRrzZeL1pJHEkquEtap9pk35hKHehSxJkhza1vtG4VaHMg +ntw== X-Gm-Message-State: AOAM532gFOMNG7/DNqHswWCOUKeuMgG9TC6SMrxHEt0imJ/5lKj1fydt QnjFI/zmJFPreMEfga1gc7sg84OBxWANYI6qJz6eW8Lm X-Received: by 2002:a05:6830:1d0:: with SMTP id r16mr15024239ota.188.1593699355009; Thu, 02 Jul 2020 07:15:55 -0700 (PDT) MIME-Version: 1.0 References: <20200702074759.32356-1-narmstrong@baylibre.com> <20200702074759.32356-2-narmstrong@baylibre.com> <8cBfZpkc4pHBLhihlvJMD_Hq1DEsNRcSY4Y8JaGwklMWcxiYzUMVEx7wH9f_DuCBMVUhXvOR0PcHVslILtKI2wdw79Nfih0N3VnrxfMQd08=@emersion.fr> <20200702131834.GZ3278063@phenom.ffwll.local> <044964ad-b927-57d7-9361-beda5c8d99a8@baylibre.com> In-Reply-To: <044964ad-b927-57d7-9361-beda5c8d99a8@baylibre.com> From: Daniel Vetter Date: Thu, 2 Jul 2020 16:15:44 +0200 Message-ID: Subject: Re: [PATCH v8 1/6] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression To: Neil Armstrong Cc: Simon Ser , "dri-devel@lists.freedesktop.org" , "jianxin.pan@amlogic.com" , Kevin Hilman , "linux-kernel@vger.kernel.org" , "linux-amlogic@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" 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 Thu, Jul 2, 2020 at 3:34 PM Neil Armstrong wrote: > > On 02/07/2020 15:18, Daniel Vetter wrote: > > On Thu, Jul 02, 2020 at 09:23:11AM +0000, Simon Ser wrote: > >> On Thursday, July 2, 2020 9:47 AM, Neil Armstrong wrote: > >> > >>> Finally is also adds the Scatter Memory layout, meaning the header contains IOMMU > >>> references to the compressed frames content to optimize memory access > >>> and layout. > >>> > >>> In this mode, only the header memory address is needed, thus the content > >>> memory organization is tied to the current producer execution and cannot > >>> be saved/dumped neither transferrable between Amlogic SoCs supporting this > >>> modifier. > >> > >> Still not sure how to handle this one, since this breaks fundamental > >> assumptions about modifiers. > > > > I wonder whether we should require special allocations for these, and then > > just outright reject mmap on these buffers. mmap on dma-buf isn't a > > required feature. > > Yes, it's the plan to reject mmap on these buffers, but it can't be explained > in the modifiers description and it's a requirement of the producer, not the > consumer. Hm I think worth to add that as a note to the modifier. Just to make sure. And avoids questions like the one from Simon. -Daniel > > > > > That would make sure that userspace cannot look at them. > > > > Also I'm kinda suspecting that there's not unlimited amounts of this magic > > invisible storage available anyway. > > -Daniel > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch