Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aligned C implementations for memcpy, memset and memmove #22

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
0df3424
dt-bindings: usb: cdns,usb3: Fix interrupts order
geertu May 27, 2021
e93c67f
mmc: dw_mmc-pltfm: Remove unused <linux/clk.h>
geertu May 27, 2021
6814ff1
dt-bindings: add StarFive Technology Co. Ltd.
pdp7 May 31, 2021
1928e3b
stmmac: prefetch right address
teknoraver Jun 9, 2021
29fb86f
net: stmmac: Fix potential integer overflow
wvk86 Jun 11, 2021
1fe56de
stmmac: align RX buffers
teknoraver Jun 14, 2021
bd86878
dt-bindings: riscv: add starfive jh7100 bindings
pdp7 Jun 16, 2021
40ed7ba
[WIP] dt-bindings: clock: starfive: Add preliminary JH7100 bindings
geertu Jun 1, 2021
f36db57
[WIP] dt-bindings: clock: starfive: Add preliminary JH7100 Clock Defi…
geertu Jun 1, 2021
c439373
[WIP] clk: starfive: Add preliminary JH7100 Clock Generator Driver
geertu Jun 1, 2021
f2b20a0
dt-bindings: gpio: add starfive,jh7100-gpio bindings
pdp7 May 31, 2021
b982383
gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver
huanfeng-sf Jan 7, 2021
d6f6520
gpio: starfive-jh7100: Add legacy header and code
huanfeng-sf Jan 7, 2021
e10da27
[WIP] dt-bindings: dma: dw-axi-dmac: Increase DMA channel limit to 16
geertu May 27, 2021
621179b
drivers/hw_random: Add StarFive JH7100 Random Number Generator driver
huanfeng-sf Jan 7, 2021
8bb8568
dt-bindings: hwmon: add starfive,jh7100-temp bindings
esmil Jun 6, 2021
ab93740
hwmon: (sfctemp) Add StarFive JH7100 temperature sensor
esmil Jun 6, 2021
4197296
sifive/sifive_l2_cache: Add sifive_l2_flush64_range function
Jan 7, 2021
e2bf10b
sifive/sifive_l2_cache: Add Starfive support
Feb 15, 2021
2248a3c
sifive/sifive_l2_cache: Add disabling IRQ option (workaround)
Feb 13, 2021
25e1b8a
sifive/sifive_l2_cache: Print a backtrace on out-of-range flushes
geertu May 21, 2021
c60e275
sifive/sifive_l2_cache: Align the address to cache line
atishp04 Jun 12, 2021
a16330d
drivers/pwm: Add SiFive PWM PTC driver
Jan 7, 2021
432dfc3
drivers/pwm/pwm-sifive-ptc: Clear PWM CNTR
Mar 15, 2021
629d2d1
drivers/dma: Add dw-axi-dmac-starfive driver for VIC7100
Jan 7, 2021
49b49e8
drivers/dma: Fix VIC7100 dw-axi-dmac-platform driver addition
mike-scott May 1, 2021
a9a34f7
drivers/i2c: Improve Synopsys DesignWare I2C adapter driver for StarF…
Jan 7, 2021
e726d0a
drivers/i2c: Add GPIO configuration for VIC7100.
Mar 13, 2021
b74ce04
net: stmmac: Configure gtxclk based on speed
Apr 6, 2021
d250145
net: stmmac: use GFP_DMA32
teknoraver May 21, 2021
8c98fff
riscv/starfive: Add VIC7100 support
Jan 7, 2021
b31094c
drivers/video/fbdev and drivers/media/platform: starfive drivers added
jackzhustf Jan 10, 2021
22097ef
video: fbdev: starfive: update fb driver
jackzhustf Mar 5, 2021
1f56cbe
video: fbdev: starfive: workaround for unavailable pointer of dtb
jackzhustf Mar 16, 2021
c7486b8
video: fbdev: starfive: fix compiler warnings
esmil May 6, 2021
d787acb
video: fbdev: starfive: improve error handling
esmil May 6, 2021
5b643ee
video: fbdev: starfive: fix modpost build error (missing license)
sarnold May 13, 2021
ced9474
video: fbdev: starfive: fix fb bug about HDMI display
May 15, 2021
ea27f7c
video: fbdev: starfive: FB_STARFIVE_HDMI_TDA998X depends on DRM_FBDEV…
geertu May 18, 2021
811c692
video: fbdev: starfive: Fix frame buffer reserved memory resource con…
geertu May 18, 2021
b781ef3
spi: cadence-quadspi: Allow compilation on RISC-V
esmil Apr 27, 2021
1ba09e3
[HACK] mfd: tps65086: make interrupt line optional
esmil May 3, 2021
0a15f31
power: reset: Add TPS65086 restart driver
esmil May 3, 2021
326d4b7
RISC-V: Support non-coherent DMA operations
atishp04 Jun 12, 2021
7350e3d
riscv: dts: Add JH7100 and BeagleV Starlight support
Jan 22, 2021
0304da1
[Not for upstream] Add build instructions
esmil May 5, 2021
e367b40
nvdla: add NVDLA driver
farzadfch Sep 21, 2018
56b4d61
[Not for upstream] beaglev_defconfig: Enable NVDLA driver
esmil Jun 20, 2021
6915f8a
nvdla: Fix include path for out-of-tree builds
esmil Jun 21, 2021
5185b2c
video: fbdev: starfive: Use round_up() instead of _ALIGN_UP()
geertu Jun 22, 2021
18f0e8a
RISC-V: Remove unused StarFive debug options
esmil Jun 23, 2021
9b0eb4e
nvdla: Drop cache flushing code
esmil Jun 23, 2021
bfa7cac
riscv: optimized memcpy
teknoraver Jun 10, 2021
88cb9b4
riscv: optimized memmove
teknoraver Jun 10, 2021
3cf482b
riscv: optimized memset
teknoraver Jun 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/starfive,jh7100-clkgen.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: StarFive JH7100 Clock Generator

