From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C994C433E0 for ; Thu, 2 Jul 2020 13:20:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5790920748 for ; Thu, 2 Jul 2020 13:20:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gxvSrJXN"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="eGu8Bzdj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5790920748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5OXmewjwG4F1Kjn6RXIlwpClrZwtfpJHdIeLUKKjA60=; b=gxvSrJXNuhOVtCD4l27eB8S/v izHD4kQfnWXoUbO7/UoVH9IzSEI2bOFVnuu2YTpe4OcwoGNEPtLUQQvCmVE4lm/F2HddfNQjT0tDN mxs6X6OjC0SpeB6xK4eWpTqUXkJDO1zy5v4Y3HgUHwgC+GrBUn14iZYYYtQSbbhfetoLRHm5pt1HQ i5EnpkiUOMFuPj1hrKXrvXWAxgOVHOT7P5X23wigBXlLuIKYwvVEnjtvFjW3Vcn/J8cFueVvcyRic wmj3ajTmGY9DbBrDHx0LMXu1C98qRZkg+JNNttAOPEiXu3EJyc5zO/y7lBd9uq3I23pzeFEQuIHXd JeiGVE7fQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqz6y-0003UV-CI; Thu, 02 Jul 2020 13:18:44 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqz6u-0003Sm-Nr for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 13:18:42 +0000 Received: by mail-wm1-x341.google.com with SMTP id g10so9076268wmc.1 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=pSM+Wh9/IoT3BXs1zjZzpGqmIMu2xn8ic3280Fv4G12aSBCou6qtAXE4gvxU159+ha Vr8synGO0uOXJEN5LzbgLfSJk1kUXNFo6lbKvnfLDZ8pu7roAHjjSflINFITSvtbATt8 yrROHQzET4tjnlr/Qz4t4ycD+7ZLAWlkcFINEKzo+xqr1pes9/rOpLPBEc+dPBA6pTHD HQwaDgEswIhWSJaqzK9+CAg5napH8n4dJyC45RPd/IFWqQPZfbS3O414dB7kCikez8ka pKDLiDIighs+T2PJY0wiI+5cBSdZmSBiXu5J7kACqJfxNccRQsNVaItX695925TGYY5S PXDQ== X-Gm-Message-State: AOAM5321XTfA0nGjvnmJ8KsSY1bkhvElEu/TJavBauu9S+/kByHnMYny 9qER7OgotIfaFXoEirV2A55s6Q== X-Google-Smtp-Source: ABdhPJws7m0llQgCQ3WJpZXwOAgYwXtJKDNub/jxlHaBemJ1pVcESAzqOIr1Y2qhVoHzQpn8e5986g== 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 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-Disposition: inline In-Reply-To: <8cBfZpkc4pHBLhihlvJMD_Hq1DEsNRcSY4Y8JaGwklMWcxiYzUMVEx7wH9f_DuCBMVUhXvOR0PcHVslILtKI2wdw79Nfih0N3VnrxfMQd08=@emersion.fr> X-Operating-System: Linux phenom 5.6.0-1-amd64 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_091840_811461_487CC7FC X-CRM114-Status: GOOD ( 13.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "jianxin.pan@amlogic.com" , Neil Armstrong , Kevin Hilman , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "daniel@ffwll.ch" , "linux-amlogic@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel