Commit Graph

264 Commits

Author SHA1 Message Date
Andy Hu bd558055ce Merge tag 'JH7110_515_SDK_v5.1.0' into jh7110-mm-devel
This tag mainly upgrade the IMG DDK to 1.19, include user space and kernel space
2023-05-22 11:24:29 +08:00
andy.hu 969f7d13f2 Merge branch 'CR_5501_GPU_upgrade_ddk1.19' into 'jh7110-devel'
CR_5501: package/starfive/img-gpu-powervr: upgrade IMG DDK library to 1.19

See merge request sdk/buildroot!103
2023-05-22 03:09:32 +00:00
Andy Hu 29ee3f6529 package/starfive/img-gpu-powervr: upgrade IMG DDK library to 1.19
Upgrade Imagination DDK source to 1.19

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-20 02:05:33 +08:00
Andy Hu 2494cfd0ed Merge tag 'JH7110_515_SDK_v5.0.0' into jh7110-mm-devel
update toolchain to gcc 12.2.0
2023-05-19 14:04:52 +08:00
andy.hu 5237540a8b Merge branch 'CR_3508_update_toolchain_2' into 'jh7110-devel'
CR_3508: update gcc toolchain to gcc 12

See merge request sdk/buildroot!102
2023-05-19 03:36:37 +00:00
Andy Hu ff068cb477 gdb: update gdb version to 12.1 from upstream tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 11:08:02 +08:00
Andy Hu 80ccfb9339 linux-header: support above linux 5.15 or 6.0 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 10:49:10 +08:00
Andy Hu 4412284d75 img-gpu-powervr: update the new binary library built with the gcc 12.2.0
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:05:13 +08:00
Andy Hu 3b6505746a package: glibc: Add optimization memory operations for RISCV
Port the memcpy & memset implementation from
Linux kerenl to glibc to improve performance of
memory operations in user space.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-05-19 00:03:37 +08:00
Andy Hu 953c6e2267 package/Makefile.in: use riscv new cppflags
building the whold sdk with:
TARGET_CPPFLAGS += -mabi=lp64d -march=rv64imafdc_zicsr_zifencei_zba_zbb \
  -mcpu=sifive-u74 -mtune=sifive-7-series -fomit-frame-pointer \
  --param l1-cache-size=32 --param l2-cache-size=2048

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:30 +08:00
Andy Hu bcce1c86ec glmark2: fix building issue for gcc 12.2.0
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:25 +08:00
Andy Hu d02c4a78f0 arch: add _zicsr_zifencei_zba_zbb as default march for gcc toolchain
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:18 +08:00
Andy Hu cce9841ee9 toolchain: update toolchain setting from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:14 +08:00
Andy Hu 389dc57182 gcc: update to support gcc 11.3.0 and 12.2.0 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:09 +08:00
Andy Hu 650e638627 glibc: update to support 2.36 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:01:41 +08:00
Andy Hu 687ac0c040 binutils: update to support 2.38 and 2.39 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-18 23:44:40 +08:00
Romain Naour 134149d57f arch/Config.in.riscv: enable Zicsr and Zifencei standalone extensions with gcc >= 12
Since gcc 12, the default RISC-V ISA spec version was bump to 20191213 [1].

This bump introduces a major compatibility issue: support for the csr read/write
(csrr*/csrw*) instructions and fence.i instruction has been separated
from the "I" extension, becoming two standalone extensions: Zicsr and
Zifencei. gcc now has specific -march suffixes to enable those
extensions (_zicsr and _zifencei). If they are not used and code that
uses these instructions is built, one would get errors such as
unrecognized opcode "csrr" (or "fence.i").

For example, without Zifencei we can't build the opensbi
bootloader[2]:

opensbi-1.0/lib/sbi/sbi_tlb.c: Assembler messages:
opensbi-1.0/lib/sbi/sbi_tlb.c:190: Error: unrecognized opcode `fence.i', extension `zifencei' required

As a workaround, the opensbi build system has been patched [3] to use
-march=rv64imafdc_zicsr_zifencei when needed.  This workaround doesn't
work in Buildroot due to the local patch
0001-Makefile-Don-t-specify-mabi-or-march.patch which removes -march
from CFLAGS.

In the context of Buildroot, we have decided for now to assume that
all RISC-V cores that are Linux capable will implement the Zicsr and
Zifencei extensions: it is in fact the case today ase these extensions
were part of the I extension, that all cores support. OpenSBI and
Linux are making the same assumption (see [5]).

Therefore, when gcc >= 12, the -march value gets appended with
_zicsr_zifencei.

