Greg Kroah-Hartman da95c44967 Merge branch android14-6.1 into android14-6.1-lts
Sync up with the android14-6.1 branch due to the latest ABI update that
happened on it.  This includes the following commits:

08f3189337 ANDROID: ABI: Update oplus symbol list
3efffff553 ANDROID: Allow vendor module to reclaim a memcg
f627d47d36 ANDROID: Export memcg functions to allow module to add new files
032458b9cb ANDROID: vendor_hooks: add hooks in mem_cgroup subsystem
ed1e17fc4b ANDROID: GKI: Update symbols to symbol list
0ab6144add ANDROID: block: export tracepoints
57750518de ANDROID: vendor_hook: Avoid clearing protect-flag before waking waiters
aacbded3ac ANDROID: KVM: arm64: Deprecate late pKVM module loading
0fbbb18ab0 ANDROID: ABI: Update symbol for Exynos SoC
a1c9b5c53b ANDROID: 6/7/2023 KMI update
e98206b0af ANDROID: db845c: Update symbol list
9f9c67c073 FROMLIST: ufs: core: Add error handling for MCQ mode
4f319f6367 FROMLIST: ufs: mcq: Use ufshcd_mcq_poll_cqe_lock() in mcq mode
e3d62e38a9 FROMLIST: ufs: mcq: Added ufshcd_mcq_abort()
d61719a08e FROMLIST: ufs: mcq: Add support for clean up mcq resources
2bbead6020 FROMLIST: ufs: mcq: Add supporting functions for mcq abort
1cb86cc92e FROMLIST: ufs: core: Update the ufshcd_clear_cmds() functionality
0866848447 FROMLIST: ufs: core: Combine 32-bit command_desc_base_addr_lo/hi
8326170bb6 ANDROID: GKI: Add OEM data to mutex/rwsem
b0375cb69c BACKPORT: mm: Multi-gen LRU: remove wait_event_killable()
5d26262b76 FROMGIT: Binder: Add async from to transaction record
f00a145958 BACKPORT: FROMGIT: Binder: Add timestamp to transaction record
d7b3d8d1e5 ANDROID: GKI: add ANDROID_OEM_DATA() in struct request_queue
643c727c8e ANDROID: GKI: Add ANDROID_OEM_DATA() in struct ufs_hba
7c76ad4d21 ANDROID: GKI: add ANDROID_OEM_DATA in struct bio
fcfa42b67b ANDROID: GKI: Add ANDROID_OEM_DATA() in struct queue_limits
72515e57f0 ANDROID: GKI: Add ANDROID_OEM_DATA in struct ufs_dev_info
a10d9e3fd6 ANDROID: sched: Add oem data in struct rq
87881c4dd1 ANDROID: nl80211: reserve UAPI attributes to support backporting after KMI freeze
10cb62e6ca ANDROID: GKI: mm: Add Android ABI padding to MGLRU structures
4081f368be ANDROID: abi_gki_aarch64_qcom: Add secure hibernation APIs
3cd0cc9e1b ANDROID: abi_gki_aarch64_qcom: Add hibernation APIs
154b4b9f1a ANDROID: vendor hooks: Encrypt snapshot for bootloader based hibernation
defdc4d1dd UPSTREAM: tty: serial: qcom-geni-serial: Add support for Hibernation feature
c81f4841b4 ANDROID: abi_gki_aarch64_qcom: Add clk_restore_context and clk_save_context
d7e1f4f021 ANDROID: vendor hooks: Add hooks to support bootloader based hibernation
d57acebb45 ANDROID: gki_defconfig: Enable CONFIG_HIBERNATION flag
62db17973a ANDROID: vendor hooks: Export symbols for bootloader based hibernation
17537ba480 ANDROID: gki_defconfig: enable CONFIG_LED_TRIGGER_PHY
640d3b737d ANDROID: add vendor fields to swap_info_struct to record swap stats
672eca4c06 ANDROID: add vendor fields to swap_slots_cache to support multiple swap devices
3cea2a67dc ANDROID: add vendor fields to lruvec to record refault stats
a80f228e59 ANDROID: vendor_hooks: add a field in mem_cgroup
ddb14b6f45 ANDROID: vendor_hooks: add a field in pglist_data
9920a720cc ANDROID: GKI: Update db845c symbol list for down_write
ed10529c6d ANDROID: fix atomisp driver missing in 6.4 kernel
a264d8efcb BACKPORT: mm: do not increment pgfault stats when page fault handler retries
3fd1d7d4f2 ANDROID: GKI: enable per-vma lock stats
78c6875e2f UPSTREAM: mm: change per-VMA lock statistics to be disabled by default
bfef68d9a6 UPSTREAM: s390/mm: try VMA lock-based page fault handling first
200745f46a UPSTREAM: mm: separate vma->lock from vm_area_struct
23fcd3167e UPSTREAM: mm/mmap: free vm_area_struct without call_rcu in exit_mmap
e04309717e UPSTREAM: powerc/mm: try VMA lock-based page fault handling first
e6bf4cded6 UPSTREAM: arm64/mm: try VMA lock-based page fault handling first
51b88c16a3 UPSTREAM: x86/mm: try VMA lock-based page fault handling first
ebbbcdfeaf UPSTREAM: mm: introduce per-VMA lock statistics
4e4c6989ae UPSTREAM: mm: prevent userfaults to be handled under per-vma lock
6e306e82ac UPSTREAM: mm: prevent do_swap_page from handling page faults under VMA lock
318bf22529 UPSTREAM: mm: add FAULT_FLAG_VMA_LOCK flag
c06661eab5 UPSTREAM: mm: fall back to mmap_lock if vma->anon_vma is not yet set
5949b78f6c UPSTREAM: mm: introduce lock_vma_under_rcu to be used from arch-specific code
35ffa4830e BACKPORT: mm: introduce vma detached flag
3c6748cd51 UPSTREAM: mm/mmap: prevent pagefault handler from racing with mmu_notifier registration
3d18d86ea9 UPSTREAM: kernel/fork: assert no VMA readers during its destruction
9cc64c7fb9 UPSTREAM: mm: conditionally write-lock VMA in free_pgtables
5f1e1ab919 UPSTREAM: mm: write-lock VMAs before removing them from VMA tree
24ecdbc5e2 UPSTREAM: mm/mremap: write-lock VMA while remapping it to a new address range
2554cb4775 FROMLIST: mm/mmap: write-lock VMAs affected by VMA expansion
57b3f8a5ab FROMLIST: mm/mmap: write-lock VMAs in vma_adjust
998ec9f54d FROMLIST: mm/mmap: write-lock VMAs before merging, splitting or expanding them
d73ebe031c UPSTREAM: mm/khugepaged: write-lock VMA while collapsing a huge page
3771808d64 FROMLIST: mm/mmap: move VMA locking before vma_adjust_trans_huge call
6764412400 UPSTREAM: mm: mark VMA as being written when changing vm_flags
a9ea3113d4 UPSTREAM: mm: add per-VMA lock and helper functions to control it
882c3512ec UPSTREAM: mm: move mmap_lock assert function definitions
e28a0a0e5c UPSTREAM: mm: rcu safe VMA freeing
04f73ad5b4 UPSTREAM: mm: introduce CONFIG_PER_VMA_LOCK
ef8351241d UPSTREAM: mm: introduce vm_flags_reset_once to replace WRITE_ONCE vm_flags updates
75977e5919 UPSTREAM: mm: export dump_mm()
2ff3b23c7f UPSTREAM: mm: introduce __vm_flags_mod and use it in untrack_pfn
6f5e28fd18 UPSTREAM: mm: replace vma->vm_flags indirect modification in ksm_madvise
5dd0547a3e UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls
bf16383ebd UPSTREAM: mm: replace VM_LOCKED_CLEAR_MASK with VM_LOCKED_MASK
6e7028dadd UPSTREAM: mm: introduce vma->vm_flags wrapper functions
db341ea4da UPSTREAM: kernel/fork: convert vma assignment to a memcpy
d8e7ccc003 ANDROID: GKI: dentry: add Android ABI padding to some structures
05a42c34b2 ANDROID: GKI: sched: add Android ABI padding to some structures
1c5cd2e4ad ANDROID: GKI: elevator: add Android ABI padding to some structures
5fe1040d35 ANDROID: GKI: phy: add Android ABI padding to some structures
8b849a574b ANDROID: GKI: workqueue.h: add Android ABI padding to some structures
86db2d740e ANDROID: GKI: scsi: add Android ABI padding to some structures
f456f5cc1c ANDROID: GKI: device.h: add Android ABI padding to some structures
61963aff03 ANDROID: GKI: timer.h: add Android ABI padding to a structure
f12cb09789 ANDROID: GKI: USB: add Android ABI padding to some structures
f79a11f8bc ANDROID: GKI: sched.h: add Android ABI padding to some structures
801c9e6233 ANDROID: GKI: module.h: add Android ABI padding to some structures
15e9bd7cf2 ANDROID: GKI: sock.h: add Android ABI padding to some structures
41afe8d0bf ANDROID: GKI: sched: add Android ABI padding to some structures
c425034c95 ANDROID: GKI: mount.h: add Android ABI padding to some structures
1276e53f17 ANDROID: GKI: mm: add Android ABI padding to some structures
d58a77ead7 ANDROID: GKI: add some padding to some driver core structures
854f9f2e6c ANDROID: GKI: add padding to struct HID structures
bf55b78067 ANDROID: GKI: USB: XHCI: add Android ABI padding to lots of xhci structures
807752459e ANDROID: GKI: dwc3: add Android ABI padding to some structures
faf9904e25 ANDROID: GKI: sound/usb/card.h: add Android ABI padding to struct snd_usb_endpoint
cb27de5e20 ANDROID: GKI: user_namespace.h: add Android ABI padding to a structure
ad192a1c1c ANDROID: GKI: quota.h: add Android ABI padding to some structures
7be2a2a4c3 ANDROID: GKI: mmu_notifier.h: add Android ABI padding to some structures
4298070a54 ANDROID: GKI: mm.h: add Android ABI padding to a structure
ec2d1e2e62 ANDROID: GKI: kobject.h: add Android ABI padding to some structures
e69be4de29 ANDROID: GKI: kernfs.h: add Android ABI padding to some structures
2baf3e23bb ANDROID: GKI: irqdomain.h: add Android ABI padding to a structure
064d2c58f2 ANDROID: GKI: ioport.h: add Android ABI padding to a structure
d1cd3e8b1b ANDROID: GKI: iomap.h: add Android ABI padding to a structure
c2c04df929 ANDROID: GKI: hrtimer.h: add Android ABI padding to a structure
caf18df2e2 ANDROID: GKI: genhd.h: add Android ABI padding to some structures
0205308795 ANDROID: GKI: ethtool.h: add Android ABI padding to a structure
e319ef95b6 ANDROID: GKI: dma-mapping.h: add Android ABI padding to a structure
608ed5cfb3 ANDROID: GKI: networking: add Android ABI padding to a lot of networking structures
8d09c29ee1 ANDROID: GKI: blk_types.h: add Android ABI padding to a structure
e7a017ab91 ANDROID: GKI: scsi.h: add Android ABI padding to a structure
48da4dd64b ANDROID: GKI: pci: add Android ABI padding to some structures
eba9ceccd8 ANDROID: GKI: add Android ABI padding to struct nf_conn
97752aa71c ANDROID: GKI: add kabi padding for structures for the android14 release
1d39b94f8c UPSTREAM: ipv{4,6}/raw: fix output xfrm lookup wrt protocol
9713594a2b UPSTREAM: inet: Add IP_LOCAL_PORT_RANGE socket option
5376c2a57f UPSTREAM: sched/fair: Fixes for capacity inversion detection
7c8500869b UPSTREAM: sched/fair: Consider capacity inversion in util_fits_cpu()
b9346f206f UPSTREAM: sched/fair: Detect capacity inversion
8691a0dae0 ANDROID: KVM: arm64: Initialize hfgwtr_el2 correctly
fd04f99bfa UPSTREAM: net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize
70586aaa7c ANDROID: GKI: Add symbols and update symbol list for Unisoc(2nd)
94e4512c31 ANDROID: ABI: update symbol list related to meminfo for galaxy
a390414140 ANDROID: vendor_hooks: add hooks for extra memory
c3ee18fefa BACKPORT: FROMLIST: ovl: get_acl: Fix null pointer dereference at realinode in rcu-walk mode
8d59a7676c BACKPORT: FROMLIST: ovl: ovl_permission: Fix null pointer dereference at realinode in rcu-walk mode
2de1ee6dd8 BACKPORT: FROMLIST: ovl: Let helper ovl_i_path_real() return the realinode
963667856e ANDROID: GKI: Update symbol list for xiaomi
508ca06639 ANDROID: vendor_hooks:vendor hook for control memory dirty rate
c959a3fc91 ANDROID: f2fs: enable cleancache
2ea053d317 FROMGIT: userfaultfd: fix regression in userfaultfd_unmap_prep()
2f5f352e6a FROMGIT: BACKPORT: mm: avoid rewalk in mmap_region
86d9de0898 FROMGIT: maple_tree: clear up index and last setting in single entry tree
9288f53a31 FROMGIT: maple_tree: add mas_prev_range() and mas_find_range_rev interface
c4f5714056 FROMGIT: maple_tree: introduce mas_prev_slot() interface
dbc16cc86a FROMGIT: maple_tree: relocate mas_rewalk() and mas_rewalk_if_dead()
b83cfb2dc4 FROMGIT: maple_tree: add mas_next_range() and mas_find_range() interfaces
84719794e0 FROMGIT: maple_tree: introduce mas_next_slot() interface
c5c507cfec FROMGIT: maple_tree: try harder to keep active node with mas_prev()
cb6d9fa6ad FROMGIT: maple_tree: try harder to keep active node after mas_next()
5ff9438fe1 FROMGIT: BACKPORT: mm/mmap: change do_vmi_align_munmap() for maple tree iterator changes
133fbad5bd FROMLIST: BACKPORT: maple_tree: Refine mas_preallocate() node calculations
ce9ebd83aa ANDROID: maple_tree: Move mas_wr_modify node size calculation to mas_wr_node_size()
b6734cb2ce FROMLIST: BACKPORT: maple_tree: Move mas_wr_end_piv() below mas_wr_extend_null()
aede79b81e ANDROID: mm: Fix __vma_adjust() writes for the maple tree
b802573f44 FROMLIST: BACKPORT: mm: Set up vma iterator for vma_iter_prealloc() calls
c3118993c9 FROMGIT: maple_tree: avoid unnecessary ascending
e9fdabfc2a FROMLIST: BACKPORT: mm: Change do_vmi_align_munmap() side tree index
25bed2fdbc UPSTREAM: mm/mmap: remove preallocation from do_mas_align_munmap()
312dfb3b7e ANDROID: abi_gki_aarch64_qcom: Update QCOM symbol list
6b3daa3bba ANDROID: GKI: Update symbol list for xiaomi
ec196511bf ANDROID: vendor_hooks:vendor hook for mmput
571c04e945 ANDROID: ABI: update symbol list for galaxy
847b3f6c96 ANDROID: task_mmu: add vendor hook for swap entry
aee36dd530 ANDROID: mm: add vendor hooks in madvise for swap entry
c0cfeeaa88 BACKPORT: FROMLIST: arm64: mte: Simplify swap tag restoration logic
131714e34b FROMLIST: mm: Call arch_swap_restore() from unuse_pte()
3805b879f5 FROMLIST: mm: Call arch_swap_restore() from do_swap_page()
098028adf7 ANDROID: abi_gki_aarch64_qcom: Update symbol list
71844b8ed9 ANDROID: GKI: Update symbol list for xiaomi
025b5a487b ANDROID: vendor_hooks:vendor hook for __alloc_pages_slowpath.
60b0f85e24 ANDROID: ABI: Update honor symbol list
3e2dc32f59 ANDROID: mm: create vendor hooks for memory reclaim
8e6a28c815 UPSTREAM: kcsan: Avoid READ_ONCE() in read_instrumented_memory()
675bc3a00e ANDROID: abi_gki_aarch64_qcom: update symbol list
7b14897460 ANDROID: Update ABI as part of crash fix
9e2fa0a396 ANDROID: Fix incorrect hook declaration
e57fe10b5a ANDROID: abi_gki_aarch64_qcom: Add GIC and hibernation APIs
227d23d61d ANDROID: gic-v3: Export gic_v3_resume() for vendor GIC enhancements
275c8705e5 ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend
c9539979a9 ANDROID: abi_gki_aarch64_qcom: Update abi_gki_aarch64_qcom for DMA
6da02f9101 ANDROID: GKI: Update symbols to abi_gki_aarch64_oplus for extend copy & fbarrier feature
87b384408e ANDROID: abi_gki_aarch64_qcom: Update symbol list
a3a743e67f ANDROID: mmc: core: Export core functions for kernel modules usage
631a2db5a3 ANDROID: vendor_hooks: Define new hooks in _mmc_suspend/resume
e82e89e170 ANDROID: update symbol for unisoc vendor_hooks
b7a7fd15ed ANDROID: vendor_hooks: psci: add hook to check if cpu is allowed to power off
3be7d118e7 ANDROID: Add vendor hook to the effective_cpu_util
0c2142745d ANDROID: Update symbol list for mtk
6f7dc871a6 ANDROID: ABI: update symbol list for galaxy
b0a752c3aa ANDROID: update symbol for unisoc vendor_hooks
ce7ceff8c8 ANDROID: thermal: Add vendor hook to check power range
7191b6a759 ANDROID: thermal: Add vendor hook to get thermal zone device
1fe511720a ANDROID: thermal: Add hook for cpufreq thermal
78fe8913d1 UPSTREAM: mm,kfence: decouple kfence from page granularity mapping judgement

