mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
da95c44967e039d6a5dd2d4cacd564f86b2b7979
Sync up with the android14-6.1 branch due to the latest ABI update that happened on it. This includes the following commits:08f3189337ANDROID: ABI: Update oplus symbol list3efffff553ANDROID: Allow vendor module to reclaim a memcgf627d47d36ANDROID: Export memcg functions to allow module to add new files032458b9cbANDROID: vendor_hooks: add hooks in mem_cgroup subsystemed1e17fc4bANDROID: GKI: Update symbols to symbol list0ab6144addANDROID: block: export tracepoints57750518deANDROID: vendor_hook: Avoid clearing protect-flag before waking waitersaacbded3acANDROID: KVM: arm64: Deprecate late pKVM module loading0fbbb18ab0ANDROID: ABI: Update symbol for Exynos SoCa1c9b5c53bANDROID: 6/7/2023 KMI updatee98206b0afANDROID: db845c: Update symbol list9f9c67c073FROMLIST: ufs: core: Add error handling for MCQ mode4f319f6367FROMLIST: ufs: mcq: Use ufshcd_mcq_poll_cqe_lock() in mcq modee3d62e38a9FROMLIST: ufs: mcq: Added ufshcd_mcq_abort()d61719a08eFROMLIST: ufs: mcq: Add support for clean up mcq resources2bbead6020FROMLIST: ufs: mcq: Add supporting functions for mcq abort1cb86cc92eFROMLIST: ufs: core: Update the ufshcd_clear_cmds() functionality0866848447FROMLIST: ufs: core: Combine 32-bit command_desc_base_addr_lo/hi8326170bb6ANDROID: GKI: Add OEM data to mutex/rwsemb0375cb69cBACKPORT: mm: Multi-gen LRU: remove wait_event_killable()5d26262b76FROMGIT: Binder: Add async from to transaction recordf00a145958BACKPORT: FROMGIT: Binder: Add timestamp to transaction recordd7b3d8d1e5ANDROID: GKI: add ANDROID_OEM_DATA() in struct request_queue643c727c8eANDROID: GKI: Add ANDROID_OEM_DATA() in struct ufs_hba7c76ad4d21ANDROID: GKI: add ANDROID_OEM_DATA in struct biofcfa42b67bANDROID: GKI: Add ANDROID_OEM_DATA() in struct queue_limits72515e57f0ANDROID: GKI: Add ANDROID_OEM_DATA in struct ufs_dev_infoa10d9e3fd6ANDROID: sched: Add oem data in struct rq87881c4dd1ANDROID: nl80211: reserve UAPI attributes to support backporting after KMI freeze10cb62e6caANDROID: GKI: mm: Add Android ABI padding to MGLRU structures4081f368beANDROID: abi_gki_aarch64_qcom: Add secure hibernation APIs3cd0cc9e1bANDROID: abi_gki_aarch64_qcom: Add hibernation APIs154b4b9f1aANDROID: vendor hooks: Encrypt snapshot for bootloader based hibernationdefdc4d1ddUPSTREAM: tty: serial: qcom-geni-serial: Add support for Hibernation featurec81f4841b4ANDROID: abi_gki_aarch64_qcom: Add clk_restore_context and clk_save_contextd7e1f4f021ANDROID: vendor hooks: Add hooks to support bootloader based hibernationd57acebb45ANDROID: gki_defconfig: Enable CONFIG_HIBERNATION flag62db17973aANDROID: vendor hooks: Export symbols for bootloader based hibernation17537ba480ANDROID: gki_defconfig: enable CONFIG_LED_TRIGGER_PHY640d3b737dANDROID: add vendor fields to swap_info_struct to record swap stats672eca4c06ANDROID: add vendor fields to swap_slots_cache to support multiple swap devices3cea2a67dcANDROID: add vendor fields to lruvec to record refault statsa80f228e59ANDROID: vendor_hooks: add a field in mem_cgroupddb14b6f45ANDROID: vendor_hooks: add a field in pglist_data9920a720ccANDROID: GKI: Update db845c symbol list for down_writeed10529c6dANDROID: fix atomisp driver missing in 6.4 kernela264d8efcbBACKPORT: mm: do not increment pgfault stats when page fault handler retries3fd1d7d4f2ANDROID: GKI: enable per-vma lock stats78c6875e2fUPSTREAM: mm: change per-VMA lock statistics to be disabled by defaultbfef68d9a6UPSTREAM: s390/mm: try VMA lock-based page fault handling first200745f46aUPSTREAM: mm: separate vma->lock from vm_area_struct23fcd3167eUPSTREAM: mm/mmap: free vm_area_struct without call_rcu in exit_mmape04309717eUPSTREAM: powerc/mm: try VMA lock-based page fault handling firste6bf4cded6UPSTREAM: arm64/mm: try VMA lock-based page fault handling first51b88c16a3UPSTREAM: x86/mm: try VMA lock-based page fault handling firstebbbcdfeafUPSTREAM: mm: introduce per-VMA lock statistics4e4c6989aeUPSTREAM: mm: prevent userfaults to be handled under per-vma lock6e306e82acUPSTREAM: mm: prevent do_swap_page from handling page faults under VMA lock318bf22529UPSTREAM: mm: add FAULT_FLAG_VMA_LOCK flagc06661eab5UPSTREAM: mm: fall back to mmap_lock if vma->anon_vma is not yet set5949b78f6cUPSTREAM: mm: introduce lock_vma_under_rcu to be used from arch-specific code35ffa4830eBACKPORT: mm: introduce vma detached flag3c6748cd51UPSTREAM: mm/mmap: prevent pagefault handler from racing with mmu_notifier registration3d18d86ea9UPSTREAM: kernel/fork: assert no VMA readers during its destruction9cc64c7fb9UPSTREAM: mm: conditionally write-lock VMA in free_pgtables5f1e1ab919UPSTREAM: mm: write-lock VMAs before removing them from VMA tree24ecdbc5e2UPSTREAM: mm/mremap: write-lock VMA while remapping it to a new address range2554cb4775FROMLIST: mm/mmap: write-lock VMAs affected by VMA expansion57b3f8a5abFROMLIST: mm/mmap: write-lock VMAs in vma_adjust998ec9f54dFROMLIST: mm/mmap: write-lock VMAs before merging, splitting or expanding themd73ebe031cUPSTREAM: mm/khugepaged: write-lock VMA while collapsing a huge page3771808d64FROMLIST: mm/mmap: move VMA locking before vma_adjust_trans_huge call6764412400UPSTREAM: mm: mark VMA as being written when changing vm_flagsa9ea3113d4UPSTREAM: mm: add per-VMA lock and helper functions to control it882c3512ecUPSTREAM: mm: move mmap_lock assert function definitionse28a0a0e5cUPSTREAM: mm: rcu safe VMA freeing04f73ad5b4UPSTREAM: mm: introduce CONFIG_PER_VMA_LOCKef8351241dUPSTREAM: mm: introduce vm_flags_reset_once to replace WRITE_ONCE vm_flags updates75977e5919UPSTREAM: mm: export dump_mm()2ff3b23c7fUPSTREAM: mm: introduce __vm_flags_mod and use it in untrack_pfn6f5e28fd18UPSTREAM: mm: replace vma->vm_flags indirect modification in ksm_madvise5dd0547a3eUPSTREAM: mm: replace vma->vm_flags direct modifications with modifier callsbf16383ebdUPSTREAM: mm: replace VM_LOCKED_CLEAR_MASK with VM_LOCKED_MASK6e7028daddUPSTREAM: mm: introduce vma->vm_flags wrapper functionsdb341ea4daUPSTREAM: kernel/fork: convert vma assignment to a memcpyd8e7ccc003ANDROID: GKI: dentry: add Android ABI padding to some structures05a42c34b2ANDROID: GKI: sched: add Android ABI padding to some structures1c5cd2e4adANDROID: GKI: elevator: add Android ABI padding to some structures5fe1040d35ANDROID: GKI: phy: add Android ABI padding to some structures8b849a574bANDROID: GKI: workqueue.h: add Android ABI padding to some structures86db2d740eANDROID: GKI: scsi: add Android ABI padding to some structuresf456f5cc1cANDROID: GKI: device.h: add Android ABI padding to some structures61963aff03ANDROID: GKI: timer.h: add Android ABI padding to a structuref12cb09789ANDROID: GKI: USB: add Android ABI padding to some structuresf79a11f8bcANDROID: GKI: sched.h: add Android ABI padding to some structures801c9e6233ANDROID: GKI: module.h: add Android ABI padding to some structures15e9bd7cf2ANDROID: GKI: sock.h: add Android ABI padding to some structures41afe8d0bfANDROID: GKI: sched: add Android ABI padding to some structuresc425034c95ANDROID: GKI: mount.h: add Android ABI padding to some structures1276e53f17ANDROID: GKI: mm: add Android ABI padding to some structuresd58a77ead7ANDROID: GKI: add some padding to some driver core structures854f9f2e6cANDROID: GKI: add padding to struct HID structuresbf55b78067ANDROID: GKI: USB: XHCI: add Android ABI padding to lots of xhci structures807752459eANDROID: GKI: dwc3: add Android ABI padding to some structuresfaf9904e25ANDROID: GKI: sound/usb/card.h: add Android ABI padding to struct snd_usb_endpointcb27de5e20ANDROID: GKI: user_namespace.h: add Android ABI padding to a structuread192a1c1cANDROID: GKI: quota.h: add Android ABI padding to some structures7be2a2a4c3ANDROID: GKI: mmu_notifier.h: add Android ABI padding to some structures4298070a54ANDROID: GKI: mm.h: add Android ABI padding to a structureec2d1e2e62ANDROID: GKI: kobject.h: add Android ABI padding to some structurese69be4de29ANDROID: GKI: kernfs.h: add Android ABI padding to some structures2baf3e23bbANDROID: GKI: irqdomain.h: add Android ABI padding to a structure064d2c58f2ANDROID: GKI: ioport.h: add Android ABI padding to a structured1cd3e8b1bANDROID: GKI: iomap.h: add Android ABI padding to a structurec2c04df929ANDROID: GKI: hrtimer.h: add Android ABI padding to a structurecaf18df2e2ANDROID: GKI: genhd.h: add Android ABI padding to some structures0205308795ANDROID: GKI: ethtool.h: add Android ABI padding to a structuree319ef95b6ANDROID: GKI: dma-mapping.h: add Android ABI padding to a structure608ed5cfb3ANDROID: GKI: networking: add Android ABI padding to a lot of networking structures8d09c29ee1ANDROID: GKI: blk_types.h: add Android ABI padding to a structuree7a017ab91ANDROID: GKI: scsi.h: add Android ABI padding to a structure48da4dd64bANDROID: GKI: pci: add Android ABI padding to some structureseba9ceccd8ANDROID: GKI: add Android ABI padding to struct nf_conn97752aa71cANDROID: GKI: add kabi padding for structures for the android14 release1d39b94f8cUPSTREAM: ipv{4,6}/raw: fix output xfrm lookup wrt protocol9713594a2bUPSTREAM: inet: Add IP_LOCAL_PORT_RANGE socket option5376c2a57fUPSTREAM: sched/fair: Fixes for capacity inversion detection7c8500869bUPSTREAM: sched/fair: Consider capacity inversion in util_fits_cpu()b9346f206fUPSTREAM: sched/fair: Detect capacity inversion8691a0dae0ANDROID: KVM: arm64: Initialize hfgwtr_el2 correctlyfd04f99bfaUPSTREAM: net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize70586aaa7cANDROID: GKI: Add symbols and update symbol list for Unisoc(2nd)94e4512c31ANDROID: ABI: update symbol list related to meminfo for galaxya390414140ANDROID: vendor_hooks: add hooks for extra memoryc3ee18fefaBACKPORT: FROMLIST: ovl: get_acl: Fix null pointer dereference at realinode in rcu-walk mode8d59a7676cBACKPORT: FROMLIST: ovl: ovl_permission: Fix null pointer dereference at realinode in rcu-walk mode2de1ee6dd8BACKPORT: FROMLIST: ovl: Let helper ovl_i_path_real() return the realinode963667856eANDROID: GKI: Update symbol list for xiaomi508ca06639ANDROID: vendor_hooks:vendor hook for control memory dirty ratec959a3fc91ANDROID: f2fs: enable cleancache2ea053d317FROMGIT: userfaultfd: fix regression in userfaultfd_unmap_prep()2f5f352e6aFROMGIT: BACKPORT: mm: avoid rewalk in mmap_region86d9de0898FROMGIT: maple_tree: clear up index and last setting in single entry tree9288f53a31FROMGIT: maple_tree: add mas_prev_range() and mas_find_range_rev interfacec4f5714056FROMGIT: maple_tree: introduce mas_prev_slot() interfacedbc16cc86aFROMGIT: maple_tree: relocate mas_rewalk() and mas_rewalk_if_dead()b83cfb2dc4FROMGIT: maple_tree: add mas_next_range() and mas_find_range() interfaces84719794e0FROMGIT: maple_tree: introduce mas_next_slot() interfacec5c507cfecFROMGIT: maple_tree: try harder to keep active node with mas_prev()cb6d9fa6adFROMGIT: maple_tree: try harder to keep active node after mas_next()5ff9438fe1FROMGIT: BACKPORT: mm/mmap: change do_vmi_align_munmap() for maple tree iterator changes133fbad5bdFROMLIST: BACKPORT: maple_tree: Refine mas_preallocate() node calculationsce9ebd83aaANDROID: maple_tree: Move mas_wr_modify node size calculation to mas_wr_node_size()b6734cb2ceFROMLIST: BACKPORT: maple_tree: Move mas_wr_end_piv() below mas_wr_extend_null()aede79b81eANDROID: mm: Fix __vma_adjust() writes for the maple treeb802573f44FROMLIST: BACKPORT: mm: Set up vma iterator for vma_iter_prealloc() callsc3118993c9FROMGIT: maple_tree: avoid unnecessary ascendinge9fdabfc2aFROMLIST: BACKPORT: mm: Change do_vmi_align_munmap() side tree index25bed2fdbcUPSTREAM: mm/mmap: remove preallocation from do_mas_align_munmap()312dfb3b7eANDROID: abi_gki_aarch64_qcom: Update QCOM symbol list6b3daa3bbaANDROID: GKI: Update symbol list for xiaomiec196511bfANDROID: vendor_hooks:vendor hook for mmput571c04e945ANDROID: ABI: update symbol list for galaxy847b3f6c96ANDROID: task_mmu: add vendor hook for swap entryaee36dd530ANDROID: mm: add vendor hooks in madvise for swap entryc0cfeeaa88BACKPORT: FROMLIST: arm64: mte: Simplify swap tag restoration logic131714e34bFROMLIST: mm: Call arch_swap_restore() from unuse_pte()3805b879f5FROMLIST: mm: Call arch_swap_restore() from do_swap_page()098028adf7ANDROID: abi_gki_aarch64_qcom: Update symbol list71844b8ed9ANDROID: GKI: Update symbol list for xiaomi025b5a487bANDROID: vendor_hooks:vendor hook for __alloc_pages_slowpath.60b0f85e24ANDROID: ABI: Update honor symbol list3e2dc32f59ANDROID: mm: create vendor hooks for memory reclaim8e6a28c815UPSTREAM: kcsan: Avoid READ_ONCE() in read_instrumented_memory()675bc3a00eANDROID: abi_gki_aarch64_qcom: update symbol list7b14897460ANDROID: Update ABI as part of crash fix9e2fa0a396ANDROID: Fix incorrect hook declaratione57fe10b5aANDROID: abi_gki_aarch64_qcom: Add GIC and hibernation APIs227d23d61dANDROID: gic-v3: Export gic_v3_resume() for vendor GIC enhancements275c8705e5ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspendc9539979a9ANDROID: abi_gki_aarch64_qcom: Update abi_gki_aarch64_qcom for DMA6da02f9101ANDROID: GKI: Update symbols to abi_gki_aarch64_oplus for extend copy & fbarrier feature87b384408eANDROID: abi_gki_aarch64_qcom: Update symbol lista3a743e67fANDROID: mmc: core: Export core functions for kernel modules usage631a2db5a3ANDROID: vendor_hooks: Define new hooks in _mmc_suspend/resumee82e89e170ANDROID: update symbol for unisoc vendor_hooksb7a7fd15edANDROID: vendor_hooks: psci: add hook to check if cpu is allowed to power off3be7d118e7ANDROID: Add vendor hook to the effective_cpu_util0c2142745dANDROID: Update symbol list for mtk6f7dc871a6ANDROID: ABI: update symbol list for galaxyb0a752c3aaANDROID: update symbol for unisoc vendor_hooksce7ceff8c8ANDROID: thermal: Add vendor hook to check power range7191b6a759ANDROID: thermal: Add vendor hook to get thermal zone device1fe511720aANDROID: thermal: Add hook for cpufreq thermal78fe8913d1UPSTREAM: mm,kfence: decouple kfence from page granularity mapping judgement Change-Id: If850e76826ace89e477988751792ea6055c8879c Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Merge tag 'mm-hotfixes-stable-2022-12-10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
…
How do I submit patches to Android Common Kernels
-
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.
- Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux,
additions of
-
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:, orANDROID:. - 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
- tag the patch subject with
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 ofUPSTREAM:.- use the same tags as
UPSTREAM: - add comments about the changes under the
(cherry picked from commit ...)line - Example:
- use the same tags as
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 uselinux-nextfor example). - if changes were required, use
BACKPORT: FROMGIT: - Example:
- if the commit message in the maintainer tree is
- tag the patch subject with
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:
- tag the patch subject with
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:
- tag the patch subject with
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)
- tag the patch subject with
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%