GitHub/MotorolaMobilityLLC/kernel-slsi.git
5 years ago[RAMEN9610-14956] [COMMON] usb: check android device and UDC name
Kisang Lee [Tue, 7 May 2019 12:15:55 +0000 (21:15 +0900)]
[RAMEN9610-14956] [COMMON] usb: check android device and UDC name

Change-Id: I5750a0da33aec22fde3050a9f3db4161196f8394
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 years ago[RAMEN9610-14955] [COMMON] ASoC: abox: Clear UAIF path
ShinHyung [Tue, 7 May 2019 11:56:09 +0000 (20:56 +0900)]
[RAMEN9610-14955] [COMMON] ASoC: abox: Clear UAIF path

If the UAIF is still running when entering into the sleep mode,
It occurs the pmucal timeout error.

Change-Id: I132dfb5814a590486703ce6872809cbe71aa952e
Signed-off-by: ShinHyung <s47.kang@samsung.com>
5 years ago[RAMEN9610-14929][COMMON] drivers: led: change operating mode of s2mu106 fled
Keunho Hwang [Tue, 7 May 2019 03:41:07 +0000 (03:41 +0000)]
[RAMEN9610-14929][COMMON] drivers: led: change operating mode of s2mu106 fled

Change-Id: Ie217e327f908c0a1419a00475ab0647ca7c9815b
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
5 years ago[RAMEN9610-14770] wlbt: .gitignore: ignore files generated during Q build
Ivan Priest [Wed, 10 Apr 2019 17:29:19 +0000 (18:29 +0100)]
[RAMEN9610-14770] wlbt: .gitignore: ignore files generated during Q build

arch/arm64/lib/lib.a.symversions
dtbo.img
lib/lib.a.symversions

Change-Id: I7e6a5b8d75cb27af6e022e884232dab52fc76417
SCSC-Bug-Id: SSB-51519
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[RAMEN9610-14519] Add config for support erd9610_Q_defconfig
Youngwan Kim [Fri, 19 Apr 2019 01:06:20 +0000 (10:06 +0900)]
[RAMEN9610-14519] Add config for support erd9610_Q_defconfig

Change-Id: Ibf98c2cfd1c3a8b9323f187383145ad340204b4c
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
5 years ago[RAMEN9610-13993] arm64: config: set selinux enforce mode (android Q)
Munjoo Kim [Fri, 29 Mar 2019 00:53:54 +0000 (09:53 +0900)]
[RAMEN9610-13993] arm64: config: set selinux enforce mode (android Q)

Change-Id: I6df4ca6fb401e4b5fde764f33e19fdfc9a1de9c8
Signed-off-by: Munjoo Kim <munjoo.kim@samsung.com>
5 years ago[RAMEN9610-13993] arm64: dts: change selinux mode param location
Munjoo Kim [Fri, 29 Mar 2019 01:00:46 +0000 (10:00 +0900)]
[RAMEN9610-13993] arm64: dts: change selinux mode param location

Change-Id: I5e1239079afd6bb8914928dcb178cb6a3b21e7c2
Signed-off-by: Munjoo Kim <munjoo.kim@samsung.com>
5 years ago[RAMEN9610-13801] defconfig: Disable nanohub for Android Q defconfig
SeYeong Byeon [Fri, 22 Mar 2019 08:12:59 +0000 (17:12 +0900)]
[RAMEN9610-13801] defconfig: Disable nanohub for Android Q defconfig

Nanohub causing kernel panic without USB connection.
Reenable once fixed.

Change-Id: Ifd74815ca48df2b6ad418ed8ed0c271be44ef753
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
5 years ago[RAMEN9610-13801] new defconfig for Android Q
SeYeong Byeon [Fri, 22 Mar 2019 01:52:18 +0000 (10:52 +0900)]
[RAMEN9610-13801] new defconfig for Android Q

New defconfig is needed for Android Q because of eventual
upgrade to R17P0 DDK for Android Q.

Adds and enables the following kernel option:
SOC_EXYNOS9610_ANDROID_VERSION_Q

The above option allows Android Q version of DDK to be compiled.

Change-Id: I96148721120affd4e5c2f1ce1ca8da41af36c680
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
5 years ago[RAMEN9610-13801] gpu: r16p0: allow choosing r16p0 for Android Q
SeYeong Byeon [Fri, 22 Mar 2019 01:58:59 +0000 (10:58 +0900)]
[RAMEN9610-13801] gpu: r16p0: allow choosing r16p0 for Android Q

Adds MALI_BIFROST_R16P0_Q to menuconfig

Change-Id: I25047939f572bd0ab898e42bec88b32ce5707976
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
5 years ago[RAMEN9610-13801] gpu: b_r16p0: Android Q support
SeYeong Byeon [Thu, 21 Mar 2019 23:54:41 +0000 (08:54 +0900)]
[RAMEN9610-13801] gpu: b_r16p0: Android Q support

Separate src code directory made for Anroid Q DDK.
This was done so the DDK for Android P is not touched.

Updated on: 19.03.22
DDK branch: b_r16p0

commits:
35e07f04c GLESSW-4468: Return nanoseconds for EXT_disjoint_timer_query
f5919cc40 product: vulkan: code refactoring for supporting Secure Rendering on Vulkan
927317128 [KERNEL] dts: increase 7884B gpu max clock to 676 Mhz
142813cdf product: Multiple OpenCL optimizations
72cdd1508 [KERNEL] b_r16p0: Disable sustainable opt feature
d22edeb5f [KERNEL] b_r16p0: Trace add @ GPU L2 POWER
d1ec88bcc [KERNEL] b_r16p0: change STR function from notifier to platform driver
9309b9894 [KERNEL] b_r16p0: fixed directly dereferencing pointer issue
7ba92d35a [KERNEL] b_r16p0: Modified critical prevent
10aae3941 [KERNEL] b_r16p0: Modified critical prevent issue about power sequence patch
0740ca810 [KERNEL] b_r16p0: trace add and change power sequence for STR with RuntimePM

Change-Id: I7a042bdc87cf51f7570334d8527b2d2756682547
Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com>
5 years ago[RAMEN9610-14887][common][9610] wlbt: complete fw_panic_done only on fw_panic
Purnendu Kapadia [Tue, 23 Apr 2019 09:53:18 +0000 (10:53 +0100)]
[RAMEN9610-14887][common][9610] wlbt: complete fw_panic_done only on fw_panic

We want to prevent fw_panic_done completion happening in case of non
fw_panic SABLE trigger. Introduce response codes corresponding to each
situation based on if it is fw_panic or other trigger from wlbtd and
check for specific condition before completing individual completion.

This change is dependent upon corresponding wlbtd v3.1 which is providing
appropriate response_codes.

