Skip to content

Commit

Permalink
Ported Android 12 related kernel features into the Linux mainline
Browse files Browse the repository at this point in the history
This commit is to port the Android kernel features in to the Linux mainline
to bring up the Android Platform version 12.

* Manifest: https://android.googlesource.com/kernel/manifest
* branch: android-gs-raviole-5.10-android12-qpr1-d

Signed-off-by: Geunsik Lim <leemgs@gmail.com>
  • Loading branch information
leemgs committed Jul 5, 2023
1 parent d61bc51 commit 9b78daa
Show file tree
Hide file tree
Showing 2,976 changed files with 887,206 additions and 22,155 deletions.
18 changes: 18 additions & 0 deletions Documentation/ABI/stable/sysfs-module
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,21 @@ Description:
Note: If the module is built into the kernel, or if the
CONFIG_MODULE_UNLOAD kernel configuration value is not enabled,
this file will not be present.

What: /sys/module/MODULENAME/scmversion
Date: November 2020
KernelVersion: Android Common Kernel -- android12-5.10+
Contact: Will McVicker <willmcvicker@google.com>
Description: This read-only file will appear if modpost was supplied with an
SCM version for the module. It can be enabled with the config
MODULE_SCMVERSION. The SCM version is retrieved by
scripts/setlocalversion, which means that the presence of this
file depends on CONFIG_LOCALVERSION_AUTO=y. When read, the SCM
version that the module was compiled with is returned. The SCM
version is returned in the following format::

===
Git: g[a-f0-9]\+(-dirty)\?
Mercurial: hg[a-f0-9]\+(-dirty)\?
Subversion: svn[0-9]\+
===
2 changes: 2 additions & 0 deletions Documentation/ABI/testing/configfs-usb-gadget-uac2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Description:
c_chmask capture channel mask
c_srate capture sampling rate
c_ssize capture sample size (bytes)
c_sync capture synchronization type (async/adaptive)
fb_max maximum extra bandwidth in async mode
p_chmask playback channel mask
p_srate playback sampling rate
p_ssize playback sample size (bytes)
Expand Down
8 changes: 8 additions & 0 deletions Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,14 @@ Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (Read) Print the content of the Device ID Register
(0xFC8). The value is taken directly from the HW.

What: /sys/bus/coresight/devices/etm<N>/mgmt/trcdevarch
Date: January 2021
KernelVersion: 5.12
Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
Description: (Read) Print the content of the Device Architecture Register
(offset 0xFBC). The value is taken directly read
from the HW.

What: /sys/bus/coresight/devices/etm<N>/mgmt/trcdevtype
Date: April 2015
KernelVersion: 4.01
Expand Down
14 changes: 14 additions & 0 deletions Documentation/ABI/testing/sysfs-bus-coresight-devices-trbe
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
What: /sys/bus/coresight/devices/trbe<cpu>/align
Date: March 2021
KernelVersion: 5.13
Contact: Anshuman Khandual <anshuman.khandual@arm.com>
Description: (Read) Shows the TRBE write pointer alignment. This value
is fetched from the TRBIDR register.

What: /sys/bus/coresight/devices/trbe<cpu>/flag
Date: March 2021
KernelVersion: 5.13
Contact: Anshuman Khandual <anshuman.khandual@arm.com>
Description: (Read) Shows if TRBE updates in the memory are with access
and dirty flag updates as well. This value is fetched from
the TRBIDR register.
94 changes: 94 additions & 0 deletions Documentation/ABI/testing/sysfs-class-sscoredump
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
What: /sys/class/sscoredump/clients
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
Reading from this file provides list of class drivers.


What: /sys/class/sscoredump/enabled
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
This file controls enable/disable coredump feature for all
class drivers.

Writing 0 to this file disables coredump.

Writing non-zero to this file enables coredump.


What: /sys/class/sscoredump/level
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
This file controls coredump feature for all class drivers.

Writing 0 to this file results in report containing
crashinfo only.

Writing non-zero to this file results in report containing
crashinfo + coredump.


What: /sys/class/sscoredump/sscd_<device>/crash_info
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
Reading from this file provides crash information for last crash
report.


What: /sys/class/sscoredump/sscd_<device>/enabled
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
This file controls enable/disable coredump feature for driver.

