Commit Graph

967790 Commits

Author SHA1 Message Date
Matthias Maennich 4a5aea3471 ANDROID: Revert out of tree difference by unclean revert
Commit 88adaf726e ("Revert "ANDROID: drivers: gpu: drm: fix bugs
encountered while fuzzing"") introduced an out-of-tree difference that
this patch compensates.

Fixes: 88adaf726e ("Revert "ANDROID: drivers: gpu: drm: fix bugs encountered while fuzzing"")
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ie6d125567365fea8db735e9ad9d8af4262d958fc
2020-10-30 23:46:29 +00:00
Matthias Maennich c3d61b03ad ANDROID: Drop trivial out of tree difference
... introduced during the 5.10-rc1 merge.

Fixes: 76bfcb2dc2 ("ANDROID: sync generic casefolding code with patches going upstream")
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I753a8133fe4da4c8af955d5c070b6ebf6ac0be4f
2020-10-30 23:46:28 +00:00
J. Avila 7d5919218f ANDROID: um: Return to old __section declarations for um
There are build issues in certain targets due to a recent change to the
section declarations (33def8498f). Until
this is reconciled properly, revert to the older declaration style for a
few files.

Signed-off-by: J. Avila <elavila@google.com>
Change-Id: Id34aeca94bb395f79fb6a3710f92c6827964a79d
2020-10-30 17:42:29 +00:00
Qais Yousef 7ba2f04cb6 ANDROID: arm64: Enable KVM for Asym AArch32
Now KVM better handles the asym aarch32 situation. Allow both configs to
coexist.

Bug: 168847043
Reason: Needed for bringup. Revert when upstream patch is available
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: I62d8fd58ac950846f18cf2cb848a3b59922e9bd6
2020-10-29 20:34:49 +00:00
Qais Yousef b674244dc1 ANDROID: arm64: kvm: Hide asym aarch32 systems from KVM
KVM is not allowed when CONFIG_ASYMMETRIC_AARCH32 is enabled.
But there's a desire to allow the 2 configs to coexist for Android
GKI so that Protected KVM and this feature can both be enabled.

The approach taken here is to simply make sure KVM doesn't see the
asymmetry and hope for the best. It's not a bulletproof solution since
ERET can still cause a return to aarch32. There's very little we can do
anyway and we assume upper layer have to cooperate to guarantee
correctness.

Tested on FVP by booting the same kernel via qemu and attempting to run
a 32bit statically linked binary. The host can run the app fine but the
guest wasn't able to recognize the binary and run it. Which is the
expected behavior.

Bug: 168847043
Reason: Needed for bringup. Revert when upstream patch is available
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: I2fc639815632567d0a4697b184ded03392dd572d
2020-10-29 20:34:42 +00:00
Qais Yousef d4313b326c ANDROID: arm64: Disallow offlining the last aarch32 cpu
On asym aarch32 systems, bringing the last aarch32 cpu would cause any
running 32bit application to crash. To protect against that, we ensure
that we block the offlining operation of the last online cpu in
aarch32_el0_mask.

Suspend/hibernation and kexec operation should continue to work as
intended.

This is a different approach compared to the original one [1]. We should
be able to convert this to a vendor hook if there's a desire to do so.

[1] http://linux-arm.org/git?p=linux-power.git;a=commit;h=e6b567c1cc07dd1690e5d34b6a93ab9819ab2eeb

Bug: 168847043
Reason: Needed for bringup. Revert when upstream patch is available
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: Ie8a2372d7b7db3c3580f19d724be183f988a5895
2020-10-29 20:34:30 +00:00
Qais Yousef cacae105ed ANDROID: arm64: Handle AArch32 tasks running on non AArch32 cpu
On Asym AArch32 system, if a tasks tries to run on unsupported CPU, we
fix up the cpumask silently to make sure tasks aren't killed if placed
on a CPU without AArch32 support

This patch can be omitted if user-space can guarantee the cpumask of
all AArch32 apps only contains AArch32 capable CPUs.

The biggest danger is in apps who try to modify their own cpu affinity
via sched_setaffinity(). Without this change they could trigger
a SIGKILL if they unknowingly affine to the wrong CPU.

Without this patch user-space must ensure that any 32bit app is cloned
into a cpuset cgroup that will restrict it to aarch32 capable cpus.
clone3 syscall allows specifying the cgroup on fork.