SCSC-Bug-Id: SSB-51921
Change-Id: Ia11bd8d8abc370f615222a3ce768b749ac876008
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
5 years ago[RAMEN9610-14887][common]wlbt: log moredump open/close
Ivan Priest [Wed, 1 May 2019 17:31:03 +0000 (18:31 +0100)]
[RAMEN9610-14887][common]wlbt: log moredump open/close

Log access to the moredump device node in kernel

Change-Id: If6ec2e41165063b978d7b3c18bfbced4c9277c69
SCSC-Bug-Id: SSB-52247
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[RAMEN9610-14864] [COMMON] wlbt: Release bt_write_wake_lock during BT shutdown
Mathias Sass Michno [Wed, 1 May 2019 08:54:59 +0000 (10:54 +0200)]
[RAMEN9610-14864] [COMMON] wlbt: Release bt_write_wake_lock during BT shutdown

Ensure that the bt_write_wake_lock is released during shutdown
in case the controller doesn't ack the last sent command.
(cherry-picked from http://12.36.155.91:81/#/c/423622/)

SCSC-Bug-Id: SSB-52228
Change-Id: Id44627f30fd8efc3392068922a21dbf281926649
Signed-off-by: Mathias Sass Michno <m.michno@samsung.com>
5 years ago[RAMEN9610-14809] [COMMON] soc: samsung: cal-if: Change GNSS reset/release sequence
Hyunsoon Kim [Thu, 7 Feb 2019 04:55:31 +0000 (13:55 +0900)]
[RAMEN9610-14809] [COMMON] soc: samsung: cal-if: Change GNSS reset/release sequence

Change-Id: I043e50cb779b9a6b27e7b4aa11627b60bde42287

5 years ago[COMMON] fimc-is2: modified LIB_OFFSET for KASAN configs
Wooyeon Kim [Sun, 28 Apr 2019 04:39:36 +0000 (13:39 +0900)]
[COMMON] fimc-is2: modified LIB_OFFSET for KASAN configs

 - If CONFIG_KASAN enabled, VMALLOC_START will be changed to
   "0xffffff9008000000"
 - for use DDK binary baseaddress always "0xffffff90~~"

 PR JIRA ID: CPR-983

Change-Id: Icd111141cfb5d5ff08c7a5d1446c0f5f30d55617
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
5 years ago[9610][COMMON] arm64: dtsi: modify bcm/reserve-fimc addr at bootarg
Wooyeon Kim [Fri, 19 Apr 2019 08:26:37 +0000 (17:26 +0900)]
[9610][COMMON] arm64: dtsi: modify bcm/reserve-fimc addr at bootarg

 - 0x80fXXX.. ---> 0x90f... as applied KASAN

 PR JIRA ID: CPR-983

Change-Id: I91bd830680c89c91f461e282e390c48779c461df
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
5 years ago[NEUS7920-164] fbdev: dpu20: udpated dqe for supporting hibernation
ChiHun Won [Mon, 29 Apr 2019 06:53:14 +0000 (15:53 +0900)]
[NEUS7920-164] fbdev: dpu20: udpated dqe for supporting hibernation

rebased

Change-Id: Ied0a57d1fcfbe8508c0f1565dc13bdf421caf8ff
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 years ago[NEUS7920-164] fbdev: dpu20: udpated dqe for supporting aps
ChiHun Won [Mon, 29 Apr 2019 06:07:17 +0000 (15:07 +0900)]
[NEUS7920-164] fbdev: dpu20: udpated dqe for supporting aps

Change-Id: Id8c91fc1fe51337aa96fe507751050756de77b40
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
5 years ago[RAMEN9610-14719] [Common] media: radio: Optimize TRF for mis-scan
Yunsu Kim [Fri, 26 Apr 2019 10:20:38 +0000 (19:20 +0900)]
[RAMEN9610-14719] [Common] media: radio: Optimize TRF for mis-scan

Change-Id: I78643317cb53ca400f641c72e233c0b94714a62e
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: Enhanced packet filter
dujeonglee [Thu, 28 Mar 2019 04:36:31 +0000 (13:36 +0900)]
[NEUS7920-133][9610] wlbt: Enhanced packet filter

This change filters all unicast except TCP packets in suspended mode

SCSC-Bug-Id: SSB-51257

Change-Id: I3d8e651d8a4afc81c3f5b190a984a9bba9129d37
Signed-off-by: dujeonglee <dujeong.lee@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: increment scsc_release to 6.64.2.1
Youngsoo [Wed, 24 Apr 2019 00:53:43 +0000 (09:53 +0900)]
[NEUS7920-133][9610] wlbt: increment scsc_release to 6.64.2.1

Change-Id: Ibf3f21c4fa7879563f38113ba18eb36b6c80af3b
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
5 years ago[NEUS7920-133]wlbt: WLAN mac_addr_override use module_param_string
Ivan Priest [Wed, 13 Feb 2019 22:36:38 +0000 (22:36 +0000)]
[NEUS7920-133]wlbt: WLAN mac_addr_override use module_param_string

Use the module_param_string() API for the mac address
override.

Change-Id: I2ad111518c1d1e5efe131a084f0313aacffe0d8e
SCSC-Bug-Id: SSB-48059
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133]wlbt: allow BT address to be read from file
Ivan Priest [Tue, 12 Feb 2019 16:03:18 +0000 (16:03 +0000)]
[NEUS7920-133]wlbt: allow BT address to be read from file

Some customer platforms provide the BT address in a file,
which may in in procfs, (e.g. to support factory test binary)
Provide a kernel config to allow this to be used.

Change-Id: Icb309a8b2e54b3404eaaa0fc6fa0666bb512f5d6
SCSC-Bug-Id: SSB-49343
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133]wlbt: allow MAC address file to be in /proc
Ivan Priest [Wed, 13 Feb 2019 11:51:17 +0000 (11:51 +0000)]
[NEUS7920-133]wlbt: allow MAC address file to be in /proc

One customer is placing the MAC address in procfs, and
the current mx140_file reader cannot handle the
zero length virtual files. Fix this and check that
a loaded file contains a valid MAC address.

This is the replacement for conflicting customer code
that appeared upstream.

Change-Id: Ib606b16c6f07ddd86810772d54445780f000f96c
SCSC-Bug-Id: SSB-49343
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133]Revert "[RAMEN9610-11445][9610] wlbt : update MAC addr scheme to avoid...
Ivan Priest [Wed, 13 Feb 2019 18:48:29 +0000 (18:48 +0000)]
[NEUS7920-133]Revert "[RAMEN9610-11445][9610] wlbt : update MAC addr scheme to avoid merge conflict"

This reverts commit b697b8ad545faae6442a3cf9d633bdac1cf963bb.

