Hoegeun Kwon [Tue, 9 Jan 2024 08:45:39 +0000 (17:45 +0900)]
gpu: drm: img: Fix PVRSRV device initialization time
If the initialization time is a probe, the problem of not loading the
firmware occurs. Fix the initialization time to open time.
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Iaa636f16b458bb2b3128eaeb4319902e866c4e32
Seung-Woo Kim [Tue, 9 Jan 2024 08:47:47 +0000 (17:47 +0900)]
gpu: drm: img: flush sifive cache only when defined
If no sifive cache flush is defined, do not flush.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I930d0266b31d90d43d8eef4f6029b3faac7e5cc3
Hoegeun Kwon [Tue, 9 Jan 2024 08:45:46 +0000 (17:45 +0900)]
gpu: drm: img: Fix to use jh71xx_pmu header
Fix to use jh71xx_pmu header and sifive_flush64_range.
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I672d3ddef84ffbdf98f4afd4d4641e5f4cb0768f
Seung-Woo Kim [Tue, 9 Jan 2024 08:47:54 +0000 (17:47 +0900)]
gpu: drm: img: Replace system work flush with img dedicated workqueue
To remove deprecated flush_scheduled_work() after the commit
20bdedafd2f6 ("workqueue: Warn attempt to flush system-wide workqueues."),
add img dedicated unordered wq and queue/flush the wq instead of
system work.
Ref:
848a4e5c096d ("drm/i915: add a dedicated workqueue inside drm_i915_private")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I20d872118f906033e4b93e7a730580933a4cb8b6
Marek Szyprowski [Mon, 14 Oct 2024 14:07:50 +0000 (16:07 +0200)]
drm: img-rogue: import JH7110_VF2_6.6_v5.13.1
Import updated img-rogue driver from
https://github.com/starfive-tech/linux JH7110_VisionFive2_6.6.y_devel branch.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ic89c43f9e96144b961bc3cd51aa1ac76957d7b7f
Marek Szyprowski [Tue, 8 Oct 2024 11:02:08 +0000 (13:02 +0200)]
script: build: enable building extcon-usb-fixed module
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I79635a10a620db7c08f22b3a2af52ba94c3e789f
Marek Szyprowski [Fri, 6 Sep 2024 06:01:35 +0000 (08:01 +0200)]
RISCV: configs: tizen_visionfive2: drop USB_CDNS3_STARFIVE_EXTCON
Tizen specific workaround in the Cadence USB3 driver has been replaced by
the separate fixed-state usb extcon driver in the linux-tizen-modules
repository, so drop it from Tizen's defconfig.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I94310150fb88960d0ce06469c1642760074fdef4
Marek Szyprowski [Tue, 8 Oct 2024 10:32:29 +0000 (12:32 +0200)]
Revert "usb: cdns3-starfive: Add extcon usb gadget state with always connected"
Since adding a standalone Tizen-specific kernel extcon-usb-fixed module,
which reports USB cable as always connected, the extcon hack/workaround
in the Cadence USB3 driver is no longer needed.
This reverts commit
7e96f1653ad39babf34301a9561937c93ec332fb.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I03aed75616b89ffc5dfcf190b066926155a3d964
Seung-Woo Kim [Fri, 27 Sep 2024 09:18:36 +0000 (18:18 +0900)]
script: build: enable dm_bow module from linux-tizen-modules-source
Because of DM_BOW drop, it should be built from
linux-tizen-modules-source as module.
Change-Id: Ib0185b59c272935b27734cff64abaa23c69d38db
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Fri, 6 Sep 2024 06:07:05 +0000 (08:07 +0200)]
ARM/ARM64: configs: tizen: drop DM_BOW
dm-bow kernel module has been moved to external linux-tizen-modules
repository, so drop it from Tizen's defconfig.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I0d587388a20dab00b062d4a21be0169c38c468f5
Marek Szyprowski [Mon, 9 Sep 2024 11:35:54 +0000 (13:35 +0200)]
Revert "device-mapper: Add dm-bow"
The dm-bow kernel module (developed externally by Google team) has been
moved to linux-tizen-modules-source repository, so keeping a copy of it
in each kernel repository is not needed anymore.
This reverts commit
e6b8811600f9f0ad4a6cc16065f68751c220ae25.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I54385d6854d1cd0914d4ce067dce369b16a206f4
Seung-Woo Kim [Thu, 26 Sep 2024 10:35:48 +0000 (19:35 +0900)]
script: build: enable inform_reboot module from linux-tizen-modules-source
Because of TIZEN_INFORM_REBOOT drop, it should be build from
linux-tizen-modules-source as module.
Also adjust module list with linux-tizen-modules commit:
https://git.tizen.org/cgit/platform/kernel/linux-tizen-modules/commit/?h=tizen&id=
e60a1c0a5ec4e20aee046b58700e3320a4b8ee96
Change-Id: I28e99b91fa3ab35275aa9e0342902272237e6104
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Fri, 6 Sep 2024 06:01:35 +0000 (08:01 +0200)]
RISCV: configs: tizen_visionfive2: drop TIZEN_INFORM_REBOOT
Tizen specific inform-reboot module has been moved to external
linux-tizen-modules repository, so drop it from Tizen's defconfig.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ifa1361d1573aba14ec3555aa079ce161b562d2a9
Marek Szyprowski [Thu, 5 Sep 2024 13:46:08 +0000 (15:46 +0200)]
Revert "misc: add Tizen reboot notifier for passing reboot parameter"
Tizen specific inform-reboot kernel module has been moved to
linux-tizen-modules-source repository, so keeping a copy of it
in each kernel repository is not needed anymore.
This reverts commit
04598d754f6adbc90f1852c6e09ddfc3b3834f2c.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ic0a98cd6eee63eb8a6ba83e10c463b309d756a17
Marek Szyprowski [Fri, 13 Sep 2024 10:22:14 +0000 (12:22 +0200)]
RISCV: configs: tizen_qemu: enable NLS options needed vfat filesystem
Enable basic NLS codepages needed to properly mount vfat formatted boot
partition.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If85024d7a4ab9bc7389be75fc38e2d84c7b48e36
Seung-Woo Kim [Mon, 22 Jul 2024 03:58:56 +0000 (12:58 +0900)]
WORKAROUND: usb: gadget: composite: Set usb_req len with additional bytes
If the usb gadget of cdns3 drd device is used, set ep0 usb_req
length with additional 2 bytes for zlp with exactly multiple of
max packet length of the ep0 to resolve the cdns3 specific ep0
enumeration issue.
The cdns3 has a known issue that zlp is missed when its usb_req
size is exactly multiple of max packet length, 64 and it is not
handled.
In the visionfive2 board with cdns3 in its usb c port, board serial
number is exactly 31 characters and including null character,
utf-8 string length is 64, so the cdns3 zlp issue is occured
during usb sdb enumeration for iSerial usb string descriptor.
If it is fixed from cdns3 driver, this workaround can be reverted.
Change-Id: I751c334d03bcf8fe94aa9f4b0367070bfc47c539
Ref: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1289171/am6411-no-usb-gadget-zlp-for-cdns3_ep0_run_transfer
Suggested-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Fri, 19 Jul 2024 01:55:25 +0000 (10:55 +0900)]
RISCV: dts: jh7110-starfive-visionfive2: Remove broken-cd property for sd
Remove broken-cd property for SD-card.
In tizen, it doesn't use eMMC card. Instead, Tizen is using Sd-card as
boot device.
Tizen has to use SD-card like non-removable on Visionfive2.
Change-Id: Ifad32b169ba74f7c835e3a804bf91a530411ff9a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Tue, 9 Jul 2024 09:39:57 +0000 (18:39 +0900)]
RISCV: configs: tizen_visionfive2: Enable USB_CONFIGFS_ACM
Add missing CONFIG_USB_CONFIGFS_ACM for tizen usb gadget function
support.
Change-Id: I92873514114b812eae19af42eb5d9079aebc7405
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Benjamin Gray [Tue, 12 Sep 2023 06:07:59 +0000 (16:07 +1000)]
perf tools: Address python 3.6 DeprecationWarning for string scapes
Python 3.6 introduced a DeprecationWarning for invalid escape sequences.
This is upgraded to a SyntaxWarning in Python 3.12, and will eventually
be a syntax error.
Fix these now to get ahead of it before it's an error.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mykola Lysenko <mykolal@fb.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Todd E Brandt <todd.e.brandt@linux.intel.com>
Cc: Tom Rix <trix@redhat.com>
Cc: linux-doc@vger.kernel.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: llvm@lists.linux.dev
Link: https://lore.kernel.org/r/20230912060801.95533-6-bgray@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: cherry-pick the mainline commit
280b4e4a9e80 to resolve python 3.12 syntax warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I06385423db9dc27f2bd93adb0ed9f1db2c032e4c
Marek Szyprowski [Wed, 12 Jun 2024 16:56:29 +0000 (18:56 +0200)]
RISCV: configs: tizen_visionfive2: Enable DM_BOW feature
It's needed for system upgrade.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3aa3394ea0c0b5ee4b1d421892ec7b4d06c21c5e
Mateusz Moscicki [Thu, 8 Jul 2021 13:36:25 +0000 (15:36 +0200)]
device-mapper: Add dm-bow
dm-bow is a device mapper driver that allows to create a checkpoint on
the volume so that it is possible to restore the state if necessary.
This is needed to protect the ext4 partition during a system upgrade in
case of a power failure.
Originally-by: Paul Lawrence <paullawrence@google.com>
Origin: https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/drivers/md/dm-bow.c
Signed-off-by: Mateusz Moscicki <m.moscicki2@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[mszyprow: this is a squashed set of the following patches
from platform/kernel/linux-rpi 'tizen' (
c4f85fdcd893) branch:
device-mapper: Add dm-bow
dm-bow: Fix 5.15 compatibility issue
ported and adapted to Linux v6.6 kernel base]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Id44a1fece8b1be096689a86bd9ea8356c25db5e0
Dmitry Antipov [Thu, 21 Dec 2023 08:47:45 +0000 (11:47 +0300)]
btrfs: fix kvcalloc() arguments order in btrfs_ioctl_send()
When compiling with gcc version 14.0.0
20231220 (experimental)
and W=1, I've noticed the following warning:
fs/btrfs/send.c: In function 'btrfs_ioctl_send':
fs/btrfs/send.c:8208:44: warning: 'kvcalloc' sizes specified with 'sizeof'
in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
8208 | sctx->clone_roots = kvcalloc(sizeof(*sctx->clone_roots),
| ^
Since 'n' and 'size' arguments of 'kvcalloc()' are multiplied to
calculate the final size, their actual order doesn't affect the result
and so this is not a bug. But it's still worth to fix it.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit
6ff09b6b8c2fb6b3edda4ffaa173153a40653067)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I30403a32f70d9760f2ce200f8195b87ad62baf4e
Sun Haiyong [Sat, 6 Jan 2024 09:41:29 +0000 (17:41 +0800)]
perf tools: Fix calloc() arguments to address error introduced in gcc-14
the definition of calloc is as follows:
void *calloc(size_t nmemb, size_t size);
number of members is in the first parameter and the size is in the
second parameter.
Fix error messages on gcc 14
20240102:
error: 'calloc' sizes specified with 'sizeof' in the earlier argument and
not in the later argument [-Werror=calloc-transposed-args]
Committer notes:
I noticed this on fedora 40 and rawhide.
cherry-picked from commit
7bbe8f0071dfa23fcc3b2864ec9f3b1aeb7ab2df
Change-Id: Ia96dbd404a3f9339e7e402465eaaa1b98c9d507c
Signed-off-by: Sun Haiyong <sunhaiyong@loongson.cn>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240106094129.3337057-1-siyanteng@loongson.cn
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Sun Haiyong [Mon, 4 Dec 2023 08:20:55 +0000 (16:20 +0800)]
perf top: Remove needless malloc(0) call that triggers -Walloc-size
GCC 14 introduces a new -Walloc-size included in -Wextra which errors out
like:
builtin-top.c: In function ‘prompt_integer’:
builtin-top.c:360:21: error: allocation of insufficient size ‘0’ for
type ‘char’ with size ‘1’ [-Werror=alloc-size]
360 | char *buf = malloc(0), *p;
| ^~~~~~
Just set it to NULL, getline() will do the allocation.
cherry-picked from commit
79baac8acfc60a7a5114f6d60731e28c242ef8ce
Change-Id: I3065836e0e7c352eb7dd7a82b73d4392b8142221
Signed-off-by: Sun Haiyong <sunhaiyong@loongson.cn>
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231204082055.91877-1-siyanteng@loongson.cn
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Mateusz Bieganski [Mon, 27 May 2024 11:33:04 +0000 (13:33 +0200)]
RISCV: config: tizen_visionfive2: enable CONFIG_UNIX_DIAG
In order to better understand interprocess communication, it is often
useful to know filename/inode of the other endpoint, and the process
that has it opened.
With CONFIG_UNIX_DIAG flag enabled, the '+E' parameter of 'lsof' works as expected.
Change-Id: I44f6692c95cb93f31f7804bcaab5e30b27669cc3
Signed-off-by: Mateusz Bieganski <m.bieganski@samsung.com>
Mateusz Bieganski [Mon, 13 May 2024 14:39:09 +0000 (16:39 +0200)]
RISCV: configs: tizen_visionfive2: Enable FTRACE_SYSCALLS switch
Enable FTRACE_SYSCALLS switch, for debug and profiling purposes.
Change-Id: Iccfb832ca569ffe2621f5a9aa5ebb02418ec3007
Signed-off-by: Mateusz Bieganski <m.bieganski@samsung.com>
Anuj Jain [Fri, 10 May 2024 09:51:46 +0000 (15:21 +0530)]
Revert "Bluetooth: Store advertising handle so it can be re-enabled"
This reverts commit
7087c4f69487f017722df7d299ef9b7709996b79.
Patch revert is needed as it is the cause for GATT Server TCT fail.
Change-Id: I60d69db88b4573bcf493239fe81910e2ac1d5b87
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 30 Apr 2024 05:16:46 +0000 (14:16 +0900)]
RISCV: configs: tizen_visionfive2: Enable RT2800USB config
Enable RT2800USB configuration to use RALINK WiFi dongle.
Change-Id: I14156a1e8171db659dbdeae547c93332dbe32660
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Tue, 26 Mar 2024 02:23:49 +0000 (11:23 +0900)]
script: build: Use twice the number of CPUs for cuncurrent compile
It is safe to run twice the number of CPUs for concurrent compile
and it already calculates for it. So, Use twice the number of CPUs.
Change-Id: I5eb5bb80730ffb8c381244c9bf09e5dc77d2c634
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 22 Mar 2024 09:27:33 +0000 (18:27 +0900)]
script: build: Add to build linux-tizen-modules
Add to build and install linux-tizen-modules in local build script.
To build linux-tizne-modules, it is required to clone tizen git
platform/kernel/linux-tizen-modules-source and
platform/kernel/linux-tizen-modules in parent path.
Change-Id: I1e8b799d53a4d8e5f614b20250fa718f5cc48aa4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Thu, 14 Mar 2024 06:25:39 +0000 (15:25 +0900)]
RISCV: configs: tizen_visionfive2: Change a module about PWMDAC
Change a module about PWMDAC. Its devices is always registered to card0.
So, HDMI-audio is always registered to card1. It's played from card0
by default during playing audio.
As loading pwmdac as module, it will be registered to card1.
Change-Id: I3f97cd4584061732cfa88cf90792c0534967a3b7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 14 Mar 2024 01:13:39 +0000 (10:13 +0900)]
RISCV: dts: starfive: Change the pinmux value about mclk_ext_pins
mclk_ext_pins is using by i2stx0.
Vendor kernel is set to GPOUT_HIGH / GOPEN_ENABLE.
Change-Id: I65e1ffb79ec3b6c7b875074348b92e7cb399251a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Mar 2024 10:57:28 +0000 (19:57 +0900)]
perf: riscv_pmu_sbi: Set SYSCTL_LEGACY by default
This patch is workaround for VisionFive2.
During running ubrowser, SIGILL is occurred.
To prevent the SIGILL, sysctl_perf_user_acces is set SYSCTL_LEGACY by
default.
Change-Id: Idbfcbfd27a9286c8e23529fd793b99c4023a449f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Mar 2024 10:33:31 +0000 (19:33 +0900)]
RISCV: configs: tizen_visoinfive2: Disable RISCV_ISA_V config
Visionfive2 doesn't support V extenstion.
It needs to disable its configuration.
Change-Id: I6b6ddc5b7027cdd6bd411f53df787e22e48993af
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Fri, 8 Mar 2024 05:45:26 +0000 (14:45 +0900)]
drm/edid/firmware: Add built-in edid/1280x720.bin firmware
Add built-in edid/1280x720.bin firmware to drm_edid_loader.
The mode is generated from tools/edid/ with below edid data:
/* 1280x720: Modeline "1280x720" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync */
#define HSYNC_POL 1
#define VSYNC_POL 1
#define YPULSE (63+5)
#define XPULSE 128
#define YPIX 720
#define XPIX 1280
#define VFREQ 60
#define DPI 96
#define CLOCK 74500
#define VERSION 1
#define REVISION 3
#define XOFFSET 64
#define YOFFSET (63+3)
#define XY_RATIO XY_RATIO_16_9
#define YBLANK 28
#define XBLANK 384
#define TIMING_NAME "1280x720"
#include "edid.S"
Change-Id: Idfc610102a35494ee54aca06af411cfd9d737b0f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 7 Mar 2024 09:05:39 +0000 (18:05 +0900)]
RISCV: config: tizen_visionfive2: enable DRM_LOAD_EDID_FIRMWARE
Enable CONFIG_DRM_LOAD_EDID_FIRMWARE from tizen defconfigs to
support drm.edid_firmware paremeter.
Adding "drm.edid_firmware=edid/1920x1080.bin" to cmdline makes
all connected display connector has the 1920x1080 mode.
Kernel has prebuilt edids, 800x600.bin, 1024x768.bin,
1280x1024.bin, 1600x1200.bin, 1680x1050.bin and 1920x1080.bin
and to use other mode edids, put custom edid files into path
/lib/firmware/edid/.
Note: to build custom edid binary, please refer tools/edid/.
Change-Id: Ia87be1d9f7a5e6af38201dc432fc046478e80dae
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 7 Mar 2024 08:23:14 +0000 (17:23 +0900)]
RISCV: config: tizen_visionfive2: Enable HID_MULTITOUCH
To support usb touchscreen, enable CONFIG_HID_MULTITOUCH.
Change-Id: I341e1a7951e704b0d16a98caea881305137c56cd
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 7 Mar 2024 08:08:03 +0000 (17:08 +0900)]
RISCV: config: tizen_*: Sync with make savedefconfig
Store minimized defconfig with "make savedefconfig" for each tizen
defconfig files.
Change-Id: I484e3b5bde342ee36a4e02010b703c1c48190d16
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Tymoteusz Wenerski [Wed, 21 Feb 2024 10:28:23 +0000 (11:28 +0100)]
RISCV: config: tizen_visionfive2: Enable NVME driver
Enable NVME driver to mount rootfs directly
from NVME drive during boot.
Change-Id: I60e02507f394c1001c32c802151c0152c24b1397
Signed-off-by: Tymoteusz Wenerski <t.wenerski@partner.samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Marek Szyprowski [Thu, 8 Feb 2024 12:36:53 +0000 (13:36 +0100)]
RISCV: config: tizen_visionfive2: Disable JH7110 crypto driver
JH7110 crypto driver seems to be causing memory trashing, so temporarily
disable it until the issue is really fixed.
This fixes the 'i2c controller timed out' and some other random issues.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3c1030a0eaf41d7cf97b0fdc6d228bc61681ef5e
Seung-Woo Kim [Mon, 5 Feb 2024 07:24:00 +0000 (16:24 +0900)]
RISCV: config: enable wave511 video codec driver as module
Enable wave511 video codec driver as module and also enable all
depending configs.
Change-Id: I0aeb0dfc0a844a3cc17c5054df61454c3f88e5fb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 24 Jan 2024 01:50:20 +0000 (10:50 +0900)]
media: chips-media: wave511: Fix null deference in wave5_vpu_dec_clr_disp_flag()
If wave5_vpu_dec_open() is not called before calling
wave5_vpu_dec_clr_disp_flag(), there is null deference. Fix the
null deference by checking codec_info.
Change-Id: I1a4d9a75681df293e1f67dd4338c6f770d789223
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Wed, 24 Jan 2024 01:50:06 +0000 (10:50 +0900)]
RISCV: dts: starfive: enable jpg, vpu_dec and vpu_enc nodes in visionfive-2
To support video codec, wave vpu, enable related jpg, vpu_dec and
vpu_enc nodes in visionfive-2.
NOTE: Only wave511 vpu_dec is supported with wave video codec
driver because visionfive-2 vpu_enc wave420 is different from
currently supported wave521 by the driver.
Change-Id: Icdd828ce35c98eee9a90a82c69c13614e53bb970
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Samin Guo [Wed, 23 Aug 2023 02:43:54 +0000 (10:43 +0800)]
riscv: dts: starfive: jh7110: add dma-coherent for vpu/jpu
Use DMA-Coherent to avoid DIRECT_REMAP when allocating DMA
buffers
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
[sw0312.kim: cherry-pick the commit
dfb44f0122ba from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia0d3955010e963c0fb635e10081c1a2ab31155d4
Samin Guo [Thu, 8 Jun 2023 08:01:33 +0000 (16:01 +0800)]
riscv: dts: starfive: jh7110: Add vpu/jpu nodes
Add vpu/jpu nodes for jh7110 SOC
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
[sw0312.kim: port the commit
e2d1cdfe5ff5 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel
- Port upstream jh7110 clk and sys-reset controller macro name]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Iae673d805d9549ba96f3c08ee93ea69148f68e1e
Som Qin [Wed, 30 Aug 2023 06:10:50 +0000 (14:10 +0800)]
Medis:wave5: Remove inexistent including
File sifive_l2_cache.h is inexistent in sdk 6.1 version.
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
ed137a80cd88 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel
- Change sifive cache flush function name properly]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Id9d63d72fab1ab0ddeecdb46aeaa19cb0045ed36
Som Qin [Wed, 30 Aug 2023 01:23:21 +0000 (09:23 +0800)]
Media:Wave5: Allocate more linear buffer to avoid block in gst-play
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
a95153b6cedf from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I526c47f67fa196e27d7e4ad5e685252e8a034989
Som Qin [Tue, 29 Aug 2023 02:18:47 +0000 (10:18 +0800)]
Media:Wave5: Fix segment fault when finish buffer
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
9aea96f91ea6 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic2bf17247ed6ec08582d5b98b4e0be24d6a07ce0
Som Qin [Fri, 25 Aug 2023 08:13:01 +0000 (16:13 +0800)]
Media: Wave5: Fix plane size mismatch
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
b4e474a223e8 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: If69aaf750c83daf21b57c459f576ee2200f9c40e
Som Qin [Mon, 7 Aug 2023 07:21:30 +0000 (15:21 +0800)]
Media:Wave5: Fix driver compile warning
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
5d74ac40d250 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: If42384286243423071abcd9ab2107c0507bdc4e8
Som Qin [Wed, 2 Aug 2023 03:38:51 +0000 (11:38 +0800)]
Media:Wave5: Add contiguous planes format support (YUV420/NV12/NV21)
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
80c6e7df80bd from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I4203a253b3c7577a5849ca2582099a2cf07985ea
Som Qin [Tue, 1 Aug 2023 07:03:59 +0000 (15:03 +0800)]
Media:wave5: Driver get clks from DTS instead of hard coding.
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
167fdf2d4c34 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I31ecc8cb300d21ab95c231d14875dcac93e337a6
Som Qin [Tue, 1 Aug 2023 06:09:12 +0000 (14:09 +0800)]
Media:wave5: Fix stride mismatching of decoding frame buffers
When bitstream format bitdepth > 8, stride of compressed frame map buffers shoule be recalculated.
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
a9830d5d01e9 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I58b550e525c8dde7175d09c2934f4f81e08df3fc
Som Qin [Thu, 9 Feb 2023 02:31:40 +0000 (10:31 +0800)]
Media:wave5: wave5 v4l2 driver support gst/ffmpeg
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
3f710b8fa137 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel
- update sifive cache function name properly and add guard for its config option]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ib264712e893c737a28c42a566607b7a55d7f7117
Som Qin [Thu, 12 Jan 2023 01:16:41 +0000 (09:16 +0800)]
Media:wave5: set default format for display_fmt
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
6d80c00e9258 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic0f74bf12580e72ba3209c766e8d167c204702c5
Som Qin [Thu, 22 Dec 2022 07:33:22 +0000 (15:33 +0800)]
media: add wave511 v4l2 support for starfive platfrom
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
a76c4f273c26 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I170dd61340d2da9155dda478e570828347c5bdaf
Nas Chung [Wed, 7 Dec 2022 12:13:48 +0000 (13:13 +0100)]
media: chips-media: wave5: Add TODO file
Add a TODO file with remaining elements to be improved/added.
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
[sw0312.kim: cherry-pick the commit
b9ab65a219e6 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I5249e0f04859224e17b3a1d7702093eedaf000ca
Nas Chung [Wed, 7 Dec 2022 12:13:47 +0000 (13:13 +0100)]
media: chips-media: wave5: Add the v4l2 layer
Add the decoder and encoder implementing the v4l2
API. This patch also adds the Makefile and the VIDEO_WAVE_VPU config
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
[sw0312.kim: cherry-pick the commit
8f188e8db60e from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia41bd9e4afd79fb415fd69722f3c488575ea6958
Nas Chung [Wed, 7 Dec 2022 12:13:46 +0000 (13:13 +0100)]
media: chips-media: wave5: Add vpuapi layer
Add the vpuapi layer of the wave5 codec driver.
This layer is used to configure the hardware according
to the parameters.
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
[sw0312.kim: cherry-pick the commit
20c1678a8e65 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I7e95e00738cc2176138c494c9929dcf5f1250eae
Sebastian Fricke [Wed, 7 Dec 2022 12:13:45 +0000 (13:13 +0100)]
media: platform: chips-media: Move Coda to separate folder
Prepare the folder structure for a second Chips&Media driver.
Move the Coda driver to a sub-directory.
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
[sw0312.kim: cherry-pick the commit
b98dc9cf7754 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I27c82d2154c69aae68c423cc2d2a152ca6efa8b6
Seung-Woo Kim [Mon, 5 Feb 2024 07:21:53 +0000 (16:21 +0900)]
clk: starfive: jh7110-sys: Do not disable vdec clocks
As like vf2 v6.1, do not disable vdec clocks by setting as
CLK_IGNORE_UNUSED to use vdec hw codec.
Change-Id: I98ebc1bd2bc92fb3d0dd634305ac7e31ddf3be1e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Mon, 5 Feb 2024 02:54:41 +0000 (11:54 +0900)]
RISCV: configs: tizen_visionfive2: Enable RTL8XXXU config as module
Enable RTL8XXXU configuration as module. To enable it, enable
LEDS_CLASS with dependency.
Change-Id: I9ff25360d2d17bc315db7e09f9958e170ab1691d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Pikuła [Thu, 1 Feb 2024 15:30:57 +0000 (16:30 +0100)]
RISCV: configs: tizen_qemu: Enable virtio sound
Change-Id: Ieca3126bd4808ea6245a9d6e9eb7ff297ed825b8
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Marek Pikuła [Thu, 1 Feb 2024 15:30:11 +0000 (16:30 +0100)]
RISCV: configs: tizen_qemu: Enable SBI earlycon
Change-Id: Icf986f0e8f2d91cb81c79552375a4d76b70ad3be
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Jaehoon Chung [Mon, 29 Jan 2024 03:47:03 +0000 (12:47 +0900)]
crypto: starfive: jh7110-rsa: Fix the wrong error handling
Fix the wrong error handling.
Even though error is not occurred, rsa_data should be freed.
Change-Id: I40c5cc8bfb7b06e34524e37fc440e515204adf1e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 29 Jan 2024 04:15:38 +0000 (13:15 +0900)]
RISCV: configs: tizen_visionfive2: Enable AMBA_PL08X and CRYTPO_DEV_JH7110
Enable AMBA_PL08X and CRYTPO_DEV_JH7110 configurations.
Change-Id: I4f5f31d1753a3078df4d058cb10f165eb0c348fd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Mon, 29 Jan 2024 02:45:44 +0000 (11:45 +0900)]
drm/verisilicon: vs_dc: Fix to disable interrupt on probe
There is a case where interrupt enable is set in decon req before
decon probe is completed. There is a problem that a kernel panic
occurs if an interrupt is executed before the decon is bound. Disable
interrupts before registering interrupts. Also, irq generated when the
interrupt state is disabled is ignored.
Change-Id: I0b611aadf6c16ea8f850eb570f569e7bad792ce1
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 29 Jan 2024 02:04:35 +0000 (11:04 +0900)]
riscv: dts: starfive: Disable mmc0 node for eMMC
Tizen doesn't use eMMC on Visionfive2.
It doesn't need to enable its node.
Change-Id: I7cdcd4fdcb1cdc5b0a164e93ef65169cb8c62a97
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 29 Jan 2024 02:00:15 +0000 (11:00 +0900)]
RISCV: config: tizen_visionfive2: Enable HW_RANDOM_JH7110
Enable HW_RANDOM_JH7110 config.
Change-Id: I867004762f3bf9278aefd97819fc67d4ecf69aa7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jia Jie Ho [Mon, 4 Dec 2023 03:02:39 +0000 (11:02 +0800)]
crypto: starfive - Remove unneeded NULL checks
NULL check before kfree_sensitive function is not needed.
Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/
202311301702.LxswfETY-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit
555e387047761eb909a0a1a8230efad3fa3e82ca)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I2b868f089ac0bf9fa49bf2657f3fea98fa5c2cfa
Herbert Xu [Thu, 30 Nov 2023 10:12:55 +0000 (18:12 +0800)]
crypto: starfive - Remove cfb and ofb
Remove the unused CFB/OFB implementation.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit
015b8e121082671f14cf2912df9afbfd139575b4)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I79e25261e68f7dbcf5d707f9f10be8f4f35e81dd
Jia Jie Ho [Mon, 20 Nov 2023 03:12:42 +0000 (11:12 +0800)]
crypto: starfive - Pad adata with zeroes
Aad requires padding with zeroes up to 15 bytes in some cases. This
patch increases the allocated buffer size for aad and prevents the
driver accessing uninitialized memory region.
v1->v2: Specify reason for alloc size change in descriptions.
Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit
8a0d929b53c383ba678ed65742e4a8982f71d5c0)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I4d74dc9ce42516838cee07d039a3f13f457e5336
Jia Jie Ho [Tue, 14 Nov 2023 17:12:14 +0000 (01:12 +0800)]
crypto: starfive - RSA poll csr for done status
Hardware could not clear irq status without resetting the entire module.
Driver receives irq immediately when mask bit is cleared causing
intermittent errors in RSA calculations. Switch to use csr polling for
done status instead.
Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit
ba6e3ee4f5d6c13e984f8cb5fb1706ca39ff4a0e)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Ic3ed68e8390f6e9ca171f601a36e2641bc94720f
Jia Jie Ho [Tue, 14 Nov 2023 17:12:13 +0000 (01:12 +0800)]
crypto: starfive - Update driver dependencies
Change AMBA_PL08X to required dependency as the hash ops depends on it
for data transfer.
Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit
29ce1bce3a713a8031a88f80224b72696813447d)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I1f021fbfd4369c1f1d14edf291a1c9b0cdb6b57a
Jaehoon Chung [Tue, 23 Jan 2024 04:22:34 +0000 (13:22 +0900)]
dmaengine: dw-axi-dmac: Check the HAS_APB_REGS flag
Check the AXI_DMA_FLAGS_HAS_APB_REGS flags before checking
chip->apb_regs.
Even though its flags doesn't set, the below message is displaying like error.
[ 24.879187] dw_axi_dmac_platform
16050000.dma-controller: apb_regs not initialized
[ 26.928088] dw_axi_dmac_platform
16050000.dma-controller: apb_regs not initialized
Change-Id: Ia2751ee2308d0b65dc2ec6b69c50be6af578546e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 22 Jan 2024 01:33:22 +0000 (10:33 +0900)]
riscv: dts: starfive: Disable i2srx/i2stx1 nodes
Disable i2srs/i2stx1 nodes.
It doesn't need to use and it's using same pins with tdm.
Change-Id: I62c41ae9807bab439684e3715d5569f91b67089c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 17 Jan 2024 05:01:45 +0000 (14:01 +0900)]
gpu: drm: verisilicon: Fix the build error about vs_gem
Fix the build error about vs_gem.
During updating to v6.6, some callback functions are deprecated.
To fix the call sequence, add the vs_gem_dmabuf-mmap function.
Change-Id: I80a5715924c77faf7a7b68b17ddc6063e2f4333a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hoegeun Kwon [Mon, 17 Jul 2023 07:38:34 +0000 (16:38 +0900)]
drm/verisilicon: Add cache flush feature when dmabuf sync
Add cache flush for gem memory. Cache flushing is done when the
dmabuf sync ioctl is called.
Change-Id: I8663a391b18bb10f69007bd631fec492c0e347b2
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
(cherry picked from commit
e318dd5d3e8f38910b4a61749c58d9992e717e97)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Keith Zhao [Tue, 13 Jun 2023 04:40:16 +0000 (13:40 +0900)]
drm/verisilicon: Add gem driver for JH7110 SoC
This patch implements gem related APIs for JH7100 SoC.
Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
[cherry-pick : https://patchwork.kernel.org/project/linux-riscv/cover/
20230602074043.33872-1-keith.zhao@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
[jh80.chung: cherry picked from commit
e984d033a5ff1917c0a33f258e4ba4c354407e45]
jh80.chung: Removed the conflict codes in vs_drv.c
Change-Id: Iec8976e329ef59f2a0b98203952e4dafb6f38448
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Wed, 9 Aug 2023 02:17:00 +0000 (11:17 +0900)]
RISCV: dts: starfive: Increase CMA range from 512MB to 768MB
In UHD resolution, there are many cases where alloc fail due to lack
of CMA capacity. Increase CMA range to prevent cma_alloc failed.
Change-Id: I6b0c355b773b08d09381e738329b986113982768
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Tue, 16 Jan 2024 07:52:24 +0000 (16:52 +0900)]
riscv: dts: starfive: Add HDMI-Sound card node
Add HDMI-Sound card node as sound-i2s.
Change-Id: Iff48e6cd370795a69ccdb026ea9de2412045fc19
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 16 Jan 2024 07:39:38 +0000 (16:39 +0900)]
Revert "ASoC: dwc: Fix non-DT instantiation"
This reverts commit
9c97790a07dc4f9bdc6e1701003dc9b86f749c71.
In Mainline, it's considering Non-DT case. But case of starfive is using
dt system. This commit is causing about not getting platform_data.
So i2s of starfive is recognizing to "is_jh7110 = 0".
[ 4.054162] designware-i2s: probe of
100e0000.i2s failed with error -110
[ 4.549831] designware-i2s: probe of
120b0000.i2s failed with error -110
[ 5.045455] designware-i2s: probe of
120c0000.i2s failed with error -110
Change-Id: Ie87fbe397e2453659471a305a2864bc30d538116
Xingyu Wu [Mon, 21 Aug 2023 14:41:51 +0000 (22:41 +0800)]
riscv: dts: starfive: Add the nodes and pins of I2Srx/I2Stx0/I2Stx1
Add I2Srx/I2Stx0/I2Stx1 nodes and pins configuration for the
StarFive JH7110 SoC.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Reviewed-by: Walker Chen <walker.chen@starfivetech.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
92cfc35838b2a4006abb9e3bafc291b56f135d01)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I77df1fe119de2ae1712a13b580315c226e43f13a
Xingyu Wu [Mon, 21 Aug 2023 14:41:50 +0000 (22:41 +0800)]
riscv: dts: starfive: pinfunc: Fix the pins name of I2STX1
These pins are actually I2STX1 clock input, not I2STX0,
so their names should be changed.
Change-Id: I3dbbad8963b08052d834937b379fa16905ae159c
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Reviewed-by: Walker Chen <walker.chen@starfivetech.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 16 Jan 2024 03:07:13 +0000 (12:07 +0900)]
RISCV: configs: Enable RTC_DRV_STARFIVE config
Enable CONFIG_RTC_DRV_STARFIVE configuration.
Change-Id: I10219a6e4a0a1f27d8620a0c2877ea802d892a79
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
SaminGuo [Wed, 17 Nov 2021 07:55:45 +0000 (15:55 +0800)]
rtc: starfive: Add support jh7100 rtc driver
Add support rtc driver and device tree of starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
compatible and clock in the device-tree to fix kernel v6.1.
[1] https://github.com/starfive-tech/linux
[2] patch list from v5.15.y
fc56ea25c7ca ziv.xu rtc:starfive: add pm ops for rtc
cc1a7edcd475 ziv.xu rtc-starfive.c:add system pm for rtc
d369d91bd926 Hal Feng rtc: starfive: Standardize property "compatible"
3d1b30793d55 Hal Feng rtc: starfive: Fix time may be not updated when date updated
d85e29ea7625 Hal Feng rtc: starfive: Fix command 'hwclock' can't work in rootfs
f344adc8fb81 Hal Feng rtc: starfive: Change reset api
8cf53d91eb5f Hal Feng rtc: starfive: Improve rtc driver
66422888adb5 Hal Feng rtc: starfive: Improve coding style
99ae7e93b897 Hal Feng rtc: starfive: Use stardand clock and reset apis for initialization
8b570194e872 samin rtc: starfive: Get the interrupt status using Completion.
1fafc8d35f88 SaminGuo rtc: starfive-rtc: Add RTC support for StarFive JH7110.
Signed-off-by: SaminGuo <samin.guo@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Change-Id: I4475e4314237bb8be670aefa40039c166107cb15
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Hoegeun Kwon [Thu, 13 Jul 2023 09:49:56 +0000 (18:49 +0900)]
RISCV: config: tizen_visionfive2_defconfig: Enable img gpu config
Enable Imagination PoerVR GPU driver defconfig.
Change-Id: If8e8b51fe59a367a0981f65b5cc7b3f44f9a8782
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 9 Jan 2024 08:47:47 +0000 (17:47 +0900)]
gpu: drm: img: flush sifive cache only when defined
If no sifive cache flush is defined, do not flush.
Change-Id: Iae4ac4e1d96a543144c0b3e8bbedc476154de84b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 9 Jan 2024 08:47:54 +0000 (17:47 +0900)]
gpu: drm: img: Replace system work flush with img dedicated workqueue
To remove deprecated flush_scheduled_work() after the commit
20bdedafd2f6 ("workqueue: Warn attempt to flush system-wide workqueues."),
add img dedicated unordered wq and queue/flush the wq instead of
system work.
Change-Id: I316b2858abf15e11d9ed40550a41f9494d421c87
Ref:
848a4e5c096d ("drm/i915: add a dedicated workqueue inside drm_i915_private")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 9 Jan 2024 08:47:18 +0000 (17:47 +0900)]
gpu: drm: img: replace vma->vm_flags modification with vm_flags_set()
Replace vma->vm_flags direct modification with modifier call,
vm_flags_set().
Change-Id: If3bd4d2dd13e0bcee7563c12a9d6ea973f90ec50
Ref:
1c71222e5f23 ("mm: replace vma->vm_flags direct modifications with modifier calls")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hoegeun Kwon [Tue, 9 Jan 2024 08:47:25 +0000 (17:47 +0900)]
soc: starfive: Add feature for hw event masks
Add hw event masks off feature for use with other drives.
Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I5b8862cd50b35f0b8ceed770d95a5c17bde8b12c
Hoegeun Kwon [Tue, 9 Jan 2024 08:45:59 +0000 (17:45 +0900)]
gpu: drm: img: Fix to check fence list instead of fence count
In order to generate a reserve fences, we check to see if there is a
fence list instead of fence count.
Change-Id: Ibd45c154610221dd7bcd4de96570fc00066457c8
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hoegeun Kwon [Tue, 9 Jan 2024 08:45:52 +0000 (17:45 +0900)]
gpu: drm: img: Fix to use iterator instead of list
Change the dma fence management method from list to iterator method.
Also the fences have to added individually on each other driver. So
dma_resv_add_fence does not add a fence, but dma_resv_reserve_fences
is used to add it.
Change-Id: I4c87608b9878e218fe0ae5cc5acb564c1f9d5db9
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hoegeun Kwon [Tue, 9 Jan 2024 08:45:46 +0000 (17:45 +0900)]
gpu: drm: img: Fix to use jh71xx_pmu header
Fix to use jh71xx_pmu header and sifive_flush64_range.
Change-Id: I9ad7d5f3de347be0f26ceb4633b0125d2a6480ef
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Hoegeun Kwon [Tue, 9 Jan 2024 08:45:39 +0000 (17:45 +0900)]
gpu: drm: img: Fix PVRSRV device initialization time
If the initialization time is a probe, the problem of not loading the
firmware occurs. Fix the initialization time to open time.
Change-Id: I1372230fdbe754845146eacd7bbb7b4e248c2c4f
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
shanlong.li [Tue, 9 Jan 2024 08:45:31 +0000 (17:45 +0900)]
drm/GPU: Add support Imagination PowerVR GPU driver v1.17
Add support Imagination PowerVR GPU driver with starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
driver compatible and clock in the device-tree to fix kernel v6.1.
[1] https://github.com/starfive-tech/linux
[2] patch list from v5.15.y
b9049f928d30 gpu: drm: img: disable PDUMP
092482e4811e driver:GPU: adjust interface sequence 1. add axi disable interface 2. adjust the interface order between clk and
b320e5501342 gpu:driver: fix up hibernation resume problem
0dea95655224 driver:gpu: add gpu runtime pm
0381e221bc0d driver:gpu: gpu driver change to release
6ccc2d8209d9 driver:GPU:set the gpu frequency to 594Mhz
d81e5fcbcccc driver:gpu: gpu driver upgrade to 1.17
18a68c90c061 Add Wayland with GPU support.
e4d3672cccbe driver:GPU: use pm runtime interface
4c34123a3d81 driver:GPU: Using the GPU driver release version
1ed4d6d30d92 driver:GPU: Disable apm to resolve pvrdebug -dd suspension error
13e336d5b5ae driver:GPU: adjust ClockSpeed to 409.6MHz
c2a828350549 driver:GPU: fix compile warnings
2ba6ee6d00df driver:GPU: add gpu driver
Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
Change-Id: I8ac4ba0038e8ba48c48d615f8700c49c7ff706b9
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 12 Jan 2024 08:35:11 +0000 (17:35 +0900)]
drm/vs: rename drm driver name for starfive prebuilt gbm
The prebuilt libgbm buffer menager requires "starfive" drm driver
name to initialize and without the "starfive" drm driver, prebuilt
gpu ddk is failed to initialize gl. To use starfive prebuilt gpu
binary, use name as "starfive".
Change-Id: I92c7b6ba90f2aae9ed4035cd82ba0b57115ad900
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Fri, 12 Jan 2024 06:36:32 +0000 (15:36 +0900)]
RISCV: config: tizen_visionfive2: Enable USB_DUMMY_HCD as module for usb hcd tetst
To support usb host hcd test, enable CONFIG_USB_DUMMY_HCD
as module.
Change-Id: I6811466c1be203e21ad469f99ba0e262ff740203
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 9 Jan 2024 08:42:06 +0000 (17:42 +0900)]
RISCV: config: tizen_visionfive2: Disable unnecessary modules
Disable unnecessary modules including DRM_I2C_*, BLK_DEV_NVME,
EFIVAR_FS.
Change-Id: I22daf65fa0f29e9896bed56e5326aff850557db5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Wed, 3 Jan 2024 01:06:59 +0000 (10:06 +0900)]
RISCV: config: tizen_visionfive2: Enable TIZEN_INFORM_REBOOT
Enable TIZEN_INFORM_REBOOT configuration to save a reboot paramemter.
It will be parsed by u-boot.
Change-Id: I40a102e9293b339036d2db83f63d98df249acf25
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>