Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp346669lfv; Wed, 13 Apr 2022 05:28:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7pYS23/xv+3Gwzfnqm2wGo/GxnfgrFanxkdd9CwliMzf6H2dwoRGnYNOLcHmWaqAoUtM6 X-Received: by 2002:a17:906:c1d6:b0:6d6:e0a3:bbc7 with SMTP id bw22-20020a170906c1d600b006d6e0a3bbc7mr38932399ejb.484.1649852897000; Wed, 13 Apr 2022 05:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649852896; cv=none; d=google.com; s=arc-20160816; b=NOU0d69NaCD1P1+jSq+/j+kRs+pwWjtflo+LvgO4iktv25BRDTdr5NsGPCq9FfFZmq 6gZiLWfPKISgLHe2VvqMN9B8AimKgT4FAEAixFel+jBhIyokFZz2a0hoIWI0UyizTZPP j+KCM1NaZ7JTXHpjn6jB2Y7HWarHCfANqRLyIAol4OU15hBfqLSM/jZmHm9maZb/dARZ 1xKz9rA+L9UaGPbMyHUtfb1hBot9A83tdWeaeZ0iqZBlYbDdt86yVWXoNIwHyYaEfVoY hWOAycoLceNU7f3nnQBmMDk4W8e6N8B26paFVCzVS0WMk3asOsYQ/WAF8eWD/PQwc1DU MEJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZuyhuEqANzev0cKOLpM4ig8GGXWov+120f9VOJbnhrk=; b=PwSf5++DvwjoCCyhT16v+3z0vTR5rhwr9rJIT8rb5iF1+0ib5Kzy6D0o+97Ra0z0CQ 3BcVgDPKHL+jRZRN4yUAa+a+GPX85siWvBTVDgeDrYLPvWDCG8dc5WVlhbQaiqEHnrGI t3FOU+/BVYs7IGuKqQ5Ca+VfG9+0Kc4BhffjG3FJF1BgBxLFI3IguSPdMyXsfzDML1QG LsxY5jxjBxFC0PzKh4P51Qg2PiWHAIQydg8Ywn2d3HvhFzYZg5GUoKdiKwHFy7GjgUEw +t/WMr+apThzUjleFaTMx8JTH+mQOim1WwZOrhSh6xxfZm7D1GLH5+7ITyl856lksyjR OBjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FGfnS8WB; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020a50cd4e000000b00418ff2e4cf9si1568827edj.538.2022.04.13.05.27.29; Wed, 13 Apr 2022 05:28:16 -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=@gmail.com header.s=20210112 header.b=FGfnS8WB; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233296AbiDMHmw (ORCPT + 99 others); Wed, 13 Apr 2022 03:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233413AbiDMHmn (ORCPT ); Wed, 13 Apr 2022 03:42:43 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 853391EEE7 for ; Wed, 13 Apr 2022 00:40:21 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-deb9295679so1175458fac.6 for ; Wed, 13 Apr 2022 00:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZuyhuEqANzev0cKOLpM4ig8GGXWov+120f9VOJbnhrk=; b=FGfnS8WBE7XXHxeKpo3Ra2H6fp10rRmWaI0sCx2CTO7jRNsBZAIF0+guMeiM8PNVey CpHZ8Cf0n9AwTd55SmXSbJ3MmevU8Y67MuuqTwoVUSwwS7HXT7DwHfphCSVQsOa1drjz +zKbeDjsZAVxEF2LJOeWTy72s2OAARu4QMp0KDs8vCrQgDNozR3lqD5A3/lDebRRlBjj Zj0cupEumm35ZhWu5yjWQ3WCaC2mrZMsdBdwxmBVD5KJuth7vD/WuJtIRwrgd3Uv+1Pg 49y7t7YwFUZxibK20vYSfh44oyqDFQRHg7UiZcXcbCpgcizEeC0y4ahSwdvHG0BpvWzu EbVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZuyhuEqANzev0cKOLpM4ig8GGXWov+120f9VOJbnhrk=; b=DUm227zKZVOpFYGii0mwnaw+dEeaw2HfRrTV1/5cEDSKh9d2l4gCi5XOjVE1GJBlMy fMzySHFfHk74uP098YIo+0n+SbcskPqPpZX3Hy8pU+9kcSijYVj8sM7xY69flp+mcoic ZB5W8eAuP8eRk6zfYakcJfb1TKgBOe0KPffK8GC0Td5OjYcvF+peCRO+Xuqh4UersDxk wmOhNawX732QrDjwvDQg1xgRWt1/5lhSFA0vhYp7URCd/nSq25GwYrVcQ8iNtXXECAGF V+FcK4B1o1SYcXFtCkYpvIzc42K64hG0NUIpnoUwXy1TVcQZSoda0Er2SV0AHotd46i5 SFlg== X-Gm-Message-State: AOAM531dpNv/2ekgAAaVlKud+ctngZoagvP/JpSYyzg08CXVizKJpzyK eJZ7dZg21TCPTGWXpzSULkNSdrWXlgq0jgOL1jqxOanRijo= X-Received: by 2002:a05:6870:9728:b0:e2:c115:488f with SMTP id n40-20020a056870972800b000e2c115488fmr3842246oaq.152.1649835620885; Wed, 13 Apr 2022 00:40:20 -0700 (PDT) MIME-Version: 1.0 References: <20220413071137.4023184-1-rfried.dev@gmail.com> In-Reply-To: From: Ramon Fried Date: Wed, 13 Apr 2022 10:40:09 +0300 Message-ID: Subject: Re: [PATCH] uio: make MAX_UIO_MAPS & MAX_UIO_PORT_REGIONS configurable To: Greg KH Cc: LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Apr 13, 2022 at 10:28 AM Greg KH wrote: > > On Wed, Apr 13, 2022 at 10:11:37AM +0300, Ramon Fried wrote: > > MAX_UIO_MAPS and MAX_UIO_PORT_REGIONS are hard-coded to 5. > > This is not always sufficiant for some drivers. > > Why not? What in-kernel drivers need more than this? Obviously kernel drivers don't need more, but I'm developing a driver that needs more. > > > Make the MAX_UIO_MAPS and MAX_UIO_PORT_REGIONS configurable by > > providing Kconfig int option with the defaut value of 5. > > Spelling check? Ack, will do. > > > > > Signed-off-by: Ramon Fried > > --- > > drivers/uio/Kconfig | 14 ++++++++++++++ > > include/linux/uio_driver.h | 4 ++-- > > 2 files changed, 16 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig > > index 2e16c5338e5b..bc1fe83cec13 100644 > > --- a/drivers/uio/Kconfig > > +++ b/drivers/uio/Kconfig > > @@ -13,6 +13,20 @@ menuconfig UIO > > > > if UIO > > > > +config UIO_MAX_MAPS > > + int "Maximum of memory nodes each uio device support(1-128)" > > Space before "(" please. Ack > > > + range 1 128 > > + default 5 > > + help > > + Maximum memory mapping each uio device can support. > > Any hints as to what this means in more detail? Sure. > > > + > > +config UIO_MAX_PORT_REGIONS > > + int "Maximum of port regions each uio device support(1-128)" > > + range 1 128 > > + default 5 > > + help > > + Maximum port regions each uio device can support. > > Again more detail please. Sure. > > thanks, > > greg k-h