1. 07 7月, 2018 5 次提交
    • V
      clk/mmcc-msm8996: Make mmagic_bimc_gdsc ALWAYS_ON · 53f3abe9
      Vivek Gautam 提交于
      Patch (7705bb71 clk: qcom: mmcc-msm8996: leave all mmagic gdscs
      and clocks always enabled") makes all mmgaic gdscs ALWAYS_ON.
      The mmagic_bimc_gdsc is also needed to be turned on to get display
      working on 8x96.
      Signed-off-by: NVivek Gautam <vivek.gautam@codeaurora.org>
      Cc: Rajendra Nayak <rnayak@codeaurora.org>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Fixes: 7705bb71 ("clk: qcom: mmcc-msm8996: leave all mmagic gdscs and clocks always enabled")
      Signed-off-by: NStephen Boyd <sboyd@kernel.org>
      53f3abe9
    • S
      Merge tag 'meson-clk-fixes-4.18-1' of https://github.com/BayLibre/clk-meson into clk-fixes · 659e839c
      Stephen Boyd 提交于
      Pull Amlogic clk driver fixes from Jerome Brunet:
      
      These are two simple fixes, yet the first one is quite important as it
      solves boots hangs we've been having when FDIV2 gets disabled. This did
      not show up before because this particular clock is heavily used and
      only gets disabled for a very short period of time before modules (such
      as ethernet or emmc) probe.
      
      - fix boot issue with gxbb and gxl platforms
      - fix racalculation error in the clk_audio_divider
      
      * tag 'meson-clk-fixes-4.18-1' of https://github.com/BayLibre/clk-meson:
        clk: meson: audio-divider is one based
        clk: meson-gxbb: set fclk_div2 as CLK_IS_CRITICAL
      659e839c
    • B
      clk: aspeed: Treat a gate in reset as disabled · edc6f7e9
      Benjamin Herrenschmidt 提交于
      On some systems, we come out of the bootloader with some
      gates set with the clock "enabled" but the reset also
      asserted.
      
      Since 8a53fc51 "clk: aspeed: Prevent reset if clock is enabled"
      we check that enabled bit in aspeed_clk_enabled(), and do
      nothing if already set.
      
      This breaks when the above scenario occurs, as the clock
      is enabled, but the reset still needs to be lifted.
      
      This patch fixes it by also checking the reset bit (if any)
      and treating a gate in "reset" as being disabled.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Fixes: 8a53fc51 "clk: aspeed: Prevent reset if clock is enabled"
      Cc: Eddie James <eajames@linux.vnet.ibm.com>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      Signed-off-by: NStephen Boyd <sboyd@kernel.org>
      edc6f7e9
    • G
      clk: Really show symbolic clock flags in debugfs · 40dd71c7
      Geert Uytterhoeven 提交于
      The last-minute fold-in of the ENTRY() macro did change behavior:
      instead of printing the symbolic name (e.g. "CLK_IS_BASIC"), it prints
      the expansion of it (e.g. "(1UL << (5))").
      
      Use "#" instead of  __stringify() to fix this.
      
      Fixes: a6059ab9 ("clk: Show symbolic clock flags in debugfs")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NStephen Boyd <sboyd@kernel.org>
      40dd71c7
    • V
      clk: qcom: gcc-msm8996: Disable halt check on UFS tx clock · 5f75b78d
      Vinod Koul 提交于
      Commit 12d807cd ("clk: qcom: gcc-msm8996: Disable halt check on UFS
      clocks") marked BRANCH_HALT_SKIP for ufs rx clocks, but missed ufs tx
      clocks. The result of that is kernel warnings at reboot:
      
      [  105.624283] gcc_ufs_tx_symbol_0_clk status stuck at 'on'
      [  105.624311] WARNING: CPU: 1 PID: 1 at drivers/clk/qcom/clk-branch.c:100 clk_branch_toggle+0x190/0x1b0
      [  105.633235] Modules linked in:
      [  105.645118] CPU: 1 PID: 1 Comm: systemd-shutdow Tainted: G        W         4.18.0-rc2-00002-g2bfbe52a53a3 #11
      [  105.647988] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
      [  105.657966] pstate: 60000085 (nZCv daIf -PAN -UAO)
      [  105.664127] pc : clk_branch_toggle+0x190/0x1b0
      [  105.668900] lr : clk_branch_toggle+0x190/0x1b0
      [  105.673324] sp : ffff00000805bb40
      [  105.677751] x29: ffff00000805bb40 x28: 0000000000000000
      [  105.681140] x27: ffff8000d947cc60 x26: 0000000000000001
      [  105.686520] x25: ffff000008f71900 x24: 0000000000000000
      [  105.691816] x23: ffff00000925e338 x22: ffff00000855f8e0
      [  105.697114] x21: 0000000000000000 x20: 0000000000000000
      [  105.702407] x19: ffff0000091c9000 x18: ffffffffffffffff
      [  105.707702] x17: 0000ffffac148c58 x16: ffff000008b82928
      [  105.712998] x15: ffff0000091c96c8 x14: ffff0000893817c7
      [  105.718293] x13: ffff0000093817d5 x12: ffff0000091c9940
      [  105.723587] x11: ffff0000085e3e70 x10: ffff00000805b780
      [  105.728884] x9 : ffff00000805bb40 x8 : 7320737574617473
      [  105.734179] x7 : 206b6c635f305f6c x6 : 00000000000001e5
      [  105.739472] x5 : 0000000000000000 x4 : 0000000000000000
      [  105.744769] x3 : ffffffffffffffff x2 : ffff0000091e2658
      [  105.750063] x1 : a7c4712dd5e09c00 x0 : 0000000000000000
      [  105.755360] Call trace:
      [  105.760652]  clk_branch_toggle+0x190/0x1b0
      [  105.762824]  clk_branch2_disable+0x18/0x20
      [  105.766994]  clk_core_disable+0x58/0xa8
      [  105.771069]  clk_core_disable_lock+0x20/0x38
      [  105.774803]  clk_disable+0x1c/0x28
      [  105.779320]  __ufshcd_setup_clocks+0x298/0x308
      [  105.782529]  ufshcd_suspend+0x160/0x308
      [  105.786953]  ufshcd_shutdown+0x38/0xa0
      [  105.790690]  ufshcd_pltfrm_shutdown+0x10/0x18
      [  105.794512]  platform_drv_shutdown+0x20/0x30
      [  105.798935]  device_shutdown+0x110/0x1e8
      [  105.803278]  kernel_restart_prepare+0x34/0x40
      [  105.807181]  kernel_restart+0x14/0x78
      [  105.811434]  sys_reboot+0x200/0x248
      [  105.815081]  el0_svc_naked+0x30/0x34
      [  105.818378] ---[ end trace 8d2322276b27879c ]---
      
      Mark gcc_ufs_tx_symbol_0_clk as BRANCH_HALT_SKIP as well.
      
      Fixes: 12d807cd ("clk: qcom: gcc-msm8996: Disable halt check on UFS clocks")
      Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NVinod Koul <vkoul@kernel.org>
      Signed-off-by: NStephen Boyd <sboyd@kernel.org>
      5f75b78d
  2. 30 6月, 2018 2 次提交
  3. 28 6月, 2018 1 次提交
  4. 26 6月, 2018 2 次提交
  5. 21 6月, 2018 2 次提交
  6. 19 6月, 2018 1 次提交
    • N
      clk: meson-gxbb: set fclk_div2 as CLK_IS_CRITICAL · c987ac6f
      Neil Armstrong 提交于
      On Amlogic Meson GXBB & GXL platforms, the SCPI Cortex-M4 Co-Processor
      seems to be dependent on the FCLK_DIV2 to be operationnal.
      
      The issue occurred since v4.17-rc1 by freezing the kernel boot when
      the 'schedutil' cpufreq governor was selected as default :
      
        [   12.071837] scpi_protocol scpi: SCP Protocol 0.0 Firmware 0.0.0 version
        domain-0 init dvfs: 4
        [   12.087757] hctosys: unable to open rtc device (rtc0)
        [   12.087907] cfg80211: Loading compiled-in X.509 certificates for regulatory database
        [   12.102241] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
      
      But when disabling the MMC driver, the boot finished but cpufreq failed to
      change the CPU frequency :
      
        [   12.153045] cpufreq: __target_index: Failed to change cpu frequency: -5
      
      A bisect between v4.16 and v4.16-rc1 gave
      05f81440 ("clk: meson: add fdiv clock gates") to be the first bad commit.
      This commit added support for the missing clock gates before the fixed PLL
      fixed dividers (FCLK_DIVx) and the clock framework basically disabled
      all the unused fixed dividers, thus disabled a critical clock path for
      the SCPI Co-Processor.
      
      This patch simply sets the FCLK_DIV2 gate as critical to ensure
      nobody can disable it.
      
      Fixes: 05f81440 ("clk: meson: add fdiv clock gates")
      Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
      Tested-by: NKevin Hilman <khilman@baylibre.com>
      [few corrections in the commit description]
      Signed-off-by: NJerome Brunet <jbrunet@baylibre.com>
      c987ac6f
  7. 17 6月, 2018 5 次提交
    • L
      Linux 4.18-rc1 · ce397d21
      Linus Torvalds 提交于
      ce397d21
    • L
      Merge tag 'for-linus-20180616' of git://git.kernel.dk/linux-block · 265c5596
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
       "A collection of fixes that should go into -rc1. This contains:
      
         - bsg_open vs bsg_unregister race fix (Anatoliy)
      
         - NVMe pull request from Christoph, with fixes for regressions in
           this window, FC connect/reconnect path code unification, and a
           trace point addition.
      
         - timeout fix (Christoph)
      
         - remove a few unused functions (Christoph)
      
         - blk-mq tag_set reinit fix (Roman)"
      
      * tag 'for-linus-20180616' of git://git.kernel.dk/linux-block:
        bsg: fix race of bsg_open and bsg_unregister
        block: remov blk_queue_invalidate_tags
        nvme-fabrics: fix and refine state checks in __nvmf_check_ready
        nvme-fabrics: handle the admin-only case properly in nvmf_check_ready
        nvme-fabrics: refactor queue ready check
        blk-mq: remove blk_mq_tagset_iter
        nvme: remove nvme_reinit_tagset
        nvme-fc: fix nulling of queue data on reconnect
        nvme-fc: remove reinit_request routine
        blk-mq: don't time out requests again that are in the timeout handler
        nvme-fc: change controllers first connect to use reconnect path
        nvme: don't rely on the changed namespace list log
        nvmet: free smart-log buffer after use
        nvme-rdma: fix error flow during mapping request data
        nvme: add bio remapping tracepoint
        nvme: fix NULL pointer dereference in nvme_init_subsystem
        blk-mq: reinit q->tag_set_list entry only after grace period
      265c5596
    • L
      Merge tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental · 5e7b9212
      Linus Torvalds 提交于
      Pull documentation fixes from Mauro Carvalho Chehab:
       "This solves a series of broken links for files under Documentation,
        and improves a script meant to detect such broken links (see
        scripts/documentation-file-ref-check).
      
        The changes on this series are:
      
         - can.rst: fix a footnote reference;
      
         - crypto_engine.rst: Fix two parsing warnings;
      
         - Fix a lot of broken references to Documentation/*;
      
         - improve the scripts/documentation-file-ref-check script, in order
           to help detecting/fixing broken references, preventing
           false-positives.
      
        After this patch series, only 33 broken references to doc files are
        detected by scripts/documentation-file-ref-check"
      
      * tag 'docs-broken-links' of git://linuxtv.org/mchehab/experimental: (26 commits)
        fix a series of Documentation/ broken file name references
        Documentation: rstFlatTable.py: fix a broken reference
        ABI: sysfs-devices-system-cpu: remove a broken reference
        devicetree: fix a series of wrong file references
        devicetree: fix name of pinctrl-bindings.txt
        devicetree: fix some bindings file names
        MAINTAINERS: fix location of DT npcm files
        MAINTAINERS: fix location of some display DT bindings
        kernel-parameters.txt: fix pointers to sound parameters
        bindings: nvmem/zii: Fix location of nvmem.txt
        docs: Fix more broken references
        scripts/documentation-file-ref-check: check tools/*/Documentation
        scripts/documentation-file-ref-check: get rid of false-positives
        scripts/documentation-file-ref-check: hint: dash or underline
        scripts/documentation-file-ref-check: add a fix logic for DT
        scripts/documentation-file-ref-check: accept more wildcards at filenames
        scripts/documentation-file-ref-check: fix help message
        media: max2175: fix location of driver's companion documentation
        media: v4l: fix broken video4linux docs locations
        media: dvb: point to the location of the old README.dvb-usb file
        ...
      5e7b9212
    • L
      Merge tag 'fsnotify_for_v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · dbb2816f
      Linus Torvalds 提交于
      Pull fsnotify updates from Jan Kara:
       "fsnotify cleanups unifying handling of different watch types.
      
        This is the shortened fsnotify series from Amir with the last five
        patches pulled out. Amir has modified those patches to not change
        struct inode but obviously it's too late for those to go into this
        merge window"
      
      * tag 'fsnotify_for_v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fsnotify: add fsnotify_add_inode_mark() wrappers
        fanotify: generalize fanotify_should_send_event()
        fsnotify: generalize send_to_group()
        fsnotify: generalize iteration of marks by object type
        fsnotify: introduce marks iteration helpers
        fsnotify: remove redundant arguments to handle_event()
        fsnotify: use type id to identify connector object type
      dbb2816f
    • L
      Merge tag 'fbdev-v4.18' of git://github.com/bzolnier/linux · 644f2639
      Linus Torvalds 提交于
      Pull fbdev updates from Bartlomiej Zolnierkiewicz:
       "There is nothing really major here, few small fixes, some cleanups and
        dead drivers removal:
      
         - mark omapfb drivers as orphans in MAINTAINERS file (Tomi Valkeinen)
      
         - add missing module license tags to omap/omapfb driver (Arnd
           Bergmann)
      
         - add missing GPIOLIB dependendy to omap2/omapfb driver (Arnd
           Bergmann)
      
         - convert savagefb, aty128fb & radeonfb drivers to use msleep & co.
           (Jia-Ju Bai)
      
         - allow COMPILE_TEST build for viafb driver (media part was reviewed
           by media subsystem Maintainer)
      
         - remove unused MERAM support from sh_mobile_lcdcfb and shmob-drm
           drivers (drm parts were acked by shmob-drm driver Maintainer)
      
         - remove unused auo_k190xfb drivers
      
         - misc cleanups (Souptick Joarder, Wolfram Sang, Markus Elfring, Andy
           Shevchenko, Colin Ian King)"
      
      * tag 'fbdev-v4.18' of git://github.com/bzolnier/linux: (26 commits)
        fb_omap2: add gpiolib dependency
        video/omap: add module license tags
        MAINTAINERS: make omapfb orphan
        video: fbdev: pxafb: match_string() conversion fixup
        video: fbdev: nvidia: fix spelling mistake: "scaleing" -> "scaling"
        video: fbdev: fix spelling mistake: "frambuffer" -> "framebuffer"
        video: fbdev: pxafb: Convert to use match_string() helper
        video: fbdev: via: allow COMPILE_TEST build
        video: fbdev: remove unused sh_mobile_meram driver
        drm: shmobile: remove unused MERAM support
        video: fbdev: sh_mobile_lcdcfb: remove unused MERAM support
        video: fbdev: remove unused auo_k190xfb drivers
        video: omap: Improve a size determination in omapfb_do_probe()
        video: sm501fb: Improve a size determination in sm501fb_probe()
        video: fbdev-MMP: Improve a size determination in path_init()
        video: fbdev-MMP: Delete an error message for a failed memory allocation in two functions
        video: auo_k190x: Delete an error message for a failed memory allocation in auok190x_common_probe()
        video: sh_mobile_lcdcfb: Delete an error message for a failed memory allocation in two functions
        video: sh_mobile_meram: Delete an error message for a failed memory allocation in sh_mobile_meram_probe()
        video: fbdev: sh_mobile_meram: Drop SUPERH platform dependency
        ...
      644f2639
  8. 16 6月, 2018 22 次提交