From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 EF638406275 for ; Thu, 14 May 2026 14:09:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778767765; cv=none; b=sMuCqgpNpkyBHC0fvIR7EZrnxzKQx8rAQa1hLF8qcOqAhE1qk3VnUEluYt3u8XxU0omPm1NCuYk14wUwR4M+J2+WZINbwcSjjVb3EYtmxWVe3jwtkLIHCoZSCNgYia5IuvslxefiabNmFl2tHTBsV6OakQBXkcr5LwxtbdNY4F4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778767765; c=relaxed/simple; bh=VZe7viTjyyuvoeg4TEvS6pWNba6qbS1ennxYCshmPbc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hEPqqMvhShrhLvjI8+GVijixesSrW1CAau8EgtL6SLQAXTqi5oaAH2ML/grG9tZ848HbzgQGd/9gNsHe4dSFLMyWHR+WRg5P9TDzqJs9caLps2JEaJB8SNrR1+Ltd7gzcfx/pWGsIRpmPEbf/zFos1tbZrcbMQhL9NXXaOsHJZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=oHcE4wn4; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="oHcE4wn4" Message-ID: <174e2370-959e-4b41-ab55-8058b84a12f6@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1778767760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r3/oAeJ+mSCafBgEIshGhkz6UcGuH8qgDexlJq8w9tQ=; b=oHcE4wn4DtcHOwgvBlagGPKGttGhrqPo4VMPj8SWZo/8qKwNP15R1GalXVb5uMhVUKhv1a P5tPEqidchyWXU5eUYwY4jZrQ9+q9cqGi98/iimdeKQrypeMKvlmD/EaXCV68bx7CX9lx7 sOpdy9555Iv+bHCf0l2eEggvn5hMLAc= Date: Thu, 14 May 2026 15:09:16 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [RFC PATCH] pps: make number of PPS devices configurable To: Jakub Kicinski Cc: Rodolfo Giometti , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260514112614.2016026-1-vadim.fedorenko@linux.dev> <20260514065526.2ed937dc@kernel.org> <65a3d091-0648-4c6c-8062-869d0fcec8dc@linux.dev> <20260514070804.7cbb6181@kernel.org> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <20260514070804.7cbb6181@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 14/05/2026 15:08, Jakub Kicinski wrote: > On Thu, 14 May 2026 15:03:03 +0100 Vadim Fedorenko wrote: >> On 14/05/2026 14:55, Jakub Kicinski wrote: >>> On Thu, 14 May 2026 11:26:14 +0000 Vadim Fedorenko wrote: >>>> Modern systems may have more than 16 PPS sources and current hard-coded >>>> limit breaks registration of some devices. Make the limit configurable >>>> via Kconfig, keep default value of 16 devices. UAPI has to be changed to >>>> support maximum possible number. >>> >>> Hm, since this is effectively just sizing an IDR maybe we should just >>> bump it to 64? It appears to cost nothing if not used. >> >> Just bump to 64, but keep it constant? In this case maybe 256 just to >> align with the max minor value for chardev (in compat mode)? > > That's fine too (the value is the count right? It's not the max id? > Cause 256 would spill out of u8) It's the count. Max id will be 255.