platform/kernel/linux-rpi.git
5 weeks agoARM64: configs: tizen: Enable hailo ai kit module 14/320314/2 tizen-next accepted/tizen/unified/20241114.153913
Seung-Woo Kim [Wed, 13 Nov 2024 04:00:31 +0000 (13:00 +0900)]
ARM64: configs: tizen: Enable hailo ai kit module

To support RPI5 Hailo AI-Kit pcie hat, enable
CONFIG_MEDIA_PCI_SUPPORT and CONFIG_MEDIA_PCI_HAILO as
like bcm2711_defconfig.

Change-Id: I3f21d2a0b9b623e0c568833dd78dbc247d24d949
Ref: https://www.raspberrypi.com/products/ai-kit/
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agorpi4: boot: Set uart gpio pins only from rpi4 13/320313/1
Seung-Woo Kim [Wed, 13 Nov 2024 03:55:35 +0000 (12:55 +0900)]
rpi4: boot: Set uart gpio pins only from rpi4

The RPI5 has its own uart port, so need to set gpio pins for
another uart port. Set uart gpio pins only from rpi4.

Change-Id: Id058c84eadb92628435795902975bdd316598472
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoscript: Make linux-tizen-modules-source git repo up-to-date on the same branch
Sung-hun Kim [Wed, 6 Nov 2024 10:10:42 +0000 (19:10 +0900)]
script: Make linux-tizen-modules-source git repo up-to-date on the same branch

If the version of linux-tizen-modules-source is different from the kernel,
the created boot image may not boot the target exactly.
This patch executes `git pull` on the linux-tizen-modules-source repo after
making the branch of linux-tizen-modules-source synced with the kernel.

If the user don't want it, just passes  "dontpull" as the last argument of
the build script. It will not execute `git pull`.

Change-Id: I553738259e23d1bac1009f0c948beaefb08ed27a
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
5 weeks agoscript: build: enable building extcon-usb-fixed module
Marek Szyprowski [Tue, 8 Oct 2024 11:05:14 +0000 (13:05 +0200)]
script: build: enable building extcon-usb-fixed module

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Icad14d891cd7cfb9e3a3a450ca255d8da344e63f

5 weeks agoRevert "usb: dwc2: gadget: Set extcon state for usb cable as always true"
Marek Szyprowski [Tue, 8 Oct 2024 10:07:51 +0000 (12:07 +0200)]
Revert "usb: dwc2: gadget: Set extcon state for usb cable as always true"

Since adding a standalone Tizen-specific kernel extcon-usb-fixed module,
which reports USB cable as always connected, the extcon hack/workaround
in the DWC2 driver is no longer needed.

This reverts commit df63e899d9d8298b05656a9c3511756f58837afd.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I4e8aad53bea292681139b6d2895f2dd1d88cbdf9

5 weeks agoRevert "overlays: Add dwc2-tizen-overlay"
Marek Szyprowski [Tue, 8 Oct 2024 10:10:27 +0000 (12:10 +0200)]
Revert "overlays: Add dwc2-tizen-overlay"

Since adding a standalone Tizen-specific kernel extcon-usb-fixed module,
which reports USB cable as always connected, the extcon hack/workaround
in the DWC2 driver is no longer needed.

This reverts commit ba0b4a5cd974d3a7a016bb6d3a1a533ed00470ca.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I3b9bf211b0b910cca09f515676f327336b58375e

5 weeks agorpi4: boot: Switch back to the generic DWC2 overlay
Marek Szyprowski [Tue, 8 Oct 2024 10:14:32 +0000 (12:14 +0200)]
rpi4: boot: Switch back to the generic DWC2 overlay

Since adding a standalone Tizen-specific kernel extcon-usb-fixed module,
which reports USB cable as always connected, the extcon hack/workaround
in the DWC2 driver is no longer needed, thus a generic dwc2-overlay can
be used.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Idcd1b2ab5680cc7e57153d768751bbddbc3adfaa

5 weeks agoRevert "initramfs: break loop when decompression finishes"
Marek Szyprowski [Mon, 7 Oct 2024 09:06:10 +0000 (11:06 +0200)]
Revert "initramfs: break loop when decompression finishes"

This reverts commit 455261dc71f1db53e458196bf6e00ff766b1b7b1.

This workaround is no longer needed after adding initramfs unpacking
in Tizen boot script.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I65cdced9d6f4baed820eed7f442569ef928351a8

5 weeks agoscript: build: enable inform_reboot and dm_bow out-of-tree modules
Seung-Woo Kim [Fri, 27 Sep 2024 10:17:45 +0000 (19:17 +0900)]
script: build: enable inform_reboot and dm_bow out-of-tree modules

Because of TIZEN_INFORM_REBOOT and DM_BOW drop, it should be
built 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: Ia1c5c44fe9b7453e51d430b032adf19d55a16b1b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoARM/ARM64: configs: tizen: drop DM_BOW
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: I76c0a73cd9f9ce6291419a21b352886e7098df70

5 weeks agoRevert "device-mapper: Add dm-bow"
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 540ba0d4e89eec45ddd9d41030fb6cf10392b42a.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I862b493f66319a651402067a1e81ac7119d5ebdf

5 weeks agoARM/ARM64: configs: tizen: drop TIZEN_INFORM_REBOOT
Marek Szyprowski [Fri, 6 Sep 2024 06:07:05 +0000 (08:07 +0200)]
ARM/ARM64: configs: tizen: 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: Ied86f6cd4c47dd6f562a3eaa7e672d3121e50abf

