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=-4.0 required=3.0 tests=BAYES_00,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 33B1BC433E0 for ; Tue, 16 Mar 2021 17:03:19 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8C8F165107 for ; Tue, 16 Mar 2021 17:03:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C8F165107 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc: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=xxHLn28wfaubb6MXvJh2dkxvyBaQz4k5955YoYkGN1Q=; b=BhTBDA6YPuHNVF75XADLTaXsr wKnENQvuKF9SNTSRmDW3kd5ROGj6c8HfbdsM3/p/8cW56xv2Cc/jEsgDpExSBW/T6Bwbp5Y2y5c5A eBTtYaWMjtXR82c5gXaoUHh/zzl6JKQme23GMMUywcT7qU3VMvhKI2m+w+udGjV53+uuO+Hk9EFrM Lkrzj1oySAv2OBi+kdjCg4UEryU9ANGMEmVggRZoAkEzr6x9l0lrCTgd5MlmnoLyLh/vv8BBmxg3K ondZV5BJP3qVP7Rv/DJSf3ymlfDnTtlNtIu7mBo5BLNlSgIB11EIQW+/lFcMfi37QMr/n8vKrXZ6w 93sXamUJg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMD4h-001IXU-22; Tue, 16 Mar 2021 17:01:45 +0000 Received: from casper.infradead.org ([90.155.50.34]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lMD3B-001HDR-5L for linux-arm-kernel@desiato.infradead.org; Tue, 16 Mar 2021 17:00:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nZWmZIikdIqUXKBumu57DbQjqCe7A1JBHSVghyYvFqQ=; b=dIrVhYw7bPP4ttWa7NL3R27MKa KyUD/H24QkdGcP9DuFv5nwIFtZqYGR6Ul0TltL3rD4JAouZuBCZ6lF5wkjxsV2rZVRQRZbpH4s7kI txtpJcRtrWpvFaJORU344KyNSyVvuzIVIDWMxlwXp7JdDiEIiX2p5RwEB2hwX2vvvlepE7KH4gnWH A5ZG0tnV4LVhQwnbQQBN1JuJglXk4e60N6FtZpxvjC93P35IwNo55p581YCbtRIIqEcIStoRO0Yoc lNkNkCjSg3BYK0cDWCItnKyPgKofzXiE4e3VJXF9Km+YyE0MbOvCeENKEqzIupAqH8Lh5nFMA/0h0 P237phhQ==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lMBtF-000FyW-8d; Tue, 16 Mar 2021 15:45:53 +0000 Date: Tue, 16 Mar 2021 15:45:49 +0000 From: Christoph Hellwig To: Daniel Vetter Cc: DRI Development , LKML , kvm@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, Tomasz Figa , Hans Verkuil , Daniel Vetter , Jason Gunthorpe , Kees Cook , Dan Williams , Andrew Morton , John Hubbard , J??r??me Glisse , Jan Kara , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Laurent Dufour , Vlastimil Babka , Daniel Jordan , Michel Lespinasse Subject: Re: [PATCH 2/3] media/videobuf1|2: Mark follow_pfn usage as unsafe Message-ID: <20210316154549.GA60450@infradead.org> References: <20210316153303.3216674-1-daniel.vetter@ffwll.ch> <20210316153303.3216674-3-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210316153303.3216674-3-daniel.vetter@ffwll.ch> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Tue, Mar 16, 2021 at 04:33:02PM +0100, Daniel Vetter wrote: > The media model assumes that buffers are all preallocated, so that > when a media pipeline is running we never miss a deadline because the > buffers aren't allocated or available. > > This means we cannot fix the v4l follow_pfn usage through > mmu_notifier, without breaking how this all works. The only real fix > is to deprecate userptr support for VM_IO | VM_PFNMAP mappings and > tell everyone to cut over to dma-buf memory sharing for zerocopy. > > userptr for normal memory will keep working as-is, this only affects > the zerocopy userptr usage enabled in 50ac952d2263 ("[media] > videobuf2-dma-sg: Support io userptr operations on io memory"). Maybe I'm missing something, but wasn't the conclusion last time that this hackish early device to device copy support can just go away? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel