Commit Graph
1387461 Commits
Author SHA1 Message Date
Carlos Llamas 54568b8fa0 Revert "ANDROID: kheader: kheaders: Follow symlinks to source files"
This reverts commit a345ee7b53.

This causes merge issues with upstream patches and can be reapplied
later if really needed.

Bug: 276339429
Cc: Yifan Hong <elsk@google.com>
Change-Id: I7222970b51dfab52ab78ea4a2203b4d74003dcb8
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-03 21:17:36 +00:00
Carlos Llamas 7964f0be92 Revert "ANDROID: add gki_module headers to .gitignore file"
This reverts commit 2f0acef0f9.

The headers are no longer generated since commit bf7b376659 ("Revert
"ANDROID: GKI: Add script to generate symbol protection headers""), so
these are no longer needed in gitignore. Plus they cause merge conflicts
with upstream changes.

Change-Id: Iecae47593f619c9c99b65f0837828a023c358d8a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-03 21:17:13 +00:00
Carlos Llamas 1c896e4473 Merge adf12a394c ("Merge tag 'perf-fixes-27504' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I12a51d3f0ce8e45455f3023f5fa4f75fa1d47efd
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-03 17:37:21 +00:00
Carlos Llamas 43d7fb8990 ANDROID: GKI: rtc: rename lib_test to test_rtc_lib
Upstream renamed this test in commit 0c6f0d77ab ("rtc: Rename lib_test
to test_rtc_lib"), so update our modules.bzl and kunit test configs
accordingly.

Fixes: 0c6f0d77ab ("rtc: Rename lib_test to test_rtc_lib")
Change-Id: I7dbacb6f0a25338782ea5f95fab0655ee998edb1
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-03 17:37:20 +00:00
Carlos Llamas 0f13e77f82 Merge d2eedaa390 ("Merge tag 'rtc-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: If209135bf6d637ff840377b5644639e9c16ed978
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-03 17:37:20 +00:00
Amit Pundir b035930efb Reapply "ANDROID: clk: qcom: Add sync_state = clk_sync_state for db845c clock providers"
This reverts commit a705aafa10.

Fixes the following "arm-smmu Unhandled context fault" on Dragonboard845c seen
with upstream ->sync_state() support added in genpd in v6.17 merge window
https://lore.kernel.org/all/20250701114733.636510-1-ulf.hansson@linaro.org/

[   17.153738][    C0] arm-smmu 15000000.iommu: Unhandled context fault: fsr=0x402, iova=0x9d598800, fsynr=0xe0020, cbfrsynra=0x880, cb=26
[   17.153746][    C0] arm-smmu 15000000.iommu: FSR    = 00000402 [Format=2 TF], SID=0x880
[   17.153754][    C0] arm-smmu 15000000.iommu: FSYNR0 = 000e0020 [S1CBNDX=14 PNU PLVL=0]
[   17.153786][    C0] Unable to handle kernel NULL pointer dereference at virtual address 000000000000000c
[   17.153790][    C0] Mem abort info:
[   17.153793][    C0]   ESR = 0x0000000096000006
[   17.153796][    C0]   EC = 0x25: DABT (current EL), IL = 32 bits
[   17.153799][    C0]   SET = 0, FnV = 0
[   17.153802][    C0]   EA = 0, S1PTW = 0
[   17.153804][    C0]   FSC = 0x06: level 2 translation fault
[   17.153808][    C0] Data abort info:
[   17.153810][    C0]   ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
[   17.153813][    C0]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[   17.153816][    C0]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[   17.153820][    C0] user pgtable: 4k pages, 39-bit VAs, pgdp=000000010484d000
[   17.153824][    C0] [000000000000000c] pgd=0800000104854403, p4d=0800000104854403, pud=0800000104854403, pmd=0000000000000000
[   17.153839][    C0] Internal error: Oops: 0000000096000006 [#1]  SMP
[   17.154403][    C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G        W           6.16.0-mainline-maybe-dirty-4k #1 PREEMPT  ca0b9bafb70f51878c50e485ec3ebb2d5b5da8fb
[   17.154412][    C0] Tainted: [W]=WARN
[   17.154414][    C0] Hardware name: Thundercomm Dragonboard 845c (DT)
[   17.154419][    C0] pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   17.154425][    C0] pc : do_raw_spin_lock+0x10/0x130
[   17.154437][    C0] lr : _raw_spin_lock_irqsave+0x74/0xb4
[   17.154534][    C0] Call trace:
[   17.154538][    C0]  do_raw_spin_lock+0x10/0x130 (P)
[   17.154544][    C0]  _raw_spin_lock_irqsave+0x74/0xb4
[   17.154552][    C0]  kthread_queue_work+0x24/0xa0
[   17.154560][    C0]  msm_disp_snapshot_state+0x24/0x44 [msm 23b4fb9b31e94eb908ea985b91fe2ebf510131ec]
[   17.154753][    C0]  msm_kms_fault_handler+0x24/0x68 [msm 23b4fb9b31e94eb908ea985b91fe2ebf510131ec]
[   17.154944][    C0]  msm_disp_fault_handler+0x40/0x58 [msm 23b4fb9b31e94eb908ea985b91fe2ebf510131ec]
[   17.155131][    C0]  report_iommu_fault+0x54/0x138
[   17.155139][    C0]  arm_smmu_context_fault+0x74/0x1bc [arm_smmu fd2bfbc82e2ce2512b5a5febf5d05774b2854c65]
[   17.155164][    C0]  __handle_irq_event_percpu+0xfc/0x33c
[   17.155173][    C0]  handle_irq_event+0x40/0xac
[   17.155180][    C0]  handle_fasteoi_irq+0xdc/0x260
[   17.155187][    C0]  generic_handle_domain_irq+0x58/0x80
[   17.155194][    C0]  gic_handle_irq+0x1f8/0x454
[   17.155202][    C0]  call_on_irq_stack+0x48/0x8c
[   17.155211][    C0]  do_interrupt_handler+0x4c/0x84
[   17.155217][    C0]  el1_interrupt+0x44/0x94
[   17.155226][    C0]  el1h_64_irq_handler+0x18/0x24
[   17.155232][    C0]  el1h_64_irq+0x84/0x88
[   17.155238][    C0]  arch_local_irq_enable+0x8/0x1c (P)
[   17.155249][    C0]  cpuidle_enter+0x38/0x54
[   17.155256][    C0]  do_idle+0x1d0/0x2f0
[   17.155263][    C0]  cpu_startup_entry+0x34/0x3c
[   17.155269][    C0]  rest_init+0x1b4/0x1b8
[   17.155276][    C0]  start_kernel+0x37c/0x49c
[   17.155285][    C0]  __primary_switched+0x90/0x9c
[   17.155297][    C0] Code: f800865e a9be7bfd a9014ff4 910003fd (b9400408)
[   17.155302][    C0] ---[ end trace 0000000000000000 ]---
[   17.155307][    C0] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[   17.155311][    C0] SMP: stopping secondary CPUs
[   18.196993][    C0] SMP: failed to stop secondary CPUs 5
[   18.397036][    C0] Kernel Offset: 0xfb5200000 from 0xffffffc080000000
[   18.397040][    C0] PHYS_OFFSET: 0x80000000
[   18.397043][    C0] CPU features: 0x00000,00009200,10023141,0400721b
[   18.397046][    C0] Memory Limit: none

Bug: 146449535
Change-Id: I11a270ef2486148b359b7d5ddaf582c1aab701b7
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2025-09-03 10:19:32 -07:00
Carlos Llamas 42d3f1efd8 Merge 806381e1a2 ("Merge tag 'powerpc-6.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I0a9a23ee0a486d4e1ddcf56257954e323a834375
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 18:08:01 +00:00
Carlos Llamas 526a01f5e6 Merge 352af6a011 ("Merge tag 'rust-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: Iac741b08c797f96ddb38ea9e9af8fcb9cc99d887
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 17:37:35 +00:00
Carlos Llamas 8fceedc186 Revert "PCI: dwc: Switch to msi_create_parent_irq_domain()"
This reverts commit 8e717112ca.

This breaks Pixel's drivers that are still using pp->msi_domain, so go
back to the legacy implementation while these drivers are updated to use
the new MSI setup. This patch can be reapplied then.

Bug: 442591113
Change-Id: I7d1075323f64d1a2abeafcecf01335969ad37fab
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 17:11:00 +00:00
Carlos Llamas a325591615 Merge 0bd0a41a51 ("Merge tag 'pci-v6.17-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I34438bcb414911f6a6453613fe087adc28e30b3d
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 16:59:12 +00:00
Carlos Llamas 684da1412d Merge 877d94c74e ("Merge tag 'linux-watchdog-6.17-rc1' of git://www.linux-watchdog.org/linux-watchdog") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I6b5469b03f03d01673f445eef61c2b07e3d7d351
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 00:49:13 -07:00
Carlos Llamas ddc4020bba Merge c6439bfaab ("Merge tag 'trace-deferred-unwind-v6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace") into android-mainline
Steps on the way to v6.17-rc1

Resolves merge conflicts in:
	include/linux/sched.h

Cc: John Stultz <jstultz@google.com>
Change-Id: Idbe526cc9916b717409d5b85f84d15fec3f8f5f3
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 00:12:01 -07:00
Carlos Llamas fda2b02e5a Merge 89748acdf2 ("Merge tag 'drm-next-2025-08-01' of https://gitlab.freedesktop.org/drm/kernel") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I47769a8c4852fbf1a66456f1956182297d48e749
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 00:11:13 -07:00
Carlos Llamas 64e2ee084b Merge 07b4382043 ("Merge tag 'for-v6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply") into android-mainline
Steps on the way to v6.17-rc1

Resolves merge conflicts in:
	include/linux/power_supply.h

Change-Id: Ia5db25b3e13965601d52b5ebf1488aefbe5deb85
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-09-02 00:11:13 -07:00
Alice Ryhl 49a559b9a6 ANDROID: gki: use Rust version 1.87.0
Bug: 438527676
Change-Id: Ieaf168ebfab819d9d6f04fcb2962e827fb8a8819
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
2025-09-01 03:02:19 -07:00
Mike Yu 3e1da3739d ANDROID: GKI: Add GKI_HIDDEN_XFRM_OFFLOAD_CONFIGS
Add GKI_HIDDEN_XFRM_OFFLOAD_CONFIGS kernel config to enable
XFRM_OFFLOAD kernel config.

Bug: 441689046
Change-Id: I65f2b543084d74486c71ee618141934518272f96
Signed-off-by: Mike Yu <yumike@google.com>
2025-09-01 09:47:33 +08:00
Carlos Llamas dd680f28e2 Merge b80a75cf69 ("Merge tag 'hid-for-linus-2025073101' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I2f1432f7a416c623032926fd94c7f167fbc18c0c
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-30 13:41:57 -07:00
Carlos Llamas f7fbeae763 ANDROID: incfs: use memzero_page()
memzero_page() is the new name for zero_user().

Cc: Paul Lawrence <paullawrence@google.com>
Fixes: 234dda7a49 ("mm: remove zero_user()")
Change-Id: I21d55988227ef7a18ae643670e455dfed4281fc9
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-29 10:51:24 -07:00
Carlos Llamas 7f53758fda ANDROID: incfs: remove usage of grab_cache_page()
Convert call to filemap_grab_folio() as grab_cache_page() was removed in
commit 45cd52c44e ("mm: remove grab_cache_page()"). Also convert other
subsequent calls manipulating the page to folio equivalents.

Fixes: 45cd52c44e ("mm: remove grab_cache_page()")
Cc: Paul Lawrence <paullawrence@google.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Change-Id: I050558b4d14142fe8072284993a1f9b498212512
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-29 10:51:24 -07:00
Carlos Llamas ff4b54e739 FROMLIST: mm/mremap: fix regression in vrm->new_addr check
Commit 3215eaceca ("mm/mremap: refactor initial parameter sanity
checks") moved the sanity check for vrm->new_addr from mremap_to() to
check_mremap_params().

However, this caused a regression as vrm->new_addr is now checked even
when MREMAP_FIXED and MREMAP_DONTUNMAP flags are not specified. In this
case, vrm->new_addr can be garbage and create unexpected failures.

Fix this by moving the new_addr check after the vrm_implies_new_addr()
guard. This ensures that the new_addr is only checked when the user has
specified one explicitly.

Cc: stable@vger.kernel.org
Fixes: 3215eaceca ("mm/mremap: refactor initial parameter sanity checks")
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Carlos Llamas <cmllamas@google.com>

Bug: 441615946
Link: https://lore.kernel.org/all/20250828142657.770502-1-cmllamas@google.com/
Change-Id: I29e4326094e463a0acd1d2a206682a0f1f787299
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-29 10:51:24 -07:00
Carlos Llamas b3dc423195 Merge beace86e61 ("Merge tag 'mm-stable-2025-07-30-15-25' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm") into android-mainline
Steps on the way to v6.17-rc1

Resolves merge conflicts in:
	mm/cma.c
	mm/page_alloc.c

Cc: Suren Baghdasaryan <surenb@google.com>
Change-Id: Id6ae7e1446bea2a386152f164a4aedf75d335d43
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-29 10:51:24 -07:00
Isaac J. Manjarres 26cb5b2cd2 ANDROID: GKI: Enable 32-bit userspace x_tables support
Upstream commit bde7170a04 ("netfilter: xtables: disable 32bit compat
interface by default") silently disabled
CONFIG_NETFILTER_XTABLES_COMPAT, dropping support for x_tables from
32-bit operating systems.

The GKI kernel is used by devices that still run a 32-bit OS, so enable
that config again.

Bug: 437140699
Change-Id: Ifa4db2af156284c87e7b38106cfad6c898285145
[isaacmanjarres: resolved merge conflicts when porting forward
from android15-6.6.]
Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
2025-08-28 16:37:31 +00:00
Frederick Mayle bad5679dcb ANDROID: crashdump_defconfig: CONFIG_DMA_RESTRICTED_POOL=y
Required for use of PCI devices in a protected VM.

Bug: 436349788
Test: build (only carefully tested android15-6.6 branch)
Signed-off-by: Frederick Mayle <fmayle@google.com>
Change-Id: Ica333eed62c4ce7ce7e7237300effd219a0071e4
2025-08-27 13:59:18 -07:00
Frederick Mayle 48f89dd45e ANDROID: fix crashdump_defconfig menuconfig
aarch64 was hitting the following error, CONFIG_VMAP_STACK appears to be
forced on for arm64 now:

    ERROR: CONFIG_VMAP_STACK: actual 'y', expected '' from common/arch/arm64/configs/crashdump_defconfig

Similarly, x86_64 seems to require CONFIG_SPARSEMEM_VMEMMAP, probably
because of `ARCH_SELECT_MEMORY_MODEL=y` (on by default):

    ERROR: CONFIG_SPARSEMEM_VMEMMAP: actual 'y', expected '' from common/arch/x86/configs/crashdump_defconfig

Bug: 436349788
Test: build
Change-Id: I7c0617990c5e398d4568b724fdee5b460ca92228
Signed-off-by: Frederick Mayle <fmayle@google.com>
2025-08-27 13:59:18 -07:00
Wake Liu 27ceb246e7 ANDROID: Add kcmp tests for all architectures
Add the kcmp kselftest to all architectures and to the VTS
test configuration

Bug: 416599813
Signed-off-by: Wake Liu <wakel@google.com>
Change-Id: I52498b66aee85527209366381b0783d9dad6f801
2025-08-27 09:29:03 -07:00
Wake Liu 95e5c0e9e3 ANDROID: Add futex tests for all architectures
Add the futex kselftest to all architectures and to the VTS
test configuration.

Bug: 416599813
Signed-off-by: Wake Liu <wakel@google.com>
Change-Id: I1e21ff962484d0c0920a6877a122bf3b9dcd5a51
2025-08-27 09:29:03 -07:00
Wake Liu 78037b8f65 ANDROID: Add capabilities test for all architectures
Add the capabilities kselftest to all architectures and to the VTS
test configuration.

Bug: 416599813
Signed-off-by: Wake Liu <wakel@google.com>
Change-Id: I0b307774da7aac479eda909f8f8cd626ea8c6a3b
2025-08-27 09:29:03 -07:00
HONG Yifan 481ee68267 ANDROID: kleaf: add gki_*_protected_module_names targets.
Unlike
commit 7a2f90ea8a ("ANDROID: Create list of protected module names"),
this change processes the module name list in the analysis phase so that
we don't have to process it at the macro expansion phase. This allows
future changes to make get_gki_modules_list and get_kunit_modules_list
return a select() expression.

Bug: 393366754
Bug: 419603781
Test: manually build these two targets
Change-Id: Ia0b2fd4dc92c75061fff2f8fba68bbb37bfa7b49
Signed-off-by: HONG Yifan <elsk@google.com>
2025-08-26 18:09:52 -07:00
HONG Yifan 8a37f56281 ANDROID: kleaf: add modules_superset to modules.bzl.
Unlike the get_gki_modules_list and get_kunit_modules_list,
these new functions get_gki_modules_superset
and get_kunit_modules_superset returns a plain
list with all items in each conditional branch of the
conditional.

Bug: 419603781
Change-Id: I07c3cb5ca876833ebc61010dbf19ba50b5c491b4
Signed-off-by: HONG Yifan <elsk@google.com>
2025-08-26 18:09:52 -07:00
Alistair Delva dc7d826e57 ANDROID: Clarify cherry-pick policy
The important thing for cherry-picks FROMGIT are that the content of the
change doesn't change (by the maintainer just before a merge request, or
due to rebasing a tree), not so much that it is a "stable maintainer"
tree, so update the language a little.

Also, explicitly call out 'net' and 'net-next' as these trees are
"special", and in the opposite way to 'linux-next'.

Change-Id: I7b2c009d237fbc44bb515fce497cdd92e2138420
Signed-off-by: Alistair Delva <adelva@google.com>
2025-08-22 11:03:04 -07:00
David Stevens 76b360aaf3 ANDROID: GKI: defconfig: Enable a few zram configs
Enable CONFIG_ZRAM_WRITEBACK, CONFIG_ZRAM_MULTI_COMP (i.e.
recompression), and CONFIG_ZRAM_BACKEND_ZSTD. Enabling these allows the
new mmd system component to manage writeback and recompression when
configured to do so, without the need of providing zram as a vendor
module.

Bug: 404275001
Change-Id: I6ae1fa9768408b1b9782747c98ba02b9c0f7db3e
Signed-off-by: David Stevens <stevensd@google.com>
2025-08-21 14:03:02 -07:00
linjunjie1 9e38fda7a3 ANDROID: Enable CONFIG_ARM64_PSEUDO_NMI
The CONFIG_ARM64_PSEUDO_NMI configuration macro needs to be enabled. Pseudo NMI has many benefits:
(1) It solves the problem of sensitive interrupts being delayed due to lock interrupts, significantly reducing the response delay of sensitive interrupts
(2) It can help locate hard lockup problems caused by interrupt masking
(3) Through IPI_CPU_STOP_NMI, it can also detect CPU stop failures caused by interrupt masking

There is no disadvantage, because if the user does not want to use the pseudo NMI function, the default setting of irqchip.gicv3_pseudo_nmi is disabled.

Bug: 439502098
Change-Id: Ib19037853a844e62cb13487656720334ed875de4
Signed-off-by: linjunjie1 <linjunjie1@xiaomi.corp-partner.google.com>
2025-08-21 08:42:54 -07:00
Carlos Llamas 34eb298b6e Merge cbbf0a759f ("Merge tag 'mtd/for-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I30e4a9e44b98c4f6b2203f44f07fc9e06d56526b
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:42:11 -07:00
Carlos Llamas 2d74e4b8af Merge 0cdee263bc ("Merge tag 'media/v6.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: Ia62800e63485af2bc3f3b560abcc8671991def6a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:42:11 -07:00
Carlos Llamas aeab437fe6 Merge f1aa129d80 ("Merge tag 'mips_6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: Ife3b404bee562fb567182805d13c81b688a86eee
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:42:11 -07:00
Carlos Llamas 639ccc627f ANDROID: db845c: add QCOM_UBWC_CONFIG module
In commit 45a2974157 ("drm/msm: Use the central UBWC config database")
the QCOM_UBWC_CONFIG gets selected for  config DRM_MSM, so add it to the
db845c modules list.

Fixes: 45a2974157 ("drm/msm: Use the central UBWC config database")
Change-Id: Ie3c3158138747ecc2f7262fb1e24c18b2d54c6fa
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:39:54 -07:00
Carlos Llamas eec5002a7d ANDROID: db845c: add DRM_GPUVM module
In commit 111fdd2198 ("drm/msm: drm_gpuvm conversion"), the DRM_GPUVM
module gets selected for config DRM_MSM, so add it to the db845c modules
list.

Fixes: 111fdd2198 ("drm/msm: drm_gpuvm conversion")
Change-Id: I628f7b19e5b9abeb0fb08a573580dffa37f1b4e5
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:39:54 -07:00
Carlos Llamas c71ecb4221 FROMLIST: drm/xe: replace basename() with portable strrchr()
Commit b0a2ee5567 ("drm/xe: prepare xe_gen_wa_oob to be multi-use")
introduced a call to basename(). The GNU version of this function is not
portable and fails to build with alternative libc implementations like
musl or bionic. This causes the following build error:

  drivers/gpu/drm/xe/xe_gen_wa_oob.c:130:12: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
    130 |         fn = basename(fn);
        |            ^

While a POSIX version of basename() could be used, it would require a
separate header plus the behavior differs from GNU version in that it
might modify its argument. Not great.

Instead replace basename() with a strrchr() based implementation which
provides the same functionality and avoid portability issues.

Fixes: b0a2ee5567 ("drm/xe: prepare xe_gen_wa_oob to be multi-use")
Signed-off-by: Carlos Llamas <cmllamas@google.com>

Link: https://lore.kernel.org/all/20250820201612.2549797-1-cmllamas@google.com/
Change-Id: Icb43fd8af1fe25dd8828d3c6d20ec96d8768932f
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:39:54 -07:00
Carlos Llamas 40226d7997 Merge 260f6f4fda ("Merge tag 'drm-next-2025-07-30' of https://gitlab.freedesktop.org/drm/kernel") into android-mainline
Steps on the way to v6.17-rc1

Resolve merge conflicts in:
	drivers/dma-buf/heaps/system_heap.c

Cc: John Stultz <jstultz@google.com>
Change-Id: I091bc3daf3fefae11287bc79c80351f882ae51be
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-21 08:39:54 -07:00
Tiffany Yang 37a69c0750 ANDROID: sched: Export set_task_cpu inside of ifdef
Fix the following kernelci build error on non-CONFIG_SMP systems:

ERROR: modpost: vmlinux: local symbol 'set_task_cpu' was exported

Fixes: a085424328 ("ANDROID: Export some scheduler APIs for vendor modules")
Change-Id: Iba0c7f1c62fe0b2e4c386ad9adfa0ded61fd3733
Signed-off-by: Tiffany Yang <ynaffit@google.com>
2025-08-20 14:07:41 -07:00
Bjorn Andersson c92a48f596 FROMGIT: soc: qcom: mdt_loader: Deal with zero e_shentsize
Firmware that doesn't provide section headers leave both e_shentsize and
e_shnum 0, which obvious isn't compatible with the newly introduced
stricter checks.

Make the section-related checks conditional on either of these values
being non-zero.

Fixes: 9f9967fed9 ("soc: qcom: mdt_loader: Ensure we don't read past the ELF header")
Reported-by: Val Packett <val@packett.cool>
Closes: https://lore.kernel.org/all/ece307c3-7d65-440f-babd-88cf9705b908@packett.cool/
Reported-by: Neil Armstrong <neil.armstrong@linaro.org>
Closes: https://lore.kernel.org/all/aec9cd03-6fc2-4dc8-b937-8b7cf7bf4128@linaro.org/
Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Fixes: 9f35ab0e53 ("soc: qcom: mdt_loader: Fix error return values in mdt_header_valid()")
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8650-QRD
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250730-mdt-loader-shentsize-zero-v1-1-04f43186229c@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

Bug: 146449535
(cherry picked from commit 25daf9af0a
 https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git drivers-fixes-for-6.17)
Change-Id: I64bea74ebe3f94349a9489afb1a5dfda71f70a10
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2025-08-20 17:45:53 +05:30
Carlos Llamas b32a813da5 Reapply "mei: rework Kconfig dependencies"
This reverts commit b8ed6629a3.

Resolves trivial merge conflicts in:
	drivers/misc/mei/Kconfig
	drivers/misc/mei/hdcp/Kconfig
	drivers/misc/mei/pxp/Kconfig

The lack of this commit causes an arm_allmodconfig build failure as
INTEL_MEI_ME is only expected to be selected for X86.

  WARNING: unmet direct dependencies detected for INTEL_MEI_ME
    Depends on [n]: X86 && PCI [=y]
    Selected by [m]:
    - INTEL_MEI_HDCP [=m] && (DRM_I915 [=n] || DRM_XE [=m])
    - INTEL_MEI_PXP [=m] && (DRM_I915 [=n] || DRM_XE [=m])

  drivers/gpu/drm/xe/xe_gen_wa_oob.c:130:5:
  error: incompatible integer to pointer conversion assigning to
         'const char *' from 'int' [-Wint-conversion]
    130 |         fn = basename(fn);
        |            ^ ~~~~~~~~~~~~

Change-Id: Ie9e307a4ae9ca88d5bcc4834da1bc1f7608d9699
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-20 02:54:47 -07:00
Tiffany Yang d7458e83ee ANDROID: sched: remove ifdef around __migrate_task
Commit cac5cefbad ("sched/smp: Make SMP unconditional") removed if
guards that used to be present around __migrate_task. We expose this
function to Android vendors, so KCI is giving the following build errors:

kernel/sched/core.c:2597:12: error: no previous prototype for ‘__migrate_task’ [-Werror=missing-prototypes]
 2597 | struct rq *__migrate_task(struct rq *rq, struct rq_flags *rf,
      |            ^~~~~~~~~~~~~~

Remove the CONFIG_SMP if guards around the function prototype.

Change-Id: I849517a2cfe8a6883c6844fa77a905eb1a86c0f0
Fixes: 60d2746309 ("ANDROID: sched: allow access to critical common code for CPU Pause")
Signed-off-by: Tiffany Yang <ynaffit@google.com>
2025-08-19 16:38:36 -07:00
Carlos Llamas ad6c104988 Merge 63eb28bb14 ("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: Iedefd900a09fe53153289fa19d93139f33d33867
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-19 03:23:17 +00:00
Carlos Llamas a2bd81eede Revert "ANDROID: ipi: Add function to return nr_ipi and ipi_desc"
This reverts commit 8f15907b74.

The logic for ipi_desc was reworked upstream in commit ba1004f861
("arm64: smp: Support non-SGIs for IPIs"), so these functions are no
longer applicable. An updated version of this patch can be brought back
later if really needed.

Bug: 177393446
Fixes: ba1004f861 ("arm64: smp: Support non-SGIs for IPIs")
Change-Id: I0023cd9a428e24b67b752a86faa5dc3cc5564111
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-19 03:18:54 +00:00
Carlos Llamas 1e48a9142f Merge 7d767a9528 ("Merge tag 'for-linus-6.17-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I8e178669d6de4988a8f82f3586b959ade88f4ebe
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-18 20:39:07 +00:00
Carlos Llamas 380603d5f2 Merge 2be6a7503d ("Merge tag 'trace-unused-v6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace") into android-mainline
Steps on the way to v6.17-rc1

Resolves merge conflicts in:
	kernel/trace/power-traces.c

Change-Id: I3a3712bf41135f867910dace23bcb2447e467a71
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-18 20:38:57 +00:00
Carlos Llamas 3e977a9bed Revert "ANDROID: sched: Re-apply patch to export a few scheduler symbols for vendor modules"
This reverts commit 658dc70320.

Upstream hid 'trace_sched_swap_numa()' behind CONFIG_NUMA_BALANCING in
commit c2dbaf0af0 ("tracing: sched: Hide numa events under
CONFIG_NUMA_BALANCING"). This breaks ACK builds since migrate_swap()
uses such tracepoint and the CONFIG_NUMA_BALANCING build guards were
removed in https://r.android.com/3730131. This logic needs to be
reworked again if migrate_swap() is needed.

Bug: 438787298
Cc: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
Change-Id: I08f62c35dbb81da664bc9c514722fd54bd07c12a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-18 20:37:53 +00:00
Carlos Llamas 4b795e92bf Merge 4ff261e725 ("Merge tag 'trace-rv-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I36e9aecb67329198d0f2c294ea008ba81a6f791a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-18 00:23:44 -07:00
Carlos Llamas a36f73f1c2 Merge 90a871f74b ("Merge tag 'ftrace-v6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace") into android-mainline
Steps on the way to v6.17-rc1

Change-Id: I33fb5ec9d9e247c5ead865ef0ed84aa36043bf6a
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-08-18 00:22:09 -07:00