Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1468524ybt; Thu, 2 Jul 2020 06:21:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLGhIlZ7wNR4yDyu53G/5t4QXNaG66CYG1gzhrkNVVFPkfyKJtwqsw//+Zdd1kUNb1cmXi X-Received: by 2002:a50:a451:: with SMTP id v17mr16675519edb.256.1593696065733; Thu, 02 Jul 2020 06:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593696065; cv=none; d=google.com; s=arc-20160816; b=PXIZUcCwp1PIFGCEeGBgF9b6/tXjFEwdPW6Nkz6i/aj4Gn0PZah1gcszLfUGErEQbB GWjYbvWYdxq6BD2Kxp3OtmZCjnpnuQoKrO+17WJw4bwEUSl9clgyG8AvU5KBMVsNTdTg l6qpvx4SVQikVLi2G156/lcTB7dN2R6lAoPwe8kGrshx1iC6UO8C23FPSDdwriKYswQY piGoVWAmkVPbI01FD0OWZppjW1khpNvb3Gw8TdYpeI+mFKP9RzidDpryAomrlHPSpyhD uvMifAU0lDk50scXPxGkoL/Kg79q5+qhC4k8BNeyTmH4yHMnjnnjIoO+9usf7+RpizXK A18Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=Cuvm4PH9ymZejClh9/IRJruxX3XybrluMfPe5pcP0ik=; b=i9001ikLLbOfjJeI2pW9NIODOhshr/wpamnLCP+YboR/Z/bPAJYYAf72ts02rq2vUq 9k0Zcr2BLfkITBMJiW7WJ3WJYzuM/ke7rJIQXBKmRj/FTMc9WNcq8fNFrqFjH51H5tEh e6afMx8cwM8uoteT7qTKy2x2SV0syPT0Yw1Vi6kYJ9c2gkUa/KFuT2kPYCAU59NVTcl3 PYUxu8wjjU429dAy161mMA/EUryTTv0aXqa+/zt/6j6H4afvp3n+F5DhY9hTFxaYl5PH ciGPP2qLPyoPBqKPeaqapRUgh/YXOvId2Ny4gIGCvhHjyi4IJ5FbHz85o60XItF4OcSj GbIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=eGu8Bzdj; 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 o23si5688352ejx.620.2020.07.02.06.20.42; Thu, 02 Jul 2020 06:21:05 -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=eGu8Bzdj; 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 S1729067AbgGBNSj (ORCPT + 99 others); Thu, 2 Jul 2020 09:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726560AbgGBNSj (ORCPT ); Thu, 2 Jul 2020 09:18:39 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF409C08C5C1 for ; Thu, 2 Jul 2020 06:18:38 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id g75so26731711wme.5 for ; Thu, 02 Jul 2020 06:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=Cuvm4PH9ymZejClh9/IRJruxX3XybrluMfPe5pcP0ik=; b=eGu8Bzdjv2Xqb78qCTzwgtJgVA38HsDO3DGT9ZmJH3Q+H8c4RcNNutL98+WSuTQbu9 KEsOqEyXvy5AJTLhH7zsr6WVXJ/2xkTTcxjU/AKDadOCUJ+MfKid0+RVbgqG9/2wBZ0l 4Cy9lOPEBPLmQ33W40GnOmEgKAZ8Mt8Y5cXII= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Cuvm4PH9ymZejClh9/IRJruxX3XybrluMfPe5pcP0ik=; b=UyBmSgqgkZLiQhnZCkJQzVZJu08POKH3iyQ3vy5NJTPJaTjHpoMti67azMniKnla+I Ue3YJaRq4iNJftNtErlxtPqgh3s8jcSzcQzKMBvgtSTPPFKGpTbB6j/Lekb/BST769Mm /n2PUWtYahJz16rx9l7i4cIiDr0qG+enCIANivNaBgQk2sKlxqaExRasn3k/xezEdmQs GfhEDx9MuRIHfxum+PSlPimktSz/Xk2TI07iAIF6pbzrlsumQzVO8FVVFbwS3C+dWQ56 Yvy9LbMFfhYmAUtvPdKlfa0I4JIekewEP01FXmBh2atUX11xrgcrJ1wOfBSo2ulrTxM2 vYFg== X-Gm-Message-State: AOAM530gMmkL0lfxnuizJ2ukEt6aCWK55MyT4DajLhFno8bAelzke7xq fbMczwDxleXWqUb7Mk/3zWrIOQ== X-Received: by 2002:a1c:2183:: with SMTP id h125mr33648435wmh.83.1593695917752; Thu, 02 Jul 2020 06:18:37 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id v5sm10646766wre.87.2020.07.02.06.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 06:18:36 -0700 (PDT) Date: Thu, 2 Jul 2020 15:18:34 +0200 From: Daniel Vetter To: Simon Ser Cc: Neil Armstrong , "daniel@ffwll.ch" , "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" Subject: Re: [PATCH v8 1/6] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression Message-ID: <20200702131834.GZ3278063@phenom.ffwll.local> Mail-Followup-To: Simon Ser , Neil Armstrong , "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" References: <20200702074759.32356-1-narmstrong@baylibre.com> <20200702074759.32356-2-narmstrong@baylibre.com> <8cBfZpkc4pHBLhihlvJMD_Hq1DEsNRcSY4Y8JaGwklMWcxiYzUMVEx7wH9f_DuCBMVUhXvOR0PcHVslILtKI2wdw79Nfih0N3VnrxfMQd08=@emersion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cBfZpkc4pHBLhihlvJMD_Hq1DEsNRcSY4Y8JaGwklMWcxiYzUMVEx7wH9f_DuCBMVUhXvOR0PcHVslILtKI2wdw79Nfih0N3VnrxfMQd08=@emersion.fr> X-Operating-System: Linux phenom 5.6.0-1-amd64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch