Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp991447rwe; Thu, 1 Sep 2022 10:37:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4dgJYjv64H+3gbqL4x1QezAqvhmPlinG2L2OHFcYEMqpaB8xzh+jzOKFFc1Qo2xl7icNDb X-Received: by 2002:a17:907:2ce7:b0:741:4973:3fc9 with SMTP id hz7-20020a1709072ce700b0074149733fc9mr18271230ejc.678.1662053834164; Thu, 01 Sep 2022 10:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662053834; cv=none; d=google.com; s=arc-20160816; b=HgnsQpzGVGK5Ot8Z9mnJRtGc+Ll0Q9v9zniJfkvVRZqMqLiesN4QV/TX0SYxA0yJB5 7+Imr0Teuo66G/X3t1nm6rAGxdEVo8NxRLEANszHg794NZdFcntRTZJAfeW7yuBr8SlX 3vLUxzdhBAMwDf06HLzsC0aNmXWyHOmyiwr3Kae5bFbxi8SetJtLMHNRMfP+FJrCw9nG jXtp+RMqaroz4sTs5H/AMGqC1efy+fWEKt7g4dniVEIC2CIfP95eZCpsmsc3h1V2bP6M yq2Ey+LaX89Z3qzV3jPLgNFkh8O5PFqTerfxnnBtERNS24z3q6dlu/bXuGFOnQWzQnvq HIwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/IjirmgUqqRxbaFeazNhBbsc/MEQ2al5q7cnGR75oRg=; b=LTQg8EbJ/qorsY62tB0fIX9KuJzZGimZWyWPmYadH5TM3WdOvpCDZlYbdbl+KYaKi/ frWe/th0sp2ZEOEW9US05MN/yEZL6q0x1ApYts4qFlRXIovY/jD8BJTrl3wZa4fK3oDu 9npWJn9KmIn/zlMJ31WhcBmUnauaHoTFSFcq1U/1JeUt8FyJwjx/ty6jF+aHGxpEQG1H 81mbH0EaTmYIqg8V54EvMHqxelTMkAoC0ogeXXqXj/ybNqO8nnQ9PkAC56iKGIM15Aql WC7N6izFvtztrjR1VE4BfgPucLQYtkNNfvVrGNFwM4nmJpzos0ZgOs7Vf8REddFZujuN epjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PYyw19nO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a170906068300b00730a3906ecfsi12293577ejb.110.2022.09.01.10.36.38; Thu, 01 Sep 2022 10:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PYyw19nO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234436AbiIAR0B (ORCPT + 99 others); Thu, 1 Sep 2022 13:26:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbiIARZx (ORCPT ); Thu, 1 Sep 2022 13:25:53 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FDE03A4A5; Thu, 1 Sep 2022 10:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662053148; x=1693589148; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=TmDhYbU8HgErUAJVzSa3J2R5NUU4fr8wdqMREO2cf5U=; b=PYyw19nOnLX4Eyi415vFEYxVfBxxGhPsvpI5+Fm5oBVa83x0GtX33CIG FdMWXqL1Y2zHTY47e/20P6Qa0AKxzI3aXHcSYfWgiNjyK9FyKVCc7+eN/ 67y/kkzD9zdre0HXwoPWYB+EeELhD27mRAoU5SwuKI0tghNbT1rXffYv4 +xXOTlteWUGhq5JcD3eZ6llhPYRvcF8Ppf63Jv+E02QcjR7bKJTZbSiZO 1FyFNo3b/BTV2KFXzNgl/Fm3MP+QwwvuE2jRvmWeVq2sDklCZimfq6iZ8 nmNdEj8EeNE1FJB6EkmpMl9oU1w9DdUty/lFxPNkTWFdBLbPt1xt5Wn9B A==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="278796633" X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="278796633" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 10:25:47 -0700 X-IronPort-AV: E=Sophos;i="5.93,281,1654585200"; d="scan'208";a="612589961" Received: from djiang5-mobl2.amr.corp.intel.com (HELO [10.209.165.86]) ([10.209.165.86]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 10:25:47 -0700 Message-ID: <8bced9df-bf93-d2c6-bb7c-8dc2a6aaea6f@intel.com> Date: Thu, 1 Sep 2022 10:25:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.2.0 Subject: Re: [PATCH v5 0/7] dmaengine: Support polling for out of order completions Content-Language: en-US To: Ben Walker , vkoul@kernel.org Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220622193753.3044206-1-benjamin.walker@intel.com> <20220829203537.30676-1-benjamin.walker@intel.com> From: Dave Jiang In-Reply-To: <20220829203537.30676-1-benjamin.walker@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/29/2022 1:35 PM, Ben Walker wrote: > This series adds support for polling async transactions for completion > even if interrupts are disabled and transactions can complete out of > order. > > Prior to this series, dma_cookie_t was a monotonically increasing integer and > cookies could be compared to one another to determine if earlier operations had > completed (up until the cookie wraps around, then it would break). Now, cookies > are treated as opaque handles. The series also does some API clean up and > documents how dma_cookie_t should behave. > > This closes out by adding support for .device_tx_status() to the idxd > driver and then reverting the DMA_OUT_OF_ORDER patch that previously > allowed idxd to opt-out of support for polling, which I think is a nice > overall simplification to the dmaengine API. > > Changes since version 4: > - Rebased > - Removed updates to the various drivers that call dma_async_is_tx_complete. > These clean ups will be spun off into a separate patch series since they need > acks from other maintainers. > > Changes since version 3: > - Fixed Message-Id in emails. Sorry they were all stripped! Won't > happen again. > > Changes since version 2: > - None. Rebased as requested without conflict. > > Changes since version 1: > - Broke up the change to remove dma_async_is_tx_complete into a single > patch for each driver > - Renamed dma_async_is_tx_complete to dmaengine_async_is_tx_complete. > > Ben Walker (7): > dmaengine: Remove dma_async_is_complete from client API > dmaengine: Move dma_set_tx_state to the provider API header > dmaengine: Add dmaengine_async_is_tx_complete > dmaengine: Add provider documentation on cookie assignment > dmaengine: idxd: idxd_desc.id is now a u16 > dmaengine: idxd: Support device_tx_status > dmaengine: Revert "cookie bypass for out of order completion" > > Documentation/driver-api/dmaengine/client.rst | 24 ++---- > .../driver-api/dmaengine/provider.rst | 64 ++++++++------ > drivers/dma/dmaengine.c | 2 +- > drivers/dma/dmaengine.h | 21 ++++- > drivers/dma/dmatest.c | 14 +-- > drivers/dma/idxd/device.c | 1 + > drivers/dma/idxd/dma.c | 86 ++++++++++++++++++- > drivers/dma/idxd/idxd.h | 3 +- > include/linux/dmaengine.h | 43 +++------- > 9 files changed, 164 insertions(+), 94 deletions(-) Besides the stray white space, Reviewed-by: Dave Jiang