Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp367648pxu; Wed, 7 Oct 2020 05:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygNGUbN8np8Wf2Mrmu2Ht/QN/oyi98qr/vCQF1mf92zx5dnF74x795RlYxmCMDRh1UUKbk X-Received: by 2002:a05:6402:142c:: with SMTP id c12mr3412399edx.41.1602073477748; Wed, 07 Oct 2020 05:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602073477; cv=none; d=google.com; s=arc-20160816; b=ko9DNBGH/iXCCI65iSRSST+RCDCiBs33pS7reEosEA2h/fIADmbchtpS9/gIZ31Bcq P16qHMqbohNx0VEu+CP2OsO/TNLkEyGsOkHSvkssBWvwBNReHcoECVoE/4OnrCZOflSz R89CaS7vVagvfqSO5OgYfPYjzTGojaeU6fTpi9gRMEUydU+IWxSXFN+MxukIObTlLcJz vAmGH7fXAT7FY8AZtPOmOlPqqKRfedLIbPHLhf8j6f8ouJi6WSN1lCGJn9HUpTewgGcC 93Pa+QoT5Jbj+KspP2L/+Wh685xuo+l1TKcPKyN7v0uM2y3lvegzT72nITQVr14H9rF3 KF/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7rvcLVVp+iunfwmEIXwaT4iDFBQHHexJb1eiNV9hSvU=; b=0KjsyPY/puwzagFCjDza2dNsQpzKY4WuBvzhka2wr+kCbtbHsTXdj7EfU8vdCY2/OJ g7HuzY6N1JIo/9jmEcYMrtH2oX7u9gVCgaZfkTTFJibzbF5VgHYwxLFFZ+EPdtFE28yp lmIkBJkRa5XkMwwA/o3Af8mkq7n3P3s5hnmj3vJO4ffmHd7ifwkty+p733glnRhdbUMv 365Sq0ZebAwse3KqwTR4WlMlddhXA9TgI0p+8XyvluGyX86Part2PmNZBBcDcYtYpYeG +Y8hQiWnD8xBc+Do8fbkBjwsxPZCQaff/1X9xUZG0R8K9MEe1dL/OAVaTw0QO11XQ1dl Lc0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IxPec1in; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt1si1317391ejc.566.2020.10.07.05.24.14; Wed, 07 Oct 2020 05:24:37 -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=@chromium.org header.s=google header.b=IxPec1in; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728309AbgJGMV6 (ORCPT + 99 others); Wed, 7 Oct 2020 08:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728300AbgJGMV6 (ORCPT ); Wed, 7 Oct 2020 08:21:58 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8703C061755 for ; Wed, 7 Oct 2020 05:21:57 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id c22so2673929ejx.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=d/4Dc8f0IAD6dffdk5WQ629RZdEqQDN3oD8/QgDqDPKzWZdgXm6yN4kceIiVpzK9Rx FRzVp6QAUtv0K8yW2UZvvRrbDxNUbiQEi3cATNq6MlDUvFaBlJ9AV7N6kAUmPj/iyMSH 9MOEsAkL/SjbPwiGh8TZ9JYFZo8bB532+4gptSHWg0tucNbdKM/lC6du6GyeTCDb9qo6 Zs60bWw8D9zFQsL29wfrj4R7/mkHw3X2cMZN42TV3wcz7RSvO0Dhvo5TR5+/N7mZXLlx c4DF2RJ5g4+pNqgPQsdp5/ftZoJLylm8re33vxzPFfyP5sHgedG3l05IbMnqpIA8KxuR V/PA== X-Gm-Message-State: AOAM5315lhcrmJ4PN+g1b2FPF0aLGYraS/py/kXBLBEPUwGGKzvuTUXW Y35ASJibuHtjMVPQIQYyPhaBa/VcBIjQmg== X-Received: by 2002:a17:906:c095:: with SMTP id f21mr3240036ejz.108.1602073316327; Wed, 07 Oct 2020 05:21:56 -0700 (PDT) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com. [209.85.221.47]) by smtp.gmail.com with ESMTPSA id i14sm1409441ejy.110.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-f47.google.com with SMTP id n6so1614509wrm.13 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-kernel@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