5 weeks agoRevert "misc: add Tizen reboot notifier for passing reboot parameter"
Marek Szyprowski [Thu, 5 Sep 2024 11:49:49 +0000 (13:49 +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 c9458239ab7b0103ff1d94958eb1b9a97968f938.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ic73b4f6fc30ebb9699acbfa2bd98e0cf97ff6c7a

5 weeks agoinitramfs: break loop when decompression finishes
Marek Szyprowski [Thu, 11 Jul 2024 14:41:45 +0000 (16:41 +0200)]
initramfs: break loop when decompression finishes

This fixes booting with initramfs (cpio.gz based) with additional garbage
added after the main initramfs image.

The below message is displayed during booting.

[    0.546162] rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd

Change-Id: Iddf10f6696c7d15ec68d29bc69614523c9fd9b65
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
5 weeks agoARM64: configs: tizen: Adjust for mipi csi camera of rpi5
Seung-Woo Kim [Wed, 24 Jul 2024 04:37:58 +0000 (13:37 +0900)]
ARM64: configs: tizen: Adjust for mipi csi camera of rpi5

To use mipi csi camera in rpi5, it is required dw i2c for the
rpi5 board. Also, to support mipi csi of rpi5, pisp_be.
Adjust for mipi csi camera of rpi5 and build camera sensors
as module because they are only used when connected.

Change-Id: I9b59b0f3816ba6a7801028162870566e262f23f5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agopackaging: Add missing overlay dt binary files
Seung-Woo Kim [Tue, 23 Jul 2024 08:24:04 +0000 (17:24 +0900)]
packaging: Add missing overlay dt binary files

In rpi5, dtb files are also used for dt overlays. Add the
missing overlay dt binary files to packaging spec.

This fixes below boot firmware logs from rpi5:
  6.26 [sdcard] /overlays/overlay_map.dtb not found
  6.27  /overlays/overlay_map.dtb

Change-Id: I5382f3092d8b0ada366f4b39402f2de016091b36
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoperf tools: Fix calloc() arguments to address error introduced in gcc-14
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.

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>
[sw0312.kim: cherry-pick the mainline commit 7bbe8f0071df to resolve gcc-14 warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I504783bde6c91fec425b8d955557f28cef97f950

5 weeks agoperf top: Remove needless malloc(0) call that triggers -Walloc-size
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.

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>
[sw0312.kim: cherry-pick the mainline commit 79baac8acfc6 to resolve gcc-14 warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com.com>
Change-Id: I7be43f574efaf86988b221c6ac071538a83fdb4a

5 weeks agoscript: build: Fix 32bit rpi4 boot image creation
Seung-Woo Kim [Tue, 25 Jun 2024 11:48:56 +0000 (20:48 +0900)]
script: build: Fix 32bit rpi4 boot image creation

After u-boot-rpi4 change to repack aarch64 binary into armv7l
package, rpi4 boot image creation is failed because of multiple
rpm files with same prefix. Fix 32bit rpi4 boot image creation
to consider repacked rpm.

Change-Id: Id0be1446854f813407f7ce1a43a89353e4fd839c
Ref: https://git.tizen.org/cgit/platform/kernel/u-boot/commit/?h=tizen&id=07567c078b7d7083c2fbf477c5e7e1d2802de76e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agotizen: Use unique directory prefix for baselibs packages
Karol Lewandowski [Tue, 14 May 2024 12:15:01 +0000 (14:15 +0200)]
tizen: Use unique directory prefix for baselibs packages

Move all files provied by baselibs-converted pacakges to
unique directory to avoid conflicts with filesystem package
(when both packages are installed to platform image using mic).

Change-Id: Icc7247272403eb9d6419063aa937d4630d229dd2
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
5 weeks agoRevert "Bluetooth: Store advertising handle so it can be re-enabled"
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: Id40e2a5dca326cb9996bcf768b638560c553373d
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
5 weeks agoARM/ARM64: configs: tizen: Enable ASHMEM
Seung-Woo Kim [Tue, 30 Apr 2024 08:48:05 +0000 (17:48 +0900)]
ARM/ARM64: configs: tizen: Enable ASHMEM

Enable CONFIG_ASHMEM for waydroid in a container.
This brings ashmem back partially from the commit e0df7c69e65a
("arm/arm64: tizen_bcm2711_defconfig: Add configs for waydroid").

Change-Id: I44287862f791231f066c0e11b57326b9abb9de1c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoANDROID: ashmem: fix up vm_flags direct access which is not allowed anymore
Greg Kroah-Hartman [Wed, 5 Apr 2023 13:36:46 +0000 (13:36 +0000)]
ANDROID: ashmem: fix up vm_flags direct access which is not allowed anymore

Commit 1c71222e5f23 ("mm: replace vma->vm_flags direct modifications
with modifier calls") removed the ability to directly access vm_flags, but
provided wrapper functions to do the task instead.  Use vm_flags_clear()
to fix the build breakage in the ashmem code because of this change.

Fixes: 1c71222e5f23 ("mm: replace vma->vm_flags direct modifications with modifier calls")
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
[sw0312.kim: cherry-pick commit 78ffde117c54 of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I865469c1eacd8d037eaaa85eca65e54f717e8706

5 weeks agoANDROID: Add ashmem ioctl to return a unique file identifier
Mark Fasheh [Thu, 27 Oct 2022 23:48:03 +0000 (23:48 +0000)]
ANDROID: Add ashmem ioctl to return a unique file identifier

This will allow a client program to avoid redundant actions on ashmem
buffers which it has already seen.

Bug: 244233389
Signed-off-by: Mark Fasheh <mfasheh@google.com>
[sw0312.kim: cherry-pick commit fb15c7c8b023 of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ica57a8842ff163eae5f9eca8141b439091ec0940

5 weeks agoANDROID: staging: ashmem: Add shrinker name
Amit Pundir [Sat, 13 Aug 2022 11:57:42 +0000 (17:27 +0530)]
ANDROID: staging: ashmem: Add shrinker name

Upstream mandates registering shrinkers with a name now.

Fixes: e33c267ab70d ("mm: shrinkers: provide shrinkers with names")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
[sw0312.kim: cherry-pick commit 3c456dbd58ba of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I434150d024e976fc3facfc4b34a2199a9c2e5d08

5 weeks agoANDROID: remove CONFIG_ANDROID dependency for CONFIG_ASHMEM
Greg Kroah-Hartman [Fri, 12 Aug 2022 13:30:27 +0000 (15:30 +0200)]
ANDROID: remove CONFIG_ANDROID dependency for CONFIG_ASHMEM

In commit 1045a06724f3 ("remove CONFIG_ANDROID"), CONFIG_ANDROID is
removed, so fix up the CONFIG_ASHMEM build option to not require it to
be selected and built properly.

Fixes: 1045a06724f3 ("remove CONFIG_ANDROID")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
[sw0312.kim: cherry-pick commit ea7be9d2625c of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: If9cdf1350949cf98444c20d778d1ca1228a6cd6d

5 weeks agoFROMLIST: staging: android: ashmem: remove usage of list iterator after the loop...
Jakob Koschel [Thu, 31 Mar 2022 21:39:34 +0000 (23:39 +0200)]
FROMLIST: staging: android: ashmem: remove usage of list iterator after the loop body

In preparation to limit the scope of a list iterator to the list
traversal loop, use a dedicated pointer to point to the found element
[1].

Before, the code implicitly used the head when no element was found
when using &pos->list. Since the new variable is only set if an
element was found, the head needs to be used explicitly if the
variable is NULL.

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
[sw0312.kim: cherry-pick commit 4f49a861af66 of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ifaf19dd876a513a1952fac448079d664aebdf604

5 weeks agoRevert "staging: remove ashmem"
Greg Kroah-Hartman [Wed, 13 Apr 2022 11:43:59 +0000 (13:43 +0200)]
Revert "staging: remove ashmem"

This reverts commit 721412ed3d819e767cac2b06646bf03aa158aaec.

Android just isn't ready yet to give it up :(

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
[sw0312.kim: cherry-pick commit f5eed40f6278 of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ie0a443d55e6e72df97c3d3eabb7358ae3a12548a

5 weeks agoARM/ARM64: configs: tizen: Sync from non-rt to rt and with savedefconfig
Seung-Woo Kim [Tue, 30 Apr 2024 07:53:45 +0000 (16:53 +0900)]
ARM/ARM64: configs: tizen: Sync from non-rt to rt and with savedefconfig

After some config commits, non-rt and rt defconfigs have different
configs. Sync from non-rt to rt defconfig.
Also, sync with minimized defconfig made with "make savedefconfig".

Change-Id: I047268bf8e345228b4487433000d511e805d56f1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agodrm/vc4: Workaround for crtc scanout device problem
Hoegeun Kwon [Wed, 24 Apr 2024 11:38:09 +0000 (20:38 +0900)]
drm/vc4: Workaround for crtc scanout device problem

Currently, the crtc device does not start a scanout, the time of
vblank is always calculated as future value. As a workaround, always
change vpos to a positive number.

Change-Id: I4d8bfa245e257dbdbc6d9d3809d55225091b77cd
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoRevert "brcmfmac: move configuration of probe request IEs"
Jaehoon Chung [Mon, 3 Aug 2020 05:45:35 +0000 (14:45 +0900)]
Revert "brcmfmac: move configuration of probe request IEs"

This reverts commit bd99a3013bdc00f8fc7534c657b39616792b4467.

It doesn't find any p2p-device with wpa_supplicant on Tizen.
- After reverted this, it's working fine.

Change-Id: I819242c3578aaf54ccfd113dc8130a4de899638b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agorpi4: boot: Set cma size as cma-320
Seung-Woo Kim [Wed, 24 Apr 2024 05:50:08 +0000 (14:50 +0900)]
rpi4: boot: Set cma size as cma-320

As like tizen-rpi-5.15, set cma size 320MB with cma-320 dt param.
With this change, target shows below cma size from /proc/meminfo:
   CmaTotal:         327680 kB

Change-Id: I5e67c52dc33592e17a1cac04d3c4cbcf2e093032
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agopackaging: Check dev_wos macro and build as permissive mode for dev_wos 1
Seung-Woo Kim [Tue, 23 Apr 2024 02:15:26 +0000 (11:15 +0900)]
packaging: Check dev_wos macro and build as permissive mode for dev_wos 1

To build permissive mode, macro dev_wos is set to 1. So, check
the dev_wos macro and if it is set, build without smack config
option.

Change-Id: I8d4ab45a58161f0f689ad374d5576b0998cccf03
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agotizen: packaging: Add baselibs.conf to provide 64-bit kernel & modules for 32-bit...
Karol Lewandowski [Mon, 11 Mar 2024 23:27:19 +0000 (00:27 +0100)]
tizen: packaging: Add baselibs.conf to provide 64-bit kernel & modules for 32-bit userspace

Change-Id: Ifa3f71fae50b87481b9b5863b7959ade68fd4513
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
5 weeks agonet: veth: use newly added page pool API for veth with xdp
Yunsheng Lin [Fri, 20 Oct 2023 09:59:52 +0000 (17:59 +0800)]
net: veth: use newly added page pool API for veth with xdp

Use page_pool_alloc() API to allocate memory with least
memory utilization and performance penalty.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20231020095952.11055-6-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 2d0de67da51a90c6acf7bf08d7b0501f45408002)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I7fd0ea80d818122ed66642c98bbd33705c348e46

5 weeks agopage_pool: update document about fragment API
Yunsheng Lin [Fri, 20 Oct 2023 09:59:51 +0000 (17:59 +0800)]
page_pool: update document about fragment API

As more drivers begin to use the fragment API, update the
document about how to decide which API to use for the
driver author.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Alexander Lobakin <aleksander.lobakin@intel.com>
CC: Dima Tisnek <dimaqq@gmail.com>
Link: https://lore.kernel.org/r/20231020095952.11055-5-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 8ab32fa1c7947f4807b1d98af2d411a2587bb841)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I03e5460b08e7607bd85a44b37930d770a0c56c9d

5 weeks agopage_pool: introduce page_pool_alloc() API
Yunsheng Lin [Fri, 20 Oct 2023 09:59:50 +0000 (17:59 +0800)]
page_pool: introduce page_pool_alloc() API

Currently page pool supports the below use cases:
use case 1: allocate page without page splitting using
            page_pool_alloc_pages() API if the driver knows
            that the memory it need is always bigger than
            half of the page allocated from page pool.
use case 2: allocate page frag with page splitting using
            page_pool_alloc_frag() API if the driver knows
            that the memory it need is always smaller than
            or equal to the half of the page allocated from
            page pool.

There is emerging use case [1] & [2] that is a mix of the
above two case: the driver doesn't know the size of memory it
need beforehand, so the driver may use something like below to
allocate memory with least memory utilization and performance
penalty:

if (size << 1 > max_size)
page = page_pool_alloc_pages();
else
page = page_pool_alloc_frag();

To avoid the driver doing something like above, add the
page_pool_alloc() API to support the above use case, and update
the true size of memory that is acctually allocated by updating
'*size' back to the driver in order to avoid exacerbating
truesize underestimate problem.

Rename page_pool_free() which is used in the destroy process to
__page_pool_destroy() to avoid confusion with the newly added
API.

1. https://lore.kernel.org/all/d3ae6bd3537fbce379382ac6a42f67e22f27ece2.1683896626.git.lorenzo@kernel.org/
2. https://lore.kernel.org/all/20230526054621.18371-3-liangchen.linux@gmail.com/

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20231020095952.11055-4-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit de97502e16fc406a74edee8359612e518986cf59)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I56b80851e1e18980521292771e13177698fee12e

5 weeks agopage_pool: remove PP_FLAG_PAGE_FRAG
Yunsheng Lin [Fri, 20 Oct 2023 09:59:49 +0000 (17:59 +0800)]
page_pool: remove PP_FLAG_PAGE_FRAG

PP_FLAG_PAGE_FRAG is not really needed after pp_frag_count
handling is unified and page_pool_alloc_frag() is supported
in 32-bit arch with 64-bit DMA, so remove it.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20231020095952.11055-3-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 09d96ee5674a0eaa800c664353756ecc45c4a87f)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I5d7223d1cb9baefea5c7e86f9a4de3e972c04a4a

5 weeks agopage_pool: unify frag_count handling in page_pool_is_last_frag()
Yunsheng Lin [Fri, 20 Oct 2023 09:59:48 +0000 (17:59 +0800)]
page_pool: unify frag_count handling in page_pool_is_last_frag()

Currently when page_pool_create() is called with
PP_FLAG_PAGE_FRAG flag, page_pool_alloc_pages() is only
allowed to be called under the below constraints:
1. page_pool_fragment_page() need to be called to setup
   page->pp_frag_count immediately.
2. page_pool_defrag_page() often need to be called to drain
   the page->pp_frag_count when there is no more user will
   be holding on to that page.

Those constraints exist in order to support a page to be
split into multi fragments.

And those constraints have some overhead because of the
cache line dirtying/bouncing and atomic update.

Those constraints are unavoidable for case when we need a
page to be split into more than one fragment, but there is
also case that we want to avoid the above constraints and
their overhead when a page can't be split as it can only
hold a fragment as requested by user, depending on different
use cases:
use case 1: allocate page without page splitting.
use case 2: allocate page with page splitting.
use case 3: allocate page with or without page splitting
            depending on the fragment size.

Currently page pool only provide page_pool_alloc_pages() and
page_pool_alloc_frag() API to enable the 1 & 2 separately,
so we can not use a combination of 1 & 2 to enable 3, it is
not possible yet because of the per page_pool flag
PP_FLAG_PAGE_FRAG.

So in order to allow allocating unsplit page without the
overhead of split page while still allow allocating split
page we need to remove the per page_pool flag in
page_pool_is_last_frag(), as best as I can think of, it seems
there are two methods as below:
1. Add per page flag/bit to indicate a page is split or
   not, which means we might need to update that flag/bit
   everytime the page is recycled, dirtying the cache line
   of 'struct page' for use case 1.
2. Unify the page->pp_frag_count handling for both split and
   unsplit page by assuming all pages in the page pool is split
   into a big fragment initially.

As page pool already supports use case 1 without dirtying the
cache line of 'struct page' whenever a page is recyclable, we
need to support the above use case 3 with minimal overhead,
especially not adding any noticeable overhead for use case 1,
and we are already doing an optimization by not updating
pp_frag_count in page_pool_defrag_page() for the last fragment
user, this patch chooses to unify the pp_frag_count handling
to support the above use case 3.

There is no noticeable performance degradation and some
justification for unifying the frag_count handling with this
patch applied using a micro-benchmark testing in [1].

1. https://lore.kernel.org/all/bf2591f8-7b3c-4480-bb2c-31dc9da1d6ac@huawei.com/

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20231020095952.11055-2-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 58d53d8f7da63dd13903bec0a40b3009a841b61b)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I4020fab404d9c362383a10f8b596a767b1b091a8

5 weeks agopage_pool: fragment API support for 32-bit arch with 64-bit DMA
Yunsheng Lin [Fri, 13 Oct 2023 06:48:21 +0000 (14:48 +0800)]
page_pool: fragment API support for 32-bit arch with 64-bit DMA

Currently page_pool_alloc_frag() is not supported in 32-bit
arch with 64-bit DMA because of the overlap issue between
pp_frag_count and dma_addr_upper in 'struct page' for those
arches, which seems to be quite common, see [1], which means
driver may need to handle it when using fragment API.

It is assumed that the combination of the above arch with an
address space >16TB does not exist, as all those arches have
64b equivalent, it seems logical to use the 64b version for a
system with a large address space. It is also assumed that dma
address is page aligned when we are dma mapping a page aligned
buffer, see [2].

That means we're storing 12 bits of 0 at the lower end for a
dma address, we can reuse those bits for the above arches to
support 32b+12b, which is 16TB of memory.

If we make a wrong assumption, a warning is emitted so that
user can report to us.

1. https://lore.kernel.org/all/20211117075652.58299-1-linyunsheng@huawei.com/
2. https://lore.kernel.org/all/20230818145145.4b357c89@kernel.org/

Tested-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Guillaume Tucker <guillaume.tucker@collabora.com>
CC: Matthew Wilcox <willy@infradead.org>
CC: Linux-MM <linux-mm@kvack.org>
Link: https://lore.kernel.org/r/20231013064827.61135-2-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 90de47f020db086f7929e09f64efd0cf627d6869)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I9fdea00f780aac6bd06c2099a590790ed66aea54

5 weeks agoscript: build: Fix wrong arm 32bit dtb path
Seung-Woo Kim [Thu, 11 Apr 2024 11:15:22 +0000 (20:15 +0900)]
script: build: Fix wrong arm 32bit dtb path

Case of arm 32bit, raspberry pi dtb files are also in
boot/dts/broadcom directory. Fix path for arm 32bit dtb.

Change-Id: Id8831c4a8fde26e394e8cd712c10dd97262022ff
Fixes: commit 301a853e585a ("script: build: Add option to create boot.img")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoscript: build: Add option to create boot.img
Seung-Woo Kim [Tue, 26 Mar 2024 08:24:56 +0000 (17:24 +0900)]
script: build: Add option to create boot.img

Add option 'bootimg' to create boot.img vfat image having boot
firmwares, u-boot, boot script, kernel image, dt binaries and
dt overlays.

Change-Id: I62043417125129ca9cdd697a921da1ac1046d0d7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoscript: build: Remove local version temporary file
Seung-Woo Kim [Tue, 26 Mar 2024 07:03:11 +0000 (16:03 +0900)]
script: build: Remove local version temporary file

Like error exit case, in build success case, remove local version
temporary file also.

Change-Id: I51235dec2b1fa479e7fdff730ee4d859dbdbdb24
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoscript: build: Add to build linux-tizen-modules
Seung-Woo Kim [Tue, 26 Mar 2024 06:06:03 +0000 (15:06 +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: If54d188765c4c46ca21c8db15fce77038fca6755
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoAdd a build script for building tizen kernel on local
Jaehoon Chung [Fri, 23 Feb 2024 07:13:15 +0000 (16:13 +0900)]
Add a build script for building tizen kernel on local

Add a build script for building tizen kernel.
This script is creating,
     - kernel image
     - dtb file
     - modules image

Change-Id: Id2a63588ac5288cf20e96145feb5b27184ed25e4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoARM: dts: bcm2711-rpi-4-b: add a brcmf wifi node
Jaehoon Chung [Mon, 25 Mar 2024 11:53:30 +0000 (20:53 +0900)]
ARM: dts: bcm2711-rpi-4-b: add a brcmf wifi node

Add brcmf wifi node to use a below property.
- brcm,featuer-disable

"0x2000" is a bit to disable "sup_wpa" feature.
Tizen doesn't need to use this feature. So disable it by default.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
(cherry-picked from commit 23eaf8308aa4cc22a4002ae67dd5736f183e0b7d)

Change-Id: Ifc39b6ce7d71caca0efe48a9659d41e6da5081f5

5 weeks agobrcmfamc: add the feature-disable property
Jaehoon Chung [Fri, 27 Mar 2020 09:07:28 +0000 (18:07 +0900)]
brcmfamc: add the feature-disable property

Add the feature-disable property.
It will be parsed when brcmfmac is probed.
If someone want to disable some features by default, it's possible to
use this property.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
(cherry picked from commit 4a12cde7ed3e962f146676cb51fb3a6bc6380bd1)

Change-Id: Ie06f2e896d37dd75657779dedb68f7c683cb6d53

5 weeks agousb: dwc2: gadget: set the quirk_ep_out_alinged_size as true
Jaehoon Chung [Mon, 22 Oct 2018 04:44:11 +0000 (13:44 +0900)]
usb: dwc2: gadget: set the quirk_ep_out_alinged_size as true

Set the quirk_ep_out_aligned_size as true.
This patch is fixed about occurring kernel panic after failed memory
allocation.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[dwoo08.lee: bring commit from linux-artik7 of public tizen repository]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
(cherry picked from commit 377d8707f528fe5e318debd4e282db6ae8713244)

Change-Id: Ia058acdaac0b9d39554e9eb1a69be57255961186

5 weeks agousb: dwc2: Defer forcing peripheral mode
Dongwoo Lee [Wed, 26 Feb 2020 10:39:04 +0000 (19:39 +0900)]
usb: dwc2: Defer forcing peripheral mode

dwc2 forces the mode as following dr_mode when it is finally
determined. In the case of peripheral mode, however, this causes the
notification to host without any preparation about gadget driver.
In host, hcd requests device descriptor for enumeration, but it does
never get response. See log below:

 usb 2-2: new high-speed USB device number 6 using xhci_hcd
 usb 2-2: device descriptor read/64, error -110
 usb 2-2: device descriptor read/64, error -110
 usb 2-2: new high-speed USB device number 7 using xhci_hcd
 usb 2-2: device descriptor read/64, error -110
 usb 2-2: device descriptor read/64, error -110
 usb usb2-port2: attempt power cycle
 usb 2-2: new high-speed USB device number 8 using xhci_hcd
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 usb 2-2: device not accepting address 8, error -62
 usb 2-2: new high-speed USB device number 9 using xhci_hcd
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
 usb 2-2: device not accepting address 9, error -62
 usb usb2-port2: unable to enumerate USB device

Even worse, all ports on host can get disabled at least xhci case in
this situation. To prevent this, forcing peripheral mode will be
defered until the gadget driver is prepared.

Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
(cherry picked from commit 9507385cb797a12f278e73b9cb298ba73f120fd5)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Ic24f1a36c9ccfd9b571cd4d6eff5cbc3da9082b1

5 weeks agousb: dwc2: gadget: Expand buffer size of control endpoint
Dongwoo Lee [Fri, 6 Mar 2020 05:04:13 +0000 (14:04 +0900)]
usb: dwc2: gadget: Expand buffer size of control endpoint

We found the case that buffer of control endpoint, which was allocated
with 8 bytes previously, is corrupted when the host races for setting
up interfaces. Even worse, it overwrites memory for other structure
such as usb_request for control endpoint and it causes kernel panic.
Especially in Tizen, it often happens when the target is configured as
multi-functional device: sdb + mtp.

In our emprical examination the buffer can be corrupted upto size of
456 bytes. With this result, the size of buffer will be enlarged to
512 bytes to prevent kernel panic even if it happens.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
(cherry picked from commit 4039de56979d2fb4d1cd7acf99e3b0215337a08d)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I8e9b04a9f290523147cc93686cc9de95ceeb4c00

5 weeks agousb: dwc2: gadget: do not reset during core phy init
Seung-Woo Kim [Tue, 9 Jun 2020 10:34:27 +0000 (19:34 +0900)]
usb: dwc2: gadget: do not reset during core phy init

After the commit 1e868545f2bb ("usb: dwc2: gadget: Move gadget phy
init into core phy init"), dwc2 gadget mode with f_fs enumeration
is blocked from recent host kernel. It is because, the commit adds
more usb reset for gadget case, so do not reset during core phy
init for gadget.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
(cherry picked from commit a8cc687cf40f5c3781b23b08b3dd1ef978895449)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I6c4850983a4f397ebc7b10191bf293e1c4eeebba

5 weeks agorpi4: boot: remove deprecated camera dtoverlay
Seung-Woo Kim [Fri, 22 Mar 2024 01:51:44 +0000 (10:51 +0900)]
rpi4: boot: remove deprecated camera dtoverlay

The config.txt command 'camera_auto_detect=1' will select
a connected camera sensor dt overlay. and 'dtoverlay=camera'
is not used. Remove the deprecated camera dt overlay setting.

This will removes below firmware warning during booting:
   Failed to load overlay 'camera'
   brfs: File read: /mfs/sd/overlays/camera.dtbo

Change-Id: I5521343efb46b16fb73caee48e415214e64d33c0
Ref: https://www.raspberrypi.com/documentation/computers/camera_software.html
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agotizen_bcm2711_defconfig: enable rpivid driver for h265 video decoder
Marek Szyprowski [Mon, 18 Mar 2024 13:00:38 +0000 (14:00 +0100)]
tizen_bcm2711_defconfig: enable rpivid driver for h265 video decoder

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I7e8bfa1d197b96a2547ee0e53eec5c18d2520f63

5 weeks agorpi4: boot: add support for RPi5
Marek Szyprowski [Tue, 5 Mar 2024 15:03:01 +0000 (16:03 +0100)]
rpi4: boot: add support for RPi5

Add RPi5 related section in config.txt and enable vc4-kms-v3d-rpi5
overlay for DRM/HDMI display support.

Move kernel and dwc2-tizen overlay to common section.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I24b377d69610cb4bd050cacf2714b2e45644988e

5 weeks agotizen_bcm2711_defconfig: enable drivers for RPi5 board
Marek Szyprowski [Tue, 5 Mar 2024 14:25:57 +0000 (15:25 +0100)]
tizen_bcm2711_defconfig: enable drivers for RPi5 board

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie9a0abcd3e1f077e1cee4c9bf45a0d22d406bf41

5 weeks agomm: memcontrol: Add force_reclaim to reclaim tasks' memory in memcg
Dongwoo Lee [Mon, 3 Aug 2020 05:44:43 +0000 (14:44 +0900)]
mm: memcontrol: Add force_reclaim to reclaim tasks' memory in memcg

These days, platforms tend to manage memory on low memory state
like andloid's lowmemory killer. These platforms might want to
reclaim memory from background tasks as well as kill victims
to guarantee free memory at use space level. This patch provides
an interface to reclaim a given memcg. After platform's low memory
handler moves tasks that the platform wants to reclaim to
a memcg and decides how many pages should be reclaimed, it can
reclaim the pages from the tasks by writing the number of pages
at memory.force_reclaim.

Signed-off-by: Hyunhee Kim <hyunhee.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[dwoo08.lee: ported from mailing list https://www.spinics.net/lists/cgroups/msg07874.html]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
[mszyprow: adapted for the changes from e55b9f96860f ("mm: memcontrol: drop
 dead CONFIG_MEMCG_SWAP config symbol") in Linux v6.1]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I928bf48e9715ed64135030dea44102d54d5f16f4

5 weeks agousb: gadget: f_fs: Prevent panic due to failure of huge size buffer allocation
Dongwoo Lee [Fri, 26 Oct 2018 01:41:41 +0000 (10:41 +0900)]
usb: gadget: f_fs: Prevent panic due to failure of huge size buffer allocation

The f_fs daemons usually use large size buffer for increasing transfer
performance, but it can cause memory allocation failure in case of
that buddy space is fragmented. Since this, instead of just returning
error in this case, give the chance to retry to allocate memory with
a half length in order to prevent daemon crash due to failure of
buffer allocation.

Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
[hoegeun.kwon: rebased and resolved conflicts]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ief5f8256b37b38de14bb333e53c4c4688867d4f6

5 weeks agokdbus: export needed symbols for out-of-tree support
Mateusz Majewski [Thu, 25 Nov 2021 13:32:07 +0000 (14:32 +0100)]
kdbus: export needed symbols for out-of-tree support

We have been asked to move kdbus out-of-tree. It uses a couple
unexported symbols, so we need to (grudgingly) export them.

Change-Id: Ide04c46bbc71f8fffbdefca68959e1048af1c905
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
5 weeks agokdbus: Revert "cgroup: remove unused task_cgroup_path()"
Seung-Woo Kim [Tue, 27 Feb 2024 09:18:07 +0000 (18:18 +0900)]
kdbus: Revert "cgroup: remove unused task_cgroup_path()"

This reverts commit d16b3af46679a1eb21652c37711a60d3d4e6b8c0.

kdbus of linux-tizen-modules-source has still usage of
task_cgroup_path(). To support linux-tizen-modules-source,
as workaround, revert back.

Change-Id: I0c943932d07ff0aa602f4a238bfa5839d74735d4
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agokdbus: Revert "fs: unexport poll_schedule_timeout"
Łukasz Stelmach [Mon, 21 Dec 2020 11:40:27 +0000 (12:40 +0100)]
kdbus: Revert "fs: unexport poll_schedule_timeout"

This reverts commit 8f546ae1fc5ce8396827d4868c7eee1f1cc6947a.

Change-Id: Ic603b089a2e7a3d65c86fbb41309c105c9a1e2fa
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 weeks agoPartially Revert "brcmfmac: p2p: Deal with set but unused variables"
Seung-Woo Kim [Fri, 20 Jan 2023 04:41:37 +0000 (13:41 +0900)]
Partially Revert "brcmfmac: p2p: Deal with set but unused variables"

This partially reverts commit 2de64ca7c9fadd32b261530592db4a6adbfcb53f.

The commit 61325dc073e2 ("Revert "brcmfmac: move configuration of
probe request IEs"") requires vif set with p2p interface, but commit
2de64ca7c9fa removes setting. Partially revert the commit to support
p2p usage with p2p interface.

Change-Id: Iaa3a6c57bb9e14c80ef9f4714eea0cfc447d6adc
Reported-by: Jiung Yu <jiung.yu@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agopackaging: Add NO_JEVENTS=1 option to build perf
Jaehoon Chung [Mon, 26 Feb 2024 02:52:54 +0000 (11:52 +0900)]
packaging: Add NO_JEVENTS=1 option to build perf

Add NO_JEVENTS=1 option to build perf for aarch64.
During building aarch64, it's failed with below message.

[   61s] Makefile.config:846: No python interpreter was found: disables Python support - please install python-devel/python-dev
[   61s] Makefile.config:881: *** ERROR: No python interpreter needed for jevents generation. Install python or build with NO_JEVENTS=1..  Stop.
[   61s] make[1]: *** [Makefile.perf:242: sub-make] Error 2
[   61s] make: *** [Makefile:70: all] Error 2
[   61s] error: Bad exit status from /var/tmp/rpm-tmp.dIxz2n (%build)

Change-Id: I77ebb333561733cef1f45cb1432dedacb3b5191c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agooverlays: Add dwc2-tizen-overlay
Hoegeun Kwon [Thu, 27 Oct 2022 10:53:47 +0000 (19:53 +0900)]
overlays: Add dwc2-tizen-overlay

Add g-extcon-always-on value,
Set extcon state for dwc2 cable as always true.

Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ibd209a402978343eeb6af3d4597a80d48f53f019

5 weeks agousb: dwc2: gadget: Set extcon state for usb cable as always true
Dongwoo Lee [Tue, 18 Feb 2020 04:36:40 +0000 (13:36 +0900)]
usb: dwc2: gadget: Set extcon state for usb cable as always true

To inform to userspace as enable usb features always, set extcon
state for usb cable as connected permanently. To enable this, add
"g-extcon-always-on" property on dt.

Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
[mszyprow: ported and adapted to v6.6 kernel release]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ib0e9982b426fda7deed510e482d6731a2f23d0b1

5 weeks agodrm/v3d: Add gpu_gem_info node via debugfs
Seung-Woo Kim [Mon, 19 Sep 2022 10:35:14 +0000 (19:35 +0900)]
drm/v3d: Add gpu_gem_info node via debugfs

Add gpu_gem_info node via debugfs of dri debug sysfs for each
process with pid/tgid and its gem objects. Same gem object can be
opened from multiple processes, so from the gpu_gem_info node,
it can print same gem in multiple lines.

Ported from the commit dea4ace78ec7 ("drm/vc4: Add gem_info node
via debugfs") to v3d.

NOTE: From Raspberry Pi 4 board, v3d gpu is card0 and also render node
in dri card128, so accessing can be from both nodes. For render fixed
node, it is /sys/kernel/debug/dri/128/gpu_gem_info.
Also, Raspberry Pi 4 board gives entire gem count and total size with
/sys/kernel/debug/dri/128/bo_stats.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[mszyprow: ported and adapted to v6.6 kernel release]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I0b9cc241d551904a95cafb7531c50ba6e1dd9082

5 weeks agodrm/vc4: Add gem_info node via debugfs for vc5
Hoegeun Kwon [Mon, 19 Dec 2022 06:57:39 +0000 (15:57 +0900)]
drm/vc4: Add gem_info node via debugfs for vc5

The memps requires gem_info with gem_names to analyze graphics shared
memory, so this patch adds gem_info node via common helpers for
debugfs.

Let's save pid/tgid in private file data only once when gem object is
created or prime_fd is imported and use them on gem_info. This is to
solve the wrong pid problem of gem_info created as different processes
share fd of drm device node.

The prime fd created in vc4, but handled in v3d, modified to hanle
this in vc4.

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
[mszyprow: ported and adapted to v6.6 kernel release]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I1430eadbfbdfc197f8e39f952e7f82999e249672

5 weeks agodrm/vc4: add extcon hdmi connection uevent
Seung-Woo Kim [Tue, 30 Jun 2020 05:32:02 +0000 (14:32 +0900)]
drm/vc4: add extcon hdmi connection uevent

Add extcon hdmi connection and disconnection uevent when extcon
module is enabled.

The vc4_hdmi detection is done by polling way, so extcon uevent
for connection is a bit slow after changing real hdmi cable state.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
[mszyprow: this is a squashed set of the following patches
 from platform/kernel/linux-rpi 'tizen' (c4f85fdcd893) branch:
 drm/vc4: add extcon hdmi connection uevent
 drm/vc4: hdmi: Fix hotplug extcon uevent to works
 ported and adapted to Linux v6.6 kernel base]

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2a825241cd72befd1f75bd094405f719d4b20638

5 weeks agoBluetooth: Add LE connection parameter update
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: I9a65b55790a9b2a7e43405890209aaac53002b81
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Set le data length command and event
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: Idf18a909ab8a949358d28d78d76faa8719215d4b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Read host suggested default le data length
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: I6194023bf41ef1fe5606f41fdb0776f6ec84cb4f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Write host suggested default le data length
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: Idd59eba48a6726293ef91804d090ecfd7d46f220
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Read LE Max data length command
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: I308cb2de2e7fe5b3e5dd2dd8813668f27d6a2c57
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Fix IPSP connection callback event issue.
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: I7fe5698add70faf5c2ebb72a1799c9790b48edf3
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: IPSP Connect/Disconnect apis
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: I6139603a9614217637f109b2d724e1bf9ffb8f93
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add support to enable/disable IPSP
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: Ibbed275162ac0539205502747923603a2a581c36
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Fix issue in the Set LE privacy function.
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: I465edcfb14945d358dc940e15b10fff1497aca1e
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Store the key if auth type is P192
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: I8d90830af296e718857d73cbdd1de61b8c7a37f1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Cancel the Sniff timer
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: Ic0e233bf43084e5228866d70de7dcb96a2df1c54
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Enable sniff mode for incoming connection
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: Iceec461cd620a328646df7889a89e41ce402b8ca
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Modify fast connectable type.
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: I9dfe64e09bcc1bc5152477ab8c7d0b6c386003b3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Send Authentication Request command on pairing failure
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: I84f5e835507ffa4e4a12d2f40d4765e5068a78df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Enable inquiry and page scan
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: Iabe53b9191544f2db952c8bad988bb367696bd23
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Change authentication requirement.
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: Id00b7d7136b5de0f63df98b6d3cee04cde267a21
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Set link Supervision timeout for a connection
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: I204ebea960235ab4f858c9b57d57989e4426740e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Set filter policy for LE connection
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.

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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I6a5ae486f39e1adb9451ea1768d93f0d800ce596

5 weeks agoBluetooth: Get Advertising TX power
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: Ic2f6a8dedc949d6114fc22f1a595fc2c6c6b4d69
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Set the link for SCO connection
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.

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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I285b1f15404fe612f6e3a54881207dbcb373554d

5 weeks agoBluetooth: Add MGMT command to set SCO settings
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.

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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I5d7a594e50a37b7886dd6b9b9c90ea00c0bc9dda

5 weeks agoBluetooth: Add multiple LE advertise state change event
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.

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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I203e677538646b8107d43a5ac7653ce717ca44ef

5 weeks agoBluetooth: Add LE device found MGMT event
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: Ifff3ccb291a3a0fc23256763e089613ee4efbec4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: fix vendor ext rssi link alert event
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: Ib78a778cef9233bd7c63dae4ffcd49aeb167c1b0
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add H/W TX timeout error MGMT event
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: If1da7ae0633d9b99c76c982810d65ee2e466fc9e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add hardware error MGMT event
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: I7966385b6711b944baa17a7ebe671cc94b3e948e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add LE vendor specific event handler
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.

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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I75395d8a0df5393eadc4be89aad8daefc89f507e

5 weeks agoBluetooth: Add set LE scan parameter feature
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: I851cb2181bd626adc1f7f80297d37480a010b52d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Set Manufacturer data feature
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: I1b97854795eec10f9f8481a96709abcd0ba26b52
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add LE connection parameter update procedure
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: I44d366eb6f6b3aa090b34e3e314becd7b96537af
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add stop LE auto connection feature
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: Ifd2dd85ea6368dad76f6753f442ffd94f53fc208
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Add BT LE discovery feature
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: I68218f1e666ed5850ca2b81efe956272c83d30d1
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 weeks agoBluetooth: Update device name on remote_name_event
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: I9e95b53e882744c205adc86b1d00c064691fbc48
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>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>