summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-05-19packaging: remove unnecessary u-boot-tools dependencytizen_7.0_m2_releasesubmit/tizen/20220523.011552accepted/tizen/unified/20220524.050436accepted/tizen/7.0/unified/hotfix/20221116.110517accepted/tizen/7.0/unified/20221110.063024tizen_7.0_hotfixtizen_7.0tizenaccepted/tizen_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedSeung-Woo Kim1-1/+0
No u-boot-tools usage in rpi3 kernel build. Remove unnecessary u-boot-tools dependency. Change-Id: I1d6046854fc42099a2372f48f339b00c453b2b0c Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2022-01-10packaging: do not export kdbus.h and logger.hsubmit/tizen_6.5/20220112.012238submit/tizen/20220112.012135accepted/tizen/unified/20220112.121646accepted/tizen/6.5/unified/20220112.121545tizen_6.5accepted/tizen_6.5_unifiedŁukasz Stelmach1-0/+4
logger and kdbus modles are maintained in the linux-tizen-modules-source package. Current versions of their headers are available in the linux-tizen-modules-source-headers package. Change-Id: I497a7e0b17dd0b1d0214320fc8a6afcdbd9ca916 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-10-08kdbus: don't unlink synchronous repliesAdrian Szyndela1-1/+2
When a signal breaks a synchronous call, and a reply is received before restart is executed, then the reply is unlinked and the restarted call can't pick it up anymore. But keeping only interrupted synchronous calls linked is not enough. If a reply comes just after the signal, before marking the reply structure as interrupted, then the reply is - again - unlinked and the restarted call can't pick it up anymore. This commit leaves all synchronous replies linked. This way: - asynchronous calls work as before the changes - replies are unlinked by the replier in kdbus_conn_reply(); - replies for synchronous calls are unlinked by the caller in kdbus_conn_wait_reply(). Change-Id: I0e3d8f53cf24a0aa8c59244e0768eebeb3fee110 Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
2021-07-13tizen_bcmrpi3_defconfig: Enable dm-bowtizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163201submit/tizen/20210716.010712accepted/tizen/unified/20210716.131207accepted/tizen/6.5/unified/20211028.115935Ernest Borowski1-0/+1
This enables device mapper driver to allow checkpoint & restore on ext4 partitions. Change-Id: Id682e9f9bdb6d856da35dd65480d40dc85ff4d3b Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
2021-07-13tizen_bcm2709_defconfig: Enable dm-bowErnest Borowski1-0/+1
This enables device mapper driver to allow checkpoint & restore on ext4 partitions. Change-Id: I247516b3483b94c3d857216daac8b272fdc5d782 Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
2021-07-13device-mapper: Add dm-bowMateusz Moscicki4-0/+1420
dm-bow is a device mapper driver that allows to create a checkpoint on the volume so that it is possible to restore the state if necessary. This is needed to protect the ext4 partition during a system upgrade in case of a power failure. Change-Id: Ic62e83dc5b04cfa250d1b7eaa3721546782e88eb Originally-by: Paul Lawrence <paullawrence@google.com> Origin: https://android.googlesource.com/kernel/common/+/refs/heads/android-mainline/drivers/md/dm-bow.c Signed-off-by: Mateusz Moscicki <m.moscicki2@samsung.com>
2021-07-08ARM64: tizen_bcmrpi3_defconfig: Sync with savedefconfigDongwoo Lee1-1/+0
This fixes to synchronize current defconfig with savedefconfig Change-Id: Ia899b3b87dc4232e4eb09e84e8e6d29352d115e6 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-07-08ARM: tizen_bcm2709_defconfig: Sync with savedefconfigDongwoo Lee1-1/+0
This fixes to synchronize current defconfig with savedefconfig Change-Id: Ia3746fef04296097ca0173794c374d5b578ced72 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-06-30ARM/ARM64: tizen_bcm2709_defconfig: disable ANDROID_LOGGER configsubmit/tizen/20210630.013220accepted/tizen/unified/20210630.144045INSUN PYO2-2/+2
Disable android logger. The android logger has been moved to the kernel module of the linux-tizen-modules package. Change-Id: Ie85ea5eb84ab489cd4ef76b97eb84aeab2d89c18 Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
2021-05-18kdbus: Remove unreachable code from kdbus_msg_examinesubmit/tizen/20210531.013858accepted/tizen/unified/20210602.122630Sylwester Nawrocki1-5/+2
This fixes an issue pointed out with SVACE warning: * UNREACHABLE_CODE: This statement in the source code might be unreachable during program execution. [unreachable] unreachable at linux-rpi3/ipc/kdbus/message.c:346 [vec_size > vec_size + size (0 > ANY) is always false] vec_size > vec_size + size (0 > ANY) is always false at linux-rpi3/ipc/kdbus/message.c:345 Change-Id: Ic154b2dbb0740f9e49b68ef273f19cd89e90c200 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2021-05-18logger: Suppress SVACE sign extension warningsSylwester Nawrocki1-2/+2
This patch suppresses SVACE warnings shown below and makes the code more robust. The actual sign extension issue cannot happen in current code as value of the len variable in function logger_set_tag() is limited to LOGGER_ENTRY_MAX_PAYLOAD and create_log() is being called only with fixed size argument values. * SIGNED_TO_BIGGER_UNSIGNED: Assignment of a signed value which has type 'int' to a variable of a bigger integer type 'size_t' Sign extension at linux-rpi3/drivers/staging/android/logger.c:898 * SIGNED_TO_BIGGER_UNSIGNED: Assignment of a signed value which has type 'int' to a variable of a bigger integer type 'size_t' Sign extension at linux-rpi3/drivers/staging/android/logger.c:1045 Change-Id: I8646555e1a09fb0feb4c12961965aea36c80cd38 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2021-04-30ARM64: tizen_bcmrpi3_defconfig: Enable security labels for f2fssubmit/tizen/20210430.074455accepted/tizen/unified/20210502.124133Dongwoo Lee1-0/+1
To support smack on f2fs, this enables security label for f2fs filesystem. Change-Id: Ie9fee58880b35057b0732bc434e03a55baa188e6 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-04-30ARM: tizen_bcm2711_defconfig: Enable security labels for f2fsDongwoo Lee1-0/+1
To support smack on f2fs, this enables security label for f2fs filesystem. Change-Id: I37ba6a2e1b872116fa7ef1283d8901d497434a2e Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2021-04-19logger-test: more intensive testssubmit/tizen/20210420.014641accepted/tizen/unified/20210420.090116Łukasz Stelmach1-12/+17
Send enough data to logger to fill the whole ring buffer. Test assembly of large messages without newline characters. Check return value from write(2). Remove some dead code. Change-Id: I165458f5c7831bd925164aa087f28fd319c9872f Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-19logger: introduce struct logger_set_tagŁukasz Stelmach3-8/+24
Introduce dedicated structure for LOGGER_SET_TAG ioctl, instead of packing and unpacking arguments by hand. Change-Id: Ic3399ab37f55ba2b8a9a976f8c9495fc487fe7f3 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-19logger: move logger.h to uapiŁukasz Stelmach3-5/+6
Move logger.h to uapi so it can be exported for userland software to use. Change-Id: I64dca69f3442edc246562485b0b29b43615ae881 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-19logger: return amount of data written to stdioŁukasz Stelmach1-12/+13
Return amount of data written by a process to a logger via STDIO interface. Change-Id: I9c77a312d09f3d796a7ec64d5909af193bcc8bc2 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-19logger: fix temporary buffer handlingŁukasz Stelmach1-3/+14
Prevent writing beyond temporary buffer and improve accumulation of data before receiving a newline character or filling the buffer. Change-Id: I8e0591c90914dbd4c2addde4247157831fa4843a Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-19logger: adapt access mode checksŁukasz Stelmach1-2/+4
Allow setting the tag and the priority only for files opened O_WRONLY. Change-Id: Icc9d7a8eb96f8f1b1aa00717aae1f32f7a2e52e4 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-09logger: Fix incorrect buffer access when writing datasubmit/tizen/20210409.113436accepted/tizen/unified/20210412.012038Łukasz Stelmach1-1/+1
Fix crash caused by accessing memory beyond log->buffer Change-Id: I528b62e34e9fb5f92f62f6b218718e15cd5f7d31 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-06logger: testing tool for STDIO loggersubmit/tizen/20210407.055935accepted/tizen/unified/20210407.100438Łukasz Stelmach3-0/+180
Change-Id: I029a7def836b317a4e059c7a56301e169910a830 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-04-06logger: accept untagged log entriesŁukasz Stelmach2-35/+331
Add support for writing untagged log messages to /dev/log_* nodes. The logger shall accept untagget messages after setting the tag and the priority with appropriate ioctl() commands for particular file descriptors. Change-Id: I02bd7bfd843eaf316692413a48747009c42756f6 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31kdbus: build and package kdbus-testssubmit/tizen/20210401.011549accepted/tizen/unified/20210401.110012Łukasz Stelmach1-0/+27
Change-Id: Icfcecc2780e6c5cdddaad0440b731ebb9dc49446 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31kdbus: test suite changed to common formatKonrad Lipinski31-3776/+3066
This commit adapts the kdbus test suite to use with dbus-integration-tests. Change-Id: Ifee21253f4e3c732b27517a0c566d4b9a569d5af Origin: commit:2c0f308e6d963987fcb4e5754f504028d4511629 Signed-off-by: Adrian Szyndela <adrian.s@samsung.com> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31ARM/ARM64: Enable KDBUS in tizen defconfigsŁukasz Stelmach2-0/+2
Change-Id: Ib1680e530acf3cb9161cdb53b5db5ef87f51df8c Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31kdbus: porting to to 4.19Łukasz Stelmach1-2/+2
The following changes were made to adapt kdbus driver to 4.19 kernel - use memfd_fcntl() instead of shmem_get_seals() Change-Id: Iff24cd3c429310c3af748657a24a5e35db738635 Fixes: 5aadc431a593 ("shmem: rename functions that are memfd-related") Fixes: 5d752600a8c3 ("mm: restructure memfd code") Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31kdbus: Revert "fs: unexport poll_schedule_timeout"Łukasz Stelmach2-1/+4
This reverts commit 8f546ae1fc5ce8396827d4868c7eee1f1cc6947a. Change-Id: I5429471eeb092c55a50e37c0b642d50d69daebc7 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31kdbus: porting to 4.14Adrian Szyndela12-30/+54
This commit makes kdbus driver working with kernel 4.14. It also enabled compilation of the driver if enabled in config. The list of changes needed to make it compile with kernel 4.14: - Add missing includes for <linux/cred.h> - put inode_lock()/inode_unlock() in place of explicit mutex locking - replace CURRENT_TIME with proper call to current_time() - replace PAGE_CACHE_* with PAGE_* - replace GFP_TEMPORARY with GFP_KERNEL - use kvecs for kernel memory, iovec for user memory instead of only iovec for both - fix usage of task_cgroup_path() - replace GROUP_AT usage with 'gid' field dereference - add 0 as an argument to init_name_hash - add 0 as flags as an argument to vfs_iter_write - replace __vfs_read with kernel_read to allow compilation into module Change-Id: Ifed3a6d3a37082a900a64316af1c8a21ab30e84e Origin: commit:846051292431cc81adb852c2b0cbbfddac4a3d48 Signed-off-by: Adrian Szyndela <adrian.s@samsung.com> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31kdbus: the driver, original and non-workingAdrian Szyndela90-1/+34531
[based on commit 216823ac83c0ab89348e2ed6f66179f53626586e] Introduce the kdbus driver again. This driver worked previously on kernel 4.1. This is the source code taken from the working driver. It is non-working and disabled. It is a base for porting. The documentation is moved from Documentation to ipc/kdbus/Documentation. The references to kdbus source code are commented out or removed in Makefiles. Original authors of the files are those from commit 216823ac83c0ab8934. Cherry-picked from 5.4 commit e2d621efdb4f1c1a6e782121d95b62ea249828f2 Change-Id: If8baeb585b5ecedd4286553405c3a8d24fed9c3a Signed-off-by: Adrian Szyndela <adrian.s@samsung.com> Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31spec: set CONFIG_LOCALVERSIONŁukasz Stelmach1-3/+3
Set CONFIG_LOCALVERSION insetad of EXTRAVERSION in Makefile to carry information about the platform variant. Change-Id: I72986cb618b998983f1e9f6eccba7d6e4603248f Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31spec: support gbs(1) incremental buildsŁukasz Stelmach1-24/+27
gbs(1) enable incremental builds that are significantly faster, hoewever, spec files need some adjustments. + You can't use -n <name> with %setup + use rsync(1) instead of cp(1)+find(1) to copy devel files Other changes are: + add _smp_mflags to make(1) things faster Change-Id: I18c47b59b1bfef17501ab57f39f93d7185592f13 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31script: adjust ccache supportŁukasz Stelmach1-4/+4
Change-Id: Ia37a450bccf93ddf3daaca442be4d221df0d4036 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31script: Reformat to align with build-rpi4.shŁukasz Stelmach1-5/+12
Reformat the script to bring it into alignment with build-rpi4.sh for easier maintenance. Change-Id: Ie97a1acc28486e62630062587a30689a9f19e085 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-31script: Detect number of CPUsŁukasz Stelmach1-2/+5
Automatically determine the number of parallel make(1) processes to run. Change-Id: I0ce778e5c15ceb8cf80bbfc2f4bb58c937630ba3 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2021-03-11packaging: not delete the vmlinux file to debugsubmit/tizen/20210311.062002accepted/tizen/unified/20210311.151443Jaehoon Chung1-1/+0
To debug with T32, it needs to use vmlinux file. Incldue its file in devel package. Change-Id: Ib01d80a99e08e99ecbdaa3a6e0787ac5dbe0e372 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-02-17ARM/ARM64: defconfig: disable SECURITY_SMACK_NETFILTER configsubmit/tizen/20210217.042922accepted/tizen/unified/20210217.120508Jaehoon Chung2-2/+0
Disable SECURITY_SMACK_NETFILTER configuration. Change-Id: Idcc1175672ea2c86c232d834589c1a7c364636aa Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-01-25ARM: tizen_bcm2709_defconfig: Enable OVERLAY_FSsubmit/tizen/20210125.080748accepted/tizen/unified/20210126.141632Seung-Woo Kim1-0/+1
Enable CONFIG_OVERLAY_FS for tizen application space. Change-Id: I79add9d8b79281074ae1dd1d12a9c65fa422410b Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2021-01-25ARM64: tizen_bcmrpi3_defconfig: Enable OVERLAY_FSSeung-Woo Kim1-0/+1
Enable CONFIG_OVERLAY_FS for tizen application space. Change-Id: I8c61e997c504467c0204d6e29b1c1f3ebac1c379 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-10-28ARM64: configs: tizen_bcmrpi3_defconfig: Enable BCM_VCIOsubmit/tizen/20201029.033227accepted/tizen/unified/20201029.124758Seung-Woo Kim1-0/+2
Enable userland broadcom mailbox support, CONFIG_BCM_VCIO, as like 32bit config. Change-Id: Ic0e33aaa2ed4040db57e8e48e2dabb2197cf9e4e Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-08-21Revert "WORKAROUND: security: smack: Allow ptracing even processes in ↵tizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.115101submit/tizen_6.0_hotfix/20201102.192901submit/tizen_6.0/20201029.205501submit/tizen/20200820.145124accepted/tizen/unified/20200824.030014accepted/tizen/6.0/unified/hotfix/20201103.000028accepted/tizen/6.0/unified/20201030.104525tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedSeung-Woo Kim1-2/+0
onlycap set" This reverts commit 718567d336d0b0943385905bb12707552d8bef66. Now crash-worker has System::Privileged privilege, so not anymore ptrace related workaround is necessary. So revert the workaround. Change-Id: I42b535e4152eb742df011a5a08324764b49f989a Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-08-10WORKAROUND: security: smack: Allow ptracing even processes in onlycap setsubmit/tizen/20200810.050403accepted/tizen/unified/20200810.123103Karol Lewandowski1-0/+2
Change-Id: I708d19703da0f1b83950454fda1362bec7369b5c Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-08-03Revert "brcmfmac: move configuration of probe request IEs"submit/tizen/20200803.071449accepted/tizen/unified/20200803.122234Jaehoon Chung2-7/+4
This reverts commit bd99a3013bdc00f8fc7534c657b39616792b4467. It doesn't find any p2p-device with wpa_supplicant on Tien. - After reverted this, it's working fine. Change-Id: I1cd77e65ad17078370116473dd46adc7338d6695 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-07-17ARM64: configs: tizen_bcmrpi3_defconfig: Enable FUSE_FSsubmit/tizen/20200717.080515accepted/tizen/unified/20200720.125614Seung-Woo Kim1-0/+1
Tizen requires CONFIG_FUSE_FS for user space filesystem. Enable the option. Change-Id: Ia4eefdcd95b5be4944a9717e69a4ce2deb31a081 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-07-17ARM: configs: tizen_bcm2709_defconfig: Enable FUSE_FSSeung-Woo Kim1-0/+1
Tizen requires CONFIG_FUSE_FS for user space filesystem. Enable the option. Change-Id: Icf66feb085fee5ab30e3b680d1914a51f276d9bd Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-06-25ARM: configs: tizen_bcm2709: revert BLK_DEV_RAM_COUNT to 16submit/tizen/20200625.095326accepted/tizen/unified/20200626.133447Jaehoon Chung1-1/+0
Revert BLK_DEV_RAM_COUNT to 16 - default value. Becaues there is timing issue about booting fail, use default value. Change-Id: Ida3985e9a48863abbc2bd14476edb146c3f5744f Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-06-25ARM64: configs: tizen_bcmrpi3: revert BLK_DEV_RAM_COUNT to 16Jaehoon Chung1-1/+0
Revert BLK_DEV_RAM_COUNT to 16 - default value. Becaues there is timing issue about booting fail, use default value. Change-Id: I1bec8f42fc719522510971ad5ec25512e57ee8aa Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-06-22ARM: configs: tizen_bcm2709: change BLK_DEV_RAM_SIZE to 32MBsubmit/tizen/20200622.213607accepted/tizen/unified/20200623.080553Jaehoon Chung1-1/+2
Change BLK_DEV_RAM_SIZE from 12MB to 32MB. And also change BLK_DEV_RAM_COUNT from 16 to 2. It doesn't need to keep /dev/ram0-16. Change-Id: If6acb3813061827a260e5b6414a34e06cfc0965b Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-06-22ARM64: configs: tizen_bcmrpi3: change BLK_DEV_RAM_SIZE to 32MBJaehoon Chung1-1/+2
Change BLK_DEV_RAM_SIZE from 12MB to 32MB. And also change BLK_DEV_RAM_COUNT from 16 to 2. It doesn't need to keep /dev/ram0-16. Change-Id: I598dba4abc102a7ba51f5419ad6871875b73165c Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-04-20packaging: Add build perf with unwind call-graph supportsubmit/tizen/20200421.025351accepted/tizen/unified/20200422.032151Seung-Woo Kim1-3/+10
To support perf unwind call-graph, add BuildRequires for unwind, dw, elfutils and other related devel packages. Also add definition to remove not necessary perl dependency Change-Id: I8e94ec4642026841255bbec08ae3dea2a8f5b531 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-04-20perf version: Fix segfault due to missing OPT_END()Ravi Bangoria1-0/+1
'perf version' on powerpc segfaults when used with non-supported option: # perf version -a Segmentation fault (core dumped) Fix this. Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Tested-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/20190611030109.20228-1-ravi.bangoria@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit 916c31fff946 to fix possible seg.fault in Tizen armv7l] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: If19720350e2992d1f5e58711f1f708a4d4ec5683