mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
e8f79d9cbb81c220a8a33a5c208be42eb51c1749
Sync up with the android12-5.10 branch for the following commit:c4bd1c03baANDROID: qcom: Add is_dma_buf_file to ABI268088c42eANDROID: GKI: update .xml filea7f3a36529ANDROID: GKI: enable KFENCE by setting the sample interval to 500ms9d1c78d623ANDROID: abi_gki_aarch64_qcom: Add xhci symbols to list5896d00f9cANDROID: vmlinux.lds.h: Define SANITIZER_DISCARDS with CONFIG_CFI_CLANGffacd097fcANDROID: usb: typec: tcpci: Add vendor hook to mask vbus present1a93d556d7ANDROID: usb: typce: tcpci: Add vendor hook for chip specific features08879ea0d6ANDROID: usb: typec: tcpci: Add vendor hooks for tcpci interface892e618852FROMGIT: f2fs: add sysfs nodes to get runtime compression stat58f0e25d0dANDROID: dma-buf: Fix error path on system heaps use of the page pool958c19b19bANDROID: usb: typec: tcpm: Fix event storm caused by error in backport0b6fadd02eANDROID: GKI: USB: XHCI: add Android ABI padding to lots of xhci structures6f00446c76FROMGIT: KVM: arm64: Fix host's ZCR_EL2 restore on nVHEb0671cd753FROMGIT: KVM: arm64: Force SCTLR_EL2.WXN when running nVHE8f25c7432fFROMGIT: KVM: arm64: Turn SCTLR_ELx_FLAGS into INIT_SCTLR_EL2_MMU_ONf47a4d91e5FROMGIT: KVM: arm64: Use INIT_SCTLR_EL2_MMU_OFF to disable the MMU on KVM teardown3ff7250562FROMGIT: arm64: Use INIT_SCTLR_EL1_MMU_OFF to disable the MMU on CPU restarta8a9fadaf8FROMGIT: KVM: arm64: Enable SVE support for nVHEb0e15c8c44FROMGIT: KVM: arm64: Save/restore SVE state for nVHE194fd166b5BACKPORT: FROMGIT: KVM: arm64: Trap host SVE accesses when the FPSIMD state is dirty507e10616cFROMGIT: KVM: arm64: Save guest's ZCR_EL1 before saving the FPSIMD state4cb78b26eaFROMGIT: KVM: arm64: Map SVE context at EL2 when available1105b4d1ceBACKPORT: FROMGIT: KVM: arm64: Rework SVE host-save/guest-restore57171b3636FROMGIT: arm64: sve: Provide a conditional update accessor for ZCR_ELxac5f5708bbFROMGIT: KVM: arm64: Introduce vcpu_sve_vq() helperf9bab75599FROMGIT: KVM: arm64: Let vcpu_sve_pffr() handle HYP VAsc2469fa4b4FROMGIT: KVM: arm64: Use {read,write}_sysreg_el1 to access ZCR_EL1f5e060d65eFROMGIT: KVM: arm64: Provide KVM's own save/restore SVE primitivesaf855ca1c9ANDROID: GKI: USB: Gadget: add Android ABI padding to struct usb_gadget24149445adANDROID: vendor_hooks: Add hooks for memory when debug00185a421aANDROID: vendor_hooks: Add hooks for ufs schedulerb8981993c2ANDROID: GKI: sound/usb/card.h: add Android ABI padding to struct snd_usb_endpoint5a56f5119eANDROID: GKI: user_namespace.h: add Android ABI padding to a structure599e75fcfdANDROID: GKI: timer.h: add Android ABI padding to a structure303a28f485ANDROID: GKI: quota.h: add Android ABI padding to some structuresa06d91262aANDROID: GKI: mmu_notifier.h: add Android ABI padding to some structures8faaa07702ANDROID: GKI: mm.h: add Android ABI padding to a structuref21777c57fANDROID: GKI: kobject.h: add Android ABI padding to some structures31f6b7a1aeANDROID: GKI: kernfs.h: add Android ABI padding to some structures1a517d8668ANDROID: GKI: irqdomain.h: add Android ABI padding to a structurec6adf0c7b9ANDROID: GKI: ioport.h: add Android ABI padding to a structurec469de24a1ANDROID: GKI: iomap.h: add Android ABI padding to a structure3cb5c28964ANDROID: GKI: hrtimer.h: add Android ABI padding to a structureeff6517b1eANDROID: GKI: genhd.h: add Android ABI padding to some structures9a92773dc8ANDROID: GKI: ethtool.h: add Android ABI padding to a structure774168de67ANDROID: GKI: dma-mapping.h: add Android ABI padding to a structure73ff58b01fANDROID: GKI: networking: add Android ABI padding to a lot of networking structuresf0688df6b5ANDROID: GKI: blk_types.h: add Android ABI padding to a structure4a895f1f2bANDROID: GKI: scsi.h: add Android ABI padding to a structure48691266caANDROID: GKI: pci: add Android ABI padding to some structures4c95a92b84ANDROID: GKI: add Android ABI padding to struct nf_conne6f5502bc3UPSTREAM: usb: typec: tcpm: Skip sink_cap query only when VDM sm is busy36547f2f6dFROMGIT: usb: typec: tcpm: PD3.0 sinks can send Discover Identity even in device mode3f7ada406dUPSTREAM: usb: gadget: configfs: Fix KASAN use-after-free9bd96584f4UPSTREAM: usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg structf2e7bdcdfaUPSTREAM: usb: dwc3: gadget: Prevent EP queuing while stopping transfers462c92e8f2FROMGIT: usb: typec: tcpci: Added few missing TCPCI register definitions6f85b7e0f8UPSTREAM: usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-8cf94785bbRevert "ANDROID: GKI: Enable bounds sanitizer"0eecc2aa30ANDROID: GKI: temporarily disable LTO/CFI3520187422ANDROID: Revert "f2fs: fix to tag FIEMAP_EXTENT_MERGED in f2fs_fiemap()"16982b6a18FROMLIST: KVM: arm64: Disable FWB in host stage-23a16a9e7beFROMLIST: KVM: arm64: Introduce KVM_PGTABLE_S2_NOFWB Stage-2 flagbcdcab0253FROMLIST: KVM: arm64: Protect the .hyp sections from the host317d5a5030FROMLIST: KVM: arm64: Disable PMU support in protected mode6697310c08FROMLIST: KVM: arm64: Page-align the .hyp sections68bd98a28aFROMLIST: KVM: arm64: Wrap the host with a stage 25a128f0626FROMLIST: KVM: arm64: Provide sanitized mmfr* registers at EL20af83133e3FROMLIST: KVM: arm64: Add kvm_pgtable_stage2_find_range()c3f49047caFROMLIST: KVM: arm64: Refactor the *_map_set_prot_attr() helpers9349978462FROMLIST: KVM: arm64: Use page-table to track page ownership845457f549FROMLIST: KVM: arm64: Always zero invalid PTEs1d349d64baFROMLIST: KVM: arm64: Sort the hypervisor memblocks1e798d4121FROMLIST: KVM: arm64: Reserve memory for host stage 26fddc52e50FROMLIST: KVM: arm64: Make memcache anonymous in pgtable allocatora20c8e1c48FROMLIST: KVM: arm64: Refactor __populate_fault_info()21a1f89953FROMLIST: KVM: arm64: Refactor __load_guest_stage2()1a9bba9121FROMLIST: KVM: arm64: Refactor kvm_arm_setup_stage2()6d3f5c07aaFROMLIST: KVM: arm64: Set host stage 2 using kvm_nvhe_init_paramseef107d42aFROMLIST: KVM: arm64: Use kvm_arch in kvm_s2_mmu1a76f891e1FROMLIST: KVM: arm64: Use kvm_arch for stage 2 pgtabled8eb170aa9FROMLIST: KVM: arm64: Elevate hypervisor mappings creation at EL2ae1ed8a984FROMLIST: KVM: arm64: Prepare the creation of s1 mappings at EL2364f0639dbFROMLIST: arm64: asm: Provide set_sctlr_el2 macroca52b29511FROMLIST: KVM: arm64: Factor out vector address calculationa1180dd384FROMLIST: KVM: arm64: Provide __flush_dcache_area at EL237b5552dfbFROMLIST: KVM: arm64: Enable access to sanitized CPU features at EL275fba96057FROMLIST: KVM: arm64: Introduce a Hyp buddy page allocatorf6e834486aFROMLIST: KVM: arm64: Stub CONFIG_DEBUG_LIST at Hyp01253f8e2cFROMLIST: KVM: arm64: Introduce an early Hyp page allocatora3aad4cf4aFROMLIST: KVM: arm64: Allow using kvm_nvhe_sym() in hyp code81181250baFROMLIST: KVM: arm64: Make kvm_call_hyp() a function call at Hyp542dace0bcFROMLIST: KVM: arm64: Introduce a BSS section for use at Hyp4a4beb1005FROMLIST: KVM: arm64: Factor memory allocation out of pgtable.c620bb5f9c9FROMLIST: KVM: arm64: Avoid free_page() in page-table allocatorc758e8e4b1FROMLIST: KVM: arm64: Initialize kvm_nvhe_init_params earlyce5e848201FROMLIST: arm64: kvm: Add standalone ticket spinlock implementation for use at hyp9833905e2dFROMLIST: KVM: arm64: Link position-independent string routines into .hyp.text0f63237470FROMLIST: arm64: lib: Annotate {clear, copy}_page() as position-independentedab6a7245Revert "ANDROID: sched: cpufreq_schedutil: add sugov tracepoints"187306ab1aANDROID: Partial revert of06881e01b5("ANDROID: sched: Add vendor hooks for override sugov behavior")b542f4c389Revert "ANDROID: sched: Add vendor hooks for skipping sugov update"27d6dac0dfRevert "ANDROID: sched: cpufreq_schedutil: move sugov traces to sched"cc574f0d36ANDROID: thermal: Add logic for filter on-die tz genl event.6c6fac8f39ANDROID: mmc: support hardware that takes key directlye4636b47efUPSTREAM: zram: fix broken page writeback542d1937baUPSTREAM: zram: fix return value on writeback_store475aea007dANDROID: sched: Add vendor hook for util_est_update89ea2f1ecaANDROID: GKI: Enable DTPM frameworka3a580961bANDROID: GKI: Add remoteproc framework symbols to symbol list53e8099784ANDROID: vendor_hooks: Add hooks for scheduler7e2c33ac0eFROMGIT: configfs: fix a use-after-free in __configfs_open_file7656aa0f48ANDROID: lib/plist.c: Export plist-related APIs4d63efb9aeANDROID: module: Add vendor hook2ff446fc4dANDROID: bpf: Add vendor hookdccee128b7ANDROID: kernel: Add vendor hook in creds0a3b407463ANDROID: security: selinux: Add vendor hook in avca128ec2b2eUPSTREAM: KVM: arm64: Fix exclusive limit for IPA sizeac821b6257UPSTREAM: KVM: arm64: Reject VM creation when the default IPA size is unsupportedd2eb8b0028ANDROID: GKI: add android_kabi.h45021f7679UPSTREAM: MAINTAINERS: add entry for KFENCE90d03f6fcfANDROID: Clang LTO: Comment on symbol visibility workaround169ddec367FROMLIST: mm: fs: Invalidate BH LRU during page migration3039d8580cBACKPORT: FROMLIST: mm: disable LRU pagevec during the migration temporarily134ac2d4dcFROMLIST: mm: replace migrate_prep with lru_add_drain_alla71a3e1ce6UPSTREAM: mm: migrate: initialize err in do_migrate_pages059eaf82c0UPSTREAM: mm: migrate: clean up migrate_prep{_local}be409db652ANDROID: Clang LTO: Only set -fvisibility=hidden for x8602efd18b77UPSTREAM: usb: typec: tcpci: Refactor tcpc_presenting_cc1_rd macro8d03e49505ANDROID: mm: build alloc_contig_dump_pages in page_alloc.o28f6641041FROMLIST: mm: page_alloc: dump migrate-failed pagescc1f93cb20ANDROID: sched: Add vendor hook for uclamp_eff_get5e1e3e9387ANDROID: cpu/hotplug: failure to offline 2nd to last cpu2c728929c1ANDROID: qcom: Add devm_blk_ksm_init to ABI9108e9ba66ANDROID: arm64: add vendor hooks for unusal abort cases5f1e1f42a5UPSTREAM: powercap/drivers/dtpm: Fix size of object being allocatedfd2c659694UPSTREAM: powercap/drivers/dtpm: Fix an IS_ERR() vs NULL check2a1cd71862UPSTREAM: powercap/drivers/dtpm: Fix some missing unlock bugs7112d4320fUPSTREAM: powercap/drivers/dtpm: Fix a double shift bug578572c48cUPSTREAM: powercap/drivers/dtpm: Fix __udivdi3 and __aeabi_uldivmod unresolved symbols7f17016dc8UPSTREAM: powercap/drivers/dtpm: Add CPU energy model based support082e8dcea9UPSTREAM: powercap/drivers/dtpm: Add API for dynamic thermal power management Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: If05a0d9902893cd29e8bb5eb175bd4ce30250697
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
script/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%