Note MAC address can now be read from /proc in generic driver code

Change-Id: I2f60e624085ccd8a2af8c28a284b1583d5e727e8
SCSC-Bug-Id: SSB-49343
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133]Revert "[RAMEN9610-6379][9610]wlbt: change the path of wlan mac address"
Youngsoo [Tue, 23 Apr 2019 04:49:23 +0000 (13:49 +0900)]
[NEUS7920-133]Revert "[RAMEN9610-6379][9610]wlbt: change the path of wlan mac address"

This reverts commit 7a620346c4b0232fef9f131c8d971a8a28b70341.
But remains default mac address filename as /sys/module/scsc_wlan/parameters/mac_addr

Change-Id: Idf2817870b0620db7acfd85abfaf8b318c536df7

5 years ago[NEUS7920-133][9610][7885][7872][7570] wlbt: Addition of blocking scan condition...
Mohit Ghuley [Thu, 11 Apr 2019 12:02:21 +0000 (17:32 +0530)]
[NEUS7920-133][9610][7885][7872][7570] wlbt: Addition of blocking scan condition, during Scan List Updation in Driver.

During Driver Connect Scan, cfg80211_scan_req is
not available. Hence add a blocking scan
condition as well, during the Scan List Updation
in Driver.

Change-Id: I35e002e72857cf5a393bb855266c2bc350418a1f
SCSC-Bug-Id: SSB-51608
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
5 years ago[NEUS7920-133][9610][7885][7872][7570] wlbt: Kernel logging improvement.
Himani Gupta [Thu, 4 Apr 2019 09:33:51 +0000 (15:03 +0530)]
[NEUS7920-133][9610][7885][7872][7570] wlbt: Kernel logging improvement.

Host changes for kernel logging improvement.Generate appropriate
logs for initial connection.

Change-Id: Ic4a62660958534aa37a5901a58b5cd19c78af7a7
SCSC-Bug-Id: SSB-51392
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 years ago[NEUS7920-133]wlbt: Lerna character device
Garry Rank [Wed, 20 Mar 2019 13:51:41 +0000 (13:51 +0000)]
[NEUS7920-133]wlbt: Lerna character device

Create character device for userspace <-> firmware configuration
communications.

Change-Id: I45662d621280b0cec3a973f5489333c6c6103b57
SCSC-Bug-Id: SSB-50557

5 years ago[NEUS7920-133]wlbt: track shared DRAM allocations
Ivan Priest [Fri, 22 Mar 2019 15:48:29 +0000 (15:48 +0000)]
[NEUS7920-133]wlbt: track shared DRAM allocations

Add instrumentation to track shared DRAM allocators
in procfs

Change-Id: I90c9da7c10f54dadf9c6968bcf047e16de5c83fc
SCSC-Bug-Id: SSB-50917
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133]wlbt: Return -EACCES from scsc_bt_shm_h4_read when copy_from_user fails
Jes Andersen [Thu, 21 Mar 2019 11:22:37 +0000 (12:22 +0100)]
[NEUS7920-133]wlbt: Return -EACCES from scsc_bt_shm_h4_read when copy_from_user fails

Otherwise it could end up in an infinite loop.

Change-Id: I98d2729e669c8846e3c1e939fc3453f957ae2a3e
SCSC-Bug-Id: SSB-45750
Signed-off-by: Jes Andersen <jes.andersen@samsung.com>
5 years ago[NEUS7920-133][9610][7885][7872][7570] wlbt: p2p state to be set to scanning in slsi_scan
Kavitha Velayutham [Fri, 15 Mar 2019 14:26:14 +0000 (19:56 +0530)]
[NEUS7920-133][9610][7885][7872][7570] wlbt: p2p state to be set to scanning in slsi_scan

p2p state is not set to proper state when there is a race condition between disconnect handle and full scan.

SCSC-Bug-Id: SSB-50669

Change-Id: Iee95bd09d30b6f2de058abda022f74c78887bb1c
Signed-off-by: Kavitha Velayutham <k.velayutham@samsung.com>
5 years ago[NEUS7920-133][9610][7885][7872][7570] wlbt: Disable ch12/13,when cellular is off.
Himani Gupta [Tue, 12 Mar 2019 11:07:33 +0000 (16:37 +0530)]
[NEUS7920-133][9610][7885][7872][7570] wlbt: Disable ch12/13,when cellular is off.

Driver shall disable ch 12/13 when cellular is off on receiving
GETREGULATORY 0.

Change-Id: Iee0e32e2d9b629344e6ac24e89da78c2efc5c9d2
SCSC-Bug-Id: SSB-50468
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: NAN fixes & code cleanup
Jaya Prakash Sangaru [Tue, 26 Mar 2019 07:30:52 +0000 (13:00 +0530)]
[NEUS7920-133][9610] wlbt: NAN fixes & code cleanup

Fix back to back NAN start causing FW panic.
Fix response type values not matching HAL.
Remove hardcoded MIB PSIDs, use PSIDs from mib.h

Change-Id: Iad3cc72ceb20dbfd8183d4697af409d6c51ff742
SCSC-Bug-Id: SSB-51027
Signed-off-by: Jaya Prakash Sangaru <j.sangaru@samsung.com>
5 years ago[NEUS7920-133]wlbt: report miframman usage in /proc
Ivan Priest [Thu, 21 Feb 2019 19:07:50 +0000 (19:07 +0000)]
[NEUS7920-133]wlbt: report miframman usage in /proc

Add /proc/driver/mifctrl/rammanX/used,free

This is to track shared DRAM usage.

Change-Id: Icafc2ae0a08701428f3d9e92a5993c1145f043c6
SCSC-Bug-Id: SSB-49317
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133][7885][9610] wlbt: ACS scan cleanup
Srishti Piplani [Mon, 25 Mar 2019 12:57:33 +0000 (18:27 +0530)]
[NEUS7920-133][7885][9610] wlbt: ACS scan cleanup

Changes done to stop scan and free related driver
data ,when AP is stopped during ongoing ACS scan.

Change-Id: Ifce7072a54f58844a335f4ed3c4a16532278e5cb
SCSC-Bug-Id: SSB-50724
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
5 years ago[NEUS7920-133][7570][7872][7885][9610] wlbt: Prevent issue in mgt.c
Srishti Piplani [Wed, 27 Mar 2019 05:58:51 +0000 (11:28 +0530)]
[NEUS7920-133][7570][7872][7885][9610] wlbt: Prevent issue in mgt.c

Change done to fix prevent issue in mgt.c file.
Dereferencing mib_entry.value.u.octetValue.data,
which is known to be NULL.

Change-Id: Ife4eb902e260070ad2ab6042610cc20c99610115
SCSC-Bug-Id: SSB-51047
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: Fix compilation error
Albert Cano [Mon, 25 Mar 2019 14:11:26 +0000 (14:11 +0000)]
[NEUS7920-133][9610] wlbt: Fix compilation error

Fix compilation error when SCSC_DEBUG_COMPATIBILITY
is set to N.

Change-Id: Id7170a0d86e879c3628d5514c384bff8e17f68d6
SCSC-Bug-Id: SSB-509704
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: Add observer information in sbl header
Albert Cano [Tue, 12 Mar 2019 16:07:55 +0000 (16:07 +0000)]
[NEUS7920-133][9610] wlbt: Add observer information in sbl header

Sable user should be notified of the presence of one or more observers
when the trigger collection occurs. This will help to indicate that the
mxlog and udi chunks might be out of date.

The presence of observer[s] is included in a new field of the sable
header.

To indicate to the decoder the new header structure, it has been decided
to increase the sbl version from 2.0 to 2.1

Change-Id: I6b87ab2f950300482d2025a0c79914c5d24751b8
SCSC-Bug-Id: SSB-50521
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: Add "support mode" field for GETSTAINFO
Srishti Piplani [Mon, 18 Mar 2019 13:50:50 +0000 (19:20 +0530)]
[NEUS7920-133][9610] wlbt: Add "support mode" field for GETSTAINFO

Added support mode field to the output of GETSTAINFO
,which gives information about the 11ax, 11ac and
11n support, extracted from assoc IE's.

Change-Id: I048e96af9e1f6b08d324c630ea09d82158732f82
SCSC-Bug-Id: SSB-50443
Signed-off-by: Srishti Piplani <srishti.p@samsung.com>
5 years ago[NEUS7920-133][9610][7885] wlbt: Increase timeout waiting for mlme cfm/ind
Jaya Prakash Sangaru [Mon, 18 Mar 2019 08:28:34 +0000 (13:58 +0530)]
[NEUS7920-133][9610][7885] wlbt: Increase timeout waiting for mlme cfm/ind

Sometimes when system is heavily loaded, HIP needs more time to
retrive cfms/ind, So increase this timeout to 6 secs.

Change-Id: Ie1972509ef47edf1d631a355fa49511af89a7d69
SCSC-Bug-Id: SSB-50283
Signed-off-by: Jaya Prakash Sangaru <j.sangaru@samsung.com>
5 years ago[NEUS7920-133][9610][7885][7872][7570] wlbt: Ignore address(mac/mask) sent by CFG...
Kavitha Velayutham [Wed, 13 Mar 2019 09:50:15 +0000 (15:20 +0530)]
[NEUS7920-133][9610][7885][7872][7570] wlbt: Ignore address(mac/mask) sent by CFG when randomization is disabled in Fw

Ignore the Mac address sent by cfg when mac randomization is enabled in host and disabled in fw.
so that Fw has the control of enabling/disabling Mac randomization

Change-Id: If3dfd5925b0271fd93c9c4c0e462bd1ea9031ce3
SCSC-Bug-Id: SB-50533
Signed-off-by: Kavitha Velayutham <k.velayutham@samsung.com>
5 years ago[NEUS7920-133]wlbt: mxman_suspend() don't block suspend when FW failed
Ivan Priest [Wed, 13 Mar 2019 17:32:20 +0000 (17:32 +0000)]
[NEUS7920-133]wlbt: mxman_suspend() don't block suspend when FW failed

The call to mxman_suspend() returned an error if WLBT FW
is failed, this prevents platform suspend if the firmware
does not recover. Return success even though message is
dropped.

Change-Id: I8c293aaa69dc356ad8125d37f06321392894978c
SCSC-Bug-Id: SSB-50585
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133]wlbt: wifilogger - remove incorrect kfree
Ivan Priest [Thu, 14 Mar 2019 12:46:29 +0000 (12:46 +0000)]
[NEUS7920-133]wlbt: wifilogger - remove incorrect kfree

Remove kfree() from scsc_wlog_register_debugfs_entry()
error path. The function is passed static memory.

Change-Id: If94cef6aec198abef34fefab5aacc4689f6b12dc
SCSC-Bug-Id: SSB-50600
Signed-off-by: Ivan Priest <i.priest@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: Use single threaded wq in hip4 bh
Albert Cano [Thu, 14 Feb 2019 10:39:50 +0000 (10:39 +0000)]
[NEUS7920-133][9610] wlbt: Use single threaded wq in hip4 bh

We have recently (A50 project) observed several issues to schedule
hip4_wq work, most likely because the kernel is blocked and is not
granting us CPU cycles.

In current implementation the work is added in the systemwq. Systemwq
might be easily affected by other subsystems adding batch works that
might eventually block our pending work.

In order to avoid using systemwq, the patch creates a new singlethread
workqueue and adds the non-napi process context bottom half works in there.

Change-Id: I0cc69779aa91c26777f00a2e7b1cd840336f553d
SCSC-Bug-Id: SSB-50566
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
5 years ago[NEUS7920-133][9610] wlbt: Unset channel is sent at work expiry of 600ms delay
Kavitha Velayutham [Thu, 14 Feb 2019 06:06:28 +0000 (11:36 +0530)]
[NEUS7920-133][9610] wlbt: Unset channel is sent at  work expiry of 600ms delay

This may increase the time duration of listen by 600ms in that channel which would help in p2p discovery
to find the devices faster.

Change-Id: I8b16e32aa25e6b406bc48f0cf842df2495c15a50
SCSC-Bug-Id: SSB-49471
Signed-off-by: Kavitha Velayutham <k.velayutham@samsung.com>
5 years ago[RAMEN9610-14596] [COMMON] usb: add simmian gadget function for camera tuning
k.t.lee [Wed, 24 Apr 2019 04:46:28 +0000 (13:46 +0900)]
[RAMEN9610-14596] [COMMON] usb: add simmian gadget function for camera tuning

Change-Id: I8b7e1cd362c880c4211d589d9bee86ac52798ff2
Signed-off-by: k.t.lee <k.t.lee@samsung.com>
5 years ago[RAMEN9610-14574] [COMMON] scsi: ufs: Dump SFR move to ISR.
JaeHun Jung [Tue, 23 Apr 2019 05:54:40 +0000 (14:54 +0900)]
[RAMEN9610-14574] [COMMON] scsi: ufs: Dump SFR move to ISR.

This is can make "Synchronous External Abort"
by SFR access race condition between ISR and workqueue.

Revert "[EKTROIKA-189][Troika][COMMON] scsi: ufs: Move SFR dump to workqueue from ISR."

=====================================================================
<3>[   21.625697] [pid:57,cpu0,in irq]Synchronous External Abort: synchronous external abort (0x96000210) at 0xffffff800b05d040
<0>[   21.625720] [pid:57,cpu0,in irq]Internal error: : 96000210 [#1] PREEMPT SMP
<4>[   21.625733] [pid:57,cpu0,in irq]Modules linked in:
<0>[   21.625767] [pid:57,cpu0,in irq]debug-snapshot: core register saved(CPU:0)
<2>[   21.625778] [pid:3963,cpu6,storaged]Bad mode in Error handler detected on CPU6, code 0xbf000002 -- SError
<0>[   21.625784] [pid:57,cpu0,in irq]L2ECTLR_EL1: 0000000000000007
<0>[   21.625803] [pid:57,cpu0,in irq]L2ECTLR_EL1 valid_bit(30) is NOT set (0x0)
<0>[   21.625818] [pid:57,cpu0,in irq]CPUMERRSR: 0000000008040321, L2MERRSR: 0000000012000000
<0>[   21.625833] [pid:57,cpu0,in irq]CPUMERRSR valid_bit(31) is NOT set (0x0)
<0>[   21.625847] [pid:57,cpu0,in irq]L2MERRSR valid_bit(31) is NOT set (0x0)
<0>[   21.625861] [pid:57,cpu0,in irq]debug-snapshot: context saved(CPU:0)
<6>[   21.625907] [pid:57,cpu0,in irq]debug-snapshot: item - log_kevents is disabled
<6>[   21.625918] [pid:57,cpu0,in irq]TIF_FOREIGN_FPSTATE: 0, FP/SIMD depth 0, cpu: 0
<4>[   21.625931] [pid:57,cpu0,in irq]CPU: 0 PID: 57 Comm: kworker/0:1 Tainted: G S              4.14.56-gb8dc9cd #1
<4>[   21.625938] [pid:57,cpu0,in irq]Hardware name: kane (DT)
<4>[   21.625955] [pid:57,cpu0,in irq]Workqueue: events ufshcd_err_handler
<4>[   21.625969] [pid:57,cpu0,in irq]task: ffffffc876beb680 task.stack: ffffff800b5e8000
<4>[   21.625982] [pid:57,cpu0,in irq]PC is at ufshcd_intr+0x19c/0x34c
<4>[   21.625991] [pid:57,cpu0,in irq]LR is at ufshcd_intr+0x120/0x34c
=====================================================================

This reverts commit c63c2451c3ecb705e7a23b361e8ca8d7e8a0b5e4.

Change-Id: I5baa3cb1a28271f0ee5f3ef4b3894a431fe4fdaa
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 years ago[RAMEN9610-14573] [COMMON][9610] drivers : add self soft reset when cc attach
Junhan Bae [Tue, 23 Apr 2019 07:50:46 +0000 (16:50 +0900)]
[RAMEN9610-14573] [COMMON][9610] drivers : add self soft reset when cc attach

Change-Id: Id0e8c39dd22610dc3cfc5416d76ee8a9f61f5735
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
5 years ago[HACK] fbdev: dpu20: modify sub-dev shutdown callback.
Jaehoe Yang [Thu, 16 Aug 2018 12:32:23 +0000 (21:32 +0900)]
[HACK] fbdev: dpu20: modify sub-dev shutdown callback.

Change-Id: I972b84ca6beaa45d5ef28aad071d99dd8aec69e4
Signed-off-by: Jaehoe Yang <jaehoe.yang@samsung.com>
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
5 years ago[9610] arm64: dtsi: fix build warning
Youngmin Nam [Fri, 26 Apr 2019 13:17:28 +0000 (22:17 +0900)]
[9610] arm64: dtsi: fix build warning

Change-Id: Ide353b9ecf379a0e63852a0627c7c240675304b3
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agofs: confict fix for 4.14 9610 minor version up
Youngmin Nam [Thu, 2 May 2019 10:37:06 +0000 (19:37 +0900)]
fs: confict fix for 4.14 9610 minor version up

Change-Id: I96375805426ba62035a0c06f0df69515d349302d
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoRestore "Revert: smp/hotplug: Differentiate the AP-work lockdep class between up...
Youngmin Nam [Thu, 2 May 2019 10:24:22 +0000 (19:24 +0900)]
Restore "Revert: smp/hotplug: Differentiate the AP-work lockdep class between up and down"

Change-Id: I812e559c85e88b67fa44a32973d0679b7486e243
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agolmk: fix conflict of kernel minor upgrade of 4.14.113
Youngmin Nam [Thu, 2 May 2019 10:21:17 +0000 (19:21 +0900)]
lmk: fix conflict of kernel minor upgrade of 4.14.113

Change-Id: If125f3ee34cdc141bfd0c92628ecc289787793e5
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years ago[COMMON] kernel: cpu: fix conflict
Youngmin Nam [Thu, 2 May 2019 08:43:32 +0000 (17:43 +0900)]
[COMMON] kernel: cpu: fix conflict

Change-Id: I1fa521368b3dffbd7bb572dac10e403c7bd07d2b
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoANDROID: mnt: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 08:39:57 +0000 (17:39 +0900)]
ANDROID: mnt: fix conflict during updating 4.14.113

Change-Id: I182b032fccf0caa046041ad51c3104f22a8ba682
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agodm-crypt: 4.14 fix a confict ivmode
Youngmin Nam [Thu, 2 May 2019 08:27:41 +0000 (17:27 +0900)]
dm-crypt: 4.14 fix a confict ivmode

Change-Id: I15b020211df974305ce689e6525493d6b9ff33c9
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agowatchdog: fix build error
Youngmin Nam [Thu, 2 May 2019 07:47:46 +0000 (16:47 +0900)]
watchdog: fix build error

Change-Id: I7fb4da0909d6bd90ce730d918ebb1a1a7ad168ff
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years ago[9610] thermal: Fix conflict exynos tmu code
Youngmin Nam [Thu, 2 May 2019 07:44:41 +0000 (16:44 +0900)]
[9610] thermal: Fix conflict exynos tmu code

Change-Id: I92a26bbd793e879ee74f700d718083b915ec3b96
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agovideobuf2: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:43:25 +0000 (16:43 +0900)]
videobuf2: fix conflict during updating 4.14.113

Change-Id: Ie291279a97647b783f9e3579d4bb9fa6fc63b8fa
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agospi: s3c64xx: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:40:26 +0000 (16:40 +0900)]
spi: s3c64xx: fix conflict during updating 4.14.113

Change-Id: I092efcf156874612848f5e40659025a8c4ba5f7f
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agotty: serial: samsung: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:38:22 +0000 (16:38 +0900)]
tty: serial: samsung: fix conflict during updating 4.14.113

