GitHub/LineageOS/android_kernel_motorola_exynos9610.git
6 years agofbdev: dpu20: SoC dependent code is removed in DPU BTS code.
ChiHun Won [Mon, 4 Jun 2018 06:42:56 +0000 (15:42 +0900)]
fbdev: dpu20: SoC dependent code is removed in DPU BTS code.

AXI port number of each DPP channel, port count, DPP channel count
and DECON count are different at each SoC.

Previous DPU BTS code doesn't care another SoC. Because DPU BTS
code supports only own SoC.

This change of DPU BTS code supports common DPU driver.

Change-Id: I2421da368f5222295c41191d01736ddc3b75ff8c
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
6 years ago[9610] fbdev: dpu20: change DPP channel number for BTS calculation.
ChiHun Won [Mon, 4 Jun 2018 06:31:05 +0000 (15:31 +0900)]
[9610] fbdev: dpu20: change DPP channel number for BTS calculation.

There are 3 channels between AXI bus and DPU_DMA. And each channel is connected
to 2 IDMAs but this connection is different from previous SoC.

So, channel connection is initialized in DECON CAL Layer for common driver.

Change-Id: Iac174cc8e6949297e2d7c166a0470eadc6723394
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
6 years ago[9610] fbdev: dpu: add idle ip interface for dsim.
hwangjae lee [Thu, 31 May 2018 11:30:51 +0000 (20:30 +0900)]
[9610] fbdev: dpu: add idle ip interface for dsim.

The DPU can't turn off the power block. Howeveer, to enter the SICD, the
DPU must be notified when dsim hiber enter/exit mode.

Change-Id: Idcf69a91f7f6b0d34ed95ef38b0dce24bdde6c60
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
6 years ago[9610][ERD] wlbt: defconfig: enable cfg80211 and wireless
Ivan Priest [Fri, 8 Jun 2018 13:06:28 +0000 (14:06 +0100)]
[9610][ERD] wlbt: defconfig: enable cfg80211 and wireless

Turn on CFG80211 and WIRELESS configs

Change-Id: I5c94d5f46aad4f0862bfe234100209ae5c57130a
SCSC-Bug-Id: SSB-40175
Signed-off-by: Ivan Priest <i.priest@samsung.com>
6 years ago[9610] wlbt: don't pack mxconf on Android P.
Ivan Priest [Thu, 7 Jun 2018 16:13:55 +0000 (17:13 +0100)]
[9610] wlbt: don't pack mxconf on Android P.

After correcting mxconf structures to fix the warning reported
by Clang, WLBT FW crashes due to disagreement of the alignment
of shared data structures between driver and FW.

I suspect that because of the "__packed struct foo" syntax used
for mxconf.h on both sides, the structures don't really get
packed at all, so correcting it on one side only doesn't work.

Change-Id: Ie1c451d009531a2fa86a3e864a02f02647341cc4
SCSC-Bug-Id: SSB-40175
Signed-off-by: Ivan Priest <i.priest@samsung.com>
6 years ago[9610] wlbt: Fix compilation errors Android P mxconf.h (Android P)
Purnendu Kapadia [Thu, 7 Jun 2018 10:18:14 +0000 (11:18 +0100)]
[9610] wlbt: Fix compilation errors Android P mxconf.h (Android P)

use __packed attribute correctly so that the kernel built
with clang compiler boots.

Change-Id: Ic92e88381553d4db3cb24e1169570786f7fae2b9
SCSC-Bug-Id: SSB-40175
Signed-off-by: Purnendu Kapadia <p.kapadia@samsung.com>
6 years agoRevert "[9610] wlbt: Fix compilation errors Android P mxconf.c (Android P)"
Ivan Priest [Wed, 6 Jun 2018 23:23:21 +0000 (00:23 +0100)]
Revert "[9610] wlbt: Fix compilation errors Android P mxconf.c (Android P)"

This reverts commit 786d0c2f017152fe0dda8f0539d2fa0ff7a3bd56.

The commit was causing WLBT FW to panic on boot.

SCSC-Bug-Id: SSB-40175
Change-Id: I75bc6523f05a5ee31afae3a185e324089576ba09
Signed-off-by: Ivan Priest <i.priest@samsung.com>
6 years ago[9610] wlbt: Patch from Debrata (Android P)
Tarun Karela [Wed, 30 May 2018 11:17:15 +0000 (12:17 +0100)]
[9610] wlbt: Patch from Debrata  (Android P)

Kernel 4.14 patches

Change-Id: Icc987c1e91fb978bfb1d11b24ab3e68efa6d83f8
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[961] wlbt: Fix to cfg80211_ops.c from Mohit (Android P)
Tarun Karela [Wed, 30 May 2018 13:54:15 +0000 (14:54 +0100)]
[961] wlbt: Fix to cfg80211_ops.c from Mohit (Android P)

Linux 4.14 kernal patch for android p

Change-Id: I55280a92d4001cb1b621e72b592f3d08803e645e
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Add dts configuration for WLBT
Tarun Karela [Tue, 5 Jun 2018 21:55:11 +0000 (22:55 +0100)]
[9610] wlbt: Add dts configuration for WLBT

Taken as it is from Leman WW project

Change-Id: I5e93ee5c2c9dbac3e1ec67d8a5ed9ef3b8094314
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix warning in scsc/hip.c (Android P)
Tarun Karela [Wed, 30 May 2018 17:50:42 +0000 (18:50 +0100)]
[9610] wlbt: Fix warning in scsc/hip.c (Android P)

In file included from drivers/net/wireless/scsc/hip.c:9:0:
drivers/net/wireless/scsc/hip.h:58:66: warning: 'struct sk_buff' declared inside parameter list
 int slsi_hip_consume_smapper_entry(struct slsi_dev *sdev, struct sk_buff *skb);
                                                                  ^
drivers/net/wireless/scsc/hip.h:58:66: warning: its scope is only this definition or declaration, which is probably not what you want
  CC      drivers/misc/samsung/scsc/mifintrbit.o

Change-Id: Ie79cc8e689b813a504fbfef3cfd24a7845fa189a
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Change function name from __ieee80211_get_channel to ieee80211_get_chann...
Tarun Karela [Wed, 30 May 2018 17:45:41 +0000 (18:45 +0100)]
[9610] wlbt: Change function name from __ieee80211_get_channel to ieee80211_get_channel (Android P)

Fixes following compilation errors. Looks like it is simple case of function name change in api

