platform/kernel/linux-starfive.git
10 months agoRISCV: configs: Enable INPUT_UINPUT config 68/293868/1 tizen-5.15.y
Jaehoon Chung [Wed, 7 Jun 2023 08:03:43 +0000 (17:03 +0900)]
RISCV: configs: Enable INPUT_UINPUT config

Enable INPUT_UINPUT configuration.

Change-Id: If8856d3cdc753ceb516a781634db978b7e0a11e1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 months agoRISCV: configs: Enable PCIE_PLDA config 84/293784/1
Jaehoon Chung [Mon, 5 Jun 2023 03:12:21 +0000 (12:12 +0900)]
RISCV: configs: Enable PCIE_PLDA config

Enable PCIE_PLDA configuration to use the usb hub.

Change-Id: I61c782a9c1eb2b75834e8273ebff364c9e8a1f08
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 months agoRISCV: configs: Enable CONFIG_CPUSETS 49/293649/1
Jaehoon Chung [Thu, 1 Jun 2023 11:25:03 +0000 (20:25 +0900)]
RISCV: configs: Enable CONFIG_CPUSETS

Enable CONFIG_CPUSETS.
During booting, displayed the below log.
"cgroup: Unknown subsys name 'cpuset'"

Change-Id: I9b877061017eb9aa78f20a93a47ea50de3512ca5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 months agonet_sched: add __rcu annotation to netdev->qdisc 48/293648/1
Eric Dumazet [Fri, 11 Feb 2022 20:06:23 +0000 (12:06 -0800)]
net_sched: add __rcu annotation to netdev->qdisc

commit 5891cd5ec46c2c2eb6427cb54d214b149635dd0e upstream.

syzbot found a data-race [1] which lead me to add __rcu
annotations to netdev->qdisc, and proper accessors
to get LOCKDEP support.

[1]
BUG: KCSAN: data-race in dev_activate / qdisc_lookup_rcu

write to 0xffff888168ad6410 of 8 bytes by task 13559 on cpu 1:
 attach_default_qdiscs net/sched/sch_generic.c:1167 [inline]
 dev_activate+0x2ed/0x8f0 net/sched/sch_generic.c:1221
 __dev_open+0x2e9/0x3a0 net/core/dev.c:1416
 __dev_change_flags+0x167/0x3f0 net/core/dev.c:8139
 rtnl_configure_link+0xc2/0x150 net/core/rtnetlink.c:3150
 __rtnl_newlink net/core/rtnetlink.c:3489 [inline]
 rtnl_newlink+0xf4d/0x13e0 net/core/rtnetlink.c:3529
 rtnetlink_rcv_msg+0x745/0x7e0 net/core/rtnetlink.c:5594
 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5612
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x602/0x6d0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x728/0x850 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmsg+0x195/0x230 net/socket.c:2496
 __do_sys_sendmsg net/socket.c:2505 [inline]
 __se_sys_sendmsg net/socket.c:2503 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2503
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888168ad6410 of 8 bytes by task 13560 on cpu 0:
 qdisc_lookup_rcu+0x30/0x2e0 net/sched/sch_api.c:323
 __tcf_qdisc_find+0x74/0x3a0 net/sched/cls_api.c:1050
 tc_del_tfilter+0x1c7/0x1350 net/sched/cls_api.c:2211
 rtnetlink_rcv_msg+0x5ba/0x7e0 net/core/rtnetlink.c:5585
 netlink_rcv_skb+0x14e/0x250 net/netlink/af_netlink.c:2494
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5612
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x602/0x6d0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x728/0x850 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmsg+0x195/0x230 net/socket.c:2496
 __do_sys_sendmsg net/socket.c:2505 [inline]
 __se_sys_sendmsg net/socket.c:2503 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2503
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffffffff85dee080 -> 0xffff88815d96ec00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13560 Comm: syz-executor.2 Not tainted 5.17.0-rc3-syzkaller-00116-gf1baf68e1383-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011

Fixes: 470502de5bdb ("net: sched: unlock rules update API")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Vlad Buslov <vladbu@mellanox.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 9bb363ba014ff7d2823baf2a0cf7a91e39fb63f2)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I1461de2c3e963548eedaa22f03a1d76686f9e93f

10 months agonet: sched: update default qdisc visibility after Tx queue cnt changes 47/293647/1
Jakub Kicinski [Mon, 13 Sep 2021 22:53:30 +0000 (15:53 -0700)]
net: sched: update default qdisc visibility after Tx queue cnt changes

[ Upstream commit 1e080f17750d1083e8a32f7b350584ae1cd7ff20 ]

mq / mqprio make the default child qdiscs visible. They only do
so for the qdiscs which are within real_num_tx_queues when the
device is registered. Depending on order of calls in the driver,
or if user space changes config via ethtool -L the number of
qdiscs visible under tc qdisc show will differ from the number
of queues. This is confusing to users and potentially to system
configuration scripts which try to make sure qdiscs have the
right parameters.

Add a new Qdisc_ops callback and make relevant qdiscs TTRT.

Note that this uncovers the "shortcut" created by
commit 1f27cde313d7 ("net: sched: use pfifo_fast for non real queues")
The default child qdiscs beyond initial real_num_tx are always
pfifo_fast, no matter what the sysfs setting is. Fixing this
gets a little tricky because we'd need to keep a reference
on whatever the default qdisc was at the time of creation.
In practice this is likely an non-issue the qdiscs likely have
to be configured to non-default settings, so whatever user space
is doing such configuration can replace the pfifos... now that
it will see them.

Reported-by: Matthew Massey <matthewmassey@fb.com>
Reviewed-by: Dave Taht <dave.taht@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit ae11b215aef8f4cd8143a6a0712e9849e1cc3a9c)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I9620005dfc9b18d28cccfd86430082351d6f7605

10 months agoRISCV: configs: Disable WIFI_ECR6600U config 46/293646/1
Jaehoon Chung [Thu, 1 Jun 2023 06:21:52 +0000 (15:21 +0900)]
RISCV: configs: Disable WIFI_ECR6600U config

Disable WIFI_ECR6600U config.
Its driver is not mainline version, so there are some error when enable
trace configurations. It seems that it's useless to fix codes.

Change-Id: I83619c3c58aaabedadc5ad8150c740c5329aec18
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
10 months agortlwifi: rtl8192cu: Fix WARNING when calling local_irq_restore() with interrupts... 11/293611/2
Larry Finger [Wed, 15 Dec 2021 17:11:05 +0000 (11:11 -0600)]
rtlwifi: rtl8192cu: Fix WARNING when calling local_irq_restore() with interrupts enabled

