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 DB8E442643; Tue, 26 Sep 2023 15:13:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C851A402E9; Tue, 26 Sep 2023 15:13:53 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2079.outbound.protection.outlook.com [40.107.93.79]) by mails.dpdk.org (Postfix) with ESMTP id BD82440271 for ; Tue, 26 Sep 2023 15:13:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e8X21DYZxDbiWwECyUgFYSagi3fvmcnjj6+f5RZPm8IrZlAQ9Aij4l5i3QE8XkM7cq7vxJyDyRP8SVlLEh96oWqLXQyUnSFTdWaUVBuVFSF8LryqSSJbxP3p716nCLUAQUMX1zoMiZVDw6MkH3NbPnTBHl3l8rLzBPoAt/bD4Tm5gCXkuyZ7LbWrnmZ8ciCd/OxUM5fF4iqLX/1okLZxpm6fT3nj1FUJYfnOl30hSsTQHyV6+vfgF6xNUM4YEd+kyFVY2ni232Lv2MHLp/lkVWGAmoJLGGCO6oAPY5aNcZemL8XSVxUpinTvDFDxOlJdAPGAs7zVphdvYs10Bnv54w== 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=u4ssj6xcRo2J8fmlqz/M0Mj45dcuVMT7lQI4D/vPyc0=; b=WhVZOiDFl6sRoL5BKCl7hTlWZdfmmqZPJMI9z0oDBz+Q1FamXtna+NDYBiMyb/OE9Y9zAIaPv3UU42iIx5Fx5xLnNjtFcxr9klyS49cdsSL3I1F+Rl5FF0d0jGFkzPZ3pbZFQMgYGg3XG8IHIWrWM0WQfINBvbuxtN6Kszn78WNmaP+D+WDftjpGbKKVIvmDc9KG/yRhZXMVfkV1A6PaZVfJvQtwq6ztx7BudzaZbJ0MZeSbazWSbdpB9qJwTu3V4RhMouPwqqQzGZD01EDhG8XYlZIL668622pJFnIWlO0OpqBNM0UEfvJDjug+m1ASwZt9UWSlHvkKdL23mXOU3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u4ssj6xcRo2J8fmlqz/M0Mj45dcuVMT7lQI4D/vPyc0=; b=tF54gWWvKa4pFQ25aFlGVSUmYEUqew7Uj15EpnaDM1PCMxTVg6Db9J2415enRZ7sXMazxdQSCnYnVFLYpdwIA1cWWpggE7lrhTC5SfIQFwC5WEpL0nrya+hBGJj+l1W9MwIoDddY1z3DZZPFZ6P/b/AALlfLY2RAvwiXA8pIjMo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DS7PR12MB8291.namprd12.prod.outlook.com (2603:10b6:8:e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 26 Sep 2023 13:13:50 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::102f:c69b:d3e5:7fe8%4]) with mapi id 15.20.6813.027; Tue, 26 Sep 2023 13:13:50 +0000 Message-ID: <12cb4917-5bca-442b-9462-ffd31cde5e8f@amd.com> Date: Tue, 26 Sep 2023 14:13:49 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 07/32] net/sssnic/base: add mailbox support Content-Language: en-US To: wanry@3snic.com, dev@dpdk.org Cc: Steven Song References: <20230904045658.238185-1-wanry@3snic.com> <20230904045658.238185-8-wanry@3snic.com> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJjb9DJBQ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R5jx8wb4j68umG2X++0dSta5eHAVhmtXvrqPW6Ku 3FQ= In-Reply-To: <20230904045658.238185-8-wanry@3snic.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0489.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13a::14) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DS7PR12MB8291:EE_ X-MS-Office365-Filtering-Correlation-Id: 909595d4-9f9e-47b9-5a1b-08dbbe926c9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zCmqqxekGP7+g+FPUAyIGC6v8/sbBWAp4RXKsLiWs6xm999B63R7bET8+6m6L0r0ewV0oHdQfBAW7rA63RQYC6baptISH44UCfj0I7AcWxNn+PTy2w/vZ8MWnxQ9VLuid5cYiK/XPQk0xiOn5oCihDS5nQNoDG2aQto/G4jeN0aG1zORjtPtDekt4VQFQ287GpR01bEvD1SVYPPBV/Zp2dXDzrkRjBNQKqF8om/lUiSAVnl/KrwzsjklBoltl5cLNGQdSex01aCC9zH8tgyFUPKZdcNTobHy0dJfhTMEn+lULRPbML0Ttzay0ul8sw77okReEezOLeFKl5ytRx0dPX665LsAsDxu3/iu6ferN58OcIY52fMdicxS3T09QVc6rVFVRmgld1mtyEcphTSZ+Z5sSBNDLRzjEDvfDJXrxQHDeq6jGHw5hsAdSwBwYBkjpVIKl2UE/YWY40NzrzIVYsNaAOmycaCj1uuff/8TtqURMOwN6clUBQrbZxiOTuYRMLuH19D7pi2gedkrMPmfxIj3f2kRoFH4+tb+3XAJUwQFNGpgLqmTG2lSDe0ifVFFdgzjJocv/ekmV4fR2vUidaBGt6uK45d9WoENol4bMaYj2f/JfaROPPG0BxSqIf6U2eM3/SfYCqTBgR96AsDa8w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(39860400002)(366004)(376002)(396003)(136003)(230922051799003)(1800799009)(186009)(451199024)(6512007)(6486002)(53546011)(6506007)(83380400001)(86362001)(31696002)(38100700002)(36756003)(2616005)(44832011)(2906002)(26005)(15650500001)(31686004)(8936002)(8676002)(4326008)(316002)(66556008)(41300700001)(66946007)(66476007)(5660300002)(478600001)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eFBtU1c5U3JBN0daY2ZuV25tZWJwMVhYUmJPcEF4M0NqS0JoeFd3NVNsM0hR?= =?utf-8?B?bFVSbmk5LzdGV1FTN0cxSkpLWllzRWZ6YXByY2VtK2YvditvUGY3Rk12YUpi?= =?utf-8?B?eXVmOGUyUktkZjZ4SHM3R1BuUk56VjV0bkt6c3RxWGc1RFpHa1RCQ0lQbE93?= =?utf-8?B?TVVGWEd6NDd1ZllpdFB2OTg2SnptcXlEenE2R1pJRCtBd0dkY0V5V25FR2Na?= =?utf-8?B?NkZiTjZrYkEramtvSUFjU1Z0TzZEMnFZam0zV0xBNzVPWDBtZmgydHdUNDQv?= =?utf-8?B?d1BxZ1JpYm9ielBsSmM4ZFI4K3Rwd1hkb2VCTENIdFpuRGVDRG9LUXV6TGcy?= =?utf-8?B?aFZleWNBKzZ5dWRaWlZNbFJ2Mk00cUVIQU5ObWVudk5OQ1dHMXdUUDNnRERB?= =?utf-8?B?RjA4a0FVSzNCUlBGUUVqK3ZYQWN2ZDFBZGhub0gxV3Q4OVlvNlEwMENLWlF1?= =?utf-8?B?Z0tXcGR2VThkYUFMNVVlQ3psZFUvczk1UHJrbEtuTmZLQzR3SnFwNlB4Uk54?= =?utf-8?B?b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= =?utf-8?B?andpYUxBNXRNRktCdlczamxDcTJCeUU4Q1R4b3hPMUM2Q3NibDBVSTBNWmt4?= =?utf-8?B?bXJaK08xWndNbktPTjh5UDk0aXNqQ0FDM3pTa0VYaUtVZXgvSkc2aWxvbVFD?= =?utf-8?B?ME04M3QvS1B1enoxVW5nU0wvWVNMZzV0YlZGb1Fub0swNENZTVVJSnlvWURt?= =?utf-8?B?ZGpHZkFMOFJ5YUoyT1Jidko2c3BDRFF1S3NBTkRKU0NYdHhTVWE3RWVLSHdt?= =?utf-8?B?UC90SXNLRzkxSUsxYjF4Y3JEZUo1alBmUmVjbWZLWTlweWQ1VXFZME0vQSt4?= =?utf-8?B?aGtBL3FwVkk3VjVJSWE5MHhQRGoydExaRjZaajZDYXV6aVRlZlh5c1NOWjRC?= =?utf-8?B?L3h0eWwzVEdSRHhxNmwrQlNpWnlydVRGSElQclRkREJRcENjRjBnMHdwQlIr?= =?utf-8?B?MmRZbjJ6dUZZTGFjalhoejJjb2M0RlZLZ2loaWc2ZGlLS1Y0bkhhUk9FQlFU?= =?utf-8?B?QVl0V0t5S0dNMFU0V01ZSFNUWjVuTW5nczIwVFU3OWMrcmhIQkFPYVlGZVVl?= =?utf-8?B?YnFRdEVlQ1RaK1ZTYjR3MFBoNU1IOUlIRUhKK3p3SmI1ZU5COHhZcWdnZ2xm?= =?utf-8?B?UWg1UkpweUgydC9TQi9KT01rb1dyczh2NEY0Mk9XemhpWTBja0tFVEdtdkRY?= =?utf-8?Q?rub9BUlWABKiLRnevDDi3lpv9?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 909595d4-9f9e-47b9-5a1b-08dbbe926c9b X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 13:13:50.1935 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gB4++EdcNOAVppnHJz3v2vO/b0lhQC4YDIEmLODrPD58frPA2Dfi4SnFqigtk9zw X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8291 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 9/4/2023 5:56 AM, wanry@3snic.com wrote: > From: Renyong Wan > > Mailbox is a message channel used to communicate between PF and > VF as well as driver and hardware functions. > Mailbox messages are received by driver through event queue, and > sent by driver through registers of mailbox. > There are two transfer modes for sending mailbox message, one is > DMA mode used to send message to PF, another is inline mode used > to send message to VF. > > Signed-off-by: Steven Song > Signed-off-by: Renyong Wan > <...> > diff --git a/drivers/net/sssnic/base/sssnic_mbox.h b/drivers/net/sssnic/base/sssnic_mbox.h > new file mode 100644 > index 0000000000..00fa02ea78 > --- /dev/null > +++ b/drivers/net/sssnic/base/sssnic_mbox.h > @@ -0,0 +1,45 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2018-2022 Shenzhen 3SNIC Information Technology Co., Ltd. > + */ > + > +#ifndef _SSSNIC_MBOX_H_ > +#define _SSSNIC_MBOX_H_ > + > +#include > + > +#include "sssnic_msg.h" > + > +enum sssnic_mbox_state { > + /* Mbox is sending message or waiting for response */ > + SSSNIC_MBOX_STATE_RUNNING, > + /* Waiting for response timed out*/ > + SSSNIC_MBOX_STATE_TIMEOUT, > + /* Mbox failed to send message */ > + SSSNIC_MBOX_STATE_FAILED, > + /* Response is ready */ > + SSSNIC_MBOX_STATE_READY, > + /* Mbox is idle, it can send message */ > + SSSNIC_MBOX_STATE_IDLE, > +}; > + > +struct sssnic_sendbox; > + > +struct sssnic_mbox { > + struct sssnic_hw *hw; > + /* just be used for sending request msg*/ > + pthread_mutex_t req_lock; > This is causing build error in my local environment for armv8 cross compile, I guess including pthread header explicitly is required: In file included from ../drivers/net/sssnic/base/sssnic_ctrlq.c:15: ../drivers/net/sssnic/base/sssnic_mbox.h:30:9: error: unknown type name ‘pthread_mutex_t’ 30 | pthread_mutex_t req_lock; | ^~~~~~~~~~~~~~~