1. 16 7月, 2022 3 次提交
    • L
      firmware: arm_scmi: Get detailed power scale from perf · 5e0fd202
      Lukasz Luba 提交于
      In SCMI v3.1 the power scale can be in micro-Watts. The upper layers, e.g.
      cpufreq and EM should handle received power values properly (upscale when
      needed). Thus, provide an interface which allows to check what is the
      scale for power values. The old interface allowed to distinguish between
      bogo-Watts and milli-Watts only (which was good for older SCMI spec).
      Acked-by: NSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: NLukasz Luba <lukasz.luba@arm.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      5e0fd202
    • L
      Documentation: EM: Switch to micro-Watts scale · c5d39fae
      Lukasz Luba 提交于
      The EM now uses the micro-Watts scale for the power values. Update
      related documentation to reflect that fact.
      
      Fix also a problematic sentence in the doc "to:" which triggers test
      scripts complaining about wrong email address.
      Reviewed-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: NLukasz Luba <lukasz.luba@arm.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c5d39fae
    • L
      PM: EM: convert power field to micro-Watts precision and align drivers · ae6ccaa6
      Lukasz Luba 提交于
      The milli-Watts precision causes rounding errors while calculating
      efficiency cost for each OPP. This is especially visible in the 'simple'
      Energy Model (EM), where the power for each OPP is provided from OPP
      framework. This can cause some OPPs to be marked inefficient, while
      using micro-Watts precision that might not happen.
      
      Update all EM users which access 'power' field and assume the value is
      in milli-Watts.
      
      Solve also an issue with potential overflow in calculation of energy
      estimation on 32bit machine. It's needed now since the power value
      (thus the 'cost' as well) are higher.
      
      Example calculation which shows the rounding error and impact:
      
      power = 'dyn-power-coeff' * volt_mV * volt_mV * freq_MHz
      
      power_a_uW = (100 * 600mW * 600mW * 500MHz) / 10^6 = 18000
      power_a_mW = (100 * 600mW * 600mW * 500MHz) / 10^9 = 18
      
      power_b_uW = (100 * 605mW * 605mW * 600MHz) / 10^6 = 21961
      power_b_mW = (100 * 605mW * 605mW * 600MHz) / 10^9 = 21
      
      max_freq = 2000MHz
      
      cost_a_mW = 18 * 2000MHz/500MHz = 72
      cost_a_uW = 18000 * 2000MHz/500MHz = 72000
      
      cost_b_mW = 21 * 2000MHz/600MHz = 70 // <- artificially better
      cost_b_uW = 21961 * 2000MHz/600MHz = 73203
      
      The 'cost_b_mW' (which is based on old milli-Watts) is misleadingly
      better that the 'cost_b_uW' (this patch uses micro-Watts) and such
      would have impact on the 'inefficient OPPs' information in the Cpufreq
      framework. This patch set removes the rounding issue.
      Signed-off-by: NLukasz Luba <lukasz.luba@arm.com>
      Acked-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ae6ccaa6
  2. 11 7月, 2022 7 次提交
    • L
      Linux 5.19-rc6 · 32346491
      Linus Torvalds 提交于
      32346491
    • L
      Merge branch 'hot-fixes' (fixes for rc6) · 24f4b40e
      Linus Torvalds 提交于
      This is a collection of three fixes for small annoyances.
      
      Two of these are already pending in other trees, but I really don't want
      to release another -rc with these issues pending, so I picked up the
      patches for these things directly.  We'll end up with duplicate commits
      eventually, I prefer that over having these issues pending.
      
      The third one is just me getting rid of another BUG_ON() just because it
      was reported and I dislike those things so much.
      
      * merge 'hot-fixes' branch:
        ida: don't use BUG_ON() for debugging
        drm/aperture: Run fbdev removal before internal helpers
        ptrace: fix clearing of JOBCTL_TRACED in ptrace_unfreeze_traced()
      24f4b40e
    • L
      ida: don't use BUG_ON() for debugging · fc82bbf4
      Linus Torvalds 提交于
      This is another old BUG_ON() that just shouldn't exist (see also commit
      a382f8fe: "signal handling: don't use BUG_ON() for debugging").
      
      In fact, as Matthew Wilcox points out, this condition shouldn't really
      even result in a warning, since a negative id allocation result is just
      a normal allocation failure:
      
        "I wonder if we should even warn here -- sure, the caller is trying to
         free something that wasn't allocated, but we don't warn for
         kfree(NULL)"
      
      and goes on to point out how that current error check is only causing
      people to unnecessarily do their own index range checking before freeing
      it.
      
      This was noted by Itay Iellin, because the bluetooth HCI socket cookie
      code does *not* do that range checking, and ends up just freeing the
      error case too, triggering the BUG_ON().
      
      The HCI code requires CAP_NET_RAW, and seems to just result in an ugly
      splat, but there really is no reason to BUG_ON() here, and we have
      generally striven for allocation models where it's always ok to just do
      
          free(alloc());
      
      even if the allocation were to fail for some random reason (usually
      obviously that "random" reason being some resource limit).
      
      Fixes: 88eca020 ("ida: simplified functions for id allocation")
      Reported-by: NItay Iellin <ieitayie@gmail.com>
      Suggested-by: NMatthew Wilcox <willy@infradead.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fc82bbf4
    • L
      Merge tag 'dmaengine-fix-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 952c53cd
      Linus Torvalds 提交于
      Pull dmaengine fixes from Vinod Koul:
       "One core fix for DMA_INTERRUPT and rest driver fixes.
      
        Core:
      
         - Revert verification of DMA_INTERRUPT capability as that was
           incorrect
      
        Bunch of driver fixes for:
      
         - ti: refcount and put_device leak
      
         - qcom_bam: runtime pm overflow
      
         - idxd: force wq context cleanup and call idxd_enable_system_pasid()
           on success
      
         - dw-axi-dmac: RMW on channel suspend register
      
         - imx-sdma: restart cyclic channel when enabled
      
         - at_xdma: error handling for at_xdmac_alloc_desc
      
         - pl330: lockdep warning
      
         - lgm: error handling path in probe
      
         - allwinner: Fix min/max typo in binding"
      
      * tag 'dmaengine-fix-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        dt-bindings: dma: allwinner,sun50i-a64-dma: Fix min/max typo
        dmaengine: lgm: Fix an error handling path in intel_ldma_probe()
        dmaengine: pl330: Fix lockdep warning about non-static key
        dmaengine: idxd: Only call idxd_enable_system_pasid() if succeeded in enabling SVA feature
        dmaengine: at_xdma: handle errors of at_xdmac_alloc_desc() correctly
        dmaengine: imx-sdma: only restart cyclic channel when enabled
        dmaengine: dw-axi-dmac: Fix RMW on channel suspend register
        dmaengine: idxd: force wq context cleanup on device disable path
        dmaengine: qcom: bam_dma: fix runtime PM underflow
        dmaengine: imx-sdma: Allow imx8m for imx7 FW revs
        dmaengine: Revert "dmaengine: add verification of DMA_INTERRUPT capability for dmatest"
        dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate
        dmaengine: ti: Fix refcount leak in ti_dra7_xbar_route_allocate
      952c53cd
    • L
      Merge tag 'staging-5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 5867f3b8
      Linus Torvalds 提交于
      Pull staging driver fix from Greg KH:
       "Here is a single staging driver fix for a reported problem that showed
        up in 5.19-rc1 in the wlan-ng driver. It has been in linux-next for a
        week with no reported problems"
      
      * tag 'staging-5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging/wlan-ng: get the correct struct hfa384x in work callback
      5867f3b8
    • L
      Merge tag 'char-misc-5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · b41362fd
      Linus Torvalds 提交于
      Pull char/misc driver fixes from Greg KH:
       "Here are four small char/misc driver fixes for 5.19-rc6 to resolve
        some reported issues. They only affect two drivers:
      
         - rtsx_usb: fix for of-reported DMA warning error, the driver was
           handling memory buffers in odd ways, it has now been fixed up to be
           much simpler and correct by Shuah.
      
         - at25 eeprom driver bugfix for reported problem
      
        All of these have been in linux-next for a week with no reported
        problems"
      
      * tag 'char-misc-5.19-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        misc: rtsx_usb: set return value in rsp_buf alloc err path
        misc: rtsx_usb: use separate command and response buffers
        misc: rtsx_usb: fix use of dma mapped buffer for usb bulk transfer
        eeprom: at25: Rework buggy read splitting
      b41362fd
    • L
      Merge tag 'io_uring-5.19-2022-07-09' of git://git.kernel.dk/linux-block · d9919d43
      Linus Torvalds 提交于
      Pull io_uring fix from Jens Axboe:
       "A single fix for an issue that came up yesterday that we should plug
        for -rc6.
      
        This is a regression introduced in this cycle"
      
      * tag 'io_uring-5.19-2022-07-09' of git://git.kernel.dk/linux-block:
        io_uring: check that we have a file table when allocating update slots
      d9919d43
  3. 10 7月, 2022 9 次提交
  4. 09 7月, 2022 11 次提交
  5. 08 7月, 2022 10 次提交