1. 18 Nov, 2016 29 commits
  2. 17 Nov, 2016 2 commits
  3. 16 Nov, 2016 9 commits
    • Mauro Carvalho Chehab's avatar
      Merge tag 'v4.9-rc5' into patchwork · 36f94a5c
      Mauro Carvalho Chehab authored
      Linux 4.9-rc5
      
      * tag 'v4.9-rc5': (1102 commits)
        Linux 4.9-rc5
        gp8psk: Fix DVB frontend attach
        gp8psk: fix gp8psk_usb_in_op() logic
        dvb-usb: move data_mutex to struct dvb_usb_device
        iio: maxim_thermocouple: detect invalid storage size in read()
        aoe: fix crash in page count manipulation
        lightnvm: invalid offset calculation for lba_shift
        Kbuild: enable -Wmaybe-uninitialized warnings by default
        pcmcia: fix return value of soc_pcmcia_regulator_set
        infiniband: shut up a maybe-uninitialized warning
        crypto: aesni: shut up -Wmaybe-uninitialized warning
        rc: print correct variable for z8f0811
        dib0700: fix nec repeat handling
        s390: pci: don't print uninitialized data for debugging
        nios2: fix timer initcall return value
        x86: apm: avoid uninitialized data
        NFSv4.1: work around -Wmaybe-uninitialized warning
        Kbuild: enable -Wmaybe-uninitialized warning for "make W=1"
        lib/stackdepot: export save/fetch stack for drivers
        mm: kmemleak: scan .data.ro_after_init
        ...
      36f94a5c
    • Marek Szyprowski's avatar
      [media] s5p-mfc: Fix clock management in s5p_mfc_release() function · c0026c7b
      Marek Szyprowski authored
      Clock control indirectly requires access to MFC device, so call it only
      if we are sure that the device exists in s5p_mfc_release function.
      s5p_mfc_remove() calls s5p_mfc_final_pm(), which releases all PM related
      resources, including clocks, so any call to clocks related functions
      is not valid after s5p_mfc_final_pm().
      
      Fixes: d695c12c ("[media] media: s5p-mfc fix invalid memory access from
      s5p_mfc_release()")
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      c0026c7b
    • Marek Szyprowski's avatar
      [media] s5p-mfc: Use clock gating only on MFC v5 hardware · c5086f13
      Marek Szyprowski authored
      Newer MFC hardware have internal clock gating feature, so additional
      software-triggered clock gating sometimes causes misbehavior of the MFC
      firmware and results in freeze or crash. This patch changes the driver
      to use software-triggered clock gating only when working with v5 MFC
      hardware, where it has been proven to work properly.
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      c5086f13
    • Donghwa Lee's avatar
      [media] s5p-mfc: Skip incomplete frame · 5d1ec731
      Donghwa Lee authored
      Currently, when incomplete frame is received in the middle of
      decoding, driver treats it as an error, so src/dst queue and
      clock are cleaned. Although it is obviously error case, it is
      needed to maintain video decoding in case of necessity. This
      patch supports skip incomplete frame to next.
      Signed-off-by: default avatarDonghwa Lee <dh09.lee@samsung.com>
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      5d1ec731
    • Ingi Kim's avatar
      [media] s5p-mfc: Fix MFC context buffer size · dd62b8f1
      Ingi Kim authored
      When video file was decoded by H/W MFCv8. It occurred IOMMU page fault
      because of accessing abnormal memory of mfc ctx buf.
      
      So this patch supports buffer size of mfc context more.
      Relevant page fault error is below.
      
      [ 3524.617147] PAGE FAULT occurred at 0x10108000 by 11200000.sysmmu(Page table base: 0x6d86c000)
      [ 3524.624192]  Lv1 entry: 0x6c27d001
      [ 3524.627567]   Lv2 entry: 0x0
      [ 3524.630482] ------------[ cut here ]------------
      [ 3524.635020] kernel BUG at drivers/iommu/exynos-iommu.c:358!
      [ 3524.640567] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
      [ 3524.646373] Modules linked in:
      [ 3524.649410] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.0.0-00001-g0ff9b87-dirty #18
      [ 3524.657117] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
      [ 3524.663184] task: c0e4aff0 ti: c0e3c000 task.ti: c0e3c000
      [ 3524.668566] PC is at exynos_sysmmu_irq+0x1b8/0x2c4
      [ 3524.673330] LR is at vprintk_emit+0x2b8/0x58c
      [ 3524.677657] pc : [<c037cc78>]    lr : [<c00704a4>]    psr: 600d0193
      [ 3524.677657] sp : c0e3dd90  ip : 00000000  fp : c0e3ddcc
      [ 3524.689092] r10: ee29a110  r9 : 00000000  r8 : ee29a128
      [ 3524.694292] r7 : ed812810  r6 : 10108000  r5 : ed86c000  r4 : 00000000
      [ 3524.700791] r3 : c0ec9bd8  r2 : 00000000  r1 : 00000000  r0 : ed82ff00
      [ 3524.707292] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
      [ 3524.714656] Control: 10c5387d  Table: 6b08c06a  DAC: 00000015
      [ 3524.720375] Process swapper/0 (pid: 0, stack limit = 0xc0e3c210)
      [ 3524.726354] Stack: (0xc0e3dd90 to 0xc0e3e000)
      [ 3524.730689] dd80:                                     c0e3dd9c c0069d68 ee58c338 6d86c000
      [ 3524.738836] dda0: ee58c338 ee298c40 ee2915a0 0000003b c0e64ef4 c0e3c000 00000000 00000000
      [ 3524.746981] ddc0: c0e3de14 c0e3ddd0 c0071ef4 c037cacc ffffffff a00d0193 c0e3ddf4 ee291540
      [ 3524.755126] dde0: c0ec793c c0ec7928 7fffffff ee291540 ee2915a0 ee298c40 c0e64ef4 ee004660
      [ 3524.763272] de00: ee010800 c0e3df00 c0e3de34 c0e3de18 c0072138 c0071e9c 00020000 ee291540
      [ 3524.771418] de20: ee2915a0 00000016 c0e3de4c c0e3de38 c0075130 c00720f8 0000003b ee028300
      [ 3524.779563] de40: c0e3de64 c0e3de50 c0071450 c0075068 00000100 00000012 c0e3de8c c0e3de68
      [ 3524.787708] de60: c030d240 c0071420 c030d19c 00000016 00000000 00000016 00000000 00000001
      [ 3524.795854] de80: c0e3dea4 c0e3de90 c0071450 c030d1a8 00000092 c0e37a1c c0e3ded4 c0e3dea8
      [ 3524.804000] dea0: c0071790 c0071420 c0e3df00 f000200c 00000016 c0e440a8 c0e3df00 f0002000
      [ 3524.812145] dec0: c095bc8c 00000001 c0e3defc c0e3ded8 c0008730 c0071710 c0010d88 c0010d8c
      [ 3524.820290] dee0: 600d0013 ffffffff c0e3df34 c0ec7eb4 c0e3df54 c0e3df00 c0014780 c00086fc
      [ 3524.828436] df00: 00000001 00000000 00000000 c0020780 c0e3c000 c0e43530 00000000 00000000
      [ 3524.836581] df20: c0ec7eb4 c095bc8c 00000001 c0e3df54 c0e3df58 c0e3df48 c0010d88 c0010d8c
      [ 3524.844727] df40: 600d0013 ffffffff c0e3df94 c0e3df58 c0062690 c0010d50 c0ec75f0 00000001
      [ 3524.852872] df60: c0e3df84 c0e4353c c0e39580 c0e43e84 c0e3c000 00000002 c0e3df58 c0e38b88
      [ 3524.861018] df80: c0952b9c ffffffff c0e3dfac c0e3df98 c094d1b8 c00622d4 c0e3c000 c0e43e10
      [ 3524.869163] dfa0: c0e3dff4 c0e3dfb0 c0d86d30 c094d130 ffffffff ffffffff c0d866f0 00000000
      [ 3524.877309] dfc0: 00000000 c0df06d8 00000000 c0ee3f14 c0e434c0 c0df06d4 c0e4c20c 4000406a
      [ 3524.885454] dfe0: 410fc073 00000000 00000000 c0e3dff8 40008074 c0d86970 00000000 00000000
      [ 3524.893610] [<c037cc78>] (exynos_sysmmu_irq) from [<c0071ef4>] (handle_irq_event_percpu+0x64/0x25c)
      [ 3524.902615] [<c0071ef4>] (handle_irq_event_percpu) from [<c0072138>] (handle_irq_event+0x4c/0x6c)
      [ 3524.911454] [<c0072138>] (handle_irq_event) from [<c0075130>] (handle_level_irq+0xd4/0x14c)
      [ 3524.919773] [<c0075130>] (handle_level_irq) from [<c0071450>] (generic_handle_irq+0x3c/0x4c)
      [ 3524.928180] [<c0071450>] (generic_handle_irq) from [<c030d240>] (combiner_handle_cascade_irq+0xa4/0x110)
      [ 3524.937624] [<c030d240>] (combiner_handle_cascade_irq) from [<c0071450>] (generic_handle_irq+0x3c/0x4c)
      [ 3524.946981] [<c0071450>] (generic_handle_irq) from [<c0071790>] (__handle_domain_irq+0x8c/0xfc)
      [ 3524.955646] [<c0071790>] (__handle_domain_irq) from [<c0008730>] (gic_handle_irq+0x40/0x78)
      [ 3524.963966] [<c0008730>] (gic_handle_irq) from [<c0014780>] (__irq_svc+0x40/0x74)
      [ 3524.971412] Exception stack(0xc0e3df00 to 0xc0e3df48)
      [ 3524.976441] df00: 00000001 00000000 00000000 c0020780 c0e3c000 c0e43530 00000000 00000000
      [ 3524.984586] df20: c0ec7eb4 c095bc8c 00000001 c0e3df54 c0e3df58 c0e3df48 c0010d88 c0010d8c
      [ 3524.992729] df40: 600d0013 ffffffff
      [ 3524.996205] [<c0014780>] (__irq_svc) from [<c0010d8c>] (arch_cpu_idle+0x48/0x4c)
      [ 3525.003567] [<c0010d8c>] (arch_cpu_idle) from [<c0062690>] (cpu_startup_entry+0x3c8/0x4a4)
      [ 3525.011805] [<c0062690>] (cpu_startup_entry) from [<c094d1b8>] (rest_init+0x94/0x98)
      [ 3525.019516] [<c094d1b8>] (rest_init) from [<c0d86d30>] (start_kernel+0x3cc/0x3d8)
      [ 3525.026963] Code: e34c30ec e5932004 e3520000 ca000018 (e7f001f2)
      [ 3525.033028] ---[ end trace 71ed544f653b4d46 ]---
      Signed-off-by: default avatarIngi Kim <ingi2.kim@samsung.com>
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      dd62b8f1
    • Andrzej Hajda's avatar
      [media] s5p-mfc: Correct scratch buffer size of H.263 decoder · f662f1b7
      Andrzej Hajda authored
      Driver complains about too small scratch buffer size. After adjusting
      it according to vendor code, decoding works.
      
      [mszyprow: moved the change to the header file]
      Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      f662f1b7
    • Marek Szyprowski's avatar
      [media] exynos-gsc: Add support for Exynos5433 specific version · 92955ea0
      Marek Szyprowski authored
      This patch adds support for Exynos5433 specific version of the GScaler
      module. The main difference between Exynos 5433 and earlier is addition
      of new clocks that have to be controlled.
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Tested-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      92955ea0
    • Marek Szyprowski's avatar
      [media] exynos-gsc: Enable driver on ARCH_EXYNOS · 6f99e1b8
      Marek Szyprowski authored
      This driver can be also used on Exynos5433, which is ARM64-based
      platform, which selects only ARCH_EXYNOS symbol.
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Tested-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      6f99e1b8
    • Marek Szyprowski's avatar
      [media] exynos-gsc: Use of_device_get_match_data() helper · aa7929f5
      Marek Szyprowski authored
      Replace open-coded driver data extraction code with generic helper.
      Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
      Tested-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      aa7929f5