Change-Id: If2084faf3153b6060f1579d077f13221b0b6f391
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agocompiler: fix conflict related kasan during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:36:42 +0000 (16:36 +0900)]
compiler: fix conflict related kasan during updating 4.14.113

Change-Id: Ia5de6644c02f83bbdb291886bb664f7d921fa59c
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoprintk: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:35:15 +0000 (16:35 +0900)]
printk: fix conflict during updating 4.14.113

Change-Id: Icf1b8cad7e1f29f02c4cf16638a1792b9fc9f55e
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agousb: fix conflict for kernel minor update 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:32:57 +0000 (16:32 +0900)]
usb: fix conflict for kernel minor update 4.14.113

Change-Id: Ic12745e3230499c6ab57cfa51a0ac34ce38d8037
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years ago[COMMON] clocksource: exynos_mct: restore TCNTB value in resume
Hosung Kim [Wed, 28 Jun 2017 13:09:18 +0000 (22:09 +0900)]
[COMMON] clocksource: exynos_mct: restore TCNTB value in resume

This commit restores TCNTB value in resume of CPU0.
Other CPUs are controlled hotplug framework while suspend/resume.
But CPU0 is except in this sequence. So some register setting
is needed like TCNTB value.

Change-Id: I1a0dbf2e8f9e73de778910796e180b493c8441d2
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
5 years agoclocksource/drivers/exynos_mct: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:21:28 +0000 (16:21 +0900)]
clocksource/drivers/exynos_mct: fix conflict during updating 4.14.113

Change-Id: I9c7b2d3240fae816785ee026628a63bc94e6ac42
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoandroid: binder: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 07:18:00 +0000 (16:18 +0900)]
android: binder: fix conflict during updating 4.14.113

Change-Id: Icbcd0e8ae58a34677df9bbaa304e477f315f0959
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years ago[COMMON] storage: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 06:50:31 +0000 (15:50 +0900)]
[COMMON] storage: fix conflict during updating 4.14.113

Change-Id: I8c59808fc9d18eff9c1d89e6cd5d8a89a61ef3a2
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoandroid: ion: fix conflict during updating 4.14.113
Youngmin Nam [Thu, 2 May 2019 06:44:38 +0000 (15:44 +0900)]
android: ion: fix conflict during updating 4.14.113

Change-Id: I2ac5747d69e93d42c22e60311ed61d917fd3854f
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoMerge branch 'android-4.14-p' into android-exynos-4.14-ww-9610-minor_up-dev
Youngmin Nam [Thu, 2 May 2019 06:37:01 +0000 (15:37 +0900)]
Merge branch 'android-4.14-p' into android-exynos-4.14-ww-9610-minor_up-dev

Change-Id: Ibb00d2fdd553354d3689f7d292a984b39001b9c3
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoRevert "Revert "dm verity: switch to using asynchronous hash crypto API""
Youngmin Nam [Tue, 23 Apr 2019 07:54:04 +0000 (16:54 +0900)]
Revert "Revert "dm verity: switch to using asynchronous hash crypto API""

This reverts commit 6ae9d6ee589365676e1ff13eed18a9fe07f89994.

Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
5 years agoFix 'Merge 4.14.111 into android-4.14-p'
Alistair Strachan [Thu, 25 Apr 2019 23:47:11 +0000 (16:47 -0700)]
Fix 'Merge 4.14.111 into android-4.14-p'

mutex -> spinlock changes from android-4.14

Change-Id: I7da3ad92a12fc9ba60d7b602e9178d04e0fb5c1d
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish_defconfig: Remove non-present options
Alistair Strachan [Thu, 25 Apr 2019 21:58:19 +0000 (14:58 -0700)]
ANDROID: cuttlefish_defconfig: Remove non-present options

Change-Id: I7c0d434a77bb0acb5bae14479a0ca7ca64ff9ffc
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: Move from clang r346389b to r349610.
Alistair Strachan [Tue, 12 Feb 2019 21:23:11 +0000 (13:23 -0800)]
ANDROID: Move from clang r346389b to r349610.

Bug: 123635022
Test: make ARCH=arm64 cuttlefish_defconfig && make ARCH=arm64
Test: make ARCH=x86_64 x86_64_cuttlefish_defconfig && make ARCH=x86_64
Change-Id: Icc02ea92c13435fa5a6ecd33d8878629762fd2f7
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: Move from clang r328903 to r346389b.
Alistair Strachan [Fri, 7 Dec 2018 19:34:16 +0000 (11:34 -0800)]
ANDROID: Move from clang r328903 to r346389b.

Bug: 120439617
Bug: 120503084
Change-Id: I21bb183cac03753d1ba719a69305e2199c3f3227
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish_defconfig: Enable CONFIG_INPUT_MOUSEDEV
Alistair Strachan [Fri, 22 Mar 2019 23:52:47 +0000 (16:52 -0700)]
ANDROID: cuttlefish_defconfig: Enable CONFIG_INPUT_MOUSEDEV

Bug: 120439617
Bug: 128633328
Change-Id: I2186d8070f7885937925a25e85ce7b5722a73d57
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish: enable CONFIG_INET_UDP_DIAG=y
Maciej Żenczykowski [Fri, 8 Mar 2019 20:59:15 +0000 (12:59 -0800)]
ANDROID: cuttlefish: enable CONFIG_INET_UDP_DIAG=y

This is to mirror:
  https://android-review.googlesource.com/c/kernel/configs/+/721208
  android-base.cfg: enable CONFIG_INET_UDP_DIAG

Generated via:
  echo 'CONFIG_INET_UDP_DIAG=y' >> arch/x86/configs/x86_64_cuttlefish_defconfig
  echo 'CONFIG_INET_UDP_DIAG=y' >> arch/arm64/configs/cuttlefish_defconfig
  make ARCH=x86_64 x86_64_cuttlefish_defconfig
  make ARCH=x86_64 savedefconfig
  cat defconfig > arch/x86/configs/x86_64_cuttlefish_defconfig
  make ARCH=arm64 cuttlefish_defconfig
  make ARCH=arm64 savedefconfig
  cat defconfig > arch/arm64/configs/cuttlefish_defconfig
  rm defconfig

Bug: 127981801
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I5d4533b7c3b9a11e45e96b0346a70b3f93d4a812

5 years agoANDROID: cuttlefish_defconfig: L2TP/PPTP to OLAC/OPNS
Alistair Strachan [Sat, 20 Apr 2019 01:18:15 +0000 (18:18 -0700)]
ANDROID: cuttlefish_defconfig: L2TP/PPTP to OLAC/OPNS

Change-Id: Idafb69ff5b4ecfe73d2f5b7c46c4e9523ef37c08
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish_defconfig: Enable CONFIG_FUSE_FS
Alistair Strachan [Wed, 3 Apr 2019 06:59:58 +0000 (23:59 -0700)]
ANDROID: cuttlefish_defconfig: Enable CONFIG_FUSE_FS

