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: <aHEnVTCSwfdijvzQ@smile.fi.intel.com>
Date: Fri, 11 Jul 2025 18:01:41 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Marcos Del Sol Vives <marcos@...a.pet>
Cc: Bartosz Golaszewski <brgl@...ev.pl>, linux-kernel@...r.kernel.org,
	Linus Walleij <linus.walleij@...aro.org>,
	linux-gpio@...r.kernel.org
Subject: Re: [PATCH v2] gpio: vortex: add new GPIO device driver

On Fri, Jul 11, 2025 at 04:24:41PM +0200, Marcos Del Sol Vives wrote:
> El 11/07/2025 a las 12:19, Bartosz Golaszewski escribió:

> > This looks better but I admit I'm not an expert in x86 platforms so
> > I'll allow myself to Cc Andy. Is this how it's typically done in x86?
> > Is this module visible in ACPI in any way that would allow us to
> > leverage the platform device core? Or do we need to try to register
> > the device unconditionally on all Vortex platforms?
> 
> Again I want to point out I am not an expert by any means. This is my first
> kernel driver and I am writting it as a hobbyst, not as a company employee.

Oh, I see. Sorry that I'm asking too much (do I?) Unfortunately the review
might be not well appreciated process by the author, but we are all for
having the better solutions. That's the part of learning and R&D process.

As for this discussion it seems you already committed into enormous work
to gather all pieces and knowledge, but we need more.

> Regarding ACPI: I have just now decompiled the DSDT for the Vortex86DX3
> machine and I do not see any Device() claiming ownership of 0x78 or 0x98,
> or mentioning GPIO at all:
> 
> root@...3:/home/marcos/acpi# ls -l *.dsl
> -rw-r--r-- 1 root root   3459 Jul 11 16:05 APIC.dsl
> -rw-r--r-- 1 root root 196800 Jul 11 16:05 DSDT.dsl
> -rw-r--r-- 1 root root   9211 Jul 11 16:22 FACP.dsl
> -rw-r--r-- 1 root root   1364 Jul 11 16:22 FACS.dsl
> -rw-r--r-- 1 root root   1552 Jul 11 16:23 MSDM.dsl
> -rw-r--r-- 1 root root      0 Jul 11 16:07 OEMB.dsl
> -rw-r--r-- 1 root root   3957 Jul 11 16:07 SLIC.dsl
> root@...3:/home/marcos/acpi# grep -Ri gpio *.dsl
> root@...3:/home/marcos/acpi# grep -Ri 0x0078 *.dsl

Oh, it's not as easy as grepping. One need to read and understand the ACPI
language for that.

> Manually skimming through DSDT does not yield anything useful either.
> 
> This kinda confirms what the company told me: the machine does not properly
> support ACPI, it has a set of fake tables enough to convince Windows 7 into
> booting.

Let's see! As I asked in the previous mail, please share some information in
full.

> The Vortex86MX board does not even have those, and has no ACPI tables
> whatsoever.

Yeah, but you can create them from scratch if you wish. I once have done
this for Intel Merrifield (in U-Boot) and it went pretty well. From that
time we use that board as regular PC.

> And regarding something I forgot to answer on the previous email about the
> future of these machines: the Vortex86MX is a i586 processor, and this
> Vortex86DX3 is a dual-core i686 processor with SSE1 support that I myself
> bought brand new from the manufacturer, indicating they are still making
> and supporting them.

Would be nice to get the updated documentation... But it might be not available
or at best under NDA.

> The company is seemingly launching next year also a Vortex86EX3 with proper
> i686 and SSE2 support, I guess because Intel's patents have finally expired.
> 
> So I do not think removing i486 support is gonna be an issue except for
> very ancient processors that the company is not making anymore anyway.

Thanks for clarifications here!

And thank you for your efforts, I would like to help as much as I can.
Again, sorry, if my first messages looked a bit rejecting. I do not mean
that, it's just a professional deformation due to tons of reviews I have
done in the past.

-- 
With Best Regards,
Andy Shevchenko



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