‹ BackHN Continuity

Thread

Linux support is coming to Snapdragon X2 series

625 points · 273 comments · aaronday

  1. hurricanepootis · · focus · HN ↗
    I hope Qualcomm upstreams all the device tree kernel level stuff to Linux for every laptop model. One of the things I don't like about Arm Laptops is—for example—how even if a SoC is supported upstream, if the manufacturer does not upload a device tree for their device, then you're cooked.

    I read that while these Snapdragon laptops do technically have UEFI + ACPI, the information they provide is not useful for Linux and is more coupled with Qualcomm's proprietary drivers on Windows. Therefore, device trees are needed on Linux (I could be wrong about the first part).

    1. pantalaimon · · focus · HN ↗
      There was a recent proposal to make use of ACPI on ARM

      <a href="https:&#x2F;&#x2F;www.phoronix.com&#x2F;news&#x2F;DT-ACPI-Hybrid-Mode-Linux" rel="nofollow">https:&#x2F;&#x2F;www.phoronix.com&#x2F;news&#x2F;DT-ACPI-Hybrid-Mode-Linux

      1. p_l · · focus · HN ↗
        One option would be to implement the custom non-standard Qualcomm drivers that technically it needs to implement anyway, but with support for the UEFI&#x2F;ACPI interface.

        On Windows, Qualcomm ships custom drivers that override normal ACPI platform logic in various places, IIRC

        1. my123 · · focus · HN ↗
          Not an easily feasible option notably because the firmware ACPI tables are in part stubs - but work on hybrid ACPI&#x2F;DT instead is possible.

          One of the reasons is that Qualcomm uses supplemental ACPI tables (think device tree overlays) shipped inside of the driver packages. Look at the .bin in plenty of the drivers carefully and you&#x27;ll see that they&#x27;re supplemental ACPI tables.

          Windows doesn&#x27;t have such a notion and it&#x27;s implemented via having an ACPI table loader statically linked in to individual drivers.

          _On top_ of that, Qualcomm uses PEP to intercept plenty of ACPI functions and implement them in native code instead.

          1. p_l · · focus · HN ↗
            I was thinking essentially about Linux equivalent of PEP.

            Of course my preferred setup would be for systems to actually ship compliant UEFI instead of Qualcomm shitshow

      2. cromka · · focus · HN ↗
        This is actually misinformed, the discussion on the mailing list made it clear: there is NO full ACPI on these Windows ARM devices; they only use ACPI marginally and still require and provide device tree.

        Phoronix should have revised that article, it&#x27;s completely misleading.

      3. lathiat · · focus · HN ↗
        There is also ARM SystemReady which is an existing spec for this mainly intended for servers. But it’s not being followed well.

        It’s crazy to need a million device trees on server or laptop class devices.

        <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45086346">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45086346

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.