commit 8b144dedb928e4e2f433a328d58f44c3c098d63e upstream.

Syzbot reports the following WARNING:

[200~raw_local_irq_restore() called with IRQs enabled
WARNING: CPU: 1 PID: 1206 at kernel/locking/irqflag-debug.c:10
   warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10

Hardware initialization for the rtl8188cu can run for as long as 350 ms,
and the routine may be called with interrupts disabled. To avoid locking
the machine for this long, the current routine saves the interrupt flags
and enables local interrupts. The problem is that it restores the flags
at the end without disabling local interrupts first.

This patch fixes commit a53268be0cb9 ("rtlwifi: rtl8192cu: Fix too long
disable of IRQs").

Reported-by: syzbot+cce1ee31614c171f5595@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Fixes: a53268be0cb9 ("rtlwifi: rtl8192cu: Fix too long disable of IRQs")
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211215171105.20623-1-Larry.Finger@lwfinger.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 898e91c32d045e9248d5f6eff73648b8c297f2b1)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I813963bdc0c9482ddfe222f964108d3a8cba910a

10 months agoRISCV: configs: Enable F2FS_FS_SECURITY config 24/293624/1
Jaehoon Chung [Thu, 1 Jun 2023 06:42:31 +0000 (15:42 +0900)]
RISCV: configs: Enable F2FS_FS_SECURITY config

Enable F2FS_FS_SECURITY config.
It needs to use smack label on Tizen.

Change-Id: Ib6d5cd8c8c77ad422357394949ce3372c3d61b73
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agoRevert "Bluetooth: Store advertising handle so it can be re-enabled" 56/293156/1
Anuj Jain [Tue, 16 May 2023 13:55:19 +0000 (19:25 +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: I55bedbb6b0d44058c13ac06df121c5d936611c74
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
11 months agoBluetooth: Add LE connection parameter update 55/293155/1
Anuj Jain [Fri, 6 Jan 2023 09:59:24 +0000 (15:29 +0530)]
Bluetooth: Add LE connection parameter update

Add support for BT_LE_CONN_PARAM in l2cap socket.

Change-Id: I2ed693da26ba2d3464b9997bf1880c6c136055cd
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
11 months agoBluetooth: fix wrong indent in __hci_req_update_{scan/adv}_rsp_data() 54/293154/1
Seung-Woo Kim [Wed, 17 Jul 2019 01:56:16 +0000 (10:56 +0900)]
Bluetooth: fix wrong indent in __hci_req_update_{scan/adv}_rsp_data()

The commit ac160e08af69 ("Bluetooth: Add Advertising Packet
Configuration") introduces wrong indent which causes build warning for
gcc-7. Fix the wrong indent.

Change-Id: Ia0bde8a8f9660ccf8fa312e3c3ec6c8cb76863f1
Fixes: ac160e08af69 ("Bluetooth: Add Advertising Packet Configuration")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
11 months agoBluetooth : fix build error 53/293153/1
Hoegeun Kwon [Fri, 14 Oct 2022 07:02:19 +0000 (16:02 +0900)]
Bluetooth : fix build error

Update device name on remote_name_event, Fix interface define for
build error.

Change-Id: I59df4a7e30f9a83a0efdce516b2a325cb3b0983b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
11 months agoBluetooth: Fix the potential crash issue 52/293152/1
DoHyun Pyun [Thu, 4 Jul 2019 00:18:21 +0000 (09:18 +0900)]
Bluetooth: Fix the potential crash issue

There is a logic error in the event function. We should
check the callback function's parameter before calling.

Change-Id: I06a4a8c50317e5ec4ae8fe35e4b788105e090196
Fixes: bde01c80dd51 ("Bluetooth: Set le data length command and event")
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
11 months agoBluetooth: Set le data length command and event 51/293151/1
Sudha Bheemanna [Fri, 16 Sep 2016 10:07:22 +0000 (15:37 +0530)]
Bluetooth: Set le data length command and event

Sets the data length for the le data packet with in the
advised limits. MGMT command and event are added to handle
the setting of data length.

Change-Id: Ia5c2167743cc9a29190e5631973e9d52d41caa1d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Read host suggested default le data length 50/293150/1
Sudha Bheemanna [Fri, 16 Sep 2016 07:24:31 +0000 (12:54 +0530)]
Bluetooth: Read host suggested default le data length

This patch adds MGMT command and code for supporting reading
default le data length value set at the controller.

Change-Id: I2b81982dc26ed5af4a8f8a3d3913db5d64625260
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Write host suggested default le data length 49/293149/1
Sudha Bheemanna [Fri, 16 Sep 2016 06:39:57 +0000 (12:09 +0530)]
Bluetooth: Write host suggested default le data length

This patch adds MGMT command and code for supporting write
default le data length command to the controller.

Change-Id: I3d2c8b622b7913a3ed542342e3ba8076c30dc279
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Read LE Max data length command 48/293148/1
Sudha Bheemanna [Fri, 16 Sep 2016 05:08:30 +0000 (10:38 +0530)]
Bluetooth: Read LE Max data length command

This patch adds the MGMT command and code to support reading
the maximum data length supported command for LE.

Change-Id: I4dc0041f2070de2ccb6a4164c8823612863c941e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Fix IPSP connection callback event issue. 47/293147/1
h.sandeep [Fri, 16 Sep 2016 09:15:24 +0000 (14:45 +0530)]
Bluetooth: Fix IPSP connection callback event issue.

This patch fixes the IPSP connection callback event issue
between kernel and bluez layer.

Change-Id: Ia4d625aa8a6dbc9da89a7d9f12308af9c90d0594
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: IPSP Connect/Disconnect apis 46/293146/1
Sudha Bheemanna [Thu, 15 Sep 2016 07:23:03 +0000 (12:53 +0530)]
Bluetooth: IPSP Connect/Disconnect apis

This patch adds MGMT code to support IPSP connect and
disconnect apis and handle connection state changed event.

Change-Id: I1c41ec4f38cf9a108e443def3bc23c1b964e2985
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add support to enable/disable IPSP 45/293145/1
Sudha Bheemanna [Thu, 15 Sep 2016 04:42:09 +0000 (10:12 +0530)]
Bluetooth: Add support to enable/disable IPSP

This patch supports MGMT commands and code to enable or disable
IPSP 6LowPan features.

Change-Id: Ia866ecfa517c7d7e4320f17d94d80dfeb9261e59
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Fix issue in the Set LE privacy function. 44/293144/1
Sudha Bheemanna [Thu, 8 Sep 2016 10:51:01 +0000 (16:21 +0530)]
Bluetooth: Fix issue in the Set LE privacy function.

This patch fixes not to check the hdev power before setting
LE Privacy.

Change-Id: I344ea13b1d90527e3e7554ec616cdc640b85159c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Store the key if auth type is P192 43/293143/1
Sudha Bheemanna [Mon, 12 Sep 2016 07:16:44 +0000 (12:46 +0530)]
Bluetooth: Store the key if auth type is P192

This patch allows to store the key after authentication
if auth type is "HCI_LK_AUTH_COMBINATION_P192"

Change-Id: Ie44dbe7dfec361edab61aceaf9b2ca4057b88fa5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Cancel the Sniff timer 42/293142/1
Sudha Bheemanna [Thu, 8 Sep 2016 11:31:39 +0000 (17:01 +0530)]
Bluetooth: Cancel the Sniff timer

This patch adds code to cancel the sniff timer.

Change-Id: I756d3b08acf6462044d1fb204064fe12ce1238c1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Enable sniff mode for incoming connection 41/293141/1
Sudha Bheemanna [Thu, 8 Sep 2016 11:10:50 +0000 (16:40 +0530)]
Bluetooth: Enable sniff mode for incoming connection

Add provision to set the link poilicy to enable sniff mode
for incoming connection.

Change-Id: Ifff9e9f0838f26a6c96d81f4cbaae43429aa231f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Modify fast connectable type. 40/293140/1
Sudha Bheemanna [Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)]
Bluetooth: Modify fast connectable type.

This patch modifies the fast connectable function
to just set the type.

Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Send Authentication Request command on pairing failure 39/293139/1
Sudha Bheemanna [Thu, 8 Sep 2016 09:41:28 +0000 (15:11 +0530)]
Bluetooth: Send Authentication Request command on pairing failure

This patch allows to send HCI_OP_AUTH_REQUESTED command
to the remote device if pairing failure happens because
of pin or key missing error.

Change-Id: I9c28394dc06b22fd5fe9e58ac0b7d728c086bde4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Enable inquiry and page scan 38/293138/1
Sudha Bheemanna [Thu, 8 Sep 2016 09:24:54 +0000 (14:54 +0530)]
Bluetooth: Enable inquiry and page scan

This patch enables the inquiry and page scan after ACL
disconnection with one device and if there are no other
devices connected.

Change-Id: Ifb28be7d23f237d35112b2e0739ed55169baacf7
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Change authentication requirement. 37/293137/1
Sudha Bheemanna [Thu, 8 Sep 2016 07:34:11 +0000 (13:04 +0530)]
Bluetooth: Change authentication requirement.

This patch updates the authentication requirement to general
MITM if local and remote device IO capabilities are not
NO_INPUT_NO_OUTPUT.

Change-Id: Ie3955c3f8287418e74af20d40bdf30d0f1963e31
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Set link Supervision timeout for a connection 36/293136/1
Sudha Bheemanna [Thu, 8 Sep 2016 06:54:43 +0000 (12:24 +0530)]
Bluetooth: Set link Supervision timeout for a connection

This patch allows to set the supervision timeout for a connection
if the device role is master.

Change-Id: I7897167ec07803f3059f2ab4d3314b0b7a951533
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Set filter policy for LE connection 35/293135/1
Sudha Bheemanna [Thu, 8 Sep 2016 05:51:06 +0000 (11:21 +0530)]
Bluetooth: Set filter policy for LE connection

This patch sets the filter policy to a default value 0x01 during
LE auto connection if the destination address is not set. And it
updates the destination address once the LE connection complete
event is recieved during LE auto connection. And for it checks
valid destination address before cancelling LE connection when
connection timeout occurs.

Change-Id: I9877556c0b0ab4826f5f4934ead4d85b7837036d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[squash patches, LE connection policy, set dest address and check dest address before cancelling connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Get Advertising TX power 34/293134/1
Sudha Bheemanna [Wed, 7 Sep 2016 09:52:08 +0000 (15:22 +0530)]
Bluetooth: Get Advertising TX power

This patch adds MGMT command to read the advertising TX power.

Change-Id: Ide9e5d332f034928d2eae2cbd68a025a0d42be1b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Set the link for SCO connection 33/293133/1
Sudha Bheemanna [Thu, 8 Sep 2016 07:07:45 +0000 (12:37 +0530)]
Bluetooth: Set the link for SCO connection

This patch sets the link policy for SCO/eSCO connection.

Change-Id: I71caef5a3887f73a10329b6886c8cf52b80e8d37
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[add link policy setting in sco connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add MGMT command to set SCO settings 32/293132/1
Sudha Bheemanna [Tue, 6 Sep 2016 11:08:36 +0000 (16:38 +0530)]
Bluetooth: Add MGMT command to set SCO settings

Added code to set sco settings.

Change-Id: I37aa572436241b06e00d1e9e75964aac747eeba5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[remove sco link policy part]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add multiple LE advertise state change event 31/293131/1
Sudha Bheemanna [Thu, 8 Sep 2016 05:01:17 +0000 (10:31 +0530)]
Bluetooth: Add multiple LE advertise state change event

This patch adds code for providing multiple LE advertisement state
changed event to upper layer.

Change-Id: I58fb8044e74402376ec30b121081edce7c8709d1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci_vendor_mutli_adv_state_change_evt and remove hci event structure from mgmt]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add LE device found MGMT event 30/293130/1
Sudha Bheemanna [Thu, 8 Sep 2016 04:40:03 +0000 (10:10 +0530)]
Bluetooth: Add LE device found MGMT event

This patch adds new MGMT event for LE device discovery and allows
the handling of all advertisement packets in platform.

Change-Id: I1927acb75eff0b60a5899898c6d7a000e1a108ef
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: fix vendor ext rssi link alert event 29/293129/1
Seung-Woo Kim [Wed, 28 Sep 2016 16:59:05 +0000 (01:59 +0900)]
Bluetooth: fix vendor ext rssi link alert event

This patch fixes style for rssi link alert event from vendor
specific group ext.

Change-Id: I0e7003e417c5f5a590cce8264caccad515dd3c10
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add H/W TX timeout error MGMT event 28/293128/1
Sudha Bheemanna [Wed, 7 Sep 2016 11:17:58 +0000 (16:47 +0530)]
Bluetooth: Add H/W TX timeout error MGMT event

This patch sends the H/W TX timeout error MGMT event if HCI command
timeout occurs after sending HCI commands.

Change-Id: I5eb593f2fe4d31c404dd94ef582790e47d03b10a
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add hardware error MGMT event 27/293127/1
Sudha Bheemanna [Wed, 7 Sep 2016 10:12:22 +0000 (15:42 +0530)]
Bluetooth: Add hardware error MGMT event

Add code to handle hardware error MGMT event.

Change-Id: I5875ea2aeae7aba95c1f8e15b456704dc6bcdee4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add LE vendor specific event handler 26/293126/1
Sudha Bheemanna [Thu, 8 Sep 2016 05:26:15 +0000 (10:56 +0530)]
Bluetooth: Add LE vendor specific event handler

This patch adds the vendor specific LE meta event handler.
It handles the vendor specific handles like,
LE_MULTI_ADV_STATE_CHANGE_SUB_EVENT, LE_RSSI_LINK_ALERT.

Change-Id: I1f344a31e36f9c7442fe0bd8b598e67d9f5fb9bf
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci vendor speicif group event function]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add set LE scan parameter feature 25/293125/1
Sudha Bheemanna [Thu, 25 Aug 2016 07:16:07 +0000 (12:46 +0530)]
Bluetooth: Add set LE scan parameter feature

Added new MGMT command to set LE scan parameters

Change-Id: I5ea660f97e93dfcc72273971ad0250e7f582f718
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Set Manufacturer data feature 24/293124/1
Sudha Bheemanna [Thu, 25 Aug 2016 06:43:09 +0000 (12:13 +0530)]
Bluetooth: Set Manufacturer data feature

Added new MGMT command to set the manufacturer data
in the BR/EDR packet.

Change-Id: Ie08062f4cad0c676deab94fd95fdc1a8c5602135
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add LE connection parameter update procedure 23/293123/1
Sudha Bheemanna [Thu, 25 Aug 2016 06:28:22 +0000 (11:58 +0530)]
Bluetooth: Add LE connection parameter update procedure

Added new MGMT command to update LE connection parameters

Change-Id: I6ae16513437cd42d40e75958aa8415baa1cbedbb
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add stop LE auto connection feature 22/293122/1
Sudha Bheemanna [Thu, 25 Aug 2016 06:11:34 +0000 (11:41 +0530)]
Bluetooth: Add stop LE auto connection feature

Added new MGMT command to disable LE auto connection.

Change-Id: I1f5f61b83227501ad54019008b405fd47fd722a3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add BT LE discovery feature 21/293121/1
Sudha Bheemanna [Thu, 25 Aug 2016 05:53:02 +0000 (11:23 +0530)]
Bluetooth: Add BT LE discovery feature

This patch adds new MGMT commands to start LE discovery separately
and handles LE discovery state.

Change-Id: I85958b8c2b5c7e28f57c69e86037ab1e61a75db0
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Update device name on remote_name_event 20/293120/1
Sudha Bheemanna [Thu, 25 Aug 2016 04:47:19 +0000 (10:17 +0530)]
Bluetooth: Update device name on remote_name_event

This patch updates the device name on receiving the HCI event
remote_name_event during connection establishment.

Change-Id: I9a217e6760b1803a70af201a3f6903e722079749
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add RSSI Monitor feature 19/293119/1
Sudha Bheemanna [Wed, 24 Aug 2016 11:51:15 +0000 (17:21 +0530)]
Bluetooth: Add RSSI Monitor feature

Added feature support for monitoring the RSSI value.
Commands and events for enabling, disabling and setting
rssi threshold values are added.

Change-Id: I850643a9228afc017e54217a11826b9c6a68a96b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Functions to modify WhiteList 18/293118/1
Sudha Bheemanna [Wed, 24 Aug 2016 09:32:56 +0000 (15:02 +0530)]
Bluetooth: Functions to modify WhiteList

This patch provides MGMT commands to manage the white
list which includes, adding, removing and clearing the
devices from white list.

Change-Id: If71107129d3a090ae81448a8122b76accd4f5522
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add Advertising Packet Configuration 17/293117/1
Sudha Bheemanna [Wed, 24 Aug 2016 06:47:16 +0000 (12:17 +0530)]
Bluetooth: Add Advertising Packet Configuration

This patch provides new MGMT commands to configure
the advertising data and scan response data packets for
LE peripheral devices.

Change-Id: I914d13795f4fb58e5f2e1cadb55086f4bcbc82df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
[jhoon20.kim: adjust some codes to apply it in 5.4 kernel]
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
11 months agoBluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE. 16/293116/1
h.sandeep [Thu, 1 Sep 2016 06:30:57 +0000 (12:00 +0530)]
Bluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.

Added the basic skeleton code for tizen_mgmt_handlers and
mgmt_tizen.h header file.

Change-Id: I8f3100aa79e6673840ba561f0a9c50238ca0880b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agoBluetooth: Add "TIZEN_BT" flag 15/293115/1
Sudha Bheemanna [Tue, 23 Aug 2016 11:37:10 +0000 (17:07 +0530)]
Bluetooth: Add "TIZEN_BT" flag

Added the tizen specific flag for use in adding tizen patches.

Change-Id: Ia391644fddbe600c8d845e0bf0808f587aa73e0c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
11 months agopackaging: linux-visionfive2: Fix the number of version 08/292908/1
Jaehoon Chung [Wed, 17 May 2023 02:06:24 +0000 (11:06 +0900)]
packaging: linux-visionfive2: Fix the number of version

To use upstream branch, it need to use correct version.
There is no v5.15.0 in tag. Use v5.15 instead of v5.15.0.

Change-Id: I8e86b3b11e0796c0deab6e88d3aee093695eecc8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agotools bpftool: Fix compilation error with new binutils 07/292907/1
Andres Freund [Mon, 1 Aug 2022 01:38:33 +0000 (18:38 -0700)]
tools bpftool: Fix compilation error with new binutils

commit 600b7b26c07a070d0153daa76b3806c1e52c9e00 upstream.

binutils changed the signature of init_disassemble_info(), which now causes
compilation to fail for tools/bpf/bpftool/jit_disasm.c, e.g. on debian
unstable.

Relevant binutils commit:

  https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07

Wire up the feature test and switch to init_disassemble_info_compat(),
which were introduced in prior commits, fixing the compilation failure.

I verified that bpftool can still disassemble bpf programs, both with an
old and new dis-asm.h API. There are no output changes for plain and json
formats. When comparing the output from old binutils (2.35)
to new bintuils with the patch (upstream snapshot) there are a few output
differences, but they are unrelated to this patch. An example hunk is:

     2f: pop    %r14
     31: pop    %r13
     33: pop    %rbx
  -  34: leaveq
  -  35: retq
  +  34: leave
  +  35: ret

Signed-off-by: Andres Freund <andres@anarazel.de>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Ben Hutchings <benh@debian.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: bpf@vger.kernel.org
Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de
Link: https://lore.kernel.org/r/20220801013834.156015-8-andres@anarazel.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4441a90091931fd81607567961dc122f24f735bb)

Change-Id: I832b16eae3bfc13cf83394403250d5843f6c6284
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agotools include: add dis-asm-compat.h to handle version differences 06/292906/1
Andres Freund [Mon, 1 Aug 2022 01:38:29 +0000 (18:38 -0700)]
tools include: add dis-asm-compat.h to handle version differences

commit a45b3d6926231c3d024ea0de4f7bd967f83709ee upstream.

binutils changed the signature of init_disassemble_info(), which now causes
compilation failures for tools/{perf,bpf}, e.g. on debian unstable.

Relevant binutils commit:

  https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07

This commit introduces a wrapper for init_disassemble_info(), to avoid
spreading #ifdef DISASM_INIT_STYLED to a bunch of places. Subsequent
commits will use it to fix the build failures.

It likely is worth adding a wrapper for disassember(), to avoid the already
existing DISASM_FOUR_ARGS_SIGNATURE ifdefery.

Signed-off-by: Andres Freund <andres@anarazel.de>
Signed-off-by: Ben Hutchings <benh@debian.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Ben Hutchings <benh@debian.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: bpf@vger.kernel.org
Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de
Link: https://lore.kernel.org/r/20220801013834.156015-4-andres@anarazel.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 451c9d7b16169645ed291ebb2ca9844caa088f2d)

Change-Id: Ic46658e0093e2476e717a3c8d357df475b8a0d73
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agotools bpf_jit_disasm: Fix compilation error with new binutils 05/292905/1
Andres Freund [Mon, 1 Aug 2022 01:38:31 +0000 (18:38 -0700)]
tools bpf_jit_disasm: Fix compilation error with new binutils

commit 96ed066054abf11c7d3e106e3011a51f3f1227a3 upstream.

binutils changed the signature of init_disassemble_info(), which now causes
compilation to fail for tools/bpf/bpf_jit_disasm.c, e.g. on debian
unstable.

Relevant binutils commit:

  https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07

Wire up the feature test and switch to init_disassemble_info_compat(),
which were introduced in prior commits, fixing the compilation failure.

I verified that bpf_jit_disasm can still disassemble bpf programs, both
with the old and new dis-asm.h API. With old binutils there's no change in
output before/after this patch. When comparing the output from old
binutils (2.35) to new bintuils with the patch (upstream snapshot) there
are a few output differences, but they are unrelated to this patch. An
example hunk is:

     f4: mov    %r14,%rsi
     f7: mov    %r15,%rdx
     fa: mov    $0x2a,%ecx
  -  ff: callq  0xffffffffea8c4988
  +  ff: call   0xffffffffea8c4988
    104: test   %rax,%rax
    107: jge    0x0000000000000110
    109: xor    %eax,%eax
  - 10b: jmpq   0x0000000000000073
  + 10b: jmp    0x0000000000000073
    110: cmp    $0x16,%rax

However, I had to use an older kernel to generate the bpf_jit_enabled =
2 output, as that has been broken since 5.18 / 1022a5498f6f745c ("bpf,
x86_64: Use bpf_jit_binary_pack_alloc").

  https://lore.kernel.org/20220703030210.pmjft7qc2eajzi6c@alap3.anarazel.de

Signed-off-by: Andres Freund <andres@anarazel.de>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Ben Hutchings <benh@debian.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: bpf@vger.kernel.org
Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de
Link: https://lore.kernel.org/r/20220801013834.156015-6-andres@anarazel.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 1c27fab243333821375e4d63128d60093fdbe149)

Change-Id: I1e99c6bf30a8e7554a16f15e01240a7911f20e9f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agotools perf: Fix compilation error with new binutils 04/292904/1
Andres Freund [Mon, 1 Aug 2022 01:38:30 +0000 (18:38 -0700)]
tools perf: Fix compilation error with new binutils

commit 83aa0120487e8bc3f231e72c460add783f71f17c upstream.

binutils changed the signature of init_disassemble_info(), which now causes
compilation failures for tools/perf/util/annotate.c, e.g. on debian
unstable.

Relevant binutils commit:

  https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07

Wire up the feature test and switch to init_disassemble_info_compat(),
which were introduced in prior commits, fixing the compilation failure.

I verified that perf can still disassemble bpf programs by using bpftrace
under load, recording a perf trace, and then annotating the bpf "function"
with and without the changes. With old binutils there's no change in output
before/after this patch. When comparing the output from old binutils (2.35)
to new bintuils with the patch (upstream snapshot) there are a few output
differences, but they are unrelated to this patch. An example hunk is:

       1.15 :   55:mov    %rbp,%rdx
       0.00 :   58:add    $0xfffffffffffffff8,%rdx
       0.00 :   5c:xor    %ecx,%ecx
  -    1.03 :   5e:callq  0xffffffffe12aca3c
  +    1.03 :   5e:call   0xffffffffe12aca3c
       0.00 :   63:xor    %eax,%eax
  -    2.18 :   65:leaveq
  -    2.82 :   66:retq
  +    2.18 :   65:leave
  +    2.82 :   66:ret

Signed-off-by: Andres Freund <andres@anarazel.de>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Ben Hutchings <benh@debian.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: bpf@vger.kernel.org
Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de
Link: https://lore.kernel.org/r/20220801013834.156015-5-andres@anarazel.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 97f005c0bdbaf656a7808586d234965385a06c58)

Change-Id: I72d8603797149776b20511f9c4b649853fb33a28
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agotools build: Add feature test for init_disassemble_info API changes 03/292903/1
Andres Freund [Mon, 1 Aug 2022 01:38:27 +0000 (18:38 -0700)]
tools build: Add feature test for init_disassemble_info API changes

commit cfd59ca91467056bb2c36907b2fa67b8e1af9952 upstream.

binutils changed the signature of init_disassemble_info(), which now causes
compilation failures for tools/{perf,bpf}, e.g. on debian unstable.

Relevant binutils commit:

  https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07

This commit adds a feature test to detect the new signature.  Subsequent
commits will use it to fix the build failures.

Signed-off-by: Andres Freund <andres@anarazel.de>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Ben Hutchings <benh@debian.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: bpf@vger.kernel.org
Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de
Link: https://lore.kernel.org/r/20220801013834.156015-2-andres@anarazel.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 51b99dc38c1a053e2e732d7f9e2740e343ae7eae)

Change-Id: I1c17a17b2a2d8cfbc09bf44292366fb52b9fcd09
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agoriscv: fix riscv64 unrecognized opcode build error 73/292373/3
Marek Szulc [Fri, 19 Aug 2022 10:29:48 +0000 (12:29 +0200)]
riscv: fix riscv64 unrecognized opcode build error

Considering older gcc version, "imafd" has to be changed
to "g", in order for asm to handle "zicsr" and "zifencei"
extensions.

Support for the mentioned extensions has been added
in GCC 11.1, hence this commit may be removed
after GCC update.

The lack of this causes following errors:
Error: unrecognized opcode `csrr a5,0xc01'
Error: unrecognized opcode `csrr a2,0xc01'

Change-Id: I0768a7b1255c828c4fc319f74f2783bc7e1581bf
Signed-off-by: Marek Szulc <m.szulc3@samsung.com>
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
11 months agopackaging: Add linux-visionfive2 spec file 72/292372/3
Jaehoon Chung [Fri, 10 Mar 2023 06:31:40 +0000 (15:31 +0900)]
packaging: Add linux-visionfive2 spec file

Add linux-visionfive2 spec file to build with gbs.
This is for only visionfive2 board.

Change-Id: Ia9ea5f73453250814bb768bab6eeb6997797167f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
11 months agoRISCV: configs: Enable usb BT defconfig 27/292527/1
Hoegeun Kwon [Tue, 9 May 2023 07:22:43 +0000 (16:22 +0900)]
RISCV: configs: Enable usb BT defconfig

Enable usb BT defconfig.

Change-Id: Ibbcd86557c0adf6f80beb229622d63ad74e62e06
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
11 months agoRISCV: configs: Enable usb wireless defconfig 26/292526/1
Hoegeun Kwon [Tue, 9 May 2023 07:20:26 +0000 (16:20 +0900)]
RISCV: configs: Enable usb wireless defconfig

Enable usb wireless defconfig and realtek module.

Change-Id: I86a7ac58de3e7234ef6a2da05acfbeab28f3034c
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
12 months agoscript: build: add local build script for v5.15
Jaehoon Chung [Thu, 6 Apr 2023 05:42:30 +0000 (14:42 +0900)]
script: build: add local build script for v5.15

Add local build ssript for v5.15.

Change-Id: I0f54869889fd787eeff8acf650e270b21fd8929f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
12 months agoRISCV: configs: Add an intial tizen_vf2_defconfig
Jaehoon Chung [Thu, 6 Apr 2023 01:01:58 +0000 (10:01 +0900)]
RISCV: configs: Add an intial tizen_vf2_defconfig

Add an initial tizen_vfs2_defconfig.

Change-Id: I69ee9b894c24a105f39ddb57e2d1b57ba18efd86
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
13 months agoMerge tag 'JH7110_515_SDK_v4.5.2' into vf2-515-devel
Andy Hu [Mon, 20 Mar 2023 17:53:42 +0000 (01:53 +0800)]
Merge tag 'JH7110_515_SDK_v4.5.2' into vf2-515-devel

version JH7110_515_SDK_v4.5.2 for JH7110 EVB board

1. #4142: soft_3rdpart: linux: IMG GPU disable pdump in kernel space and user space

13 months agoMerge branch 'CR_4142_gpu_2_joyce.ooi' into 'jh7110-5.15.y-devel'
andy.hu [Mon, 20 Mar 2023 17:01:50 +0000 (17:01 +0000)]
Merge branch 'CR_4142_gpu_2_joyce.ooi' into 'jh7110-5.15.y-devel'

CR_4142: gpu: drm: img: disable PDUMP

See merge request sdk/linux!748

13 months agogpu: drm: img: disable PDUMP
joyce.ooi [Mon, 20 Mar 2023 03:20:13 +0000 (11:20 +0800)]
gpu: drm: img: disable PDUMP

PDUMP is disabled to improve performance of GPU as PDUMP is used for
debugging purposes.

Signed-off-by: joyce.ooi <joyce.ooi@starfivetech.com>
13 months agoMerge branch 'CR_4142_gpu_2_joyce.ooi' into 'vf2-515-devel'
andy.hu [Mon, 20 Mar 2023 16:11:36 +0000 (16:11 +0000)]
Merge branch 'CR_4142_gpu_2_joyce.ooi' into 'vf2-515-devel'

CR_4142: gpu: drm: img: disable PDUMP

See merge request sbc/linux!87

13 months agogpu: drm: img: disable PDUMP
joyce.ooi [Mon, 20 Mar 2023 03:20:13 +0000 (11:20 +0800)]
gpu: drm: img: disable PDUMP

PDUMP is disabled to improve performance of GPU as PDUMP is used for
debugging purposes.

Signed-off-by: joyce.ooi <joyce.ooi@starfivetech.com>
13 months agoMerge tag 'JH7110_515_SDK_v4.5.1' into vf2-515-devel
Andy Hu [Sun, 19 Mar 2023 09:25:40 +0000 (17:25 +0800)]
Merge tag 'JH7110_515_SDK_v4.5.1' into vf2-515-devel

version JH7110_515_SDK_v4.5.1 for JH7110 EVB board

1. #4082: linux: u-boot: apply csr patch
2. #3499: linux: u-boot: enable framebuffer console
3. #4038: linux: vout fixed open clock fail
4. #3509: linux: fix some bugs and add request(), free(), set_config() ops for sys gpiochip

13 months agoMerge branch 'CR_3509_pinctrl_hal.feng' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 17 Mar 2023 11:53:02 +0000 (11:53 +0000)]
Merge branch 'CR_3509_pinctrl_hal.feng' into 'jh7110-5.15.y-devel'

CR 3509 pinctrl hal.feng

See merge request sdk/linux!746

13 months agoMerge branch 'CR_4038_vout_515_changhuang.liang' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 17 Mar 2023 10:48:57 +0000 (10:48 +0000)]
Merge branch 'CR_4038_vout_515_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_4038_vout_515_changhuang.liang gpu: drm: verisilicon: Fixed open clock fail

See merge request sdk/linux!743

13 months agoMerge branch 'CR_3499_vout_515_changhuang.liang' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 17 Mar 2023 10:45:49 +0000 (10:45 +0000)]
Merge branch 'CR_3499_vout_515_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_3499_vout_515_changhuang.liang gpu: drm: verisilicon: Add framebuffer console support

See merge request sdk/linux!741

13 months agoMerge branch 'CR_4082_apply_csr_patch_515_Andy.Hu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 17 Mar 2023 10:15:48 +0000 (10:15 +0000)]
Merge branch 'CR_4082_apply_csr_patch_515_Andy.Hu' into 'jh7110-5.15.y-devel'

CR_4082: riscv: fix build with binutils 2.38

See merge request sdk/linux!744

13 months agopinctrl: starfive: Add request(), free(), set_config() ops for sys gpiochip
Hal Feng [Mon, 6 Mar 2023 01:24:51 +0000 (09:24 +0800)]
pinctrl: starfive: Add request(), free(), set_config() ops for sys gpiochip

So libgpiod can call these ops to support some options of
commands such as "-B pull-down" and "-B pull-up".

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
13 months agoriscv: fix build with binutils 2.38
Aurelien Jarno [Wed, 26 Jan 2022 17:14:42 +0000 (18:14 +0100)]
riscv: fix build with binutils 2.38

From version 2.38, binutils default to ISA spec version 20191213. This
means that the csr read/write (csrr*/csrw*) instructions and fence.i
instruction has separated from the `I` extension, become two standalone
extensions: Zicsr and Zifencei. As the kernel uses those instruction,
this causes the following build failure:

  CC      arch/riscv/kernel/vdso/vgettimeofday.o
  <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h: Assembler messages:
  <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01'
  <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01'
  <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01'
  <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01'

The fix is to specify those extensions explicitely in -march. However as
older binutils version do not support this, we first need to detect
that.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
13 months agopinctrl: starfive: jh7110: Correct the ioconfig register address and bit definitions
Hal Feng [Fri, 3 Mar 2023 03:28:28 +0000 (11:28 +0800)]
pinctrl: starfive: jh7110: Correct the ioconfig register address and bit definitions

1. Correct the io_conf_reg address when pin number >= PAD_QSPI_SCLK.
2. The pull-down bit is the fourth bit, so the mask is 0x10.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
13 months agogpu: drm: verisilicon: Fixed open clock fail
Changhuang Liang [Wed, 15 Mar 2023 09:47:29 +0000 (17:47 +0800)]
gpu: drm: verisilicon: Fixed open clock fail

Fixed open clock fail because this clock not close.

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
13 months agogpu: drm: verisilicon: Add framebuffer console support
Changhuang Liang [Tue, 14 Mar 2023 06:02:08 +0000 (14:02 +0800)]
gpu: drm: verisilicon: Add framebuffer console support

Add framebuffer console support.

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
13 months agoMerge branch 'CR_2829_cryp_jiajie.ho' into 'vf2-515-devel'
andy.hu [Fri, 10 Mar 2023 15:39:31 +0000 (15:39 +0000)]
Merge branch 'CR_2829_cryp_jiajie.ho' into 'vf2-515-devel'

CR_2829: riscv: defconfig - Enable tcrypt module

See merge request sbc/linux!80

13 months agoMerge branch 'CR_3929_vf2_enable_thermal_subsystem_5.15_ziv.xu' into 'vf2-515-devel'
andy.hu [Fri, 10 Mar 2023 15:38:48 +0000 (15:38 +0000)]
Merge branch 'CR_3929_vf2_enable_thermal_subsystem_5.15_ziv.xu' into 'vf2-515-devel'

CR_3929_vf2_enable_thermal_subsystem_5.15_ziv

See merge request sbc/linux!82

13 months agothermal:vf2 enable thermal subsystem
ziv.xu [Fri, 10 Mar 2023 02:22:22 +0000 (10:22 +0800)]
thermal:vf2 enable thermal subsystem

vf2 enable thermal subsystem

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
13 months agoMerge remote-tracking branch 'sdk/jh7110-5.15.y-devel' into vf2-515-devel
Andy Hu [Fri, 10 Mar 2023 01:28:24 +0000 (09:28 +0800)]
Merge remote-tracking branch 'sdk/jh7110-5.15.y-devel' into vf2-515-devel

sync for CR_3922_evb_515_DRM_mipi_hdmi_display_keith.zhao

13 months agoMerge branch 'CR_3922_evb_515_DRM_mipi_hdmi_display_keith.zhao' into 'jh7110-5.15...
andy.hu [Thu, 9 Mar 2023 15:26:14 +0000 (15:26 +0000)]
Merge branch 'CR_3922_evb_515_DRM_mipi_hdmi_display_keith.zhao' into 'jh7110-5.15.y-devel'

CR 3922 riscv:linux:vout:mipi+hdmi

See merge request sdk/linux!738

13 months agoMerge tag 'JH7110_515_SDK_v4.5.0-rc2' into vf2-515-devel
Andy Hu [Thu, 9 Mar 2023 10:59:00 +0000 (18:59 +0800)]
Merge tag 'JH7110_515_SDK_v4.5.0-rc2' into vf2-515-devel

version JH7110_515_SDK_v4.5.0-rc2 for JH7110 EVB board

1. #3746: linux: vout rgb code rollback to v4.4.0
2. #3668: linux: perf:sbi: disable cpu hotplug callback
3. #3166: linux: add thermal subsystem
4. #3877: linux: expand the mtd0 spl partition size in spi nor flash
5. #3729: linux: fix 4K wayland not work on some monitors

13 months agoriscv:linux:vout:mipi+hdmi
keith.zhao [Thu, 9 Mar 2023 09:53:02 +0000 (01:53 -0800)]
riscv:linux:vout:mipi+hdmi

fix hdmi+mipi display issues on debian
http://192.168.110.82/redmine/issues/3922

Signed-off-by: keith <keith.zhao@starfivetech.com>
13 months agoMerge branch 'CR_3729_evb_515_DRM__hdmi_4K_keith.zhao' into 'jh7110-5.15.y-devel'
andy.hu [Thu, 9 Mar 2023 09:21:12 +0000 (09:21 +0000)]
Merge branch 'CR_3729_evb_515_DRM__hdmi_4K_keith.zhao' into 'jh7110-5.15.y-devel'

CR 3729 riscv:linux:vout:hdmi

See merge request sdk/linux!736

13 months agoMerge branch 'CR_3877_mtd0_expansion_5.15_ziv.xu' into 'jh7110-5.15.y-devel'
andy.hu [Thu, 9 Mar 2023 09:09:16 +0000 (09:09 +0000)]
Merge branch 'CR_3877_mtd0_expansion_5.15_ziv.xu' into 'jh7110-5.15.y-devel'

CR_3877_mtd0_expansion_5.15_ziv.xu

See merge request sdk/linux!731

13 months agoMerge branch 'CR_3166_add_thermal_subsystem_support_5.15_ziv.xu' into 'jh7110-5.15...
andy.hu [Thu, 9 Mar 2023 09:07:49 +0000 (09:07 +0000)]
Merge branch 'CR_3166_add_thermal_subsystem_support_5.15_ziv.xu' into 'jh7110-5.15.y-devel'

CR_3166_add_thermal_subsystem_support_5.15_ziv.xu

See merge request sdk/linux!727

13 months agoMerge branch 'CR_3668_disable_register_cpu_hotplug_cb_minda' into 'jh7110-5.15.y...
andy.hu [Thu, 9 Mar 2023 08:51:43 +0000 (08:51 +0000)]
Merge branch 'CR_3668_disable_register_cpu_hotplug_cb_minda' into 'jh7110-5.15.y-devel'

CR 3668 perf:sbi: disable cpu hotplug callback.

See merge request sdk/linux!722

13 months agoMerge branch 'CR_3746_evb_515_rgb_1080_60_porting_rollback_shengyang.chen' into ...
andy.hu [Thu, 9 Mar 2023 08:46:52 +0000 (08:46 +0000)]
Merge branch 'CR_3746_evb_515_rgb_1080_60_porting_rollback_shengyang.chen' into 'jh7110-5.15.y-devel'

CR_3746_evb_515_riscv:linux:vout: rollback rgb code to tag JH7110_515_SDK_v4.4.0

See merge request sdk/linux!733

13 months agoriscv:linux:vout:hdmi
keith.zhao [Thu, 9 Mar 2023 08:22:57 +0000 (00:22 -0800)]
riscv:linux:vout:hdmi

Dell 4K can not display , it is caused by PM interface
need delay the time to enter power off

Signed-off-by: keith <keith.zhao@starfivetech.com>
13 months agoriscv: defconfig - Enable tcrypt module
Jia Jie Ho [Thu, 9 Mar 2023 07:37:57 +0000 (15:37 +0800)]
riscv: defconfig - Enable tcrypt module

Add tcrypt as module to VisionFive 2. User can use this module to do
basic functional and speed test on crypto module.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
13 months agoperf:sbi: disable cpu hotplug callback.
Minda Chen [Thu, 2 Mar 2023 09:16:01 +0000 (17:16 +0800)]
perf:sbi: disable cpu hotplug callback.

register cpu hotplug callback will cause dhrystone
and coremark benchmark reduce the scores. this CPU
hotplug ops will do in sbi cpu/on and off. So disable
this no side effect.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
13 months agoriscv:linux:vout: rollback rgb code to tag JH7110_515_SDK_v4.4.0
shengyang.chen [Thu, 9 Mar 2023 02:34:57 +0000 (10:34 +0800)]
riscv:linux:vout: rollback rgb code to tag JH7110_515_SDK_v4.4.0

rollback rgb code to tag JH7110_515_SDK_v4.4.0 after porting patch-rgb support 1080P@60fps

Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
13 months agojh7110.dsti :expand mtd0 partition
ziv.xu [Tue, 7 Mar 2023 10:03:51 +0000 (18:03 +0800)]
jh7110.dsti :expand mtd0 partition

expand mtd0 partition

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
13 months agothermal: enable thermal subsystem with step_wise governor
ziv.xu [Thu, 2 Mar 2023 07:01:47 +0000 (15:01 +0800)]
thermal: enable thermal subsystem with step_wise governor

enable thermal subsystem with step_wise governor

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
13 months agoMerge tag 'JH7110_515_SDK_v4.5.0-rc1' into vf2-515-devel
Andy Hu [Fri, 3 Mar 2023 11:57:27 +0000 (19:57 +0800)]
Merge tag 'JH7110_515_SDK_v4.5.0-rc1' into vf2-515-devel

version JH7110_515_SDK_v4.5.0-rc1 for JH7110 EVB board

1. #3467: linux: fix CPUfreq issue for the hibernation resume issue
2. #3546: linux: fix v4l2-compliance test issue for imx219 sensor
3. #3526: linux: qspi use reset framework
4. #3746: linux: rgb display support 1080p 60fps

13 months agoMerge branch 'CR_3467_cpufreq_add_pm_opp_5.15_mason.huo' into 'vf2-515-devel'
andy.hu [Fri, 3 Mar 2023 08:29:57 +0000 (08:29 +0000)]
Merge branch 'CR_3467_cpufreq_add_pm_opp_5.15_mason.huo' into 'vf2-515-devel'

CR_3467 cpufreq_add_pm_opp

See merge request sbc/linux!76

13 months agoMerge branch 'CR_3583_IPV6_SUPPORT_samin.guo' into 'vf2-515-devel'
andy.hu [Fri, 3 Mar 2023 08:28:33 +0000 (08:28 +0000)]
Merge branch 'CR_3583_IPV6_SUPPORT_samin.guo' into 'vf2-515-devel'

CR_3583: riscv: defconfig: jh7110: enable ipv6.

See merge request sbc/linux!75

13 months agoMerge branch 'CR_3702_mtd0_expansion_5.15_ziv.xu' into 'vf2-515-devel'
andy.hu [Fri, 3 Mar 2023 08:18:23 +0000 (08:18 +0000)]
Merge branch 'CR_3702_mtd0_expansion_5.15_ziv.xu' into 'vf2-515-devel'

CR_3702_mtd0_expansion_5.15_ziv.xu

See merge request sbc/linux!74

13 months agoMerge branch 'CR_3746_evb_515_rgb_1080_60_porting_shengyang.chen' into 'jh7110-5...
andy.hu [Fri, 3 Mar 2023 08:06:05 +0000 (08:06 +0000)]
Merge branch 'CR_3746_evb_515_rgb_1080_60_porting_shengyang.chen' into 'jh7110-5.15.y-devel'

CR_3746_evb_515_riscv:linux:vout: rgb support 1080P@60fps

See merge request sdk/linux!719