1. 14 Jun, 2019 13 commits
  2. 12 Jun, 2019 8 commits
  3. 07 Jun, 2019 7 commits
    • Oliver O'Halloran's avatar
      i2c: fsi: Create busses for all ports · 095561f4
      Oliver O'Halloran authored
      Currently we only create an I2C bus for the ports listed in the
      device-tree for that master. There's no real reason for this since
      we can discover the number of ports the master supports by looking
      at the port_max field of the status register.
      
      This patch re-works the bus add logic so that we always create buses
      for each port, unless the bus is marked as unavailable in the DT. This
      is useful since it ensures that all the buses provided by the CFAM I2C
      master are accessible to debug tools.
      Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
      Reviewed-by: default avatarEddie James <eajames@linux.ibm.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      095561f4
    • Pali Rohár's avatar
      i2c: i801: Register optional lis3lv02d I2C device on Dell machines · 19b07cb4
      Pali Rohár authored
      Dell platform team told us that some (DMI whitelisted) Dell Latitude
      machines have ST microelectronics accelerometer at I2C address 0x29.
      
      Presence of that ST microelectronics accelerometer is verified by existence
      of SMO88xx ACPI device which represent that accelerometer. Unfortunately
      ACPI device does not specify I2C address.
      
      This patch registers lis3lv02d device for selected Dell Latitude machines
      at I2C address 0x29 after detection. And for Dell Vostro V131 machine at
      I2C address 0x1d which was manually detected.
      
      Finally commit a7ae8195 ("i2c: i801: Allow ACPI SystemIO OpRegion to
      conflict with PCI BAR") allowed to use i2c-i801 driver on Dell machines so
      lis3lv02d correctly initialize accelerometer.
      
      Tested on Dell Latitude E6440.
      Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      19b07cb4
    • Ajay Gupta's avatar
      usb: typec: ucsi: ccg: add runtime pm workaround · f0e4cd94
      Ajay Gupta authored
      Cypress USB Type-C CCGx controller firmware version 3.1.10
      (which is being used in many NVIDIA GPU cards) has known issue of
      not triggering interrupt when a USB device is hot plugged to runtime
      resume the controller. If any GPU card gets latest kernel with runtime
      pm support but does not get latest fixed firmware then also it should
      continue to work and therefore a workaround is required to check for
      any connector change event.
      
      The workaround is that i2c bus driver will call pm_request_resume()
      to runtime resume ucsi_ccg driver. CCG driver will call the ISR
      for any connector change event for NVIDIA GPU card and only if it has
      old CCG firmware with the known issue.
      Signed-off-by: default avatarAjay Gupta <ajayg@nvidia.com>
      Acked-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      f0e4cd94
    • Ajay Gupta's avatar
      i2c: nvidia-gpu: resume ccgx i2c client · 9f2e244d
      Ajay Gupta authored
      Cypress USB Type-C CCGx controller firmware version 3.1.10
      (which is being used in many NVIDIA GPU cards) has known issue of
      not triggering interrupt when a USB device is hot plugged to runtime
      resume the controller. If any GPU card gets latest kernel with runtime
      pm support but does not get latest fixed firmware then also it should
      continue to work and therefore a workaround is required to check for
      any connector change event
      
      The workaround is to request runtime resume of i2c client
      which is UCSI Cypress CCGx driver. CCG driver will call the ISR
      for any connector change event only if NVIDIA GPU has old
      CCG firmware with the known issue.
      Signed-off-by: default avatarAjay Gupta <ajayg@nvidia.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      9f2e244d
    • Ajay Gupta's avatar
      usb: typec: ucsi: ccg: enable runtime pm support · a94ecde4
      Ajay Gupta authored
      The change enables runtime pm support to UCSI CCG driver.
      Added ucsi_resume() function to enable notification after
      system reusme. Exported both ucsi_resume() and ucsi_send_command()
      symbols in ucsi.c for modular build.
      Signed-off-by: default avatarAjay Gupta <ajayg@nvidia.com>
      Acked-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      a94ecde4
    • Ajay Gupta's avatar
      i2c: nvidia-gpu: add runtime pm support · d4a4f927
      Ajay Gupta authored
      Enable runtime pm support with autosuspend delay of three second.
      This is to make sure I2C client device Cypress CCGx has completed
      all transaction.
      Signed-off-by: default avatarAjay Gupta <ajayg@nvidia.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      d4a4f927
    • Ajay Gupta's avatar
      i2c: nvidia-gpu: refactor master_xfer · cb7302fb
      Ajay Gupta authored
      Added a local variable "send_stop" to simplify "goto" statements.
      
      The "send_stop" handles below two case
      1) When first i2c start fails and so i2c stop is not sent before
      exiting
      
      2) When i2c stop failed after all transfers and we do not need to
      send another stop before exiting.
      Signed-off-by: default avatarAjay Gupta <ajayg@nvidia.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      cb7302fb
  4. 02 Jun, 2019 1 commit
  5. 27 May, 2019 5 commits
  6. 26 May, 2019 6 commits
    • Linus Torvalds's avatar
      Linux 5.2-rc2 · cd6c84d8
      Linus Torvalds authored
      cd6c84d8
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · c5b44095
      Linus Torvalds authored
      Pull tracing warning fix from Steven Rostedt:
       "Make the GCC 9 warning for sub struct memset go away.
      
        GCC 9 now warns about calling memset() on partial structures when it
        goes across multiple fields. This adds a helper for the place in
        tracing that does this type of clearing of a structure"
      
      * tag 'trace-v5.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Silence GCC 9 array bounds warning
      c5b44095
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 862f0a32
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
       "The usual smattering of fixes and tunings that came in too late for
        the merge window, but should not wait four months before they appear
        in a release.
      
        I also travelled a bit more than usual in the first part of May, which
        didn't help with picking up patches and reports promptly"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (33 commits)
        KVM: x86: fix return value for reserved EFER
        tools/kvm_stat: fix fields filter for child events
        KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86 guard
        kvm: selftests: aarch64: compile with warnings on
        kvm: selftests: aarch64: fix default vm mode
        kvm: selftests: aarch64: dirty_log_test: fix unaligned memslot size
        KVM: s390: fix memory slot handling for KVM_SET_USER_MEMORY_REGION
        KVM: x86/pmu: do not mask the value that is written to fixed PMUs
        KVM: x86/pmu: mask the result of rdpmc according to the width of the counters
        x86/kvm/pmu: Set AMD's virt PMU version to 1
        KVM: x86: do not spam dmesg with VMCS/VMCB dumps
        kvm: Check irqchip mode before assign irqfd
        kvm: svm/avic: fix off-by-one in checking host APIC ID
        KVM: selftests: do not blindly clobber registers in guest asm
        KVM: selftests: Remove duplicated TEST_ASSERT in hyperv_cpuid.c
        KVM: LAPIC: Expose per-vCPU timer_advance_ns to userspace
        KVM: LAPIC: Fix lapic_timer_advance_ns parameter overflow
        kvm: vmx: Fix -Wmissing-prototypes warnings
        KVM: nVMX: Fix using __this_cpu_read() in preemptible context
        kvm: fix compilation on s390
        ...
      862f0a32
    • Linus Torvalds's avatar
      Merge tag 'random_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random · 128f2bfa
      Linus Torvalds authored
      Pull /dev/random fix from Ted Ts'o:
       "Fix a soft lockup regression when reading from /dev/random in early
        boot"
      
      * tag 'random_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random:
        random: fix soft lockup when trying to read from an uninitialized blocking pool
      128f2bfa
    • Theodore Ts'o's avatar
      random: fix soft lockup when trying to read from an uninitialized blocking pool · 58be0106
      Theodore Ts'o authored
      Fixes: eb9d1bf0: "random: only read from /dev/random after its pool has received 128 bits"
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      58be0106
    • Miguel Ojeda's avatar
      tracing: Silence GCC 9 array bounds warning · 0c97bf86
      Miguel Ojeda authored
      Starting with GCC 9, -Warray-bounds detects cases when memset is called
      starting on a member of a struct but the size to be cleared ends up
      writing over further members.
      
      Such a call happens in the trace code to clear, at once, all members
      after and including `seq` on struct trace_iterator:
      
          In function 'memset',
              inlined from 'ftrace_dump' at kernel/trace/trace.c:8914:3:
          ./include/linux/string.h:344:9: warning: '__builtin_memset' offset
          [8505, 8560] from the object at 'iter' is out of the bounds of
          referenced subobject 'seq' with type 'struct trace_seq' at offset
          4368 [-Warray-bounds]
            344 |  return __builtin_memset(p, c, size);
                |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      In order to avoid GCC complaining about it, we compute the address
      ourselves by adding the offsetof distance instead of referring
      directly to the member.
      
      Since there are two places doing this clear (trace.c and trace_kdb.c),
      take the chance to move the workaround into a single place in
      the internal header.
      
      Link: http://lkml.kernel.org/r/20190523124535.GA12931@gmail.comSigned-off-by: default avatarMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
      [ Removed unnecessary parenthesis around "iter" ]
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      0c97bf86