drivers/net/wireless/scsc/mgt.c: In function 'slsi_select_wifi_sharing_ap_channel':
drivers/net/wireless/scsc/mgt.c:4033:4: error: implicit declaration of function '__ieee80211_get_channel' [-Werror=implicit-function-declaration]
    settings->chandef.chan = __ieee80211_get_channel(wiphy, settings->chandef.chan->center_freq);
    ^
drivers/net/wireless/scsc/mgt.c:4033:27: warning: assignment makes pointer from integer without a cast
    settings->chandef.chan = __ieee80211_get_channel(wiphy, settings->chandef.chan->center_freq);
                           ^
drivers/net/wireless/scsc/mgt.c:4038:28: warning: assignment makes pointer from integer without a cast
     settings->chandef.chan = __ieee80211_get_channel(wiphy, sta_frequency);
                            ^
drivers/net/wireless/scsc/mgt.c:4062:29: warning: assignment makes pointer from integer without a cast
      settings->chandef.chan = __ieee80211_get_channel(wiphy, sta_frequency);
                             ^
drivers/net/wireless/scsc/mgt.c:4066:28: warning: assignment makes pointer from integer without a cast
     settings->chandef.chan = __ieee80211_get_channel(wiphy, SLSI_2G_CHANNEL_ONE);

Change-Id: Ia1d3792d014495f6a09a53d3569d84b75d0a9575
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Enable SCSC configuration in erd9610_defconfig (Android P)
Tarun Karela [Wed, 30 May 2018 17:44:44 +0000 (18:44 +0100)]
[9610] wlbt: Enable SCSC configuration in erd9610_defconfig (Android P)

configuration taken from leman defconfig file maestro9610_defconfig

Change-Id: I830d8a31f63bda7e38feba69b8d05a9d092b81b2
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Guard wlbtd_init for platform where it is not enabled (Android P)
Tarun Karela [Wed, 30 May 2018 17:13:38 +0000 (18:13 +0100)]
[9610] wlbt: Guard wlbtd_init for platform where it is not enabled (Android P)

Fixes error on platform where wlbtd is not enabled

Change-Id: Idf57cf08a4d248c1fdda46bd4572a8ad4a241766
SCSC-Bug-Id: SSB-36810
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation error to do with ReqId (Android P)
Tarun Karela [Wed, 30 May 2018 16:39:36 +0000 (17:39 +0100)]
[9610] wlbt: Fix compilation error to do with ReqId (Android P)

drivers/net/wireless/scsc/mgt.c: In function 'slsi_scan_cleanup':
drivers/net/wireless/scsc/mgt.c:630:4: error: too few arguments to function 'cfg80211_sched_scan_stopped'
    cfg80211_sched_scan_stopped(sdev->wiphy);

Change-Id: Ic667545ab30185989da8b11a773e58d26a1ae01a
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix/Mask out compilation errors in rx.c (Android P)
Tarun Karela [Wed, 30 May 2018 16:36:43 +0000 (17:36 +0100)]
[9610] wlbt: Fix/Mask out compilation errors in rx.c (Android P)

drivers/net/wireless/scsc/rx.c: In function 'slsi_scan_complete':
drivers/net/wireless/scsc/rx.c:524:3: error: too few arguments to function 'cfg80211_sched_scan_results'
   cfg80211_sched_scan_results(sdev->wiphy);
   ^
In file included from drivers/net/wireless/scsc/dev.h:33:0,
                 from drivers/net/wireless/scsc/debug.h:11,
                 from drivers/net/wireless/scsc/rx.c:9:
./include/net/cfg80211.h:4611:6: note: declared here
 void cfg80211_sched_scan_results(struct wiphy *wiphy, u64 reqid);
      ^
drivers/net/wireless/scsc/rx.c: In function 'slsi_rx_roamed_ind':
drivers/net/wireless/scsc/rx.c:925:5: warning: passing argument 2 of 'cfg80211_roamed' from incompatible pointer type
     ndev_vif->sta.sta_bss->channel,
     ^
In file included from drivers/net/wireless/scsc/dev.h:33:0,
                 from drivers/net/wireless/scsc/debug.h:11,
                 from drivers/net/wireless/scsc/rx.c:9:
./include/net/cfg80211.h:5479:6: note: expected 'struct cfg80211_roam_info *' but argument is of type 'struct ieee80211_channel *'
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^
drivers/net/wireless/scsc/rx.c:926:5: warning: passing argument 3 of 'cfg80211_roamed' makes integer from pointer without a cast
     peer->address,
     ^
In file included from drivers/net/wireless/scsc/dev.h:33:0,
                 from drivers/net/wireless/scsc/debug.h:11,
                 from drivers/net/wireless/scsc/rx.c:9:
./include/net/cfg80211.h:5479:6: note: expected 'gfp_t' but argument is of type 'u8 *'
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^
drivers/net/wireless/scsc/rx.c:924:3: error: too many arguments to function 'cfg80211_roamed'
   cfg80211_roamed(dev,
   ^
In file included from drivers/net/wireless/scsc/dev.h:33:0,
                 from drivers/net/wireless/scsc/debug.h:11,
                 from drivers/net/wireless/scsc/rx.c:9:
./include/net/cfg80211.h:5479:6: note: declared here
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^
drivers/net/wireless/scsc/rx.c: In function 'slsi_rx_received_frame_ind':
drivers/net/wireless/scsc/rx.c:1923:6: error: 'struct net_device' has no member named 'last_rx'
   dev->last_rx = jiffies;
      ^
scripts/Makefile.build:328: recipe for target 'drivers/net/wireless/scsc/rx.o' failed
make[4]: *** [drivers/net/wireless/scsc/rx.o] Error 1

Change-Id: I0e02d1fdad4beb2085fadc6aa783c439718ad332
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix/mask out compilation erros in cfg80211_ops.c (Android P)
Tarun Karela [Wed, 30 May 2018 13:54:15 +0000 (14:54 +0100)]
[9610] wlbt: Fix/mask out compilation erros in cfg80211_ops.c (Android P)

drivers/net/wireless/scsc/cfg80211_ops.c: In function 'slsi_add_virtual_intf':
drivers/net/wireless/scsc/cfg80211_ops.c:62:10: error: 'flags' undeclared (first use in this function)
  SLSI_UNUSED_PARAMETER(flags);
          ^
drivers/net/wireless/scsc/cfg80211_ops.c:62:10: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/wireless/scsc/cfg80211_ops.c: At top level:
drivers/net/wireless/scsc/cfg80211_ops.c:2784:2: warning: initialization from incompatible pointer type
  .change_virtual_intf = slsi_change_virtual_intf,
  ^
drivers/net/wireless/scsc/cfg80211_ops.c:2784:2: warning: (near initialization for 'slsi_ops.change_virtual_intf')
drivers/net/wireless/scsc/cfg80211_ops.c:2824:2: warning: initialization from incompatible pointer type
  .sched_scan_stop = slsi_sched_scan_stop,
  ^
drivers/net/wireless/scsc/cfg80211_ops.c:2824:2: warning: (near initialization for 'slsi_ops.sched_scan_stop')
drivers/net/wireless/scsc/cfg80211_ops.c: In function 'slsi_cfg80211_new':
drivers/net/wireless/scsc/cfg80211_ops.c:3186:18: error: 'WIPHY_FLAG_SUPPORTS_SCHED_SCAN' undeclared (first use in this function)
  wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
                  ^
scripts/Makefile.build:328: recipe for target 'drivers/net/wireless/scsc/cfg80211_ops.o' failed
make[4]: *** [drivers/net/wireless/scsc/cfg80211_ops.o] Error 1
make[4]: *** Waiting for unfinished jobs....

Change-Id: Ice77ca9fde1d7f6fae5c8b2081f7c0c6c55ca287
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Get around compilation error by using dummy value (Android P)
Tarun Karela [Wed, 30 May 2018 13:21:23 +0000 (14:21 +0100)]
[9610] wlbt: Get around compilation error by using dummy value (Android P)

This needs proper fix as reqId is new parameter, presumably used to track each
scan request

drivers/net/wireless/scsc/cfg80211_ops.c: In function 'slsi_sched_scan_start':
drivers/net/wireless/scsc/cfg80211_ops.c:639:4: error: too few arguments to function 'cfg80211_sched_scan_stopped'
    cfg80211_sched_scan_stopped(wiphy);
    ^
In file included from drivers/net/wireless/scsc/cfg80211_ops.c:8:0:
./include/net/cfg80211.h:4623:6: note: declared here
 void cfg80211_sched_scan_stopped(struct wiphy *wiphy, u64 reqid);

Change-Id: I81174d7de5aa9825e538dca2923c29fd01eebcd6
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation error change atomic_read -> refcount_read (Android P)
Tarun Karela [Wed, 30 May 2018 13:15:22 +0000 (14:15 +0100)]
[9610] wlbt: Fix compilation error change atomic_read -> refcount_read (Android P)

drivers/net/wireless/scsc/udi.c:1100:231: error: 'refcount_t' has no member named 'counter'
   SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
                                                                                                                                                                                                                                       ^
drivers/net/wireless/scsc/udi.c:1100:312: error: 'refcount_t' has no member named 'counter'
   SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
                                                                                                                                                                                                                                                                                                                        ^
drivers/net/wireless/scsc/udi.c:1100:357: error: 'refcount_t' has no member named 'counter'
   SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
                                                                                                                                                                                                                                                                                                                                                                     ^
drivers/net/wireless/scsc/udi.c:1100:419: error: 'refcount_t' has no member named 'counter'
   SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));
                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
drivers/net/wireless/scsc/udi.c:1100:464: error: 'refcount_t' has no member named 'counter'
   SLSI_WARN(sdev, "UDI client File op release not completed yet! (count=%d)\n", atomic_read(&kref->refcount));

Change-Id: I8de110227cd5eab8e2d172ad2a25505545b7bf6c
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation error by commenting out line for now Android P
Tarun Karela [Wed, 30 May 2018 13:12:08 +0000 (14:12 +0100)]
[9610] wlbt: Fix compilation error by commenting out line for now Android P

drivers/net/wireless/scsc/rx.c: In function 'slsi_rx_received_frame_ind':
drivers/net/wireless/scsc/rx.c:1923:6: error: 'struct net_device' has no member named 'last_rx'
   dev->last_rx = jiffies;

Change-Id: Icd9b9bd5170a6a8dd0b0f76f0c44cb1cb6233718
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation errors Android P mxconf.c (Android P)
Tarun Karela [Wed, 30 May 2018 13:00:51 +0000 (14:00 +0100)]
[9610] wlbt: Fix compilation errors Android P mxconf.c (Android P)

drivers/misc/samsung/scsc/mxman.c: In function 'mxman_init':
drivers/misc/samsung/scsc/mxman.c:1686:2: error: implicit declaration of function 'wlbtd_wq_init' [-Werror=implicit-function-declaration]
  wlbtd_wq_init(mxman);
  ^
drivers/misc/samsung/scsc/mxman.c: In function 'mxman_deinit':
drivers/misc/samsung/scsc/mxman.c:1706:2: error: implicit declaration of function 'wlbtd_wq_deinit' [-Werror=implicit-function-declaration]
  wlbtd_wq_deinit(mxman);
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:328: recipe for target 'drivers/misc/samsung/scsc/mxman.o' failed

Change-Id: I17248e84a4ecf9a0fbeef8ef5030def157fa808b
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation errir in netif.c (Android P)
Tarun Karela [Wed, 30 May 2018 11:19:26 +0000 (12:19 +0100)]
[9610] wlbt: Fix compilation errir in netif.c (Android P)

drivers/net/wireless/scsc/netif.c: In function 'slsi_if_setup':
drivers/net/wireless/scsc/netif.c:1031:5: error: 'struct net_device' has no member named 'destructor'
  dev->destructor = free_netdev;

Change-Id: I8e910880ba32a501a61bc82f7877f9c859f4a0de
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation erros in netif.c (Android P)
Tarun Karela [Wed, 30 May 2018 11:17:15 +0000 (12:17 +0100)]
[9610] wlbt: Fix compilation erros in netif.c (Android P)

Replace atomic_read with refcount_read to get rid of the following errors
drivers/net/wireless/scsc/netif.c: In function 'slsi_net_hw_xmit':
drivers/net/wireless/scsc/netif.c:825:47: error: 'refcount_t' has no member named 'counter'
  known_users = atomic_read(&skb->users);
                                               ^
drivers/net/wireless/scsc/netif.c:825:124: error: 'refcount_t' has no member named 'counter'
  known_users = atomic_read(&skb->users);
                                                                                                                            ^
drivers/net/wireless/scsc/netif.c:825:165: error: 'refcount_t' has no member named 'counter'
  known_users = atomic_read(&skb->users);
                                                                                                                                                                     ^
drivers/net/wireless/scsc/netif.c:825:223: error: 'refcount_t' has no member named 'counter'
  known_users = atomic_read(&skb->users);
                                                                                                                                                                                                                               ^
drivers/net/wireless/scsc/netif.c:825:264: error: 'refcount_t' has no member named 'counter'
  known_users = atomic_read(&skb->users);
                                                                                                                                                                                                                                                                        ^