Bug: 120439617
Bug: 129901600
Change-Id: Iff554123147f7761ca639b89612138b82a4a400a
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish_defconfig: Add support for AC97 audio
Alistair Strachan [Tue, 5 Mar 2019 19:11:34 +0000 (11:11 -0800)]
ANDROID: cuttlefish_defconfig: Add support for AC97 audio

Enable driver support for the ac97 emulation provided by QEMU and
crosvm. This is for the older 'ac97' soundhw, not 'hda'.

Bug: 126955561
Test: local build and test of sound from cuttlefish
Change-Id: I6c29e352e0be161e2a1dc35fde50b888b7dbf86e
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish: enable CONFIG_NETFILTER_XT_TARGET_CT=y
Maciej Żenczykowski [Wed, 6 Mar 2019 07:02:51 +0000 (23:02 -0800)]
ANDROID: cuttlefish: enable CONFIG_NETFILTER_XT_TARGET_CT=y

This is to mirror:
  https://android-review.googlesource.com/c/kernel/configs/+/919855
  android-4.9+: add CONFIG_NETFILTER_XT_TARGET_CT=y to base config

Generated via:
  echo 'CONFIG_NETFILTER_XT_TARGET_CT=y' >> arch/x86/configs/x86_64_cuttlefish_defconfig
  echo 'CONFIG_NETFILTER_XT_TARGET_CT=y' >> arch/arm64/configs/cuttlefish_defconfig
  make ARCH=x86_64 x86_64_cuttlefish_defconfig
  make ARCH=x86_64 savedefconfig
  cat defconfig > arch/x86/configs/x86_64_cuttlefish_defconfig
  make ARCH=arm64 cuttlefish_defconfig
  make ARCH=arm64 savedefconfig
  cat defconfig > arch/arm64/configs/cuttlefish_defconfig
  rm defconfig

Bug: 124361845
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I6035ef8e75f9daada706a9233999368a22904c4e

5 years agoMake arm64 serial port config compatible with crosvm
Greg Hartman [Wed, 17 Apr 2019 19:58:54 +0000 (12:58 -0700)]
Make arm64 serial port config compatible with crosvm

BUG: 118442619
Test: Ran ~/bin/crosvm run --disable-sandbox ~/image, saw output
Change-Id: If086af28b69eca5353a101228ae986653bc1465e
Signed-off-by: Greg Hartman <ghartman@google.com>
(cherry picked from commit 2860dfe869a94c8c1950effb55da116f83ebc740)

5 years agoANDROID: cuttlefish_defconfig: Enable CONFIG_RTC_HCTOSYS
Matthias Maennich [Mon, 4 Feb 2019 17:33:19 +0000 (17:33 +0000)]
ANDROID: cuttlefish_defconfig: Enable CONFIG_RTC_HCTOSYS

This configuration is required for the VTS test
VtsKernelApiSysfsTest#testRtcHctosys to pass.

Bug: 123860857
Test: run vts-kernel -m VtsKernelApiSysfsTest
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Icae17c74460bcd2aef4cf4e3ec5381de9ea0a66c

5 years agoANDROID: cuttlefish_defconfig: Enable vsock options
Cody Schuffelen [Tue, 15 Jan 2019 02:37:28 +0000 (18:37 -0800)]
ANDROID: cuttlefish_defconfig: Enable vsock options

Bug: 121166534
Test: Ran cuttlefish with common kernel + vsock adb tunnel
Signed-off-by: Cody Schuffelen <schuffelen@google.com>
Change-Id: I8168a710052c7daada306a915c56230c961accd4

5 years agoANDROID: cuttlefish_defconfig: Enable VIRTIO_INPUT
Alistair Strachan [Wed, 2 Jan 2019 23:24:37 +0000 (15:24 -0800)]
ANDROID: cuttlefish_defconfig: Enable VIRTIO_INPUT

Bug: 120439617
Change-Id: I83fdb2088f17e71f377e5864d217655b47839267
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish_defconfig: Enable VIRT_WIFI
Alistair Strachan [Sat, 8 Dec 2018 00:40:23 +0000 (16:40 -0800)]
ANDROID: cuttlefish_defconfig: Enable VIRT_WIFI

Bug: 120439617
Bug: 120682817
Change-Id: Ia1b66528bd9cb1e6e95bd75ac60f393978caa582
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: cuttlefish_defconfig: Enable CONFIG_ARM64_LSE_ATOMICS
Alistair Strachan [Fri, 7 Dec 2018 19:50:07 +0000 (11:50 -0800)]
ANDROID: cuttlefish_defconfig: Enable CONFIG_ARM64_LSE_ATOMICS

Enabling this was previously blocked by a lack of support for this
feature in clang, but that problem has been resolved in a newer version
of the compiler.

Bug: 120439617
Change-Id: I0f5fd2439c5a71ee0988648970576b46b2c4d20b
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoANDROID: arm64 defconfig / build config for cuttlefish
Alistair Strachan [Thu, 25 Oct 2018 00:24:14 +0000 (17:24 -0700)]
ANDROID: arm64 defconfig / build config for cuttlefish

Add an arm64 defconfig with the Android and cuttlefish feature sets
merged in. This has been boot tested only on the QEMU virt model for
AArch64.

$ qemu-system-aarch64 -M virt -cpu cortex-a57 \
    -kernel arch/arm64/boot/Image.gz -serial stdio

Bug: 118442619
Change-Id: I99f3b78af85de8d051226f202351bd852a032248
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoUPSTREAM: virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED
Cody Schuffelen [Wed, 6 Feb 2019 23:54:15 +0000 (15:54 -0800)]
UPSTREAM: virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED

REGULATORY_WIPHY_SELF_MANAGED as set here breaks NL80211_CMD_GET_REG,
because it expects the wiphy to do regulatory management. Since
virt_wifi does not do regulatory management, this triggers a WARN_ON in
NL80211_CMD_GET_REG and fails the netlink command.

Removing REGULATORY_WIPHY_SELF_MANAGED fixes the problem and the virtual
wireless network continues to work.