maintainers:
- FIXME <someone@starfivetech.com>
- Geert Uytterhoeven <geert@linux-m68k.org>

properties:
compatible:
const: starfive,jh7100-clkgen

reg:
maxItems: 1

clocks:
items:
- description: Main clock source (default 25 MHz)
- description: Application-specific clock source (12-27 MHz)

clock-names:
items:
- const: osc0
- const: osc1

'#clock-cells':
const: 1
description:
See <dt-bindings/clock/starfive-jh7100-clkgen.h> for valid indices.

required:
- compatible
- reg
- clocks
- clock-names
- '#clock-cells'

additionalProperties: false

examples:
- |
clkgen: clock-controller@11800000 {
compatible = "starfive,jh7100-clkgen";
reg = <0x11800000 0x10000>;
clocks = <&osc0_clk>, <&osc1_clk>;
clock-names = "osc0", "osc1";
#clock-cells = <1>;
};
6 changes: 3 additions & 3 deletions Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ properties:

dma-channels:
minimum: 1
maximum: 8
maximum: 16

snps,dma-masters:
description: |
Expand All @@ -71,14 +71,14 @@ properties:
Channel priority specifier associated with the DMA channels.
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 8
maxItems: 16

snps,block-size:
description: |
Channel block size specifier associated with the DMA channels.
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 8
maxItems: 16

snps,axi-max-burst-len:
description: |
Expand Down
60 changes: 60 additions & 0 deletions Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/gpio/starfive,jh7100-gpio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: StarFive JH7100 GPIO controller

maintainers:
- Huan Feng <huan.feng@starfivetech.com>
- Drew Fustini <drew@beagleboard.org>

properties:
compatible:
items:
- const: starfive,jh7100-gpio

reg:
maxItems: 1

interrupts:
description:
Interrupt mapping, one per GPIO. Maximum 32 GPIOs.
minItems: 1
maxItems: 32

gpio-controller: true

"#gpio-cells":
const: 2

interrupt-controller: true

"#interrupt-cells":
const: 2

required:
- compatible
- reg
- interrupts
- interrupt-controller
- "#interrupt-cells"
- "#gpio-cells"
- gpio-controller