Writing 0 to this file disables coredump.

Writing non-zero to this file enables coredump.


What: /sys/class/sscoredump/sscd_<device>/read_count
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
Reading from this file provides number of times crash report was
read.


What: /sys/class/sscoredump/sscd_<device>/report_count
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
Reading from this file provides number of times crash report
was generated.


What: /sys/class/sscoredump/sscd_<device>/report_time
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
Reading from this file provides crash report time information.
Report time format: %d.%d (sec.msec)


What: /sys/class/sscoredump/sscd_<device>/timeout
Date: January 2020
KernelVersion: 4.19
Contact: Oleg Matcovschi <omatcovschi@google.com>
Description:
This file controls timeout configuration. Timeout value is in
miliseconds.

Reading from this file provides current timeout value.

Writing to this file sets timeout value.
10 changes: 10 additions & 0 deletions Documentation/ABI/testing/sysfs-class-thermal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
What: /sys/class/thermal/cooling_device%d/user_vote
Date: January, 2021
Contact: "TeYuan Wang" <kamewang@google.com>
Description:
For the current upstream design, userspace can request
cooling device via "cur_state" sysfs. However, the request
will be overwritten by other kernel governor or it will
overwrite other governor's request. So, create this user_vote
sysfs for userspace to request cooling device and vote with
other kernel governor's request.
162 changes: 127 additions & 35 deletions Documentation/ABI/testing/sysfs-class-typec
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,25 @@ Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
Revision number of the supported USB Power Delivery
specification, or 0 when USB Power Delivery is not supported.
specification, or 0.0 when USB Power Delivery is not supported.

Example values:
- "2.0": USB Power Delivery Release 2.0
- "3.0": USB Power Delivery Release 3.0
- "3.1": USB Power Delivery Release 3.1

What: /sys/class/typec/<port>-{partner|cable}/usb_power_delivery_revision
Date: January 2021
Contact: Benson Leung <bleung@chromium.org>
Description:
Revision number of the supported USB Power Delivery
specification of the port partner or cable, or 0.0 when USB
Power Delivery is not supported.

Example values:
- "2.0": USB Power Delivery Release 2.0
- "3.0": USB Power Delivery Release 3.0
- "3.1": USB Power Delivery Release 3.1

What: /sys/class/typec/<port>/usb_typec_revision
Date: April 2017
Expand Down Expand Up @@ -139,6 +157,49 @@ Description:
Shows if the partner supports USB Power Delivery communication:
Valid values: yes, no

What: /sys/class/typec/<port>-partner/number_of_alternate_modes
Date: November 2020
Contact: Prashant Malani <pmalani@chromium.org>
Description:
Shows the number of alternate modes which are advertised by the partner
during Power Delivery discovery. This file remains hidden until a value
greater than or equal to 0 is set by Type C port driver.

What: /sys/class/typec/<port>-partner/type
Date: December 2020
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description: USB Power Delivery Specification defines a set of product types
for the partner devices. This file will show the product type of
the partner if it is known. Dual-role capable partners will have
both UFP and DFP product types defined, but only one that
matches the current role will be active at the time. If the
product type of the partner is not visible to the device driver,
this file will not exist.

When the partner product type is detected, or changed with role
swap, uvevent is also raised that contains PRODUCT_TYPE=<product
type> (for example PRODUCT_TYPE=hub).

Valid values:

UFP / device role
====================== ==========================
undefined -
hub PDUSB Hub
peripheral PDUSB Peripheral
psd Power Bank
ama Alternate Mode Adapter
====================== ==========================

DFP / host role
====================== ==========================
undefined -
hub PDUSB Hub
host PDUSB Host
power_brick Power Brick
amc Alternate Mode Controller
====================== ==========================

What: /sys/class/typec/<port>-partner>/identity/
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Expand All @@ -151,31 +212,6 @@ Description:
directory exists, it will have an attribute file for every VDO
in Discover Identity command result.

What: /sys/class/typec/<port>-partner/identity/id_header
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
ID Header VDO part of Discover Identity command result. The
value will show 0 until Discover Identity command result becomes
available. The value can be polled.

What: /sys/class/typec/<port>-partner/identity/cert_stat
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
Cert Stat VDO part of Discover Identity command result. The
value will show 0 until Discover Identity command result becomes
available. The value can be polled.

