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] [thread-next>] [day] [month] [year] [list]
Message-ID: <YjSZIT6p/QL5T1QJ@kuha.fi.intel.com>
Date:   Fri, 18 Mar 2022 16:37:21 +0200
From:   Heikki Krogerus <heikki.krogerus@...ux.intel.com>
To:     Paul Menzel <pmenzel@...gen.mpg.de>
Cc:     linux-usb@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
        Dell.Client.Kernel@...l.com
Subject: Re: ucsi_acpi: probe of USBC000:00 fails with ioremap error

Hi Paul,

On Fri, Mar 18, 2022 at 01:36:37PM +0100, Paul Menzel wrote:
> Dear Linux folks,
> 
> 
> On a Dell Precision 3540, Linux 5.16.12 reports an ioremap error:
> 
>     [    0.000000] Linux version 5.16.0-4-amd64
> (debian-kernel@...ts.debian.org) (gcc-11 (Debian 11.2.0-18) 11.2.0, GNU ld
> (GNU Binutils for Debian) 2.38) #1 SMP PREEMPT Debian 5.16.12-1 (2022-03-08)
>     [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.16.0-4-amd64
> root=UUID=c9342a55-b747-4442-b2f4-bc03eb7a51cf ro quiet noisapnp
> log_buf_len=2M cryptomgr.notests btusb.enable_autosuspend=y
> random.trust_cpu=on
>     […]
>     [    0.000000] DMI: Dell Inc. Precision 3540/0M14W7, BIOS 1.15.0
> 12/08/2021
>     […]
>     [   24.230968] videodev: Linux video capture interface: v2.00
>     [   24.237747] ioremap error for 0x78e31000-0x78e32000, requested 0x2,
> got 0x0
>     [   24.238100] ucsi_acpi: probe of USBC000:00 failed with error -12
>     […]
>     $ sudo more /proc/iomem
>     […]
>     78a04000-78ea2fff : ACPI Non-volatile Storage
>       78e31000-78e31fff : USBC000:00
>     […]
> 
> This seems to happen on a lot of Dell devices, cf. bug 199741 (ioremap error
> on Dell XPS 9370) [1].

I'm not sure if this helps, but I'm going to change the ioremap() call
to memremap() soon in any case in this driver. Can you test the
attached patch?

thanks,

-- 
heikki

View attachment "0001-usb-typec-ucsi-acpi-Map-the-mailbox-with-memremap.patch" of type "text/plain" (2082 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