Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1369682rwd; Wed, 7 Jun 2023 15:22:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Ds0ZIBUUcZzNk9bmp9ZR7Oi8bmDVNnja6IxBlx9sOPry0gI+zBoLhUolW6Fkk4EhvdSeq X-Received: by 2002:a05:6a20:728b:b0:10c:c5df:8bb7 with SMTP id o11-20020a056a20728b00b0010cc5df8bb7mr3436065pzk.30.1686176551721; Wed, 07 Jun 2023 15:22:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686176551; cv=pass; d=google.com; s=arc-20160816; b=CPvZrQ36F+ryJwjmytaGJEH2QcQ3GfLZi6WNuGus4FsSLrNlzzMfD7fb8LMu28eMYR e8jKsptFkkunWUYcujjtxPVxEit5tB7Qv6tlUSLjrotVQWSkEqLpE+gjfR/3SwS6ayf+ 5+bXZLB3FmalJJwSQQmKMxnntaeN4I3NByJGuwQ+ToETtMeDVmYyA2wQETRatsksim/H 9UuHc75dES8WAbDVF4MNxoDcFx02DFH/IEL81+UKMcZpFIV1l6p18sWVsIFPsWO+85MD B3D2KbDE9ChmvfBPD61bp2WukeGPP0L/Rqcb/baqVBzjuH0ajco87rOHVIKdtikHWVjU XRPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=GCF7/QGYSl22nMaQc8FilgCiPrFU1/kkJjnMaLu5Sg0=; b=VMwWhZMIYdFWBhNiqw+RmAy2Q0HUG472VWG5/bso2lrOGABg2MXjJFWASrxrcJZwtP kP8CtlfX2p5lZVngfg/FQzt7SXreLlay0ziP8jI2lAASyMGos2w7kCbymvXsphXRSiTj pNTcGeabaHOK+hPfB+5MxTPbXNlzDYsxcf8W06HM/Xp/tUO4ECods94pzZ++A+Dzn+5E ozhw8+PEesKJxr9WAUdRvyVJvrxqnorELnx669UcX3lSfDMhoX6As0cueKp5GcAQdw8k cbAM41/LptIW+infQPOHWy4yLM6JfakCg0i96Gahliz34Uf0eUgH5+Tj1lmtyrt15pkQ NMfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ni.com header.s=PPS11062020 header.b=Qmdr75Po; dkim=pass header.i=@nio365.onmicrosoft.com header.s=selector2-nio365-onmicrosoft-com header.b=jjNNxhUx; arc=pass (i=1 spf=pass spfdomain=ni.com dkim=pass dkdomain=ni.com dmarc=pass fromdomain=ni.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ni.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b005347fcb7853si9786419pgd.140.2023.06.07.15.22.17; Wed, 07 Jun 2023 15:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ni.com header.s=PPS11062020 header.b=Qmdr75Po; dkim=pass header.i=@nio365.onmicrosoft.com header.s=selector2-nio365-onmicrosoft-com header.b=jjNNxhUx; arc=pass (i=1 spf=pass spfdomain=ni.com dkim=pass dkdomain=ni.com dmarc=pass fromdomain=ni.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ni.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbjFGWHu (ORCPT + 99 others); Wed, 7 Jun 2023 18:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjFGWHs (ORCPT ); Wed, 7 Jun 2023 18:07:48 -0400 Received: from mx0b-00010702.pphosted.com (mx0b-00010702.pphosted.com [148.163.158.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1871119AA for ; Wed, 7 Jun 2023 15:07:46 -0700 (PDT) Received: from pps.filterd (m0098779.ppops.net [127.0.0.1]) by mx0b-00010702.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 357KuJYB018849; Wed, 7 Jun 2023 17:07:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ni.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=PPS11062020; bh=GCF7/QGYSl22nMaQc8FilgCiPrFU1/kkJjnMaLu5Sg0=; b=Qmdr75Po/BKrSjco74n4pwf88vvfFQNeJVv7GBusQkFt59aASfN60NmPMh4ai0fFjSzp Zh57PdmRI6mUUIUFZ/SC701BSOtW0KLC22vOBWVL7uDYwrtT6POUKFxV2RLXmfeWCshc NSa6R7itSvuo2a0PogjgYVDN46lCHElod48G03/W1saCziJWYzicNr91Fhasj3ykC4DN 21CsP+pApzQRWFdJPg6AbTcmts03Un1Fo42K2s3O3JZyR8NQ5PGJyvvsfg01a5lxBMVt COJ81ND/xABQd3/+dDcAy0q6v6Qkke0srhSOIKoyFEiIj+dOxi2ei0eiS2CxA8p62HCO pw== Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2177.outbound.protection.outlook.com [104.47.59.177]) by mx0b-00010702.pphosted.com (PPS) with ESMTPS id 3r2adfjenv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Jun 2023 17:07:44 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ONG0gleoFaS22gtf1yMGwm9SyHMNN0Exgcd1aj2nGHpsX/VcKT3N0V7w1CBPobF9qx7OnBpQ0Mawz5igbrkZMzff8DrATPmQct3hKhDEWY7fDWcP4SBdN1v9qAOTku4urI6K8alX1lkU8dpPnlk6agG2y2KnYvnbseHspaRkFlYz7k+bam492MGWfEWxvnFVtiq5VMd/rrIhMfg632ooRXyZFBRE1z99X07Mle4DRfZRouApWOE0C19JmCQAjHHE/5psZ6lhpscXedPp2ejnpKi3FO4dGniNyt61fCe6S0zOsfx0NmU5KtGkwCfanfZZFfoTn9j/GLafD5J6WpTjoA== 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=GCF7/QGYSl22nMaQc8FilgCiPrFU1/kkJjnMaLu5Sg0=; b=bLPEQVgisgUXzCwKK9P2/UuXBIm//owbAacGPFgPNlu/QjCpVAAGNCFvbTMZEP0Qb0kNOptk+Sp5nt6DUpTcUJVVdEF0qmwt0PpybiACnjBELFLXzJSHTn8mi00U1l8o9gmGTB7+AQOoevGEO5VPzgKmRmrC4JM7JdO4avHv0NUridvAm5luY1/6ipfjNxz5EwoCkJSSiDk16rdWr4NLq42dXURG9BjyQ9ibSITKtq/l8qrgBAJWpvzLxqeThzwJETg/wAW0plNLuRkJOpBQo/h0+/ab808E1hykzZ4bQvYcd+iTlI61bPhG874JvrecgDqVF8bQeo0uclrJwzUJCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ni.com; dmarc=pass action=none header.from=ni.com; dkim=pass header.d=ni.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nio365.onmicrosoft.com; s=selector2-nio365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GCF7/QGYSl22nMaQc8FilgCiPrFU1/kkJjnMaLu5Sg0=; b=jjNNxhUx7vw5vEngG9GyDri1E9/Jx9R0wF7c46k+uoLCYjjQ5j0dSOK8exES/ktgV+G/8+OJmrhf7kB+ukQvjMzuSrijdSUg+GISmtsPFvFKQfe5uflY9FjcvU2QdokvbZCmk3rw3itJ3mM7lE/kk2qfCWhv67whrSEaxz/54kw= Received: from SN6PR04MB4879.namprd04.prod.outlook.com (2603:10b6:805:9b::29) by MN2PR04MB6928.namprd04.prod.outlook.com (2603:10b6:208:1e3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.19; Wed, 7 Jun 2023 22:07:41 +0000 Received: from SN6PR04MB4879.namprd04.prod.outlook.com ([fe80::f64d:f407:7c9c:4af0]) by SN6PR04MB4879.namprd04.prod.outlook.com ([fe80::f64d:f407:7c9c:4af0%5]) with mapi id 15.20.6455.030; Wed, 7 Jun 2023 22:07:41 +0000 Message-ID: Date: Wed, 7 Jun 2023 17:07:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [RFC PATCH] pps: Increase PPS_MAX_SOURCES value. Content-Language: en-US To: Rodolfo Giometti Cc: linux-kernel@vger.kernel.org, brenda.streiff@ni.com References: <20230605203147.694716-1-charlie.johnston@ni.com> From: Charlie Johnston In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SN1PR12CA0113.namprd12.prod.outlook.com (2603:10b6:802:21::48) To SN6PR04MB4879.namprd04.prod.outlook.com (2603:10b6:805:9b::29) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB4879:EE_|MN2PR04MB6928:EE_ X-MS-Office365-Filtering-Correlation-Id: b5148391-a9f0-4a1a-4894-08db67a39c97 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wT8mBljVK6XXPBNkYr95Tbt1bdDzZxRhHAPSde/FWFrDruf8GOO8BLuiLTXdzu2ww2V20c4wX5+jj4eGGnqrH1PfSu/yk8bACydT9ixpTihd58R2rdsyd5dZgxsl2XBhUWfMspqFt7CPGWJrVp4V2/B+GR75FhGqTh7pcNcRxwguK718qTh4Ys02Egq+GStnRUHzr4ial0MiqAcI5/NaLDMx1uhdSEAwEX+DUkX4fw0pkgsUq7Z5OhzTSSBcR29poSIfvX/7+tZbluNP7YUb4VKZCHNnwbvuWf5+0Xq3MPdRtRXjtg1fX98whzzD8EXutrbQXySosO401CiSGGRFwbVPlDB6QUeDycJKc/XZax7t72aVBF04pgZVEBqGZut/cRLKgA5DvruGE1AXpraBjWKJDmoluTGeanXRyEs9CB059TkT9c3zEQMI40lP3dOQ8XsJXq3jgqZ+6OawcSX8cICnhyw324KrX8qnovTdur3rSH/MjgEIlOvJwQaovL/s9IwQZ4jlA8Lv51ss6eHGx1lMF1dpIrtBPgITbvgiQF7dSb/V7hXJ7lAoGeFmm/wkJKWvCXWveu4AHUqk3f6Jtbb6SXLddwtZ6LFfRqCjFBiN2em6uLGqjbNjp32FL+tMYnMEGHnlvtcnyqto7U/i+g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR04MB4879.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(366004)(346002)(396003)(136003)(451199021)(6486002)(36756003)(66556008)(66476007)(66946007)(4326008)(2906002)(44832011)(5660300002)(86362001)(38100700002)(41300700001)(8676002)(31696002)(6916009)(316002)(8936002)(478600001)(83380400001)(186003)(2616005)(31686004)(6512007)(6506007)(53546011)(26005)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange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U3FjSWpWOTV4K1dZT1FZWjBDZWNtaVZ5UURLRGd6ajF1?= =?utf-8?B?MjVWU1FoOXhPelorQmRvd3dhRzZ4VE8vK1ByQ3JTSVVyV0RDV1JRdUkyM1dt?= =?utf-8?B?SXdZaXlkUlBXTG1tRW44TC9MN3I5VSs3bVZ4VUlJbjIyWHZId3ppSXc5b0VS?= =?utf-8?B?dzJmd1VvZXNoSjJkcWp5enV2N2ZIcTFYcGQrSmRUMHA0QzU3VGN4RCtCWTlw?= =?utf-8?B?VitmRjFwMy9NQnpLWDdFU3pnOUVmdHJTckhLcE1oeU9pb2JHOHRtWmNnSUFl?= =?utf-8?B?TVhkS3JBQXJ2UllLOEllMHVuTkR5WHpXdjZSTVZBd3RpYTJNNDc5cldNR2JM?= =?utf-8?B?MVJtR09IRzBaUndoSCtBVXNJTnExemxCTkpJalNZazI4WHppaDEwZCtOZUJ0?= =?utf-8?B?QlE9PQ==?= X-OriginatorOrg: ni.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5148391-a9f0-4a1a-4894-08db67a39c97 X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4879.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 22:07:40.9128 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 87ba1f9a-44cd-43a6-b008-6fdb45a5204e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uz6z+awCawEII8U0bDHxeuBBOURI52A6mGBOKZOSJfg56FCMapl+0+3OdRWX7mNDtB+ulJAhaY3UNXkFjKnRWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6928 X-Proofpoint-GUID: NPF67gRx2tnFXjNa2L7K7O4qiP9sfyCq X-Proofpoint-ORIG-GUID: NPF67gRx2tnFXjNa2L7K7O4qiP9sfyCq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-07_11,2023-06-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=30 suspectscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=921 malwarescore=0 bulkscore=0 mlxscore=0 clxscore=1015 adultscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=30 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306070193 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/7/23 02:33, Rodolfo Giometti wrote: > On 05/06/23 22:31, Charlie Johnston wrote: >> For consistency with what ptp uses for minors, this >> change sets PPS_MAX_SOURCES to MINORMASK + 1. >> >> The PPS_MAX_SOURCES value is currently set to 16. In >> some cases this was not sufficient for a system. For >> example, a system with multiple (4+) PCIe cards each >> with 4 PTP-capable ethernet interfaces could run out >> of the available PPS major:minors if each interface >> registers a PPS source. >> >> Signed-off-by: Charlie Johnston >> --- >>   include/uapi/linux/pps.h | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/include/uapi/linux/pps.h b/include/uapi/linux/pps.h >> index 009ebcd8ced5..85f472330da8 100644 >> --- a/include/uapi/linux/pps.h >> +++ b/include/uapi/linux/pps.h >> @@ -26,7 +26,7 @@ >>   #include >>     #define PPS_VERSION        "5.3.6" >> -#define PPS_MAX_SOURCES        16        /* should be enough... */ >> +#define PPS_MAX_SOURCES        (MINORMASK + 1) >>     /* Implementation note: the logical states ``assert'' and ``clear'' >>    * are implemented in terms of the chip register, i.e. ``assert'' > > I have just one question: are you sure that it's safe to call idr_alloc(..., 0, (MINORMASK + 1), ...)? > > Ciao, > > Rodolfo > Thanks for taking a look! My understanding is that idr_alloc(..., start, end, ...) can take any end value up to INT_MAX. It also handles any values <= 0 by treating them as equal to INT_MAX + 1 since the end value is non-inclusive. I can't think of any reason using MINORMASK + 1 here would be an issue since it's much less than the maximum value idr_alloc() allows. A number of drivers (e.g. ptp) just explicitly use a start and end value of 0, but I don't think that change would fit here. Regards, Charlie