The NetBSD Project

CVS log for src/sys/dev/acpi/qcomipcc.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / acpi

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:21:47 2026 UTC (11 days, 10 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.2: +1 -1 lines
Sync with HEAD

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 19 20:55:15 2026 UTC (8 weeks, 1 day ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
Fix RCSIDs.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:56:33 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +262 -0 lines
Sync with HEAD

Revision 1.1.4.1
Mon Dec 30 12:31:10 2024 UTC (22 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
FILE REMOVED
Changes since revision 1.1: +0 -262 lines
file qcomipcc.c was added on branch perseant-exfatfs on 2025-08-02 05:56:33 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Dec 30 12:31:10 2024 UTC (22 months, 2 weeks ago) by jmcneill
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11
Branch point for: perseant-exfatfs
arm64: Add support for Snapdragon X1E battery and charger sensors.

This is a port of a set of drivers from OpenBSD, adapted to use ACPI
instead of FDT bindings. These drivers are required to boot firmware on
the application DSP which is required to read sensors. This is an impressive
collection of work on the OpenBSD side -- big thank you to Patrick for writing
this code and his help with this porting effort.

Firmware is signed and as a result may be board specific. The qcompas(4)
driver looks for firmware files in qcompas/<subsystem> where <subsystem> is
the string returned by the _SUB method on the ADSP device node. For example,
on Lenovo ThinkPad T14s Gen 6 the subsystem ID is "233817AA".

The files "qcadsp8380.mbn" and "adsp_dtbs.elf" must be placed in
this directory to read sensor data. These files can be obtained by
downloading the appropriate OEM drivers for Windows.

When everything is online, the sensors are reported by sysmon_envsys and
the charger creates a sysmon_pswitch of type PSWITCH_TYPE_ACADAPTER. The
goal is to match the acpiacad(4) and acpibat(4) behaviour as much as possible.

XXX Firmware loading sometimes fails, still looking into this. When this
    happens, sensors are not registered.

[battery]
    design voltage:     0.000                                         V
           voltage:    12.980                                         V
        design cap:    58.000                                        Wh
     last full cap:    59.810                                        Wh
            charge:    59.740                      2.000%   8.998%   Wh (99.88%)
       charge rate:       N/A
    discharge rate:       N/A
          charging:     FALSE
      charge state:    NORMAL
  discharge cycles:         4        0        0        0        0 none
       temperature:    30.230                                      degC
[charger]
         connected:      TRUE

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>