Change-Id: If850e76826ace89e477988751792ea6055c8879c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-06-08 11:21:39 +00:00
2023-06-07 22:33:23 +00:00
2023-02-09 13:29:55 +00:00
2023-04-26 13:13:19 +00:00
2022-09-28 09:02:20 +02:00
2022-09-28 09:02:20 +02:00
2023-05-31 16:38:29 +00:00
2022-06-18 10:41:40 -07:00
2022-08-22 16:34:52 +00:00

How do I submit patches to Android Common Kernels

  1. BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.

    • Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux, additions of EXPORT_SYMBOL_GPL() require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export.
    • When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not not a persuasive case.
  2. LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.

Common Kernel patch requirements

  • All patches must conform to the Linux kernel coding standards and pass scripts/checkpatch.pl
  • Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
  • If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch: UPSTREAM:, BACKPORT:, FROMGIT:, FROMLIST:, or ANDROID:.
  • All patches must have a Change-Id: tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html)
  • If an Android bug has been assigned, there must be a Bug: tag.
  • All patches must have a Signed-off-by: tag by the author and the submitter

Additional requirements are listed below based on patch type

Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:

  • If the patch is a cherry-pick from Linux mainline with no changes at all
    • tag the patch subject with UPSTREAM:.
    • add upstream commit information with a (cherry picked from commit ...) line
    • Example:
      • if the upstream commit message is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>
  • then Joe Smith would upload the patch for the common kernel as
        UPSTREAM: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch requires any changes from the upstream version, tag the patch with BACKPORT: instead of UPSTREAM:.
    • use the same tags as UPSTREAM:
    • add comments about the changes under the (cherry picked from commit ...) line
    • Example:
        BACKPORT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        [joe: Resolved minor conflict in drivers/foo/bar.c ]
        Signed-off-by: Joe Smith <joe.smith@foo.org>

