lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 10 Nov 2023 11:55:41 +0100
From:   Greg KH <gregkh@...uxfoundation.org>
To:     "Guntupalli, Manikanta" <manikanta.guntupalli@....com>
Cc:     "git (AMD-Xilinx)" <git@....com>,
        "Simek, Michal" <michal.simek@....com>,
        "jacmet@...site.dk" <jacmet@...site.dk>,
        "jirislaby@...nel.org" <jirislaby@...nel.org>,
        "linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "Pandey, Radhey Shyam" <radhey.shyam.pandey@....com>,
        "Goud, Srinivas" <srinivas.goud@....com>,
        "Datta, Shubhrajyoti" <shubhrajyoti.datta@....com>,
        "manion05gk@...il.com" <manion05gk@...il.com>
Subject: Re: [PATCH] serial: uartlite: Use dynamic allocation for major number

On Fri, Nov 10, 2023 at 09:28:40AM +0000, Guntupalli, Manikanta wrote:
> Hi Greg,
> 
> > -----Original Message-----
> > From: Greg KH <gregkh@...uxfoundation.org>
> > Sent: Thursday, November 9, 2023 6:50 PM
> > To: Guntupalli, Manikanta <manikanta.guntupalli@....com>
> > Cc: git (AMD-Xilinx) <git@....com>; Simek, Michal
> > <michal.simek@....com>; jacmet@...site.dk; jirislaby@...nel.org; linux-
> > serial@...r.kernel.org; linux-kernel@...r.kernel.org; Pandey, Radhey Shyam
> > <radhey.shyam.pandey@....com>; Goud, Srinivas
> > <srinivas.goud@....com>; Datta, Shubhrajyoti
> > <shubhrajyoti.datta@....com>; manion05gk@...il.com
> > Subject: Re: [PATCH] serial: uartlite: Use dynamic allocation for major number
> > 
> > On Thu, Nov 09, 2023 at 06:06:40PM +0530, Manikanta Guntupalli wrote:
> > > Device number 204 has a range of minors on major number.
> > > uart_register_driver is failing due to lack of minor numbers when more
> > > number of uart ports used.
> > 
> > So you need more than the 4 allocated to you?
> Yes, we have a customer who has 32 uartlite instances in his board.
> > 
> > > So, use dynamic allocation
> > > for major number to avoid minor number limitation on 204 major number.
> > >
> > > https://docs.kernel.org/arch/arm/sa1100/serial_uart.html
> > 
> > What does this break by doing this?
> uart_register_driver() is failing due to lack of minor numbers when the customer
> has 32 uartlite instances in his board.
> > 
> > Also, you forgot to update the documentation :(
> We will update the documentation.
> > 
> > And how was this tested?  
> We tested on both ZCU106 AMD/Xilinx evaluation board with 32 uartlite instances with customer design.
> 
> >What about older systems with static device nodes,
> > are you sure none are out there for this old hardware anymore?
> Shall we use below approach to support both legacy hardware and hardware with more number of uartlite instances use case. Please suggest.

Yes, that looks much better, also update the Kconfig entry for
CONFIG_SERIAL_UARTLITE_NR_UARTS as well so that people know the
major/minor will be dynamic and will not be the other entry if they ask
for over 4.

thanks,

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