drivers/net/wireless/scsc/netif.c:886:76: error: 'refcount_t' has no member named 'counter'
    WARN_ON(known_users &&
                                                                            ^
drivers/net/wireless/scsc/netif.c:886:153: error: 'refcount_t' has no member named 'counter'
    WARN_ON(known_users &&
                                                                                                                                                         ^
drivers/net/wireless/scsc/netif.c:886:194: error: 'refcount_t' has no member named 'counter'
    WARN_ON(known_users &&
                                                                                                                                                                                                  ^
drivers/net/wireless/scsc/netif.c:886:252: error: 'refcount_t' has no member named 'counter'
    WARN_ON(known_users &&
                                                                                                                                                                                                                                                            ^
drivers/net/wireless/scsc/netif.c:886:293: error: 'refcount_t' has no member named 'counter'
    WARN_ON(known_users &&

Change-Id: I011ad1396bf50dfd38b7c60877d9207e4718713f
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Enable net/wireless/scsc drivers (Android P)
Tarun Karela [Tue, 29 May 2018 15:56:34 +0000 (16:56 +0100)]
[9610] wlbt: Enable net/wireless/scsc drivers (Android P)

Enable CONFIG_SCSC_WLAN in 4.14 kernel

Change-Id: Ifab16f49e281b6de709b7e50c2610db1471781a1
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Patch for wbtld to work on Android P
Tarun Karela [Tue, 29 May 2018 14:13:48 +0000 (15:13 +0100)]
[9610] wlbt: Patch for wbtld to work on Android P

Provided by purnendu - netlink api has changed and that affects wbtld.
Committing it under original bugid

Change-Id: I0eb84fbb4e04523e3b73541a1174a53be610d730
SCSC-Bug-Id: SSB-36810
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation warning in client_test.c (Android P)
Tarun Karela [Tue, 29 May 2018 14:12:33 +0000 (15:12 +0100)]
[9610] wlbt: Fix compilation warning in client_test.c (Android P)

Trivial warning fix

Change-Id: I33f06cca7e240e856b851e00e0133e59267f746a
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation error in platform_mif.c
Tarun Karela [Mon, 28 May 2018 16:39:20 +0000 (17:39 +0100)]
[9610] wlbt: Fix compilation error in platform_mif.c

drivers/misc/samsung/scsc/platform_mif.c: In function 'platform_mif_map_region':
drivers/misc/samsung/scsc/platform_mif.c:1501:2: error: implicit declaration of function 'kmalloc' [-Werror=implicit-function-declaration]
  pages = kmalloc((size >> PAGE_SHIFT) * sizeof(*pages), GFP_KERNEL);
  ^
drivers/misc/samsung/scsc/platform_mif.c:1501:8: warning: assignment makes pointer from integer without a cast
  pages = kmalloc((size >> PAGE_SHIFT) * sizeof(*pages), GFP_KERNEL);
        ^
drivers/misc/samsung/scsc/platform_mif.c:1513:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
  kfree(pages);

Change-Id: I633d0e41aa929a510bdd510f928a2f9479239b11
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilation error in mxlog_transport.c (Android P)
Tarun Karela [Mon, 28 May 2018 16:14:46 +0000 (17:14 +0100)]
[9610] wlbt: Fix compilation error in mxlog_transport.c (Android P)

rivers/misc/samsung/scsc/mxlog_transport.c: In function 'mxlog_thread_start':
drivers/misc/samsung/scsc/mxlog_transport.c:223:2: error: implicit declaration of function 'get_task_struct' [-Werror=implicit-function-declaration]
  get_task_struct(th->task);
  ^
drivers/misc/samsung/scsc/mxlog_transport.c:231:3: error: implicit declaration of function 'put_task_struct' [-Werror=implicit-function-declaration]
   put_task_struct(th->task);
   ^
cc1: some warnings being treated as errors
scripts/Makefile.build:328: recipe for target 'drivers/misc/samsung/scsc/mxlog_transport.o' failed

Change-Id: I58fe04f22b907608e03938440a0148b94d23db14
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix Compilation error in scsc_wifilogger (Android P)
Tarun Karela [Mon, 28 May 2018 16:08:32 +0000 (17:08 +0100)]
[9610] wlbt: Fix Compilation error in scsc_wifilogger (Android P)

This is android p patch to fix compilation error
drivers/misc/samsung/scsc/scsc_wifilogger_debugfs.c: In function 'dfs_stats_read':
drivers/misc/samsung/scsc/scsc_wifilogger_debugfs.c:46:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
   if (copy_to_user(ubuf, statstr + *f_pos, count))

Change-Id: I3f81cefe4ac5ed447ba7c574f47fcb2be00be295
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Fix compilaton error in scsc_logring (Android P)
Tarun Karela [Mon, 28 May 2018 15:57:20 +0000 (16:57 +0100)]
[9610] wlbt: Fix compilaton error in scsc_logring (Android P)

drivers/misc/samsung/scsc/scsc_logring_ring.c: In function 'tag_writer_string':
drivers/misc/samsung/scsc/scsc_logring_ring.c:328:2: error: implicit declaration of function 'local_clock' [-Werror=implicit-function-declaration]
SCSC_FILL_RING_RECORD(rrec, tag, lev);

Change-Id: I8f73d42026283866c4c3276756251ba21bd44b6c
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Enable scsc drivers in Kconfig (Android P)
Tarun Karela [Mon, 28 May 2018 15:27:25 +0000 (16:27 +0100)]
[9610] wlbt: Enable scsc drivers in Kconfig (Android P)

Kic is commented out for now as focus is on giving an early
release asasp.

Change-Id: I1ef2f466c3324d718f7d2b2f7fecae85fb8ff5a0
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] wlbt: Copy scsc drivers from 4.9 kernel (Android P)
Tarun Karela [Sat, 26 May 2018 22:37:24 +0000 (23:37 +0100)]
[9610] wlbt: Copy scsc drivers from 4.9 kernel (Android P)

Initial commit to add scsc drivers from 4.9 kernel Leman WW.

Change-Id: Ia026bb559de6e61523a116bc6c7cbfbac56de8cd
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
6 years ago[9610] arm64: dtsi: remove power domain of smfc
Seungchul Kim [Mon, 4 Jun 2018 01:27:00 +0000 (10:27 +0900)]
[9610] arm64: dtsi: remove power domain of smfc

Change-Id: I58d60c1d11c87332d5e0ce0cd231fd786dbfff31
Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
6 years ago[COMMON] lib: dss: add A73 L2MERRSR_EL1 logging
Youngmin Nam [Tue, 10 Apr 2018 08:34:37 +0000 (17:34 +0900)]
[COMMON] lib: dss: add A73 L2MERRSR_EL1 logging

Change-Id: I4dcd667181b3de4cba8dbbc3bed70a86877e319d
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 years ago[9610] samsung: exynos-reboot: fix configuration for reboot
Youngmin Nam [Tue, 29 May 2018 08:48:38 +0000 (17:48 +0900)]
[9610] samsung: exynos-reboot: fix configuration for reboot

Change-Id: Ia65a09b1beeb5081ef552db6055d41e5928a5751
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 years agoRevert "scsi: ufs: set default UFS power management level"
JaeHun Jung [Fri, 25 May 2018 07:49:23 +0000 (16:49 +0900)]
Revert "scsi: ufs: set default UFS power management level"

This reverts commit 0c8f75869ed8941fcbf21643fced7bc652f68f14.
This patch makes to fail hibern8 exit when resume time.

Change-Id: I99d5b5edee9eae430c01392d7e45b049369b7228
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
6 years ago[9610] : ccic : add ccic driver
Junhan Bae [Thu, 24 May 2018 01:13:53 +0000 (10:13 +0900)]
[9610] : ccic : add ccic driver

Change-Id: Ieffd67581ad2331f04ed2f7df8ebdc7b19ffcd35
Signed-off-by: Junhan Bae <junhan84.bae@samsung.com>
6 years ago[9610][ERD] muic: support ifconn
Kim Taejeong [Thu, 24 May 2018 01:38:10 +0000 (10:38 +0900)]
[9610][ERD] muic: support ifconn

Change-Id: I8e997f4b2118b8eb6a237e79e976638df06ee749
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
6 years ago[COMMON] serial: Kconfig: Fix default channel number.
Kyungwoo Kang [Wed, 21 Mar 2018 07:19:26 +0000 (16:19 +0900)]
[COMMON] serial: Kconfig: Fix default channel number.

Change-Id: I660939a2ddc902471fdbdb4d8fa6a6dcf96019ca
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] spi: core: Add snapshot function to SPI
Kyungwoo Kang [Tue, 27 Mar 2018 05:51:53 +0000 (14:51 +0900)]
[COMMON] spi: core: Add snapshot function to SPI

This patch adds exynos_ss_spi to get debugging information of SPI
through exynos snapshot

Change-Id: I8938b508a51ff9a4a3523a9a9d602cf243f044f9
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] spi: Add spi_finalize_current_message when prepapre_transfer_hardware
Kyungwoo Kang [Tue, 27 Mar 2018 05:50:37 +0000 (14:50 +0900)]
[COMMON] spi: Add spi_finalize_current_message when prepapre_transfer_hardware
was failed

This patch adds spi_finalize_current_message to avoid mutex dead
lock situatoin.

Change-Id: I3d1e82522b08d795a743c5a6a5df517f9b54e21e
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] usi_v2: add usi_v2 driver to Kconfig and Makefile.
Youngmin Nam [Fri, 3 Feb 2017 04:38:52 +0000 (13:38 +0900)]
[COMMON] usi_v2: add usi_v2 driver to Kconfig and Makefile.

Change-Id: I8bc6dbc8b05b23b494d71f833d7ce80fb6ca92f9
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] usi_v2: Fix prevent code.
Kyungwoo Kang [Thu, 23 Nov 2017 09:45:38 +0000 (18:45 +0900)]
[COMMON] usi_v2: Fix prevent code.

CID 201502 Comparison with signed and unsigned int might
cause infinite value.

Change-Id: I7376fa085a84e2e6263e78cbe1cb89461bd103c4
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] usi_v2: Fix channel id alias
Kyungwoo Kang [Tue, 10 Oct 2017 02:24:08 +0000 (11:24 +0900)]
[COMMON] usi_v2: Fix channel id alias

To get Channel ID information from device tree file,
we need to match alias naming with driver code and Device tree.

Change-Id: I6d0e378b5cc46c78f9dd5039777bc6436ce75e6c
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] usi_v2: USI version2 configuration driver.
Youngmin Nam [Thu, 2 Feb 2017 08:33:04 +0000 (17:33 +0900)]
[COMMON] usi_v2: USI version2 configuration driver.

Change-Id: I4bbb7654cfa6d3503a02f0a6239544713eeaaadb
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] serial: samsung: add clk_set_rate
myung-su.cha [Thu, 26 Apr 2018 08:48:46 +0000 (17:48 +0900)]
[COMMON] serial: samsung: add clk_set_rate

Until now, UART only get clk rate from source clk.
But clk_set_rate is needed to make appropriate Baud rate which
cannot be made from source clk rate.

Change-Id: I38d15b545bf356814b9387b62ea94c38e81fc390
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
6 years ago[COMMON] serial: samsung: Add interrupt masking before enable the channel & remove...
Kyungwoo Kang [Wed, 25 Apr 2018 08:51:28 +0000 (17:51 +0900)]
[COMMON] serial: samsung: Add interrupt masking before enable the channel & remove duplicaed function call.

1. If the UART channel is located in non-alive block, SFR values go to
the reset value after the system power mode. So the interrupt
should be masked before enabling the channel otherwise Tx interrupt
will be occurred without any purpose.

2. UART channel reset is called twice when resume sequence, so we
decided to remove one of reset function call.

Change-Id: Ie84c51b0c97c572d48d302b43ec3ee64ee5ea597
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] serial: samsung: Add sfr dump function
Kyungwoo Kang [Mon, 23 Apr 2018 04:44:52 +0000 (13:44 +0900)]
[COMMON] serial: samsung: Add sfr dump function

Change-Id: Ie12bae705cc959db18e6237ce4b0589f7a12a6fe
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[COMMON] spi: s3c64xx: divide tranfer length in DMA mode.
myung-su.cha [Mon, 14 May 2018 04:12:50 +0000 (13:12 +0900)]
[COMMON] spi: s3c64xx: divide tranfer length in DMA mode.

When transfer length is over the max value of COUNT_VALUE in PACKET_CNT_REG,
spi H/W only perceives the bits of COUNT_VALUE, so spiclk is
generated less than expected numbers.
Therefore, transfer length must be divided under the max value of
PACKET_CNT COUNT_VALUE.

Change-Id: Ic3faa2dda2076544176f97d32507da63f46e24a3
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
6 years ago[COMMON] i2c: s3c2410: Remove unnecessary pm runtime fucntion calls
Kyungwoo Kang [Thu, 17 May 2018 05:49:04 +0000 (14:49 +0900)]
[COMMON] i2c: s3c2410: Remove unnecessary pm runtime fucntion calls

At 4.4 linux migration code, unnecessary PM_RUNTIME functions were
added.

Change-Id: I40cbf4cdf478d261f007053498e217d7cfdb53ac
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
6 years ago[9610] arm64: dts: fix spi dt node
myung-su.cha [Fri, 25 May 2018 06:54:26 +0000 (15:54 +0900)]
[9610] arm64: dts: fix spi dt node

PDMA channel number and clock name of SPI channels are wrongly written.
So, this patch removes or fixes pdma channel number and clock name of SPI channels.

Change-Id: I5a313f49ad13495496134c99f9a460d3ad85a3c9
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
6 years ago[9610] arm64: configs: erd9610: enable spi
myung-su.cha [Thu, 17 May 2018 07:42:24 +0000 (16:42 +0900)]
[9610] arm64: configs: erd9610: enable spi

Change-Id: Icee7f82b67a14ef8ab407347d8d890c4d30ffbf7
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
6 years ago[COMMON] spi: s3c64xx: add CONFIG_ARM64_EXYNOS_CPUIDLE
myung-su.cha [Thu, 17 May 2018 05:37:34 +0000 (14:37 +0900)]
[COMMON] spi: s3c64xx: add CONFIG_ARM64_EXYNOS_CPUIDLE

Change-Id: I795a41f9a5f6259703e9be97953b4d38040d41bb
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
6 years ago[COMMON] crypto: diskcipher: disable free_req
Boojin Kim [Thu, 24 May 2018 01:26:25 +0000 (10:26 +0900)]
[COMMON] crypto: diskcipher: disable free_req

Change-Id: Ibfa7f0def8b28f1d48330a647e87cdcfadaac339
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
6 years ago[9610][ERD] arm64: configs: run savedefconfig
Youngmin Nam [Mon, 28 May 2018 06:32:33 +0000 (15:32 +0900)]
[9610][ERD] arm64: configs: run savedefconfig

Change-Id: I353dab4c8051a0d65efba6a76dfaaec5f1c8596b
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 years ago[9610] arm64: dts: Remove unnecessary memreserve
Youngmin Nam [Fri, 25 May 2018 06:34:03 +0000 (15:34 +0900)]
[9610] arm64: dts: Remove unnecessary memreserve

This patch removes unnecessary memreserve in device tree.
Without memreserve, bootloader handles memory region.

Change-Id: I0c9982f48b1f863e4d87ec2bff1d88408020df28
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
6 years ago[COMMON] pinctrl: samsung: change return code
Hyunki Koo [Thu, 24 May 2018 11:45:50 +0000 (20:45 +0900)]
[COMMON] pinctrl: samsung: change return code

This patch change return code to remove kmemleak

unreferenced object 0xffffffc8f0f0c300 (size 128):
  comm "swapper/0", pid 1, jiffies 4294892530 (age 1408.240s)
  hex dump (first 32 bytes):
    44 7c 41 08 80 ff ff ff 98 95 d1 f0 c8 ff ff ff  D|A.............
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffff8008ad4b9c>] kmemleak_alloc+0x3c/0x68
    [<ffffff8008223190>] __kmalloc+0x20c/0x41c
    [<ffffff8008125500>] request_threaded_irq+0xc4/0x154
    [<ffffff8008128800>] devm_request_threaded_irq+0x84/0xd0
    [<ffffff8008417ac0>] exynos_eint_gpio_init+0x50/0x1d4
    [<ffffff80084168c8>] samsung_pinctrl_probe+0x8cc/0x970
    [<ffffff800853a93c>] platform_drv_probe+0x58/0xac
    [<ffffff800853830c>] driver_probe_device+0x274/0x2b4
    [<ffffff8008538ac4>] __device_attach_driver+0x98/0xb0
    [<ffffff8008536a38>] bus_for_each_drv+0x74/0xbc
    [<ffffff800853843c>] __device_attach+0xa4/0x128
    [<ffffff80085384d0>] device_initial_probe+0x10/0x18
    [<ffffff8008536b9c>] bus_probe_device+0x30/0x8c
    [<ffffff80085342c8>] device_add+0x4b4/0x544
    [<ffffff8008821268>] of_device_add+0x34/0x44
    [<ffffff8008821c4c>] of_platform_device_create_pdata+0x7c/0xb0

Change-Id: Ib4544b7f998812fd4a17e17796d65178e783d2e6
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
6 years ago[HACK] g2d: enable self protection not to use smc call
hyesoo.yu [Wed, 30 May 2018 01:45:39 +0000 (10:45 +0900)]
[HACK] g2d: enable self protection not to use smc call

Change-Id: I6e3addad86ce048f3d91b56431620ed6c0824819
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
6 years ago[9610][ERD] arm64: config: erd9610_defconfig: enable MFC
Sunyoung Kang [Mon, 21 May 2018 06:52:11 +0000 (15:52 +0900)]
[9610][ERD] arm64: config: erd9610_defconfig: enable MFC

Change-Id: I7c26974892a81888d15055ef59de5d5b28d80b78
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 years ago[COMMON] qos: Add MFC related qos.
Chungwoo Park [Tue, 29 May 2018 04:10:39 +0000 (13:10 +0900)]
[COMMON] qos: Add MFC related qos.

Change-Id: I27921a0d40a7b99d818bd1ee4aae0dcb76f2ce30
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] bts: add scenario types
Taekki Kim [Mon, 28 May 2018 09:06:33 +0000 (18:06 +0900)]
[9610] bts: add scenario types

Change-Id: I45f524162eaffb638b74110adf91e55a91aff955
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years ago[9610] arm64: dtsi: add hpa heap
hyesoo.yu [Tue, 29 May 2018 08:24:18 +0000 (17:24 +0900)]
[9610] arm64: dtsi: add hpa heap

Change-Id: I2ea3776556a70b8a2ca3ef1e351dc03e3043605b
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
6 years ago[9610] arm64: dts: add MFC device tree
Sunyoung Kang [Mon, 28 May 2018 08:31:38 +0000 (17:31 +0900)]
[9610] arm64: dts: add MFC device tree

This adds the MFC device tree file: exynos9610-mfc.dtsi

Change-Id: If7f27ec043bac4a852f6fa21573b343db421bf31
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 years ago[COMMON] media: mfc: move to the new dma-buf-container
Cho KyongHo [Fri, 13 Apr 2018 05:02:46 +0000 (14:02 +0900)]
[COMMON] media: mfc: move to the new dma-buf-container