Split from Catalin's original patch to support Asym AArch32 systems.
Only modified cpumask_t to become cpumask_var_t in
set_32bit_cpus_allowed().

Bug: 168847043
Reason: Needed for bringup. Revert when upstream patch is available
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: If520cbf5cd705fb0e0399f36b81d4a68e90beb3a
2020-10-29 20:34:20 +00:00
Catalin Marinas 8a2a23717d ANDROID: arm64: Add support for asymmetric AArch32 EL0 configurations
When the CONFIG_ASYMMETRIC_AARCH32 option is enabled (EXPERT), the type
of the ARM64_HAS_32BIT_EL0 capability becomes WEAK_LOCAL_CPU_FEATURE.
The kernel will now return true for system_supports_32bit_el0() and
checks 32-bit tasks are affined to AArch32 capable CPUs only in
do_notify_resume(). If the affinity contains a non-capable AArch32 CPU,
the tasks will get SIGKILLed. If the last CPU supporting 32-bit is
offlined, the kernel will SIGKILL any scheduled 32-bit tasks (the
alternative is to prevent offlining through a new .cpu_disable feature
entry).

In addition to the relaxation of the ARM64_HAS_32BIT_EL0 capability,
this patch factors out the 32-bit cpuinfo and features setting into
separate functions: __cpuinfo_store_cpu_32bit(),
init_cpu_32bit_features(). The cpuinfo of the booting CPU
(boot_cpu_data) is now updated on the first 32-bit capable CPU even if
it is a secondary one. The ID_AA64PFR0_EL0_64BIT_ONLY feature is relaxed
to FTR_NONSTRICT and FTR_HIGHER_SAFE when the asymmetric AArch32 support
is enabled. The compat_elf_hwcaps are only verified for the
AArch32-capable CPUs to still allow hotplugging AArch64-only CPUs.

Bug: 168847043
Reason: Needed for bringup. Revert when upstream patch is available
Nacked-for-upstream-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com>
Cc: Morten Rasmussen <Morten.Rasmussen@arm.com>
Cc: Valentin Schneider <valentin.schneider@arm.com>
Cc: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
[Qais: removed affinity handling to a separate patch and fixed up
docs/naming to match the change]
Change-Id: I1a9860a883f001ddebb4df9dee7504edf970d593
2020-10-29 20:34:07 +00:00
Jaegeuk Kim 66692a44e7 FROMLIST: scsi: ufs: fix clkgating on/off correctly
The below call stack prevents clk_gating at every IO completion.
We can remove the condition, ufshcd_any_tag_in_use(), since clkgating_work
will check it again.

ufshcd_complete_requests(struct ufs_hba *hba)
  ufshcd_transfer_req_compl()
    __ufshcd_transfer_req_compl()
      __ufshcd_release(hba)
        if (ufshcd_any_tag_in_use() == 1)
           return;
  ufshcd_tmc_handler(hba);
    blk_mq_tagset_busy_iter();

Note that, this still requires a work to deal with a potential racy condition
when user sets clkgating.delay_ms to very small value. That can cause preventing
clkgating by the check of ufshcd_any_tag_in_use() in gate_work.

Link: https://lore.kernel.org/linux-scsi/20201028194352.GA3060274@google.com/T/#m3485ba8df14e4ad5cf0aa5b314ffe1cb90d90105
Fixes: 7252a36030 ("scsi: ufs: Avoid busy-waiting by eliminating tag conflicts")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Change-Id: I9b56725b26e1be8b1da55ae1db7322ab00fc5298
2020-10-29 18:34:58 +00:00
Jaegeuk Kim 268635d8ed FROMLIST: scsi: ufs: atomic update for clkgating_enable
When giving a stress test which enables/disables clkgating, we hit device
timeout sometimes. This patch avoids subtle racy condition to address it.

Note that, this requires a patch to address the device stuck by REQ_CLKS_OFF in
__ufshcd_release().

The fix is "scsi: ufs: avoid to call REQ_CLKS_OFF to CLKS_OFF".

Link: https://lore.kernel.org/linux-scsi/20201028194352.GA3060274@google.com/T/#m979bdb55500f3f63fa4e975524f8559c80697862
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ice47cbd199850aadd15166ac414fd97db3a79aad
2020-10-29 18:34:52 +00:00
Jaegeuk Kim 4d4543e1c4 FROMLIST: scsi: ufs: avoid to call REQ_CLKS_OFF to CLKS_OFF
Once UFS was gated with CLKS_OFF, it should not call REQ_CLKS_OFF again, which
caused hibern8_enter failure.

