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 C3C47A0547; Thu, 9 Sep 2021 13:23:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B130F4013F; Thu, 9 Sep 2021 13:23:56 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 94A084003E for ; Thu, 9 Sep 2021 13:23:54 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10101"; a="243070244" X-IronPort-AV: E=Sophos;i="5.85,280,1624345200"; d="scan'208";a="243070244" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 04:23:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,280,1624345200"; d="scan'208";a="470038680" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP; 09 Sep 2021 04:23:53 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 9 Sep 2021 04:23:52 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 9 Sep 2021 04:23:52 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 9 Sep 2021 04:23:52 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.49) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 9 Sep 2021 04:23:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S8P8RLqnt7kw4aCYwGpSrFiCCQk93gkgnWb1oHC2DHhN3S+f7xmZCiAW/EtcTss5naJ529f/bzP28qAgqrqlV0OYW9gKmuhuGmxzHEZQBjW3EPWZsfsXtBYP5igBP+aAree8lunR3xhB4k95FNblTazMTr59DWTRzOTFnuZVJg0DueJhIjV7eLCxpYc9deJkuyzeinpA8dqb0fQ6rhmA6oiCVgVaialQqLmZdBU6xyaugc3Zud2kCBq/JE5wprXEsVPnJaN9lWecu56RlB/pQ+KBNEtsfg7paM8ouXgCyqH5SSi7ZfrKbUYR7aPXYDS7m/cmkcTa9e5KYSphM6Dw1g== 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; bh=qxQ96wEDW5gIiH81jd7Q26pNVvDDgmgXcF1hZDxyKFI=; b=dWNeF7VnBHYKh1zCgRyxrKOCJmA6UFOj8HEI/TSeroCG/zws585Mrilx4N7UAFx7I5cC2fGiEFxEIspvtcQnl50yhblVTFCDR/erABF0bsNNoMYYh3ivn+1jqm2ssJ3ZpbF6a8AKEPLPEnSNHMHumKbeIZ/giI1B+EW+ZhqwXcChVo/ZJegrnamyT0C9nst99CXvEdOmJhaEreWuq13HDU2O99Z5CMyYbdR5AqjuMWySb///S2hj62HL52dYoMzl1uzDF0Wof3azjtXVW7N/L86gyVpdkUqbJWSZZuzh6fYZN/lttZvIU6FxQM/nd3MnhCDKMbq86LM9cFuSMkMuvw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qxQ96wEDW5gIiH81jd7Q26pNVvDDgmgXcF1hZDxyKFI=; b=UKzkN3bDADncwT9ujMssOhGJaw6dNbQg+naocJzVdpurFkzMZ8qH0FH+SN8dqo0cZjsXyqCnpIdyGSa0vfea/n8neOmFm6pYY3Ta/2ZN4CSWnY47d0tXLhkKhP0LoHK63PxI/fr6ZXbdixR5vdx4xmm2vU6pY4J1eotNSq8qk0E= Authentication-Results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; Received: from SA2PR11MB5210.namprd11.prod.outlook.com (2603:10b6:806:fa::23) by SA2PR11MB4905.namprd11.prod.outlook.com (2603:10b6:806:117::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.16; Thu, 9 Sep 2021 11:23:49 +0000 Received: from SA2PR11MB5210.namprd11.prod.outlook.com ([fe80::e5f6:85a1:af0d:705e]) by SA2PR11MB5210.namprd11.prod.outlook.com ([fe80::e5f6:85a1:af0d:705e%7]) with mapi id 15.20.4500.017; Thu, 9 Sep 2021 11:23:49 +0000 To: Kevin Laatz , CC: , , References: <20210903105001.1179328-1-kevin.laatz@intel.com> <20210908103016.1661914-1-kevin.laatz@intel.com> <20210908103016.1661914-9-kevin.laatz@intel.com> From: Conor Walsh Message-ID: Date: Thu, 9 Sep 2021 12:23:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: <20210908103016.1661914-9-kevin.laatz@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: DB6PR0501CA0011.eurprd05.prod.outlook.com (2603:10a6:4:8f::21) To SA2PR11MB5210.namprd11.prod.outlook.com (2603:10b6:806:fa::23) MIME-Version: 1.0 Received: from [192.168.1.20] (109.79.8.55) by DB6PR0501CA0011.eurprd05.prod.outlook.com (2603:10a6:4:8f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Thu, 9 Sep 2021 11:23:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ccb525a7-1c7f-417b-ebca-08d973844b56 X-MS-TrafficTypeDiagnostic: SA2PR11MB4905: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zPM0HnD/PmYfvzNkL+4JS2Jb+PHII6EIzp5XKRd+ooqzNWQdn2Mo0v2S0wNlXFCPvNdkyXiW3ScVhyDSSkDLxplGi+nN3BA7rGy12iuBTcX8Tb3kpylExzSYSyiUOY1JgYhFCsO8qQpccrqJw71usqPK5orn+BhC+GYnhW2C7xnG/C1XWosECFN8dgKFuZtJGxYOXilKwoio9+BCU1coFvc+hKJiZ22zXWlTKXxf8SlI6tg6oqIjtxbRBzgXR4iD3zWYo3H8WshqZ6Nbju+lEP2gi6+rcHRKIzuaSFB72BTtkJb+9H4F2oos8KDoOKJuzYec5FolFy+Q2l4jrJaywy+JIZ9BF1LJ+TlBRkOrvvt5gqw8PTeMUzFfCj+BVtwt2HFdadzhQwEFZ67pNrx4sXlDAGRxbXRWPM4MOc6cdYIy9cr2eHDq2w7TVC7CSxogsC0IqNS9tid24l3VyqXU04TA8HlN10U8TDpsF0W03cXIla4XbEPOmJcPa+iinr3NtGjEQYTugdoF35xn1VrMS4c6pjySqQnBEiBOMs39AlFhQzExrPCvqhq+cCB49PXWH7VKGM081krmki1pSKqc5EJnxAGeFqp4JVqxvQbep5Pe92o5/WHuovbVKu7WvdD93urWLXvrMpZMlhbC8WgzU+m2HAdBxVRinlbiwy8Zu7UCD2ZnzrMc76oy+tK5k8J0lxb7JJx6z5UUb29y1Mfy7N4j4WW8281ZWS6UC+zECrE= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR11MB5210.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(376002)(136003)(396003)(39860400002)(4744005)(6486002)(2906002)(186003)(66476007)(2616005)(956004)(31696002)(31686004)(38100700002)(316002)(4326008)(26005)(44832011)(86362001)(8936002)(16576012)(66946007)(6666004)(8676002)(36756003)(66556008)(478600001)(5660300002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Yzc5Wm5MZzBieDdyczh0OEdYdXRONmVmQXFnSDNlRmtmUHRVK1gwOVVaemFP?= =?utf-8?B?UnkxRStSTnA2eVBWN3grZDY1MGtPV1R4SXh0Y1JLUEliNnZkbjBwcFlLL2tl?= =?utf-8?B?UEVLa0lLRXpSVENZWERtRENlS0kwWUFNMzBsOEllQmc4TzUrM053N25vdWRN?= =?utf-8?B?V0ZVbUJNcnJoT2J4WWNpMElUOCtneDVUZmRWdjZYM1NXOXhUSjJ6WWpNN0hk?= =?utf-8?B?QzJ1a2tLYlpGcG5CcHlrVjZ1aDdqQjM5RHQ4RW44MkVpcDN2dE1Wcmtpbnor?= =?utf-8?B?aE5oQUNQUEUwdDZhMC95aGhpcitDVmNiNUFa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TnFDeWdMWkM0dnE5UlRIeExqYUZ3Y1BHVWRNSSs3TU9zM0Fq?= =?utf-8?B?bzUwZ2JsM1Q5L0FxdUx2eitrWUV6aGx5ZVZ2QW1JNnh1cVpWYkJpVDVvNkc0?= =?utf-8?B?VEZJRElpQTJyYVVvamJ5UFlIK0Z6T1N6OFBkOHhsTEJTb0cxdEFLeHpVWG9C?= =?utf-8?B?RU9JY09KM2FZaWlnKzlEcGhBenZzQ0xzMUhtbVJKTXlCaTBNajN1eTZQL1RW?= =?utf-8?B?MnY1aXVkMC9WYTEyRWtsWDZrUFdBM3k3MTgyWXJyUW9MM2twYTdKTE45NE9R?= =?utf-8?B?R0dUcGRzdWJwQlpORFA4TzJZOXNoNldDcnVTTXpvaW1BNTE2WXVTV0lUeGs3?= =?utf-8?B?a1V0bnc3enZ4NlRjWlVMODVxQVBuaVZ1bnhlTGdxUStja0FVdzlJak1ZRDk4?= =?utf-8?B?L3dkSEtOQk1za3hmUXg0NlQ4dUVPZlBjSW5KY1pEN3B6WWNMbHo5U0RNNDlL?= =?utf-8?B?aWU1WEdGZDR3akFoL3ZoWTR6K0cvSHlUUjZCMWFUeHdncXhKbVhBczlRVHpP?= =?utf-8?Q?/cSUQZTTpG3NQnXRLHwHXsHso+Bj2R4KiEPVz+7?= X-MS-Exchange-CrossTenant-Network-Message-Id: ccb525a7-1c7f-417b-ebca-08d973844b56 X-MS-Exchange-CrossTenant-AuthSource: SA2PR11MB5210.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2021 11:23:48.8731 (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: ihUjmaMuXTxIawtWkoLYLUlAVnJPSP3km+EiubjdoKhIxgbNFYg/XnKBL8AsyQ9mV436Ek1UFgKMSldgXmuOHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4905 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 08/17] dma/idxd: add configure and info_get functions 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 Sender: "dev" > Add functions for device configuration. The info_get function is included > here since it can be useful for checking successful configuration. > > Signed-off-by: Bruce Richardson > Signed-off-by: Kevin Laatz > +The following code shows how the device is configured in > +``test_dmadev.c``: > + > +.. literalinclude:: ../../../app/test/test_dmadev.c > + :language: c > + :start-after: Setup of the dmadev device. 8< > + :end-before: >8 End of setup of the dmadev device. > + :dedent: 1 > + > +Once configured, the device can then be made ready for use by calling the > +``rte_dmadev_start()`` API. Last line should be in the next patch, but it doesn't really matter. Reviewed-by: Conor Walsh