Commit Graph

862781 Commits

Author SHA1 Message Date
David Wu
594711af9f net: stmmac: Fixed mtu channged by cache aligned
[ Upstream commit 5b55299eed ]

Since the original mtu is not used when the mtu is updated,
the mtu is aligned with cache, this will get an incorrect.
For example, if you want to configure the mtu to be 1500,
but mtu 1536 is configured in fact.

Fixed: eaf4fac478 ("net: stmmac: Do not accept invalid MTU values")
Signed-off-by: David Wu <david.wu@rock-chips.com>
Link: https://lore.kernel.org/r/20210113034109.27865-1-david.wu@rock-chips.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:56 +01:00
Baptiste Lepers
6b676c4bd0 rxrpc: Call state should be read with READ_ONCE() under some circumstances
[ Upstream commit a95d25dd7b ]

The call state may be changed at any time by the data-ready routine in
response to received packets, so if the call state is to be read and acted
upon several times in a function, READ_ONCE() must be used unless the call
state lock is held.

As it happens, we used READ_ONCE() to read the state a few lines above the
unmarked read in rxrpc_input_data(), so use that value rather than
re-reading it.

Fixes: a158bdd324 ("rxrpc: Fix call timeouts")
Signed-off-by: Baptiste Lepers <baptiste.lepers@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/161046715522.2450566.488819910256264150.stgit@warthog.procyon.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:56 +01:00
Petr Machata
5fd803e108 net: dcb: Accept RTM_GETDCB messages carrying set-like DCB commands
[ Upstream commit df85bc140a ]

