Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4250391pxk; Tue, 8 Sep 2020 14:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7xDXRruosEutE7DPfwTe3srZww9tlkqKeT4Bp4A3xuRJFHKMi73QA9Tl8FRhA2fKrDlNu X-Received: by 2002:a17:906:a1cf:: with SMTP id bx15mr504920ejb.231.1599602382564; Tue, 08 Sep 2020 14:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599602382; cv=none; d=google.com; s=arc-20160816; b=motgYejTY44RQ33o0GM3AiAH8FRVGyhWInXvr1yT2JAGigPvua3uN2Q/F+r3fY8QNH wtS0sSeEvW0vxjuSN2s8G8tx8L7Q7OW5D8jEVcpwQ+Z5J4JR9Ci0OmjS9drQXz0h8PpU cSKrTy6kIVO/I/6lmqVdjDSWSZ6+HyiDdXHrm7/yl9fNlXcDMVbTp8GZjZ2yXdMdqERS 5CM6shgb68ig2hWW7dO32Td/sNYJvq0A+B/KnKCwjqeOvw6iIq78Cd258iOHg+9RY57n nHvQlLnIeJq/oAhNmeJagOJzQQLEeqeH+neThUJ+XQVaSXkElxNq0cRlob4FqhitFe3V Q7lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jS8sUgXZwYogdhE8faZPSTSu9lavhbYazTXnxbo7L0Y=; b=nQn7UC1TBNaXVSW+lWy1w4Igr48JKdEdCVB9bQB3Xwzjw8rYk7O4HCciOuwXoIQ9qa svz6q7KhYdNBviMJbJWWJBzS9jOZRvz3fXRwdRfYaGroO2ff/xqG4Vg00O4st9idCzp9 iuMx5G1tW4CU/gT+S49eJfMzVc6yrYEGpjoWa6H6dQwUWcPbnVE5RduMk2XWltmLCX1d fh+D9sQNFarzO8fMb/wW2/WALJ3BT2uvqPkjV8SNgvw7wXJgHqEYYW0Svlb/LcfDOXgL lb10k9qPxi0Y7pEJRVgNVO3q+ydOpnClkqUjIZT57Sri0j6uSjs62BwgKr9VDFqO/ZCR ZhRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lfCJDFSH; 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 lk17si213911ejb.188.2020.09.08.14.59.18; Tue, 08 Sep 2020 14:59:42 -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=lfCJDFSH; 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 S1728443AbgIHV6m (ORCPT + 99 others); Tue, 8 Sep 2020 17:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726560AbgIHV6h (ORCPT ); Tue, 8 Sep 2020 17:58:37 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC15DC061755 for ; Tue, 8 Sep 2020 14:58:36 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id e23so601883eja.3 for ; Tue, 08 Sep 2020 14:58:36 -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=jS8sUgXZwYogdhE8faZPSTSu9lavhbYazTXnxbo7L0Y=; b=lfCJDFSH4WNRTmbAcJYjRD+buzZb/gDYcKGttjCwJY3pdH2uFHyyQPqQxoVS8Kuh7/ jkwWA1Xsn4mL6jHX5FZ7TdoDtYqIk8aG99uJdx93Wwtkq1DUZVoNyodIQuqU1CKwDBkM Lgy6IydpZ+3XwxYW6e2HTHgSR6cnKySHDqsVc= 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=jS8sUgXZwYogdhE8faZPSTSu9lavhbYazTXnxbo7L0Y=; b=n5xmCQSg9mm/OE2ArEGGaLUJksnIIuynxNafvxrhHkHGyCrGx198WFpPLoi6pn6y9q 6N4TNGCE+Cf56Fw4DSN5S8KkZq1fKAs6GDJl7GHMiq/WpyTaf6rMwlfLqEp+hVeFxESF WX23yQQjAJEzcwdWevKi4dRg88YMG82j1dX/VAVGRKQs1q9hRVVHUY4/dAKpAXbqAubQ ikBuLdhweCXosLaRGv7Ka/MX7JHKoOZvsweYaUNaS9/OL5b9JwpSwSSRU1xW9uj7/tY/ /cXG469kbnfrtXSjgLx0Dr/euDABkHbK+WzYmnj2b9xLTZgnCvQzYsKgOpgeVDH6wv+/ gFeA== X-Gm-Message-State: AOAM532WIIVvhd7h17+LceczWTRifn/eJoDz8dekqbXKEV+p56UuDQLO iWHsYnH7P4W4jOHnt1eKm+O0WnO8wc+uMA== X-Received: by 2002:a17:906:9604:: with SMTP id s4mr593227ejx.182.1599602315085; Tue, 08 Sep 2020 14:58:35 -0700 (PDT) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com. [209.85.128.45]) by smtp.gmail.com with ESMTPSA id ec11sm323966ejb.123.2020.09.08.14.58.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Sep 2020 14:58:33 -0700 (PDT) Received: by mail-wm1-f45.google.com with SMTP id e17so431990wme.0 for ; Tue, 08 Sep 2020 14:58:33 -0700 (PDT) X-Received: by 2002:a1c:c20a:: with SMTP id s10mr433507wmf.55.1599602313215; Tue, 08 Sep 2020 14:58:33 -0700 (PDT) MIME-Version: 1.0 References: <20200819065555.1802761-1-hch@lst.de> <20200819065555.1802761-6-hch@lst.de> <20200819135454.GA17098@lst.de> <20200820044347.GA4533@lst.de> <20200820052004.GA5305@lst.de> <20200820165407.GD12693@lst.de> <20200901110617.GA13232@lst.de> In-Reply-To: From: Tomasz Figa Date: Tue, 8 Sep 2020 23:58:22 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT To: Hans Verkuil , Mauro Carvalho Chehab Cc: Christoph Hellwig , Linux Media Mailing List , Linux Kernel Mailing List , Sergey Senozhatsky Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, Mauro, On Tue, Sep 1, 2020 at 5:02 PM Tomasz Figa wrote: > > On Tue, Sep 1, 2020 at 1:06 PM Christoph Hellwig wrote: > > > > On Thu, Aug 20, 2020 at 07:33:48PM +0200, Tomasz Figa wrote: > > > > It wasn't meant to be too insulting, but I found this out when trying > > > > to figure out how to just disable it. But it also ends up using > > > > the actual dma attr flags for it's own consistency checks, so just > > > > not setting the flag did not turn out to work that easily. > > > > > > > > > > Yes, sadly the videobuf2 ended up becoming quite counterintuitive > > > after growing for the long years and that is reflected in the design > > > of this feature as well. I think we need to do something about it. > > > > So I'm about to respin the series and wonder how we should proceed. > > I've failed to come up with a clean patch to keep the flag and make > > it a no-op. Can you or your team give it a spin? > > > > Okay, I'll take a look. > > > Also I wonder if the flag should be renamed from NON_CONSISTENT > > to NON_COHERENT - the consistent thing is a weird wart from the times > > the old PCI DMA API that is mostly gone now. > > It originated from the DMA_ATTR_NON_CONSISTENT flag, but agreed that > NON_COHERENT would be more consistent (pun not intended) with the rest > of the DMA API given the removal of that flag. Let me see if we can > still change it. Given the above, we would like to make changes that affect the UAPI. Would you still be able to revert this series? Best regards, Tomasz