Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp343922lqp; Wed, 12 Jun 2024 03:22:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7VrVl5PSdAoZwJ1UFVKwBt25LPKFNDfxliHkq5Xi9f98xF22NNJ/oZnocXovKalGC/5dlvU2TUa4nV4vY6MaSiSaMNbh7RXTANF7ezQ== X-Google-Smtp-Source: AGHT+IG0k0IDKB1wqXG0xwgutvpFHo0O0JTqWiQZPex6QvoqlP3DzuPlzh6tx1ZVgjc4BTOLZYLD X-Received: by 2002:a05:6a00:b41:b0:704:3521:fb58 with SMTP id d2e1a72fcca58-705bceac04fmr1854784b3a.27.1718187722374; Wed, 12 Jun 2024 03:22:02 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-7041cd55588si7702585b3a.258.2024.06.12.03.22.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DOwTcIqj; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-211325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 18A2AB238FF for ; Wed, 12 Jun 2024 10:07:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 796BB16E893; Wed, 12 Jun 2024 10:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DOwTcIqj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 883F116EBEC; Wed, 12 Jun 2024 10:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186839; cv=fail; b=JnlEe7kUi9zv+k3f1qRUABb2DLPN6H7GekVtxrn1SpX7NqDyQDmGp2yuYRA+5ziuLVcoD61Tl07r5XIdz4iR8Re1bt62MFgJrd0cpJD0ni1lllFHOT3MaU1xBvztcKOUY1Wq98RujMESOLKdlaa7uvMreXefSQawegSzZCCBMiw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718186839; c=relaxed/simple; bh=eRqkKvinKF9abUOcMs2rUV0vNPXseUyC6kaueolIyDk=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=F9Qibtu3dg2U/GSyxCv2YqhTZDiL8qP5WT/yls67qE71Oie7NLw4KT3ApkSh328exZC/wdaaYKKootKfLqBx0Es7ymogeJgf0Y+8vTUFZbqtBPzPJUattPppxTH5UBcx6Y5GavZawZEn+H/4hL2/fvpOzJvx67vHhScRVhtOU5Y= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DOwTcIqj; arc=fail smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718186838; x=1749722838; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=eRqkKvinKF9abUOcMs2rUV0vNPXseUyC6kaueolIyDk=; b=DOwTcIqjnNswnlLy/S2WLw+AF95t639xe6V4eEIjQS4HPvmB6vL/YZ/r xTmITwoSFGpZjwhs9S1MUvVRLA26+uPs0Di1/4QuK0TOx1qJ4ei4lMHck 4bvKYTId/hUjcePTaNt9MH34abcuFLQrcPTxOQGy6CKDN0ragw82oldrJ ne3b8+h+QZYIWhi/9hKskSHVxUXhDEdzw295+ci5EcV+v5fMbIT7mzjdT omU0+f5miU+pOLlsuDAT/bSAK/98Q815RCRUvshIdAyF1DjcG+4p8Fd4U 3GF2mU78N1Z6FaRLvlSfkKobTiXeQAW7Fs3nbC6SYhw+yNhGQyu5eBeK6 w==; X-CSE-ConnectionGUID: /N8qua4MQFuJSPnmUsBVfA== X-CSE-MsgGUID: 74lE68OCTDyJ6b1zMqPpow== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="25517885" X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="25517885" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 03:07:17 -0700 X-CSE-ConnectionGUID: HaFvYEzwRNS1dlHzi1ciNA== X-CSE-MsgGUID: GhV1NobETaK4NblpJEOnFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="70549755" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Jun 2024 03:07:17 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 12 Jun 2024 03:07:16 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 12 Jun 2024 03:07:16 -0700 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.39 via Frontend Transport; Wed, 12 Jun 2024 03:07:16 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.41) 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.39; Wed, 12 Jun 2024 03:07:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gM7M+DPRjynvs9cKvRj/kYDDvH/Lxw28OpIX5/DSkRhtsS6350ermFmrd9Jet/IeblxF1CaEWMQAdOz1gkixEzZc7q+JelJ/vnIs0AIg6dEuDpXn/tuHp1ZsFrhMp5dR51WmfvsNDIP+UKg1yu/VDcJEXHBuWYmc12b+cFyqm+IgjALLNoaZydRIYqo+3gLsTwaLpceb10RWqJvkCBmqjQ0uqW/noPwh2388DyAwC9bcRP3yjxn4jtlJhejfZA6ECInlr6PEDod3humH0XBw9tynlkq2PXl/LHo8WqvRrrubwy9hqvKtjEXBtUPUO+d59ojpzDAPNt7YEZWaQWLiEA== 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=77d1qfkp04YYD5svtw2SnOHNFCoAlXPMJn/y+qB9FwI=; b=WPc4ccZPPb5scbzrNcd++MJKR3mSnkL8sVIYUe1wIjAvcGySvw/w53HHahP698OUP+CXflXETzsbU2SXU+Yvix/GGQAVZY2JquyEw4RrejaLCtLmla0aRISXCQ1ngVp/t10O5nOnh0NXTSw8LfF+gRfPy7yVaKwEaZ9qPAIt6H0rn9ebeXDziMr+E6vZD7JDw2qZA57VNv1evsTHFxlSqZdIP2oFBGwBfiN0X7Omf21pQXS2f86B4uZfgZlJleipQ8TLOO1pKp10l7/F6D0LJ+bKxoPG7dKoX20CEjdbS8cRYzuHnjz0zTiFF9kMOqyKqeL47TkzdqAl1KZNH5SoDQ== 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 MN6PR11MB8102.namprd11.prod.outlook.com (2603:10b6:208:46d::9) by SA3PR11MB7528.namprd11.prod.outlook.com (2603:10b6:806:317::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Wed, 12 Jun 2024 10:07:13 +0000 Received: from MN6PR11MB8102.namprd11.prod.outlook.com ([fe80::15b2:ee05:2ae7:cfd6]) by MN6PR11MB8102.namprd11.prod.outlook.com ([fe80::15b2:ee05:2ae7:cfd6%6]) with mapi id 15.20.7633.036; Wed, 12 Jun 2024 10:07:13 +0000 Message-ID: <8aa33911-5e34-4a03-90de-81f42648ab5d@intel.com> Date: Wed, 12 Jun 2024 12:07:05 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH iwl-next 01/12] libeth: add cacheline / struct alignment helpers To: Jakub Kicinski , Alexander Lobakin CC: , Tony Nguyen , "David S. Miller" , "Eric Dumazet" , Paolo Abeni , Mina Almasry , , , References: <20240528134846.148890-1-aleksander.lobakin@intel.com> <20240528134846.148890-2-aleksander.lobakin@intel.com> <20240529183409.29a914c2@kernel.org> Content-Language: en-US From: Przemek Kitszel In-Reply-To: <20240529183409.29a914c2@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To MN6PR11MB8102.namprd11.prod.outlook.com (2603:10b6:208:46d::9) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN6PR11MB8102:EE_|SA3PR11MB7528:EE_ X-MS-Office365-Filtering-Correlation-Id: a4669c87-3ea5-4c84-149e-08dc8ac76e7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|366008|376006|1800799016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aW9zOXB3TG9pMEhuU0V4U0E5VVVvd3BvbjN1RzgxekFZMzlpdkhyQlg1SGY0?= =?utf-8?B?UTFJK0ZZYXBIY2w0c0kwNmMyaUxKVk4yOE5yZjVTMGRYalVNbU1iWTVGV0xY?= =?utf-8?B?blBzcTcyU3AwUENmczRPYjVhekMwQWxYU2Vrc1AvR09zZXAzdDNSWm5pTFdX?= =?utf-8?B?MlMzUkdlZDF4ejVGY0FCdSs1NzlzWDdOWjVwR0Fqcy9CUHY1OWNXQjBOVXgr?= =?utf-8?B?WkxjWkxxU09SUngzTnJDMkdXczk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0E5Y2dRdWdJL2s1L3E0TnBGSXZWTGNrMklHVWVuSTZxSW94ZlRw?= =?utf-8?B?ZTRFVHp5cGtZTERsd2ZjcWd4QXQxcVd1emVzUG1NbjBnVkJwMVFNRUE4YklD?= =?utf-8?B?aE9yMEFtYUhyTmRDMWozN1NMd2NucUFjZVR1SEt2SmRNazlHdzZoYzkxWHJ6?= =?utf-8?B?bHMza1lSbi9DZ0JJakZMdjBnMjIveGg1aCs0UGhYTVZXZnpDRjJaRUNSandR?= =?utf-8?B?MkZRRTNyRUJtM3BqcFV3RzVGdm9HT0tvNmJkZHFOcUdRVVpZd2d6aHphVEY4?= =?utf-8?B?UnZzTC9RQXQ1clZkWkxwSFFhdVVDd0pyVmJHQ1RmSGtoQlRHN3VIdThLbWMx?= =?utf-8?B?blVGWEs0SmNoa01ZcnlhVjNjS09lY0tOVW9BczVJeTdxcHZHTE56NnZJcFRB?= =?utf-8?B?RE1wTmt2M0pMYzl6ZkhIZy9oZGt5QmpqRUwrMlpNUHhIR0VBb0JRVkdON0pL?= =?utf-8?B?TmdCanY1Z3ppSzdVcllVTFFMYnFHQy9KZlBlQXpIS29xYUQyTE5zMEJuSlpl?= =?utf-8?B?UWxRU3ozelIzMDdVVmp5aVpyRGU3Ryt1bjVGQTRGbGVlQ0Zub3lja3ZhTmIv?= =?utf-8?Q?CKhn3iUwvwyiK7gluEmaJtHCTZBHH1gTIVP7ASr?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8102.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230032)(366008)(376006)(1800799016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q3BVZDhNaU0wckl2S1phVW5JaUdHTXc4eXpvZmJZdHN5QkZjNi9waDhEOVl0?= =?utf-8?B?MmF3NTRrdjNrUDNJ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Sk9scEUzZmx5SjRN?= =?utf-8?B?aHEzR01XdHFPSXJUSzRmVkFMVld6ZFFCL0hpVmJidmtNUkRNcTBOYWE3U1d3?= =?utf-8?B?bWFLZytDY1NsVWRtQ0grVU5wdG9ISUtWWlYrOWNDbHFuUjhoQUV3Y3R1VWNh?= =?utf-8?B?cTFQa1NuVlZ1SEc3S0pTT0k3YjRjZU0ycmZaR0RBMlNleTg3dDhuV2E1VzlF?= =?utf-8?B?bjA1ckZtTjlhZTJHakF0OGFIZ2Rkako4KzhkQTBaWUhZdStFTFZKK1M1MGhu?= =?utf-8?B?MGhxVTlNT3YxaUI2WEJhNEV4cFFLWm1SSERRSEdzRHNYc0ZWV2xsWHJqOS9i?= =?utf-8?B?Q3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: a4669c87-3ea5-4c84-149e-08dc8ac76e7b X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8102.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 10:07:13.8216 (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: JCWhs2hAFheFY7TyvPJ+CLBbK9/ITAkzaJ0oHcYsJpSWJ1tlBFgBd5/pf9A0hhH0sbk/ZUP1mUqhi/xIDHAFB/X44lpXb9Y0bVGRyI5FqKI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7528 X-OriginatorOrg: intel.com On 5/30/24 03:34, Jakub Kicinski wrote: > On Tue, 28 May 2024 15:48:35 +0200 Alexander Lobakin wrote: >> diff --git a/scripts/kernel-doc b/scripts/kernel-doc >> index 95a59ac78f82..d0cf9a2d82de 100755 >> --- a/scripts/kernel-doc >> +++ b/scripts/kernel-doc >> @@ -1155,6 +1155,7 @@ sub dump_struct($$) { >> $members =~ s/\bstruct_group_attr\s*\(([^,]*,){2}/STRUCT_GROUP(/gos; >> $members =~ s/\bstruct_group_tagged\s*\(([^,]*),([^,]*),/struct $1 $2; STRUCT_GROUP(/gos; >> $members =~ s/\b__struct_group\s*\(([^,]*,){3}/STRUCT_GROUP(/gos; >> + $members =~ s/\blibeth_cacheline_group\s*\(([^,]*,)/struct { } $1; STRUCT_GROUP(/gos; >> $members =~ s/\bSTRUCT_GROUP(\(((?:(?>[^)(]+)|(?1))*)\))[^;]*;/$2/gos; >> >> my $args = qr{([^,)]+)}; > > Having per-driver grouping defines is a no-go. [1] > Do you need the defines in the first place? this patch was a tough one for me too, but I see the idea promising > Are you sure the assert you're adding are not going to explode > on some weird arch? Honestly, patch 5 feels like a little too > much for a driver.. > definitively some of the patch 5 should be added here as doc/example, but it would be even better to simplify a bit -- I think that "mark this struct as explicit split into cachelines" is a hard hard C problem in general, especially in the kernel context, *but* I think that this could be simplified for your use case - split into exactly 3 (possibly empty) sections: mostly-Read, RW, COLD? Given that it will be a generic solution (would fix the [1] above), and be also easier to use, like: CACHELINE_STRUCT_GROUP(idpf_q_vector, CACHELINE_STRUCT_GROUP_RD(/* read mostly */ struct idpf_vport *vport; u16 num_rxq; u16 num_txq; u16 num_bufq; u16 num_complq; struct idpf_rx_queue **rx; struct idpf_tx_queue **tx; struct idpf_buf_queue **bufq; struct idpf_compl_queue **complq; struct idpf_intr_reg intr_reg; ), CACHELINE_STRUCT_GROUP_RW( struct napi_struct napi; u16 total_events; struct dim tx_dim; u16 tx_itr_value; bool tx_intr_mode; u32 tx_itr_idx; struct dim rx_dim; u16 rx_itr_value; bool rx_intr_mode; u32 rx_itr_idx; ), CACHELINE_STRUCT_GROUP_COLD( u16 v_idx; cpumask_var_t affinity_mask; ) ); Note that those three inner macros have distinct meaningful names not to have this working, but to aid human reader, then checkpatch/check-kdoc. Technically could be all the same CACHELINE_GROUP(). I'm not sure if (at most) 3 cacheline groups are fine for the general case, but it would be best to have just one variant of the CACHELINE_STRUCT_GROUP(), perhaps as a vararg.