Signed-off-by: Cody Schuffelen <schuffelen@google.com>
Acked-by: Alistair Strachan <astrachan@google.com>
Acked-by: Greg Hartman <ghartman@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit f440b125450dfc65ce0386eb231da2f663c45ca0)
Bug: 119771992
Change-Id: Ida660b77a2f091e7aaabcecf8a60e66cc2f1f91d
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years agoUPSTREAM: virt_wifi: fix error return code in virt_wifi_newlink()
Wei Yongjun [Fri, 18 Jan 2019 07:29:52 +0000 (07:29 +0000)]
UPSTREAM: virt_wifi: fix error return code in virt_wifi_newlink()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: c7cdba31ed8b ("mac80211-next: rtnetlink wifi simulation device")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit f9d672f1c2ca36b788511bbd773d650c744e109a)
Change-Id: Ia6290ab996afca7b33e1a8e9b8bcfc0ecbe252f4
Signed-off-by: Cody Schuffelen <schuffelen@google.com>
5 years agoFROMGIT, BACKPORT: mac80211-next: rtnetlink wifi simulation device
Cody Schuffelen [Wed, 21 Nov 2018 03:14:49 +0000 (19:14 -0800)]
FROMGIT, BACKPORT: mac80211-next: rtnetlink wifi simulation device

This device takes over an existing network device and produces a
new one that appears like a wireless connection, returning enough canned
responses to nl80211 to satisfy a standard connection manager. If
necessary, it can also be set up one step removed from an existing
network device, such as through a vlan/80211Q or macvlan connection to
not disrupt the existing network interface.

To use it to wrap a bare ethernet connection:

ip link add link eth0 name wlan0 type virt_wifi

You may have to rename or otherwise hide the eth0 from your connection
manager, as the original network link will become unusuable and only
the wireless wrapper will be functional. This can also be combined with
vlan or macvlan links on top of eth0 to share the network between
distinct links, but that requires support outside the machine for
accepting vlan-tagged packets or packets from multiple MAC addresses.

This is being used for Google's Remote Android Virtual Device project,
which runs Android devices in virtual machines. The standard network
interfaces provided inside the virtual machines are all ethernet.
However, Android is not interested in ethernet devices and would rather
connect to a wireless interface. This patch allows the virtual machine
guest to treat one of its network connections as wireless rather than
ethernet, satisfying Android's network connection requirements.

We believe this is a generally useful driver for simulating wireless
network connections in other environments where a wireless connection is
desired by some userspace process but is not available.

This is distinct from other testing efforts such as mac80211_hwsim by
being a cfg80211 device instead of mac80211 device, allowing straight
pass-through on the data plane instead of forcing packaging of ethernet
data into mac80211 frames.

Signed-off-by: A. Cody Schuffelen <schuffelen@google.com>
Acked-by: Alistair Strachan <astrachan@google.com>
Acked-by: Greg Hartman <ghartman@google.com>
Acked-by: Tristan Muntsinger <muntsinger@google.com>
[make it a tristate]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit c7cdba31ed8b87526db978976392802d3f93110c)
[astrachan: taken from mac80211-next/master]
[astrachan: removed 'extack' from call to netdev_upper_dev_link()]
Bug: 120682817
Test: boot tested cuttlefish and enabled wifi, saw AndroidWifi
Change-Id: I726ec28617574c0217d937da049089f0ab8e0da8
Signed-off-by: Alistair Strachan <astrachan@google.com>
5 years ago[RAMEN9610-14520] [COMMON] arm64: defconfig: enable SAMSUNG COMPOSITE
Kisang Lee [Thu, 18 Apr 2019 11:28:08 +0000 (20:28 +0900)]
[RAMEN9610-14520] [COMMON] arm64: defconfig: enable SAMSUNG COMPOSITE

Change-Id: I2a044fc9b1830506dd8b7f3cbac2d25181f2403b
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 years ago[RAMEN9610-14520] [COMMON] usb: ignore USB disconnect message at reset
Kisang Lee [Thu, 18 Apr 2019 08:01:13 +0000 (17:01 +0900)]
[RAMEN9610-14520] [COMMON] usb: ignore USB disconnect message at reset

Change-Id: I5ecee0ab18945062ac2518e23c48f2146ddf9627
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 years ago[RAMEN9610-14503] [COMMON] scsi: ufs: Remove debug dump for UIC error.
JaeHun Jung [Wed, 17 Apr 2019 07:06:51 +0000 (16:06 +0900)]
[RAMEN9610-14503] [COMMON] scsi: ufs: Remove debug dump for UIC error.

UIC_ERROR registers are can make ITMON timeout by race condition.
When ufshcd_abort was working at other cores. And ufshcd_intr can work core0.
In case of when other core read UIC_ERROR register and if core0 execute regiseter write.
It can be make BUS hang in FSYS.(timeout)

Change-Id: I26e3c8c5f6a79d076b9d98c6e588e55f8951c519
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 years ago[RAMEN9610-14503] [COMMON] Revert "[COMMON] scsi: ufs: Add delay for UIC_ERROR access."
JaeHun Jung [Thu, 18 Apr 2019 06:32:55 +0000 (15:32 +0900)]
[RAMEN9610-14503] [COMMON] Revert "[COMMON] scsi: ufs: Add delay for UIC_ERROR access."

This reverts commit 3d4959596cfd2a020fd539ea9dbb63fb00531666.

Change-Id: Ib02d70f07f5e0b7ff65749205424e1ed67137526
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
5 years ago[RAMEN9610-14499][common][9610] wlbt: fix completion and use completion_done API
Youngsoo [Thu, 18 Apr 2019 04:50:23 +0000 (13:50 +0900)]
[RAMEN9610-14499][common][9610] wlbt: fix completion and use completion_done API

When we get rapid requests for SABLE generation, to serialise while processing current request,
we ignore requests other than "fw_panic" in wlbtd and send a msg "ignoring" back to kernel.
We must complete in this case as well.

We must complete one completion upon message from wlbtdi, which has
waiter(s). completion_done() API does the check without modifying
the completion in anyway and returns false if there are waiters and
true otherwise

SCSC-Bug-Id: ssb-51156
previous patch :
-Change-Id: Ieabcd8377a3040bdcfe51e4310eb55d84c693446
-Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>

Change-Id: Id6ff01e96b2e1e3de7f940c9e2ef1a75211ae5dd
Signed-off-by: Youngsoo <youngss.kim@samsung.com>
5 years ago[RAMEN9610-14474] [COMMON] usb: remove W/A code to avoid kernel panic
Kisang Lee [Wed, 17 Apr 2019 01:18:28 +0000 (10:18 +0900)]
[RAMEN9610-14474] [COMMON] usb: remove W/A code to avoid kernel panic

The W/A code for other AP could make kernel panic rarely.

Change-Id: Ic0b44fdcfc4d9c189d0fc37da2398043720424e7
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
5 years ago[ERD][APR-125] Camera code sync to latest.
Wooyeon Kim [Tue, 7 Aug 2018 10:57:02 +0000 (19:57 +0900)]
[ERD][APR-125] Camera code sync to latest.

Change-Id: Ia58c0082b2b7b882c6945c8fc6acda055e0c506e
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>