The new, working dma-buf-container is introduced by the commit
ee1d9055d ('dma-buf: introduce dma-buf container'). It still supports
the same API functions but the contexts are slightly changed because
the design of dma-buf-container is changed.

Specifically, dmabuf_container_get_count() now returns -EINVAL instead
of 0 for the dma-bufs that is not a dma-buf-container. This change of
return value comes from the fact that dma-buf-container allows having
no dma-buf by its design although it is impossible to create an empty
dma-buf-container in practice.

Change-Id: I38b7534b2e0bb30e8ec331d019a089736d847dbe
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
6 years ago[COMMON] media: mfc: skip itmon_notifier if master is null.
Jeonghee Kim [Mon, 28 May 2018 12:22:19 +0000 (21:22 +0900)]
[COMMON] media: mfc: skip itmon_notifier if master is null.

The master information can has null value,
if a complicated itmon error occurs due to bus problem.
Skip itmon_notifier at this time.

Change-Id: I111aa765025da42fd1a8e6d5fd047bec677f9d99
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: fix the plane number check.
Jeonghee Kim [Mon, 28 May 2018 11:56:17 +0000 (20:56 +0900)]
[COMMON] media: mfc: fix the plane number check.

In the DRM encoder scenario, a dma_buf with null value was used.
get_dmabuf should be called according to the number of fds,
not the number of planes.

Change-Id: Ia7eb1c2eb1b57712b2376d82fec78de8d3418d07
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse supported version of each feature
Jeonghee Kim [Fri, 25 May 2018 06:57:55 +0000 (15:57 +0900)]
[COMMON] media: mfc: parse supported version of each feature

Added to check the supported F/W version of each feature.

It is possible to check whether each feature is supported by using the command below.
echo 1 > d/mfc/mfc_info

Change-Id: I7b28ac5136951c8bac0c4ae5856bb9e9c37a0b3f
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse default param for encoder setting
Jeonghee Kim [Thu, 24 May 2018 04:44:44 +0000 (13:44 +0900)]
[COMMON] media: mfc: parse default param for encoder setting

Change-Id: Ib8a0edf87296ba128ffd54e01ceb99661174d85c
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse sysmmu info for checking sysmmu fault.
Jeonghee Kim [Thu, 24 May 2018 00:31:03 +0000 (09:31 +0900)]
[COMMON] media: mfc: parse sysmmu info for checking sysmmu fault.

If sysmmu is used with other IPs, it should be checked whether it's an MFC fault.

Change-Id: Ibc886b774a247d434a10db092d195f2039690e49
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse dts for checking features
Jeonghee Kim [Wed, 23 May 2018 04:04:38 +0000 (13:04 +0900)]
[COMMON] media: mfc: parse dts for checking features

Change-Id: I018b700dc0ca70b2c07b3e76537a9213bbe73644
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse dts for checking qos control
Jeonghee Kim [Fri, 18 May 2018 10:04:24 +0000 (19:04 +0900)]
[COMMON] media: mfc: parse dts for checking qos control

Change-Id: Ia65d9546fc2c1beba40ddae9bfd463fce549bdbc
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse dts for checking nal_q
Jeonghee Kim [Thu, 17 May 2018 10:37:07 +0000 (19:37 +0900)]
[COMMON] media: mfc: parse dts for checking nal_q

Change-Id: I39f8dd4fcdd601d7489c3c8208ffd1960c8a3dc0
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: parse dts for checking debug_mode
Jeonghee Kim [Thu, 17 May 2018 10:04:26 +0000 (19:04 +0900)]
[COMMON] media: mfc: parse dts for checking debug_mode

Change-Id: I0c48bb82030134cc10905e82f19c32abd3a3e1fe
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: remove unused variable parsing from dts
Jeonghee Kim [Wed, 16 May 2018 09:07:15 +0000 (18:07 +0900)]
[COMMON] media: mfc: remove unused variable parsing from dts

Change-Id: Idd47a43116066818d9367e578f3385446df89567
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: change compatible and data name
Jeonghee Kim [Wed, 16 May 2018 08:54:45 +0000 (17:54 +0900)]
[COMMON] media: mfc: change compatible and data name

Change-Id: I5178feabee53e01a83a29ada79f7ac6572756699
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: OTF: change otf initialization sequence.
Jeonghee Kim [Mon, 14 May 2018 05:01:50 +0000 (14:01 +0900)]
[COMMON] media: mfc: OTF: change otf initialization sequence.

An unnecessary error message was outputted at the time of booting
while trying to get HWFC information from a repeater driver that is not initialized.
So, the location requesting HWFC information has been changed. (open->s_fmt)

Change-Id: Iaefa9670dc367d7987721ec74847ac7e3cd50757
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: OTF: remove set_es_size
Jeonghee Kim [Fri, 4 May 2018 09:56:06 +0000 (18:56 +0900)]
[COMMON] media: mfc: OTF: remove set_es_size

This function is no longer in use.

Change-Id: I626e0e96a1906e19b2801d0cca75e3a233c53cdd
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years ago[COMMON] media: mfc: add ITMON notifier.
Jeonghee Kim [Wed, 9 May 2018 11:15:54 +0000 (20:15 +0900)]
[COMMON] media: mfc: add ITMON notifier.

Change-Id: I8fa23e382d902d6aace27194c0a57ff8fc6b36cc
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: NAL-Q: modified buffer full handling
Jeonghee Kim [Tue, 8 May 2018 03:46:47 +0000 (12:46 +0900)]
media: mfc: NAL-Q: modified buffer full handling

When the buffer full error occurs,
one input buffer is returned and the NAL-Q mode continues.

Change-Id: I2d93de8d9c1f2aaca0b6559d690f1eb5f10ce042
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: support the s5p_mfc_poll() ioctl
Sunyoung Kang [Fri, 27 Apr 2018 06:01:18 +0000 (15:01 +0900)]
media: mfc: support the s5p_mfc_poll() ioctl

To use poll() ioctl, wait POLLOUT event for source
and POLLIN event for destination.

Change-Id: I35f8f31dd47408ee2d8b720a020fc4a66754986a
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
6 years agomedia: mfc: DRV4.0: remove unnecessary status
Ayoung Sim [Thu, 19 Apr 2018 01:11:17 +0000 (10:11 +0900)]
media: mfc: DRV4.0: remove unnecessary status

Change-Id: I6230ad09e3a6fb82b5fb6224d976a1ae541b0177
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV4.0: fix buffer handling after encoding
Ayoung Sim [Wed, 18 Apr 2018 10:29:57 +0000 (19:29 +0900)]
media: mfc: DRV4.0: fix buffer handling after encoding

