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-next>] [day] [month] [year] [list]
Message-ID: <SN6PR02MB40936F8F2879AD5CFDFC80D2CA3C9@SN6PR02MB4093.namprd02.prod.outlook.com>
Date:   Thu, 3 Jun 2021 07:03:25 +0000
From:   Raviteja Narayanam <rna@...inx.com>
To:     "linux@...linux.org.uk" <linux@...linux.org.uk>,
        "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
CC:     "jslaby@...e.com" <jslaby@...e.com>,
        Michal Simek <michals@...inx.com>,
        "linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        git <git@...inx.com>
Subject: Need suggestion for 'access_type' of AMBA pl011 serial driver

Hi,

The uart peripheral on Xilinx Versal platform is ARM primecell.
Our environment is 32-bit access type but the ARM primecell uart in pl011 driver has default 16 bit access type. 
(https://github.com/torvalds/linux/blob/master/drivers/tty/serial/amba-pl011.c#L2665 access_32b is false for 'vendor_arm')
This is causing asynchronous abort on our platform when any UART register is written from the pl011 driver.

Need suggestion on how we can address this issue and if the below approach is fine.

As this is platform specific issue, we can have a new device tree property (memory_access_type), specifying the 32 bit type.
In the probe function, override the behavior (uap->port.iotype) if this property is present in DT.
In this way, we can have support for our SOC, without breaking any legacy ones.

Regards,
Raviteja N

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