In commit 826f328e2b ("net: dcb: Validate netlink message in DCB
handler"), Linux started rejecting RTM_GETDCB netlink messages if they
contained a set-like DCB_CMD_ command.

The reason was that privileges were only verified for RTM_SETDCB messages,
but the value that determined the action to be taken is the command, not
the message type. And validation of message type against the DCB command
was the obvious missing piece.

Unfortunately it turns out that mlnx_qos, a somewhat widely deployed tool
for configuration of DCB, accesses the DCB set-like APIs through
RTM_GETDCB.

Therefore do not bounce the discrepancy between message type and command.
Instead, in addition to validating privileges based on the actual message
type, validate them also based on the expected message type. This closes
the loophole of allowing DCB configuration on non-admin accounts, while
maintaining backward compatibility.

Fixes: 2f90b8657e ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
Fixes: 826f328e2b ("net: dcb: Validate netlink message in DCB handler")
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/a3edcfda0825f2aa2591801c5232f2bbf2d8a554.1610384801.git.me@pmachata.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:56 +01:00
Petr Machata
3997f963f1 net: dcb: Validate netlink message in DCB handler
[ Upstream commit 826f328e2b ]

DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
the CAP_NET_ADMIN capability.

However, the operation to be performed is not decided from the DCB message
type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
reading DCB objects, the corresponding SET and DEL commands are used for
manipulation.

The assumption is that set-like commands will be sent via an RTM_SETDCB
message, and get-like ones via RTM_GETDCB. However, this assumption is not
enforced.

It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
capability by sending the corresponding command in an RTM_GETDCB message.
That is a bug. Fix it by validating the type of the request message against
the type used for the response.

Fixes: 2f90b8657e ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
Signed-off-by: Petr Machata <me@pmachata.org>
Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:56 +01:00
Willem de Bruijn
d4ede0a453 esp: avoid unneeded kmap_atomic call
[ Upstream commit 9bd6b629c3 ]

esp(6)_output_head uses skb_page_frag_refill to allocate a buffer for
the esp trailer.

It accesses the page with kmap_atomic to handle highmem. But
skb_page_frag_refill can return compound pages, of which
kmap_atomic only maps the first underlying page.

skb_page_frag_refill does not return highmem, because flag
__GFP_HIGHMEM is not set. ESP uses it in the same manner as TCP.
That also does not call kmap_atomic, but directly uses page_address,
in skb_copy_to_page_nocache. Do the same for ESP.

This issue has become easier to trigger with recent kmap local
debugging feature CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP.

Fixes: cac2661c53 ("esp4: Avoid skb_cow_data whenever possible")
Fixes: 03e2a30f6a ("esp6: Avoid skb_cow_data whenever possible")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Andrey Zhizhikin
eaf0f23329 rndis_host: set proper input size for OID_GEN_PHYSICAL_MEDIUM request
[ Upstream commit e56b3d94d9 ]

MSFT ActiveSync implementation requires that the size of the response for
incoming query is to be provided in the request input length. Failure to
set the input size proper results in failed request transfer, where the
ActiveSync counterpart reports the NDIS_STATUS_INVALID_LENGTH (0xC0010014L)
error.

Set the input size for OID_GEN_PHYSICAL_MEDIUM query to the expected size
of the response in order for the ActiveSync to properly respond to the
request.

Fixes: 039ee17d1b ("rndis_host: Add RNDIS physical medium checking into generic_rndis_bind()")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Link: https://lore.kernel.org/r/20210108095839.3335-1-andrey.zhizhikin@leica-geosystems.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Stefan Chulski
ba739c7533 net: mvpp2: Remove Pause and Asym_Pause support
[ Upstream commit 6f83802a1a ]

Packet Processor hardware not connected to MAC flow control unit and
cannot support TX flow control.
This patch disable flow control support.

Fixes: 3f518509de ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Acked-by: Marcin Wojtas <mw@semihalf.com>
Link: https://lore.kernel.org/r/1610306582-16641-1-git-send-email-stefanc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Manish Chopra
cb95e031bc netxen_nic: fix MSI/MSI-x interrupts
[ Upstream commit a2bc221b97 ]

For all PCI functions on the netxen_nic adapter, interrupt
mode (INTx or MSI) configuration is dependent on what has
been configured by the PCI function zero in the shared
interrupt register, as these adapters do not support mixed
mode interrupts among the functions of a given adapter.

Logic for setting MSI/MSI-x interrupt mode in the shared interrupt
register based on PCI function id zero check is not appropriate for
all family of netxen adapters, as for some of the netxen family
adapters PCI function zero is not really meant to be probed/loaded
in the host but rather just act as a management function on the device,
which caused all the other PCI functions on the adapter to always use
legacy interrupt (INTx) mode instead of choosing MSI/MSI-x interrupt mode.

This patch replaces that check with port number so that for all
type of adapters driver attempts for MSI/MSI-x interrupt modes.

Fixes: b37eb210c0 ("netxen_nic: Avoid mixed mode interrupts")
Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Link: https://lore.kernel.org/r/20210107101520.6735-1-manishc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Baptiste Lepers
4669452b4c udp: Prevent reuseport_select_sock from reading uninitialized socks
[ Upstream commit fd2ddef043 ]

reuse->socks[] is modified concurrently by reuseport_add_sock. To
prevent reading values that have not been fully initialized, only read
the array up until the last known safe index instead of incorrectly
re-reading the last index of the array.

Fixes: acdcecc612 ("udp: correct reuseport selection with connected sockets")
Signed-off-by: Baptiste Lepers <baptiste.lepers@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20210107051110.12247-1-baptiste.lepers@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
J. Bruce Fields
a08c2e586a nfsd4: readdirplus shouldn't return parent of export
commit 51b2ee7d00 upstream.

If you export a subdirectory of a filesystem, a READDIRPLUS on the root
of that export will return the filehandle of the parent with the ".."
entry.

The filehandle is optional, so let's just not return the filehandle for
".." if we're at the root of an export.

Note that once the client learns one filehandle outside of the export,
they can trivially access the rest of the export using further lookups.

However, it is also not very difficult to guess filehandles outside of
the export.  So exporting a subdirectory of a filesystem should
considered equivalent to providing access to the entire filesystem.  To
avoid confusion, we recommend only exporting entire filesystems.

Reported-by: Youjipeng <wangzhibei1999@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Arnd Bergmann
b14b19592c crypto: x86/crc32c - fix building with clang ias
commit 44623b2818 upstream.

The clang integrated assembler complains about movzxw:

arch/x86/crypto/crc32c-pcl-intel-asm_64.S:173:2: error: invalid instruction mnemonic 'movzxw'

It seems that movzwq is the mnemonic that it expects instead,
and this is what objdump prints when disassembling the file.

Fixes: 6a8ce1ef39 ("crypto: crc32c - Optimize CRC32C calculation with PCLMULQDQ instruction")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[jc: Fixed conflicts due to lack of 34fdce6981 ("x86: Change {JMP,CALL}_NOSPEC argument")]
Signed-off-by: Jian Cai <jiancai@google.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Mikulas Patocka
f9f5547bf0 dm integrity: fix flush with external metadata device
commit 9b5948267a upstream.

With external metadata device, flush requests are not passed down to the
data device.

Fix this by submitting the flush request in dm_integrity_flush_buffers. In
order to not degrade performance, we overlap the data device flush with
the metadata device flush.

Reported-by: Lukas Straub <lukasstraub2@web.de>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Will Deacon
189863162d compiler.h: Raise minimum version of GCC to 5.1 for arm64
commit dca5244d2f upstream.

GCC versions >= 4.9 and < 5.1 have been shown to emit memory references
beyond the stack pointer, resulting in memory corruption if an interrupt
is taken after the stack pointer has been adjusted but before the
reference has been executed. This leads to subtle, infrequent data
corruption such as the EXT4 problems reported by Russell King at the
link below.

Life is too short for buggy compilers, so raise the minimum GCC version
required by arm64 to 5.1.

Reported-by: Russell King <linux@armlinux.org.uk>
Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: <stable@vger.kernel.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20210105154726.GD1551@shell.armlinux.org.uk
Link: https://lore.kernel.org/r/20210112224832.10980-1-will@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
[will: backport to 4.19.y/5.4.y]
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Hamish Martin
f2a3a2a277 usb: ohci: Make distrust_firmware param default to false
commit c4005a8f65 upstream.

The 'distrust_firmware' module parameter dates from 2004 and the USB
subsystem is a lot more mature and reliable now than it was then.
Alter the default to false now.

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20200910212512.16670-2-hamish.martin@alliedtelesis.co.nz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:49:55 +01:00
Jon Lin
08e8386122 soc: rockchip: mtd_vendor_storage: Save the initialization result to flash
Change-Id: I7ae9dc6dd328680257922559e981cc9adf74b7ee
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-01-22 20:43:36 +08:00
Weixin Zhou
ab15d7f901 power: rk817-battery: move resume work to workqueue
Reduced resume elapsed time

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I074d86934537bc05f7d18f9eb62278d9a9053cdf
2021-01-22 20:13:01 +08:00
Shawn Lin
c296f63fe3 PCI: rockchip: dw: Fix unblance pm call for fake probe
We move all the probe stuff to kthread so that it won't block
the system to go on probing other drivers. But that introduced
it bug that PM calls would not be removed by driver core. We
trace back the platform driver to add PM callbacks if we really
detect active devices.

Fixes: 79ac46bdea ("PCI: rockchip: dw: Add kthread to probe PCIe devices")
Change-Id: I93a331fe6c17d97b71010780fba4afbc2dbf6216
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2021-01-22 20:13:01 +08:00
Wang Panzhenzhuan
413608a70d arm64: dts: rockchip: rk3566-evb3: enabled dvp camera
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: If10982b21a59f8d73f61196c0e3323738fe6b1f5
2021-01-22 20:13:01 +08:00
Ziyuan Xu
c0a95fe38f net: rfkill-wlan: fixes WARN if WIFI,poweren_gpio is not assigned
Change-Id: I85cf17f0b7efd95eb515a2708497dd17f15337b2
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2021-01-22 20:13:01 +08:00
Cai YiWei
1afd77fecc media: rockchip: ispp: remove debug log
Change-Id: I44512687d6edd2c1b8242d5c770f26a785007e66
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-01-22 20:13:01 +08:00
Sandy Huang
d716237f7f drm/rockchip: vop2: Add delay number for cluster win1
Change-Id: If70cb8fc03e5551cd8fc142e4400a2d2bbb3628a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-01-22 20:13:01 +08:00
Zhichao Yu
26e77bc0b1 media: i2c: imx307: support 60fps linear mode
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I011f058014e4e59a6d80fc9c44101e5e6172c903
2021-01-22 20:13:01 +08:00
Elaine Zhang
bfb60af6aa soc: rockchip: power-domain: remove the flag GENPD_FLAG_PM_CLK
make CLK and PD independent on/off.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I77de7602f10a6cca5e9cea342b064e7f3aae4e29
2021-01-22 20:13:01 +08:00
Cai YiWei
2d1456c1a6 media: rockchip: isp: fix mpfbc buf update if readback off
Change-Id: I57b48d6055759a426808fbd085cd913265742739
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-01-22 20:13:01 +08:00
Weixin Zhou
a14b50f30f arm64: dts: rockchip: rk3566-rk817-eink-w6: adjust sleep ctrl config
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I29fe1200258c33ed54ee9512e9264b4eeaa73977
2021-01-22 20:13:01 +08:00
Ding Wei
ae86413dbf video: rockchip: mpp: Fixes issue for px30 probe
When get dte_addr for iommu, it must enable reference clock.

Change-Id: Iaec423345463e001b2a7099067ab1e4a2d971f7f
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-01-22 20:13:01 +08:00
Allon Huang
6bc30b2c2b drivers: media: i2c: nvp6188: add get stream sequence interface
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I8e9ac70a6ad565e75a4f6f3e3b9168eec20de363
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2021-01-22 20:13:01 +08:00
Zorro Liu
31538abc7d drm/rockchip: ebc_dev: release version v1.01
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Iea75e131c55bae23c71c1a59a94c48b61416dd5e
2021-01-22 20:13:01 +08:00
Weixin Zhou
49b336287f dirvers: input: touchscreen: add focaltech ft5436
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I51437c0b5c81698d2b7e451d2843a55d23c3eb28
2021-01-22 20:13:01 +08:00
Hu Kejun
2a1585104a media: i2c: vcm: support config max current
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I02503eadd93ab6c9c462630721353e85b830d9bd
2021-01-22 20:13:01 +08:00
Finley Xiao
fedfb317fc ARM: dts: rv1126: Add pvtm config for npu opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iebaa949f317f09edee67d0dabab78724c2b1f819
2021-01-22 20:13:00 +08:00
Finley Xiao
f5d20854d6 ARM: dts: rv1126: Add pvtm config for cpu opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I31467cafef45c5cb15c78764848dc34f03285d7c
2021-01-22 20:13:00 +08:00
Finley Xiao
dd6849a160 ARM: dts: rv1126: Add opp table for low performance chips
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I37b18e718e1f5060663e9e627af4e56f3bd6e3ad
2021-01-22 20:13:00 +08:00
Finley Xiao
88c9aaf7ec soc: rockchip: opp_select: Add support to select voltage accroding to bin
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I6244d0c6865efbfb82164b3512e6f66adec45302
2021-01-22 20:13:00 +08:00
Finley Xiao
b82f26220d video: rockchip: mpp: rkvenc: Implement get_soc_info() for rv1126 SoCs
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3f35e0d44be68a84c5f16cf72181ea3f0ee11e1c
2021-01-22 20:13:00 +08:00
Weixin Zhou
7c8854a80a arm64: dts: rockchip: rk3566-rk817-eink-w6: add new touch ft5436
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ib7a93a5c3ce136684ad55646dcf039c1274ea171
2021-01-22 20:13:00 +08:00
Zorro Liu
b04a125c80 Revert "arm64: configs: rockchip_defconfig: add rockchip ebc dev driver"
This reverts commit 18a4299e0b.

move to rk356x_eink.config on android which one will overlay kernel configs

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: If43d748cdef541915a218214c274375a2d8e34bd
2021-01-22 20:13:00 +08:00
Hu Kejun
2664922167 media: i2c: vcm: set default position to vcm in resume function
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I8852b5fcc754afc3228b6e300fa8f672d9f45703
2021-01-22 20:13:00 +08:00
Hu Kejun
99c49523fc media: i2c: vm149c: support set/get vcm config ioctl
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Id40695e61e4e5daf6664084867f4980f848bdef5
2021-01-22 20:13:00 +08:00
Hu Kejun
a21a5c1944 media: i2c: fp5510: support set/get vcm config ioctl
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I19fc9732149ce17eb8613e710579ee7d5120c51f
2021-01-22 20:13:00 +08:00
Hu Kejun
6731223dc2 media: i2c: dw9714: synchronize with gt9760s
1. support set dlc/t_src/mclk by dts;
2. add ioctl to set vcm config;
3. update lsc move time;

Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I3fe7132fca65d82786927cd36ddbb57f341c22b3
2021-01-22 20:13:00 +08:00
Finley Xiao
168b90d38d Revert "ANDROID: GKI: PM/devfreq: Do not switch governors from sysfs when device is suspended"
This reverts commit 4f9183cc24.

Conflicts:
	include/linux/devfreq.h

Change-Id: I8bf76eb9113d1a1b564b396cd66a15bc4fd8e672
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-01-22 20:13:00 +08:00
Ding Wei
0a07b5aaba video: rockchip: mpp: vepu1: add codec_info for debug
Change-Id: I665cd4848becdbacc8c1393d82c3faa71898ceb4
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-01-22 20:13:00 +08:00
Huang zhibao
adb52df5b1 arm64: dts: rockchip: rk3568-nvr: cpu-opp delete node opp-1992000000
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: If259267e8e5d02fb48270f7c6b99052ace4dd2fe
2021-01-22 20:13:00 +08:00
Finley Xiao
64f51c86a8 cpufreq: rockchip: Implement get_soc_info() for rv1126 SoCs
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie56cf08706db7ffcf1d5821e7f43b61a7677e253
2021-01-22 20:13:00 +08:00
Jon Lin
7426087ac0 drivers: rkflash: Adjust spinor mtd dev dma limit to 8KB
Change-Id: Iabff9f57806f7e2fdd3ce411182eb46459178d45
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-01-22 20:13:00 +08:00
Sugar Zhang
f12659ebfa clk: rockchip: rv1126: Better jitter performance for audio rate
PLL 491520000 for audio samplerate:
    8000
   16000
   24000
   32000
   48000
   64000
   96000
  128000
  192000

  ppm ranges [-1000 : +976] for clk compensation

PLL 496742400 for audio samplerate:
   11025
   22050
   44100
   88200
  176400

  ppm ranges [-1000 : +1000] for clk compensation

e.g. UAC with 48000 SR + UVC:

&cru {
	assigned-clocks =
		<&pmucru CLK_RTC32K>, <&pmucru PLL_GPLL>,
		<&pmucru PCLK_PDPMU>, <&cru PLL_CPLL>,
		<&cru PLL_HPLL>, <&cru ARMCLK>,
		<&cru ACLK_PDBUS>, <&cru HCLK_PDBUS>,
		<&cru PCLK_PDBUS>, <&cru ACLK_PDPHP>,
		<&cru HCLK_PDPHP>, <&cru HCLK_PDAUDIO>,
		<&cru HCLK_PDCORE_NIU>;
	assigned-clock-rates =
		<32768>, <1188000000>,
		<100000000>, <491520000>,
		<1400000000>, <600000000>,
		<500000000>, <200000000>,
		<100000000>, <300000000>,
		<200000000>, <150000000>,
		<200000000>;
};

Change-Id: I96dcaf9d40fdea58a4c3a823d91720203e0a75ad
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-01-22 20:13:00 +08:00
Sugar Zhang
16e6c454ca clk: rockchip: pll: Fix overflow on frac caculation
Change-Id: I364713101afedb38a93f6c290e0f8ce1de4fc6eb
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-01-22 20:13:00 +08:00
Sugar Zhang
60febb8884 ASoC: rockchip: i2s: Shift rate back to 0 ppm when restart
Change-Id: I07e36ed6bf10ec7a060c920302d10cea05a20a4b
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-01-22 20:13:00 +08:00
Sugar Zhang
76be9eb40a ASoC: rockchip: pdm: Shift rate back to 0 ppm when restart
Change-Id: Ibb867e8b1a9a553a3077a7c91d415eea82cc76ba
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-01-22 20:13:00 +08:00