Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp357874imm; Tue, 7 Aug 2018 20:51:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxpcnsZkcDMO+BjF2Xc+VjTGfC5753mKp9Ksw+66hMvTo0m6p82UpNzimXdQLcsDVe403iR X-Received: by 2002:a62:d706:: with SMTP id b6-v6mr1068538pfh.17.1533700319569; Tue, 07 Aug 2018 20:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533700319; cv=none; d=google.com; s=arc-20160816; b=uvzBmb4RR4Zi/jvW4jk8Kb3ocOW2m1lDSYT1NWU5iS0gwtZ3Nq9gvJgwprW1MG0RV2 30snE3g2TA+MgJal2xUxFPrPtAFWVt51XBW9Yx6KVEyhkgWt3lhOWPMvOFJRCuSN0REa QxoDpvKT/UqfL2E2zbK5eTNbxSg/Ka4jn0MC8EDWU4mkQLGCNOi5XvkdW7OAt8bJmJyg dgQGEQ0EkT3TcO3tzl+mVly/RW2pjsOWHwG3zJEJERYFCDIuTtL96Uz9z7+g1DsJIhlG rzFsr2e9Vl+HO84qaF6oBdFEgxCN5kqtADZMkCIZAb0wxcsQxg8qG797DQzEMcPiFPSl QY6A== 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 :arc-authentication-results; bh=sA0iGr8g1qqk1B4znxVI54L4La5Qk/9XYIdTm9Zmgkw=; b=bk0Z5MU4LO8feHxEEwdAkhaytrKaOcOb40bmvLnsqFLNxAecVEa1fTrr1e63G8r95o DSbtEnie1qIFyb1NE1gQl7cqO3yI75K4SwAPsVCLfbBw9Rq/0/2EzvUG/ZyfJHu8TsyM t0Fp9Nu45bJeaW0kZe+J9/YPG39M012WN1UWvGMgOpwsXRFufoJSx4zULeDqDgDHxR8Q NYXfAy84jB26oRaAutyJEtOC6rzVbvgw/mayTo9PhowhBSheDcu8TkFf6RMZrOKSMe8z WXpfgm6K4kSMBfsopQNF57Jpila9p9zCQOXTVJDzcuDJi1QgXhJWiJKgPNrPo9TQeokS 9Emw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="M81zTK/m"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si3374792pgr.68.2018.08.07.20.51.44; Tue, 07 Aug 2018 20:51:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="M81zTK/m"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbeHHGI2 (ORCPT + 99 others); Wed, 8 Aug 2018 02:08:28 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:35308 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeHHGI2 (ORCPT ); Wed, 8 Aug 2018 02:08:28 -0400 Received: by mail-yw1-f66.google.com with SMTP id s68-v6so601441ywg.2 for ; Tue, 07 Aug 2018 20:50:53 -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=sA0iGr8g1qqk1B4znxVI54L4La5Qk/9XYIdTm9Zmgkw=; b=M81zTK/mt3MWlxmRROhydVAxcGa+mXkTJBnvoFXpQPRX2E2+9buBgU9VhcXFo7olUE T06InwaY3rgeAnBtGPjRVbBHbCy72Jc6En1rzQtAQdmWUpiJekDiIsOU+JMaD7/OjIMB KL38HfeJziY06zS+pj0XvMfSN4K2QOrCkdrXg= 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=sA0iGr8g1qqk1B4znxVI54L4La5Qk/9XYIdTm9Zmgkw=; b=DaXnX32YP1iSIlE+jP6lOLOdfRVwLPqZUHjV2UqXuwVZQOcHVwttH8N62IVbGnyn3J JrSnYghqjWmG98g4Ju6u4DQ/gAJbCo4lJEEA69HWSWgQ+Yq6nCzG3+DPmhegzlbqKjgt I34hBiLdm3ImFpFiICMUlyxojZ1f/WTXTYIiB2G3PsHu9+ShqZMJ/sTEsaGHupxLJVnn dnuGboS0e3fXGS3uTi/x3C4vQtA/joH5bqex3eyRFRQiauQ2BE/35Y2+BeSPyc8vFRi+ 1mSk9x8NP/28qM7Ex8ZnzMo9DlKsqGTQp8jgbthOoQg/0wQw5jAhntH6SEXFIERbno9V 1nIw== X-Gm-Message-State: AOUpUlGCIKGKD2V17ND5xqG5LTYuCN7yOwLnbrhYM6TvpIuNpoSw6c9m A84skxnngh5bha1IazR8NBaQznPJi14= X-Received: by 2002:a25:31d7:: with SMTP id x206-v6mr554021ybx.440.1533700252319; Tue, 07 Aug 2018 20:50:52 -0700 (PDT) Received: from mail-yw1-f52.google.com (mail-yw1-f52.google.com. [209.85.161.52]) by smtp.gmail.com with ESMTPSA id o204-v6sm1325153ywd.16.2018.08.07.20.50.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 20:50:51 -0700 (PDT) Received: by mail-yw1-f52.google.com with SMTP id y203-v6so586077ywd.9 for ; Tue, 07 Aug 2018 20:50:50 -0700 (PDT) X-Received: by 2002:a0d:ddc8:: with SMTP id g191-v6mr597307ywe.145.1533700250360; Tue, 07 Aug 2018 20:50:50 -0700 (PDT) MIME-Version: 1.0 References: <15196240.O2E9MK7q6s@avalon> In-Reply-To: <15196240.O2E9MK7q6s@avalon> From: Tomasz Figa Date: Wed, 8 Aug 2018 12:50:37 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 6/6] media: uvcvideo: Move decode processing to process context To: Laurent Pinchart Cc: Kieran Bingham , Linux Media Mailing List , Guennadi Liakhovetski , olivier.braun@stereolabs.com, troy.kisky@boundarydevices.com, Randy Dunlap , Philipp Zabel , Mauro Carvalho Chehab , Linux Kernel Mailing List 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 Laurent, On Wed, Aug 8, 2018 at 8:12 AM Laurent Pinchart wrote: > > Hi Tomasz, > > On Tuesday, 7 August 2018 12:54:02 EEST Tomasz Figa wrote: > > On Wed, Mar 28, 2018 at 1:47 AM Kieran Bingham wrote: > > [snip] > > > In our testing, this function ends up being called twice > > In your testing, has this patch series brought noticeable performance > improvements ? Is there a particular reason you tested it, beside general > support of UVC devices in ChromeOS ? Some of our older ARM devices have external USB ports wired to a low end dwc2 controller, which puts quite strict timing requirements on interrupt handling. For some cameras that produce bigger payloads (in our testing that was Logitech BRIO, running at 1080p), almost half of every frame would be dropped, due to the memcpy from uncached memory taking too much time. With this series, it goes down to bottom ~10% of only a part of the frames. With one more optimization from Keiichi [1], the problem disappears almost completely. [1] https://lore.kernel.org/patchwork/patch/956388/ Best regards, Tomasz