Link: https://lore.kernel.org/linux-scsi/20201028194352.GA3060274@google.com/T/#m3485ba8df14e4ad5cf0aa5b314ffe1cb90d90105
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Change-Id: Ia5cad145189c266b1bfba34ad3875f8ccf8ec322
2020-10-29 18:34:44 +00:00
Satya Durga Srinivasu Prabhala 7a2a316228 ANDROID: sched: gki: add padding to some structs to support WALT
Add padding to below structs to support WALT based accounting:
	1. struct cpu_topology
	2. struct task_struct
	3. struct sched_domain_shared
	4. struct task_group
	5. struct root_domain
	6. struct rq

To accommodate potential future changes, reserving more memory than
what WALT needs today.

Bug: 171858786
Change-Id: If6d901174fc7963be3ae44daa799cb2953669ec1
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2020-10-29 16:51:28 +00:00
Mark Salyzyn 8d5dc2cf06 ANDROID: overlayfs: fixup after upstream merge
Resolve merge conflicts from 5.10-rc1

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 171874122
Change-Id: I87bbb2f2fd6a9b3c019046a6179245fc45f57eda
2020-10-29 14:45:25 +00:00
Sangmoon Kim 077f295902 FROMLIST: char: misc: increase DYNAMIC_MINORS value
DYNAMIC_MINORS value has been set to 64.
Due to this reason, we are facing a module loading fail problem of
device driver like below.

 [   45.712771] pdic_misc_init - return error : -16

We need to increase this value for registering more misc devices.

Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>