[1] https://gcc.gnu.org/gcc-12/changes.html
[2] https://github.com/riscv-software-src/opensbi/blob/v0.9/lib/sbi/sbi_tlb.c#L173
[3] https://github.com/riscv-software-src/opensbi/commit/5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c
[4] https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/aE1ZeHHCYf4
[5] http://lists.busybox.net/pipermail/buildroot/2022-July/646698.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Mark Corbin <mark@dibsco.co.uk>
[Thomas: add comment in .mk file, rework commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-05-18 23:24:35 +08:00
andy.hu 507c0b24e7 Merge branch 'CR_5116_gstomx_som.qin' into 'jh7110-mm-devel'
CR 5116  gstomx:add hacks no-component-reconfigure of starfive codec

See merge request sdk/buildroot!101
2023-05-10 11:42:13 +00:00
andy.hu db4f9d046c Merge branch 'CR_2780_fix_kmssink_display_last_frame_Leo.Lu' into 'jh7110-mm-devel'
CR_2780_fix_kmssink_display_last_frame_Leo.Lu

See merge request sdk/buildroot!100
2023-05-10 11:41:06 +00:00
Som Qin 03c90c4643 gstomx:add hacks no-component-reconfigure of starfive codec
component needs to be re-created if the caps change.

Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-05-10 11:36:28 +08:00
leo.lu f08fde91a4 kmssink plugin bind vaild buffer when enable drm pipeline 2023-05-08 13:46:26 +08:00
Andy Hu ed636e23a0 Merge tag 'JH7110_515_SDK_v4.8.2' into jh7110-mm-devel
version JH7110_515_SDK_v4.8.2 for JH7110 EVB board
2023-04-26 23:23:22 +08:00
andy.hu c4695ba8d8 Merge branch 'CR_4951_memcpy_optimization_mason.huo' into 'jh7110-devel'
CR_4951 package: glibc: Add optimization memory copy with aligned version

See merge request sdk/buildroot!97
2023-04-26 09:52:46 +00:00
andy.hu 5ec8f6854a Merge branch 'CR_5160_Reduce_release_IP_time_samin.guo' into 'jh7110-devel'
CR_5160:ifplugd: Reduce the IP release time

See merge request sdk/buildroot!99
2023-04-26 09:52:06 +00:00
andy.hu ec3a6dc4dd Merge branch 'CR_5049_Optimize_swapoff_mason.huo' into 'jh7110-devel'
CR_5049 package: starfive: Optimize the swapoff partition

See merge request sdk/buildroot!98
2023-04-26 09:47:38 +00:00
Samin Guo 910ecaeb5e ifplugd: Reduce the IP release time
IP release time reduced from 10 seconds to 1 second

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-04-26 15:21:37 +08:00
Mason Huo 8b0d868279 package: starfive: Optimize the swapoff partition
Check if the swap partition ("hibernation") exist or not
before swapoff command.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-24 11:38:45 +08:00
Andy Hu d672e1510f Merge tag 'JH7110_515_SDK_v4.8.1' into jh7110-mm-devel
version JH7110_515_SDK_v4.8.1 for JH7110 EVB board

1. buildroot:
    Merge branch 'CR_4754_swapon_optimize_mason.huo' into 'jh7110-devel'
2023-04-19 20:20:27 +08:00
andy.hu 6d540bf363 Merge branch 'CR_4754_swapon_optimize_mason.huo' into 'jh7110-devel'
CR_4754 package: starfive: Optimize the swapon partition

See merge request sdk/buildroot!96
2023-04-19 11:39:18 +00:00
Mason Huo 013b3a25e8 package: glibc: Add optimization memory copy with aligned version
Port the linux kernel memcpy function for optimizing
the 128 byte align case, this will improve the
performance of large block memcpy.

Here we combine the memcpy of glibc and kernel.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-17 14:55:09 +08:00
Mason Huo 8d66d14452 package: starfive: Optimize the swapon partition
Check if the swap partition ("hibernation") exist or not
before swapon command.
Since the partlabel appears late, change the script
excution sequence to 99.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-17 14:50:32 +08:00
Andy Hu c89211ea59 Merge tag 'JH7110_515_SDK_v4.6.0' into jh7110-mm-devel
version JH7110_515_SDK_v4.6.0 for JH7110 EVB board

1. #4174: buildroot: glibc add optimization memory operations, porting memcpy & memset implementation from kernel
2023-03-30 20:29:19 +08:00
andy.hu 868e6d3437 Merge branch 'CR_4174_glibc_optimize_mason.huo' into 'jh7110-devel'
CR_4174 package: glibc: Add optimization memory operations for RISCV

See merge request sdk/buildroot!95
2023-03-30 11:25:43 +00:00
Mason Huo 8ac10aeb41 package: glibc: Add optimization memory operations for RISCV
Port the memcpy & memset implementation from
Linux kerenl to glibc to improve performance of
memory operations in user space.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-21 16:49:35 +08:00
Andy Hu 75c5ab1b7c Merge tag 'JH7110_515_SDK_v4.5.2' into jh7110-mm-devel
version JH7110_515_SDK_v4.5.2 for JH7110 EVB board

1. #4142: soft_3rdpart: linu: IMG GPU disable pdump in kernel space and user space
2023-03-21 01:32:52 +08:00
andy.hu 6e5ff2929a Merge branch 'CR_4142_IMG_GPU_Disable_pdump_Andy.hu' into 'jh7110-devel'
CR_4142: package/starfive/img-gpu-powervr: update sha256 value for new tar ball

See merge request sdk/buildroot!94
2023-03-20 16:47:18 +00:00
Andy Hu 42b8427cca package/starfive/img-gpu-powervr: update sha256 value for new tar ball
disable pdump for v1.17

PDUMP was enabled by default. This causes some performance
issues on GPU. Hence, we would need to disable PDUMP in
kernel space and userspace.

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-03-21 00:41:35 +08:00
andy.hu d71fa37523 Merge branch 'CR_3173_fix_alsasink_resume_when_gst_play_paused_Leo.Lu' into 'jh7110-mm-devel'
CR_3173_fix_alsasink_resume_when_gst_play_paused_Leo.Lu

See merge request sdk/buildroot!93
2023-02-03 11:46:13 +00:00
leo.lu e85673a9d2 FIX alsasink resume failed when gst-play paused 2023-01-29 09:56:54 +08:00
Andy Hu 6c0f69dac9 Merge tag 'JH7110_515_SDK_v4.0.1' into jh7110-mm-devel
version JH7110_515_SDK_v4.0.1 for JH7110 EVB board
1. Fix hibernation issues: clk tree, gpio, gpu, tempsensor
2. Add gpio reset feature in opensbi
3. Fix usb device issue for debian
2023-01-18 10:43:18 +08:00
andy.hu 5b3d30734c Merge branch 'CR_3071_add_usb_device_ms_configs_minda' into 'jh7110-devel'
CR_3071 usb:add usb mass storage more config

See merge request sdk/buildroot!92
2023-01-17 11:09:25 +00:00
minda.chen 5e82470c44 usb:add usb mass storage more config
In emmc/sdcard boot case, add more usb device
mass storage configs.

Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-17 16:06:53 +08:00
Andy Hu 2f00fa0f59 Merge tag 'JH7110_515_SDK_v4.0.0-rc1' into jh7110-mm-devel
version JH7110_515_SDK_v4.0.0-rc1 for JH7110 EVB board
1. #2828 support linux perf tool
2. #3049 merge hibernation branch to SDK
3. #2708 uboot support vout clk driver
4. #3006 uboot handle OTP return value
5. #2969, #3039 venc jpu fix futex issue
2023-01-06 19:21:39 +08:00
andy.hu 0a417a545e Merge branch 'CR_3049_Hibernation_mason.huo' into 'jh7110-devel'
CR_3049 package: starfive: Add hibernation script to pm package

See merge request sdk/buildroot!91
2023-01-06 06:42:27 +00:00
mason.huo 62a97a3582 package: starfive: Add hibernation script to pm package
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-05 13:14:34 +08:00
Andy Hu a361ebc826 Merge remote-tracking branch 'origin/jh7110-devel' into jh7110-mm-devel 2022-12-09 19:06:05 +08:00
andy.hu 4a361eadcd Merge branch 'CR_2767_ISP_SDK_Kevin.xie' into 'jh7110-devel'
CR 2767 ispsdk: Fix error sc2335 sensor config command on isp daemon.

See merge request sdk/buildroot!90
2022-12-09 04:51:51 +00:00
andy.hu 232d757599 Merge branch 'CR_2809_Net_Status_detection_samin.guo' into 'jh7110-devel'
CR2809: Support IP automatic release

See merge request sdk/buildroot!89
2022-12-09 04:42:57 +00:00
Kevin.xie 540861f360 ispsdk: Fix error sc2335 sensor config command on isp daemon.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-12-07 15:48:43 +08:00
Samin Guo 9b17acc9aa package/ifplugd: add eth1 support.
Support the automatic IP acquisition/release of eth1.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-12-06 17:29:56 +08:00