Commit Graph

979126 Commits

Author SHA1 Message Date
wangchenggang
f502bc761a ANDROID: GKI: Update symbols to symbol list
Update symbols to symbol list externed by oem modules.

Leaf changes summary: 0 artifact changed (1 filtered out)
Changed leaf types summary: 0 (1 filtered out) leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added
function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added
variable

Bug: 191844515

Change-Id: Ifbf1d9bdf30bac43342ae8987aba0d937657d983
Signed-off-by: Chenggang Wang <wangchenggang@vivo.com>
Signed-off-by: wangchenggang <11061793@bbktel.com>
2021-06-23 23:39:48 +00:00
Qais Yousef
4198bdb2cf ANDROID: coresight: Update ETE DT yaml file
Update ETE yaml file to bring it inline with upstream.

The change is minor and updates the ports property.

Bug: 174685394
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: Ia5bb2ddcbdfa171e998f4f023a0a164ac14f5dd3
2021-06-23 22:48:24 +00:00
Qais Yousef
6f1bd7583f ANDROID: coresight: Update ETE/TRBE to v6 merged upstream
Mark the buffer as truncated in irq + minor cleanups picked along the
way.

Bug: 174685394
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: I36111a14ef066b579a28c39e265f3d601a82e18a
2021-06-23 22:48:15 +00:00
Suzuki K Poulose
ce71010347 ANDROID: kvm: arm64: Clarify the comment for SPE save context
Make the comment in line with the upstream version.

Bug: 174685394
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: I8c239d37c96c0c8de1261df6d2a5a2defd43ccfb
2021-06-23 22:48:05 +00:00
Suzuki K Poulose
ee7e80c81b BACKPORT: arm64: KVM: Enable access to TRBE support for host
For a nvhe host, the EL2 must allow the EL1&0 translation
regime for TraceBuffer (MDCR_EL2.E2TB == 0b11). This must
be saved/restored over a trip to the guest. Also, before
entering the guest, we must flush any trace data if the
TRBE was enabled. And we must prohibit the generation
of trace while we are in EL1 by clearing the TRFCR_EL1.

For vhe, the EL2 must prevent the EL1 access to the Trace
Buffer.

The MDCR_EL2 bit definitions for TRBE are available here :

  https://developer.arm.com/documentation/ddi0601/2020-12/AArch64-Registers/

Bug: 174685394
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210405164307.1720226-8-suzuki.poulose@arm.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit a1319260bf)
[Conflict:
 - arch/arm64/kvm/debug.c
 - arch/arm64/kvm/hyp/nvhe/debug-sr.c

Trivial conflicts except for one  which tried to replce

	kvm_arm_setup_mdcr_el2(vcpu);

we rejected that hunk.]
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: I88316a7b2d7b7b23a01914a7de0a2898c4a66afa
2021-06-23 22:47:56 +00:00
Suzuki K Poulose
b6b0927eac BACKPORT: KVM: arm64: Move SPE availability check to VCPU load
At the moment, we check the availability of SPE on the given
CPU (i.e, SPE is implemented and is allowed at the host) during
every guest entry. This can be optimized a bit by moving the
check to vcpu_load time and recording the availability of the
feature on the current CPU via a new flag. This will also be useful
for adding the TRBE support.

Bug: 174685394
Cc: Marc Zyngier <maz@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Alexandru Elisei <Alexandru.Elisei@arm.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210405164307.1720226-7-suzuki.poulose@arm.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit d2602bb4f5)
[Conflict in: arch/arm64/kvm/hyp/nvhe/debug-sr.c
Trivial conflict because of an additional __debug_save_trace() call
since a previous version of the series was backported already.]
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: I4ca2bb14f7b647a1e118ea4a8c4313154a482685
2021-06-23 22:47:43 +00:00
Suzuki K Poulose
dde40c1089 UPSTREAM: KVM: arm64: Handle access to TRFCR_EL1
Rather than falling to an "unhandled access", inject add an explicit
"undefined access" for TRFCR_EL1 access from the guest.

Bug: 174685394
Cc: Marc Zyngier <maz@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210405164307.1720226-6-suzuki.poulose@arm.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
(cherry picked from commit cc427cbb15)
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Change-Id: If0efe01af21894ed29cb85338f802ac1f6a194fc
2021-06-23 22:47:18 +00:00
Orson Zhai
ee682ec766 ANDROID: GKI: Enable ARCH_SPRD and SPRD_TIMER
Add SPRD_TIMER config into GKI for the same reason as other vendors have
described before.

Bug: 188373235
Change-Id: I70f1296f11759d9010252a52a88f9329744172f6
Signed-off-by: Orson Zhai <orson.zhai@unisoc.com>
2021-06-23 22:42:07 +00:00
Tor Vic
39147716e8 UPSTREAM: x86, lto: Pass -stack-alignment only on LLD < 13.0.0
Since LLVM commit 3787ee4, the '-stack-alignment' flag has been dropped
[1], leading to the following error message when building a LTO kernel
with Clang-13 and LLD-13:

    ld.lld: error: -plugin-opt=-: ld.lld: Unknown command line argument
    '-stack-alignment=8'.  Try 'ld.lld --help'
    ld.lld: Did you mean '--stackrealign=8'?

It also appears that the '-code-model' flag is not necessary anymore
starting with LLVM-9 [2].

Drop '-code-model' and make '-stack-alignment' conditional on LLD < 13.0.0.

These flags were necessary because these flags were not encoded in the
IR properly, so the link would restart optimizations without them. Now
there are properly encoded in the IR, and these flags exposing
implementation details are no longer necessary.

[1] https://reviews.llvm.org/D103048
[2] https://reviews.llvm.org/D52322

Cc: stable@vger.kernel.org
Link: https://github.com/ClangBuiltLinux/linux/issues/1377
Signed-off-by: Tor Vic <torvic9@mailbox.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/f2c018ee-5999-741e-58d4-e482d5246067@mailbox.org
(cherry picked from commit 2398ce8015)
Change-Id: Icebcd5669e851e2c26e9f807b9d1aeb86e95dcea
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
2021-06-23 21:12:09 +00:00
Minchan Kim
7d3618b8b9 ANDROID: fix permission error of page_pinner
longterm_pinner/alloc_contig_failed should be 444
for reading for everyone and threshold/failure_traking
should be 644 to allow read/write root.

Bug: 191827366
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I5493c6ae6d39b692282e5428416da80a7d555aa0
2021-06-23 18:36:15 +00:00
Suren Baghdasaryan
cfe1f5aea6 ANDROID: gki_config: disable per-cgroup pressure tracking
Disable per-cgroup psi tracking to prevent unnecessary overhead since
Android does not use per-cgroup psi information.

Bug: 178872719
Bug: 191734423
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ic6f84630cd478139fb8cce00410163e4e767c86a
2021-06-23 18:35:42 +00:00
Suren Baghdasaryan
c7186c2c46 FROMGIT: cgroup: make per-cgroup pressure stall tracking configurable
PSI accounts stalls for each cgroup separately and aggregates it at each
level of the hierarchy. This causes additional overhead with psi_avgs_work
being called for each cgroup in the hierarchy. psi_avgs_work has been
highly optimized, however on systems with large number of cgroups the
overhead becomes noticeable.
Systems which use PSI only at the system level could avoid this overhead
if PSI can be configured to skip per-cgroup stall accounting.
Add "cgroup_disable=pressure" kernel command-line option to allow
requesting system-wide only pressure stall accounting. When set, it
keeps system-wide accounting under /proc/pressure/ but skips accounting
for individual cgroups and does not expose PSI nodes in cgroup hierarchy.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Link:  https://lore.kernel.org/patchwork/patch/1435705
(cherry picked from commit 3958e2d0c3
 https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git tj)

Bug: 178872719
Bug: 191734423
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ifc8fbc52f9a1131d7c2668edbb44c525c76c3360
2021-06-23 18:35:35 +00:00
Suren Baghdasaryan
0d054fc5d7 Revert "ANDROID: make per-cgroup PSI tracking configurable"
This reverts commit bd3983c8a8.

Bug: 178872719
Bug: 191734423
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Iae7997d518693f09fcc0bf8a3ee5caac6145ada5
2021-06-23 18:35:27 +00:00
Marc Zyngier
951bdfd077 FROMLIST: arm: Mark the recheduling IPI as raw interrupt
Flag the rescheduling IPI as 'raw', making sure such interrupt
skips both tick management  and irqtime accounting.

Bug: 191808738
Link: https://lore.kernel.org/lkml/20201124141449.572446-5-maz@kernel.org/
Change-Id: Ia9c2b989621eef6f49a1c30a08302a448ae286e6
Signed-off-by: Marc Zyngier <maz@kernel.org>
[minor port to 5.10]
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2021-06-23 18:12:27 +00:00
Marc Zyngier
42f775df72 FROMLIST: arm64: Mark the recheduling IPI as raw interrupt
Flag the rescheduling IPI as 'raw', making sure such interrupt
skips both tick management  and irqtime accounting.

Bug: 191808738
Link: https://lore.kernel.org/lkml/20201124141449.572446-4-maz@kernel.org/
Change-Id: Ibeda817de7618a98d457d09a6fa7e54f867b72f0
Signed-off-by: Marc Zyngier <maz@kernel.org>
[minor port to 5.10]
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2021-06-23 18:12:13 +00:00
Marc Zyngier
3f9d45d802 FROMLIST: genirq: Allow an interrupt to be marked as 'raw'
Some interrupts (such as the rescheduling IPI) rely on not going through
the irq_enter()/irq_exit() calls. To distinguish such interrupts, add
a new IRQ flag that allows the low-level handling code to sidestep the
enter()/exit() calls.

Only the architecture code is expected to use this. It will do the wrong
thing on normal interrupts. Note that this is a band-aid until we can
move to some more correct infrastructure (such as kernel/entry/common.c).

Bug: 191808738
Link: https://lore.kernel.org/lkml/20201124141449.572446-3-maz@kernel.org/
Change-Id: I0609a8b689219ba9e769c8b9f7fcf1e77a0ff1ca
Signed-off-by: Marc Zyngier <maz@kernel.org>
[minor port to 5.10]
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2021-06-23 18:11:55 +00:00
Marc Zyngier
08327b9007 FROMLIST: genirq: Add __irq_modify_status() helper to clear/set special flags
Some arch-specific flags need to be set/cleared, but not exposed to
random device drivers. Introduce a new helper (__irq_modify_status())
that takes an arbitrary mask, and rewrite irq_modify_status() to use
this new helper.

No functionnal change.

Bug: 191808738
Link: https://lore.kernel.org/lkml/20201124141449.572446-5-maz@kernel.org/
Change-Id: I2c2c0d6599d0ab39fad22462bf4c87694362fba8
Signed-off-by: Marc Zyngier <maz@kernel.org>
[minor port to 5.10]
Signed-off-by: Stephen Dickey <dickey@codeaurora.org>
2021-06-23 18:11:38 +00:00
Rohan Sethi
77c9f446b6 ANDROID: GKI: Update abi_gki_aarch64_qcom list for shmem allocations
Add support for shmem allocations in kernel. Update allowed list with symbols
for the feature implementation.

Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 2 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

2 Added functions:

  [A] 'function struct file* shmem_file_setup(const char*,
					loff_t, unsigned long)

  [A] 'function struct page* shmem_read_mapping_page_gfp(
					struct address_space*, pgoff_t, gfp_t)

Bug: 191813051
Change-Id: I4ca5f36cfac146695b64739b426df71834789d9f
Signed-off-by: Rohan Sethi <rohsethi@codeaurora.org>
2021-06-23 17:51:48 +00:00
heshuai1
728626cb04 ANDROID: power: Add vendor hook to qos for GKI purpose.
Add the vendor hook to qos.c, because of some special cases related to
our feature. we add the hook at freq_qos_add_request and remove_request
to make sure we can go to our own qos process logic.

Bug: 187458531

Signed-off-by: heshuai1 <heshuai1@xiaomi.com>
Change-Id: I1fb8fd6134432ecfb44ad242c66ccd8280ab9b43
2021-06-23 14:36:23 +00:00
Bram Bonné
9d55580966 ANDROID: selinux: modify RTM_GETNEIGH{TBL}
Map the permission gating RTM_GETNEIGH/RTM_GETNEIGHTBL messages to a
new permission so that it can be distinguished from the other netlink
route permissions in selinux policy. The new permission is triggered by
a flag set in system images T and up.

This change is intended to be backported to all kernels that a T system
image can run on top of.