Bug: 171370390
Link: https://lore.kernel.org/lkml/20201029070552.GA3062343@kroah.com/
Change-Id: I04ab486ce7674dde3118506c3d783f0e4e211bac
Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
2020-10-29 12:43:51 +01:00
Greg Kroah-Hartman 67d3ed5765 Merge 'v5.10-rc1' into android-mainline
Linux 5.10-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iace3fc84a00d3023c75caa086a266de17dc1847c
2020-10-29 06:32:38 +01:00
Nick Desaulniers 4cc2f83c77 ANDROID: vendor_hooks: fix __section macro
After upstream 33def8498f ("treewide: Convert macro and uses of
__section(foo) to __section("foo")"), the preprocessor macro __section
now requires the section name to be double quoted.

This patch resolves breakage that results from merging down from
mainline in this out of tree header.

Fixes: 33def8498f ("treewide: Convert macro and uses of __section(foo) to __section("foo")")
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie6a701251e6420e63187a466b43ec2c834e0ec2e
2020-10-29 06:30:56 +01:00
Greg Kroah-Hartman 338f8e80b4 Merge 0746c4a9f3 ("Merge branch 'i2c/for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux") into android-mainline
Steps on the way to 5.10-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Iec426c6de4a59a517e5fa575a9424b883d958f08
2020-10-28 21:20:34 +01:00
Greg Kroah-Hartman 96a3f5ac39 FROMLIST: proc "single files": switch to ->read_iter
Implement ->read_iter for all proc single files so that more bionic
tests cases can pass.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id2797cb2bc8607a26102afbebf8c18d0c77a08b8
2020-10-28 18:01:28 +01:00
Greg Kroah-Hartman bbaefffb7f Merge 0593c1b459 ("Merge tag 'riscv-for-linus-5.10-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux") into android-mainline
Steps on the way to 5.10-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I6c591aaf586f7c760f2f6501de659199263c96be
2020-10-28 15:27:52 +01:00
Christoph Hellwig d801fe130c FROMLIST: proc/cpuinfo: switch to ->read_iter
Implement ->read_iter so that the Android bionic test suite can use
this random proc file for its splice test case.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I15f97c8bcbbc92b14155a928608f746b73035fe4
2020-10-28 15:12:07 +01:00
Christoph Hellwig 86aa9dba81 FROMLIST: proc: wire up generic_file_splice_read for iter ops
Wire up generic_file_splice_read for the iter based proxy ops, so
that splice reads from them work.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I163a0609fd23059121d0f28359abe2a4b39b5031
2020-10-28 15:12:05 +01:00
Christoph Hellwig d75b551a83 FROMLIST: seq_file: add seq_read_iter
iov_iter based variant for reading a seq_file.  seq_read is
reimplemented on top of the iter variant.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I216f87fbe072a1e3a41c597df574c43d6d21ba80
2020-10-28 15:12:01 +01:00
Linus Torvalds 558002b5eb FROMLIST: scsi: qla2xxx: remove incorrect sparse #ifdef
The code to try to shut up sparse warnings about questionable locking
didn't shut up sparse: it made the result not parse as valid C at all,
since the end result now has a label with no statement.

The proper fix is to just always lock the hardware, the same way Bart
did in commit 8ae178760b ("scsi: qla2xxx: Simplify the functions for
dumping firmware").  That avoids the whole problem with having locking
that is not statically obvious.

But in the meantime, just remove the incorrect attempt at trying to
avoid a sparse warning that just made things worse.

This was exposed by commit 3e6efab865 ("scsi: qla2xxx: Fix reset of
MPI firmware"), very similarly to how commit cbb01c2f2f ("scsi:
qla2xxx: Fix MPI failure AEN (8200) handling") exposed the same problem
in another place, and caused that commit 8ae178760b.

Please don't add code to just shut up sparse without actually fixing
what sparse complains about.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Reported-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Arun Easi <aeasi@marvell.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7243126a46da8cf144a71907781594ddd137d190
2020-10-28 15:11:57 +01:00
Matthew Wilcox (Oracle) faa1298f20 FROMLIST: cachefiles: Handle readpage error correctly
If ->readpage returns an error, it has already unlocked the page.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Fixes: 5e929b33c3 ("CacheFiles: Handle truncate unlocking the page we're reading")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I18814ade2a1b989bda4b732bf6bacecf4ad1b9a3
2020-10-28 15:11:54 +01:00
Eric Biggers e5369983d9 FROMLIST: crypto: x86/poly1305 - add back a needed assignment
One of the assignments that was removed by commit 4a0c1de64b ("crypto:
x86/poly1305 - Remove assignments with no effect") is actually needed,
since it affects the return value.

This fixes the following crypto self-test failure:

    alg: shash: poly1305-simd test failed (wrong result) on test vector 2, cfg="init+update+final aligned buffer"

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Fixes: 4a0c1de64b ("crypto: x86/poly1305 - Remove assignments with no effect")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ifd01e3694adb618091fa1c1646d677a93382152b
2020-10-28 15:11:33 +01:00
Greg Kroah-Hartman a01c54a900 Revert "Revert "fs: Allow a NULL pos pointer to __kernel_read""
This reverts commit aeffda3c61.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I433aead8411131865de1cff8957d4708009142ba
2020-10-28 15:08:54 +01:00
Greg Kroah-Hartman a3cb2e4ce4 Revert "Revert "fs: Allow a NULL pos pointer to __kernel_write""
This reverts commit e4a15e8dac.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I27032f9ebe8fcddd98416ddabe34f554db545eae
2020-10-28 15:08:52 +01:00
Greg Kroah-Hartman 6f0863e73b Revert "Revert "powerpc: remove address space overrides using set_fs()""
This reverts commit d95203169d.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I4896b9f5b686b8d304cf8b0df19c6cc101acdb31
2020-10-28 15:08:51 +01:00
Greg Kroah-Hartman b944c1ab80 Revert "Revert "powerpc: use non-set_fs based maccess routines""
This reverts commit ac71b64338.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9643080afbb88edfdfe20115d0873f877d4a5ee9
2020-10-28 15:08:49 +01:00
Greg Kroah-Hartman 3dd622bc4a Revert "Revert "x86: remove address space overrides using set_fs()""
This reverts commit c0ae11b3ca.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8a493e80b7e251f37820035d69998f7c135a4687
2020-10-28 15:08:48 +01:00
Greg Kroah-Hartman 03bb1dcf06 Revert "Revert "x86: make TASK_SIZE_MAX usable from assembly code""
This reverts commit a8946b754a.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I0a381d1ef2ae3d99b78bd093714e3c557edf9438
2020-10-28 15:08:46 +01:00
Greg Kroah-Hartman 456878d6ce Revert "Revert "x86: move PAGE_OFFSET, TASK_SIZE & friends to page_{32,64}_types.h""
This reverts commit 6e15a77ff6.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8c2c3467db493d28349a7914c9419d971cc9021d
2020-10-28 15:08:43 +01:00
Greg Kroah-Hartman bc23c45e6b Revert "Revert "lkdtm: remove set_fs-based tests""
This reverts commit 86ca9b3172.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id0d37898ed807f1f3419333f8f5906a01f602fc4
2020-10-28 15:08:42 +01:00
Greg Kroah-Hartman e17f21cfe9 Revert "Revert "test_bitmap: remove user bitmap tests""
This reverts commit 8532066623.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Idde5eff5a2f26835de9baa09f0599aa85666d36a
2020-10-28 15:08:41 +01:00
Greg Kroah-Hartman 964f595e69 Revert "Revert "uaccess: add infrastructure for kernel builds with set_fs()""
This reverts commit e47ed07310.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I6ea54389dffe53bd903ade11314a77668d10a014
2020-10-28 15:08:39 +01:00
Greg Kroah-Hartman fb5c9b8aac Revert "Revert "fs: don't allow splice read/write without explicit ops""
This reverts commit 6a0e0ecdd4.

Bug: 171770067
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I796a9872e32f750c9058d04f0faf408c541fac94
2020-10-28 15:08:28 +01:00
Greg Kroah-Hartman 4d28c4fd93 Merge eee4e23099 ("Merge branch 'base.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs into for-next") into android-mainline
Steps on the way to 5.10-rc1

Change-Id: I441467780164e997dc98c96633bc0de3c6b48771
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2020-10-28 08:59:21 +01:00
Quentin Perret 9da1f37103 ANDROID: cpu: Don't prevent hotplug from DL/BATCH/IDLE
Commit c6e5f9d7cf ("ANDROID: cpu-hotplug: Always use real time
scheduling when hotplugging a CPU") tried to speed-up hotplug of
SCHED_NORMAL tasks by temporarily elevating them to SCHED_FIFO. But
while at it, it also prevented hotplug from SCHED_IDLE, SCHED_BATCH or
SCHED_DEADLINE for no apparent reason.

Since this is a userspace-visible change, and is unlikely to actually be
needed, change the patch logic to only optimize for SCHED_NORMAL tasks
and leave the others untouched.

Bug: 169238689
Fixes: c6e5f9d7cf ("ANDROID: cpu-hotplug: Always use real time
scheduling when hotplugging a CPU")
Signed-off-by: Quentin Perret <qperret@google.com>
Change-Id: I4d9e88b15fee56e7d234826e2eaea306a69328bb
2020-10-28 07:02:08 +00:00
Georgi Djakov d8d3d3b4db FROMLIST: interconnect: qcom: sdm845: Enable keepalive for the MM1 BCM
After enabling interconect scaling for display on the db845c board,
in certain configurations the board hangs, while the following errors
are observed on the console:

  Error sending AMC RPMH requests (-110)
  qcom_rpmh TCS Busy, retrying RPMH message send: addr=0x50000
  qcom_rpmh TCS Busy, retrying RPMH message send: addr=0x50000
  qcom_rpmh TCS Busy, retrying RPMH message send: addr=0x50000
  ...

In this specific case, the above is related to one of the sequencers
being stuck, while client drivers are returning from probe and trying
to disable the currently unused clock and interconnect resources.
Generally we want to keep the multimedia NoC enabled like the rest of
the NoCs, so let's set the keepalive flag on it too.

Fixes: aae57773fb ("interconnect: qcom: sdm845: Split qnodes into their respective NoCs")
Reported-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Link: https://lore.kernel.org/lkml/20201012194034.26944-1-georgi.djakov@linaro.org/
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I0935e68947919c6a7d38bada810f9e8ed3f61604
2020-10-28 00:46:27 +00:00
John Stultz 2a55998a42 ANDROID: dts: Align sdm845 dts files with upstream
We'll want to take the dts changes that landed upstream
in 5.10-rc1, so backout the current delta in android-mainline
and align it to match upstream as of commit 45fe605832
("Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc")

Fixes: f2ddade04b ("ANDROID: lt9611: Sync w/ Vinod's most recent lt9611 patches which enable HDMI audio")
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I93f76c6bbdf465bdfe40067445e47a8e3b3c23cd
2020-10-28 00:44:16 +00:00
Eric Biggers b691cb35d3 ANDROID: scsi: ufs: fix more bad merge resolutions with custom sg entry size
Fix bad merge resolutions between Android-specific commit 8de80df7d7
("ANDROID: scsi: ufs: allow ufs variants to override sg entry size")
and the following upstream commits:

- commit 26f968d7de ("scsi: ufs: Introduce UFSHCD_QUIRK_PRDT_BYTE_GRAN quirk")
- commit cc770ce34a ("scsi: ufs: Make ufshcd_print_trs() consider UFSHCD_QUIRK_PRDT_BYTE_GRAN")

This should be folded into
ANDROID-scsi-ufs-allow-ufs-variants-to-override-sg-entry-size.patch.

Fixes: 2c136de302 ("Merge 86cfccb669 ("Merge tag 'dlm-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm") into android-mainline")
Fixes: 22a7eefbeb ("Merge 55e0500eb5 ("Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi") into android-mainline")
Bug: 162257402
Change-Id: I3a2f1f5b6df43028dde248b9a932f5595dd13e21
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-10-27 23:28:41 +00:00
Sudarshan Rajagopalan f48c81611c ANDROID: gki_defconfig: Enable memory hotplug
With the support for memory hotplug and hotremove fully functional,
and having configs ARCH_ENABLE_MEMORY_HOTPLUG and
ARCH_ENABLE_MEMORY_HOTREMOVE enabled by default for x86 targets,
enable config MEMORY_HOTPLUG and MEMORY_HOTREMOVE.

Bug: 170202777
Change-Id: I09b8768a3116ba53144c9f9890b6471106bcfa22
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2020-10-27 21:43:52 +00:00
Sudarshan Rajagopalan 4bce87919f ANDROID: gki_defconfig: Enable CONFIG_MEMORY_HOTREMOVE
With the support for memory hotplug and hotremove fully
functional, and having configs ARCH_ENABLE_MEMORY_HOTPLUG
and ARCH_ENABLE_MEMORY_HOTREMOVE enabled by default for
arm64 targets, enable config MEMORY_HOTREMOVE.

Bug: 170202777
Change-Id: I618dfeeb3f0f4f2c347e6f6424303725bf15e461
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2020-10-27 21:43:41 +00:00
Maheshwar Ajja 1d74cced13 ANDROID: Kconfig.gki: Enable media controller configs
Enable below media controller configs

V4L2_MEM2MEM_DEV
MEDIA_CONTROLLER
MEDIA_CONTROLLER_REQUEST_API

Bug: 171224361
Change-Id: Ie36e1bdf2008732e10ecd82899cd1a7bb3098156
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
2020-10-27 20:37:04 +00:00
Nick Desaulniers cf67471ced ANDROID: clang: update to 11.0.5
Bug: 170775238
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: Ibf405b519d406c58a25f4a765c6ba2d6f1bae50f
2020-10-27 11:22:40 -07:00
Greg Kroah-Hartman 7f20975b90 Revert "arm64: dts: qcom: sdm845-db845c: Fix hdmi nodes"
This reverts commit bca4339bda.

It causes build breakage in the db845c_gki_defconfig

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I4c73e66f0a89cf3ed96fd67b49c9103f35db0e8a
2020-10-27 13:14:27 +01:00
Greg Kroah-Hartman dba28ed467 Merge 45fe605832 ("Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc") into android-mainline
Steps on the way to 5.10-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Icb74220e749f8da18b6fa8cb4e626e43e2d69931
2020-10-27 11:54:50 +01:00
Greg Kroah-Hartman 460adfb499 Merge e731f3146f ("Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc") into android-mainline
Steps on the way to 5.10-rc1

Resolves conflicts with:
	drivers/tty/serial/Kconfig

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I346cc0d7065f68a65fa5ba07911999aca0b01a15
2020-10-27 11:50:07 +01:00
Greg Kroah-Hartman c8a1a1d5df ANDROID: GKI: Drop CONFIG_POWER_AVS from arm64 gki_defconfig
Commit bca815d620 ("PM: AVS: smartreflex Move driver to soc specific
drivers") dropped the CONFIG_POWER_AVS configuration option, so it also
needs to be dropped from the arm64 gki_defconfig so that the build
continues to work.

Fixes: bca815d620 ("PM: AVS: smartreflex Move driver to soc specific drivers")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie437bf0dc6977dd58caffb1349186d16873798c9
2020-10-27 11:48:25 +01:00
Greg Kroah-Hartman 79c83f152b Merge 1f70935f63 ("Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc") into android-mainline
Steps on the way to 5.10-rc1

Resolves conflicts in:
	Documentation/admin-guide/sysctl/vm.rst

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ic58f28718f28dae42948c935dfb0c62122fe86fc
2020-10-27 11:47:16 +01:00