1. 07 Jun, 2021 4 commits
  2. 21 May, 2021 5 commits
    • Randy Dunlap's avatar
      cpufreq: sc520_freq: add 'fallthrough' to one case · 9ff6774b
      Randy Dunlap authored
      Quieten an implicit-fallthrough warning in sc520_freq.c:
      
      ../drivers/cpufreq/sc520_freq.c: In function 'sc520_freq_get_cpu_frequency':
      ../include/linux/printk.h:343:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
        printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      ../drivers/cpufreq/sc520_freq.c:43:3: note: in expansion of macro 'pr_err'
         pr_err("error: cpuctl register has unexpected value %02x\n",
      ../drivers/cpufreq/sc520_freq.c:45:2: note: here
        case 0x01:
      
      Fixes: bf6fc9fd ("[CPUFREQ] AMD Elan SC520 cpufreq driver.")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9ff6774b
    • Giovanni Gherdovich's avatar
      cpufreq: intel_pstate: Add Cometlake support in no-HWP mode · 706c5328
      Giovanni Gherdovich authored
      Users may disable HWP in firmware, in which case intel_pstate wouldn't load
      unless the CPU model is explicitly supported.
      
      See also commit d8de7a44 ("cpufreq: intel_pstate: Add Skylake servers
      support").
      Suggested-by: default avatarDoug Smythies <dsmythies@telus.net>
      Tested-by: default avatarDoug Smythies <dsmythies@telus.net>
      Signed-off-by: default avatarGiovanni Gherdovich <ggherdovich@suse.cz>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      706c5328
    • Giovanni Gherdovich's avatar
      cpufreq: intel_pstate: Add Icelake servers support in no-HWP mode · fbdc21e9
      Giovanni Gherdovich authored
      Users may disable HWP in firmware, in which case intel_pstate wouldn't load
      unless the CPU model is explicitly supported.
      
      Add ICELAKE_X to the list of CPUs that can register intel_pstate while not
      advertising the HWP capability. Without this change, an ICELAKE_X in no-HWP
      mode could only use the acpi_cpufreq frequency scaling driver.
      
      See also commit d8de7a44 ("cpufreq: intel_pstate: Add Skylake servers
      support").
      Signed-off-by: default avatarGiovanni Gherdovich <ggherdovich@suse.cz>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      fbdc21e9
    • Rafael J. Wysocki's avatar
      cpufreq: intel_pstate: hybrid: CPU-specific scaling factor · eb3693f0
      Rafael J. Wysocki authored
      The scaling factor between HWP performance levels and CPU frequency
      may be different for different types of CPUs in a hybrid processor
      and in general the HWP performance levels need not correspond to
      "P-states" representing values that would be written to
      MSR_IA32_PERF_CTL if HWP was disabled.
      
      However, the policy limits control in cpufreq is defined in terms
      of CPU frequency, so it is necessary to map the frequency limits set
      through that interface to HWP performance levels with reasonable
      accuracy and the behavior of that interface on hybrid processors
      has to be compatible with its behavior on non-hybrid ones.
      
      To address this problem, use the observations that (1) on hybrid
      processors the sysfs interface can operate by mapping frequency
      to "P-states" and translating those "P-states" to specific HWP
      performance levels of the given CPU and (2) the scaling factor
      between the MSR_IA32_PERF_CTL "P-states" and CPU frequency can be
      regarded as a known value.  Moreover, the mapping between the
      HWP performance levels and CPU frequency can be assumed to be
      linear and such that HWP performance level 0 correspond to the
      frequency value of 0, so it is only necessary to know the
      frequency corresponding to one specific HWP performance level
      to compute the scaling factor applicable to all of them.
      
      One possibility is to take the nominal performance value from CPPC,
      if available, and use cpu_khz as the corresponding frequency.  If
      the CPPC capabilities interface is not there or the nominal
      performance value provided by it is out of range, though, something
      else needs to be done.
      
      Namely, the guaranteed performance level either from CPPC or from
      MSR_HWP_CAPABILITIES can be used instead, but the corresponding
      frequency needs to be determined.  That can be done by computing the
      product of the (known) scaling factor between the MSR_IA32_PERF_CTL
      P-states and CPU frequency (the PERF_CTL scaling factor) and the
      P-state value referred to as the "TDP ratio".
      
      If the HWP-to-frequency scaling factor value obtained in one of the
      ways above turns out to be euqal to the PERF_CTL scaling factor, it
      can be assumed that the number of HWP performance levels is equal to
      the number of P-states and the given CPU can be handled as though
      this was not a hybrid processor.
      
      Otherwise, one more adjustment may still need to be made, because the
      HWP-to-frequency scaling factor computed so far may not be accurate
      enough (e.g. because the CPPC information does not match the exact
      behavior of the processor).  Specifically, in that case the frequency
      corresponding to the highest HWP performance value from
      MSR_HWP_CAPABILITIES (computed as the product of that value and the
      HWP-to-frequency scaling factor) cannot exceed the frequency that
      corresponds to the maximum 1-core turbo P-state value from
      MSR_TURBO_RATIO_LIMIT (computed as the procuct of that value and the
      PERF_CTL scaling factor) and the HWP-to-frequency scaling factor may
      need to be adjusted accordingly.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      eb3693f0
    • Rafael J. Wysocki's avatar
      cpufreq: intel_pstate: hybrid: Avoid exposing two global attributes · c3d175e4
      Rafael J. Wysocki authored
      The turbo_pct and num_pstates sysfs attributes represent CPU
      properties that may be different for differenty types of CPUs in
      a hybrid processor, so avoid exposing them in that case.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c3d175e4
  3. 16 May, 2021 7 commits
    • Linus Torvalds's avatar
      Linux 5.13-rc2 · d07f6ca9
      Linus Torvalds authored
      d07f6ca9
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.13-rc2' of... · 28183dbf
      Linus Torvalds authored
      Merge tag 'driver-core-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fixes from Greg KH:
       "Here are two driver fixes for driver core changes that happened in
        5.13-rc1.
      
        The clk driver fix resolves a many-reported issue with booting some
        devices, and the USB typec fix resolves the reported problem of USB
        systems on some embedded boards.
      
        Both of these have been in linux-next this week with no reported
        issues"
      
      * tag 'driver-core-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        clk: Skip clk provider registration when np is NULL
        usb: typec: tcpm: Don't block probing of consumers of "connector" nodes
      28183dbf
    • Linus Torvalds's avatar
      Merge tag 'staging-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 6942d81a
      Linus Torvalds authored
      Pull staging and IIO driver fixes from Greg KH:
       "Here are some small IIO driver fixes and one Staging driver fix for
        5.13-rc2.
      
        Nothing major, just some resolutions for reported problems:
      
         - gcc-11 bogus warning fix for rtl8723bs
      
         - iio driver tiny fixes
      
        All of these have been in linux-next for many days with no reported
        issues"
      
      * tag 'staging-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        iio: tsl2583: Fix division by a zero lux_val
        iio: core: return ENODEV if ioctl is unknown
        iio: core: fix ioctl handlers removal
        iio: gyro: mpu3050: Fix reported temperature value
        iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER
        iio: proximity: pulsedlight: Fix rumtime PM imbalance on error
        iio: light: gp2ap002: Fix rumtime PM imbalance on error
        staging: rtl8723bs: avoid bogus gcc warning
      6942d81a
    • Linus Torvalds's avatar
      Merge tag 'usb-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 4a668429
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB fixes for 5.13-rc2. They consist of a number
        of resolutions for reported issues:
      
         - typec fixes for found problems
      
         - xhci fixes and quirk additions
      
         - dwc3 driver fixes
      
         - minor fixes found by Coverity
      
         - cdc-wdm fixes for reported problems
      
        All of these have been in linux-next for a few days with no reported
        issues"
      
      * tag 'usb-5.13-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (28 commits)
        usb: core: hub: fix race condition about TRSMRCY of resume
        usb: typec: tcpm: Fix SINK_DISCOVERY current limit for Rp-default
        xhci: Add reset resume quirk for AMD xhci controller.
        usb: xhci: Increase timeout for HC halt
        xhci: Do not use GFP_KERNEL in (potentially) atomic context
        xhci: Fix giving back cancelled URBs even if halted endpoint can't reset
        xhci-pci: Allow host runtime PM as default for Intel Alder Lake xHCI
        usb: musb: Fix an error message
        usb: typec: tcpm: Fix wrong handling for Not_Supported in VDM AMS
        usb: typec: tcpm: Send DISCOVER_IDENTITY from dedicated work
        usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4
        usb: fotg210-hcd: Fix an error message
        docs: usb: function: Modify path name
        usb: dwc3: omap: improve extcon initialization
        usb: typec: ucsi: Put fwnode in any case during ->probe()
        usb: typec: tcpm: Fix wrong handling in GET_SINK_CAP
        usb: dwc2: Remove obsolete MODULE_ constants from platform.c
        usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()
        usb: dwc3: imx8mp: detect dwc3 core node via compatible string
        usb: dwc3: gadget: Return success always for kick transfer in ep queue
        ...
      4a668429
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2021-05-16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8ce36481
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "Two fixes for timers:
      
         - Use the ALARM feature check in the alarmtimer core code insted of
           the old method of checking for the set_alarm() callback.
      
           Drivers can have that callback set but the feature bit cleared. If
           such a RTC device is selected then alarms wont work.
      
         - Use a proper define to let the preprocessor check whether Hyper-V
           VDSO clocksource should be active.
      
           The code used a constant in an enum with #ifdef, which evaluates to
           always false and disabled the clocksource for VDSO"
      
      * tag 'timers-urgent-2021-05-16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource/drivers/hyper-v: Re-enable VDSO_CLOCKMODE_HVCLOCK on X86
        alarmtimer: Check RTC features instead of ops
      8ce36481
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · f44e58bb
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - two patches for error path fixes
      
       - a small series for fixing a regression with swiotlb with Xen on Arm
      
      * tag 'for-linus-5.13b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/swiotlb: check if the swiotlb has already been initialized
        arm64: do not set SWIOTLB_NO_FORCE when swiotlb is required
        xen/arm: move xen_swiotlb_detect to arm/swiotlb-xen.h
        xen/unpopulated-alloc: fix error return code in fill_list()
        xen/gntdev: fix gntdev_mmap() error exit path
      f44e58bb
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ccb013c2
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
       "The three SEV commits are not really urgent material. But we figured
        since getting them in now will avoid a huge amount of conflicts
        between future SEV changes touching tip, the kvm and probably other
        trees, sending them to you now would be best.
      
        The idea is that the tip, kvm etc branches for 5.14 will all base
        ontop of -rc2 and thus everything will be peachy. What is more, those
        changes are purely mechanical and defines movement so they should be
        fine to go now (famous last words).
      
        Summary:
      
         - Enable -Wundef for the compressed kernel build stage
      
         - Reorganize SEV code to streamline and simplify future development"
      
      * tag 'x86_urgent_for_v5.13_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/boot/compressed: Enable -Wundef
        x86/msr: Rename MSR_K8_SYSCFG to MSR_AMD64_SYSCFG
        x86/sev: Move GHCB MSR protocol and NAE definitions in a common header
        x86/sev-es: Rename sev-es.{ch} to sev.{ch}
      ccb013c2
  4. 15 May, 2021 24 commits