Bug: 171572148
Test: atest NetworkInterfaceTest
Test: atest CtsSelinuxTargetSdkCurrentTestCases
Test: atest bionic-unit-tests-static
Test: On Cuttlefish, run combinations of:
    - Policy bit set or omitted (see https://r.android.com/1701847)
    - This patch applied or omitted
    - App having nlmsg_readneigh permission or not
  Verify that only the combination of this patch + the policy bit being
  set + the app not having the nlmsg_readneigh permission prevents the
  app from sending RTM_GETNEIGH messages.

Change-Id: I4bcfce4decb34ea9388eeedfc4be67403de8a980
Signed-off-by: Bram Bonné <brambonne@google.com>
(cherry picked from commit fac07550bd)
2021-06-23 14:06:26 +00:00
Chun-Hung Wu
6d9cb283f8 ANDROID: Update symbol list for mtk
1. Generated with:
  BUILD_CONFIG=out/build.config OUT_DIR=out ./build/build_abi.sh --update

Leaf changes summary: 1 artifact changed (1 filtered out)
Changed leaf types summary: 0 (1 filtered out) leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function void dma_run_dependencies(dma_async_tx_descriptor*)'

Bug: 191726929
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Change-Id: Id2ca2c5d64f6a4c2e15fea0b7617b19c30f2fec8
2021-06-23 06:19:23 +00:00
Chris Goldsworthy
fca37c251a ANDROID: dma-buf: Don't change vm_ops if vm_file changes
When CONFIG_DMABUF_SYSFS_STATS=y, dma_buf_do_mmap() will call a
dma-bufs mmap() callback before overriding the open() and close()
callbacks for the dma-buf's vm_operations_stuct, such that
dma_buf_vma_open() and dma_buf_vma_close() are used instead. Each of
the two aforementioend callbacks assumes that the vma->vm_file pointer
they use points to a dma-buf file.

However, it is possible that during the invocation of the dma-buf's
mmap() callback, that the vma->vm_file pointer changes to store
something other than a dma-buf file (it is permissible to do this so
long as certain conditions are met, see the callsite of call_mmap in
mm/mmap.c as of commit a2e00b4b5d ("FROMGIT: mm/slub: add taint
after the errors are printed"). This means that when
dma_buf_vma_open() and dma_buf_vma_close() run, that their accesses to
vma->vm_file will cease to be semantically valid.

Accordingly, only override the open() and close() vm_operations_struct
callbacks if a dma-buf's mmap() callback preserves the vma->vm_file
across the mmap() callback.

Bug: 191742286
Fixes: 9132fbe545 ("ANDROID: dmabuf: Add mmap_count to struct dmabuf")
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
Change-Id: I4f80ade7f0bc85e2cb9219478550dcb6bbb29f3e
2021-06-22 15:42:15 -07:00
Georgi Djakov
a2e00b4b5d FROMGIT: mm/slub: add taint after the errors are printed
When running the kernel with panic_on_taint, the usual slub debug error
messages are not being printed when object corruption happens.  That's
because we panic in add_taint(), which is called before printing the
additional information.  This is a bit unfortunate as the error messages
are actually very useful, especially before a panic.  Let's fix this by
moving add_taint() after the errors are printed on the console.

Link: https://lkml.kernel.org/r/1623860738-146761-1-git-send-email-quic_c_gdjako@quicinc.com
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Bug: 178973415
(cherry picked from commit f4e665120eb4 https://github.com/hnaz/linux-mm tags/v5.13-rc6-mmots-2021-06-16-22-17)
Change-Id: Id0ca1466ac570e0e9ac5f4f6b3e8b842d8d02d7c
Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
2021-06-22 19:10:07 +00:00
Zou Wei
e1b73b2abd FROMGIT: scsi: ufs: ufs-mediatek: Add missing of_node_put() in ufs_mtk_probe()
The function is missing a of_node_put() on node. Fix this by adding the
call before returning.

Bug: 191731858
Change-Id: I0fc3115cd736ecdf756a1c5fb71e615affc6ed04
(cherry picked from commit d8b34a32a4
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Link: https://lore.kernel.org/r/1623929522-4389-1-git-send-email-zou_wei@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
2021-06-22 16:26:59 +08:00
Peter Wang
127a7e28ad FROMGIT: scsi: ufs-mediatek: Create reset control device_link
Mediatek UFS reset function relies on Reset Control provided by
reset-ti-syscon. To make Mediatek Reset Control work properly, select
reset-ti-syscon to ensure it is being built.

In addition, establish device_link to wait until reset-ti-syscon
initialization is complete during UFS probing.

Bug: 191731858
Change-Id: I14f20e0a5ae5b2fed213db71729180dfe43d0034
(cherry picked from commit de48898d0c
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Link: https://lore.kernel.org/r/1622601720-22466-1-git-send-email-peter.wang@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
2021-06-22 16:25:25 +08:00
Stanley Chu
142bc470cd FROMGIT: scsi: ufs: ufs-mediatek: Fix HCI version in some platforms
Some MediaTek SoC platforms with UFSHCI version below 3.0 have incorrect
UFSHCI versions showed in register map.

Fix the version by referring to UniPro version which is always correct.

Bug: 191731858
Change-Id: Ieecc7ceae57682a0a698e668b4d1a2c386e11860
(cherry picked from commit 2c89e41326
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.13/scsi-fixes)
Link: https://lore.kernel.org/r/20210531062642.12642-1-stanley.chu@mediatek.com
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
2021-06-22 16:22:10 +08:00
Alice.Chao
bb105230c4 FROMGIT: scsi: ufs: ufs-mediatek: Disable HCI before HW reset
MediaTek ufshci needs to be disabled before HW reset to avoid potential
issues.

Bug: 191731858
Change-Id: Ie8c9789ef05105923ca2039d38da3b1a1db0932d
(cherry picked from commit f9c602f3bd
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Link: https://lore.kernel.org/r/20210528033624.12170-3-alice.chao@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Alice.Chao <alice.chao@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
2021-06-22 16:21:59 +08:00
Alice.Chao
0f44c7edbc FROMGIT: scsi: ufs: core: Export ufshcd_hba_stop()
Export ufshcd_hba_stop() to allow vendors to disable HCI in variant ops.

Bug: 191731858
Change-Id: I301836f74444a4def4483ae4a1c2105839a9ec85
(cherry picked from commit 3a95f5b392
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Link: https://lore.kernel.org/r/20210528033624.12170-2-alice.chao@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Alice.Chao <alice.chao@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
2021-06-22 16:20:40 +08:00
Elliot Berman
91843b55b4 ANDROID: abi_gki_aarch64_qcom: Add scheduler symbols
Add scheduler symbols to abi_gki_aarch64_qcom:

 - sched_trace_rd_span
 - __traceiter_sched_overutilized_tp
 - __tracepoint_Sched_overutilized_tp

Bug: 191692644
Change-Id: I70fc1db8c28e65612a34360d213b1c108246a73c
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2021-06-22 00:45:17 +00:00
xieliujie
143148444d FROMLIST: staging: android: ashmem: add size field in procfs fdinfo
add this information to help user to find ashmem problem.

ashmem leak scenario:
-000|fd = ashmem_create_region
-001|mmap and pagefault
-002|munmap
-003|forget close(fd) <---- which lead to ashmem leak

Link: https://lore.kernel.org/patchwork/patch/1448571
Bug: 191291741
Signed-off-by: liuhailong <liuhailong@oppo.com>
Signed-off-by: xieliujie <xieliujie@oppo.com>
Change-Id: I68ac5a42357eff11056c9ed1207da07fefbea77d
2021-06-22 00:10:03 +00:00
Taniya Das
2f30bf7d8c ANDROID: ABI: Update allowed list for QCOM
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function void cpufreq_cooling_unregister(thermal_cooling_device*)'

Bug: 191105257

Change-Id: I27ec59360fb568968459a23d7fe785516c396345
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2021-06-21 17:16:22 +05:30
Lopy Cheng
973a19f620 ANDROID: Update the ABI representation
Leaf changes summary: 1 artifact changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

1 Added function:

  [A] 'function int drm_atomic_helper_disable_all(drm_device*, drm_modeset_acquire_ctx*)'

Bug: 143292884
Signed-off-by: Lopy Cheng <lopycheng@google.com>
Change-Id: I2fb949f98c9ed9e9495700e3c85992eccf1bd03b
2021-06-21 11:16:30 +08:00
Chun-Hung Wu
55d7c4eca6 ANDROID: Update symbol list for mtk
1. Generated with:
  BUILD_CONFIG=out/build.config OUT_DIR=out ./build/build_abi.sh --update

Leaf changes summary: 79 artifacts changed (1 filtered out)
Changed leaf types summary: 0 (1 filtered out) leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 57 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 22 Added variables

57 Added functions:

  [A] 'function int __traceiter_android_rvh_dequeue_task_fair(void*, rq*, task_struct*, int)'
  [A] 'function int __traceiter_android_rvh_enqueue_task_fair(void*, rq*, task_struct*, int)'
  [A] 'function int __traceiter_android_vh_commit_creds(void*, const task_struct*, const cred*)'
  [A] 'function int __traceiter_android_vh_exit_creds(void*, const task_struct*, const cred*)'
  [A] 'function int __traceiter_android_vh_iommu_alloc_iova(void*, device*, dma_addr_t, size_t)'
  [A] 'function int __traceiter_android_vh_iommu_free_iova(void*, dma_addr_t, size_t)'
  [A] 'function int __traceiter_android_vh_override_creds(void*, const task_struct*, const cred*)'
  [A] 'function int __traceiter_android_vh_prepare_update_load_avg_se(void*, sched_entity*, int)'
  [A] 'function int __traceiter_android_vh_revert_creds(void*, const task_struct*, const cred*)'
  [A] 'function int __traceiter_android_vh_selinux_avc_insert(void*, const avc_node*)'
  [A] 'function int __traceiter_android_vh_selinux_avc_lookup(void*, const avc_node*, u32, u32, u16)'
  [A] 'function int __traceiter_android_vh_selinux_avc_node_delete(void*, const avc_node*)'
  [A] 'function int __traceiter_android_vh_selinux_avc_node_replace(void*, const avc_node*, const avc_node*)'
  [A] 'function int __traceiter_android_vh_selinux_is_initialized(void*, const selinux_state*)'
  [A] 'function int __traceiter_android_vh_set_memory_nx(void*, unsigned long int, int)'
  [A] 'function int __traceiter_android_vh_set_memory_ro(void*, unsigned long int, int)'
  [A] 'function int __traceiter_android_vh_set_memory_rw(void*, unsigned long int, int)'
  [A] 'function int __traceiter_android_vh_set_memory_x(void*, unsigned long int, int)'
  [A] 'function int __traceiter_android_vh_set_module_permit_after_init(void*, const module*)'
  [A] 'function int __traceiter_android_vh_set_module_permit_before_init(void*, const module*)'
  [A] 'function int __traceiter_sched_update_nr_running_tp(void*, rq*, int)'
  [A] 'function int component_add_typed(device*, const component_ops*, int)'
  [A] 'function void component_match_add_typed(device*, component_match**, int (device*, int, void*)*, void*)'
  [A] 'function iio_channel* devm_iio_channel_get_all(device*)'
  [A] 'function int dma_heap_bufferfd_alloc(dma_heap*, size_t, unsigned int, unsigned int)'
  [A] 'function void frame_vector_to_pfns(frame_vector*)'
  [A] 'function iio_poll_func* iio_alloc_pollfunc(typedef irqreturn_t (int, void*)*, typedef irqreturn_t (int, void*)*, int, iio_dev*, const char*, ...)'
  [A] 'function void iio_dealloc_pollfunc(iio_poll_func*)'
  [A] 'function void iio_trigger_notify_done(iio_trigger*)'
  [A] 'function void* ioremap_cache(phys_addr_t, size_t)'
  [A] 'function void irq_work_run()'
  [A] 'function int match_hex(substring_t*, int*)'
  [A] 'function int match_int(substring_t*, int*)'
  [A] 'function int match_token(char*, const match_token*, substring_t*)'
  [A] 'function media_link* media_create_intf_link(media_entity*, media_interface*, u32)'
  [A] 'function int media_create_pad_link(media_entity*, u16, media_entity*, u16, u32)'
  [A] 'function media_intf_devnode* media_devnode_create(media_device*, u32, u32, u32, u32)'
  [A] 'function void media_devnode_remove(media_intf_devnode*)'
  [A] 'function void media_entity_remove_links(media_entity*)'
  [A] 'function int media_pipeline_start(media_entity*, media_pipeline*)'
  [A] 'function void media_pipeline_stop(media_entity*)'
  [A] 'function ssize_t mipi_dsi_dcs_write(mipi_dsi_device*, u8, void*, size_t)'
  [A] 'function ssize_t mipi_dsi_generic_read(mipi_dsi_device*, void*, size_t, void*, size_t)'
  [A] 'function int perf_num_counters()'
  [A] 'function int regulator_get_current_limit_regmap(regulator_dev*)'
  [A] 'function int regulator_set_current_limit_regmap(regulator_dev*, int, int)'
  [A] 'function int snd_card_add_dev_attr(snd_card*, const attribute_group*)'
  [A] 'function int sprint_symbol_no_offset(char*, unsigned long int)'
  [A] 'function int typec_mux_set(typec_mux*, typec_mux_state*)'
  [A] 'function void v4l2_ctrl_request_complete(media_request*, v4l2_ctrl_handler*)'
  [A] 'function int v4l2_event_subdev_unsubscribe(v4l2_subdev*, v4l2_fh*, v4l2_event_subscription*)'
  [A] 'function int v4l2_subdev_link_validate(media_link*)'
  [A] 'function int v4l2_subdev_link_validate_default(v4l2_subdev*, media_link*, v4l2_subdev_format*, v4l2_subdev_format*)'
  [A] 'function int vb2_ioctl_prepare_buf(file*, void*, v4l2_buffer*)'
  [A] 'function bool vb2_request_object_is_buffer(media_request_object*)'
  [A] 'function void vb2_request_queue(media_request*)'
  [A] 'function int vb2_request_validate(media_request*)'

22 Added variables:

  [A] 'tracepoint __tracepoint_android_rvh_dequeue_task_fair'
  [A] 'tracepoint __tracepoint_android_rvh_enqueue_task_fair'
  [A] 'tracepoint __tracepoint_android_vh_commit_creds'
  [A] 'tracepoint __tracepoint_android_vh_exit_creds'
  [A] 'tracepoint __tracepoint_android_vh_iommu_alloc_iova'
  [A] 'tracepoint __tracepoint_android_vh_iommu_free_iova'
  [A] 'tracepoint __tracepoint_android_vh_override_creds'
  [A] 'tracepoint __tracepoint_android_vh_prepare_update_load_avg_se'
  [A] 'tracepoint __tracepoint_android_vh_revert_creds'
  [A] 'tracepoint __tracepoint_android_vh_selinux_avc_insert'
  [A] 'tracepoint __tracepoint_android_vh_selinux_avc_lookup'
  [A] 'tracepoint __tracepoint_android_vh_selinux_avc_node_delete'
  [A] 'tracepoint __tracepoint_android_vh_selinux_avc_node_replace'
  [A] 'tracepoint __tracepoint_android_vh_selinux_is_initialized'
  [A] 'tracepoint __tracepoint_android_vh_set_memory_nx'
  [A] 'tracepoint __tracepoint_android_vh_set_memory_ro'
  [A] 'tracepoint __tracepoint_android_vh_set_memory_rw'
  [A] 'tracepoint __tracepoint_android_vh_set_memory_x'
  [A] 'tracepoint __tracepoint_android_vh_set_module_permit_after_init'
  [A] 'tracepoint __tracepoint_android_vh_set_module_permit_before_init'
  [A] 'tracepoint __tracepoint_sched_update_nr_running_tp'
  [A] 'srcu_struct tracepoint_srcu'

Bug: 149040612
Change-Id: I00647a52436a6b45f49579032f86e7506f059381
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Signed-off-by: Sandeep Patil <sspatil@google.com>
2021-06-19 16:47:58 +08:00
Minchan Kim
46e579716d FROMGIT: selinux: use __GFP_NOWARN with GFP_NOWAIT
In the field, we have seen lots of allocation failure from the call path below.

06-03 13:29:12.999 1010315 31557 31557 W Binder  : 31542_2: page allocation failure: order:0, mode:0x800(GFP_NOWAIT), nodemask=(null),cpuset=background,mems_allowed=0
...
...
06-03 13:29:12.999 1010315 31557 31557 W Call trace:
06-03 13:29:12.999 1010315 31557 31557 W         : dump_backtrace.cfi_jt+0x0/0x8
06-03 13:29:12.999 1010315 31557 31557 W         : dump_stack+0xc8/0x14c
06-03 13:29:12.999 1010315 31557 31557 W         : warn_alloc+0x158/0x1c8
06-03 13:29:12.999 1010315 31557 31557 W         : __alloc_pages_slowpath+0x9d8/0xb80
06-03 13:29:12.999 1010315 31557 31557 W         : __alloc_pages_nodemask+0x1c4/0x430
06-03 13:29:12.999 1010315 31557 31557 W         : allocate_slab+0xb4/0x390
06-03 13:29:12.999 1010315 31557 31557 W         : ___slab_alloc+0x12c/0x3a4
06-03 13:29:12.999 1010315 31557 31557 W         : kmem_cache_alloc+0x358/0x5e4
06-03 13:29:12.999 1010315 31557 31557 W         : avc_alloc_node+0x30/0x184
06-03 13:29:12.999 1010315 31557 31557 W         : avc_update_node+0x54/0x4f0
06-03 13:29:12.999 1010315 31557 31557 W         : avc_has_extended_perms+0x1a4/0x460
06-03 13:29:12.999 1010315 31557 31557 W         : selinux_file_ioctl+0x320/0x3d0
06-03 13:29:12.999 1010315 31557 31557 W         : __arm64_sys_ioctl+0xec/0x1fc
06-03 13:29:12.999 1010315 31557 31557 W         : el0_svc_common+0xc0/0x24c
06-03 13:29:12.999 1010315 31557 31557 W         : el0_svc+0x28/0x88
06-03 13:29:12.999 1010315 31557 31557 W         : el0_sync_handler+0x8c/0xf0
06-03 13:29:12.999 1010315 31557 31557 W         : el0_sync+0x1a4/0x1c0
..
..
06-03 13:29:12.999 1010315 31557 31557 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:12.999 1010315 31557 31557 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:12.999 1010315 31557 31557 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:12.999 1010161 10686 10686 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:12.999 1010161 10686 10686 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:12.999 1010161 10686 10686 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:12.999 1010161 10686 10686 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:12.999 1010161 10686 10686 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:12.999 1010161 10686 10686 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:12.999 1010161 10686 10686 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:12.999 1010161 10686 10686 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:12.999 1010161 10686 10686 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:13.000 1010161 10686 10686 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:13.000 1010161 10686 10686 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:13.000 1010161 10686 10686 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:13.000 1010161 10686 10686 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:13.000 1010161 10686 10686 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:13.000 1010161 10686 10686 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:13.000 1010161 10686 10686 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:13.000 1010161 10686 10686 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:13.000 1010161 10686 10686 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:13.000 10230 30892 30892 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:13.000 10230 30892 30892 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0
06-03 13:29:13.000 10230 30892 30892 W node 0  : slabs: 57, objs: 2907, free: 0
06-03 13:29:13.000 10230 30892 30892 W SLUB    : Unable to allocate memory on node -1, gfp=0x900(GFP_NOWAIT|__GFP_ZERO)
06-03 13:29:13.000 10230 30892 30892 W cache   : avc_node, object size: 72, buffer size: 80, default order: 0, min order: 0

Based on [1], selinux is tolerate for failure of memory allocation.
Then, use __GFP_NOWARN together.

[1] 476accbe2f, selinux: use GFP_NOWAIT in the AVC kmem_caches
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Minchan Kim <minchan@google.com>
(cherry picked from commit 648f2c6100
 https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git for
 next)
Change-Id: I1d45e662363ace6131453f8854071e2ff018f445
Bug: 190615082
2021-06-18 11:01:08 -07:00
Sandeep Patil
53ccd64e35 ANDROID: GKI: 6/18/2021 KMI update
Set KMI_GENERATION=7 for 6/18 KMI update

Leaf changes summary: 2925 artifacts changed
Changed leaf types summary: 24 leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 2847 Changed, 3 Added functions
Removed/Changed/Added variables summary: 0 Removed, 51 Changed, 0 Added variable

3 Added functions:

  [A] 'function void pci_disable_sriov(pci_dev*)'
  [A] 'function int pci_enable_sriov(pci_dev*, int)'
  [A] 'function int pci_vfs_assigned(pci_dev*)'

2847 functions with some sub-type change:

  [C] 'function int __traceiter_android_vh_gic_resume(void*, irq_domain*, void*)' at gic.h:15:1 has some sub-type changes:
    CRC (modversions) changed from 0x79c6efed to 0xd99a1ac6
    parameter 3 of type 'void*' was removed
    parameter 2 of type 'irq_domain*' changed:
      pointer type changed from: 'irq_domain*' to: 'gic_chip_data*'

  [C] 'function void* PDE_DATA(const inode*)' at proc_fs.h:112:1 has some sub-type changes:
    CRC (modversions) changed from 0x121116eb to 0x1c3ef274

  [C] 'function void __ClearPageMovable(page*)' at compaction.c:138:1 has some sub-type changes:
    CRC (modversions) changed from 0xc952c645 to 0xdc28d620

  [C] 'function void __SetPageMovable(page*, address_space*)' at compaction.c:130:1 has some sub-type changes:
    CRC (modversions) changed from 0x6c94b8ab to 0xd7b7b883

  ... 2843 omitted; 2846 symbols have only CRC changes

51 Changed variables:

  [C] 'pglist_data contig_page_data' was changed at memblock.c:96:1:
    CRC (modversions) changed from 0x1f395adc to 0x7ce0db01
    type of variable changed:
      type size hasn't changed
      1 data member insertion:
        'bool proactive_compact_trigger', at offset 41152 (in bits) at mmzone.h:786:1
      there are data member changes:
        'unsigned long int totalreserve_pages' offset changed (by +64 bits)
      3752 impacted interfaces

  [C] 'bus_type amba_bustype' was changed at bus.c:215:1:
    CRC (modversions) changed from 0x1782f569 to 0x13c06cac

  [C] 'neigh_table arp_tbl' was changed at arp.c:152:1:
    CRC (modversions) changed from 0x832f8bb5 to 0x56697f62

  [C] 'const address_space_operations balloon_aops' was changed at balloon_compaction.c:253:1:
    CRC (modversions) changed from 0x31e6cab1 to 0xf0207a10

  ... 47 omitted; 50 symbols have only CRC changes

'struct dev_pm_qos_request at pm_qos.h:107:1' changed (indirectly):
  type size changed from 576 to 704 (in bits)
  there are data member changes:
    type 'union {plist_node pnode; pm_qos_flags_request flr; freq_qos_request freq;}' of 'dev_pm_qos_request::data' changed:
      type size changed from 448 to 576 (in bits)
      there are data member changes:
        type 'struct freq_qos_request' of '__anonymous_union__::freq' changed:
          type size changed from 448 to 576 (in bits)
          1 data member insertion:
            'u64 android_oem_data1[2]', at offset 448 (in bits) at pm_qos.h:96:1
          3755 impacted interfaces
    'device* dev' offset changed (by +128 bits)
  3752 impacted interfaces

'struct devfreq at devfreq.h:172:1' changed (indirectly):
  type size changed from 16512 to 16768 (in bits)
  there are data member changes:
    type 'struct dev_pm_qos_request' of 'devfreq::user_min_freq_req' changed, as reported earlier
    type 'struct dev_pm_qos_request' of 'devfreq::user_max_freq_req' changed, as reported earlier
    and offset changed from 9152 to 9280 (in bits) (by +128 bits)
    10 ('unsigned long int scaling_min_freq' .. 'notifier_block nb_max') offsets changed (by +256 bits)
  59 impacted interfaces

'struct driver_info at usbnet.h:94:1' changed:
  type size changed from 1152 to 1280 (in bits)
  2 data member insertions:
    'u64 android_kabi_reserved1', at offset 1152 (in bits) at usbnet.h:183:1
    'u64 android_kabi_reserved2', at offset 1216 (in bits) at usbnet.h:184:1
  10 impacted interfaces

'struct freq_qos_request at pm_qos.h:92:1' changed:
  details were reported earlier

'struct hc_driver at hcd.h:249:1' changed:
  type size changed from 2880 to 3136 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 2880 (in bits) at hcd.h:419:1
    'u64 android_kabi_reserved2', at offset 2944 (in bits) at hcd.h:420:1
    'u64 android_kabi_reserved3', at offset 3008 (in bits) at hcd.h:421:1
    'u64 android_kabi_reserved4', at offset 3072 (in bits) at hcd.h:422:1
  43 impacted interfaces

'struct pci_dev at pci.h:310:1' changed:
  type size changed from 19328 to 24768 (in bits)
  3 data member insertions:
    'union {pci_sriov* sriov; pci_dev* physfn;}', at offset 24128 (in bits) at pci.h:479:1
    'u16 ats_cap', at offset 24192 (in bits) at pci.h:483:1
    'u8 ats_stu', at offset 24208 (in bits) at pci.h:484:1
  there are data member changes:
    type 'resource[11]' of 'pci_dev::resource' changed:
      type name changed from 'resource[11]' to 'resource[17]'
      array type size changed from 8448 to 13056
      array type subrange 1 changed length from 11 to 17
    7 ('bool match_driver' .. 'int rom_attr_enabled') offsets changed (by +4608 bits)
    type 'bin_attribute*[11]' of 'pci_dev::res_attr' changed:
      type name changed from 'bin_attribute*[11]' to 'bin_attribute*[17]'
      array type size changed from 704 to 1088
      array type subrange 1 changed length from 11 to 17
    and offset changed from 17216 to 21824 (in bits) (by +4608 bits)
    type 'bin_attribute*[11]' of 'pci_dev::res_attr_wc' changed:
      type name changed from 'bin_attribute*[11]' to 'bin_attribute*[17]'
      array type size changed from 704 to 1088
      array type subrange 1 changed length from 11 to 17
    and offset changed from 17920 to 22912 (in bits) (by +4992 bits)
    2 ('const attribute_group** msi_irq_groups' .. 'pci_vpd* vpd') offsets changed (by +5376 bits)
    'u16 acs_cap' offset changed (by +5472 bits)
    8 ('phys_addr_t rom' .. 'u64 android_kabi_reserved4') offsets changed (by +5440 bits)
  426 impacted interfaces

'struct pglist_data at mmzone.h:729:1' changed:
  details were reported earlier

'struct snd_compr at compress_driver.h:146:1' changed:
  type size changed from 7168 to 7808 (in bits)
  3 data member insertions:
    'char id[64]', at offset 7136 (in bits) at compress_driver.h:157:1
    'snd_info_entry* proc_root', at offset 7680 (in bits) at compress_driver.h:158:1
    'snd_info_entry* proc_info_entry', at offset 7744 (in bits) at compress_driver.h:159:1
  70 impacted interfaces

'struct snd_pcm at pcm.h:509:1' changed (indirectly):
  type size changed from 15680 to 15808 (in bits)
  there are data member changes:
    'snd_pcm_str streams[2]' size changed from 13440 to 13568 (in bits) (by +128 bits)
    7 ('mutex open_mutex' .. 'bool no_device_suspend') offsets changed (by +128 bits)
  97 impacted interfaces

'struct snd_pcm_str at pcm.h:488:1' changed:
  type size changed from 6720 to 6784 (in bits)
  1 data member insertion:
    'snd_info_entry* proc_root', at offset 256 (in bits) at pcm.h:500:1
  there are data member changes:
    2 ('snd_kcontrol* chmap_kctl' .. 'device dev') offsets changed (by +64 bits)
  97 impacted interfaces

'struct snd_pcm_substream at pcm.h:442:1' changed:
  type size changed from 2944 to 3008 (in bits)
  1 data member insertion:
    'snd_info_entry* proc_root', at offset 2880 (in bits) at pcm.h:478:1
  97 impacted interfaces

'struct tcpm_port at tcpm.c:298:1' changed:
  type size changed from 99328 to 99520 (in bits)
  2 data member insertions:
    'u32 snk_vdo_v1[6]', at offset 8768 (in bits) at tcpm.c:405:1
    'unsigned int nr_snk_vdo_v1', at offset 8960 (in bits) at tcpm.c:406:1
  there are data member changes:
    8 ('u32 snk_vdo[6]' .. 'u32 supply_voltage') offsets changed (by +224 bits)
    32 ('power_supply* psy' .. 'u8* logbuffer[1024]') offsets changed (by +192 bits)
  17 impacted interfaces

'struct ufs_hba at ufshcd.h:720:1' changed:
  type size changed from 34176 to 35328 (in bits)
  1 data member insertion:
    'ufs_hba_monitor monitor', at offset 32320 (in bits) at ufshcd.h:866:1
  there are data member changes:
    5 ('ufs_crypto_capabilities crypto_capabilities' .. 'dentry* debugfs_root') offsets changed (by +1152 bits)
  37 impacted interfaces

'struct ufshcd_lrb at ufshcd.h:193:1' changed:
  type size hasn't changed
  1 data member deletion:
    'bool in_use', at offset 1096 (in bits) at ufshcd.h:221:1
  37 impacted interfaces

'struct urb at usb.h:1563:1' changed:
  type size changed from 1472 to 1728 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 1472 (in bits) at usb.h:1625:1
    'u64 android_kabi_reserved2', at offset 1536 (in bits) at usb.h:1626:1
    'u64 android_kabi_reserved3', at offset 1600 (in bits) at usb.h:1627:1
    'u64 android_kabi_reserved4', at offset 1664 (in bits) at usb.h:1628:1
  there are data member changes:
    'usb_iso_packet_descriptor iso_frame_desc[]' offset changed (by +256 bits)
  62 impacted interfaces

'struct usb_bus at usb.h:424:1' changed:
  type size changed from 1152 to 1408 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 1152 (in bits) at usb.h:480:1
    'u64 android_kabi_reserved2', at offset 1216 (in bits) at usb.h:481:1
    'u64 android_kabi_reserved3', at offset 1280 (in bits) at usb.h:482:1
    'u64 android_kabi_reserved4', at offset 1344 (in bits) at usb.h:483:1
  86 impacted interfaces

'struct usb_device at usb.h:631:1' changed:
  type size changed from 11456 to 11712 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 11456 (in bits) at usb.h:729:1
    'u64 android_kabi_reserved2', at offset 11520 (in bits) at usb.h:730:1
    'u64 android_kabi_reserved3', at offset 11584 (in bits) at usb.h:731:1
    'u64 android_kabi_reserved4', at offset 11648 (in bits) at usb.h:732:1
  86 impacted interfaces

'struct usb_driver at usb.h:1186:1' changed:
  type size changed from 2176 to 2432 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 2176 (in bits) at usb.h:1235:1
    'u64 android_kabi_reserved2', at offset 2240 (in bits) at usb.h:1236:1
    'u64 android_kabi_reserved3', at offset 2304 (in bits) at usb.h:1237:1
    'u64 android_kabi_reserved4', at offset 2368 (in bits) at usb.h:1238:1
  2 impacted interfaces

'struct usb_hcd at hcd.h:81:1' changed:
  type size changed from 4992 to 5504 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 5248 (in bits) at hcd.h:229:1
    'u64 android_kabi_reserved2', at offset 5312 (in bits) at hcd.h:230:1
    'u64 android_kabi_reserved3', at offset 5376 (in bits) at hcd.h:231:1
    'u64 android_kabi_reserved4', at offset 5440 (in bits) at hcd.h:232:1
  there are data member changes:
    type 'struct usb_bus' of 'usb_hcd::self' changed, as reported earlier
    27 ('kref' .. 'gen_pool* localmem_pool') offsets changed (by +256 bits)
    'unsigned long int hcd_priv[]' offset changed (by +512 bits)
  43 impacted interfaces

'struct usb_host_bos at usb.h:396:1' changed:
  type size changed from 384 to 640 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 384 (in bits) at usb.h:412:1
    'u64 android_kabi_reserved2', at offset 448 (in bits) at usb.h:413:1
    'u64 android_kabi_reserved3', at offset 512 (in bits) at usb.h:414:1
    'u64 android_kabi_reserved4', at offset 576 (in bits) at usb.h:415:1
  86 impacted interfaces

'struct usb_interface at usb.h:232:1' changed:
  type size changed from 7104 to 7360 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 7104 (in bits) at usb.h:262:1
    'u64 android_kabi_reserved2', at offset 7168 (in bits) at usb.h:263:1
    'u64 android_kabi_reserved3', at offset 7232 (in bits) at usb.h:264:1
    'u64 android_kabi_reserved4', at offset 7296 (in bits) at usb.h:265:1
  94 impacted interfaces

'struct usb_tt at hcd.h:554:1' changed:
  type size changed from 640 to 896 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 640 (in bits) at hcd.h:575:1
    'u64 android_kabi_reserved2', at offset 704 (in bits) at hcd.h:576:1
    'u64 android_kabi_reserved3', at offset 768 (in bits) at hcd.h:577:1
    'u64 android_kabi_reserved4', at offset 832 (in bits) at hcd.h:578:1
  86 impacted interfaces

'struct usbnet at usbnet.h:27:1' changed:
  type size changed from 5120 to 5376 (in bits)
  4 data member insertions:
    'u64 android_kabi_reserved1', at offset 5120 (in bits) at usbnet.h:89:1
    'u64 android_kabi_reserved2', at offset 5184 (in bits) at usbnet.h:90:1
    'u64 android_kabi_reserved3', at offset 5248 (in bits) at usbnet.h:91:1
    'u64 android_kabi_reserved4', at offset 5312 (in bits) at usbnet.h:92:1
  10 impacted interfaces

'struct vm_fault at mm.h:528:1' changed:
  type size changed from 1088 to 1216 (in bits)
  1 data member insertion:
    'u64 android_oem_data1[2]', at offset 1088 (in bits) at mm.h:576:1
  3752 impacted interfaces

Bug: 190227201
Signed-off-by: Sandeep Patil <sspatil@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1e308417a29408190a4deffa965edb454ca5c34d
2021-06-18 12:29:07 +00:00
heshuai1
c3fe3880d6 ANDROID: power: Add ANDROID_OEM_DATA_ARRAY in freq_qos_request.
add ANDROID_OEM_DATA_ARRAY for implement of oem gki.

Bug: 187458531

Signed-off-by: heshuai1 <heshuai1@xiaomi.com>
Change-Id: Ia4e4d8531d975a2d2172b1cf7a89889c7bd92913
2021-06-17 14:39:37 -07:00
qupanwang
cb99d1b88c ANDROID: gic: change gic resume vendor hook para
For get gic_data other var, So change gic resume vendor hook para to global struct gic_data

Bug: 189518432

Signed-off-by: panwang qu <qupanwang@xiaomi.com>
Change-Id: Ie6d949ffd19fbb35fbae6facaa886ec3c2e382f8
2021-06-17 14:39:37 -07:00
Peter Collingbourne
0c24ee770c BACKPORT: FROMGIT: kasan: disable freed user page poisoning with HW tags
Poisoning freed pages protects against kernel use-after-free. The
likelihood of such a bug involving kernel pages is significantly higher
than that for user pages. At the same time, poisoning freed pages can
impose a significant performance cost, which cannot always be justified
for user pages given the lower probability of finding a bug. Therefore,
disable freed user page poisoning when using HW tags. We identify
"user" pages via the flag set GFP_HIGHUSER_MOVABLE, which indicates
a strong likelihood of not being directly accessible to the kernel.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://linux-review.googlesource.com/id/I716846e2de8ef179f44e835770df7e6307be96c9
Link: https://lore.kernel.org/r/20210602235230.3928842-5-pcc@google.com
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit c275c5c6d5
 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/mte)
[pcc: adjust definition of new GFP flag for compatibility with GFP_CMA]
Change-Id: I716846e2de8ef179f44e835770df7e6307be96c9
Bug: 186816853
2021-06-17 14:39:37 -07:00
Peter Collingbourne
339a43c9bd BACKPORT: FROMGIT: arm64: mte: handle tags zeroing at page allocation time
Currently, on an anonymous page fault, the kernel allocates a zeroed
page and maps it in user space. If the mapping is tagged (PROT_MTE),
set_pte_at() additionally clears the tags. It is, however, more
efficient to clear the tags at the same time as zeroing the data on
allocation. To avoid clearing the tags on any page (which may not be
mapped as tagged), only do this if the vma flags contain VM_MTE. This
requires introducing a new GFP flag that is used to determine whether
to clear the tags.

The DC GZVA instruction with a 0 top byte (and 0 tag) requires
top-byte-ignore. Set the TCR_EL1.{TBI1,TBID1} bits irrespective of
whether KASAN_HW is enabled.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Co-developed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://linux-review.googlesource.com/id/Id46dc94e30fe11474f7e54f5d65e7658dbdddb26
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://lore.kernel.org/r/20210602235230.3928842-4-pcc@google.com
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit 013bb59dbb
 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/mte)
[pcc: adjust definition of new GFP flag for compatibility with GFP_CMA; rename TCR_KASAN_HW_FLAGS to TCR_MTE_FLAGS in the old location]
Change-Id: Id46dc94e30fe11474f7e54f5d65e7658dbdddb26
Bug: 186816853
2021-06-17 14:39:37 -07:00
Peter Collingbourne
3cb3beda6f FROMGIT: kasan: use separate (un)poison implementation for integrated init
Currently with integrated init page_alloc.c needs to know whether
kasan_alloc_pages() will zero initialize memory, but this will start
becoming more complicated once we start adding tag initialization
support for user pages. To avoid page_alloc.c needing to know more
details of what integrated init will do, move the unpoisoning logic
for integrated init into the HW tags implementation. Currently the
logic is identical but it will diverge in subsequent patches.

For symmetry do the same for poisoning although this logic will
be unaffected by subsequent patches.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://linux-review.googlesource.com/id/I2c550234c6c4a893c48c18ff0c6ce658c7c67056
Link: https://lore.kernel.org/r/20210602235230.3928842-3-pcc@google.com
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit 7a3b835371
 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/mte)
Change-Id: I2c550234c6c4a893c48c18ff0c6ce658c7c67056
Bug: 186816853
2021-06-17 14:39:37 -07:00
Lecopzer Chen
1773be5077 ANDROID: Add SND_VERBOSE_PROCFS for alsa framework
In-kernel alsa framework provides infomation by procfs for top layer
APPs and application can `cat /proc/...` to know the status.

And APPs will utilize these info to adjust their functionanilty

Bug: 189899353
Signed-off-by: Lecopzer Chen <lecopzer.chen@mediatek.com>
Change-Id: I89ea96073906725ae6d0308ea5d3d349ab2f1116
2021-06-17 14:39:37 -07:00
Can Guo
ae618c699c FROMGIT: scsi: ufs: Utilize Transfer Request List Completion Notification Register
By reading the UTP Transfer Request List Completion Notification Register,
which is added in UFSHCI Ver 3.0, SW can easily get the compeleted transfer
requests. Thus, SW can get rid of host lock, which is used to synchronize
the tr_doorbell and outstanding_reqs, on transfer requests dispatch and
completion paths. This can further benefit random read/write performance.

Link: https://lore.kernel.org/r/1621845419-14194-4-git-send-email-cang@codeaurora.org
Cc: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Co-developed-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 190637035
(cherry picked from commit 6f71517296
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging)
Change-Id: Ia76abaf40e3257c42b1e2b272b127552fbc79a81
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-06-17 14:39:37 -07:00
Can Guo
7613068f95 BACKPORT: FROMGIT: scsi: ufs: Optimize host lock on transfer requests send/compl paths
Current UFS IRQ handler is completely wrapped by host lock, and because
ufshcd_send_command() is also protected by host lock, when IRQ handler
fires, not only the CPU running the IRQ handler cannot send new requests,
the rest CPUs can neither. Move the host lock wrapping the IRQ handler into
specific branches, i.e., ufshcd_uic_cmd_compl(), ufshcd_check_errors(),
ufshcd_tmc_handler() and ufshcd_transfer_req_compl(). Meanwhile, to further
reduce occpuation of host lock in ufshcd_transfer_req_compl(), host lock is
no longer required to call __ufshcd_transfer_req_compl(). As per test, the
optimization can bring considerable gain to random read/write performance.

Link: https://lore.kernel.org/r/1621845419-14194-3-git-send-email-cang@codeaurora.org
Cc: Stanley Chu <stanley.chu@mediatek.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Co-developed-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 190637035
(cherry picked from commit a45f937110
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging)
[Can Guo: Resolved minor conflict in ufshcd.c and squashed with
commit eb783bb8bb picked from 5.14/scsi-staging]
Change-Id: I3e842d8bdaec700e11372b2293630bf864ec4929
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-06-17 14:39:36 -07:00
Caleb Connolly
bfcb3876f5 FROMGIT: scsi: ufs: qcom: Use ufshci_version() function
Replace the UFSHCI_VERSION_xy macros.

Link: https://lore.kernel.org/r/20210310153215.371227-3-caleb@connolly.tech
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 190637035
(cherry picked from commit 1d8613a23f
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging)
Change-Id: Ife086db4f8837bb7aa9fabf47e77cb5aea284903
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-06-17 14:39:36 -07:00
Caleb Connolly
641d850a48 FROMGIT: scsi: ufs: core: Use a function to calculate versions
Update the driver to use a function for referencing the UFS version.  This
replaces the UFSHCI_VERSION_xy macros, and supports comparisons where they
did not.

Link: https://lore.kernel.org/r/20210310153215.371227-2-caleb@connolly.tech
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 190637035
(cherry picked from commit 5142881801
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging)
Change-Id: I61a3f2faeddacdb0ae53255577c17392af4b7211
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-06-17 14:39:36 -07:00
Can Guo
a0679e6b5c FROMGIT: scsi: ufs: Remove a redundant command completion logic in error handler
ufshcd_host_reset_and_restore() anyways completes all pending requests
before starts re-probing, so there is no need to complete the command on
the highest bit in tr_doorbell in advance.

Link: https://lore.kernel.org/r/1621845419-14194-2-git-send-email-cang@codeaurora.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 190637035
(cherry picked from commit 1cca0c3fdc
 git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging)
Change-Id: Iabcf44f49119de956016e25c2be2f58324fac240
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-06-17 14:39:36 -07:00
Can Guo
53fa86c571 BACKPORT: FROMGIT: scsi: ufs: core: Introduce HBA performance monitor sysfs nodes
Add a new sysfs group which has nodes to monitor data/request transfer
performance. This sysfs group has nodes showing total sectors/requests
transferred, total busy time spent and max/min/avg/sum latencies. This
group can be enhanced later to show more UFS driver layer performance
statistics data during runtime.

Link: https://lore.kernel.org/r/1619058521-35307-2-git-send-email-cang@codeaurora.org
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Acked-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 190637035
(cherry picked from commit 1d8613a23f
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.14/scsi-staging)
[Can Guo: Resolved minor conflict in ufshcd.c]
Change-Id: Ibf5297304b2040bf2bb73131447a2a5916d95470
Signed-off-by: Can Guo <cang@codeaurora.org>
2021-06-17 14:39:36 -07:00
Greg Kroah-Hartman
fe4ba3ccfc ANDROID: GKI: USB: add Android ABI padding to some structures
To try to mitigate potential future USB api changes, add some padding to
the following structures:
	struct usb_interface
	struct usb_host_bos
	struct usb_bus
	struct usb_device
	struct usb_driver
	struct urb
	struct usb_hcd
	struct hc_driver
	struct usb_tt
	struct usbnet
	struct driver_info (for usbnet driver)

Based on a patch from Oliver Neukum <oneukum@suse.de> from the SLES
kernel.

Leaf changes summary: 10 artifacts changed
Changed leaf types summary: 10 leaf types changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

'struct driver_info at usbnet.h:94:1' changed:
  type size changed from 1152 to 1280 (in bits)
  2 data member insertions:
    'u64 driver_info::android_kabi_reserved1', at offset 1152 (in bits) at usbnet.h:183:1
    'u64 driver_info::android_kabi_reserved2', at offset 1216 (in bits) at usbnet.h:184:1
  10 impacted interfaces:

'struct hc_driver at hcd.h:249:1' changed:
  type size changed from 2880 to 3136 (in bits)
  4 data member insertions:
    'u64 hc_driver::android_kabi_reserved1', at offset 2880 (in bits) at hcd.h:419:1
    'u64 hc_driver::android_kabi_reserved2', at offset 2944 (in bits) at hcd.h:420:1
    'u64 hc_driver::android_kabi_reserved3', at offset 3008 (in bits) at hcd.h:421:1
    'u64 hc_driver::android_kabi_reserved4', at offset 3072 (in bits) at hcd.h:422:1
  16 impacted interfaces:

'struct urb at usb.h:1550:1' changed:
  type size changed from 1472 to 1728 (in bits)
  4 data member insertions:
    'u64 urb::android_kabi_reserved1', at offset 1472 (in bits) at usb.h:1613:1
    'u64 urb::android_kabi_reserved2', at offset 1536 (in bits) at usb.h:1614:1
    'u64 urb::android_kabi_reserved3', at offset 1600 (in bits) at usb.h:1615:1
    'u64 urb::android_kabi_reserved4', at offset 1664 (in bits) at usb.h:1616:1
  39 impacted interfaces:

'struct usb_bus at usb.h:424:1' changed:
  type size changed from 1024 to 1280 (in bits)
  4 data member insertions:
    'u64 usb_bus::android_kabi_reserved1', at offset 1024 (in bits) at usb.h:480:1
    'u64 usb_bus::android_kabi_reserved2', at offset 1088 (in bits) at usb.h:481:1
    'u64 usb_bus::android_kabi_reserved3', at offset 1152 (in bits) at usb.h:482:1
    'u64 usb_bus::android_kabi_reserved4', at offset 1216 (in bits) at usb.h:483:1
  54 impacted interfaces:

'struct usb_device at usb.h:631:1' changed:
  type size changed from 11712 to 11968 (in bits)
  4 data member insertions:
    'u64 usb_device::android_kabi_reserved1', at offset 11712 (in bits) at usb.h:728:1
    'u64 usb_device::android_kabi_reserved2', at offset 11776 (in bits) at usb.h:729:1
    'u64 usb_device::android_kabi_reserved3', at offset 11840 (in bits) at usb.h:730:1
    'u64 usb_device::android_kabi_reserved4', at offset 11904 (in bits) at usb.h:731:1
  54 impacted interfaces:

'struct usb_driver at usb.h:1183:1' changed:
  type size changed from 2432 to 2688 (in bits)
  4 data member insertions:
    'u64 usb_driver::android_kabi_reserved1', at offset 2432 (in bits) at usb.h:1232:1
    'u64 usb_driver::android_kabi_reserved2', at offset 2496 (in bits) at usb.h:1233:1
    'u64 usb_driver::android_kabi_reserved3', at offset 2560 (in bits) at usb.h:1234:1
    'u64 usb_driver::android_kabi_reserved4', at offset 2624 (in bits) at usb.h:1235:1
  4 impacted interfaces:

'struct usb_hcd at hcd.h:81:1' changed:
  type size changed from 4736 to 5248 (in bits)
  4 data member insertions:
    'u64 usb_hcd::android_kabi_reserved1', at offset 4992 (in bits) at hcd.h:229:1
    'u64 usb_hcd::android_kabi_reserved2', at offset 5056 (in bits) at hcd.h:230:1
    'u64 usb_hcd::android_kabi_reserved3', at offset 5120 (in bits) at hcd.h:231:1
    'u64 usb_hcd::android_kabi_reserved4', at offset 5184 (in bits) at hcd.h:232:1
  16 impacted interfaces:

'struct usb_host_bos at usb.h:396:1' changed:
  type size changed from 384 to 640 (in bits)
  4 data member insertions:
    'u64 usb_host_bos::android_kabi_reserved1', at offset 384 (in bits) at usb.h:412:1
    'u64 usb_host_bos::android_kabi_reserved2', at offset 448 (in bits) at usb.h:413:1
    'u64 usb_host_bos::android_kabi_reserved3', at offset 512 (in bits) at usb.h:414:1
    'u64 usb_host_bos::android_kabi_reserved4', at offset 576 (in bits) at usb.h:415:1
  54 impacted interfaces:

'struct usb_interface at usb.h:232:1' changed:
  type size changed from 7360 to 7616 (in bits)
  4 data member insertions:
    'u64 usb_interface::android_kabi_reserved1', at offset 7360 (in bits) at usb.h:262:1
    'u64 usb_interface::android_kabi_reserved2', at offset 7424 (in bits) at usb.h:263:1
    'u64 usb_interface::android_kabi_reserved3', at offset 7488 (in bits) at usb.h:264:1
    'u64 usb_interface::android_kabi_reserved4', at offset 7552 (in bits) at usb.h:265:1
  73 impacted interfaces:

'struct usbnet at usbnet.h:27:1' changed:
  type size changed from 4736 to 4992 (in bits)
  4 data member insertions:
    'u64 usbnet::android_kabi_reserved1', at offset 4736 (in bits) at usbnet.h:89:1
    'u64 usbnet::android_kabi_reserved2', at offset 4800 (in bits) at usbnet.h:90:1
    'u64 usbnet::android_kabi_reserved3', at offset 4864 (in bits) at usbnet.h:91:1
    'u64 usbnet::android_kabi_reserved4', at offset 4928 (in bits) at usbnet.h:92:1
  10 impacted interfaces:

Bug: 151154716
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Signed-off-by: Sandeep Patil <sspatil@google.com>
Change-Id: Ie9e246d9333ac70fc9cc2b0bf7cb466a8ffdb6de
2021-06-17 14:39:13 -07:00
Kyle Tso
531cba772c FROMGIT: usb: typec: tcpm: Introduce snk_vdo_v1 for SVDM version 1.0
The ID Header VDO and Product VDOs defined in USB PD Spec rev 2.0 and
rev 3.1 are quite different. Add an additional array snk_vdo_v1 and
send it as the response to the port partner if it only supports SVDM
version 1.0.

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210601123151.3441914-4-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7ac5051035
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1f1f95a4ef076b8a1b439ee6c9da6d779a6bca39
2021-06-17 14:17:55 -07:00
Chanho Park
e5474ff19b ANDROID: GKI: enable CONFIG_PCI_IOV=y
PCI_IOV[1] provides I/O virtualization for PCI devices which allows to
create virtual devices and to share a PCI device among VMs.
In order to support the feature from GKI kernel,
we need to enable PCI_IOV and PCI_ATS which is selected by PCI_IOV.

[1]: https://www.kernel.org/doc/html/latest/PCI/pci-iov-howto.html
Bug: 190460626
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Change-Id: I9fc883536083eaa935f207676d7b2ef8b9ec0b93
2021-06-17 14:17:29 -07:00