Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H264 encode make kernel hang #44

Closed
wants to merge 100 commits into from

Commits on Jun 20, 2017

  1. ARM64: rockchip: dts: add video decoder nodes

    The RK3328 has two video IP sharing the same mmu,
    but only the VDPU is available in this platform.
    
    Change-Id: I24d73cd5ab2c3d32da6ef29661061c7fda9186f2
    Signed-off-by: Randy Li <randy.li@rock-chips.com>
    Randy Li authored and ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    dede890 View commit details
    Browse the repository at this point in the history
  2. ARM64: rockchip: dts: enable video decoder for RK3328 EVB

    This commit would enable the VDPU and RKVDEC devices. The VDPU works in the non combo mode.
    
    Change-Id: I643350d5a2ac17759984fda2e95fb2b82701e7cf
    Signed-off-by: Randy Li <randy.li@rock-chips.com>
    Signed-off-by: Hans Yang <yhx@rock-chips.com>
    
    Conflicts:
    	arch/arm64/boot/dts/rockchip/rk3328-evb.dts
    Randy Li authored and ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    c1aca7d View commit details
    Browse the repository at this point in the history
  3. dts: Add rock64 dts

    wlcheah authored and ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    2bccb7e View commit details
    Browse the repository at this point in the history
  4. Renamed to rock64 to rk3328-rock64

    wlcheah authored and ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    74e1af6 View commit details
    Browse the repository at this point in the history
  5. dts: renamed model for rock64

    wlcheah authored and ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    55f19aa View commit details
    Browse the repository at this point in the history
  6. Fix test failures

    Change-Id: Idf5691c7b0c7da75579be410c2fb5e1a346ab012
    ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    1adb0d4 View commit details
    Browse the repository at this point in the history
  7. Update rock64

    Change-Id: I4d0b01491f4183c7e700fdb8ba7025871a162951
    ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    7b1605c View commit details
    Browse the repository at this point in the history
  8. Revert "drm: bridge: dw-hdmi: add hdcp1.4 support"

    This reverts commit 1f58bcd.
    ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    bf512ba View commit details
    Browse the repository at this point in the history
  9. Fix DTS

    Change-Id: I2c01055569640e8238f48ec069ec4a58300dccd8
    ayufan committed Jun 20, 2017
    Configuration menu
    Copy the full SHA
    ed67c63 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2017

  1. Revert "Revert "drm: bridge: dw-hdmi: add hdcp1.4 support""

    This reverts commit bf512ba.
    ayufan committed Jun 23, 2017
    Configuration menu
    Copy the full SHA
    986aea8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    069585e View commit details
    Browse the repository at this point in the history
  3. For arm64 do not compress kernel

    Change-Id: I02e7ab0bed3166cf98483f35b3f4da6113baacd6
    ayufan committed Jun 23, 2017
    Configuration menu
    Copy the full SHA
    e7ee1cc View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2017

  1. Configuration menu
    Copy the full SHA
    f9ac151 View commit details
    Browse the repository at this point in the history
  2. rk3288-miniarm: enable wifi

    Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    30ded88 View commit details
    Browse the repository at this point in the history
  3. rk3288-miniarm: update dts

    Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    865e144 View commit details
    Browse the repository at this point in the history
  4. video/rockchip: raise up vpu clock

    LongChair authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    c516ce0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5241554 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eca77e9 View commit details
    Browse the repository at this point in the history
  7. DRM: add help to get ELD speaker allocation

    Add helper to allow users to retrieve the speaker allocations without
    knowledge of the ELD structure.
    
    Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
    Reviewed-by: Jani Nikula <jani.nikula@intel.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    arnopo authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    d09c2f1 View commit details
    Browse the repository at this point in the history
  8. ASoC: core: add optional pcm_new callback for DAI driver

    During probe, DAIs can need to perform some actions that requests
    the knowledge of the pcm runtime handle.
    The callback is called during DAIs linking, after PCM device creation.
    For instance this can be used to add relationship between a DAI pcm
    control and the pcm device.
    
    Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    arnopo authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    b8bbd47 View commit details
    Browse the repository at this point in the history
  9. ASoC: hdmi-codec: add channel mapping control

    Add user interface to provide channel mapping.
    In a first step this control is read only.
    
    As TLV type, the control provides all configuration available for
    HDMI sink(ELD), and provides current channel mapping selected by codec
    based on ELD and number of channels specified by user on open.
    When control is called before the number of the channel is specified
    (i.e. hw_params is set), it returns all channels set to UNKNOWN.
    
    Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    arnopo authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    234678b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ff65e7d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6bd5d90 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fee0cad View commit details
    Browse the repository at this point in the history
  13. drm : allow framebuffer and videomodes not to have same size

    DRM legacy doesn't allow that, will be only available with drm atomic.
    Although, when running 4K modes, it's preferable to get a 1080p frambuffer that can be handlded properly by GPU and then use VOP to upscale that to 4K.
    LongChair authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    6be005e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4e01f6c View commit details
    Browse the repository at this point in the history
  15. Revert squashfs changes

    Revert "Squashfs: optimize reading uncompressed data"
    
    This reverts commit 0c2f831.
    
    Revert "Squashfs: implement .readpages()"
    
    This reverts commit 9c6d9ab.
    
    Revert "Squashfs: replace buffer_head with BIO"
    
    This reverts commit 8327714.
    
    Revert "Squashfs: refactor page_actor"
    
    This reverts commit 4bc7d97.
    
    Revert "Squashfs: remove the FILE_CACHE option"
    
    This reverts commit 3de0af4.
    Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    f75b7ae View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3fba9be View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1011d24 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6a462bd View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    28535a5 View commit details
    Browse the repository at this point in the history
  20. net: phy: Add rockchip phy support

    Support internal ephy currently.
    
    Change-Id: I8d85e7f98d152dc74ac2036de384625d0d228f2b
    Signed-off-by: David Wu <david.wu@rock-chips.com>
    SuperDavidWu authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    e2ac588 View commit details
    Browse the repository at this point in the history
  21. ethernet: stmmac: dwmac-rk: Add support internal phy for rk3328

    Change-Id: I7b596d97bc76dd9fd969fd7c22d6a04a5504a073
    Signed-off-by: David Wu <david.wu@rock-chips.com>
    SuperDavidWu authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    ca92000 View commit details
    Browse the repository at this point in the history
  22. arm64: dts: rockchip: Add support gmac2phy for rk3328

    Change-Id: If2c0e5b6d50ba4326f6ca7d2ee4a1c87e7682959
    Signed-off-by: David Wu <david.wu@rock-chips.com>
    SuperDavidWu authored and Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    9b0a27a View commit details
    Browse the repository at this point in the history
  23. rk3328-box: work-in-progress

    Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    447d6ff View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    530b064 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f944f84 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    7bff776 View commit details
    Browse the repository at this point in the history
  27. rk3288: add 1704/1800Mhz opp

    Kwiboo committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    c145fd8 View commit details
    Browse the repository at this point in the history
  28. Enable a bunch of network and filesystem modules

    Change-Id: I57c0efd009b4f443eda9b3da8e397e5c19e4e40e
    ayufan committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    bf36156 View commit details
    Browse the repository at this point in the history
  29. Enable additional dvb and wlan modules

    Change-Id: Ia108663f0c30b4d28d775738a62669c3e4f2a14a
    ayufan committed Jun 24, 2017
    Configuration menu
    Copy the full SHA
    72dfd39 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2017

  1. Compile-in CONFIG_UNIX

    Change-Id: Idf130dbf2f9e0f8d00519a320263fe9771d7e2de
    ayufan committed Jun 25, 2017
    Configuration menu
    Copy the full SHA
    d9f8397 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2017

  1. Remove unused PCI based Ethernet drivers, remove SDIO wifi driver, ad…

    …d modules for USB wifi hardware (#1)
    xalius authored and ayufan committed Jul 2, 2017
    Configuration menu
    Copy the full SHA
    1f744a3 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2017

  1. Add support for generic SPI NOR flash and the GD25Q128 on Rock64 (#2)

    * Add support for mtd devices, generic SPI NOR flash and the GD25Q128 NOR flash on the Rock64
    
    * Delete SPI DMA properties via board dts, fix kernel config.
    
    * Disable SPI debug.
    xalius authored and ayufan committed Jul 3, 2017
    Configuration menu
    Copy the full SHA
    f0a0669 View commit details
    Browse the repository at this point in the history
  2. Enable mtdparts and fanotify

    Change-Id: Ia3c5339eadaa95d72b142b2f44f30df43075c791
    ayufan committed Jul 3, 2017
    Configuration menu
    Copy the full SHA
    a3944a4 View commit details
    Browse the repository at this point in the history
  3. Squashed commit of the following:

    commit b556c9a
    Author: Kamil Trzcinski <ayufan@ayufan.eu>
    Date:   Mon Jul 3 23:44:11 2017 +0200
    
        Check address valideness and save use vendor mtd partition
    
        Change-Id: I35f5ade707470dbfe2c7d62697802f40019bd58d
    
    commit c07592e
    Author: Kamil Trzcinski <ayufan@ayufan.eu>
    Date:   Mon Jul 3 21:49:12 2017 +0200
    
        Use vendor from MTD
    
        Change-Id: I9f977a541a715256b7cae4d7b59000d7aa5b9055
    
    Change-Id: Ie96ba984aa67c43b5a540d6efd9cd7d7d5817b02
    ayufan committed Jul 3, 2017
    Configuration menu
    Copy the full SHA
    d7a913f View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2017

  1. Configuration menu
    Copy the full SHA
    0831fbb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4903a7 View commit details
    Browse the repository at this point in the history
  3. Make emmc to be always mmcblk0, and sd to be always mmcblk1

    Change-Id: Id57301eab1212b8d5f3435cf560773978a5c93f9
    ayufan committed Jul 6, 2017
    Configuration menu
    Copy the full SHA
    be1947a View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2017

  1. Optimise kernel config

    - include additional cgroups for mem, pids and block,
    - disable CONFIG_RK_PARTITION as it clashes with GPT when boot over eMMC,
    - enable NBD and AOE
    
    Change-Id: Ifad46b1eaaede1186c52472e313b13f64a619d57
    ayufan committed Jul 7, 2017
    Configuration menu
    Copy the full SHA
    17cebdb View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2017

  1. Merge remote-tracking branch 'kwiboo/rockchip-4.4' into release-4.4

    Change-Id: Ibab4744b5cb660385ca2d6fade356ee51fc83414
    ayufan committed Jul 8, 2017
    Configuration menu
    Copy the full SHA
    3b7ef43 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2017

  1. dts: Remove SDIO wifi support. (#6)

    xalius authored and ayufan committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    b3a68ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0d4377 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2017

  1. Fix HS-200 eMMC bus mode (#8)

    * Since the 'clock-freq-min-max' is deprecated, we use max-frequency.
    
    * dts: fix emmc clocks, enable HS-200 mode
    xalius authored and ayufan committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    57caa2d View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2017

  1. Configuration menu
    Copy the full SHA
    6d33722 View commit details
    Browse the repository at this point in the history
  2. Add 1.4Ghz operating point, disable energy aware scheduling. (#10)

    * dts: enable 1.4Ghz / 1.35V operating point for testing.
    
    * Disable energy aware scheduling, we have currently no model.
    xalius authored and ayufan committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    328ae88 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2017

  1. Revert "Add 1.4Ghz operating point, disable energy aware scheduling. (#…

    …10)"
    
    This reverts commit 328ae88.
    
    Change-Id: Ifa0196660c78be99b654f22e02f8d5dbebf991d9
    ayufan committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    5c6b473 View commit details
    Browse the repository at this point in the history
  2. Fix vendor storage to erase before writing

    Change-Id: I4ceb2f351afcc37e4a4c34c9305b8e96511a35a2
    ayufan committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    b6632f1 View commit details
    Browse the repository at this point in the history
  3. Configure mtdparts in rock64.dts and enable CONFIG_MTD_OF_PARTS

    Change-Id: Id89bcc3547920f3c58f7ce04c3a08dafd3c8bb38
    ayufan committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    933b62e View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2017

  1. Remove gmac2phy as it is not currently working stable

    Change-Id: I65713e622c46ed2028166cd54ce56794ae00d766
    ayufan committed Aug 20, 2017
    Configuration menu
    Copy the full SHA
    cf15669 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2017

  1. Expose leds and pwrkey

    Change-Id: I05fd4132f04235d4464d29496b090f75d9352836
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    649e45e View commit details
    Browse the repository at this point in the history
  2. Revert "Merge remote-tracking branch 'kwiboo/rockchip-4.4' into relea…

    …se-4.4"
    
    This reverts commit 3b7ef43, reversing
    changes made to 17cebdb.
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    24b2ac7 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'rockchip/release-4.4' into release-4.4

    Change-Id: I6eca20102609dd5b4d111e84da71b64b79d8598a
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    63a28bd View commit details
    Browse the repository at this point in the history
  4. Fix dts and config

    Change-Id: I0ca083128af53409c97c6c5900af887a06955201
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    7f14cbd View commit details
    Browse the repository at this point in the history
  5. Enable hdmiphy and enable vop registers

    Change-Id: I59580d1828dba31df39720be9832593e4b9c8bdd
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    3f0cead View commit details
    Browse the repository at this point in the history
  6. Improve leds configuration

    Change-Id: Ie35667d264963952c4ff5311199db9a7f6c91a27
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    233234c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e5b10bb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6d432d3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b380c19 View commit details
    Browse the repository at this point in the history
  10. Fetch changes from Kwiboo

    Change-Id: I85efbe0bec06c450fe43d8a8b59da71ee388dd20
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    c2ab278 View commit details
    Browse the repository at this point in the history
  11. Reorganize rockchip_linux_defconfig

    Change-Id: Ic618bada2e8a158f107192b056630cc08b42188c
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    37d293d View commit details
    Browse the repository at this point in the history
  12. Fix standby vs power leds

    Change-Id: I88695d123e4b2fa0261c5bd30e365da06be99c8b
    ayufan committed Aug 27, 2017
    Configuration menu
    Copy the full SHA
    76f4921 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2017

  1. Revert "dmaengine: pl330: _loop_cyclic supports unaligned size"

    This reverts commit 13dbe2c.
    Kwiboo authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    17187bb View commit details
    Browse the repository at this point in the history
  2. Revert "dmaengine: pl330: redefine the cyclic transfer"

    This reverts commit 5f63878.
    Kwiboo authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    3694730 View commit details
    Browse the repository at this point in the history
  3. Revert "dmaengine: pl330: make transfer run infinitely without CPU in…

    …tervention"
    
    This reverts commit e8a6e50.
    Kwiboo authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    3432ab7 View commit details
    Browse the repository at this point in the history
  4. Revert "dmaengine: pl330: support transfer that doesn't align with (b…

    …urst len * burst size)"
    
    This reverts commit c66ecf1.
    Kwiboo authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    ed0f3d8 View commit details
    Browse the repository at this point in the history
  5. Revert "dmaengine: pl330: add burst mode according to dts config"

    This reverts commit 8e770f3.
    Kwiboo authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    ad8c976 View commit details
    Browse the repository at this point in the history
  6. UPSTREAM: dmaengine: pl330: explicitly freeup irq

    dmaengine device should explicitly call devm_free_irq() when using
    devm_request_irq().
    
    The irq is still ON when devices remove is executed and irq should be
    quiesced before remove is completed.
    
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    Cc: Jassi Brar <jassisinghbrar@gmail.com>
    Cc: Linus Walleij <linus.walleij@linaro.org>
    (cherry picked from commit 46cf94d)
    Vinod Koul authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    e4eaac9 View commit details
    Browse the repository at this point in the history
  7. UPSTREAM: dmaengine: pl330: fix residual for non-running BUSY descrip…

    …tors
    
    Only one descriptor in the work list should be running at
    any given time, but it's possible to have an enqueued BUSY
    descriptor that has not yet transferred any data, or for
    a BUSY descriptor to linger briefly before transitioning
    to DONE. These cases should be handled to keep residual
    calculations consistent even with the non-running BUSY
    descriptors in the work list.
    
    Signed-off-by: Stephen Barber <smbarber@chromium.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit d64e9a2)
    Stephen Barber authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    912cfa0 View commit details
    Browse the repository at this point in the history
  8. UPSTREAM: dmaengine: pl330: Acquire dmac's spinlock in pl330_tx_status

    There is a racing when accessing dmac thread in pl330_tx_status that
    the pl330_update is handling active request at the same time and
    changing the status of descriptors. This could cause an invalid
    transferred count from BUSY descriptor added up to the residual number.
    Fix the bug by using the dmac's spinlock in pl330_tx_status to protect
    thread resources from changing.
    Note that the nested order of holding dmac's and dma_chan's spinlock is
    consistent with the rest of the driver: dma_chan first and then dmac,
    so it is safe from deadlock scenario.
    
    Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
    Reviewed-by: Guenter Roeck <groeck@chromium.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit a40235a)
    Hsin-Yu Chao authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    3aa7cc1 View commit details
    Browse the repository at this point in the history
  9. UPSTREAM: dmaengine: pl330: Handle xferred count if DMAMOV hasn't fin…

    …ished
    
    After executing DMAGO it's possible that a request can come in for the
    current xferred count, but if that happens too soon then DMAMOV SAR/DAR
    may not have yet completed. If that happens, we should explicitly return 0
    since nothing has been transferred yet.
    
    Signed-off-by: Stephen Barber <smbarber@chromium.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit c44da03)
    Stephen Barber authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    4e049ba View commit details
    Browse the repository at this point in the history
  10. UPSTREAM: dmaengine: pl330: do not generate unaligned access

    When PL330 is used with !MMU the following fault is seen:
    
    Unhandled fault: alignment exception (0x801) at 0x8f26a002
    Internal error: : 801 [#1] ARM
    Modules linked in:
    CPU: 0 PID: 640 Comm: dma0chan0-copy0 Not tainted 4.8.0-6a82063-clean+ #1600
    Hardware name: ARM-Versatile Express
    task: 8f1baa80 task.stack: 8e6fe000
    PC is at _setup_req+0x4c/0x350
    LR is at 0x8f2cbc00
    pc : [<801ea538>]    lr : [<8f2cbc00>]    psr: 60000093
    sp : 8e6ffdc0  ip : 00000000  fp : 00000000
    r10: 00000000  r9 : 8f2cba10  r8 : 8f2cbc00
    r7 : 80000013  r6 : 8f21a050  r5 : 8f21a000  r4 : 8f2ac800
    r3 : 8e6ffe18  r2 : 00944251  r1 : ffffffbc  r0 : 8f26a000
    Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
    Control: 00c5387c
    Process dma0chan0-copy0 (pid: 640, stack limit = 0x8e6fe210)
    Stack: (0x8e6ffdc0 to 0x8e700000)
    fdc0: 00000001 60000093 00000000 8f2cba10 8f26a000 00000004 8f0ae000 8f2cbc00
    fde0: 8f0ae000 8f2ac800 8f21a000 8f21a050 80000013 8f2cbc00 8f2cba10 00000000
    fe00: 60000093 801ebca0 8e6ffe18 000013ff 40000093 00000000 00944251 8f2ac800
    fe20: a0000013 8f2b1320 00001986 00000000 00000001 000013ff 8f1e4f00 8f2cba10
    fe40: 8e6fff6c 801e9044 00000003 00000000 fef98c80 002faf07 8e6ffe7c 00000000
    fe60: 00000002 00000000 00001986 8f1f158d 8f1e4f00 80568de4 00000002 00000000
    fe80: 00001986 8f1f53ff 40000001 80580500 8f1f158d 8001e00c 00000000 cfdfdfdf
    fea0: fdae2a25 00000001 00000004 8e6fe000 00000008 00000010 00000000 00000005
    fec0: 8f2b1330 8f2b1334 8e6ffe80 8e6ffe8c 00001986 00000000 8f21a014 00000001
    fee0: 8e6ffe60 8e6ffe78 00000002 00000000 000013ff 00000001 80568de4 8f1e8018
    ff00: 0000158d 8055ec30 00000001 803f6b00 00001986 8f2cba10 fdae2a25 00000001
    ff20: 8f1baca8 8e6fff24 8e6fff24 00000000 8e6fff24 ac6f3037 00000000 00000000
    ff40: 00000000 8e6fe000 8f1e4f40 00000000 8f1e4f40 8f1e4f00 801e84ec 00000000
    ff60: 00000000 00000000 00000000 80031714 dfdfdfcf 00000000 dfdfdfcf 8f1e4f00
    ff80: 00000000 8e6fff84 8e6fff84 00000000 8e6fff90 8e6fff90 8e6fffac 8f1e4f40
    ffa0: 80031640 00000000 00000000 8000f548 00000000 00000000 00000000 00000000
    ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 dfdfdfcf cfdfdfdf
    [<801ea538>] (_setup_req) from [<801ebca0>] (pl330_tasklet+0x41c/0x490)
    [<801ebca0>] (pl330_tasklet) from [<801e9044>] (dmatest_func+0xb58/0x149c)
    [<801e9044>] (dmatest_func) from [<80031714>] (kthread+0xd4/0xec)
    [<80031714>] (kthread) from [<8000f548>] (ret_from_fork+0x14/0x2c)
    Code: e3a03001 e3e01043 e5c03001 e59d3048 (e5802002)
    
    This happens because _emit_{ADDH,MOV,GO) accessing to unaligned data
    while writing to buffer. Fix it with writing to buffer byte by byte.
    
    Reviewed-by: Robin Murphy <robin.murphy@arm.com>
    Tested-by: Robin Murphy <robin.murphy@arm.com>
    Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit d07c9e1)
    Vladimir Murzin authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    8c63bfe View commit details
    Browse the repository at this point in the history
  11. UPSTREAM: dmaengine: pl330: remove unused ‘regs’

    In pl330_add(), variable ‘regs’ is initialized but never used, which
    leads to warning with W=1.
    
    drivers/dma/pl330.c: In function 'pl330_add':
    drivers/dma/pl330.c:1891:16: warning: variable 'regs' set but not used [-Wunused-but-set-variable]
    
    So remove it.
    
    Cc: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit 920e00d)
    Vinod Koul authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    44d35fb View commit details
    Browse the repository at this point in the history
  12. UPSTREAM: dmaengine: pl330: fix double lock

    The static bug finder EBA (http://www.iagoabal.eu/eba/) reported the
    following double-lock bug:
    
        Double lock:
        1. spin_lock_irqsave(pch->lock, flags) at pl330_free_chan_resources:2236;
        2. call to function `pl330_release_channel' immediately after;
        3. call to function `dma_pl330_rqcb' in line 1753;
        4. spin_lock_irqsave(pch->lock, flags) at dma_pl330_rqcb:1505.
    
    I have fixed it as suggested by Marek Szyprowski.
    
    First, I have replaced `pch->lock' with `pl330->lock' in functions
    `pl330_alloc_chan_resources' and `pl330_free_chan_resources'. This avoids
    the double-lock by acquiring a different lock than `dma_pl330_rqcb'.
    
    NOTE that, as a result, `pl330_free_chan_resources' executes
    `list_splice_tail_init' on `pch->work_list' under lock `pl330->lock',
    whereas in the rest of the code `pch->work_list' is protected by
    `pch->lock'. I don't know if this may cause race conditions. Similarly
    `pch->cyclic' is written by `pl330_alloc_chan_resources' under
    `pl330->lock' but read by `pl330_tx_submit' under `pch->lock'.
    
    Second, I have removed locking from `pl330_request_channel' and
    `pl330_release_channel' functions. Function `pl330_request_channel' is
    only called from `pl330_alloc_chan_resources', so the lock is already
    held. Function `pl330_release_channel' is called from
    `pl330_free_chan_resources', which already holds the lock, and from
    `pl330_del'. Function `pl330_del' is called in an error path of
    `pl330_probe' and at the end of `pl330_remove', but I assume that there
    cannot be concurrent accesses to the protected data at those points.
    
    Signed-off-by: Iago Abal <mail@iagoabal.eu>
    Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit 91539eb)
    IagoAbal authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    db28adf View commit details
    Browse the repository at this point in the history
  13. UPSTREAM: dmaengine: pl330: fix warning in pl330_remove

    When removing a device with less than 9 IRQs (AMBA_NR_IRQS), we'll get a
    big WARN_ON from devres.c because pl330_remove calls devm_free_irqs for
    unallocated irqs. Similarly to pl330_probe, check that IRQ number is
    present before calling devm_free_irq.
    
    Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit ebcdaee)
    Jean-Philippe Brucker authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    3b816e1 View commit details
    Browse the repository at this point in the history
  14. UPSTREAM: dmaengine: pl330: remove pdata based initialization

    This driver is now used only on platforms which support device tree, so
    it is safe to remove legacy platform data based initialization code.
    
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    For plat-samsung:
    Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit e8bb467)
    mszyprow authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    d410ec0 View commit details
    Browse the repository at this point in the history
  15. UPSTREAM: dmaengine: pl330: Delete unused functions

    The functions _queue_empty(), _emit_ADDH(), _emit_NOP(), _emit_STZ()
    and _emit_WFE() are not used. Delete them.
    
    Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    (cherry picked from commit d43674e)
    Matthias Kaehlcke authored and ayufan committed Aug 28, 2017
    Configuration menu
    Copy the full SHA
    a676fdc View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fcac91c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2017

  1. arm64: dts: rockchip: rk3328-rock64: use two dai-link for i2s sound

    Change-Id: I266376a272ba0efd0b488c496dbcad3247df656b
    Kwiboo authored and ayufan committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    ff658ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    08404cd View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2017

  1. Configuration menu
    Copy the full SHA
    2779118 View commit details
    Browse the repository at this point in the history
  2. builddeb: fix missing headers in linux-headers package

    The kernel headers package (linux-headers) doesn't include
    header files from other architectures required to build
    out-of-tree modules.
    
    For e.g. on ARM64, opcodes.h includes the same file from ARM
    which causes the following error:
    ./arch/arm64/include/asm/opcodes.h:1:43: fatal error:
    ../../arm/include/asm/opcodes.h: No such file or directory
    compilation terminated.
    
    Signed-off-by: Azriel Samson <asamson@codeaurora.org>
    Azriel Samson authored and ayufan committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    d1bf935 View commit details
    Browse the repository at this point in the history
  3. ayufan: Enable a few security features for keys

    Change-Id: I27a9d962f778e39323e8ff70177379360f589de7
    ayufan committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    f3096c5 View commit details
    Browse the repository at this point in the history
  4. security/keys: add CONFIG_KEYS_COMPAT to Kconfig

    CONFIG_KEYS_COMPAT is defined in arch-specific Kconfigs and is missing for
    several 64-bit architectures : mips, parisc, tile.
    
    At the moment and for those architectures, calling in 32-bit userspace the
    keyctl syscall would return an ENOSYS error.
    
    This patch moves the CONFIG_KEYS_COMPAT option to security/keys/Kconfig, to
    make sure the compatibility wrapper is registered by default for any 64-bit
    architecture as long as it is configured with CONFIG_COMPAT.
    
    [DH: Modified to remove arm64 compat enablement also as requested by Eric
     Biggers]
    
    Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Arnd Bergmann <arnd@arndb.de>
    cc: Eric Biggers <ebiggers3@gmail.com>
    Signed-off-by: James Morris <james.l.morris@oracle.com>
    bamarni authored and ayufan committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    3a91761 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2017

  1. Remove CONFIG_SYSTEM_TRUSTED_KEYRING, as we cannot cross-compile extr…

    …act-cert
    
    Change-Id: I5a1df1068dc4a77b84b9a6e3107eb5f73930b0c0
    ayufan committed Sep 21, 2017
    Configuration menu
    Copy the full SHA
    232e3ea View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2017

  1. USB: workaround for specified USB3 PHY disconnection det issue

    Some special SoCs (e.g. rk322xh) USB3 PHY have problem to detect
    disconnection, they lose the ability to detect an absence of Rx
    termination specified in USB3 spec Table 6-21, fortunately, the
    USB3 PHY can detect port link state change when USB3 device is
    unplugged, so we can do soft disconnect according to the PLC.
    
    Change-Id: I2cbd62fddc8a1f9c5a264d705db43fb0cf3e035c
    Signed-off-by: William Wu <wulf@rock-chips.com>
    Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
    wuliangfeng authored and ayufan committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    eeda4ec View commit details
    Browse the repository at this point in the history
  2. USB: core: flush pending URBs for unusual USB3 core when disable device

    According to xHCI spec v1.1 section 6.4.5 TRB Completion Codes,
    the standard XHCI controller provide a TRB Completion Status
    'USB Transaction Error' to asserted in the case where the host
    did not receive a valid response from the device, it's useful
    to handle pending URBs on the endpoint when the USB device is
    plugged out.
    
    Unfortunately, some SOCs USB 3.0 modules lose the ability to
    assert the 'USB Transaction Error' status when USB 3.0 device
    disconnect. This may cause the pending URBs unhandled, even
    lead to USB class driver stalled in waiting for URBs complete.
    
    This patch flush pending URBs in usb_disable_device() when
    USB 3.0 device disconnect, it will call xhci_urb_dequeue()
    -> xhci_queue_stop_endpoint() to cancel pending URBs and
    giveback URB status immediately.
    
    Change-Id: If8acac59bc1f2c10a41ee390ccbeb84b2e7743c1
    Signed-off-by: Feng Mingli <fml@rock-chips.com>
    Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
    Feng Mingli authored and ayufan committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    fd1c6df View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2017

  1. standby is at 1, poweris at 0

    ayufan committed Oct 9, 2017
    Configuration menu
    Copy the full SHA
    77244c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2017

  1. phy: rockchip-inno-usb3: fixed usb3 devices detected failed

    We found the usb-phy lost devices detected ability after continuously
    disconnect/connect, this patch add usb2-phy reset/deassert as one part
    of previous workaround (commit c1ebf31) to fix it.
    
    Change-Id: Ib7112047eb0f5030406389aa9c8ebd599f8118be
    Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
    Frank Wang authored and ayufan committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    a58dd56 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2017

  1. Fix GCC6 compilation errors

    Change-Id: I13149fd44ef5e19334f23cca43c9861b8fa581e7
    ayufan committed Oct 30, 2017
    Configuration menu
    Copy the full SHA
    061663b View commit details
    Browse the repository at this point in the history