What: /sys/class/typec/<port>-partner/identity/product
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
Product VDO part of Discover Identity command result. The value
will show 0 until Discover Identity command result becomes
available. The value can be polled.


USB Type-C cable devices (eg. /sys/class/typec/port0-cable/)

Note: Electronically Marked Cables will have a device also for one cable plug
Expand All @@ -187,9 +223,21 @@ described in USB Type-C and USB Power Delivery specifications.
What: /sys/class/typec/<port>-cable/type
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
Shows if the cable is active.
Valid values: active, passive
Description: USB Power Delivery Specification defines a set of product types
for the cables. This file will show the product type of the
cable if it is known. If the product type of the cable is not
visible to the device driver, this file will not exist.

When the cable product type is detected, uvevent is also raised
with PRODUCT_TYPE showing the product type of the cable.

Valid values:

====================== ==========================
undefined -
active Active Cable
passive Passive Cable
====================== ==========================

What: /sys/class/typec/<port>-cable/plug_type
Date: April 2017
Expand All @@ -202,40 +250,84 @@ Description:
- type-c
- captive

What: /sys/class/typec/<port>-cable/identity/
What: /sys/class/typec/<port>-<plug>/number_of_alternate_modes
Date: November 2020
Contact: Prashant Malani <pmalani@chromium.org>
Description:
Shows the number of alternate modes which are advertised by the plug
associated with a particular cable during Power Delivery discovery.
This file remains hidden until a value greater than or equal to 0
is set by Type C port driver.


USB Type-C partner/cable Power Delivery Identity objects

NOTE: The following attributes will be applicable to both
partner (e.g /sys/class/typec/port0-partner/) and
cable (e.g /sys/class/typec/port0-cable/) devices. Consequently, the example file
paths below are prefixed with "/sys/class/typec/<port>-{partner|cable}/" to
reflect this.

What: /sys/class/typec/<port>-{partner|cable}/identity/
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
This directory appears only if the port device driver is capable
of showing the result of Discover Identity USB power delivery
command. That will not always be possible even when USB power
delivery is supported. If the directory exists, it will have an
attribute for every VDO returned by Discover Identity command.
delivery is supported, for example when USB power delivery
communication for the port is mostly handled in firmware. If the
directory exists, it will have an attribute file for every VDO
in Discover Identity command result.

What: /sys/class/typec/<port>-cable/identity/id_header
What: /sys/class/typec/<port>-{partner|cable}/identity/id_header
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
ID Header VDO part of Discover Identity command result. The
value will show 0 until Discover Identity command result becomes
available. The value can be polled.

What: /sys/class/typec/<port>-cable/identity/cert_stat
What: /sys/class/typec/<port>-{partner|cable}/identity/cert_stat
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
Cert Stat VDO part of Discover Identity command result. The
value will show 0 until Discover Identity command result becomes
available. The value can be polled.

What: /sys/class/typec/<port>-cable/identity/product
What: /sys/class/typec/<port>-{partner|cable}/identity/product
Date: April 2017
Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Description:
Product VDO part of Discover Identity command result. The value
will show 0 until Discover Identity command result becomes
available. The value can be polled.

What: /sys/class/typec/<port>-{partner|cable}/identity/product_type_vdo1
Date: October 2020
Contact: Prashant Malani <pmalani@chromium.org>
Description:
1st Product Type VDO of Discover Identity command result.
The value will show 0 until Discover Identity command result becomes
available and a valid Product Type VDO is returned.

What: /sys/class/typec/<port>-{partner|cable}/identity/product_type_vdo2
Date: October 2020
Contact: Prashant Malani <pmalani@chromium.org>
Description:
2nd Product Type VDO of Discover Identity command result.
The value will show 0 until Discover Identity command result becomes
available and a valid Product Type VDO is returned.

What: /sys/class/typec/<port>-{partner|cable}/identity/product_type_vdo3
Date: October 2020
Contact: Prashant Malani <pmalani@chromium.org>
Description:
3rd Product Type VDO of Discover Identity command result.
The value will show 0 until Discover Identity command result becomes
available and a valid Product Type VDO is returned.


USB Type-C port alternate mode devices.

Expand Down
Loading

0 comments on commit 9b78daa

Please sign in to comment.