Requirements for other backports: FROMGIT:, FROMLIST:,

  • If the patch has been merged into an upstream maintainer tree, but has not yet been merged into Linux mainline
    • tag the patch subject with FROMGIT:
    • add info on where the patch came from as (cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't use linux-next for example).
    • if changes were required, use BACKPORT: FROMGIT:
    • Example:
      • if the commit message in the maintainer tree is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>
  • then Joe Smith would upload the patch for the common kernel as
        FROMGIT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        (cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
         https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch has been submitted to LKML, but not accepted into any maintainer tree
    • tag the patch subject with FROMLIST:
    • add a Link: tag with a link to the submittal on lore.kernel.org
    • add a Bug: tag with the Android bug (required for patches not accepted into a maintainer tree)
    • if changes were required, use BACKPORT: FROMLIST:
    • Example:
        FROMLIST: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>

Requirements for Android-specific patches: ANDROID:

  • If the patch is fixing a bug to Android-specific code
    • tag the patch subject with ANDROID:
    • add a Fixes: tag that cites the patch with the bug
    • Example:
        ANDROID: fix android-specific bug in foobar.c

        This is the detailed description of the important fix

        Fixes: 1234abcd2468 ("foobar: add cool feature")
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch is a new feature
    • tag the patch subject with ANDROID:
    • add a Bug: tag with the Android bug (required for android-specific features)
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%