Buffers are dequeued such as below.
- Src buffer: whenever there is a encoded addr
- Dst buffer: whenever there are stream size

Change-Id: Ie5e63facdbcadd82acea39c348320fbd2b0a9362
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV4.0: seperate mfc_nal_q_handle_stream_output
Ayoung Sim [Tue, 17 Apr 2018 06:51:55 +0000 (15:51 +0900)]
media: mfc: DRV4.0: seperate mfc_nal_q_handle_stream_output

Change-Id: I0e05108f6600367a91fbee2fb77814d5dec7c444
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV4.0: remove previous enc DRC method
Ayoung Sim [Tue, 17 Apr 2018 06:33:25 +0000 (15:33 +0900)]
media: mfc: DRV4.0: remove previous enc DRC method

Change-Id: I4a5b896a7d643f070af43d0c6803543b62a92ba1
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV4.0: support encoder DRC
Ayoung Sim [Tue, 17 Apr 2018 06:29:01 +0000 (15:29 +0900)]
media: mfc: DRV4.0: support encoder DRC

We support the DRC(Dynamic Resolution Change) using LASE_SEQ command.
So we can start from SEQ_START without CLOSE/OPEN.

Change-Id: I92a8e0e5beb889837164b3fb8917c74ec5b31ee9
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV4.0: use the crop information for QoS
Ayoung Sim [Tue, 17 Apr 2018 10:22:54 +0000 (19:22 +0900)]
media: mfc: DRV4.0: use the crop information for QoS

When driver calculates the size for QoS control,
there is a difference between decoder and encoder.
- encoder: cropped width, cropped height
- decoder: full image width, full image height

So in case of decoder, crop_width and img_width have same value.

Change-Id: I92acf2448b8541999889fbfb4bd1cacf261272d4
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV4.0: supports the encoder crop option
Ayoung Sim [Tue, 17 Apr 2018 10:21:22 +0000 (19:21 +0900)]
media: mfc: DRV4.0: supports the encoder crop option

Change-Id: I180f95791d35418053775713aa1456e648c5bf0a
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: NAL-Q: add clock control
Jeonghee Kim [Thu, 3 May 2018 09:13:52 +0000 (18:13 +0900)]
media: mfc: NAL-Q: add clock control

Change-Id: Ia9498ddfeb5a3e02ff328859956db62935d3029d
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: support encoder static info
Jeonghee Kim [Wed, 25 Apr 2018 04:02:44 +0000 (13:02 +0900)]
media: mfc: support encoder static info

Change-Id: I0d7d157751d0b51fc95d6a9000398381fbd8d75c
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: use SYSTEM HEAP region for MFC normal F/W
Jeonghee Kim [Mon, 23 Apr 2018 05:51:36 +0000 (14:51 +0900)]
media: mfc: use SYSTEM HEAP region for MFC normal F/W

Change-Id: I9fba9b38ee47f238c25d702b51a3a0ee110f228e
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: get MFC H/W version from DT
Jeonghee Kim [Mon, 23 Apr 2018 05:08:20 +0000 (14:08 +0900)]
media: mfc: get MFC H/W version from DT

Change-Id: I7a54a29b7fa11588a9bce93757120662ea1c7378
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: remove MFC version in Kconfig
Jeonghee Kim [Mon, 23 Apr 2018 04:16:59 +0000 (13:16 +0900)]
media: mfc: remove MFC version in Kconfig

Change-Id: Ibffe4cdb87bc777e42958b22b889b356ca21d627
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: add MMCache handling for MFC only
Jeonghee Kim [Tue, 17 Apr 2018 07:54:49 +0000 (16:54 +0900)]
media: mfc: add MMCache handling for MFC only

Change-Id: I4c5368ad277013df30110774a4a445f25de89071
Signed-off-by: Jiho Chang <jiho04.chang@samsung.com>
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
6 years agomedia: mfc: supports B frame encoding of NAL_Q
Ayoung Sim [Wed, 11 Apr 2018 04:51:11 +0000 (13:51 +0900)]
media: mfc: supports B frame encoding of NAL_Q

Change-Id: Ib53621c9bae74b3d58281312c5dd69de9c9426a4
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV3.2: parse the additional info in DT
Ayoung Sim [Fri, 30 Mar 2018 07:56:03 +0000 (16:56 +0900)]
media: mfc: DRV3.2: parse the additional info in DT

Informations that changes per every chip should be used
from device tree

Change-Id: Ib2d776372e954f7e3fe726505ec47501a9a69f80
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV3.2: separate dump_info and stop_hw
Ayoung Sim [Mon, 2 Apr 2018 04:52:43 +0000 (13:52 +0900)]
media: mfc: DRV3.2: separate dump_info and stop_hw

When the sysmmu page fault is occured,
panic will be occured by iommu driver.
So, we don't need to occur panic when page fault is occured.

Change-Id: I2f6842333cbd46992f5b868b319532c774220b6d
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV3.2: expand debugging mode
Ayoung Sim [Mon, 2 Apr 2018 04:49:38 +0000 (13:49 +0900)]
media: mfc: DRV3.2: expand debugging mode

Change-Id: I817e12b450ea0229b6cc9985c774012ac4974767
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV3.2: support debugging mode
Ayoung Sim [Fri, 16 Mar 2018 10:36:03 +0000 (19:36 +0900)]
media: mfc: DRV3.2: support debugging mode

This patch supports the debugging mode,
we will enable it during the verification period.
First of all, it applies to the timeout of interrupt.

Change-Id: I3b1b402a3afadd1fe01d05f9f01c25eb46f43238
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV3.2: support the SFR dump mode
Ayoung Sim [Wed, 14 Mar 2018 01:52:30 +0000 (10:52 +0900)]
media: mfc: DRV3.2: support the SFR dump mode

Whenever we want to check the SFRs,
we can control by as below sysfs command.
ex) echo 8 > /d/mfc/sfr_dump

Change-Id: I152cb042c1c2ef2217e840c9e38575ed6c0709a8
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
6 years agomedia: mfc: DRV3.2: support dump call-back function
Ayoung Sim [Wed, 14 Mar 2018 00:52:20 +0000 (09:52 +0900)]
media: mfc: DRV3.2: support dump call-back function

struct s5p_mfc_dump_ops supports the information dump function by call-back.
This is for maintain the layer of the driver.
Function of any layer can call the dump function using "call_dop()" macro,
because it exists in the lowest layer.

Change-Id: Ic452aa316d10ddb6194444fe7aa3f707080d49ae
Signed-off-by: Ayoung Sim <a.sim@samsung.com>