1. 17 Jul, 2020 1 commit
  2. 16 Jul, 2020 1 commit
  3. 14 Jul, 2020 1 commit
    • Arnd Bergmann's avatar
      Merge tag 'scmi-updates-5.9' of... · 409d01fb
      Arnd Bergmann authored
      Merge tag 'scmi-updates-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into arm/drivers
      
      ARM SCMI/SCPI updates for v5.9
      
      The main addition for this time is the support for platform notifications.
      SCMI protocol specification allows the platform to signal events to the
      interested agents via notification messages. We are adding support for
      the dispatch and delivery of such notifications to the interested users
      inside the kernel.
      
      Other than that, there are minor changes like checking and using the
      fast_switch capability quering the firmware instead of doing it
      unconditionally(using polling mode transfer), cosmetic trace update,
      use of HAVE_ARM_SMCCC_DISCOVERY instead of ARM_PSCI_FW and a fix in
      scmi clock registration logic for all the clocks with discrete rates.
      
      * tag 'scmi-updates-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux:
        firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header
        firmware: arm_scmi: Remove unneeded __packed attribute
        firmware: arm_scmi: Remove zero-length array in SCMI notifications
        firmware: arm_scmi: Provide a missing function param description
        clk: scmi: Fix min and max rate when registering clocks with discrete rates
        firmware: arm_scmi: Keep the discrete clock rates sorted
        firmware: arm_scmi: Add base notifications support
        firmware: arm_scmi: Add reset notifications support
        firmware: arm_scmi: Add sensor notifications support
        firmware: arm_scmi: Add perf notifications support
        firmware: arm_scmi: Add power notifications support
        firmware: arm_scmi: Enable notification core
        firmware: arm_scmi: Add notification dispatch and delivery
        firmware: arm_scmi: Add notification callbacks-registration
        firmware: arm_scmi: Add notification protocol-registration
        firmware: arm_scmi: Fix SCMI genpd domain probing
        firmware: arm_scmi: Use HAVE_ARM_SMCCC_DISCOVERY instead of ARM_PSCI_FW
        cpufreq: arm_scmi: Set fast_switch_possible conditionally
        firmware: arm_scmi: Add fast_switch_possible() interface
        firmware: arm_scmi: Use signed integer to report transfer status
      
      Link: https://lore.kernel.org/r/20200713161410.12324-1-sudeep.holla@arm.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      409d01fb
  4. 13 Jul, 2020 13 commits
  5. 10 Jul, 2020 4 commits
  6. 06 Jul, 2020 10 commits
  7. 01 Jul, 2020 9 commits
  8. 30 Jun, 2020 1 commit
    • Cristian Marussi's avatar
      firmware: arm_scmi: Fix SCMI genpd domain probing · e0f1a30c
      Cristian Marussi authored
      When, at probe time, an SCMI communication failure inhibits the capacity
      to query power domains states, such domains should be skipped.
      
      Registering partially initialized SCMI power domains with genpd will
      causes kernel panic.
      
       arm-scmi timed out in resp(caller: scmi_power_state_get+0xa4/0xd0)
       scmi-power-domain scmi_dev.2: failed to get state for domain 9
       Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
       Mem abort info:
         ESR = 0x96000006
         EC = 0x25: DABT (current EL), IL = 32 bits
         SET = 0, FnV = 0
         EA = 0, S1PTW = 0
       Data abort info:
         ISV = 0, ISS = 0x00000006
         CM = 0, WnR = 0
       user pgtable: 4k pages, 48-bit VAs, pgdp=00000009f3691000
       [0000000000000000] pgd=00000009f1ca0003, p4d=00000009f1ca0003, pud=00000009f35ea003, pmd=0000000000000000
       Internal error: Oops: 96000006 [#1] PREEMPT SMP
       CPU: 2 PID: 381 Comm: bash Not tainted 5.8.0-rc1-00011-gebd118c2cca8 #2
       Hardware name: ARM LTD ARM Juno Development Platform/ARM Juno Development Platform, BIOS EDK II Jan  3 2020
       Internal error: Oops: 96000006 [#1] PREEMPT SMP
       pstate: 80000005 (Nzcv daif -PAN -UAO BTYPE=--)
       pc : of_genpd_add_provider_onecell+0x98/0x1f8
       lr : of_genpd_add_provider_onecell+0x48/0x1f8
       Call trace:
        of_genpd_add_provider_onecell+0x98/0x1f8
        scmi_pm_domain_probe+0x174/0x1e8
        scmi_dev_probe+0x90/0xe0
        really_probe+0xe4/0x448
        driver_probe_device+0xfc/0x168
        device_driver_attach+0x7c/0x88
        bind_store+0xe8/0x128
        drv_attr_store+0x2c/0x40
        sysfs_kf_write+0x4c/0x60
        kernfs_fop_write+0x114/0x230
        __vfs_write+0x24/0x50
        vfs_write+0xbc/0x1e0
        ksys_write+0x70/0xf8
        __arm64_sys_write+0x24/0x30
        el0_svc_common.constprop.3+0x94/0x160
        do_el0_svc+0x2c/0x98
        el0_sync_handler+0x148/0x1a8
        el0_sync+0x158/0x180
      
      Do not register any power domain that failed to be queried with genpd.
      
      Fixes: 898216c9 ("firmware: arm_scmi: add device power domain support using genpd")
      Link: https://lore.kernel.org/r/20200619220330.12217-1-cristian.marussi@arm.comSigned-off-by: default avatarCristian Marussi <cristian.marussi@arm.com>
      Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
      e0f1a30c