1. 14 12月, 2018 2 次提交
  2. 05 11月, 2018 15 次提交
    • V
      OPP: Remove of_dev_pm_opp_find_required_opp() · 534245cc
      Viresh Kumar 提交于
      This isn't used anymore, remove it.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      534245cc
    • V
      OPP: Rename and relocate of_genpd_opp_to_performance_state() · 4c6a343e
      Viresh Kumar 提交于
      The OPP core already has the performance state values for each of the
      genpd's OPPs and there is no need to call the genpd callback again to
      get the performance state for the case where the end device doesn't have
      an OPP table and has the "required-opps" property directly in its node.
      
      This commit renames of_genpd_opp_to_performance_state() as
      of_get_required_opp_performance_state() and moves it to the OPP core, as
      it is all about OPP stuff now.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      4c6a343e
    • V
      OPP: Configure all required OPPs · ca1b5d77
      Viresh Kumar 提交于
      Now that all the infrastructure is in place to support multiple required
      OPPs, lets switch over to using it.
      
      A new internal routine _set_required_opps() takes care of updating
      performance state for all the required OPPs. With this the performance
      state updates are supported even when the end device needs to configure
      regulators as well, that wasn't the case earlier.
      
      The pstates were earlier stored in the end device's OPP structures, that
      also changes now as those values are stored in the genpd's OPP
      structures. And so we switch over to using
      pm_genpd_opp_to_performance_state() instead of
      of_genpd_opp_to_performance_state() to get performance state for the
      genpd OPPs.
      
      The routine _generic_set_opp_domain() is not required anymore and is
      removed.
      
      On errors we don't try to recover by reverting to old settings as things
      are really complex now and the calls here should never really fail
      unless there is a bug. There is no point increasing the complexity, for
      code which will never be executed.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      ca1b5d77
    • V
      OPP: Add dev_pm_opp_{set|put}_genpd_virt_dev() helper · 4f018bc0
      Viresh Kumar 提交于
      Multiple generic power domains for a consumer device are supported with
      the help of virtual devices, which are created for each consumer device
      - genpd pair. These are the device structures which are attached to the
      power domain and are required by the OPP core to set the performance
      state of the genpd.
      
      The helpers added by this commit are required to be called once for each
      of these virtual devices. These are required only if multiple domains
      are available for a device, otherwise the actual device structure will
      be used instead by the OPP core.
      
      The new helpers also support the complex cases where the consumer device
      wouldn't always require all the domains. For example, a camera may
      require only one power domain during normal operations but two during
      high resolution operations. The consumer driver can call
      dev_pm_opp_put_genpd_virt_dev(high_resolution_genpd_virt_dev) if it is
      currently operating in the normal mode and doesn't have any performance
      requirements from the genpd which manages high resolution power
      requirements. The consumer driver can later call
      dev_pm_opp_set_genpd_virt_dev(high_resolution_genpd_virt_dev) once it
      switches back to the high resolution mode.
      
      The new helpers differ from other OPP set/put helpers as the new ones
      can be called with OPPs initialized for the table as we may need to call
      them on the fly because of the complex case explained above. For this
      reason it is possible that the genpd virt_dev structure may be used in
      parallel while the new helpers are running and a new mutex is added to
      protect against that. We didn't use the existing opp_table->lock mutex
      as that is widely used in the OPP core and we will need this lock in the
      dev_pm_opp_set_rate() helper while changing OPP and we need to make sure
      there is not much contention while doing that as that's the hotpath.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      4f018bc0
    • V
      PM / Domains: Add genpd_opp_to_performance_state() · e38f89d3
      Viresh Kumar 提交于
      The OPP core currently stores the performance state in the consumer
      device's OPP table, but that is going to change going forward and
      performance state will rather be set directly in the genpd's OPP table.
      
      For that we need to get the performance state for genpd's device
      structure (genpd->dev) instead of the consumer device's structure. Add a
      new helper to do that.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      e38f89d3
    • V
      OPP: Populate OPPs from "required-opps" property · da544b61
      Viresh Kumar 提交于
      An earlier commit populated the OPP tables from the "required-opps"
      property, this commit populates the individual OPPs. This is repeated
      for each OPP in the OPP table and these populated OPPs will be used by
      later commits.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      da544b61
    • V
      OPP: Populate required opp tables from "required-opps" property · 5d6d106f
      Viresh Kumar 提交于
      The current implementation works only for the case where a single
      phandle is present in the "required-opps" property, while DT allows
      multiple phandles to be present there.
      
      This patch adds new infrastructure to parse all the phandles present in
      "required-opps" property and save pointers of the required OPP's OPP
      tables. These will be used by later commits.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      5d6d106f
    • V
      OPP: Separate out custom OPP handler specific code · 7e535993
      Viresh Kumar 提交于
      Create a separate routine to take care of custom set_opp() handler
      specific stuff.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      7e535993
    • V
      OPP: Identify and mark genpd OPP tables · 61d8e7c7
      Viresh Kumar 提交于
      We need to handle genpd OPP tables differently, this is already the case
      at one location and will be extended going forward. Add another field to
      the OPP table to check if the table belongs to a genpd or not.
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      61d8e7c7
    • V
      PM / Domains: Rename genpd virtual devices as virt_dev · 560928b2
      Viresh Kumar 提交于
      There are several struct device instances that genpd core handles. The
      most common one is the consumer device structure, which is named
      (correctly) as "dev" within genpd core. The second one is the genpd's
      device structure, referenced as genpd->dev. The third one is the virtual
      device structures created by the genpd core to represent the consumer
      device for multiple power domain case, currently named as genpd_dev. The
      naming of these virtual devices isn't very clear or readable and it
      looks more like the genpd->dev.
      
      Rename the virtual device instances within the genpd core as "virt_dev".
      Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      560928b2
    • L
      Linux 4.20-rc1 · 65102238
      Linus Torvalds 提交于
      65102238
    • L
      Merge tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs · 42bd06e9
      Linus Torvalds 提交于
      Pull UBIFS updates from Richard Weinberger:
      
       - Full filesystem authentication feature, UBIFS is now able to have the
         whole filesystem structure authenticated plus user data encrypted and
         authenticated.
      
       - Minor cleanups
      
      * tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs: (26 commits)
        ubifs: Remove unneeded semicolon
        Documentation: ubifs: Add authentication whitepaper
        ubifs: Enable authentication support
        ubifs: Do not update inode size in-place in authenticated mode
        ubifs: Add hashes and HMACs to default filesystem
        ubifs: authentication: Authenticate super block node
        ubifs: Create hash for default LPT
        ubfis: authentication: Authenticate master node
        ubifs: authentication: Authenticate LPT
        ubifs: Authenticate replayed journal
        ubifs: Add auth nodes to garbage collector journal head
        ubifs: Add authentication nodes to journal
        ubifs: authentication: Add hashes to index nodes
        ubifs: Add hashes to the tree node cache
        ubifs: Create functions to embed a HMAC in a node
        ubifs: Add helper functions for authentication support
        ubifs: Add separate functions to init/crc a node
        ubifs: Format changes for authentication support
        ubifs: Store read superblock node
        ubifs: Drop write_node
        ...
      42bd06e9
    • L
      Merge tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 4710e789
      Linus Torvalds 提交于
      Pull NFS client bugfixes from Trond Myklebust:
       "Highlights include:
      
        Bugfix:
         - Fix build issues on architectures that don't provide 64-bit cmpxchg
      
        Cleanups:
         - Fix a spelling mistake"
      
      * tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        NFS: fix spelling mistake, EACCESS -> EACCES
        SUNRPC: Use atomic(64)_t for seq_send(64)
      4710e789
    • L
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 35e74524
      Linus Torvalds 提交于
      Pull more timer updates from Thomas Gleixner:
       "A set of commits for the new C-SKY architecture timers"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        dt-bindings: timer: gx6605s SOC timer
        clocksource/drivers/c-sky: Add gx6605s SOC system timer
        dt-bindings: timer: C-SKY Multi-processor timer
        clocksource/drivers/c-sky: Add C-SKY SMP timer
      35e74524
    • L
      Merge tag 'ntb-4.20' of git://github.com/jonmason/ntb · 04578e84
      Linus Torvalds 提交于
      Pull NTB updates from Jon Mason:
       "Fairly minor changes and bug fixes:
      
        NTB IDT thermal changes and hook into hwmon, ntb_netdev clean-up of
        private struct, and a few bug fixes"
      
      * tag 'ntb-4.20' of git://github.com/jonmason/ntb:
        ntb: idt: Alter the driver info comments
        ntb: idt: Discard temperature sensor IRQ handler
        ntb: idt: Add basic hwmon sysfs interface
        ntb: idt: Alter temperature read method
        ntb_netdev: Simplify remove with client device drvdata
        NTB: transport: Try harder to alloc an aligned MW buffer
        ntb: ntb_transport: Mark expected switch fall-throughs
        ntb: idt: Set PCIe bus address to BARLIMITx
        NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
        ntb: intel: fix return value for ndev_vec_mask()
        ntb_netdev: fix sleep time mismatch
      04578e84
  3. 04 11月, 2018 23 次提交