JaeHun Jung [Thu, 23 Aug 2018 08:08:09 +0000 (17:08 +0900)]
Revert "[HACK][COMMON] scsi: assume device cache off"
This reverts commit
451871a9ea3d65d360d93ecdaf24eb71dfa9b4f2.
Change-Id: I1c25c7b679b7bbaf9d716379a0ed0d2572c0a56f
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Youngsoo Kim [Mon, 27 Aug 2018 09:29:16 +0000 (18:29 +0900)]
[9610] wlbt: fix prevent issue
CID 237209 Uninitialized pointer read (UNINIT)
35. uninit_use_in_call: Using uninitialized value ht_operation_ie when calling slsi_modify_ies_on_channel_switch.
Change-Id: Id1913c5a9b92e4ec77c7ecac4ea21e1d82a0633c
Kisang Lee [Thu, 23 Aug 2018 08:22:13 +0000 (17:22 +0900)]
[9610] arm64: configs: add USB audio configuration
Change-Id: I590cc0805be8bd562ed7c94565dfb869985a4eae
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
DongHyun Cha [Tue, 21 Aug 2018 04:00:02 +0000 (13:00 +0900)]
gud: Enable FOLL_CMA
Change-Id: I5d2b49d09d0e6cf7964951554f31dd7dd1bb8ae9
Signed-off-by: DongHyun Cha <dhyun.cha@samsung.com>
Cho KyongHo [Fri, 6 Apr 2018 14:07:38 +0000 (23:07 +0900)]
mm: hpa: fix killing low oom_adj tasks
oom_skip_task() returns true if the give task should not be killed.
But hpa_killer() skips the given task if oom_skip_task() returns false.
Change-Id: If7d829e7056021fe63bae99f735377b685578db6
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Fri, 6 Apr 2018 12:05:25 +0000 (21:05 +0900)]
mm: hpa: fix reference to NULL task_struct
hpa_killer() finds the task with the largest oom_adj_score. It
repeatedly holds and releases references to the tasks during traversing
the list of tasks.
But it forgot the fact that selected that holds the pointer to the
task with the largest oom_adj_score for now is initialized by NULL.
Change-Id: Id374a8d5e2b1bbefc797a314f4eb36783258bbb1
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Mon, 17 Apr 2017 05:59:30 +0000 (14:59 +0900)]
mm, compaction: remove ALLOC_CMA from __compaction_suitable()
The following patch forces ALLOC_CMA to __zone_watermark_ok() in
__compaction_suitable() because the migration target free page can
be allocated from the free list of MIGRATE_CMA:
984fdba6a32e mm, compaction: use proper alloc_flags in __compaction_suitable()
However, it is not true from the following patch:
bf72522dabeb mm: compaction: exclude cma pages from compaction
Therefore, force 0 to __zone_watermark_ok() and revert the alloc_flag
in __isolate_free_page().
Change-Id: I95b3ac6e705f5546b93a8b5c4ceabeaa73d5642d
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Mon, 20 Feb 2017 08:26:19 +0000 (17:26 +0900)]
mm: compaction: exclude cma pages from compaction
The following commits avoid allocating CMA pages for allocation
requests without GFP_HIGHUSER_MOVABLE.
commit
8e980f429 ("mm: restrict cma pages to GFP_HIGHUSER_MOVABLE")
commit
61019deeb ("mm: allocate CMA pages first for GFP_HIGHUSER_MOVABLE")
commit
9db6a5edc ("mm: do not alloc cma page for shmem")
However one exception is found that a CMA page is allocated without
GFP_HIGHUSER_MOVABLE: compaction. The freepage scanner of compaction
gathers free pages to copy the contents of migration target pages.
It gathers CMA pages to migrate movable pages which might be allocated
without GFP_HIGHUSER_MOVABLE.
To avoid pinning CMA pages unexpectedly, CMA pages should be excluded
from the freescanner of the compaction. Likewise CMA pages are also
excluded from the migration target page scanner because CMA pages are
not helpful for the purpose of the compaction. CMA page blocks are not
allocated for either of THP or unmovable pages.
Change-Id: Ic4524f650eea19cfa8e2f197653c465dd5f0db97
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Thu, 5 Jan 2017 12:25:29 +0000 (21:25 +0900)]
mm: restrict cma pages to GFP_HIGHUSER_MOVABLE
pcp list of MIGRATE_MOVABLE can have CMA pages and the free pages in
the list are ready for allocation with __GFP_MOVABLE. Since CMA pages
should be allocated only if GFP_HIGHUSER_MOVABLE is specified, it is
required to verify if the selected page in the pcp list is proper for
allocation according to gfp mask.
Change-Id: I5c74d74edc6adce293a3db59abdbb1acf4a01c14
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Thu, 5 Jan 2017 01:23:07 +0000 (10:23 +0900)]
mm: allocate CMA pages first for GFP_HIGHUSER_MOVABLE
CMA pages are not actively used and tend to be remained unused because
the free list of CMA pages are only lookuped as the fallback of
movable page allocations. Large amount of free CMA pages causes
problems about unmovable page allocation failure as well as memory
unefficiency.
If free CMA pages are more than the low wmark, page reclamation does
not work for unmovable page allocations. This results in depletion of
free pages available for unmovable page allocations.
To prevent this impact by free CMA pages, we should always try to
consume all free CMA pages.
Change-Id: Idc51f0327f6706d27dafbbb69475bf53eb0153eb
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Wed, 21 Dec 2016 02:17:20 +0000 (11:17 +0900)]
mm: do not alloc cma page for shmem
Some page caches of shmem tends to be pinned for a long time.
Therefore shmem should not allocate page caches from CMA because cma
pages should be always ready to be reclaimed promptly.
Change-Id: I024dad765feec07b0028851b0b98b7db7f3c85a5
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Fri, 9 Jun 2017 13:32:44 +0000 (22:32 +0900)]
mm: show page state if isolation is failed
alloc_contig_range() shows the following message to the kernel log if
isolation of the given page ranges has been failed:
"__alloc_contig_range: [8fcd00, 900000) PFNs busy"
But the message provides no information but isolation of some pages in
that range is failed.
If isolation of specific pages is failed repeatedly, we should find
the reason. Identifying the state of pages that are not isolated is
very important to start solving the failure.
Change-Id: I83fa34f9c49989076e1ba20f5b92c570bdd180c0
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Tue, 31 Oct 2017 12:03:37 +0000 (21:03 +0900)]
mm: show page state only for cma
migrate_pages() is not only called by cma but also by compaction and
memory hotplug-out.
"
fbca0939fc96 [COMMON] mm: show page state on migration failure"
inserts printing simple states of the pages that are failed in
migration to another pages. Migration for cma and memory hotplug-out
seldom fails but that of compaction does not since compaction tries
to migrate all anonymous pages. Therefore the state of the unmigrated
pages is not necessary for compaction. Rather it may suffer from too
many unnecessary mirgration failre log messages.
Change-Id: Ica55bbcacc94a7b16dc76410b404852a98bc482a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Wed, 20 Sep 2017 07:54:55 +0000 (16:54 +0900)]
mm: show page state on migration failure
It is very useful to find the reason of the migration failure if we
know what the page is not migrated and the state of the page.
Change-Id: If6def51cbe8ac5b48a49c860a925633a36b498a2
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Mon, 20 Aug 2018 12:43:19 +0000 (21:43 +0900)]
mm/gup: check FOLL_CMA eariler than others
__need_migrate_cma_page() checks a lot of conditions if the current
get_user_pages() request need to migrate CMA pages to some other pages.
But FOLL_CMA is given by very few users. We don't need to spend time
for condition check for the users without FOLL_CMA.
Change-Id: I973b3c99140e71fbf78cb6280e94ef5e97c9824a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Tue, 18 Jul 2017 01:42:28 +0000 (10:42 +0900)]
[COMMON] mm: gup: add local pagevec flush
Change-Id: Ic6a899001fcea0f0df64f3c07bb67f998144eb31
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Fri, 9 Jun 2017 13:39:22 +0000 (22:39 +0900)]
[COMMON] mm: gup: drain pagevec if FOLL_CMA is set
Some users of get_user_pages() give FOLL_CMA not to pin CMA pages.
However a CMA page may not be migrated even though FOLL_CMA is set
because it is not in LRU but in per-cpu pagevec.
The previous approach to solve this problem is the invocation of
migrate_prep_local() that drains the pagevec of the local CPU. It was
the only choice in if it is called in __need_migrate_cma_page(). It is
because __need_migrate_cma_page() is called under a spinlock of page
table is held. This approach unfortunately does not drain pagevecs of
other CPUs and makes CMA fail to allocate physically contiguous memory
at last.
We need a different approach to get over the problem: clearing pagevec
of all CPUs if FOLL_CMA is set unconditionally. It degrades the
performance of get_user_pages() with FOLL_CMA if no CMA page is found
in the given range. But it is not a problem because there is very few
user that gives FOLL_CMA to get_user_pages().
Change-Id: Idcd651d5e2bc7ec66d17b3296e742b7e714f4b48
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Cho KyongHo [Tue, 27 Dec 2016 11:33:02 +0000 (20:33 +0900)]
[COMMON] mm: gup: fix invalid comparison for CMA
CMA pages should not be pinned for a long time because they should be
always ready for reclamation by the user's request. If a user of gup
wants to pin a series of pages for a long time he/she should give
FOLL_CMA to let gup migrate the CMA pages that are in pinning to
non-CMA pages.
In order to determine if a pinning page is in a CMA page, gpu should
compare if the migrate type of the pageblock of the page is
MIGRATE_CMA. But the comparison is not correct and the migration
never happens.
SVACE #82317
Change-Id: Id4ef40957365bdbe586f29c4ba0e6318e232719a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Sunyoung Kang [Tue, 14 Jun 2016 06:09:20 +0000 (15:09 +0900)]
[COMMON] mm: fix cma page migration race condition
The below callstack makes VM_BUG_ON in race condition.
So this fixes it by moving the page isolation into before
pte_unmap_unlock().
----------------------------------------------------------
CPU0 CPU1
__need_migrate_cma_page
PageLRU(page)
pte_unmap_unlock
isolate_migrate_pages_range
migrate_pages # clear pageLRU
# _count == 0
__migrate_cma_pinpage
__isolate_lru_page # failure on !PageLRU
get_page_foll # VM_BUG on page->_count == 0
----------------------------------------------------------
This patch effects that get_user_pages() may stop on a page that is
under a racing but it guarantees that the state of the page is
consistent. Therefore, the caller of get_user_pages() should always
check if the pinning all required pages is successful.
Change-Id: I7947db746e8aaed23ea7344ee0483073bbd2d51c
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Jinsung Yang [Tue, 3 Mar 2015 05:24:46 +0000 (14:24 +0900)]
[COMMON] mm: cma page migration for pinned pages
If the changes in the patch 'cma: redirect page allocation to CMA' were
applied, many user pages could be allocated from cma page block. However,
this can cause migration failures due to pinned pages by __get_user_pages().
This patch adds to support cma page migration at page pinning time if gup_flags
has FOLL_CMA.
Change-Id: I70389f1ddee9697af653c4a50eab161925113979
Signed-off-by: Jinsung Yang <jsgood.yang@samsung.com>
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
dan huh [Tue, 21 Aug 2018 06:46:15 +0000 (15:46 +0900)]
[9610] dtsi: Modfiy a dvfs level for capture
PR JIRA ID: CPR-193
Change-Id: If819dc7f8df17a474a75978ee5cec80a97c4b1cb
Signed-off-by: dan huh <dan.huh@samsung.com>
Youngsoo Kim [Wed, 22 Aug 2018 16:24:28 +0000 (01:24 +0900)]
[9610] wlbt : disable log_collection
temporary disable log_collection cause it make delay.
Change-Id: Icd410801dcd58ef80c8ea1212352696d5770f62f
Sangkyu Kim [Wed, 22 Aug 2018 07:32:17 +0000 (16:32 +0900)]
[COMMON] cpufreq: remove condition performance governor
Change-Id: I993d99194c8459f48ff286f842d1aa82826bf283
Signed-off-by: Sangkyu Kim <skwith.kim@samsung.com>
Boojin Kim [Tue, 21 Aug 2018 12:20:41 +0000 (21:20 +0900)]
[9610][ERD] dtsi: remove sensor pin interrupt
Change-Id: Ic013fa415f56f8bc06471c56d7c7cc13a5f1f9c7
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Boojin Kim [Tue, 21 Aug 2018 12:19:37 +0000 (21:19 +0900)]
Revert "[9610] arm64: dts: add gpio pins"
This reverts commit
b91347f9ed63cf8ce6609a4cca8d47a14eebdd5c.
Change-Id: Iade8c85023b36e47502757dec4329c75ab98f5d4
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Youngwan Kim [Thu, 16 Aug 2018 08:23:52 +0000 (17:23 +0900)]
[9610] arm64: configs: modify configs for user & userdebug
for fixing warning pop-up in platform and VTS fail
TODO: add same config to the eng build
Change-Id: I68acfe1b57a9f85183bf82ac5669d2b6f3598504
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
dan huh [Thu, 16 Aug 2018 23:33:58 +0000 (08:33 +0900)]
[9610] fimc-is2: Fix a SCAR error at DVFS file
PR JIRA ID: CPR-171
Change-Id: Id094c678808b63771d8d46d61a3269a4498f4f5c
Signed-off-by: dan huh <dan.huh@samsung.com>
dan huh [Thu, 16 Aug 2018 05:16:40 +0000 (14:16 +0900)]
[9610] fimc-is2: Modify a csis-3aa mux setting for dual, pip
PR JIRA ID: CPR-171
Change-Id: I0fe6389c11cf9664e0e4fb2b9319eeae8f83923c
Signed-off-by: dan huh <dan.huh@samsung.com>
dan huh [Thu, 16 Aug 2018 05:15:17 +0000 (14:15 +0900)]
[9610] fimc-is2: Add a PIP scenario for detect
PR JIRA ID: CPR-173
Change-Id: I19b3d246d045258af8b94b5a2cb75a67c04a6533
Signed-off-by: dan huh <dan.huh@samsung.com>
dan huh [Thu, 16 Aug 2018 05:13:22 +0000 (14:13 +0900)]
[9610] dtsi: Add a PIP scenario DVFS level
PR JIRA ID: CPR-173
Change-Id: Ibb1848f4b322faf85e60dc2795fa5fa6d4e94015
Signed-off-by: dan huh <dan.huh@samsung.com>
Wooyeon Kim [Tue, 14 Aug 2018 07:50:22 +0000 (16:50 +0900)]
[COMMON] fimc-is: fix a bug TDNR mode setting at each other instance
- if device is used a multi-instance, TDNR mode should set 2DNR mode
as other instance is operated
PR JIRA ID: CPR-166
Change-Id: I25254bcf4a2579cdbd4b16609a3257d42fa6392a
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Youngmin Nam [Thu, 16 Aug 2018 11:57:13 +0000 (20:57 +0900)]
[9610][ERD] arm64: config: enable CONFIG_ANDROID_LOW_MEMORY_KILLER
Change-Id: I69782fc86326bafdcf422b33730c24bb671cdd02
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Donghoon Yu [Wed, 4 Jul 2018 03:39:34 +0000 (12:39 +0900)]
Revert "staging, android: remove lowmemory killer from the tree"
This reverts commit
915e70f9263d56fbf103742265025f7a492aa625.
Change-Id: I358f22b6f059cbfbfca64726a0da6979202fb8fe
scsc_gerrit [Thu, 16 Aug 2018 12:29:02 +0000 (13:29 +0100)]
[9610] wlbt: increment scsc_release to 6.44.0
Import FW for iteration 6.44.0
Change-Id: I3e5d95c15835ad98af4c22225767776b1a110bc9
SCSC-Bug-Id: scsc_iteration_6.44.0_p_ww
Signed-off-by: scsc_gerrit <scsc_gerrit@samsung.com>
Pragya Gupta [Tue, 7 Aug 2018 09:55:22 +0000 (15:25 +0530)]
[9610] FAPI update for TEST SAP
FAPI update for TEST SAP
Change-Id: I17079aa3c473f2411f2031f21794f026c44281d6
SCSC-Bug-Id:SSB-42581
Signed-off-by: Pragya Gupta <pragya.gupta@samsung.com>
Jayaprakash Sangaru [Thu, 2 Aug 2018 12:20:04 +0000 (17:50 +0530)]
[9610][7885][7872] wlbt: P2P Scan cleanup on intf down
Send mlme-del-scan.req when interface goes down for p2p-group interface
SCSC-Bug-Id: SSB-42480
Change-Id: I496c00b5872aaebfe860a3fa432cb5cad78c304a
Signed-off-by: Jayaprakash Sangaru <j.sangaru@samsung.com>
Debabrata Purohit [Fri, 3 Aug 2018 15:04:54 +0000 (16:04 +0100)]
[9610] wlbt: SMAPPER: add defence to access SKB
hip4_smapper_get_skb_data() dereferences pointer
without checking it's valid or not.
Add defence for it.
Change-Id: I4933202ac72fd1ae0d5476b43cd183f5394488e3
SCSC-Bug-Id: SSB-42553
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
Purnendu Kapadia [Tue, 14 Aug 2018 14:48:27 +0000 (15:48 +0100)]
[9610] wlbt: fw panic copy files to /sdcard/log
on fw panic we want to generate tar file via wlbtd. We were calling
EVENT_SCSC to create moredump in /sdcard/log. Now wlbtd takes care of this
by copying moredump and other logs in /sdcard/log (temporarily) until
test systems can cope with new sable and tar file.
Removing call to EVENT_SCSC as it is redundant.
Change-Id: I9f12379a077a3e5d751200504c8eeb2b1984f4e9
SCSC-Bug-Id: SSB-42639
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
Purnendu Kapadia [Mon, 13 Aug 2018 17:10:01 +0000 (18:10 +0100)]
[9610] wlbt: default path where tar is generated
Android P expects things in /data/vendor so use /data/vendor/log/wifi as
default path where sable and tar containing sable will be generated
Change-Id: Iadcd02df5d5c71731a0bb92f04b254e9489b9dc1
SCSC-Bug-Id: SSB-42639
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
Albert Cano [Fri, 3 Aug 2018 10:46:56 +0000 (11:46 +0100)]
[9610] wlbt: Add support for DRAM sbl dump and mmap
Since Android P does not allow writting files from the Kernel, the patch
provides a mechanism to buffer the sbl file in DRAM (vmalloc) and allow mmap ops
so the wlbt could dump the file from Userland
Change-Id: I46348bf45b65a851e9878e8c65678ded0f420611
SCSC-Bug-Id: SSB-42521
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
(cherry picked from commit
e29a986dac1a22849026aeb0e88b89ba07f3270e)
Srishti Piplani [Fri, 27 Jul 2018 12:42:15 +0000 (18:12 +0530)]
[7570][7872][7885][9610]wlbt: SGI40 should not be enabled in 2.4G beacon
If the DUT is only 20MHz capable, SGI40 should not be enabled.
Changes done to remove the SGI40 check if the width is 20 MHz.
Change-Id: I38f1b2d5eb9ed850fb8ccec3c460633fbcbedccd
SCSC-Bug-Id: SSB-42343
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
Cristian Marussi [Wed, 25 Jul 2018 19:03:12 +0000 (20:03 +0100)]
[9610] wlbt: Added modparams to Sable and MXLOGGER
Sable could be now disabled as a whole using modparams:
file generation is inhibited and MXLOGGER underlying mechanism
is halted, refraining from sending the needed config to FW
MXLOGGER module. All FW logs will suddendly flow to the Host
and NO Sable file could be generated.
Change-Id: I76b15756ed9ec589bce3b7fc17434719fc9ded4c
SCSC-Bug-ID: SSB-42258
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Purnendu Kapadia [Wed, 18 Jul 2018 14:46:58 +0000 (15:46 +0100)]
[9610] wlbt: WLBTD collect log files and tar them
For SBL support, we need wlbtd to collect various logs into a single tarball.
This patch adds the driver side changes to support this. A new EVENT_SABLE
and supporting infrastructure is introduced to handle trigger from log collection
(with reason for generating .sbl file) and EVENT_SABLE sent to wlbtd to generate
other logs (logcat, dmesg, mx.dump etc) and create tar containing .sbl file alongwith other logs.
for generating a tar this change dependens on change to wlbtd with EVENT_SABLE support.
Change-Id: I7a356327ef8cb74d5ff5cb7ce3fd12b880127601
SCSC-Bug-Id: SSB-41551
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
Cristian Marussi [Mon, 23 Jul 2018 08:53:18 +0000 (09:53 +0100)]
[9610] wlbt: Fix MXLOGGER DRAM allocation
MXLOGGER must use new DRAM dedicated area and related API.
Change-Id: I9540667b9c854e2d51b61d778e8167b41b6367a9
SCSC-Bug-Id: SSB-42105
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Roman Geller [Tue, 17 Jul 2018 12:18:29 +0000 (13:18 +0100)]
[9610] wlbt: Shared DRAM memory partitioning
Added a second dram partition section for the new debug mechanism
which will store debug info in DRAM buffers
Change-Id: I6a3dad523bff21ec1c242bc8c66a3d775cd66c8f
SCSC-Bug-Id: SSB-41224
Signed-off-by: Roman Geller <r.geller@samsung.com>
Cristian Marussi [Fri, 20 Jul 2018 12:34:42 +0000 (13:34 +0100)]
[9610] wlbt: fix force_disable_mxlogger modparam
Disabling mxlogger using 'force_disable_mxlogger' modparam
is now effective also at system boot-time.
Change-Id: Iccef147570a05b2b92c70c15c7c4a92c067a3ba1
SCSC-Bug-Id: SSB-42080
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Albert Cano [Tue, 17 Jul 2018 12:40:36 +0000 (13:40 +0100)]
[9610] wlbt: Fixed deadlock in mxlogger
The following sequence leads to a deadlock when mxlogger is
deinitialzing and a log collection is triggered:
mxlogger_deinit
---> gets mutex_lock(&mxlogger->lock);
***** preemption *****
__scsc_log_collector_collect_to_file
---> gets mutex_lock(&log_status.log_mutex);
//calls
mxlogger_collect:
---> sitting in already claimed mutex_lock(&mxlogger->lock);
***** preemption *****
mxlogger_deinit
//calls
scsc_log_collector_unregister_client
---> sitting in alreaday claimed mutex_lock(&log_status.log_mutex)
DEADLOCK
To avoid the deadlock condition, the scsc_log_collector_unregister_client
calls are moved outside the mxlogger_deinit lock.
Hip4.c has also been addressed
Client registration / unregistration serialization has also been
addressed
Change-Id: I5a85de46bbd0564c4409ed6049cb9f3a8c987ae1
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Albert Cano [Mon, 16 Jul 2018 20:08:09 +0000 (21:08 +0100)]
[9610] wlbt: Enable log collection by default
Enable log collection by default
Change-Id: I6447d7b7cc562c577437ca986761c82937081cac
SCSC-Bug-Id: SSB-41954
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Cristian Marussi [Tue, 7 Aug 2018 17:47:04 +0000 (18:47 +0100)]
[9610] wlbt: Increase MMAP max area properly
Since we use DRAM partitioned allocation we should make
available for mmapp'ing a wider area.
Change-Id: Ic13d73195adadb9cbe1d193d870ba4b414cb9e01
SCSC-Bug-Id: SSB-42658
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Albert Cano [Thu, 12 Jul 2018 18:29:26 +0000 (19:29 +0100)]
[9610] wlbt: Create and register Wlan sable file clients
Create and register wlan sable file client to collect hip4 samples and
hcf a sbl file.
Add UDI as a mxlogger observer
Change-Id: I69d14126920ffc01d07b976847318ebeed2789fb
SCSC-Bug-Id: SSB-41876
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Albert Cano [Thu, 12 Jul 2018 18:22:08 +0000 (19:22 +0100)]
[9610] wlbt: Create and register logring sable file client
Create and register logring sable file client to collect logring in the
sbl file.
Change-Id: I98cc68afb49d26644879193b45a2735fce681fca
SCSC-Bug-Id: SSB-41875
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Albert Cano [Wed, 8 Aug 2018 08:36:25 +0000 (09:36 +0100)]
[9610] wlbt: Enable SMAPPER by default
Enable SMAPPER by default.
Fixed dependency by addding dma-mapping header.
Change-Id: I67a3e8304c79243252c77b5953c1cfff23c0774e
SCSC-Bug-Id: SSB-42637
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Albert Cano [Thu, 12 Jul 2018 17:20:05 +0000 (18:20 +0100)]
wlbt: Implement mxlogger module
Implement mxlogger module, responsible of:
- Defining and providing logging buffers in Shared
DRAM
- Providing a communication channel from/to FW to
send receive low level logging commands (START,
STOP, SWITCH, FW_TRIGGER...)
- Creating an interface to register/unregister
local or global observers
- Implementing the control mechanism to instruct the
FW to store logs in Shared DRAM or stream logs to
Host
Keep logs streamed to host by default
Change-Id: Ia831573630a07c63fb3420aa28bcddd932296548
SCSC-Bug-Id: SSB-41855
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Albert Cano [Thu, 12 Jul 2018 12:26:32 +0000 (13:26 +0100)]
wlbt: Implement log collection Framework
Implemented log collection Framework.
- Interested clients/writers register with the framework
- On event trigger, framework will execute clients callback
- Framework will generate sbl file as described in
http://confluence/display/PLAT/Sable+-+File+Format
- Add entry in proc interface to trigger log collection from
Userland (User manual trigger and dumpsys)
Change-Id: I8a37af7c8aac983df2bb9963e1832d769893d530
SCSC-Bug-Id: SSB-41841
Signed-off-by: Cristian Marussi <c.marussi@samsung.com>
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Debabrata Purohit [Fri, 3 Aug 2018 09:59:24 +0000 (10:59 +0100)]
[9610] wlbt: SMAPPER: fix access to SKB data
Fix incorrect access to Ethernet header in S-mapper
mode.
Change-Id: I5893340536a1836fa7cbb04ec1e0b284ff8ff210
SCSC-Bug-Id: SSB-42532
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
Srishti Piplani [Fri, 6 Jul 2018 12:22:52 +0000 (17:52 +0530)]
[7570][7872][7885][9610] wlbt: Dwell time in mlme-send-frame.req
For all frames sent via mlme-send-frame_req and that expect an
answer, such as EAPOL (except M4), ARP, DHCP..etc. the host shall
set a dwell-time.The default dwelltime may be equal to
unifiForcedScheduleDuration.
Change-Id: I9601bc780b3d84d14d72bf3f5eba24315c83be0c
SCSC-Bug-Id: SSB-41631
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
JayaPrakash Sangaru [Tue, 31 Jul 2018 10:12:30 +0000 (15:42 +0530)]
[9610][7885][7872] wlbt: Passive scan support
In some cases supplicant requests passive scan. in these case
scan_request has zero ssids. Support passive scan when ssids
in scan request is zero.
SCSC-Bug-Id: SSB-42405
Change-Id: I18aa04abe56192d5501247032690aaba6c1d20e5
Signed-off-by: JayaPrakash Sangaru <j.sangaru@samsung.com>
Pragya Gupta [Fri, 27 Jul 2018 11:26:27 +0000 (16:56 +0530)]
[9610] [7885] wlbt : Don't set the host_state in wlanlite mode
Don't set the host_state for wlanlite mode
SCSC-Bug-Id:SSB-42261
Change-Id: I080dc5ca5bac3266a0760c380216a29ad193824e
Signed-off-by: Pragya Gupta <pragya.gupta@samsung.com>
Debabrata Purohit [Wed, 27 Jun 2018 13:35:21 +0000 (14:35 +0100)]
[9610] wlbt: monitor mode - type: Radio tap
Change the interface encapsulation type to
Radio tap for monitor interface.
SCSC-Bug-Id: SSB-41477
Change-Id: Iffbb0a404cc99a77c3b116705db29687141008b8
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
Debabrata Purohit [Tue, 19 Jun 2018 15:31:30 +0000 (16:31 +0100)]
[9610] wlbt: remove tcp_get_info call
Remove call to tcp_get_info(). It is called in
software IRQ context and as it may sleep
in kernels later than 4.9 it can cause deadlock.
Change-Id: I7ab1bcae50e98a374caae743bc90a5993028ae25
SCSC-Bug-Id: SSB-41049
Signed-off-by: Debabrata Purohit <d.purohit@samsung.com>
Albert Cano [Mon, 30 Jul 2018 16:26:13 +0000 (17:26 +0100)]
[9610] wlbt: Fixed WLAN banks to PHYs banks mapping
Incorrect mapping occurs when WLAN is allocating banks in the WLAN array.
WLAN will use the phy/logical map to configure the SMAPPER FW however
when FW returns entries mapped to phy banks, WLAN is not able to map to
their own logical WLAN banks.
This patch adds a lookup table to map PHY->WLAN banks
Change-Id: Iffaa3484cfe5298dfd0f1a5e0619364e8f27cca6
SCSC-Bug-Id: SSB-42392
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Albert Cano [Mon, 30 Jul 2018 14:34:40 +0000 (15:34 +0100)]
[9610] wlbt: Fixed number of entries computed in small banks
Incorrect indexing when computing the number of
entries in small banks.
Also fixed misleading logging message
Change-Id: I9ebd7e63cc184a361e7fb74f1693173a0471f342
SCSC-Bug-Id: SSB-42388
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Jayaprakash Sangaru [Wed, 25 Jul 2018 09:33:19 +0000 (15:03 +0530)]
[9610][7885][7872] wlbt: Rename wifi-hal return values enum
wifi-hal return vaalues enum is defined in enchanced logging and
in NAN which is creating some issues. Rename these enum params in
NAN.
SCSC-Bug-Id: SSB-42223
Change-Id: I1afe03e412a03d1e39db8df96a94f510f8ac9e2c
Signed-off-by: Jayaprakash Sangaru <j.sangaru@samsung.com>
Hyeyeon Chung [Thu, 16 Aug 2018 10:16:26 +0000 (19:16 +0900)]
[HACK] Make kernel panic when verity error is detected for debugging
Change-Id: If35e3c21cdbe8fe314dc4f1df878f31a3e0e3924
Signed-off-by: Hyeyeon Chung <hyeon.chung@samsung.com>
jihun.no [Wed, 1 Aug 2018 03:39:09 +0000 (12:39 +0900)]
[IMS-WFC] Enable Kernel Config for ePDG Client(Charon)
Change-Id: I9a95183035dd450f7bc63f585f6de28a9de9c9fe
Signed-off-by: jihun.no <jihun.no@samsung.com>
Wooyeon Kim [Tue, 7 Aug 2018 08:58:25 +0000 (17:58 +0900)]
[COMMON] fimc-is2: add code related to initial AE for 6B2
PR JIRA ID: CPR-134
Change-Id: I425d87e072fc3488d8ff123d63dd568c6febe6f9
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooyeon Kim [Tue, 7 Aug 2018 08:54:31 +0000 (17:54 +0900)]
[COMMON] fimc-is2: add code related to initial AE for 2T7SX
PR JIRA ID: CPR-134
Change-Id: Id77783ad9d32d165f3b613bfa07fc8e6aab34d30
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooyeon Kim [Tue, 7 Aug 2018 08:59:20 +0000 (17:59 +0900)]
[COMMON] fimc-is2: add code related to initial AE for 2P7SQ
PR JIRA ID: CPR-134
Change-Id: Ib4c2a616f31a547ba1ade96e95c0041e32fcb6ac
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooyeon Kim [Tue, 7 Aug 2018 11:37:34 +0000 (20:37 +0900)]
[9610][ERD] dts: camera: enable initial AE feature
PR JIRA ID: CPR-134
Change-Id: Iaae228abc2ddca6365a8fa5b7f5dc12ef97dc409
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
mourui [Wed, 7 Mar 2018 09:26:04 +0000 (17:26 +0800)]
[COMMON] fimc-is2: modify initial AE code for commonize
- apply last AE value to next initial value
PR JIRA ID: CPR-134
Change-Id: I86edcd79044df658e7b1c28b036224628919fb65
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooyeon Kim [Mon, 13 Aug 2018 00:46:07 +0000 (09:46 +0900)]
[COMMON] fimc-is2: fix a build error
PR JIRA ID: CPR-153
Change-Id: I131e32750c14f1d5f9dad8708ca7743d9a9d8261
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooki Min [Tue, 24 Jul 2018 10:56:42 +0000 (19:56 +0900)]
[9610] fimc-is2: move structure for capture node address info
The structure for capture node address info
is moved from meta data to framemgr.
PR JIRA ID: CPR-153
Change-Id: I293a1a258224388f33e192b52025352f5458be6d
Signed-off-by: Wooki Min <wooki.min@samsung.com>
Wooki Min [Tue, 24 Jul 2018 08:33:04 +0000 (17:33 +0900)]
[COMMON] fimc-is2: move structure for capture node address info
The structure for capture node address info
is moved from meta data to framemgr.
PR JIRA ID: CPR-153
Change-Id: I15353f17ff267263792db36e737226533838d761
Signed-off-by: Wooki Min <wooki.min@samsung.com>
Jeongtae Park [Fri, 27 Jul 2018 02:15:02 +0000 (11:15 +0900)]
[COMMON] fimc-is2: update meta data to sync with Rev.614
PR JIRA ID: CPR-153
Change-Id: Id13e2de94956381cb03523a6e68b10df9d792ceb
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Jul 2018 02:13:21 +0000 (11:13 +0900)]
[COMMON] fimc-is2: add more AA sensor places(code sync)
to support multiple camera
PR JIRA ID: CPR-153
Change-Id: I3e093720da9b6105728010afb26d2cf0dd360009
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Jul 2018 05:44:02 +0000 (14:44 +0900)]
[COMMON] fimc-is2: support Front2 sensor position(code sync)
PR JIRA ID: CPR-153
Change-Id: I885b4d5b75f2f4de3ae1561a83e2085bfe7da1d2
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Jul 2018 03:03:43 +0000 (12:03 +0900)]
[COMMON] fimc-si2:[VENDOR][DEF] add rear3 sensor(code sync)
PR JIRA ID: CPR-153
Change-Id: Ib5f94ce948dd8028820a38dd5aefe8890cf4e86a
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Jul 2018 03:02:52 +0000 (12:02 +0900)]
[COMMON] fimc-is2: add rear3 sensor(code sync)
PR JIRA ID: CPR-153
Change-Id: Ic8ff33d8d3538e871678e2986c4734746010a591
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Jul 2018 02:35:00 +0000 (11:35 +0900)]
[COMMON] dt-bindings: add sensor position definitions(code sync)
PR JIRA ID: CPR-153
Change-Id: Iace53b41bd889e7128fc58c2339be020eda5256e
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 6 Jul 2018 05:30:48 +0000 (14:30 +0900)]
[COMMON] fimc-is2: increase the maximum number of sensor devices(code sync)
to support up to 6 physical sensor modules in a device
even though current SoC couldn't supports more than 5 sensors.
If we need to support more than 6 sensor devices
we have to change more driver codes be related to.
PR JIRA ID: CPR-153
Change-Id: I96ea33abb5ea8c88f01825fc12e26990bd3c33c5
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Wooyeon Kim [Wed, 8 Aug 2018 04:19:53 +0000 (13:19 +0900)]
[COMMON] fimc-is2: fix prevent defects (CID 237152, 237199)
PR JIRA ID: CPR-139
Change-Id: I5fb7a834b8e414829230a45de26455d7715b25e5
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Sunmi Lee [Mon, 6 Aug 2018 01:46:14 +0000 (10:46 +0900)]
[COMMON] fimc-is2: Fix a bug to get uvsp_ctrl from hw_mcsc
PR JIRA ID: CPR-123
Change-Id: Ia244fc26688116ee385824bc121724238c65580d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 6 Aug 2018 01:35:59 +0000 (10:35 +0900)]
[COMMON] fimc-is2: Fix a bug of log message in get_cal_data
PR JIRA ID: CPR-123
Change-Id: I25ecda1a89e5224da527d1d10e8aeff3e229b9ac
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Eunyoung Lee [Wed, 8 Aug 2018 00:33:33 +0000 (09:33 +0900)]
[COMMON] fimc-is2: fixed prevent defect
- CID:237150 (Resource leak)
PR JIRA ID : CPR-135
Change-Id: I3d89e3f48efa9436f35c09bb8525ca40fc44fea9
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
Hyunwoong Kim [Fri, 3 Aug 2018 02:42:59 +0000 (11:42 +0900)]
[9610] arm64: dts: change wdma3 type to realtime capture
WDMA3 type was set to normal capture type.
But it works as SPK amp reference data.
So, it should be set to realtime capture type.
Change-Id: I9677eba7f73ebd20751816be2b1cb0c9ce0863a0
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
ChiHun Won [Mon, 13 Aug 2018 11:48:25 +0000 (20:48 +0900)]
fbdev: dpu20: fixed prevent defects
Change-Id: Id77ceef39b88d4357c25cb0197268a5be3e77ab8
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
Jaejoon Yoo [Wed, 8 Aug 2018 04:05:24 +0000 (13:05 +0900)]
[9610] bcm: fix static analysis defect in bcm driver.
CID: 237195, 237196, 237197, 237198, 237200, 237201, 237202,
237203, 237204, 237205, 237206, 237208
Change-Id: I372295f13cd8b20750169370220ee72dad812bb3
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Kisang Lee [Mon, 13 Aug 2018 06:07:56 +0000 (15:07 +0900)]
[COMMON] usb: xhci: stop xhci initialization after RPM error
Change-Id: Ic34eca34dcf7e542e17a0fad9e7f22264478169f
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
Cosmin Tanislav [Tue, 16 Apr 2024 14:56:57 +0000 (17:56 +0300)]
fixup! [COMMON] usb: add USB driver for Exynos
Sangkyu Kim [Tue, 31 Jul 2018 12:09:45 +0000 (21:09 +0900)]
[9610] arm64: configs: exynos9610_user.cfg and exynos9610_userdebug.cfg
Change-Id: I30e497bc3480e478ab4e5f5bdb84bdae386acec6
Signed-off-by: Sangkyu Kim <skwith.kim@samsung.com>
Sangkyu Kim [Tue, 31 Jul 2018 12:07:50 +0000 (21:07 +0900)]
Android-P: support userdebug and user cfg
Change-Id: I06fd313806f1c30b253b9b721d0c53f863608856
Signed-off-by: Sangkyu Kim <skwith.kim@samsung.com>
Taekki Kim [Wed, 8 Aug 2018 01:49:39 +0000 (10:49 +0900)]
[9610] bts: fix prevent issues
This patch fixes prevent issues.
CID: 237129,237130,237131,237132,237133,237134,237135,
237137,237138,237139,237140,237141,237142,237143,
237144,237145,237146,237147
Change-Id: I9c45ce6612401418e0fc2a749de9b1b11cdd3615
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Jaehyoung Choi [Thu, 9 Aug 2018 05:32:05 +0000 (14:32 +0900)]
[COMMON] watchdog: s3c2410_wdt: Fix Prevent warning
Change-Id: Iae82857f03ea0a0a57622ee9a5b218a8835f3f14
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Junho Choi [Tue, 24 Jul 2018 01:55:28 +0000 (10:55 +0900)]
Revert "[COMMON] soc: samsung: seclog: Change for loop with NR_CPUS to for_each_possible_cpu()"
This reverts commit
9f760bf796e76f0f5fcae42cca97be3fa5656c23.
Change-Id: I27ddecf4f5f8482e627a545ed28abfe17df5dd37
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
Donghyeok Choe [Wed, 8 Aug 2018 04:51:15 +0000 (13:51 +0900)]
[9610] lib: dss: fix prevent code
fixed prevent CID list
237193 233298
Change-Id: I601c9d2b41e00e6c9e767310db69ed99f2495128
Signed-off-by: Donghyeok Choe <d7271.choe@samsung.com>
Jinku Kang [Thu, 26 Jul 2018 07:23:02 +0000 (16:23 +0900)]
[9610] gpu: tHEx: r10p0: add 1053MHz as maximum frequency
Change-Id: Id0c6c8cb4730b0f68b99a2f6be7f63c0dcddddb3
Signed-off-by: Jinku Kang <jinku79.kang@samsung.com>
Chungwoo Park [Tue, 17 Jul 2018 06:25:31 +0000 (15:25 +0900)]
[9610] arm64: dts: Modify cam max frequency
This patch modified cam max frequency.
Update ECT 0.2.A version.
Change-Id: I6769b6e7cfc326c3259409c9743086b6c9ed6187
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
ChiHun Won [Mon, 6 Aug 2018 08:55:14 +0000 (17:55 +0900)]
[9610] arm64: config: enabled ESD solution
Change-Id: Idf7b1a1a1e9c75998c52ebee65fefca1c17c0705
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
Kim Manseok [Tue, 3 Jul 2018 08:02:51 +0000 (17:02 +0900)]
fbdev: dpu20: ESD solution
Change-Id: Ic1aaf989b039a17f21098784bc2d5d9f34c580cb
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
ChiHun Won [Fri, 27 Jul 2018 06:27:13 +0000 (15:27 +0900)]
[9610] fbdev: dpu20: change window update h/w setting code
Change-Id: I6d3fefd70adad87c308623f292bbd2582bee5c2a
Signed-off-by: ChiHun Won <chihun.won@samsung.com>