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 4025241C96; Tue, 14 Feb 2023 17:05:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2744042F98; Tue, 14 Feb 2023 17:05:15 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 2C42342F8A for ; Tue, 14 Feb 2023 17:05:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676390713; x=1707926713; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=w8ez22PdhE9/q86LGTfG9fQ92hVYO5yAWlOqb2YDHXc=; b=YFb83LfwvUAkGuHCBHviI2D7NDx/Ie7rKYaHH905IIkWC632W5PZM/s1 0HIJx7hcztYZIsMQ883oixSLQ8/xkW5LYvAh8zKQ+6BMEEYpuKsy8JyMF PdQPO8aCWexiMG+KZo9CBZYSUOlnQa854qmIh8VCtevujO29RiKBk7kjr 5CNZm8OWjB4KnI3CHOqPKHCgP2lFpt3PtIf0k6herkeZZ5BNrQnm8Lt0m ETFU+FZcW1WV3VOzDigTsCbRRsll0pajZoRmNMYg9Ox6cvg/e6B9Wgtv1 1B1VLQJDsSQ/pDwSgSdQl3/pfs2tcSg9XeetbD4DE9iZHgc9fC4GtyuB6 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="331192093" X-IronPort-AV: E=Sophos;i="5.97,297,1669104000"; d="scan'208";a="331192093" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2023 08:04:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10621"; a="914787527" X-IronPort-AV: E=Sophos;i="5.97,297,1669104000"; d="scan'208";a="914787527" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga006.fm.intel.com with ESMTP; 14 Feb 2023 08:04:49 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 14 Feb 2023 08:04:49 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 14 Feb 2023 08:04:48 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Tue, 14 Feb 2023 08:04:48 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Tue, 14 Feb 2023 08:04:48 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FFfZNLOJ/i1IEqP9HG4WKZimAs0sG85idaeovnhP9Zh5Zttk2RlVrok9W5xfB2IhDVWTLr5XTc9UCaZRGLQT1NNyf6XjnwRaL0W49kDtu6s0reybM4iROrgYmWzv6e4dgr2DNFUlgzF6KVyf5gLwZT2yDZxbVzRT7mv5qHDnjhkAwR5zwywrxXnRoOds2uv3v6KlR7ntGPOUv7ajTggvYht+8ZHHvpftwefGq784yiLvvv/tJvruzW6ZFzYDQF+25u7KmR+VJtYaOcng6atBmcVC1os5JJ0RveWIoHJqQtNeICjbT0C77bVs/l2SthOP5Sm/oT5zCVvidcWu0/oxqQ== 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=7Pz5gkl0TTuI6RowXRv0IyeP6boBhRWAC3pJX6+FGME=; b=mQ0+8+tRYCWUQ3FfDGUGMAPG4RS4NwSBijZRLnvLDa7wgiwt6SwBZp0PjXPGr+fV7xUhHsmaDl4UZZ2AAqDi+JQtERkRs6zK41cryT7sp1MaEJuy+NqeLTCTulAeW5WW68l5DAl1xZNVS1+3GsgvOE3V5zJa3FBfhZPbik/rcYtxAkLoKcGC2aaxG1atQO4nyk+8nMozYjC0evxVM0PByu7agVPH8CvV2P8n2V4Xxrs4P5VlniYErNyFgFqQ4Boej7MNX6x/NRzSZuqK6R8KPEFqiJbuelhZxzic0in2hiAevMGnnUyA2S6kX3yZsAWsgrougvXIkAprrPkJimjDPw== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by CH3PR11MB7894.namprd11.prod.outlook.com (2603:10b6:610:12c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24; Tue, 14 Feb 2023 16:04:47 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::96f4:ad8:3fb9:b60d]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::96f4:ad8:3fb9:b60d%9]) with mapi id 15.20.6086.023; Tue, 14 Feb 2023 16:04:46 +0000 Message-ID: Date: Tue, 14 Feb 2023 16:04:41 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 6/6] test/dmadev: add tests for stopping and restarting dev Content-Language: en-US To: Bruce Richardson , CC: Chengwen Feng References: <20230116153714.554470-1-bruce.richardson@intel.com> <20230116173738.562322-1-bruce.richardson@intel.com> <20230116173738.562322-7-bruce.richardson@intel.com> From: Kevin Laatz In-Reply-To: <20230116173738.562322-7-bruce.richardson@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0248.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:350::8) To MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR11MB5872:EE_|CH3PR11MB7894:EE_ X-MS-Office365-Filtering-Correlation-Id: aa215ac2-53ec-46f9-ea35-08db0ea53164 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ezt6+4RD5JOMc1hNJpiQvRAtyt87VZ8EHYhkS7O486Jpt49CE2PL46OUZVpPRhyf8Isb4NIO74wAbm8mrNN3YnZgILygTgxYKL5blb+Vfb0Dt4vysIJOWEeOssZ9lXztFR+mBJaDY2w75pmLKQ8vdhSLENnp91zK0YUzbQe0WdMvCn6g+TCHWrAkAD3o91yD94k8TKLmRBj+7oLWsjFJBB9nZNSiVs1FocOcnywZ4mZjoQnQ20EuVVN2Hef99EAjSHIenhSE4GCP6zXnnXJiD4UyW41RJ9oG0kT9cdJZbcv9z1Z6fo+kI6qf4efpQ98V2JgtFACGA4VMz/BVTpmlb9XFF8S122PVTLcR3TIbl9DjYAxJb1QeMJ/tgJyGMc0NIMaTLzKaXCVbjnudMQiMoNIHhk2cq0gVXHVvrogeWnxPvGbC0PNi+y6mV3x2qHHTuBRmobwuF0+00V++VfsOAjSaaT+OI9v+0ZLKNhPKLi1x5nWUGWNu63h74S0GxOHfwgEgtyhEgC5P9V8wmXeVjGYW9xUCAcNzmKxHmoYcAt18u7AOqPIMv/Z4GgY5Xraqj4Yno6O0DCJ+aReU/Cy9truSjKTTJ+jxnaxfw0QM7ggLAOQNkP16p+8IPrNmYyduv58WRN/mI5548DwQF/IFTnHnZR2DSnh0ASVjKyxWELoMB/dZ3JNMKS7CsTWPWYZ9fm2oy5t23IYpOpNUPkZQzr8VsrZA2eY0mWv7hxfeooM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(366004)(376002)(346002)(396003)(39860400002)(136003)(451199018)(38100700002)(53546011)(44832011)(8936002)(5660300002)(31686004)(82960400001)(4744005)(41300700001)(186003)(26005)(6506007)(6512007)(6666004)(66946007)(66556008)(8676002)(66476007)(478600001)(31696002)(83380400001)(4326008)(86362001)(2906002)(2616005)(316002)(6486002)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dXJRSkVwRkdONG10Y2E2cCtUdXdJY2d4VVFrNGNpMTZaMGQ0ZVlZZ0NHTHN2?= =?utf-8?B?cVhKS3VndWRqR2twd3R0WE9DOFY4VUkxY1pWdVdsQ3M1SE43Q0ZUWFgwOGVk?= =?utf-8?B?OUZKNVdscGp1ekNURXdyVTJQaVpCNzlDeVpyT2xsQ2J4c0Qza08ySXF5aHhV?= =?utf-8?B?TTdVa1pCeExSU0RFY0Q5bnA3N1N6dkJzU1ZzWU1xRm8wSmdsMGFmT0lBeHps?=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mFubUM1aFpRRGZuQnIwUVg5RjZadksxeHNh?= =?utf-8?B?QTRVNTlmVDNhSDNFc2s4OHl5eHNta3hVelZCZExvbndKTEhqczlmNG1xSUFV?= =?utf-8?B?RXJxdUxlUk11WlJxeXVBZkJKVVZBYzFVdFE1UC84MU5Xb2E5QUg4bys5SlFU?= =?utf-8?B?K0E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: aa215ac2-53ec-46f9-ea35-08db0ea53164 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2023 16:04:46.8208 (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: i2khb0DoXLESGrsV04z4wqdHF4mDID+87O11vhxJSQV/aUpR73SEVvKL8Z7K63FyRXJzFoKxRypzAPBE47gt/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7894 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 On 16/01/2023 17:37, Bruce Richardson wrote: > Validate device operation when a device is stopped or restarted. > > The only complication - and gap in the dmadev ABI specification - is > what happens to the job ids on restart. Some drivers reset them to 0, > while others continue where things left off. Take account of both > possibilities in the test case. > > Signed-off-by: Bruce Richardson > --- > app/test/test_dmadev.c | 46 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > Acked-by: Kevin Laatz