Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp458622lqs; Tue, 5 Mar 2024 07:04:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjNDPC9Z7GwVDPDhoYGsy8Q1gnYlSERCT1YnSibUGzb5uUiljNBLsaEcqiBK5EaqyHRII9fsAtRh9WWJiN7CyidnKR6/NDxJ2e54EKnw== X-Google-Smtp-Source: AGHT+IEjsAKLJ3i9XjZ0xCYsrWTWPSyLn+XYThaDEs0Ryvdwwogz+Au5tVM4wq8swF1pOHzmCC9t X-Received: by 2002:a2e:9658:0:b0:2d3:f7f9:260c with SMTP id z24-20020a2e9658000000b002d3f7f9260cmr935929ljh.35.1709651063336; Tue, 05 Mar 2024 07:04:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709651063; cv=pass; d=google.com; s=arc-20160816; b=a2UTaoTVxrDTk7FNese6xdvYJxjWJfnICSioL1V9UN1NCuiGmS/6493IuQ3g0IBVcp zypKZ33bTWRSodOCvJXZxNO+U/Ek/3045RqE9J4n4XYBfI8m+IyWk3rwxYVjHBerTeQ9 tt65zobHSo38zj4jDloC/h8L25XirNnk30RV9Kn9zLzaTVe1W+b0TqcbRvvSHq2xkbVk 73IGbvLm4VmaRtlVUiZIB8XIaBmLb56o0eQYDXE/Iw2XwX0IZLMlWZCzFvmnW3lG2hwB +sfdHJGK8a5upqHDEGi2TlFLuJHPWUOmC4KM9/Vqpo42w7CcT5ZR3QmI4pGDR0jnuuYn LJ4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=orumIeH7C1G53j5hiJ0FW49EmAqos8o2TVYGyFm8iZ0=; fh=OjYomBzSJYKdQ8L4UhWFb+qH2yaTh6uN5Jk7JGZivU8=; b=jJJuGdOloQE4FozDO4DqOl8zqJzredKxgLk2XkoesMKn5a8N58iry+gp3rcB6Ea+EO l0hxLEviQ80QMkq+CRPqbW9r1X5SjecPCTL69bV19gzz7V5XuY41FrJUeiLmnCCQAxkP P2dnDcHhrHTG7Qj8OVUwD8RhEXKBtHFGSYU2hGXwcQDfet04cMfQUikv046HFD1Qe63q MyIwsh3wmIbfQ2l8i4SRuZsKNCnCSUpaMmHtlmUPm0edci4rMb9rpDnzVIxV4QQKZQv8 ysiNqXhAeAfDh4rb2PRjjSnURIAXDJhrAksHwt6EfnNDfNff9Zff7YlOXIx2fQeOStPD xi5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H25+wX40; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z7-20020a05640240c700b00566a3449b8bsi5155384edb.83.2024.03.05.07.04.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:04:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H25+wX40; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E4D811F21F3D for ; Tue, 5 Mar 2024 15:04:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 460B6126F2C; Tue, 5 Mar 2024 15:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H25+wX40" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 68346126F02; Tue, 5 Mar 2024 15:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651031; cv=none; b=gtJRKeVttmV1AvjmTnoT3tvG2HciSDoWw1CkRPMUdAJfTso/n0mFYXMXdJlUoSwoYybwMqq+eYh9YUpPPhc8NGQnxNJgVsG7bASugSBOjf+lbrHdzvOBLuHE7P8DEvXD5XDAj4Hps/k+9e37gOmwDmuL1eLlbT4Hm0idBFLVZwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651031; c=relaxed/simple; bh=27+BJOW33H94LR/XIIVJMVaAXUoxZygcA3qpLGvJF24=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nNezikr7XiXXBy7cNonHVjFJjQBiJEJ0p9SJbl4XFXOQAkQQkEpvXLBab/UiMk6sg9Udp8h3s88P+2+7CAXdcTzPdj8QWWaFL2CDX6ZB2JZs5Yim1gu6heolqzL76uHxD/1lwBwKuouFaceQLB7ztQpzgGd4G6bBskcbHoGQDlc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H25+wX40; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15F54C43394; Tue, 5 Mar 2024 15:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709651031; bh=27+BJOW33H94LR/XIIVJMVaAXUoxZygcA3qpLGvJF24=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=H25+wX40QDVf7LQENEsoE+hzv6k+KxHFIJFJqewncfk3zIRbstB3rhpHi0ETdlw82 VEdCuqG0OxjAK6RRCJJ3dkpfXpR2Y4r0s7+eDhee5mPTBhdAhMXhhobllARcOFzmK6 1x4fjSBhTzY1OUUMu1jrrKWDm6yRWRd80z4mYzaSdsI+v0W63WpHbOcnBXPc6SbqFL mWchheN01FGp1BksphhLEZ3QRJPR+WULQHOUUcHXRTFPauqoKMbLS8DOsPwbkkfj/U KaRvyVlU+xGBOSlKIkEfmGJqSINj/MUjgm3tvYiSGJ2bw+bZ/E8eyKgvqZCGwU5Xxx CYn643lXYGh+g== Date: Tue, 5 Mar 2024 07:03:49 -0800 From: Jakub Kicinski To: =?UTF-8?B?S8O2cnk=?= Maincent Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu Subject: Re: [PATCH net-next v9 07/13] ptp: Move from simple ida to xarray Message-ID: <20240305070349.5d1a8ff0@kernel.org> In-Reply-To: <20240305100259.006b3137@kmaincent-XPS-13-7390> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-7-455611549f21@bootlin.com> <20240304184737.30cac57b@kernel.org> <20240305100259.006b3137@kmaincent-XPS-13-7390> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 5 Mar 2024 10:02:59 +0100 K=C3=B6ry Maincent wrote: > On Mon, 4 Mar 2024 18:47:37 -0800 > Jakub Kicinski wrote: >=20 > > On Mon, 26 Feb 2024 14:39:58 +0100 Kory Maincent wrote: =20 > > > +static DEFINE_XARRAY_FLAGS(ptp_clocks_map, XA_FLAGS_LOCK_IRQ | > > > XA_FLAGS_ALLOC); =20 > >=20 > > Why _IRQ? anything on the fastpath hopefully has a pointer to the clock > > already, I'd hope. And we often reserve ID 0 as invalid. =20 >=20 > To keep the same flag as IDA_INIT_FLAGS, I am not expert in xarray so I j= ust > keep it without questioning it. Do you think I should remove it? Yes, I believe those defaults are just "to be safe". > ID 0 was valid for phc. IMHO makes it invalid is not a good idea, it > will change the phc id value for current board on the field. Ah, right, let's keep it then. We'll have to use -1 as invalid. > > BTW could be a standalone patch, Xarray conversion from IDA is an > > improvement in itself. =20 >=20 > Indeed. Do you prefer this patch to be standalone? May be a personal preference but I do feel like sending general improvements separately from large new features makes the process=20 more smooth.