additionalProperties: false

examples:
- |
gpio@11910000 {
compatible = "starfive,jh7100-gpio";
reg = <0x11910000 0x10000>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <32>;
};

...
43 changes: 43 additions & 0 deletions Documentation/devicetree/bindings/hwmon/starfive,jh7100-temp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/starfive,jh7100-temp.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: StarFive JH7100 Temperature Sensor

maintainers:
- Emil Renner Berthing <kernel@esmil.dk>

description: |
StarFive Technology Co. JH7100 embedded temperature sensor

properties:
compatible:
enum:
- starfive,jh7100-temp

reg:
maxItems: 1

'#thermal-sensor-cells':
const: 0

interrupts:
maxItems: 1

required:
- compatible
- reg
- interrupts

additionalProperties: false

examples:
- |
tmon: tmon@124a0000 {
compatible = "starfive,jh7100-temp";
reg = <0x124a0000 0x10000>;
#thermal-sensor-cells = <0>;
interrupts = <122>;
};
30 changes: 30 additions & 0 deletions Documentation/devicetree/bindings/riscv/starfive.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/riscv/starfive.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: StarFive SoC-based boards

maintainers:
- Michael Zhu <michael.zhu@starfivetech.com>
- Drew Fustini <drew@beagleboard.org>

description:
SiFive SoC-based boards

properties:
$nodename:
const: '/'
compatible:
oneOf:
- items:
- const: beagle,beaglev-starlight-jh7100
- const: starfive,jh7100

- items:
- const: starfive,jh7100

additionalProperties: true

...
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/usb/cdns,usb3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ properties:
interrupts:
minItems: 3
items:
- description: OTG/DRD controller interrupt
- description: XHCI host controller interrupt
- description: Device controller interrupt
- description: OTG/DRD controller interrupt
- description: interrupt used to wake up core, e.g when usbcmd.rs is
cleared by xhci core, this interrupt is optional

Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,8 @@ patternProperties:
(formerly part of MStar Semiconductor, Inc.)
"^st,.*":
description: STMicroelectronics
"^starfive,.*":
description: StarFive Technology Co. Ltd.
"^starry,.*":
description: Starry Electronic Technology (ShenZhen) Co., LTD
"^startek,.*":
Expand Down
1 change: 1 addition & 0 deletions Documentation/hwmon/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ Hardware Monitoring Kernel Drivers
sch5627
sch5636
scpi-hwmon
sfctemp
sht15
sht21
sht3x
Expand Down
32 changes: 32 additions & 0 deletions Documentation/hwmon/sfctemp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. SPDX-License-Identifier: GPL-2.0

Kernel driver sfctemp
=====================

Supported chips:
- StarFive JH7100

Authors:
- Emil Renner Berthing <kernel@esmil.dk>

Description
-----------

This driver adds support for reading the built-in temperature sensor on the
JH7100 RISC-V SoC by StarFive Technology Co. Ltd.

``sysfs`` interface
-------------------

The temperature sensor can be enabled, disabled and queried via the standard
hwmon interface in sysfs under ``/sys/class/hwmon/hwmonX`` for some value of
``X``:

================ ==== =============================================
Name Perm Description
================ ==== =============================================
temp1_enable RW Enable or disable temperature sensor.
Automatically enabled by the driver,
but may be disabled to save power.
temp1_input RO Temperature reading in milli-degrees Celsius.
================ ==== =============================================
8 changes: 8 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -16535,6 +16535,14 @@ L: netdev@vger.kernel.org
S: Supported
F: drivers/net/ethernet/sfc/

SFCTEMP HWMON DRIVER
M: Emil Renner Berthing <kernel@esmil.dk>
L: linux-hwmon@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/hwmon/starfive,jh7100-temp.yaml
F: Documentation/hwmon/sfctemp.rst
F: drivers/hwmon/sfctemp.c

SFF/SFP/SFP+ MODULE SUPPORT
M: Russell King <linux@armlinux.org.uk>
L: netdev@vger.kernel.org
Expand Down
Loading