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.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 8F126C41604 for ; Wed, 7 Oct 2020 12:22:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32797206D9 for ; Wed, 7 Oct 2020 12:22:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="IxPec1in" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728310AbgJGMV6 (ORCPT ); Wed, 7 Oct 2020 08:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728301AbgJGMV6 (ORCPT ); Wed, 7 Oct 2020 08:21:58 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB57C0613D2 for ; Wed, 7 Oct 2020 05:21:58 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id g4so1966174edk.0 for ; Wed, 07 Oct 2020 05:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7rvcLVVp+iunfwmEIXwaT4iDFBQHHexJb1eiNV9hSvU=; b=IxPec1inBA3XKBVEkijHSe0RQpCGY6i5Zx4zjTGEvIdZRZSojpCqwegqlq2Nq47fA9 ETWPZvj3lKfnnCodpnQMTpne/EEaRSnqKApQLAY/QOOMuJ6ODlUD5K+xr8MH0mWFKI+v b4AQOPg5faD6fDmYthS1vWnOiZeopihoSJ764= 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=7rvcLVVp+iunfwmEIXwaT4iDFBQHHexJb1eiNV9hSvU=; b=eOP96ecuwPRhI4UfZSF8eqGPJGypQyJohH2wTMUnOjwEWrtA9rGJib4Ngq3SN0JcuO No4KpQnLCieIxVBFqqBl1GYjbaAT1q+AC8kR1mZgW30+vfums0yI613DOFoVPA78y8EM DbefgnIeEibIaMJmlB4zYy9i/70IbgTDnlIjoqQXLf9vC8T1D3/tp2hfhXqpCDIdoo74 AEI4SyMhDIh/XOhN6Z5rmk4jZVLpzNsI/pE+7B5Q0Ifez7x5oPiDlh2h69o5i7NUoIXh xSp/Tgefiu8XaWat8RCeWI+LK8QNskCLRgJUQLQdXy1E1XBGkJnhoNv+IPHfiIHJlCQv q0Og== X-Gm-Message-State: AOAM5330jetYYynYNpiz0S7ImalEHia+V91iJs1v+gm1APGvm6h47yy5 Q0K7X77oyMaI4Jafixgh7LXWR2w/KqRmag== X-Google-Smtp-Source: ABdhPJxaB0mdHYn4Dc+Qak2L5Aw8xnFQDw1s0eEYa/bd2WcuM4KqtNIxN1UmhZdoyTV8zHjTM8P3Xw== X-Received: by 2002:a50:b023:: with SMTP id i32mr3111683edd.377.1602073316403; Wed, 07 Oct 2020 05:21:56 -0700 (PDT) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com. [209.85.221.50]) by smtp.gmail.com with ESMTPSA id o11sm1379981edw.80.2020.10.07.05.21.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Oct 2020 05:21:55 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id g12so1905451wrp.10 for ; Wed, 07 Oct 2020 05:21:55 -0700 (PDT) X-Received: by 2002:adf:f2ce:: with SMTP id d14mr2420557wrp.32.1602073314520; Wed, 07 Oct 2020 05:21:54 -0700 (PDT) MIME-Version: 1.0 References: <20200930160917.1234225-1-hch@lst.de> <20200930160917.1234225-9-hch@lst.de> <20201002175040.GA1131147@chromium.org> <20201005082629.GA13850@lst.de> <20201007062150.GA10601@lst.de> In-Reply-To: <20201007062150.GA10601@lst.de> From: Tomasz Figa Date: Wed, 7 Oct 2020 14:21:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 8/8] WIP: add a dma_alloc_contiguous API To: Christoph Hellwig Cc: Sergey Senozhatsky , Mauro Carvalho Chehab , Marek Szyprowski , "open list:IOMMU DRIVERS" , Robin Murphy , Linux Doc Mailing List , Linux Kernel Mailing List , Linux Media Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Wed, Oct 7, 2020 at 8:21 AM Christoph Hellwig wrote: > > On Tue, Oct 06, 2020 at 10:56:04PM +0200, Tomasz Figa wrote: > > > Yes. And make sure the API isn't implemented when VIVT caches are > > > used, but that isn't really different from the current interface. > > > > Okay, thanks. Let's see if we can make necessary changes to the videobuf2. > > > > +Sergey Senozhatsky for awareness too. > > I can defer the changes a bit to see if you'd really much prefer > the former interface. I think for now the most important thing is > that it works properly for the potential users, and the prime one is > videobuf2 for now. drm also seems like a big potential users, but I > had a really hard time getting the developers to engage in API > development. My initial feeling is that it should work, but we'll give you a definitive answer once we prototype it. :) We might actually give it a try in the USB HCD subsystem as well, to implement usb_alloc_noncoherent(), as an optimization for drivers which have to perform multiple random accesses to the URB buffers. I think you might recall discussing this by the way of the pwc and uvcvideo camera drivers. Best regards, Tomasz