Linux 5.5-rc7
-----BEGIN PGP SIGNATURE----- iQFSBAABCAA8FiEEq68RxlopcLEwq+PEeb4+QwBBGIYFAl4k7i8eHHRvcnZhbGRz QGxpbnV4LWZvdW5kYXRpb24ub3JnAAoJEHm+PkMAQRiGvk0IAKRenVOdiudY77SQ VZjsteyrYTTQtPPv494ToIRjR0XQ+gYp8vyWzXTUC5Nm9Y9U3VzDqUPUjWszrSXE 6mU+tzcMc9qwuUxnIFn8zfg64ygw+37sn/w3xqeH4QmF9Z5Wl3EX3SdXTs7jp3RS VxiztkUNI5ZBV2GDtla5K/9qLPqCQnUYXIiyi5lAtBtiitZDVXFp7dy7hMgEiaEO +78K5Kh3xlt5ndDsBFOlwIb2Oof3KL7bBXntdbSBc/bjol6IRvAgln48HWCv59G2 jzAp2tj2KobX9GRAEPj+v4TQZEW0SXDNDi8MgQsM+3DYVCTmANsv57CBKRuf01+F nB1kAys= =zSnJ -----END PGP SIGNATURE----- Merge tag 'v5.5-rc7' into locking/kcsan, to refresh the tree Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
837171fe77
1
.mailmap
1
.mailmap
|
@ -99,6 +99,7 @@ Jacob Shin <Jacob.Shin@amd.com>
|
||||||
Jaegeuk Kim <jaegeuk@kernel.org> <jaegeuk@google.com>
|
Jaegeuk Kim <jaegeuk@kernel.org> <jaegeuk@google.com>
|
||||||
Jaegeuk Kim <jaegeuk@kernel.org> <jaegeuk@motorola.com>
|
Jaegeuk Kim <jaegeuk@kernel.org> <jaegeuk@motorola.com>
|
||||||
Jaegeuk Kim <jaegeuk@kernel.org> <jaegeuk.kim@samsung.com>
|
Jaegeuk Kim <jaegeuk@kernel.org> <jaegeuk.kim@samsung.com>
|
||||||
|
Jakub Kicinski <kuba@kernel.org> <jakub.kicinski@netronome.com>
|
||||||
James Bottomley <jejb@mulgrave.(none)>
|
James Bottomley <jejb@mulgrave.(none)>
|
||||||
James Bottomley <jejb@titanic.il.steeleye.com>
|
James Bottomley <jejb@titanic.il.steeleye.com>
|
||||||
James E Wilson <wilson@specifix.com>
|
James E Wilson <wilson@specifix.com>
|
||||||
|
|
|
@ -29,13 +29,13 @@ Description: This file shows the system fans direction:
|
||||||
|
|
||||||
The files are read only.
|
The files are read only.
|
||||||
|
|
||||||
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable
|
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version
|
||||||
|
|
||||||
Date: November 2018
|
Date: November 2018
|
||||||
KernelVersion: 5.0
|
KernelVersion: 5.0
|
||||||
Contact: Vadim Pasternak <vadimpmellanox.com>
|
Contact: Vadim Pasternak <vadimpmellanox.com>
|
||||||
Description: These files show with which CPLD versions have been burned
|
Description: These files show with which CPLD versions have been burned
|
||||||
on LED board.
|
on LED or Gearbox board.
|
||||||
|
|
||||||
The files are read only.
|
The files are read only.
|
||||||
|
|
||||||
|
@ -121,6 +121,15 @@ Description: These files show the system reset cause, as following: ComEx
|
||||||
|
|
||||||
The files are read only.
|
The files are read only.
|
||||||
|
|
||||||
|
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld4_version
|
||||||
|
Date: November 2018
|
||||||
|
KernelVersion: 5.0
|
||||||
|
Contact: Vadim Pasternak <vadimpmellanox.com>
|
||||||
|
Description: These files show with which CPLD versions have been burned
|
||||||
|
on LED board.
|
||||||
|
|
||||||
|
The files are read only.
|
||||||
|
|
||||||
Date: June 2019
|
Date: June 2019
|
||||||
KernelVersion: 5.3
|
KernelVersion: 5.3
|
||||||
Contact: Vadim Pasternak <vadimpmellanox.com>
|
Contact: Vadim Pasternak <vadimpmellanox.com>
|
||||||
|
|
|
@ -319,7 +319,7 @@
|
||||||
182 = /dev/perfctr Performance-monitoring counters
|
182 = /dev/perfctr Performance-monitoring counters
|
||||||
183 = /dev/hwrng Generic random number generator
|
183 = /dev/hwrng Generic random number generator
|
||||||
184 = /dev/cpu/microcode CPU microcode update interface
|
184 = /dev/cpu/microcode CPU microcode update interface
|
||||||
186 = /dev/atomicps Atomic shapshot of process state data
|
186 = /dev/atomicps Atomic snapshot of process state data
|
||||||
187 = /dev/irnet IrNET device
|
187 = /dev/irnet IrNET device
|
||||||
188 = /dev/smbusbios SMBus BIOS
|
188 = /dev/smbusbios SMBus BIOS
|
||||||
189 = /dev/ussp_ctl User space serial port control
|
189 = /dev/ussp_ctl User space serial port control
|
||||||
|
|
|
@ -18,8 +18,10 @@ Optional properties:
|
||||||
- dma-names: should contain "tx" and "rx".
|
- dma-names: should contain "tx" and "rx".
|
||||||
- atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
|
- atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
|
||||||
capable I2C controllers.
|
capable I2C controllers.
|
||||||
- i2c-sda-hold-time-ns: TWD hold time, only available for "atmel,sama5d4-i2c"
|
- i2c-sda-hold-time-ns: TWD hold time, only available for:
|
||||||
and "atmel,sama5d2-i2c".
|
"atmel,sama5d4-i2c",
|
||||||
|
"atmel,sama5d2-i2c",
|
||||||
|
"microchip,sam9x60-i2c".
|
||||||
- Child nodes conforming to i2c bus binding
|
- Child nodes conforming to i2c bus binding
|
||||||
|
|
||||||
Examples :
|
Examples :
|
||||||
|
|
|
@ -111,7 +111,7 @@ patternProperties:
|
||||||
spi-rx-bus-width:
|
spi-rx-bus-width:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: /schemas/types.yaml#/definitions/uint32
|
- $ref: /schemas/types.yaml#/definitions/uint32
|
||||||
- enum: [ 1, 2, 4 ]
|
- enum: [ 1, 2, 4, 8 ]
|
||||||
- default: 1
|
- default: 1
|
||||||
description:
|
description:
|
||||||
Bus width to the SPI bus used for MISO.
|
Bus width to the SPI bus used for MISO.
|
||||||
|
@ -123,7 +123,7 @@ patternProperties:
|
||||||
spi-tx-bus-width:
|
spi-tx-bus-width:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: /schemas/types.yaml#/definitions/uint32
|
- $ref: /schemas/types.yaml#/definitions/uint32
|
||||||
- enum: [ 1, 2, 4 ]
|
- enum: [ 1, 2, 4, 8 ]
|
||||||
- default: 1
|
- default: 1
|
||||||
description:
|
description:
|
||||||
Bus width to the SPI bus used for MOSI.
|
Bus width to the SPI bus used for MOSI.
|
||||||
|
|
|
@ -95,7 +95,7 @@ so all video4linux tools (like xawtv) should work with this driver.
|
||||||
|
|
||||||
Besides the video4linux interface, the driver has a private interface
|
Besides the video4linux interface, the driver has a private interface
|
||||||
for accessing the Motion Eye extended parameters (camera sharpness,
|
for accessing the Motion Eye extended parameters (camera sharpness,
|
||||||
agc, video framerate), the shapshot and the MJPEG capture facilities.
|
agc, video framerate), the snapshot and the MJPEG capture facilities.
|
||||||
|
|
||||||
This interface consists of several ioctls (prototypes and structures
|
This interface consists of several ioctls (prototypes and structures
|
||||||
can be found in include/linux/meye.h):
|
can be found in include/linux/meye.h):
|
||||||
|
|
|
@ -603,7 +603,7 @@ tcp_synack_retries - INTEGER
|
||||||
with the current initial RTO of 1second. With this the final timeout
|
with the current initial RTO of 1second. With this the final timeout
|
||||||
for a passive TCP connection will happen after 63seconds.
|
for a passive TCP connection will happen after 63seconds.
|
||||||
|
|
||||||
tcp_syncookies - BOOLEAN
|
tcp_syncookies - INTEGER
|
||||||
Only valid when the kernel was compiled with CONFIG_SYN_COOKIES
|
Only valid when the kernel was compiled with CONFIG_SYN_COOKIES
|
||||||
Send out syncookies when the syn backlog queue of a socket
|
Send out syncookies when the syn backlog queue of a socket
|
||||||
overflows. This is to prevent against the common 'SYN flood attack'
|
overflows. This is to prevent against the common 'SYN flood attack'
|
||||||
|
|
|
@ -34,8 +34,8 @@ the names, the ``net`` tree is for fixes to existing code already in the
|
||||||
mainline tree from Linus, and ``net-next`` is where the new code goes
|
mainline tree from Linus, and ``net-next`` is where the new code goes
|
||||||
for the future release. You can find the trees here:
|
for the future release. You can find the trees here:
|
||||||
|
|
||||||
- https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
|
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
|
||||||
- https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
|
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
|
||||||
|
|
||||||
Q: How often do changes from these trees make it to the mainline Linus tree?
|
Q: How often do changes from these trees make it to the mainline Linus tree?
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
|
|
|
@ -255,7 +255,7 @@ an involved disclosed party. The current ambassadors list:
|
||||||
Red Hat Josh Poimboeuf <jpoimboe@redhat.com>
|
Red Hat Josh Poimboeuf <jpoimboe@redhat.com>
|
||||||
SUSE Jiri Kosina <jkosina@suse.cz>
|
SUSE Jiri Kosina <jkosina@suse.cz>
|
||||||
|
|
||||||
Amazon
|
Amazon Peter Bowen <pzb@amzn.com>
|
||||||
Google Kees Cook <keescook@chromium.org>
|
Google Kees Cook <keescook@chromium.org>
|
||||||
============= ========================================================
|
============= ========================================================
|
||||||
|
|
||||||
|
|
33
MAINTAINERS
33
MAINTAINERS
|
@ -720,7 +720,7 @@ F: Documentation/devicetree/bindings/i2c/i2c-altera.txt
|
||||||
F: drivers/i2c/busses/i2c-altera.c
|
F: drivers/i2c/busses/i2c-altera.c
|
||||||
|
|
||||||
ALTERA MAILBOX DRIVER
|
ALTERA MAILBOX DRIVER
|
||||||
M: Ley Foon Tan <lftan@altera.com>
|
M: Ley Foon Tan <ley.foon.tan@intel.com>
|
||||||
L: nios2-dev@lists.rocketboards.org (moderated for non-subscribers)
|
L: nios2-dev@lists.rocketboards.org (moderated for non-subscribers)
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/mailbox/mailbox-altera.c
|
F: drivers/mailbox/mailbox-altera.c
|
||||||
|
@ -1407,7 +1407,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git
|
||||||
|
|
||||||
ARM/ACTIONS SEMI ARCHITECTURE
|
ARM/ACTIONS SEMI ARCHITECTURE
|
||||||
M: Andreas Färber <afaerber@suse.de>
|
M: Andreas Färber <afaerber@suse.de>
|
||||||
R: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
|
||||||
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
|
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
|
||||||
S: Maintained
|
S: Maintained
|
||||||
N: owl
|
N: owl
|
||||||
|
@ -3150,7 +3150,7 @@ S: Maintained
|
||||||
F: arch/mips/net/
|
F: arch/mips/net/
|
||||||
|
|
||||||
BPF JIT for NFP NICs
|
BPF JIT for NFP NICs
|
||||||
M: Jakub Kicinski <jakub.kicinski@netronome.com>
|
M: Jakub Kicinski <kuba@kernel.org>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
L: bpf@vger.kernel.org
|
L: bpf@vger.kernel.org
|
||||||
S: Supported
|
S: Supported
|
||||||
|
@ -11442,7 +11442,7 @@ F: include/uapi/linux/netrom.h
|
||||||
F: net/netrom/
|
F: net/netrom/
|
||||||
|
|
||||||
NETRONOME ETHERNET DRIVERS
|
NETRONOME ETHERNET DRIVERS
|
||||||
M: Jakub Kicinski <jakub.kicinski@netronome.com>
|
M: Jakub Kicinski <kuba@kernel.org>
|
||||||
L: oss-drivers@netronome.com
|
L: oss-drivers@netronome.com
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/net/ethernet/netronome/
|
F: drivers/net/ethernet/netronome/
|
||||||
|
@ -11471,8 +11471,8 @@ M: "David S. Miller" <davem@davemloft.net>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
W: http://www.linuxfoundation.org/en/Net
|
W: http://www.linuxfoundation.org/en/Net
|
||||||
Q: http://patchwork.ozlabs.org/project/netdev/list/
|
Q: http://patchwork.ozlabs.org/project/netdev/list/
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
|
||||||
S: Odd Fixes
|
S: Odd Fixes
|
||||||
F: Documentation/devicetree/bindings/net/
|
F: Documentation/devicetree/bindings/net/
|
||||||
F: drivers/net/
|
F: drivers/net/
|
||||||
|
@ -11513,8 +11513,8 @@ M: "David S. Miller" <davem@davemloft.net>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
W: http://www.linuxfoundation.org/en/Net
|
W: http://www.linuxfoundation.org/en/Net
|
||||||
Q: http://patchwork.ozlabs.org/project/netdev/list/
|
Q: http://patchwork.ozlabs.org/project/netdev/list/
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
|
||||||
B: mailto:netdev@vger.kernel.org
|
B: mailto:netdev@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: net/
|
F: net/
|
||||||
|
@ -11559,7 +11559,7 @@ M: "David S. Miller" <davem@davemloft.net>
|
||||||
M: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
|
M: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
|
||||||
M: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
|
M: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: net/ipv4/
|
F: net/ipv4/
|
||||||
F: net/ipv6/
|
F: net/ipv6/
|
||||||
|
@ -11602,7 +11602,7 @@ M: Boris Pismenny <borisp@mellanox.com>
|
||||||
M: Aviad Yehezkel <aviadye@mellanox.com>
|
M: Aviad Yehezkel <aviadye@mellanox.com>
|
||||||
M: John Fastabend <john.fastabend@gmail.com>
|
M: John Fastabend <john.fastabend@gmail.com>
|
||||||
M: Daniel Borkmann <daniel@iogearbox.net>
|
M: Daniel Borkmann <daniel@iogearbox.net>
|
||||||
M: Jakub Kicinski <jakub.kicinski@netronome.com>
|
M: Jakub Kicinski <kuba@kernel.org>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: net/tls/*
|
F: net/tls/*
|
||||||
|
@ -11614,7 +11614,7 @@ L: linux-wireless@vger.kernel.org
|
||||||
Q: http://patchwork.kernel.org/project/linux-wireless/list/
|
Q: http://patchwork.kernel.org/project/linux-wireless/list/
|
||||||
|
|
||||||
NETDEVSIM
|
NETDEVSIM
|
||||||
M: Jakub Kicinski <jakub.kicinski@netronome.com>
|
M: Jakub Kicinski <kuba@kernel.org>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/net/netdevsim/*
|
F: drivers/net/netdevsim/*
|
||||||
|
|
||||||
|
@ -11691,7 +11691,7 @@ F: Documentation/scsi/NinjaSCSI.txt
|
||||||
F: drivers/scsi/nsp32*
|
F: drivers/scsi/nsp32*
|
||||||
|
|
||||||
NIOS2 ARCHITECTURE
|
NIOS2 ARCHITECTURE
|
||||||
M: Ley Foon Tan <lftan@altera.com>
|
M: Ley Foon Tan <ley.foon.tan@intel.com>
|
||||||
L: nios2-dev@lists.rocketboards.org (moderated for non-subscribers)
|
L: nios2-dev@lists.rocketboards.org (moderated for non-subscribers)
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
@ -12575,7 +12575,7 @@ F: Documentation/devicetree/bindings/pci/aardvark-pci.txt
|
||||||
F: drivers/pci/controller/pci-aardvark.c
|
F: drivers/pci/controller/pci-aardvark.c
|
||||||
|
|
||||||
PCI DRIVER FOR ALTERA PCIE IP
|
PCI DRIVER FOR ALTERA PCIE IP
|
||||||
M: Ley Foon Tan <lftan@altera.com>
|
M: Ley Foon Tan <ley.foon.tan@intel.com>
|
||||||
L: rfi@lists.rocketboards.org (moderated for non-subscribers)
|
L: rfi@lists.rocketboards.org (moderated for non-subscribers)
|
||||||
L: linux-pci@vger.kernel.org
|
L: linux-pci@vger.kernel.org
|
||||||
S: Supported
|
S: Supported
|
||||||
|
@ -12754,7 +12754,7 @@ S: Supported
|
||||||
F: Documentation/PCI/pci-error-recovery.rst
|
F: Documentation/PCI/pci-error-recovery.rst
|
||||||
|
|
||||||
PCI MSI DRIVER FOR ALTERA MSI IP
|
PCI MSI DRIVER FOR ALTERA MSI IP
|
||||||
M: Ley Foon Tan <lftan@altera.com>
|
M: Ley Foon Tan <ley.foon.tan@intel.com>
|
||||||
L: rfi@lists.rocketboards.org (moderated for non-subscribers)
|
L: rfi@lists.rocketboards.org (moderated for non-subscribers)
|
||||||
L: linux-pci@vger.kernel.org
|
L: linux-pci@vger.kernel.org
|
||||||
S: Supported
|
S: Supported
|
||||||
|
@ -13690,7 +13690,6 @@ F: drivers/net/ethernet/qualcomm/emac/
|
||||||
|
|
||||||
QUALCOMM ETHQOS ETHERNET DRIVER
|
QUALCOMM ETHQOS ETHERNET DRIVER
|
||||||
M: Vinod Koul <vkoul@kernel.org>
|
M: Vinod Koul <vkoul@kernel.org>
|
||||||
M: Niklas Cassel <niklas.cassel@linaro.org>
|
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
|
F: drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
|
||||||
|
@ -14560,8 +14559,6 @@ F: include/linux/platform_data/spi-s3c64xx.h
|
||||||
|
|
||||||
SAMSUNG SXGBE DRIVERS
|
SAMSUNG SXGBE DRIVERS
|
||||||
M: Byungho An <bh74.an@samsung.com>
|
M: Byungho An <bh74.an@samsung.com>
|
||||||
M: Girish K S <ks.giri@samsung.com>
|
|
||||||
M: Vipul Pandya <vipul.pandya@samsung.com>
|
|
||||||
S: Supported
|
S: Supported
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
F: drivers/net/ethernet/samsung/sxgbe/
|
F: drivers/net/ethernet/samsung/sxgbe/
|
||||||
|
@ -18056,7 +18053,7 @@ XDP (eXpress Data Path)
|
||||||
M: Alexei Starovoitov <ast@kernel.org>
|
M: Alexei Starovoitov <ast@kernel.org>
|
||||||
M: Daniel Borkmann <daniel@iogearbox.net>
|
M: Daniel Borkmann <daniel@iogearbox.net>
|
||||||
M: David S. Miller <davem@davemloft.net>
|
M: David S. Miller <davem@davemloft.net>
|
||||||
M: Jakub Kicinski <jakub.kicinski@netronome.com>
|
M: Jakub Kicinski <kuba@kernel.org>
|
||||||
M: Jesper Dangaard Brouer <hawk@kernel.org>
|
M: Jesper Dangaard Brouer <hawk@kernel.org>
|
||||||
M: John Fastabend <john.fastabend@gmail.com>
|
M: John Fastabend <john.fastabend@gmail.com>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@
|
||||||
VERSION = 5
|
VERSION = 5
|
||||||
PATCHLEVEL = 5
|
PATCHLEVEL = 5
|
||||||
SUBLEVEL = 0
|
SUBLEVEL = 0
|
||||||
EXTRAVERSION = -rc5
|
EXTRAVERSION = -rc7
|
||||||
NAME = Kleptomaniac Octopus
|
NAME = Kleptomaniac Octopus
|
||||||
|
|
||||||
# *DOCUMENTATION*
|
# *DOCUMENTATION*
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARC_HAS_ACCL_REGS
|
#ifdef CONFIG_ARC_HAS_ACCL_REGS
|
||||||
ST2 r58, r59, PT_sp + 12
|
ST2 r58, r59, PT_r58
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.endm
|
.endm
|
||||||
|
@ -172,8 +172,8 @@
|
||||||
|
|
||||||
LD2 gp, fp, PT_r26 ; gp (r26), fp (r27)
|
LD2 gp, fp, PT_r26 ; gp (r26), fp (r27)
|
||||||
|
|
||||||
ld r12, [sp, PT_sp + 4]
|
ld r12, [sp, PT_r12]
|
||||||
ld r30, [sp, PT_sp + 8]
|
ld r30, [sp, PT_r30]
|
||||||
|
|
||||||
; Restore SP (into AUX_USER_SP) only if returning to U mode
|
; Restore SP (into AUX_USER_SP) only if returning to U mode
|
||||||
; - for K mode, it will be implicitly restored as stack is unwound
|
; - for K mode, it will be implicitly restored as stack is unwound
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARC_HAS_ACCL_REGS
|
#ifdef CONFIG_ARC_HAS_ACCL_REGS
|
||||||
LD2 r58, r59, PT_sp + 12
|
LD2 r58, r59, PT_r58
|
||||||
#endif
|
#endif
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
#define _ASM_ARC_HUGEPAGE_H
|
#define _ASM_ARC_HUGEPAGE_H
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#define __ARCH_USE_5LEVEL_HACK
|
|
||||||
#include <asm-generic/pgtable-nopmd.h>
|
#include <asm-generic/pgtable-nopmd.h>
|
||||||
|
|
||||||
static inline pte_t pmd_pte(pmd_t pmd)
|
static inline pte_t pmd_pte(pmd_t pmd)
|
||||||
|
|
|
@ -66,7 +66,15 @@ int main(void)
|
||||||
|
|
||||||
DEFINE(SZ_CALLEE_REGS, sizeof(struct callee_regs));
|
DEFINE(SZ_CALLEE_REGS, sizeof(struct callee_regs));
|
||||||
DEFINE(SZ_PT_REGS, sizeof(struct pt_regs));
|
DEFINE(SZ_PT_REGS, sizeof(struct pt_regs));
|
||||||
DEFINE(PT_user_r25, offsetof(struct pt_regs, user_r25));
|
|
||||||
|
#ifdef CONFIG_ISA_ARCV2
|
||||||
|
OFFSET(PT_r12, pt_regs, r12);
|
||||||
|
OFFSET(PT_r30, pt_regs, r30);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_ARC_HAS_ACCL_REGS
|
||||||
|
OFFSET(PT_r58, pt_regs, r58);
|
||||||
|
OFFSET(PT_r59, pt_regs, r59);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
menuconfig ARC_PLAT_EZNPS
|
menuconfig ARC_PLAT_EZNPS
|
||||||
bool "\"EZchip\" ARC dev platform"
|
bool "\"EZchip\" ARC dev platform"
|
||||||
select CPU_BIG_ENDIAN
|
select CPU_BIG_ENDIAN
|
||||||
select CLKSRC_NPS
|
select CLKSRC_NPS if !PHYS_ADDR_T_64BIT
|
||||||
select EZNPS_GIC
|
select EZNPS_GIC
|
||||||
select EZCHIP_NPS_MANAGEMENT_ENET if ETHERNET
|
select EZCHIP_NPS_MANAGEMENT_ENET if ETHERNET
|
||||||
help
|
help
|
||||||
|
|
|
@ -72,6 +72,7 @@ config ARM
|
||||||
select HAVE_ARM_SMCCC if CPU_V7
|
select HAVE_ARM_SMCCC if CPU_V7
|
||||||
select HAVE_EBPF_JIT if !CPU_ENDIAN_BE32
|
select HAVE_EBPF_JIT if !CPU_ENDIAN_BE32
|
||||||
select HAVE_CONTEXT_TRACKING
|
select HAVE_CONTEXT_TRACKING
|
||||||
|
select HAVE_COPY_THREAD_TLS
|
||||||
select HAVE_C_RECORDMCOUNT
|
select HAVE_C_RECORDMCOUNT
|
||||||
select HAVE_DEBUG_KMEMLEAK
|
select HAVE_DEBUG_KMEMLEAK
|
||||||
select HAVE_DMA_CONTIGUOUS if MMU
|
select HAVE_DMA_CONTIGUOUS if MMU
|
||||||
|
|
|
@ -167,11 +167,7 @@
|
||||||
|
|
||||||
&pcie1_rc {
|
&pcie1_rc {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
|
||||||
|
|
||||||
&pcie1_ep {
|
|
||||||
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc1 {
|
&mmc1 {
|
||||||
|
|
|
@ -147,10 +147,6 @@
|
||||||
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie1_ep {
|
|
||||||
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&mailbox5 {
|
&mailbox5 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
|
mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
|
||||||
|
|
|
@ -29,6 +29,27 @@
|
||||||
reg = <0x0 0x80000000 0x0 0x80000000>;
|
reg = <0x0 0x80000000 0x0 0x80000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
main_12v0: fixedregulator-main_12v0 {
|
||||||
|
/* main supply */
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "main_12v0";
|
||||||
|
regulator-min-microvolt = <12000000>;
|
||||||
|
regulator-max-microvolt = <12000000>;
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
};
|
||||||
|
|
||||||
|
evm_5v0: fixedregulator-evm_5v0 {
|
||||||
|
/* Output of TPS54531D */
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "evm_5v0";
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
vin-supply = <&main_12v0>;
|
||||||
|
regulator-always-on;
|
||||||
|
regulator-boot-on;
|
||||||
|
};
|
||||||
|
|
||||||
vdd_3v3: fixedregulator-vdd_3v3 {
|
vdd_3v3: fixedregulator-vdd_3v3 {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vdd_3v3";
|
regulator-name = "vdd_3v3";
|
||||||
|
@ -547,10 +568,6 @@
|
||||||
gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie1_ep {
|
|
||||||
gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&mcasp3 {
|
&mcasp3 {
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
|
assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
|
||||||
|
|
|
@ -258,9 +258,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pca0: pca9552@60 {
|
pca0: pca9552@61 {
|
||||||
compatible = "nxp,pca9552";
|
compatible = "nxp,pca9552";
|
||||||
reg = <0x60>;
|
reg = <0x61>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
@ -519,371 +519,6 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c13 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c14 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c15 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c1 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c2 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c3 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
power-supply@68 {
|
|
||||||
compatible = "ibm,cffps2";
|
|
||||||
reg = <0x68>;
|
|
||||||
};
|
|
||||||
|
|
||||||
power-supply@69 {
|
|
||||||
compatible = "ibm,cffps2";
|
|
||||||
reg = <0x69>;
|
|
||||||
};
|
|
||||||
|
|
||||||
power-supply@6a {
|
|
||||||
compatible = "ibm,cffps2";
|
|
||||||
reg = <0x6a>;
|
|
||||||
};
|
|
||||||
|
|
||||||
power-supply@6b {
|
|
||||||
compatible = "ibm,cffps2";
|
|
||||||
reg = <0x6b>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c4 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp275@48 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@49 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x49>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@4a {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x4a>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c5 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp275@48 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@49 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x49>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c6 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp275@48 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@4a {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x4a>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@4b {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x4b>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c7 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
si7021-a20@20 {
|
|
||||||
compatible = "silabs,si7020";
|
|
||||||
reg = <0x20>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@48 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
||||||
|
|
||||||
max31785@52 {
|
|
||||||
compatible = "maxim,max31785a";
|
|
||||||
reg = <0x52>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
fan@0 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <0>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
fan@1 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <1>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
fan@2 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <2>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
fan@3 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <3>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pca0: pca9552@60 {
|
|
||||||
compatible = "nxp,pca9552";
|
|
||||||
reg = <0x60>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
gpio-controller;
|
|
||||||
#gpio-cells = <2>;
|
|
||||||
|
|
||||||
gpio@0 {
|
|
||||||
reg = <0>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@1 {
|
|
||||||
reg = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@2 {
|
|
||||||
reg = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@3 {
|
|
||||||
reg = <3>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@4 {
|
|
||||||
reg = <4>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@5 {
|
|
||||||
reg = <5>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@6 {
|
|
||||||
reg = <6>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@7 {
|
|
||||||
reg = <7>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@8 {
|
|
||||||
reg = <8>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@9 {
|
|
||||||
reg = <9>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@10 {
|
|
||||||
reg = <10>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@11 {
|
|
||||||
reg = <11>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@12 {
|
|
||||||
reg = <12>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@13 {
|
|
||||||
reg = <13>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@14 {
|
|
||||||
reg = <14>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@15 {
|
|
||||||
reg = <15>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dps: dps310@76 {
|
|
||||||
compatible = "infineon,dps310";
|
|
||||||
reg = <0x76>;
|
|
||||||
#io-channel-cells = <0>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c8 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
ucd90320@b {
|
|
||||||
compatible = "ti,ucd90160";
|
|
||||||
reg = <0x0b>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ucd90320@c {
|
|
||||||
compatible = "ti,ucd90160";
|
|
||||||
reg = <0x0c>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ucd90320@11 {
|
|
||||||
compatible = "ti,ucd90160";
|
|
||||||
reg = <0x11>;
|
|
||||||
};
|
|
||||||
|
|
||||||
rtc@32 {
|
|
||||||
compatible = "epson,rx8900";
|
|
||||||
reg = <0x32>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@48 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@4a {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x4a>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c9 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
ir35221@42 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x42>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@43 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x43>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@44 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x44>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp423a@4c {
|
|
||||||
compatible = "ti,tmp423";
|
|
||||||
reg = <0x4c>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp423b@4d {
|
|
||||||
compatible = "ti,tmp423";
|
|
||||||
reg = <0x4d>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@72 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x72>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@73 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x73>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@74 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x74>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c10 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
ir35221@42 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x42>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@43 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x43>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@44 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x44>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp423a@4c {
|
|
||||||
compatible = "ti,tmp423";
|
|
||||||
reg = <0x4c>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp423b@4d {
|
|
||||||
compatible = "ti,tmp423";
|
|
||||||
reg = <0x4d>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@72 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x72>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@73 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x73>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@74 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x74>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c11 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp275@48 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmp275@49 {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x49>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c12 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c13 {
|
&i2c13 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
|
|
@ -122,37 +122,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&fmc {
|
|
||||||
status = "okay";
|
|
||||||
flash@0 {
|
|
||||||
status = "okay";
|
|
||||||
m25p,fast-read;
|
|
||||||
label = "bmc";
|
|
||||||
spi-max-frequency = <50000000>;
|
|
||||||
#include "openbmc-flash-layout-128.dtsi"
|
|
||||||
};
|
|
||||||
|
|
||||||
flash@1 {
|
|
||||||
status = "okay";
|
|
||||||
m25p,fast-read;
|
|
||||||
label = "alt-bmc";
|
|
||||||
spi-max-frequency = <50000000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&spi1 {
|
|
||||||
status = "okay";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pinctrl_spi1_default>;
|
|
||||||
|
|
||||||
flash@0 {
|
|
||||||
status = "okay";
|
|
||||||
m25p,fast-read;
|
|
||||||
label = "pnor";
|
|
||||||
spi-max-frequency = <100000000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&mac2 {
|
&mac2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
@ -165,6 +134,11 @@
|
||||||
|
|
||||||
&emmc {
|
&emmc {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&fsim0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
#address-cells = <2>;
|
#address-cells = <2>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
@ -820,373 +794,6 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c0 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c1 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c2 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c3 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
bmp: bmp280@77 {
|
|
||||||
compatible = "bosch,bmp280";
|
|
||||||
reg = <0x77>;
|
|
||||||
#io-channel-cells = <1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
max31785@52 {
|
|
||||||
compatible = "maxim,max31785a";
|
|
||||||
reg = <0x52>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
fan@0 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <0>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
maxim,fan-rotor-input = "tach";
|
|
||||||
maxim,fan-pwm-freq = <25000>;
|
|
||||||
maxim,fan-dual-tach;
|
|
||||||
maxim,fan-no-watchdog;
|
|
||||||
maxim,fan-no-fault-ramp;
|
|
||||||
maxim,fan-ramp = <2>;
|
|
||||||
maxim,fan-fault-pin-mon;
|
|
||||||
};
|
|
||||||
|
|
||||||
fan@1 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <1>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
maxim,fan-rotor-input = "tach";
|
|
||||||
maxim,fan-pwm-freq = <25000>;
|
|
||||||
maxim,fan-dual-tach;
|
|
||||||
maxim,fan-no-watchdog;
|
|
||||||
maxim,fan-no-fault-ramp;
|
|
||||||
maxim,fan-ramp = <2>;
|
|
||||||
maxim,fan-fault-pin-mon;
|
|
||||||
};
|
|
||||||
|
|
||||||
fan@2 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <2>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
maxim,fan-rotor-input = "tach";
|
|
||||||
maxim,fan-pwm-freq = <25000>;
|
|
||||||
maxim,fan-dual-tach;
|
|
||||||
maxim,fan-no-watchdog;
|
|
||||||
maxim,fan-no-fault-ramp;
|
|
||||||
maxim,fan-ramp = <2>;
|
|
||||||
maxim,fan-fault-pin-mon;
|
|
||||||
};
|
|
||||||
|
|
||||||
fan@3 {
|
|
||||||
compatible = "pmbus-fan";
|
|
||||||
reg = <3>;
|
|
||||||
tach-pulses = <2>;
|
|
||||||
maxim,fan-rotor-input = "tach";
|
|
||||||
maxim,fan-pwm-freq = <25000>;
|
|
||||||
maxim,fan-dual-tach;
|
|
||||||
maxim,fan-no-watchdog;
|
|
||||||
maxim,fan-no-fault-ramp;
|
|
||||||
maxim,fan-ramp = <2>;
|
|
||||||
maxim,fan-fault-pin-mon;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dps: dps310@76 {
|
|
||||||
compatible = "infineon,dps310";
|
|
||||||
reg = <0x76>;
|
|
||||||
#io-channel-cells = <0>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pca0: pca9552@60 {
|
|
||||||
compatible = "nxp,pca9552";
|
|
||||||
reg = <0x60>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
gpio-controller;
|
|
||||||
#gpio-cells = <2>;
|
|
||||||
|
|
||||||
gpio@0 {
|
|
||||||
reg = <0>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@1 {
|
|
||||||
reg = <1>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@2 {
|
|
||||||
reg = <2>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@3 {
|
|
||||||
reg = <3>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@4 {
|
|
||||||
reg = <4>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@5 {
|
|
||||||
reg = <5>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@6 {
|
|
||||||
reg = <6>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@7 {
|
|
||||||
reg = <7>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@8 {
|
|
||||||
reg = <8>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@9 {
|
|
||||||
reg = <9>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@10 {
|
|
||||||
reg = <10>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@11 {
|
|
||||||
reg = <11>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@12 {
|
|
||||||
reg = <12>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@13 {
|
|
||||||
reg = <13>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@14 {
|
|
||||||
reg = <14>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@15 {
|
|
||||||
reg = <15>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
power-supply@68 {
|
|
||||||
compatible = "ibm,cffps1";
|
|
||||||
reg = <0x68>;
|
|
||||||
};
|
|
||||||
|
|
||||||
power-supply@69 {
|
|
||||||
compatible = "ibm,cffps1";
|
|
||||||
reg = <0x69>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c4 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp423a@4c {
|
|
||||||
compatible = "ti,tmp423";
|
|
||||||
reg = <0x4c>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@70 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x70>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@71 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x71>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c5 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp423a@4c {
|
|
||||||
compatible = "ti,tmp423";
|
|
||||||
reg = <0x4c>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@70 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x70>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ir35221@71 {
|
|
||||||
compatible = "infineon,ir35221";
|
|
||||||
reg = <0x71>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c7 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c9 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
tmp275@4a {
|
|
||||||
compatible = "ti,tmp275";
|
|
||||||
reg = <0x4a>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c10 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c11 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
pca9552: pca9552@60 {
|
|
||||||
compatible = "nxp,pca9552";
|
|
||||||
reg = <0x60>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
gpio-controller;
|
|
||||||
#gpio-cells = <2>;
|
|
||||||
|
|
||||||
gpio-line-names = "PS_SMBUS_RESET_N", "APSS_RESET_N",
|
|
||||||
"GPU0_TH_OVERT_N_BUFF", "GPU1_TH_OVERT_N_BUFF",
|
|
||||||
"GPU2_TH_OVERT_N_BUFF", "GPU3_TH_OVERT_N_BUFF",
|
|
||||||
"GPU4_TH_OVERT_N_BUFF", "GPU5_TH_OVERT_N_BUFF",
|
|
||||||
"GPU0_PWR_GOOD_BUFF", "GPU1_PWR_GOOD_BUFF",
|
|
||||||
"GPU2_PWR_GOOD_BUFF", "GPU3_PWR_GOOD_BUFF",
|
|
||||||
"GPU4_PWR_GOOD_BUFF", "GPU5_PWR_GOOD_BUFF",
|
|
||||||
"12V_BREAKER_FLT_N", "THROTTLE_UNLATCHED_N";
|
|
||||||
|
|
||||||
gpio@0 {
|
|
||||||
reg = <0>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@1 {
|
|
||||||
reg = <1>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@2 {
|
|
||||||
reg = <2>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@3 {
|
|
||||||
reg = <3>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@4 {
|
|
||||||
reg = <4>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@5 {
|
|
||||||
reg = <5>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@6 {
|
|
||||||
reg = <6>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@7 {
|
|
||||||
reg = <7>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@8 {
|
|
||||||
reg = <8>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@9 {
|
|
||||||
reg = <9>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@10 {
|
|
||||||
reg = <10>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@11 {
|
|
||||||
reg = <11>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@12 {
|
|
||||||
reg = <12>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@13 {
|
|
||||||
reg = <13>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@14 {
|
|
||||||
reg = <14>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio@15 {
|
|
||||||
reg = <15>;
|
|
||||||
type = <PCA955X_TYPE_GPIO>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
rtc@32 {
|
|
||||||
compatible = "epson,rx8900";
|
|
||||||
reg = <0x32>;
|
|
||||||
};
|
|
||||||
|
|
||||||
eeprom@51 {
|
|
||||||
compatible = "atmel,24c64";
|
|
||||||
reg = <0x51>;
|
|
||||||
};
|
|
||||||
|
|
||||||
ucd90160@64 {
|
|
||||||
compatible = "ti,ucd90160";
|
|
||||||
reg = <0x64>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c12 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c13 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
/* Hog these as no driver is probed for the entire LPC block */
|
/* Hog these as no driver is probed for the entire LPC block */
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
|
@ -163,26 +163,6 @@
|
||||||
spi-max-frequency = <50000000>;
|
spi-max-frequency = <50000000>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
fsim0: fsi@1e79b000 {
|
|
||||||
compatible = "aspeed,ast2600-fsi-master", "fsi-master";
|
|
||||||
reg = <0x1e79b000 0x94>;
|
|
||||||
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pinctrl_fsi1_default>;
|
|
||||||
clocks = <&syscon ASPEED_CLK_GATE_FSICLK>;
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
fsim1: fsi@1e79b100 {
|
|
||||||
compatible = "aspeed,ast2600-fsi-master", "fsi-master";
|
|
||||||
reg = <0x1e79b100 0x94>;
|
|
||||||
interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pinctrl_fsi2_default>;
|
|
||||||
clocks = <&syscon ASPEED_CLK_GATE_FSICLK>;
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio0: mdio@1e650000 {
|
mdio0: mdio@1e650000 {
|
||||||
|
@ -595,6 +575,25 @@
|
||||||
ranges = <0 0x1e78a000 0x1000>;
|
ranges = <0 0x1e78a000 0x1000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fsim0: fsi@1e79b000 {
|
||||||
|
compatible = "aspeed,ast2600-fsi-master", "fsi-master";
|
||||||
|
reg = <0x1e79b000 0x94>;
|
||||||
|
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_fsi1_default>;
|
||||||
|
clocks = <&syscon ASPEED_CLK_GATE_FSICLK>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
fsim1: fsi@1e79b100 {
|
||||||
|
compatible = "aspeed,ast2600-fsi-master", "fsi-master";
|
||||||
|
reg = <0x1e79b100 0x94>;
|
||||||
|
interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_fsi2_default>;
|
||||||
|
clocks = <&syscon ASPEED_CLK_GATE_FSICLK>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
#include "imx6dl.dtsi"
|
#include "imx6dl.dtsi"
|
||||||
#include "imx6qdl-icore.dtsi"
|
#include "imx6qdl-icore-1.5.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Engicam i.CoreM6 DualLite/Solo MIPI Starter Kit";
|
model = "Engicam i.CoreM6 DualLite/Solo MIPI Starter Kit";
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
clocks = <&clk_ext_audio_codec>;
|
clocks = <&clk_ext_audio_codec>;
|
||||||
VDDA-supply = <®_3p3v>;
|
VDDA-supply = <®_3p3v>;
|
||||||
VDDIO-supply = <®_3p3v>;
|
VDDIO-supply = <&sw2_reg>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
rtc@56 {
|
rtc@56 {
|
||||||
compatible = "rv3029c2";
|
compatible = "microcrystal,rv3029";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&pinctrl_rtc_hw300>;
|
pinctrl-0 = <&pinctrl_rtc_hw300>;
|
||||||
reg = <0x56>;
|
reg = <0x56>;
|
||||||
|
|
|
@ -749,10 +749,6 @@
|
||||||
vin-supply = <&vgen5_reg>;
|
vin-supply = <&vgen5_reg>;
|
||||||
};
|
};
|
||||||
|
|
||||||
®_vdd3p0 {
|
|
||||||
vin-supply = <&sw2_reg>;
|
|
||||||
};
|
|
||||||
|
|
||||||
®_vdd2p5 {
|
®_vdd2p5 {
|
||||||
vin-supply = <&vgen5_reg>;
|
vin-supply = <&vgen5_reg>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -584,10 +584,6 @@
|
||||||
vin-supply = <&sw2_reg>;
|
vin-supply = <&sw2_reg>;
|
||||||
};
|
};
|
||||||
|
|
||||||
®_vdd3p0 {
|
|
||||||
vin-supply = <&sw2_reg>;
|
|
||||||
};
|
|
||||||
|
|
||||||
®_vdd2p5 {
|
®_vdd2p5 {
|
||||||
vin-supply = <&sw2_reg>;
|
vin-supply = <&sw2_reg>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -265,10 +265,6 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
®_3p0 {
|
|
||||||
vin-supply = <&sw2_reg>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&snvs_poweroff {
|
&snvs_poweroff {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -159,10 +159,6 @@
|
||||||
vin-supply = <&vgen6_reg>;
|
vin-supply = <&vgen6_reg>;
|
||||||
};
|
};
|
||||||
|
|
||||||
®_vdd3p0 {
|
|
||||||
vin-supply = <&sw2_reg>;
|
|
||||||
};
|
|
||||||
|
|
||||||
®_vdd2p5 {
|
®_vdd2p5 {
|
||||||
vin-supply = <&vgen6_reg>;
|
vin-supply = <&vgen6_reg>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -141,10 +141,6 @@
|
||||||
vin-supply = <&vgen6_reg>;
|
vin-supply = <&vgen6_reg>;
|
||||||
};
|
};
|
||||||
|
|
||||||
®_vdd3p0 {
|
|
||||||
vin-supply = <&sw2_reg>;
|
|
||||||
};
|
|
||||||
|
|
||||||
®_vdd2p5 {
|
®_vdd2p5 {
|
||||||
vin-supply = <&vgen6_reg>;
|
vin-supply = <&vgen6_reg>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -49,3 +49,7 @@
|
||||||
reg = <0x80000000 0x10000000>;
|
reg = <0x80000000 0x10000000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gpmi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -37,10 +37,10 @@
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
cpu0: cpu@0 {
|
cpu0: cpu@f00 {
|
||||||
compatible = "arm,cortex-a7";
|
compatible = "arm,cortex-a7";
|
||||||
device_type = "cpu";
|
device_type = "cpu";
|
||||||
reg = <0>;
|
reg = <0xf00>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@
|
||||||
&aobus {
|
&aobus {
|
||||||
pmu: pmu@e0 {
|
pmu: pmu@e0 {
|
||||||
compatible = "amlogic,meson8-pmu", "syscon";
|
compatible = "amlogic,meson8-pmu", "syscon";
|
||||||
reg = <0xe0 0x8>;
|
reg = <0xe0 0x18>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pinctrl_aobus: pinctrl@84 {
|
pinctrl_aobus: pinctrl@84 {
|
||||||
|
|
|
@ -356,7 +356,7 @@
|
||||||
|
|
||||||
twsi1: i2c@d4011000 {
|
twsi1: i2c@d4011000 {
|
||||||
compatible = "mrvl,mmp-twsi";
|
compatible = "mrvl,mmp-twsi";
|
||||||
reg = <0xd4011000 0x1000>;
|
reg = <0xd4011000 0x70>;
|
||||||
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
clocks = <&soc_clocks MMP2_CLK_TWSI0>;
|
clocks = <&soc_clocks MMP2_CLK_TWSI0>;
|
||||||
resets = <&soc_clocks MMP2_CLK_TWSI0>;
|
resets = <&soc_clocks MMP2_CLK_TWSI0>;
|
||||||
|
@ -368,7 +368,7 @@
|
||||||
|
|
||||||
twsi2: i2c@d4031000 {
|
twsi2: i2c@d4031000 {
|
||||||
compatible = "mrvl,mmp-twsi";
|
compatible = "mrvl,mmp-twsi";
|
||||||
reg = <0xd4031000 0x1000>;
|
reg = <0xd4031000 0x70>;
|
||||||
interrupt-parent = <&twsi_mux>;
|
interrupt-parent = <&twsi_mux>;
|
||||||
interrupts = <0>;
|
interrupts = <0>;
|
||||||
clocks = <&soc_clocks MMP2_CLK_TWSI1>;
|
clocks = <&soc_clocks MMP2_CLK_TWSI1>;
|
||||||
|
@ -380,7 +380,7 @@
|
||||||
|
|
||||||
twsi3: i2c@d4032000 {
|
twsi3: i2c@d4032000 {
|
||||||
compatible = "mrvl,mmp-twsi";
|
compatible = "mrvl,mmp-twsi";
|
||||||
reg = <0xd4032000 0x1000>;
|
reg = <0xd4032000 0x70>;
|
||||||
interrupt-parent = <&twsi_mux>;
|
interrupt-parent = <&twsi_mux>;
|
||||||
interrupts = <1>;
|
interrupts = <1>;
|
||||||
clocks = <&soc_clocks MMP2_CLK_TWSI2>;
|
clocks = <&soc_clocks MMP2_CLK_TWSI2>;
|
||||||
|
@ -392,7 +392,7 @@
|
||||||
|
|
||||||
twsi4: i2c@d4033000 {
|
twsi4: i2c@d4033000 {
|
||||||
compatible = "mrvl,mmp-twsi";
|
compatible = "mrvl,mmp-twsi";
|
||||||
reg = <0xd4033000 0x1000>;
|
reg = <0xd4033000 0x70>;
|
||||||
interrupt-parent = <&twsi_mux>;
|
interrupt-parent = <&twsi_mux>;
|
||||||
interrupts = <2>;
|
interrupts = <2>;
|
||||||
clocks = <&soc_clocks MMP2_CLK_TWSI3>;
|
clocks = <&soc_clocks MMP2_CLK_TWSI3>;
|
||||||
|
@ -405,7 +405,7 @@
|
||||||
|
|
||||||
twsi5: i2c@d4033800 {
|
twsi5: i2c@d4033800 {
|
||||||
compatible = "mrvl,mmp-twsi";
|
compatible = "mrvl,mmp-twsi";
|
||||||
reg = <0xd4033800 0x1000>;
|
reg = <0xd4033800 0x70>;
|
||||||
interrupt-parent = <&twsi_mux>;
|
interrupt-parent = <&twsi_mux>;
|
||||||
interrupts = <3>;
|
interrupts = <3>;
|
||||||
clocks = <&soc_clocks MMP2_CLK_TWSI4>;
|
clocks = <&soc_clocks MMP2_CLK_TWSI4>;
|
||||||
|
@ -417,7 +417,7 @@
|
||||||
|
|
||||||
twsi6: i2c@d4034000 {
|
twsi6: i2c@d4034000 {
|
||||||
compatible = "mrvl,mmp-twsi";
|
compatible = "mrvl,mmp-twsi";
|
||||||
reg = <0xd4034000 0x1000>;
|
reg = <0xd4034000 0x70>;
|
||||||
interrupt-parent = <&twsi_mux>;
|
interrupt-parent = <&twsi_mux>;
|
||||||
interrupts = <4>;
|
interrupts = <4>;
|
||||||
clocks = <&soc_clocks MMP2_CLK_TWSI5>;
|
clocks = <&soc_clocks MMP2_CLK_TWSI5>;
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
initial-mode = <1>; /* initialize in HUB mode */
|
initial-mode = <1>; /* initialize in HUB mode */
|
||||||
disabled-ports = <1>;
|
disabled-ports = <1>;
|
||||||
intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
||||||
reset-gpios = <&pio 4 16 GPIO_ACTIVE_HIGH>; /* PE16 */
|
reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
|
||||||
connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
|
connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
|
||||||
refclk-frequency = <19200000>;
|
refclk-frequency = <19200000>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -226,8 +226,8 @@ void release_thread(struct task_struct *dead_task)
|
||||||
asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
|
asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
|
||||||
|
|
||||||
int
|
int
|
||||||
copy_thread(unsigned long clone_flags, unsigned long stack_start,
|
copy_thread_tls(unsigned long clone_flags, unsigned long stack_start,
|
||||||
unsigned long stk_sz, struct task_struct *p)
|
unsigned long stk_sz, struct task_struct *p, unsigned long tls)
|
||||||
{
|
{
|
||||||
struct thread_info *thread = task_thread_info(p);
|
struct thread_info *thread = task_thread_info(p);
|
||||||
struct pt_regs *childregs = task_pt_regs(p);
|
struct pt_regs *childregs = task_pt_regs(p);
|
||||||
|
@ -261,7 +261,7 @@ copy_thread(unsigned long clone_flags, unsigned long stack_start,
|
||||||
clear_ptrace_hw_breakpoint(p);
|
clear_ptrace_hw_breakpoint(p);
|
||||||
|
|
||||||
if (clone_flags & CLONE_SETTLS)
|
if (clone_flags & CLONE_SETTLS)
|
||||||
thread->tp_value[0] = childregs->ARM_r3;
|
thread->tp_value[0] = tls;
|
||||||
thread->tp_value[1] = get_tpuser();
|
thread->tp_value[1] = get_tpuser();
|
||||||
|
|
||||||
thread_notify(THREAD_NOTIFY_COPY, thread);
|
thread_notify(THREAD_NOTIFY_COPY, thread);
|
||||||
|
|
|
@ -9,6 +9,7 @@ menuconfig ARCH_DAVINCI
|
||||||
select PM_GENERIC_DOMAINS if PM
|
select PM_GENERIC_DOMAINS if PM
|
||||||
select PM_GENERIC_DOMAINS_OF if PM && OF
|
select PM_GENERIC_DOMAINS_OF if PM && OF
|
||||||
select REGMAP_MMIO
|
select REGMAP_MMIO
|
||||||
|
select RESET_CONTROLLER
|
||||||
select HAVE_IDE
|
select HAVE_IDE
|
||||||
select PINCTRL_SINGLE
|
select PINCTRL_SINGLE
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ static int __init mmp_dt_init_timer(struct device_node *np)
|
||||||
ret = clk_prepare_enable(clk);
|
ret = clk_prepare_enable(clk);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
rate = clk_get_rate(clk) / 2;
|
rate = clk_get_rate(clk);
|
||||||
} else if (cpu_is_pj4()) {
|
} else if (cpu_is_pj4()) {
|
||||||
rate = 6500000;
|
rate = 6500000;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -95,6 +95,7 @@ config ARCH_OMAP2PLUS
|
||||||
bool
|
bool
|
||||||
select ARCH_HAS_BANDGAP
|
select ARCH_HAS_BANDGAP
|
||||||
select ARCH_HAS_HOLES_MEMORYMODEL
|
select ARCH_HAS_HOLES_MEMORYMODEL
|
||||||
|
select ARCH_HAS_RESET_CONTROLLER
|
||||||
select ARCH_OMAP
|
select ARCH_OMAP
|
||||||
select CLKSRC_MMIO
|
select CLKSRC_MMIO
|
||||||
select GENERIC_IRQ_CHIP
|
select GENERIC_IRQ_CHIP
|
||||||
|
@ -105,11 +106,11 @@ config ARCH_OMAP2PLUS
|
||||||
select OMAP_DM_TIMER
|
select OMAP_DM_TIMER
|
||||||
select OMAP_GPMC
|
select OMAP_GPMC
|
||||||
select PINCTRL
|
select PINCTRL
|
||||||
|
select RESET_CONTROLLER
|
||||||
select SOC_BUS
|
select SOC_BUS
|
||||||
select TI_SYSC
|
select TI_SYSC
|
||||||
select OMAP_IRQCHIP
|
select OMAP_IRQCHIP
|
||||||
select CLKSRC_TI_32K
|
select CLKSRC_TI_32K
|
||||||
select ARCH_HAS_RESET_CONTROLLER
|
|
||||||
help
|
help
|
||||||
Systems based on OMAP2, OMAP3, OMAP4 or OMAP5
|
Systems based on OMAP2, OMAP3, OMAP4 or OMAP5
|
||||||
|
|
||||||
|
|
|
@ -306,10 +306,14 @@ static void __init dra7x_evm_mmc_quirk(void)
|
||||||
|
|
||||||
static struct clockdomain *ti_sysc_find_one_clockdomain(struct clk *clk)
|
static struct clockdomain *ti_sysc_find_one_clockdomain(struct clk *clk)
|
||||||
{
|
{
|
||||||
|
struct clk_hw *hw = __clk_get_hw(clk);
|
||||||
struct clockdomain *clkdm = NULL;
|
struct clockdomain *clkdm = NULL;
|
||||||
struct clk_hw_omap *hwclk;
|
struct clk_hw_omap *hwclk;
|
||||||
|
|
||||||
hwclk = to_clk_hw_omap(__clk_get_hw(clk));
|
hwclk = to_clk_hw_omap(hw);
|
||||||
|
if (!omap2_clk_is_hw_omap(hw))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (hwclk && hwclk->clkdm_name)
|
if (hwclk && hwclk->clkdm_name)
|
||||||
clkdm = clkdm_lookup(hwclk->clkdm_name);
|
clkdm = clkdm_lookup(hwclk->clkdm_name);
|
||||||
|
|
||||||
|
|
|
@ -138,6 +138,7 @@ config ARM64
|
||||||
select HAVE_CMPXCHG_DOUBLE
|
select HAVE_CMPXCHG_DOUBLE
|
||||||
select HAVE_CMPXCHG_LOCAL
|
select HAVE_CMPXCHG_LOCAL
|
||||||
select HAVE_CONTEXT_TRACKING
|
select HAVE_CONTEXT_TRACKING
|
||||||
|
select HAVE_COPY_THREAD_TLS
|
||||||
select HAVE_DEBUG_BUGVERBOSE
|
select HAVE_DEBUG_BUGVERBOSE
|
||||||
select HAVE_DEBUG_KMEMLEAK
|
select HAVE_DEBUG_KMEMLEAK
|
||||||
select HAVE_DMA_CONTIGUOUS
|
select HAVE_DMA_CONTIGUOUS
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&mmc2_pins>;
|
pinctrl-0 = <&mmc2_pins>;
|
||||||
vmmc-supply = <®_dcdc1>;
|
vmmc-supply = <®_dcdc1>;
|
||||||
vqmmc-supply = <®_dcdc1>;
|
vqmmc-supply = <®_eldo1>;
|
||||||
bus-width = <8>;
|
bus-width = <8>;
|
||||||
non-removable;
|
non-removable;
|
||||||
cap-mmc-hw-reset;
|
cap-mmc-hw-reset;
|
||||||
|
|
|
@ -140,7 +140,7 @@
|
||||||
&mmc1 {
|
&mmc1 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&mmc1_pins>;
|
pinctrl-0 = <&mmc1_pins>;
|
||||||
vmmc-supply = <®_aldo2>;
|
vmmc-supply = <®_dcdc1>;
|
||||||
vqmmc-supply = <®_dldo4>;
|
vqmmc-supply = <®_dldo4>;
|
||||||
mmc-pwrseq = <&wifi_pwrseq>;
|
mmc-pwrseq = <&wifi_pwrseq>;
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
|
|
|
@ -61,10 +61,10 @@
|
||||||
|
|
||||||
pmu {
|
pmu {
|
||||||
compatible = "arm,armv8-pmuv3";
|
compatible = "arm,armv8-pmuv3";
|
||||||
interrupts = <0 120 8>,
|
interrupts = <0 170 4>,
|
||||||
<0 121 8>,
|
<0 171 4>,
|
||||||
<0 122 8>,
|
<0 172 4>,
|
||||||
<0 123 8>;
|
<0 173 4>;
|
||||||
interrupt-affinity = <&cpu0>,
|
interrupt-affinity = <&cpu0>,
|
||||||
<&cpu1>,
|
<&cpu1>,
|
||||||
<&cpu2>,
|
<&cpu2>,
|
||||||
|
|
|
@ -46,25 +46,47 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-keys {
|
gpio-keys {
|
||||||
compatible = "gpio-keys-polled";
|
compatible = "gpio-keys";
|
||||||
poll-interval = <100>;
|
|
||||||
|
|
||||||
key1 {
|
key1 {
|
||||||
label = "A";
|
label = "A";
|
||||||
linux,code = <BTN_0>;
|
linux,code = <BTN_0>;
|
||||||
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
|
||||||
|
interrupt-parent = <&gpio_intc>;
|
||||||
|
interrupts = <34 IRQ_TYPE_EDGE_BOTH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
key2 {
|
key2 {
|
||||||
label = "B";
|
label = "B";
|
||||||
linux,code = <BTN_1>;
|
linux,code = <BTN_1>;
|
||||||
gpios = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
|
||||||
|
interrupt-parent = <&gpio_intc>;
|
||||||
|
interrupts = <35 IRQ_TYPE_EDGE_BOTH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
key3 {
|
key3 {
|
||||||
label = "C";
|
label = "C";
|
||||||
linux,code = <BTN_2>;
|
linux,code = <BTN_2>;
|
||||||
gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
|
||||||
|
interrupt-parent = <&gpio_intc>;
|
||||||
|
interrupts = <2 IRQ_TYPE_EDGE_BOTH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mic_mute {
|
||||||
|
label = "MicMute";
|
||||||
|
linux,code = <SW_MUTE_DEVICE>;
|
||||||
|
linux,input-type = <EV_SW>;
|
||||||
|
gpios = <&gpio_ao GPIOE_2 GPIO_ACTIVE_LOW>;
|
||||||
|
interrupt-parent = <&gpio_intc>;
|
||||||
|
interrupts = <99 IRQ_TYPE_EDGE_BOTH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
power_key {
|
||||||
|
label = "PowerKey";
|
||||||
|
linux,code = <KEY_POWER>;
|
||||||
|
gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
|
||||||
|
interrupt-parent = <&gpio_intc>;
|
||||||
|
interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -569,6 +591,8 @@
|
||||||
|
|
||||||
bluetooth {
|
bluetooth {
|
||||||
compatible = "brcm,bcm43438-bt";
|
compatible = "brcm,bcm43438-bt";
|
||||||
|
interrupt-parent = <&gpio_intc>;
|
||||||
|
interrupts = <95 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
|
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
|
||||||
max-speed = <2000000>;
|
max-speed = <2000000>;
|
||||||
clocks = <&wifi32k>;
|
clocks = <&wifi32k>;
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
dcfg: syscon@1e00000 {
|
dcfg: syscon@1e00000 {
|
||||||
compatible = "fsl,ls1028a-dcfg", "syscon";
|
compatible = "fsl,ls1028a-dcfg", "syscon";
|
||||||
reg = <0x0 0x1e00000 0x0 0x10000>;
|
reg = <0x0 0x1e00000 0x0 0x10000>;
|
||||||
big-endian;
|
little-endian;
|
||||||
};
|
};
|
||||||
|
|
||||||
rst: syscon@1e60000 {
|
rst: syscon@1e60000 {
|
||||||
|
|
|
@ -740,7 +740,7 @@
|
||||||
reg = <0x30bd0000 0x10000>;
|
reg = <0x30bd0000 0x10000>;
|
||||||
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
|
clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
|
||||||
<&clk IMX8MM_CLK_SDMA1_ROOT>;
|
<&clk IMX8MM_CLK_AHB>;
|
||||||
clock-names = "ipg", "ahb";
|
clock-names = "ipg", "ahb";
|
||||||
#dma-cells = <3>;
|
#dma-cells = <3>;
|
||||||
fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
|
fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
|
||||||
|
|
|
@ -421,7 +421,7 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&pinctrl_imu>;
|
pinctrl-0 = <&pinctrl_imu>;
|
||||||
interrupt-parent = <&gpio3>;
|
interrupt-parent = <&gpio3>;
|
||||||
interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
|
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
vdd-supply = <®_3v3_p>;
|
vdd-supply = <®_3v3_p>;
|
||||||
vddio-supply = <®_3v3_p>;
|
vddio-supply = <®_3v3_p>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -60,10 +60,10 @@
|
||||||
|
|
||||||
pmu {
|
pmu {
|
||||||
compatible = "arm,armv8-pmuv3";
|
compatible = "arm,armv8-pmuv3";
|
||||||
interrupts = <0 120 8>,
|
interrupts = <0 170 4>,
|
||||||
<0 121 8>,
|
<0 171 4>,
|
||||||
<0 122 8>,
|
<0 172 4>,
|
||||||
<0 123 8>;
|
<0 173 4>;
|
||||||
interrupt-affinity = <&cpu0>,
|
interrupt-affinity = <&cpu0>,
|
||||||
<&cpu1>,
|
<&cpu1>,
|
||||||
<&cpu2>,
|
<&cpu2>,
|
||||||
|
|
|
@ -49,7 +49,8 @@
|
||||||
|
|
||||||
ir-receiver {
|
ir-receiver {
|
||||||
compatible = "gpio-ir-receiver";
|
compatible = "gpio-ir-receiver";
|
||||||
gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,rc-map-name = "rc-beelink-gs1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -85,13 +85,12 @@
|
||||||
#define PAGE_SHARED_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_WRITE)
|
#define PAGE_SHARED_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_WRITE)
|
||||||
#define PAGE_READONLY __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN)
|
#define PAGE_READONLY __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN)
|
||||||
#define PAGE_READONLY_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN)
|
#define PAGE_READONLY_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN)
|
||||||
#define PAGE_EXECONLY __pgprot(_PAGE_DEFAULT | PTE_RDONLY | PTE_NG | PTE_PXN)
|
|
||||||
|
|
||||||
#define __P000 PAGE_NONE
|
#define __P000 PAGE_NONE
|
||||||
#define __P001 PAGE_READONLY
|
#define __P001 PAGE_READONLY
|
||||||
#define __P010 PAGE_READONLY
|
#define __P010 PAGE_READONLY
|
||||||
#define __P011 PAGE_READONLY
|
#define __P011 PAGE_READONLY
|
||||||
#define __P100 PAGE_EXECONLY
|
#define __P100 PAGE_READONLY_EXEC
|
||||||
#define __P101 PAGE_READONLY_EXEC
|
#define __P101 PAGE_READONLY_EXEC
|
||||||
#define __P110 PAGE_READONLY_EXEC
|
#define __P110 PAGE_READONLY_EXEC
|
||||||
#define __P111 PAGE_READONLY_EXEC
|
#define __P111 PAGE_READONLY_EXEC
|
||||||
|
@ -100,7 +99,7 @@
|
||||||
#define __S001 PAGE_READONLY
|
#define __S001 PAGE_READONLY
|
||||||
#define __S010 PAGE_SHARED
|
#define __S010 PAGE_SHARED
|
||||||
#define __S011 PAGE_SHARED
|
#define __S011 PAGE_SHARED
|
||||||
#define __S100 PAGE_EXECONLY
|
#define __S100 PAGE_READONLY_EXEC
|
||||||
#define __S101 PAGE_READONLY_EXEC
|
#define __S101 PAGE_READONLY_EXEC
|
||||||
#define __S110 PAGE_SHARED_EXEC
|
#define __S110 PAGE_SHARED_EXEC
|
||||||
#define __S111 PAGE_SHARED_EXEC
|
#define __S111 PAGE_SHARED_EXEC
|
||||||
|
|
|
@ -96,12 +96,8 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
|
||||||
#define pte_dirty(pte) (pte_sw_dirty(pte) || pte_hw_dirty(pte))
|
#define pte_dirty(pte) (pte_sw_dirty(pte) || pte_hw_dirty(pte))
|
||||||
|
|
||||||
#define pte_valid(pte) (!!(pte_val(pte) & PTE_VALID))
|
#define pte_valid(pte) (!!(pte_val(pte) & PTE_VALID))
|
||||||
/*
|
|
||||||
* Execute-only user mappings do not have the PTE_USER bit set. All valid
|
|
||||||
* kernel mappings have the PTE_UXN bit set.
|
|
||||||
*/
|
|
||||||
#define pte_valid_not_user(pte) \
|
#define pte_valid_not_user(pte) \
|
||||||
((pte_val(pte) & (PTE_VALID | PTE_USER | PTE_UXN)) == (PTE_VALID | PTE_UXN))
|
((pte_val(pte) & (PTE_VALID | PTE_USER)) == PTE_VALID)
|
||||||
#define pte_valid_young(pte) \
|
#define pte_valid_young(pte) \
|
||||||
((pte_val(pte) & (PTE_VALID | PTE_AF)) == (PTE_VALID | PTE_AF))
|
((pte_val(pte) & (PTE_VALID | PTE_AF)) == (PTE_VALID | PTE_AF))
|
||||||
#define pte_valid_user(pte) \
|
#define pte_valid_user(pte) \
|
||||||
|
@ -117,8 +113,8 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* p??_access_permitted() is true for valid user mappings (subject to the
|
* p??_access_permitted() is true for valid user mappings (subject to the
|
||||||
* write permission check) other than user execute-only which do not have the
|
* write permission check). PROT_NONE mappings do not have the PTE_VALID bit
|
||||||
* PTE_USER bit set. PROT_NONE mappings do not have the PTE_VALID bit set.
|
* set.
|
||||||
*/
|
*/
|
||||||
#define pte_access_permitted(pte, write) \
|
#define pte_access_permitted(pte, write) \
|
||||||
(pte_valid_user(pte) && (!(write) || pte_write(pte)))
|
(pte_valid_user(pte) && (!(write) || pte_write(pte)))
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define __ARCH_WANT_SYS_CLONE
|
#define __ARCH_WANT_SYS_CLONE
|
||||||
#define __ARCH_WANT_SYS_CLONE3
|
|
||||||
|
|
||||||
#ifndef __COMPAT_SYSCALL_NR
|
#ifndef __COMPAT_SYSCALL_NR
|
||||||
#include <uapi/asm/unistd.h>
|
#include <uapi/asm/unistd.h>
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
#define __ARCH_WANT_NEW_STAT
|
#define __ARCH_WANT_NEW_STAT
|
||||||
#define __ARCH_WANT_SET_GET_RLIMIT
|
#define __ARCH_WANT_SET_GET_RLIMIT
|
||||||
#define __ARCH_WANT_TIME32_SYSCALLS
|
#define __ARCH_WANT_TIME32_SYSCALLS
|
||||||
|
#define __ARCH_WANT_SYS_CLONE3
|
||||||
|
|
||||||
#include <asm-generic/unistd.h>
|
#include <asm-generic/unistd.h>
|
||||||
|
|
|
@ -360,8 +360,8 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
|
||||||
|
|
||||||
asmlinkage void ret_from_fork(void) asm("ret_from_fork");
|
asmlinkage void ret_from_fork(void) asm("ret_from_fork");
|
||||||
|
|
||||||
int copy_thread(unsigned long clone_flags, unsigned long stack_start,
|
int copy_thread_tls(unsigned long clone_flags, unsigned long stack_start,
|
||||||
unsigned long stk_sz, struct task_struct *p)
|
unsigned long stk_sz, struct task_struct *p, unsigned long tls)
|
||||||
{
|
{
|
||||||
struct pt_regs *childregs = task_pt_regs(p);
|
struct pt_regs *childregs = task_pt_regs(p);
|
||||||
|
|
||||||
|
@ -394,11 +394,11 @@ int copy_thread(unsigned long clone_flags, unsigned long stack_start,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If a TLS pointer was passed to clone (4th argument), use it
|
* If a TLS pointer was passed to clone, use it for the new
|
||||||
* for the new thread.
|
* thread.
|
||||||
*/
|
*/
|
||||||
if (clone_flags & CLONE_SETTLS)
|
if (clone_flags & CLONE_SETTLS)
|
||||||
p->thread.uw.tp_value = childregs->regs[3];
|
p->thread.uw.tp_value = tls;
|
||||||
} else {
|
} else {
|
||||||
memset(childregs, 0, sizeof(struct pt_regs));
|
memset(childregs, 0, sizeof(struct pt_regs));
|
||||||
childregs->pstate = PSR_MODE_EL1h;
|
childregs->pstate = PSR_MODE_EL1h;
|
||||||
|
|
|
@ -445,7 +445,7 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,
|
||||||
const struct fault_info *inf;
|
const struct fault_info *inf;
|
||||||
struct mm_struct *mm = current->mm;
|
struct mm_struct *mm = current->mm;
|
||||||
vm_fault_t fault, major = 0;
|
vm_fault_t fault, major = 0;
|
||||||
unsigned long vm_flags = VM_READ | VM_WRITE;
|
unsigned long vm_flags = VM_READ | VM_WRITE | VM_EXEC;
|
||||||
unsigned int mm_flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;
|
unsigned int mm_flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;
|
||||||
|
|
||||||
if (kprobe_page_fault(regs, esr))
|
if (kprobe_page_fault(regs, esr))
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
#define PG_dcache_dirty PG_arch_1
|
#define PG_dcache_dirty PG_arch_1
|
||||||
|
|
||||||
void flush_icache_range(unsigned long start, unsigned long end);
|
void flush_icache_range(unsigned long start, unsigned long end);
|
||||||
|
#define flush_icache_range flush_icache_range
|
||||||
|
|
||||||
void flush_icache_page(struct vm_area_struct *vma, struct page *page);
|
void flush_icache_page(struct vm_area_struct *vma, struct page *page);
|
||||||
|
#define flush_icache_page flush_icache_page
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_CACHE_ALIASING
|
#ifdef CONFIG_CPU_CACHE_ALIASING
|
||||||
void flush_cache_mm(struct mm_struct *mm);
|
void flush_cache_mm(struct mm_struct *mm);
|
||||||
void flush_cache_dup_mm(struct mm_struct *mm);
|
void flush_cache_dup_mm(struct mm_struct *mm);
|
||||||
|
@ -40,12 +44,11 @@ void invalidate_kernel_vmap_range(void *addr, int size);
|
||||||
#define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&(mapping)->i_pages)
|
#define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&(mapping)->i_pages)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include <asm-generic/cacheflush.h>
|
|
||||||
#undef flush_icache_range
|
|
||||||
#undef flush_icache_page
|
|
||||||
#undef flush_icache_user_range
|
|
||||||
void flush_icache_user_range(struct vm_area_struct *vma, struct page *page,
|
void flush_icache_user_range(struct vm_area_struct *vma, struct page *page,
|
||||||
unsigned long addr, int len);
|
unsigned long addr, int len);
|
||||||
|
#define flush_icache_user_range flush_icache_user_range
|
||||||
|
|
||||||
|
#include <asm-generic/cacheflush.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __NDS32_CACHEFLUSH_H__ */
|
#endif /* __NDS32_CACHEFLUSH_H__ */
|
||||||
|
|
|
@ -195,7 +195,7 @@ extern void paging_init(void);
|
||||||
#define pte_unmap(pte) do { } while (0)
|
#define pte_unmap(pte) do { } while (0)
|
||||||
#define pte_unmap_nested(pte) do { } while (0)
|
#define pte_unmap_nested(pte) do { } while (0)
|
||||||
|
|
||||||
#define pmd_off_k(address) pmd_offset(pgd_offset_k(address), address)
|
#define pmd_off_k(address) pmd_offset(pud_offset(p4d_offset(pgd_offset_k(address), (address)), (address)), (address))
|
||||||
|
|
||||||
#define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval)
|
#define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval)
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -62,6 +62,7 @@ config PARISC
|
||||||
select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
|
select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
|
||||||
select HAVE_KPROBES_ON_FTRACE
|
select HAVE_KPROBES_ON_FTRACE
|
||||||
select HAVE_DYNAMIC_FTRACE_WITH_REGS
|
select HAVE_DYNAMIC_FTRACE_WITH_REGS
|
||||||
|
select HAVE_COPY_THREAD_TLS
|
||||||
|
|
||||||
help
|
help
|
||||||
The PA-RISC microprocessor is designed by Hewlett-Packard and used
|
The PA-RISC microprocessor is designed by Hewlett-Packard and used
|
||||||
|
|
|
@ -889,8 +889,8 @@ static void print_parisc_device(struct parisc_device *dev)
|
||||||
static int count;
|
static int count;
|
||||||
|
|
||||||
print_pa_hwpath(dev, hw_path);
|
print_pa_hwpath(dev, hw_path);
|
||||||
pr_info("%d. %s at 0x%px [%s] { %d, 0x%x, 0x%.3x, 0x%.5x }",
|
pr_info("%d. %s at %pap [%s] { %d, 0x%x, 0x%.3x, 0x%.5x }",
|
||||||
++count, dev->name, (void*) dev->hpa.start, hw_path, dev->id.hw_type,
|
++count, dev->name, &(dev->hpa.start), hw_path, dev->id.hw_type,
|
||||||
dev->id.hversion_rev, dev->id.hversion, dev->id.sversion);
|
dev->id.hversion_rev, dev->id.hversion, dev->id.sversion);
|
||||||
|
|
||||||
if (dev->num_addrs) {
|
if (dev->num_addrs) {
|
||||||
|
|
|
@ -208,8 +208,8 @@ arch_initcall(parisc_idle_init);
|
||||||
* Copy architecture-specific thread state
|
* Copy architecture-specific thread state
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
copy_thread(unsigned long clone_flags, unsigned long usp,
|
copy_thread_tls(unsigned long clone_flags, unsigned long usp,
|
||||||
unsigned long kthread_arg, struct task_struct *p)
|
unsigned long kthread_arg, struct task_struct *p, unsigned long tls)
|
||||||
{
|
{
|
||||||
struct pt_regs *cregs = &(p->thread.regs);
|
struct pt_regs *cregs = &(p->thread.regs);
|
||||||
void *stack = task_stack_page(p);
|
void *stack = task_stack_page(p);
|
||||||
|
@ -254,9 +254,9 @@ copy_thread(unsigned long clone_flags, unsigned long usp,
|
||||||
cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE;
|
cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE;
|
||||||
cregs->kpc = (unsigned long) &child_return;
|
cregs->kpc = (unsigned long) &child_return;
|
||||||
|
|
||||||
/* Setup thread TLS area from the 4th parameter in clone */
|
/* Setup thread TLS area */
|
||||||
if (clone_flags & CLONE_SETTLS)
|
if (clone_flags & CLONE_SETTLS)
|
||||||
cregs->cr27 = cregs->gr[23];
|
cregs->cr27 = tls;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -401,7 +401,7 @@ static void __init map_pages(unsigned long start_vaddr,
|
||||||
pmd = (pmd_t *) __pa(pmd);
|
pmd = (pmd_t *) __pa(pmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
pgd_populate(NULL, pg_dir, __va(pmd));
|
pud_populate(NULL, (pud_t *)pg_dir, __va(pmd));
|
||||||
#endif
|
#endif
|
||||||
pg_dir++;
|
pg_dir++;
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ config RISCV
|
||||||
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
|
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
|
||||||
select HAVE_ARCH_MMAP_RND_BITS if MMU
|
select HAVE_ARCH_MMAP_RND_BITS if MMU
|
||||||
select ARCH_HAS_GCOV_PROFILE_ALL
|
select ARCH_HAS_GCOV_PROFILE_ALL
|
||||||
|
select HAVE_COPY_THREAD_TLS
|
||||||
|
|
||||||
config ARCH_MMAP_RND_BITS_MIN
|
config ARCH_MMAP_RND_BITS_MIN
|
||||||
default 18 if 64BIT
|
default 18 if 64BIT
|
||||||
|
|
|
@ -5,4 +5,8 @@
|
||||||
#include <linux/ftrace.h>
|
#include <linux/ftrace.h>
|
||||||
#include <asm-generic/asm-prototypes.h>
|
#include <asm-generic/asm-prototypes.h>
|
||||||
|
|
||||||
|
long long __lshrti3(long long a, int b);
|
||||||
|
long long __ashrti3(long long a, int b);
|
||||||
|
long long __ashlti3(long long a, int b);
|
||||||
|
|
||||||
#endif /* _ASM_RISCV_PROTOTYPES_H */
|
#endif /* _ASM_RISCV_PROTOTYPES_H */
|
||||||
|
|
|
@ -80,7 +80,9 @@ _start_kernel:
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
li t0, CONFIG_NR_CPUS
|
li t0, CONFIG_NR_CPUS
|
||||||
bgeu a0, t0, .Lsecondary_park
|
blt a0, t0, .Lgood_cores
|
||||||
|
tail .Lsecondary_park
|
||||||
|
.Lgood_cores:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Pick one hart to run the main boot sequence */
|
/* Pick one hart to run the main boot sequence */
|
||||||
|
@ -209,11 +211,6 @@ relocate:
|
||||||
tail smp_callin
|
tail smp_callin
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.align 2
|
|
||||||
.Lsecondary_park:
|
|
||||||
/* We lack SMP support or have too many harts, so park this hart */
|
|
||||||
wfi
|
|
||||||
j .Lsecondary_park
|
|
||||||
END(_start)
|
END(_start)
|
||||||
|
|
||||||
#ifdef CONFIG_RISCV_M_MODE
|
#ifdef CONFIG_RISCV_M_MODE
|
||||||
|
@ -251,7 +248,7 @@ ENTRY(reset_regs)
|
||||||
#ifdef CONFIG_FPU
|
#ifdef CONFIG_FPU
|
||||||
csrr t0, CSR_MISA
|
csrr t0, CSR_MISA
|
||||||
andi t0, t0, (COMPAT_HWCAP_ISA_F | COMPAT_HWCAP_ISA_D)
|
andi t0, t0, (COMPAT_HWCAP_ISA_F | COMPAT_HWCAP_ISA_D)
|
||||||
bnez t0, .Lreset_regs_done
|
beqz t0, .Lreset_regs_done
|
||||||
|
|
||||||
li t1, SR_FS
|
li t1, SR_FS
|
||||||
csrs CSR_STATUS, t1
|
csrs CSR_STATUS, t1
|
||||||
|
@ -295,6 +292,13 @@ ENTRY(reset_regs)
|
||||||
END(reset_regs)
|
END(reset_regs)
|
||||||
#endif /* CONFIG_RISCV_M_MODE */
|
#endif /* CONFIG_RISCV_M_MODE */
|
||||||
|
|
||||||
|
.section ".text", "ax",@progbits
|
||||||
|
.align 2
|
||||||
|
.Lsecondary_park:
|
||||||
|
/* We lack SMP support or have too many harts, so park this hart */
|
||||||
|
wfi
|
||||||
|
j .Lsecondary_park
|
||||||
|
|
||||||
__PAGE_ALIGNED_BSS
|
__PAGE_ALIGNED_BSS
|
||||||
/* Empty zero page */
|
/* Empty zero page */
|
||||||
.balign PAGE_SIZE
|
.balign PAGE_SIZE
|
||||||
|
|
|
@ -99,8 +99,8 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int copy_thread(unsigned long clone_flags, unsigned long usp,
|
int copy_thread_tls(unsigned long clone_flags, unsigned long usp,
|
||||||
unsigned long arg, struct task_struct *p)
|
unsigned long arg, struct task_struct *p, unsigned long tls)
|
||||||
{
|
{
|
||||||
struct pt_regs *childregs = task_pt_regs(p);
|
struct pt_regs *childregs = task_pt_regs(p);
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
|
||||||
if (usp) /* User fork */
|
if (usp) /* User fork */
|
||||||
childregs->sp = usp;
|
childregs->sp = usp;
|
||||||
if (clone_flags & CLONE_SETTLS)
|
if (clone_flags & CLONE_SETTLS)
|
||||||
childregs->tp = childregs->a5;
|
childregs->tp = tls;
|
||||||
childregs->a0 = 0; /* Return value of fork() */
|
childregs->a0 = 0; /* Return value of fork() */
|
||||||
p->thread.ra = (unsigned long)ret_from_fork;
|
p->thread.ra = (unsigned long)ret_from_fork;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,8 @@ quiet_cmd_vdsold = VDSOLD $@
|
||||||
cmd_vdsold = $(CC) $(KBUILD_CFLAGS) $(call cc-option, -no-pie) -nostdlib -nostartfiles $(SYSCFLAGS_$(@F)) \
|
cmd_vdsold = $(CC) $(KBUILD_CFLAGS) $(call cc-option, -no-pie) -nostdlib -nostartfiles $(SYSCFLAGS_$(@F)) \
|
||||||
-Wl,-T,$(filter-out FORCE,$^) -o $@.tmp && \
|
-Wl,-T,$(filter-out FORCE,$^) -o $@.tmp && \
|
||||||
$(CROSS_COMPILE)objcopy \
|
$(CROSS_COMPILE)objcopy \
|
||||||
$(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@
|
$(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
||||||
|
rm $@.tmp
|
||||||
|
|
||||||
# install commands for the unstripped file
|
# install commands for the unstripped file
|
||||||
quiet_cmd_vdso_install = INSTALL $@
|
quiet_cmd_vdso_install = INSTALL $@
|
||||||
|
|
|
@ -4,34 +4,73 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
#include <asm-generic/export.h>
|
||||||
|
|
||||||
ENTRY(__lshrti3)
|
SYM_FUNC_START(__lshrti3)
|
||||||
beqz a2, .L1
|
beqz a2, .L1
|
||||||
li a5,64
|
li a5,64
|
||||||
sub a5,a5,a2
|
sub a5,a5,a2
|
||||||
addi sp,sp,-16
|
|
||||||
sext.w a4,a5
|
sext.w a4,a5
|
||||||
blez a5, .L2
|
blez a5, .L2
|
||||||
sext.w a2,a2
|
sext.w a2,a2
|
||||||
sll a4,a1,a4
|
|
||||||
srl a0,a0,a2
|
srl a0,a0,a2
|
||||||
srl a1,a1,a2
|
sll a4,a1,a4
|
||||||
|
srl a2,a1,a2
|
||||||
or a0,a0,a4
|
or a0,a0,a4
|
||||||
sd a1,8(sp)
|
mv a1,a2
|
||||||
sd a0,0(sp)
|
|
||||||
ld a0,0(sp)
|
|
||||||
ld a1,8(sp)
|
|
||||||
addi sp,sp,16
|
|
||||||
ret
|
|
||||||
.L1:
|
.L1:
|
||||||
ret
|
ret
|
||||||
.L2:
|
.L2:
|
||||||
negw a4,a4
|
negw a0,a4
|
||||||
srl a1,a1,a4
|
li a2,0
|
||||||
sd a1,0(sp)
|
srl a0,a1,a0
|
||||||
sd zero,8(sp)
|
mv a1,a2
|
||||||
ld a0,0(sp)
|
|
||||||
ld a1,8(sp)
|
|
||||||
addi sp,sp,16
|
|
||||||
ret
|
ret
|
||||||
ENDPROC(__lshrti3)
|
SYM_FUNC_END(__lshrti3)
|
||||||
|
EXPORT_SYMBOL(__lshrti3)
|
||||||
|
|
||||||
|
SYM_FUNC_START(__ashrti3)
|
||||||
|
beqz a2, .L3
|
||||||
|
li a5,64
|
||||||
|
sub a5,a5,a2
|
||||||
|
sext.w a4,a5
|
||||||
|
blez a5, .L4
|
||||||
|
sext.w a2,a2
|
||||||
|
srl a0,a0,a2
|
||||||
|
sll a4,a1,a4
|
||||||
|
sra a2,a1,a2
|
||||||
|
or a0,a0,a4
|
||||||
|
mv a1,a2
|
||||||
|
.L3:
|
||||||
|
ret
|
||||||
|
.L4:
|
||||||
|
negw a0,a4
|
||||||
|
srai a2,a1,0x3f
|
||||||
|
sra a0,a1,a0
|
||||||
|
mv a1,a2
|
||||||
|
ret
|
||||||
|
SYM_FUNC_END(__ashrti3)
|
||||||
|
EXPORT_SYMBOL(__ashrti3)
|
||||||
|
|
||||||
|
SYM_FUNC_START(__ashlti3)
|
||||||
|
beqz a2, .L5
|
||||||
|
li a5,64
|
||||||
|
sub a5,a5,a2
|
||||||
|
sext.w a4,a5
|
||||||
|
blez a5, .L6
|
||||||
|
sext.w a2,a2
|
||||||
|
sll a1,a1,a2
|
||||||
|
srl a4,a0,a4
|
||||||
|
sll a2,a0,a2
|
||||||
|
or a1,a1,a4
|
||||||
|
mv a0,a2
|
||||||
|
.L5:
|
||||||
|
ret
|
||||||
|
.L6:
|
||||||
|
negw a1,a4
|
||||||
|
li a2,0
|
||||||
|
sll a1,a0,a1
|
||||||
|
mv a0,a2
|
||||||
|
ret
|
||||||
|
SYM_FUNC_END(__ashlti3)
|
||||||
|
EXPORT_SYMBOL(__ashlti3)
|
||||||
|
|
|
@ -1052,7 +1052,7 @@ static void __init log_component_list(void)
|
||||||
|
|
||||||
if (!early_ipl_comp_list_addr)
|
if (!early_ipl_comp_list_addr)
|
||||||
return;
|
return;
|
||||||
if (ipl_block.hdr.flags & IPL_PL_FLAG_IPLSR)
|
if (ipl_block.hdr.flags & IPL_PL_FLAG_SIPL)
|
||||||
pr_info("Linux is running with Secure-IPL enabled\n");
|
pr_info("Linux is running with Secure-IPL enabled\n");
|
||||||
else
|
else
|
||||||
pr_info("Linux is running with Secure-IPL disabled\n");
|
pr_info("Linux is running with Secure-IPL disabled\n");
|
||||||
|
|
|
@ -14,6 +14,7 @@ config UML
|
||||||
select HAVE_FUTEX_CMPXCHG if FUTEX
|
select HAVE_FUTEX_CMPXCHG if FUTEX
|
||||||
select HAVE_DEBUG_KMEMLEAK
|
select HAVE_DEBUG_KMEMLEAK
|
||||||
select HAVE_DEBUG_BUGVERBOSE
|
select HAVE_DEBUG_BUGVERBOSE
|
||||||
|
select HAVE_COPY_THREAD_TLS
|
||||||
select GENERIC_IRQ_SHOW
|
select GENERIC_IRQ_SHOW
|
||||||
select GENERIC_CPU_DEVICES
|
select GENERIC_CPU_DEVICES
|
||||||
select GENERIC_CLOCKEVENTS
|
select GENERIC_CLOCKEVENTS
|
||||||
|
|
|
@ -36,7 +36,7 @@ extern long subarch_ptrace(struct task_struct *child, long request,
|
||||||
extern unsigned long getreg(struct task_struct *child, int regno);
|
extern unsigned long getreg(struct task_struct *child, int regno);
|
||||||
extern int putreg(struct task_struct *child, int regno, unsigned long value);
|
extern int putreg(struct task_struct *child, int regno, unsigned long value);
|
||||||
|
|
||||||
extern int arch_copy_tls(struct task_struct *new);
|
extern int arch_set_tls(struct task_struct *new, unsigned long tls);
|
||||||
extern void clear_flushed_tls(struct task_struct *task);
|
extern void clear_flushed_tls(struct task_struct *task);
|
||||||
extern int syscall_trace_enter(struct pt_regs *regs);
|
extern int syscall_trace_enter(struct pt_regs *regs);
|
||||||
extern void syscall_trace_leave(struct pt_regs *regs);
|
extern void syscall_trace_leave(struct pt_regs *regs);
|
||||||
|
|
|
@ -153,8 +153,8 @@ void fork_handler(void)
|
||||||
userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs);
|
userspace(¤t->thread.regs.regs, current_thread_info()->aux_fp_regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
int copy_thread(unsigned long clone_flags, unsigned long sp,
|
int copy_thread_tls(unsigned long clone_flags, unsigned long sp,
|
||||||
unsigned long arg, struct task_struct * p)
|
unsigned long arg, struct task_struct * p, unsigned long tls)
|
||||||
{
|
{
|
||||||
void (*handler)(void);
|
void (*handler)(void);
|
||||||
int kthread = current->flags & PF_KTHREAD;
|
int kthread = current->flags & PF_KTHREAD;
|
||||||
|
@ -188,7 +188,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
|
||||||
* Set a new TLS for the child thread?
|
* Set a new TLS for the child thread?
|
||||||
*/
|
*/
|
||||||
if (clone_flags & CLONE_SETTLS)
|
if (clone_flags & CLONE_SETTLS)
|
||||||
ret = arch_copy_tls(p);
|
ret = arch_set_tls(p, tls);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -244,6 +244,11 @@ SYM_FUNC_START(efi32_stub_entry)
|
||||||
leal efi32_config(%ebp), %eax
|
leal efi32_config(%ebp), %eax
|
||||||
movl %eax, efi_config(%ebp)
|
movl %eax, efi_config(%ebp)
|
||||||
|
|
||||||
|
/* Disable paging */
|
||||||
|
movl %cr0, %eax
|
||||||
|
btrl $X86_CR0_PG_BIT, %eax
|
||||||
|
movl %eax, %cr0
|
||||||
|
|
||||||
jmp startup_32
|
jmp startup_32
|
||||||
SYM_FUNC_END(efi32_stub_entry)
|
SYM_FUNC_END(efi32_stub_entry)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#define PCI_DEVICE_ID_INTEL_SKL_HQ_IMC 0x1910
|
#define PCI_DEVICE_ID_INTEL_SKL_HQ_IMC 0x1910
|
||||||
#define PCI_DEVICE_ID_INTEL_SKL_SD_IMC 0x190f
|
#define PCI_DEVICE_ID_INTEL_SKL_SD_IMC 0x190f
|
||||||
#define PCI_DEVICE_ID_INTEL_SKL_SQ_IMC 0x191f
|
#define PCI_DEVICE_ID_INTEL_SKL_SQ_IMC 0x191f
|
||||||
|
#define PCI_DEVICE_ID_INTEL_SKL_E3_IMC 0x1918
|
||||||
#define PCI_DEVICE_ID_INTEL_KBL_Y_IMC 0x590c
|
#define PCI_DEVICE_ID_INTEL_KBL_Y_IMC 0x590c
|
||||||
#define PCI_DEVICE_ID_INTEL_KBL_U_IMC 0x5904
|
#define PCI_DEVICE_ID_INTEL_KBL_U_IMC 0x5904
|
||||||
#define PCI_DEVICE_ID_INTEL_KBL_UQ_IMC 0x5914
|
#define PCI_DEVICE_ID_INTEL_KBL_UQ_IMC 0x5914
|
||||||
|
@ -657,6 +658,10 @@ static const struct pci_device_id skl_uncore_pci_ids[] = {
|
||||||
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SKL_SQ_IMC),
|
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SKL_SQ_IMC),
|
||||||
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
|
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
|
||||||
},
|
},
|
||||||
|
{ /* IMC */
|
||||||
|
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SKL_E3_IMC),
|
||||||
|
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
|
||||||
|
},
|
||||||
{ /* IMC */
|
{ /* IMC */
|
||||||
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_KBL_Y_IMC),
|
PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_KBL_Y_IMC),
|
||||||
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
|
.driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0),
|
||||||
|
@ -826,6 +831,7 @@ static const struct imc_uncore_pci_dev desktop_imc_pci_ids[] = {
|
||||||
IMC_DEV(SKL_HQ_IMC, &skl_uncore_pci_driver), /* 6th Gen Core H Quad Core */
|
IMC_DEV(SKL_HQ_IMC, &skl_uncore_pci_driver), /* 6th Gen Core H Quad Core */
|
||||||
IMC_DEV(SKL_SD_IMC, &skl_uncore_pci_driver), /* 6th Gen Core S Dual Core */
|
IMC_DEV(SKL_SD_IMC, &skl_uncore_pci_driver), /* 6th Gen Core S Dual Core */
|
||||||
IMC_DEV(SKL_SQ_IMC, &skl_uncore_pci_driver), /* 6th Gen Core S Quad Core */
|
IMC_DEV(SKL_SQ_IMC, &skl_uncore_pci_driver), /* 6th Gen Core S Quad Core */
|
||||||
|
IMC_DEV(SKL_E3_IMC, &skl_uncore_pci_driver), /* Xeon E3 V5 Gen Core processor */
|
||||||
IMC_DEV(KBL_Y_IMC, &skl_uncore_pci_driver), /* 7th Gen Core Y */
|
IMC_DEV(KBL_Y_IMC, &skl_uncore_pci_driver), /* 7th Gen Core Y */
|
||||||
IMC_DEV(KBL_U_IMC, &skl_uncore_pci_driver), /* 7th Gen Core U */
|
IMC_DEV(KBL_U_IMC, &skl_uncore_pci_driver), /* 7th Gen Core U */
|
||||||
IMC_DEV(KBL_UQ_IMC, &skl_uncore_pci_driver), /* 7th Gen Core U Quad Core */
|
IMC_DEV(KBL_UQ_IMC, &skl_uncore_pci_driver), /* 7th Gen Core U Quad Core */
|
||||||
|
|
|
@ -369,11 +369,6 @@
|
||||||
#define SNR_M2M_PCI_PMON_BOX_CTL 0x438
|
#define SNR_M2M_PCI_PMON_BOX_CTL 0x438
|
||||||
#define SNR_M2M_PCI_PMON_UMASK_EXT 0xff
|
#define SNR_M2M_PCI_PMON_UMASK_EXT 0xff
|
||||||
|
|
||||||
/* SNR PCIE3 */
|
|
||||||
#define SNR_PCIE3_PCI_PMON_CTL0 0x508
|
|
||||||
#define SNR_PCIE3_PCI_PMON_CTR0 0x4e8
|
|
||||||
#define SNR_PCIE3_PCI_PMON_BOX_CTL 0x4e4
|
|
||||||
|
|
||||||
/* SNR IMC */
|
/* SNR IMC */
|
||||||
#define SNR_IMC_MMIO_PMON_FIXED_CTL 0x54
|
#define SNR_IMC_MMIO_PMON_FIXED_CTL 0x54
|
||||||
#define SNR_IMC_MMIO_PMON_FIXED_CTR 0x38
|
#define SNR_IMC_MMIO_PMON_FIXED_CTR 0x38
|
||||||
|
@ -4328,27 +4323,12 @@ static struct intel_uncore_type snr_uncore_m2m = {
|
||||||
.format_group = &snr_m2m_uncore_format_group,
|
.format_group = &snr_m2m_uncore_format_group,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct intel_uncore_type snr_uncore_pcie3 = {
|
|
||||||
.name = "pcie3",
|
|
||||||
.num_counters = 4,
|
|
||||||
.num_boxes = 1,
|
|
||||||
.perf_ctr_bits = 48,
|
|
||||||
.perf_ctr = SNR_PCIE3_PCI_PMON_CTR0,
|
|
||||||
.event_ctl = SNR_PCIE3_PCI_PMON_CTL0,
|
|
||||||
.event_mask = SNBEP_PMON_RAW_EVENT_MASK,
|
|
||||||
.box_ctl = SNR_PCIE3_PCI_PMON_BOX_CTL,
|
|
||||||
.ops = &ivbep_uncore_pci_ops,
|
|
||||||
.format_group = &ivbep_uncore_format_group,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SNR_PCI_UNCORE_M2M,
|
SNR_PCI_UNCORE_M2M,
|
||||||
SNR_PCI_UNCORE_PCIE3,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct intel_uncore_type *snr_pci_uncores[] = {
|
static struct intel_uncore_type *snr_pci_uncores[] = {
|
||||||
[SNR_PCI_UNCORE_M2M] = &snr_uncore_m2m,
|
[SNR_PCI_UNCORE_M2M] = &snr_uncore_m2m,
|
||||||
[SNR_PCI_UNCORE_PCIE3] = &snr_uncore_pcie3,
|
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4357,10 +4337,6 @@ static const struct pci_device_id snr_uncore_pci_ids[] = {
|
||||||
PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x344a),
|
PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x344a),
|
||||||
.driver_data = UNCORE_PCI_DEV_FULL_DATA(12, 0, SNR_PCI_UNCORE_M2M, 0),
|
.driver_data = UNCORE_PCI_DEV_FULL_DATA(12, 0, SNR_PCI_UNCORE_M2M, 0),
|
||||||
},
|
},
|
||||||
{ /* PCIe3 */
|
|
||||||
PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x334a),
|
|
||||||
.driver_data = UNCORE_PCI_DEV_FULL_DATA(4, 0, SNR_PCI_UNCORE_PCIE3, 0),
|
|
||||||
},
|
|
||||||
{ /* end: all zeroes */ }
|
{ /* end: all zeroes */ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4536,6 +4512,7 @@ static struct uncore_event_desc snr_uncore_imc_freerunning_events[] = {
|
||||||
INTEL_UNCORE_EVENT_DESC(write, "event=0xff,umask=0x21"),
|
INTEL_UNCORE_EVENT_DESC(write, "event=0xff,umask=0x21"),
|
||||||
INTEL_UNCORE_EVENT_DESC(write.scale, "3.814697266e-6"),
|
INTEL_UNCORE_EVENT_DESC(write.scale, "3.814697266e-6"),
|
||||||
INTEL_UNCORE_EVENT_DESC(write.unit, "MiB"),
|
INTEL_UNCORE_EVENT_DESC(write.unit, "MiB"),
|
||||||
|
{ /* end: all zeroes */ },
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct intel_uncore_ops snr_uncore_imc_freerunning_ops = {
|
static struct intel_uncore_ops snr_uncore_imc_freerunning_ops = {
|
||||||
|
|
|
@ -615,9 +615,9 @@ static void early_detect_mem_encrypt(struct cpuinfo_x86 *c)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
clear_all:
|
clear_all:
|
||||||
clear_cpu_cap(c, X86_FEATURE_SME);
|
setup_clear_cpu_cap(X86_FEATURE_SME);
|
||||||
clear_sev:
|
clear_sev:
|
||||||
clear_cpu_cap(c, X86_FEATURE_SEV);
|
setup_clear_cpu_cap(X86_FEATURE_SEV);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -467,6 +467,7 @@ static int thermal_throttle_online(unsigned int cpu)
|
||||||
{
|
{
|
||||||
struct thermal_state *state = &per_cpu(thermal_state, cpu);
|
struct thermal_state *state = &per_cpu(thermal_state, cpu);
|
||||||
struct device *dev = get_cpu_device(cpu);
|
struct device *dev = get_cpu_device(cpu);
|
||||||
|
u32 l;
|
||||||
|
|
||||||
state->package_throttle.level = PACKAGE_LEVEL;
|
state->package_throttle.level = PACKAGE_LEVEL;
|
||||||
state->core_throttle.level = CORE_LEVEL;
|
state->core_throttle.level = CORE_LEVEL;
|
||||||
|
@ -474,6 +475,10 @@ static int thermal_throttle_online(unsigned int cpu)
|
||||||
INIT_DELAYED_WORK(&state->package_throttle.therm_work, throttle_active_work);
|
INIT_DELAYED_WORK(&state->package_throttle.therm_work, throttle_active_work);
|
||||||
INIT_DELAYED_WORK(&state->core_throttle.therm_work, throttle_active_work);
|
INIT_DELAYED_WORK(&state->core_throttle.therm_work, throttle_active_work);
|
||||||
|
|
||||||
|
/* Unmask the thermal vector after the above workqueues are initialized. */
|
||||||
|
l = apic_read(APIC_LVTTHMR);
|
||||||
|
apic_write(APIC_LVTTHMR, l & ~APIC_LVT_MASKED);
|
||||||
|
|
||||||
return thermal_throttle_add_dev(dev, cpu);
|
return thermal_throttle_add_dev(dev, cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -722,10 +727,6 @@ void intel_init_thermal(struct cpuinfo_x86 *c)
|
||||||
rdmsr(MSR_IA32_MISC_ENABLE, l, h);
|
rdmsr(MSR_IA32_MISC_ENABLE, l, h);
|
||||||
wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h);
|
wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h);
|
||||||
|
|
||||||
/* Unmask the thermal vector: */
|
|
||||||
l = apic_read(APIC_LVTTHMR);
|
|
||||||
apic_write(APIC_LVTTHMR, l & ~APIC_LVT_MASKED);
|
|
||||||
|
|
||||||
pr_info_once("CPU0: Thermal monitoring enabled (%s)\n",
|
pr_info_once("CPU0: Thermal monitoring enabled (%s)\n",
|
||||||
tm2 ? "TM2" : "TM1");
|
tm2 ? "TM2" : "TM1");
|
||||||
|
|
||||||
|
|
|
@ -618,7 +618,7 @@ static void domain_remove_cpu(int cpu, struct rdt_resource *r)
|
||||||
if (static_branch_unlikely(&rdt_mon_enable_key))
|
if (static_branch_unlikely(&rdt_mon_enable_key))
|
||||||
rmdir_mondata_subdir_allrdtgrp(r, d->id);
|
rmdir_mondata_subdir_allrdtgrp(r, d->id);
|
||||||
list_del(&d->list);
|
list_del(&d->list);
|
||||||
if (is_mbm_enabled())
|
if (r->mon_capable && is_mbm_enabled())
|
||||||
cancel_delayed_work(&d->mbm_over);
|
cancel_delayed_work(&d->mbm_over);
|
||||||
if (is_llc_occupancy_enabled() && has_busy_rmid(r, d)) {
|
if (is_llc_occupancy_enabled() && has_busy_rmid(r, d)) {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1741,9 +1741,6 @@ static int set_cache_qos_cfg(int level, bool enable)
|
||||||
struct rdt_domain *d;
|
struct rdt_domain *d;
|
||||||
int cpu;
|
int cpu;
|
||||||
|
|
||||||
if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL))
|
|
||||||
return -ENOMEM;
|
|
||||||
|
|
||||||
if (level == RDT_RESOURCE_L3)
|
if (level == RDT_RESOURCE_L3)
|
||||||
update = l3_qos_cfg_update;
|
update = l3_qos_cfg_update;
|
||||||
else if (level == RDT_RESOURCE_L2)
|
else if (level == RDT_RESOURCE_L2)
|
||||||
|
@ -1751,6 +1748,9 @@ static int set_cache_qos_cfg(int level, bool enable)
|
||||||
else
|
else
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL))
|
||||||
|
return -ENOMEM;
|
||||||
|
|
||||||
r_l = &rdt_resources_all[level];
|
r_l = &rdt_resources_all[level];
|
||||||
list_for_each_entry(d, &r_l->domains, list) {
|
list_for_each_entry(d, &r_l->domains, list) {
|
||||||
/* Pick one CPU from each domain instance to update MSR */
|
/* Pick one CPU from each domain instance to update MSR */
|
||||||
|
|
|
@ -215,14 +215,12 @@ static int set_tls_entry(struct task_struct* task, struct user_desc *info,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int arch_copy_tls(struct task_struct *new)
|
int arch_set_tls(struct task_struct *new, unsigned long tls)
|
||||||
{
|
{
|
||||||
struct user_desc info;
|
struct user_desc info;
|
||||||
int idx, ret = -EFAULT;
|
int idx, ret = -EFAULT;
|
||||||
|
|
||||||
if (copy_from_user(&info,
|
if (copy_from_user(&info, (void __user *) tls, sizeof(info)))
|
||||||
(void __user *) UPT_SI(&new->thread.regs.regs),
|
|
||||||
sizeof(info)))
|
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
|
|
@ -6,14 +6,13 @@ void clear_flushed_tls(struct task_struct *task)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int arch_copy_tls(struct task_struct *t)
|
int arch_set_tls(struct task_struct *t, unsigned long tls)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If CLONE_SETTLS is set, we need to save the thread id
|
* If CLONE_SETTLS is set, we need to save the thread id
|
||||||
* (which is argument 5, child_tid, of clone) so it can be set
|
* so it can be set during context switches.
|
||||||
* during context switches.
|
|
||||||
*/
|
*/
|
||||||
t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];
|
t->thread.arch.fs = tls;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ config XTENSA
|
||||||
select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
|
select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
|
||||||
select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
|
select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
|
||||||
select HAVE_ARCH_TRACEHOOK
|
select HAVE_ARCH_TRACEHOOK
|
||||||
|
select HAVE_COPY_THREAD_TLS
|
||||||
select HAVE_DEBUG_KMEMLEAK
|
select HAVE_DEBUG_KMEMLEAK
|
||||||
select HAVE_DMA_CONTIGUOUS
|
select HAVE_DMA_CONTIGUOUS
|
||||||
select HAVE_EXIT_THREAD
|
select HAVE_EXIT_THREAD
|
||||||
|
|
|
@ -202,8 +202,9 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
|
||||||
* involved. Much simpler to just not copy those live frames across.
|
* involved. Much simpler to just not copy those live frames across.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int copy_thread(unsigned long clone_flags, unsigned long usp_thread_fn,
|
int copy_thread_tls(unsigned long clone_flags, unsigned long usp_thread_fn,
|
||||||
unsigned long thread_fn_arg, struct task_struct *p)
|
unsigned long thread_fn_arg, struct task_struct *p,
|
||||||
|
unsigned long tls)
|
||||||
{
|
{
|
||||||
struct pt_regs *childregs = task_pt_regs(p);
|
struct pt_regs *childregs = task_pt_regs(p);
|
||||||
|
|
||||||
|
@ -266,9 +267,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp_thread_fn,
|
||||||
|
|
||||||
childregs->syscall = regs->syscall;
|
childregs->syscall = regs->syscall;
|
||||||
|
|
||||||
/* The thread pointer is passed in the '4th argument' (= a5) */
|
|
||||||
if (clone_flags & CLONE_SETTLS)
|
if (clone_flags & CLONE_SETTLS)
|
||||||
childregs->threadptr = childregs->areg[5];
|
childregs->threadptr = tls;
|
||||||
} else {
|
} else {
|
||||||
p->thread.ra = MAKE_RA_FOR_CALL(
|
p->thread.ra = MAKE_RA_FOR_CALL(
|
||||||
(unsigned long)ret_from_kernel_thread, 1);
|
(unsigned long)ret_from_kernel_thread, 1);
|
||||||
|
|
12
block/bio.c
12
block/bio.c
|
@ -538,6 +538,16 @@ void zero_fill_bio_iter(struct bio *bio, struct bvec_iter start)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(zero_fill_bio_iter);
|
EXPORT_SYMBOL(zero_fill_bio_iter);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* bio_truncate - truncate the bio to small size of @new_size
|
||||||
|
* @bio: the bio to be truncated
|
||||||
|
* @new_size: new size for truncating the bio
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Truncate the bio to new size of @new_size. If bio_op(bio) is
|
||||||
|
* REQ_OP_READ, zero the truncated part. This function should only
|
||||||
|
* be used for handling corner cases, such as bio eod.
|
||||||
|
*/
|
||||||
void bio_truncate(struct bio *bio, unsigned new_size)
|
void bio_truncate(struct bio *bio, unsigned new_size)
|
||||||
{
|
{
|
||||||
struct bio_vec bv;
|
struct bio_vec bv;
|
||||||
|
@ -548,7 +558,7 @@ void bio_truncate(struct bio *bio, unsigned new_size)
|
||||||
if (new_size >= bio->bi_iter.bi_size)
|
if (new_size >= bio->bi_iter.bi_size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (bio_data_dir(bio) != READ)
|
if (bio_op(bio) != REQ_OP_READ)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
bio_for_each_segment(bv, bio, iter) {
|
bio_for_each_segment(bv, bio, iter) {
|
||||||
|
|
|
@ -164,8 +164,13 @@ static inline unsigned get_max_segment_size(const struct request_queue *q,
|
||||||
unsigned long mask = queue_segment_boundary(q);
|
unsigned long mask = queue_segment_boundary(q);
|
||||||
|
|
||||||
offset = mask & (page_to_phys(start_page) + offset);
|
offset = mask & (page_to_phys(start_page) + offset);
|
||||||
return min_t(unsigned long, mask - offset + 1,
|
|
||||||
queue_max_segment_size(q));
|
/*
|
||||||
|
* overflow may be triggered in case of zero page physical address
|
||||||
|
* on 32bit arch, use queue's max segment size when that happens.
|
||||||
|
*/
|
||||||
|
return min_not_zero(mask - offset + 1,
|
||||||
|
(unsigned long)queue_max_segment_size(q));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -328,7 +328,7 @@ EXPORT_SYMBOL(blk_queue_max_segment_size);
|
||||||
* storage device can address. The default of 512 covers most
|
* storage device can address. The default of 512 covers most
|
||||||
* hardware.
|
* hardware.
|
||||||
**/
|
**/
|
||||||
void blk_queue_logical_block_size(struct request_queue *q, unsigned short size)
|
void blk_queue_logical_block_size(struct request_queue *q, unsigned int size)
|
||||||
{
|
{
|
||||||
q->limits.logical_block_size = size;
|
q->limits.logical_block_size = size;
|
||||||
|
|
||||||
|
|
|
@ -374,7 +374,7 @@ static int do_rx_dma(struct atm_vcc *vcc,struct sk_buff *skb,
|
||||||
here = (eni_vcc->descr+skip) & (eni_vcc->words-1);
|
here = (eni_vcc->descr+skip) & (eni_vcc->words-1);
|
||||||
dma[j++] = (here << MID_DMA_COUNT_SHIFT) | (vcc->vci
|
dma[j++] = (here << MID_DMA_COUNT_SHIFT) | (vcc->vci
|
||||||
<< MID_DMA_VCI_SHIFT) | MID_DT_JK;
|
<< MID_DMA_VCI_SHIFT) | MID_DT_JK;
|
||||||
j++;
|
dma[j++] = 0;
|
||||||
}
|
}
|
||||||
here = (eni_vcc->descr+size+skip) & (eni_vcc->words-1);
|
here = (eni_vcc->descr+size+skip) & (eni_vcc->words-1);
|
||||||
if (!eff) size += skip;
|
if (!eff) size += skip;
|
||||||
|
@ -447,7 +447,7 @@ static int do_rx_dma(struct atm_vcc *vcc,struct sk_buff *skb,
|
||||||
if (size != eff) {
|
if (size != eff) {
|
||||||
dma[j++] = (here << MID_DMA_COUNT_SHIFT) |
|
dma[j++] = (here << MID_DMA_COUNT_SHIFT) |
|
||||||
(vcc->vci << MID_DMA_VCI_SHIFT) | MID_DT_JK;
|
(vcc->vci << MID_DMA_VCI_SHIFT) | MID_DT_JK;
|
||||||
j++;
|
dma[j++] = 0;
|
||||||
}
|
}
|
||||||
if (!j || j > 2*RX_DMA_BUF) {
|
if (!j || j > 2*RX_DMA_BUF) {
|
||||||
printk(KERN_CRIT DEV_LABEL "!j or j too big!!!\n");
|
printk(KERN_CRIT DEV_LABEL "!j or j too big!!!\n");
|
||||||
|
|
|
@ -17,7 +17,7 @@ PROGBITS = $(if $(CONFIG_ARM),%,@)progbits
|
||||||
filechk_fwbin = \
|
filechk_fwbin = \
|
||||||
echo "/* Generated by $(src)/Makefile */" ;\
|
echo "/* Generated by $(src)/Makefile */" ;\
|
||||||
echo " .section .rodata" ;\
|
echo " .section .rodata" ;\
|
||||||
echo " .p2align $(ASM_ALIGN)" ;\
|
echo " .p2align 4" ;\
|
||||||
echo "_fw_$(FWSTR)_bin:" ;\
|
echo "_fw_$(FWSTR)_bin:" ;\
|
||||||
echo " .incbin \"$(fwdir)/$(FWNAME)\"" ;\
|
echo " .incbin \"$(fwdir)/$(FWNAME)\"" ;\
|
||||||
echo "_fw_end:" ;\
|
echo "_fw_end:" ;\
|
||||||
|
|
|
@ -129,11 +129,13 @@ static blk_status_t null_zone_write(struct nullb_cmd *cmd, sector_t sector,
|
||||||
return BLK_STS_IOERR;
|
return BLK_STS_IOERR;
|
||||||
case BLK_ZONE_COND_EMPTY:
|
case BLK_ZONE_COND_EMPTY:
|
||||||
case BLK_ZONE_COND_IMP_OPEN:
|
case BLK_ZONE_COND_IMP_OPEN:
|
||||||
|
case BLK_ZONE_COND_EXP_OPEN:
|
||||||
|
case BLK_ZONE_COND_CLOSED:
|
||||||
/* Writes must be at the write pointer position */
|
/* Writes must be at the write pointer position */
|
||||||
if (sector != zone->wp)
|
if (sector != zone->wp)
|
||||||
return BLK_STS_IOERR;
|
return BLK_STS_IOERR;
|
||||||
|
|
||||||
if (zone->cond == BLK_ZONE_COND_EMPTY)
|
if (zone->cond != BLK_ZONE_COND_EXP_OPEN)
|
||||||
zone->cond = BLK_ZONE_COND_IMP_OPEN;
|
zone->cond = BLK_ZONE_COND_IMP_OPEN;
|
||||||
|
|
||||||
zone->wp += nr_sectors;
|
zone->wp += nr_sectors;
|
||||||
|
|
|
@ -343,6 +343,12 @@ static int sysc_get_clocks(struct sysc *ddata)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Always add a slot for main clocks fck and ick even if unused */
|
||||||
|
if (!nr_fck)
|
||||||
|
ddata->nr_clocks++;
|
||||||
|
if (!nr_ick)
|
||||||
|
ddata->nr_clocks++;
|
||||||
|
|
||||||
ddata->clocks = devm_kcalloc(ddata->dev,
|
ddata->clocks = devm_kcalloc(ddata->dev,
|
||||||
ddata->nr_clocks, sizeof(*ddata->clocks),
|
ddata->nr_clocks, sizeof(*ddata->clocks),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
|
@ -421,7 +427,7 @@ static int sysc_enable_opt_clocks(struct sysc *ddata)
|
||||||
struct clk *clock;
|
struct clk *clock;
|
||||||
int i, error;
|
int i, error;
|
||||||
|
|
||||||
if (!ddata->clocks)
|
if (!ddata->clocks || ddata->nr_clocks < SYSC_OPTFCK0 + 1)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) {
|
for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) {
|
||||||
|
@ -455,7 +461,7 @@ static void sysc_disable_opt_clocks(struct sysc *ddata)
|
||||||
struct clk *clock;
|
struct clk *clock;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!ddata->clocks)
|
if (!ddata->clocks || ddata->nr_clocks < SYSC_OPTFCK0 + 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) {
|
for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) {
|
||||||
|
|
|
@ -130,7 +130,7 @@ ssize_t tpm_common_read(struct file *file, char __user *buf,
|
||||||
priv->response_read = true;
|
priv->response_read = true;
|
||||||
|
|
||||||
ret_size = min_t(ssize_t, size, priv->response_length);
|
ret_size = min_t(ssize_t, size, priv->response_length);
|
||||||
if (!ret_size) {
|
if (ret_size <= 0) {
|
||||||
priv->response_length = 0;
|
priv->response_length = 0;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ struct file_priv {
|
||||||
struct work_struct timeout_work;
|
struct work_struct timeout_work;
|
||||||
struct work_struct async_work;
|
struct work_struct async_work;
|
||||||
wait_queue_head_t async_wait;
|
wait_queue_head_t async_wait;
|
||||||
size_t response_length;
|
ssize_t response_length;
|
||||||
bool response_read;
|
bool response_read;
|
||||||
bool command_enqueued;
|
bool command_enqueued;
|
||||||
|
|
||||||
|
|
|
@ -978,13 +978,13 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
|
|
||||||
if (wait_startup(chip, 0) != 0) {
|
if (wait_startup(chip, 0) != 0) {
|
||||||
rc = -ENODEV;
|
rc = -ENODEV;
|
||||||
goto err_start;
|
goto out_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Take control of the TPM's interrupt hardware and shut it off */
|
/* Take control of the TPM's interrupt hardware and shut it off */
|
||||||
rc = tpm_tis_read32(priv, TPM_INT_ENABLE(priv->locality), &intmask);
|
rc = tpm_tis_read32(priv, TPM_INT_ENABLE(priv->locality), &intmask);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
goto err_start;
|
goto out_err;
|
||||||
|
|
||||||
intmask |= TPM_INTF_CMD_READY_INT | TPM_INTF_LOCALITY_CHANGE_INT |
|
intmask |= TPM_INTF_CMD_READY_INT | TPM_INTF_LOCALITY_CHANGE_INT |
|
||||||
TPM_INTF_DATA_AVAIL_INT | TPM_INTF_STS_VALID_INT;
|
TPM_INTF_DATA_AVAIL_INT | TPM_INTF_STS_VALID_INT;
|
||||||
|
@ -993,21 +993,21 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
|
|
||||||
rc = tpm_chip_start(chip);
|
rc = tpm_chip_start(chip);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto err_start;
|
goto out_err;
|
||||||
|
|
||||||
rc = tpm2_probe(chip);
|
rc = tpm2_probe(chip);
|
||||||
|
tpm_chip_stop(chip);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto err_probe;
|
goto out_err;
|
||||||
|
|
||||||
rc = tpm_tis_read32(priv, TPM_DID_VID(0), &vendor);
|
rc = tpm_tis_read32(priv, TPM_DID_VID(0), &vendor);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
goto err_probe;
|
goto out_err;
|
||||||
|
|
||||||
priv->manufacturer_id = vendor;
|
priv->manufacturer_id = vendor;
|
||||||
|
|
||||||
rc = tpm_tis_read8(priv, TPM_RID(0), &rid);
|
rc = tpm_tis_read8(priv, TPM_RID(0), &rid);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
goto err_probe;
|
goto out_err;
|
||||||
|
|
||||||
dev_info(dev, "%s TPM (device-id 0x%X, rev-id %d)\n",
|
dev_info(dev, "%s TPM (device-id 0x%X, rev-id %d)\n",
|
||||||
(chip->flags & TPM_CHIP_FLAG_TPM2) ? "2.0" : "1.2",
|
(chip->flags & TPM_CHIP_FLAG_TPM2) ? "2.0" : "1.2",
|
||||||
|
@ -1016,13 +1016,13 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
probe = probe_itpm(chip);
|
probe = probe_itpm(chip);
|
||||||
if (probe < 0) {
|
if (probe < 0) {
|
||||||
rc = -ENODEV;
|
rc = -ENODEV;
|
||||||
goto err_probe;
|
goto out_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Figure out the capabilities */
|
/* Figure out the capabilities */
|
||||||
rc = tpm_tis_read32(priv, TPM_INTF_CAPS(priv->locality), &intfcaps);
|
rc = tpm_tis_read32(priv, TPM_INTF_CAPS(priv->locality), &intfcaps);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
goto err_probe;
|
goto out_err;
|
||||||
|
|
||||||
dev_dbg(dev, "TPM interface capabilities (0x%x):\n",
|
dev_dbg(dev, "TPM interface capabilities (0x%x):\n",
|
||||||
intfcaps);
|
intfcaps);
|
||||||
|
@ -1056,10 +1056,9 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
if (tpm_get_timeouts(chip)) {
|
if (tpm_get_timeouts(chip)) {
|
||||||
dev_err(dev, "Could not get TPM timeouts and durations\n");
|
dev_err(dev, "Could not get TPM timeouts and durations\n");
|
||||||
rc = -ENODEV;
|
rc = -ENODEV;
|
||||||
goto err_probe;
|
goto out_err;
|
||||||
}
|
}
|
||||||
|
|
||||||
chip->flags |= TPM_CHIP_FLAG_IRQ;
|
|
||||||
if (irq) {
|
if (irq) {
|
||||||
tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED,
|
tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED,
|
||||||
irq);
|
irq);
|
||||||
|
@ -1071,18 +1070,15 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tpm_chip_stop(chip);
|
|
||||||
|
|
||||||
rc = tpm_chip_register(chip);
|
rc = tpm_chip_register(chip);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto err_start;
|
goto out_err;
|
||||||
|
|
||||||
|
if (chip->ops->clk_enable != NULL)
|
||||||
|
chip->ops->clk_enable(chip, false);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
out_err:
|
||||||
err_probe:
|
|
||||||
tpm_chip_stop(chip);
|
|
||||||
|
|
||||||
err_start:
|
|
||||||
if ((chip->ops != NULL) && (chip->ops->clk_enable != NULL))
|
if ((chip->ops != NULL) && (chip->ops->clk_enable != NULL))
|
||||||
chip->ops->clk_enable(chip, false);
|
chip->ops->clk_enable(chip, false);
|
||||||
|
|
||||||
|
|
|
@ -3426,11 +3426,17 @@ static int __clk_core_init(struct clk_core *core)
|
||||||
if (core->flags & CLK_IS_CRITICAL) {
|
if (core->flags & CLK_IS_CRITICAL) {
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
clk_core_prepare(core);
|
ret = clk_core_prepare(core);
|
||||||
|
if (ret)
|
||||||
|
goto out;
|
||||||
|
|
||||||
flags = clk_enable_lock();
|
flags = clk_enable_lock();
|
||||||
clk_core_enable(core);
|
ret = clk_core_enable(core);
|
||||||
clk_enable_unlock(flags);
|
clk_enable_unlock(flags);
|
||||||
|
if (ret) {
|
||||||
|
clk_core_unprepare(core);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clk_core_reparent_orphans_nolock();
|
clk_core_reparent_orphans_nolock();
|
||||||
|
|
|
@ -134,7 +134,7 @@ static DEFINE_SPINLOCK(ssp3_lock);
|
||||||
static const char *ssp_parent_names[] = {"vctcxo_4", "vctcxo_2", "vctcxo", "pll1_16"};
|
static const char *ssp_parent_names[] = {"vctcxo_4", "vctcxo_2", "vctcxo", "pll1_16"};
|
||||||
|
|
||||||
static DEFINE_SPINLOCK(timer_lock);
|
static DEFINE_SPINLOCK(timer_lock);
|
||||||
static const char *timer_parent_names[] = {"clk32", "vctcxo_2", "vctcxo_4", "vctcxo"};
|
static const char *timer_parent_names[] = {"clk32", "vctcxo_4", "vctcxo_2", "vctcxo"};
|
||||||
|
|
||||||
static DEFINE_SPINLOCK(reset_lock);
|
static DEFINE_SPINLOCK(reset_lock);
|
||||||
|
|
||||||
|
|
|
@ -3255,6 +3255,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc = {
|
||||||
.name = "hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc",
|
.name = "hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = {
|
static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = {
|
||||||
|
@ -3263,6 +3264,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = {
|
||||||
.name = "hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc",
|
.name = "hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = {
|
static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = {
|
||||||
|
@ -3271,6 +3273,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = {
|
||||||
.name = "hlos1_vote_aggre_noc_mmu_tbu1_gdsc",
|
.name = "hlos1_vote_aggre_noc_mmu_tbu1_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = {
|
static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = {
|
||||||
|
@ -3279,6 +3282,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = {
|
||||||
.name = "hlos1_vote_aggre_noc_mmu_tbu2_gdsc",
|
.name = "hlos1_vote_aggre_noc_mmu_tbu2_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = {
|
static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = {
|
||||||
|
@ -3287,6 +3291,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = {
|
||||||
.name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc",
|
.name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = {
|
static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = {
|
||||||
|
@ -3295,6 +3300,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = {
|
||||||
.name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc",
|
.name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = {
|
static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = {
|
||||||
|
@ -3303,6 +3309,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = {
|
||||||
.name = "hlos1_vote_mmnoc_mmu_tbu_sf_gdsc",
|
.name = "hlos1_vote_mmnoc_mmu_tbu_sf_gdsc",
|
||||||
},
|
},
|
||||||
.pwrsts = PWRSTS_OFF_ON,
|
.pwrsts = PWRSTS_OFF_ON,
|
||||||
|
.flags = VOTABLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk_regmap *gcc_sdm845_clocks[] = {
|
static struct clk_regmap *gcc_sdm845_clocks[] = {
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <linux/clk-provider.h>
|
#include <linux/clk-provider.h>
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/of_address.h>
|
#include <linux/of_address.h>
|
||||||
|
#include <linux/clk.h>
|
||||||
|
|
||||||
#include "clk.h"
|
#include "clk.h"
|
||||||
#include "clk-cpu.h"
|
#include "clk-cpu.h"
|
||||||
|
@ -1646,6 +1647,13 @@ static void __init exynos5x_clk_init(struct device_node *np,
|
||||||
exynos5x_subcmus);
|
exynos5x_subcmus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keep top part of G3D clock path enabled permanently to ensure
|
||||||
|
* that the internal busses get their clock regardless of the
|
||||||
|
* main G3D clock enablement status.
|
||||||
|
*/
|
||||||
|
clk_prepare_enable(__clk_lookup("mout_sw_aclk_g3d"));
|
||||||
|
|
||||||
samsung_clk_of_add_provider(np, ctx);
|
samsung_clk_of_add_provider(np, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const char * const ar100_r_apb2_parents[] = { "osc24M", "osc32k",
|
static const char * const ar100_r_apb2_parents[] = { "osc24M", "osc32k",
|
||||||
"pll-periph0", "iosc" };
|
"iosc", "pll-periph0" };
|
||||||
static const struct ccu_mux_var_prediv ar100_r_apb2_predivs[] = {
|
static const struct ccu_mux_var_prediv ar100_r_apb2_predivs[] = {
|
||||||
{ .index = 2, .shift = 0, .width = 5 },
|
{ .index = 3, .shift = 0, .width = 5 },
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ccu_div ar100_clk = {
|
static struct ccu_div ar100_clk = {
|
||||||
|
@ -51,17 +51,7 @@ static struct ccu_div ar100_clk = {
|
||||||
|
|
||||||
static CLK_FIXED_FACTOR_HW(r_ahb_clk, "r-ahb", &ar100_clk.common.hw, 1, 1, 0);
|
static CLK_FIXED_FACTOR_HW(r_ahb_clk, "r-ahb", &ar100_clk.common.hw, 1, 1, 0);
|
||||||
|
|
||||||
static struct ccu_div r_apb1_clk = {
|
static SUNXI_CCU_M(r_apb1_clk, "r-apb1", "r-ahb", 0x00c, 0, 2, 0);
|
||||||
.div = _SUNXI_CCU_DIV(0, 2),
|
|
||||||
|
|
||||||
.common = {
|
|
||||||
.reg = 0x00c,
|
|
||||||
.hw.init = CLK_HW_INIT("r-apb1",
|
|
||||||
"r-ahb",
|
|
||||||
&ccu_div_ops,
|
|
||||||
0),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct ccu_div r_apb2_clk = {
|
static struct ccu_div r_apb2_clk = {
|
||||||
.div = _SUNXI_CCU_DIV_FLAGS(8, 2, CLK_DIVIDER_POWER_OF_TWO),
|
.div = _SUNXI_CCU_DIV_FLAGS(8, 2, CLK_DIVIDER_POWER_OF_TWO),
|
||||||
|
|
|
@ -51,19 +51,7 @@ static struct ccu_div ar100_clk = {
|
||||||
|
|
||||||
static CLK_FIXED_FACTOR_HW(ahb0_clk, "ahb0", &ar100_clk.common.hw, 1, 1, 0);
|
static CLK_FIXED_FACTOR_HW(ahb0_clk, "ahb0", &ar100_clk.common.hw, 1, 1, 0);
|
||||||
|
|
||||||
static struct ccu_div apb0_clk = {
|
static SUNXI_CCU_M(apb0_clk, "apb0", "ahb0", 0x0c, 0, 2, 0);
|
||||||
.div = _SUNXI_CCU_DIV_FLAGS(0, 2, CLK_DIVIDER_POWER_OF_TWO),
|
|
||||||
|
|
||||||
.common = {
|
|
||||||
.reg = 0x0c,
|
|
||||||
.hw.init = CLK_HW_INIT_HW("apb0",
|
|
||||||
&ahb0_clk.hw,
|
|
||||||
&ccu_div_ops,
|
|
||||||
0),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
static SUNXI_CCU_M(a83t_apb0_clk, "apb0", "ahb0", 0x0c, 0, 2, 0);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define the parent as an array that can be reused to save space
|
* Define the parent as an array that can be reused to save space
|
||||||
|
@ -127,7 +115,7 @@ static struct ccu_mp a83t_ir_clk = {
|
||||||
|
|
||||||
static struct ccu_common *sun8i_a83t_r_ccu_clks[] = {
|
static struct ccu_common *sun8i_a83t_r_ccu_clks[] = {
|
||||||
&ar100_clk.common,
|
&ar100_clk.common,
|
||||||
&a83t_apb0_clk.common,
|
&apb0_clk.common,
|
||||||
&apb0_pio_clk.common,
|
&apb0_pio_clk.common,
|
||||||
&apb0_ir_clk.common,
|
&apb0_ir_clk.common,
|
||||||
&apb0_timer_clk.common,
|
&apb0_timer_clk.common,
|
||||||
|
@ -167,7 +155,7 @@ static struct clk_hw_onecell_data sun8i_a83t_r_hw_clks = {
|
||||||
.hws = {
|
.hws = {
|
||||||
[CLK_AR100] = &ar100_clk.common.hw,
|
[CLK_AR100] = &ar100_clk.common.hw,
|
||||||
[CLK_AHB0] = &ahb0_clk.hw,
|
[CLK_AHB0] = &ahb0_clk.hw,
|
||||||
[CLK_APB0] = &a83t_apb0_clk.common.hw,
|
[CLK_APB0] = &apb0_clk.common.hw,
|
||||||
[CLK_APB0_PIO] = &apb0_pio_clk.common.hw,
|
[CLK_APB0_PIO] = &apb0_pio_clk.common.hw,
|
||||||
[CLK_APB0_IR] = &apb0_ir_clk.common.hw,
|
[CLK_APB0_IR] = &apb0_ir_clk.common.hw,
|
||||||
[CLK_APB0_TIMER] = &apb0_timer_clk.common.hw,
|
[CLK_APB0_TIMER] = &apb0_timer_clk.common.hw,
|
||||||
|
@ -282,9 +270,6 @@ static void __init sunxi_r_ccu_init(struct device_node *node,
|
||||||
|
|
||||||
static void __init sun8i_a83t_r_ccu_setup(struct device_node *node)
|
static void __init sun8i_a83t_r_ccu_setup(struct device_node *node)
|
||||||
{
|
{
|
||||||
/* Fix apb0 bus gate parents here */
|
|
||||||
apb0_gate_parent[0] = &a83t_apb0_clk.common.hw;
|
|
||||||
|
|
||||||
sunxi_r_ccu_init(node, &sun8i_a83t_r_ccu_desc);
|
sunxi_r_ccu_init(node, &sun8i_a83t_r_ccu_desc);
|
||||||
}
|
}
|
||||||
CLK_OF_DECLARE(sun8i_a83t_r_ccu, "allwinner,sun8i-a83t-r-ccu",
|
CLK_OF_DECLARE(sun8i_a83t_r_ccu, "allwinner,sun8i-a83t-r-ccu",
|
||||||
|
|
|
@ -761,7 +761,8 @@ static struct ccu_mp outa_clk = {
|
||||||
.reg = 0x1f0,
|
.reg = 0x1f0,
|
||||||
.features = CCU_FEATURE_FIXED_PREDIV,
|
.features = CCU_FEATURE_FIXED_PREDIV,
|
||||||
.hw.init = CLK_HW_INIT_PARENTS("outa", out_parents,
|
.hw.init = CLK_HW_INIT_PARENTS("outa", out_parents,
|
||||||
&ccu_mp_ops, 0),
|
&ccu_mp_ops,
|
||||||
|
CLK_SET_RATE_PARENT),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -779,7 +780,8 @@ static struct ccu_mp outb_clk = {
|
||||||
.reg = 0x1f4,
|
.reg = 0x1f4,
|
||||||
.features = CCU_FEATURE_FIXED_PREDIV,
|
.features = CCU_FEATURE_FIXED_PREDIV,
|
||||||
.hw.init = CLK_HW_INIT_PARENTS("outb", out_parents,
|
.hw.init = CLK_HW_INIT_PARENTS("outb", out_parents,
|
||||||
&ccu_mp_ops, 0),
|
&ccu_mp_ops,
|
||||||
|
CLK_SET_RATE_PARENT),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue