From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25F3A4240B; Wed, 18 Jan 2023 11:47:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 626ED42D0B; Wed, 18 Jan 2023 11:47:35 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id BD39F4003F; Wed, 18 Jan 2023 11:47:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674038854; x=1705574854; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ZUSxvTNYl88cBrNav2z8WKLu9hCx1vT4MNJkbrHjCeg=; b=Hk2Z4iRVi6D8kaWIhue2BqG34hjz9zXhJweAnIFC8GHjymQF3qEOHoS7 wKn9l1lyoeo0M5YkZGm+fnztTyl28gP90wOJA5gcjsRaL3lPZKq0FpTX3 BYm9B9N+PcZOeQ+2ZvfdVgR/bMI8FAxGI3F29VMTqjeOlyhXf/kTj6oza Tob/7vGEfOf8YcMTSFllCOv9m0yEeMBczXk5TSTHHiLtcJW8CuObbdSGL EF0Ums4slRSffBY5GTKPu9KSFW9HBKvQxJNvGsdltfE7gBx/lAZ1D/vuQ edlSJNXJMnCtfH0jqYMt4wIrNxtxBChvakNzarAvnhcx+Pa8/5bp1pL1f A==; X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="327029523" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="327029523" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 02:47:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="783631170" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="783631170" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP; 18 Jan 2023 02:47:15 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 18 Jan 2023 02:47:15 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 18 Jan 2023 02:47:15 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.170) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Wed, 18 Jan 2023 02:47:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LVUhcYox7Nlg2ciMFiJLhzJnXwGiHNij9qt0CSMDv3nguWuvsawuKqCABVGw9scxHRnZhwPG2O4j9t4uvStHvldgUi977jUgwyMUke731jsivy3D6hcKnZfhOaLYWA6Mt/xOjYZg87uibBKBJ869ok9JfBd+rd54NGZM154Cp1kpRHUPlw4RuoTEiZN8Zzpa60KYjMJPvYvSFMinYhnCe7ohpg7FoKtkCyjinQi8322RILCyh81RjEgMvaWH/SAp/6cloVhLIjITNudLbz87MhyRK/tqtCcNBbXp0WJnjWpNI5zg2OQTeO2qimK6hctDR/NK+Zl8B+dtdjargM3xsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZUSxvTNYl88cBrNav2z8WKLu9hCx1vT4MNJkbrHjCeg=; b=cQ4awQQDqGSHx+VJG9enqauk14VbxlZIxOiy/rmjBxGoZNeztTWj/NDnDFaJhc59izvL7VzMRwpJkPZfbgd/QHINwS7+FGLq1PGnaw5p7zFw7eJq+rKvPJFKQzuHGZdz2LthVUFUUiNtC0OsnuK3P7v3y1uMPc+e9KussuVKGB7x6H62mTwLGJ+EpXhVXgSoGlZ190DUtx2BBaFaiv+BaKh1lVIwNdTJSEk4mHvdFGTAYvot8ld7MzkhV3cLgrpgHKUtLdzaSqZt50w1EwkPq001L65mlbyqzPAcRUNSLu9jEgwb/pGF9bxpvGPq5trvPZB899y3/WwXjTEVmx+rlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH0PR11MB5207.namprd11.prod.outlook.com (2603:10b6:510:32::15) by MW4PR11MB5889.namprd11.prod.outlook.com (2603:10b6:303:168::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Wed, 18 Jan 2023 10:47:13 +0000 Received: from PH0PR11MB5207.namprd11.prod.outlook.com ([fe80::d1db:30fc:2964:8059]) by PH0PR11MB5207.namprd11.prod.outlook.com ([fe80::d1db:30fc:2964:8059%9]) with mapi id 15.20.6002.024; Wed, 18 Jan 2023 10:47:12 +0000 From: "Walsh, Conor" To: "Richardson, Bruce" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Laatz, Kevin" Subject: RE: [PATCH v2 1/6] dma/ioat: fix device stop if no copies done Thread-Topic: [PATCH v2 1/6] dma/ioat: fix device stop if no copies done Thread-Index: AQHZKdFLujvRd3LKvUqgG7Qq9uToYK6j+6ZQ Date: Wed, 18 Jan 2023 10:47:11 +0000 Message-ID: References: <20230116153714.554470-1-bruce.richardson@intel.com> <20230116173738.562322-1-bruce.richardson@intel.com> <20230116173738.562322-2-bruce.richardson@intel.com> In-Reply-To: <20230116173738.562322-2-bruce.richardson@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5207:EE_|MW4PR11MB5889:EE_ x-ms-office365-filtering-correlation-id: 0396dca8-6698-4ca5-bdc3-08daf9415af7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kkvFblrjA86h2rL0c3fLcO5JQl5cW+jnBVVjBr2/JYy/Lb2wuldQMKxNH8KGAkv6XGMR2pKDFIcndFO8HCv7MJ/AVigoGxJ4FYovimEHh4PqHBT1A0LqsT6qZQ89D4wEjo8K3rgMI8s6XXf7fjXxjxSzZABq+tf0vh1PvgYZR2g1dE6/+pio4ukxDWCC3sS9XUgCLTcnT1OE7sSwqvH6FsE5+oDSI8zx0HdO2h4Vm0s7QuYT+rHN6UlykPM13MXBedOrVZsZ2pVLB4Y47ZZpT0dRwrkw3ZGOmCQU4liqRKM5W93Yt6CiLPei3X6saare/oGSR/+yfeKRZDw2QaU3ySXRBd54Ozo9WsyS5RbyvJH89d4/ZVCu9IbWPye9J4mnBUx248J7hDlYWbq81t7An5PtcexzrhxNxtt9xPKtS4m/62NvZctm3p71KCVhAi0FLt2GbywdiLUstSRzuBbhX1DFfNeJg9z7zhnEbKNRRNEcSvt8knhhSBSlvC0gIDvkgz8huE9RXK7Ig1YFKkiZ5zVs4z7wKQLFu8hCsk+q4Hd4RcF0M2EgByf8tHadXxaiPoMMzdXXv/p2KgtM36iz5yB+CICZdjjMzHEiS90b0+CrfGXGKh9kqMjkpblkkxWKW4kXw3k2Ej516PKKMIwLpYPcYOVYVp8JQhg+IlEqDAXMX7MGqRwUpvrDt6rHk/gNa51D4D5ktuTwNClnw1edFg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5207.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(346002)(376002)(366004)(396003)(136003)(39860400002)(451199015)(82960400001)(122000001)(38100700002)(5660300002)(6506007)(107886003)(66476007)(26005)(66556008)(8676002)(66446008)(4326008)(66946007)(478600001)(64756008)(450100002)(54906003)(186003)(38070700005)(7696005)(2906002)(9686003)(71200400001)(4744005)(76116006)(316002)(33656002)(8936002)(52536014)(41300700001)(110136005)(83380400001)(86362001)(55016003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TWp1XWh4qdnr4dEXU9nxAFAhmJfy9VnGYcOR63qwmZxmovP8Tyljt+Pp6ja1?= =?us-ascii?Q?YH/ZmwLJg3Cisja37fks9W4s7ykFU/A4iP4NJ69zN7XsD8dI3Xkljwm/tS9Q?= =?us-ascii?Q?/9+cIPMYAHFPe3bVykYut4SKWUBktQmdFEbSBHi95yzNQYCyuVlDLZ8cYFXA?= =?us-ascii?Q?ZguaRJEqsAN4lMMDTwf2Z1Monoe24Nlg+exSOBOaZKUPQCprTmWH4ynrXTfk?= =?us-ascii?Q?4YwqhmH9BXEeCyWcg6vXalxfXvpDyueyYjz/WocYfUcZgQloClKpZcyxZ46P?= =?us-ascii?Q?GFV4onOwJLcF3Xy9pFgkRMJ3n01JcguvlPGj3HlBC+95ZzI3rOsQmTaCbhWp?= =?us-ascii?Q?kqGorvAEDrsL9di1fEC/rUNKpKHHmeYGSkF2F0cUeeZwDvwQ4QZEQdvq3eyz?= =?us-ascii?Q?kFy+DufLQuqpsJzZmEi2p2lJhO0XqeSU4ms49gpCJp3a1zTs+ht96Q1C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/9Q1QQddsVNZS84Z79VsOZ3eeLFw2Y2RIyPK8qd?= =?us-ascii?Q?N3lx1VaZgbMCfnKA88guUF1uBV7ISUNTFX4/fuTMuIEzRIp572Uoj0IBAwKA?= =?us-ascii?Q?U/0a8piKY+Z/IOtbjMexEWqssaRU2ae0fEdO3PY8cRu4GZ0rrPz7q/oZzWVA?= =?us-ascii?Q?Mao60cvxj6PdiGXBJMFYH+0qpkEs5BDVmZ28DV0ANgDnJ2FSMQk+qnyrRBfo?= =?us-ascii?Q?O8Q9yxwGcvbC1XSMGX68ci0Dxa8TW49q8chuXu48?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5207.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0396dca8-6698-4ca5-bdc3-08daf9415af7 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2023 10:47:12.0253 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QyXbpN4jWLtbcO/kWeO/3gyvSFkJnnGe+/5hChFmOGTWoKa2wZ14uTCLG6OorSg1sqfg3ggLhEQD8J7qGChlww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB5889 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > The HW DMA devices supported by IOAT driver do not transition to > the "active" state until the first operation is started by the HW. > Therefore, if the user calls "rte_dma_stop()" on a device without > triggering any operations, the sequence of commands to be sent to > the HW is different, as is the final device state. >=20 > Update the IOAT driver "stop" function to take account of this > difference. >=20 > Fixes: 583f046dd404 ("dma/ioat: add start and stop") > Cc: conor.walsh@intel.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Bruce Richardson Reviewed-by: Conor Walsh