Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM: tegra: Add WiFi/BT support for ASUS TF701T #106

Draft
wants to merge 1,745 commits into
base: master
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 25, 2021

  1. hfs/hfsplus: use WARN_ON for sanity check

    gcc warns about a couple of instances in which a sanity check exists but
    the author wasn't sure how to react to it failing, which makes it look
    like a possible bug:
    
    fs/hfsplus/inode.c: In function 'hfsplus_cat_read_inode':
    fs/hfsplus/inode.c:503:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      503 |                         /* panic? */;
          |                                     ^
    fs/hfsplus/inode.c:524:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      524 |                         /* panic? */;
          |                                     ^
    fs/hfsplus/inode.c: In function 'hfsplus_cat_write_inode':
    fs/hfsplus/inode.c:582:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      582 |                         /* panic? */;
          |                                     ^
    fs/hfsplus/inode.c:608:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      608 |                         /* panic? */;
          |                                     ^
    fs/hfs/inode.c: In function 'hfs_write_inode':
    fs/hfs/inode.c:464:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      464 |                         /* panic? */;
          |                                     ^
    fs/hfs/inode.c:485:37: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
      485 |                         /* panic? */;
          |                                     ^
    
    panic() is probably not the correct choice here, but a WARN_ON
    seems appropriate and avoids the compile-time warning.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/all/[email protected]/
    Signed-off-by: Arnd Bergmann <[email protected]>
    Reviewed-by: Christian Brauner <[email protected]>
    Cc: Alexander Viro <[email protected]>
    Cc: Christian Brauner <[email protected]>
    Cc: Greg Kroah-Hartman <[email protected]>
    Cc: Jan Kara <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    arndb authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8583455 View commit details
    Browse the repository at this point in the history
  2. hfsplus: fix out-of-bounds warnings in __hfsplus_setxattr

    Fix the following out-of-bounds warnings by enclosing structure members
    file and finder into new struct info:
    
    fs/hfsplus/xattr.c:300:5: warning: 'memcpy' offset [65, 80] from the object at 'entry' is out of the bounds of referenced subobject 'user_info' with type 'struct DInfo' at offset 48 [-Warray-bounds]
    fs/hfsplus/xattr.c:313:5: warning: 'memcpy' offset [65, 80] from the object at 'entry' is out of the bounds of referenced subobject 'user_info' with type 'struct FInfo' at offset 48 [-Warray-bounds]
    
    Refactor the code by making it more "structured."
    
    Also, this helps with the ongoing efforts to enable -Warray-bounds and
    makes the code clearer and avoid confusing the compiler.
    
    Matthew said:
    
    : The offending line is this:
    :
    : -                               memcpy(&entry.file.user_info, value,
    : +                               memcpy(&entry.file.info, value,
    :                                                 file_finderinfo_len);
    :
    : what it's trying to do is copy two structs which are adjacent to each
    : other in a single call to memcpy().  gcc legitimately complains that
    : the memcpy to this struct overruns the bounds of the struct.  What
    : Gustavo has done here is introduce a new struct that contains the two
    : structs, and now gcc is happy that the memcpy doesn't overrun the
    : length of this containing struct.
    
    Link: KSPP/linux#109
    Link: https://lkml.kernel.org/r/20210330145226.GA207011@embeddedor
    Signed-off-by: Gustavo A. R. Silva <[email protected]>
    Reported-by: kernel test robot <[email protected]>
    Cc: Matthew Wilcox <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    GustavoARSilva authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    462bf71 View commit details
    Browse the repository at this point in the history
  3. signal: remove duplicate include in signal.h

    'linux/string.h' included in 'signal.h' is duplicated.
    it's also included at line 7.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ye Guojin <[email protected]>
    Reported-by: Zeal Robot <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Ye Guojin authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8e99a8a View commit details
    Browse the repository at this point in the history
  4. seq_file: move seq_escape() to a header

    Move seq_escape() to the header as inliner, for a small kernel text size
    reduction.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Andy Shevchenko <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    andy-shev authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7b36af6 View commit details
    Browse the repository at this point in the history
  5. kernel/fork.c: unshare(): use swap() to make code cleaner

    Use swap() instead of reimplementing it.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ran Xiaokai <[email protected]>
    Cc: Gabriel Krisman Bertazi <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Eric W. Biederman <[email protected]>
    Cc: Jens Axboe <[email protected]>
    Cc: Alexey Gladkov <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    ranxiaokai authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    fed482a View commit details
    Browse the repository at this point in the history
  6. sysv: use BUILD_BUG_ON instead of runtime check

    There were runtime checks about sizes of struct v7_super_block and struct
    sysv_inode.  If one of these checks fail the kernel will panic.  Since
    these values are known at compile time let's use BUILD_BUG_ON(), because
    it's a standard mechanism for validation checking at build time
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: 1da177e ("Linux-2.6.12-rc2")
    Signed-off-by: Pavel Skripkin <[email protected]>
    Cc: Christoph Hellwig <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    pskrgag authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f7fd6b9 View commit details
    Browse the repository at this point in the history
  7. Documentation/kcov: include types.h in the example

    Patch series "kcov: PREEMPT_RT fixup + misc", v2.
    
    The last patch in series is follow-up to address the PREEMPT_RT issue
    within in kcov reported by Clark [1].  Patches 1-3 are smaller things that
    I noticed while staring at it.  Patch 4 is small change which makes
    replacement in grate-driver#5 simpler / more obvious.
    
    [1] https://lkml.kernel.org/r/[email protected]
    
    This patch (of 5):
    
    The first example code has includes at the top, the following two
    example share that part. The last example (remote coverage collection)
    requires the linux/types.h header file due its __aligned_u64 usage.
    
    Add the linux/types.h to the top most example and a comment that the
    header files from above are required as it is done in the second
    example.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Dmitry Vyukov <[email protected]>
    Acked-by: Marco Elver <[email protected]>
    Tested-by: Marco Elver <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Cc: Steven Rostedt <[email protected]>
    Cc: Clark Williams <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Sebastian Andrzej Siewior authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f42893c View commit details
    Browse the repository at this point in the history
  8. Documentation/kcov: define `ip' in the example

    The example code uses the variable `ip' but never declares it.
    
    Declare `ip' as a 64bit variable which is the same type as the array
    from which it loads its value.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Dmitry Vyukov <[email protected]>
    Acked-by: Marco Elver <[email protected]>
    Tested-by: Marco Elver <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Cc: Clark Williams <[email protected]>
    Cc: Steven Rostedt <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Sebastian Andrzej Siewior authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    81b66d0 View commit details
    Browse the repository at this point in the history
  9. kcov: allocate per-CPU memory on the relevant node

    During boot kcov allocates per-CPU memory which is used later if remote/
    softirq processing is enabled.
    
    Allocate the per-CPU memory on the CPU local node to avoid cross node
    memory access.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Dmitry Vyukov <[email protected]>
    Acked-by: Marco Elver <[email protected]>
    Tested-by: Marco Elver <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Cc: Clark Williams <[email protected]>
    Cc: Steven Rostedt <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Sebastian Andrzej Siewior authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2ec59ed View commit details
    Browse the repository at this point in the history
  10. kcov: avoid enable+disable interrupts if !in_task()

    kcov_remote_start() may need to allocate memory in the in_task() case
    (otherwise per-CPU memory has been pre-allocated) and therefore requires
    enabled interrupts.
    
    The interrupts are enabled before checking if the allocation is required
    so if no allocation is required then the interrupts are needlessly enabled
    and disabled again.
    
    Enable interrupts only if memory allocation is performed.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Dmitry Vyukov <[email protected]>
    Acked-by: Marco Elver <[email protected]>
    Tested-by: Marco Elver <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Cc: Clark Williams <[email protected]>
    Cc: Steven Rostedt <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Sebastian Andrzej Siewior authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b7da6d6 View commit details
    Browse the repository at this point in the history
  11. kcov: replace local_irq_save() with a local_lock_t

    The kcov code mixes local_irq_save() and spin_lock() in
    kcov_remote_{start|end}().  This creates a warning on PREEMPT_RT because
    local_irq_save() disables interrupts and spin_lock_t is turned into a
    sleeping lock which can not be acquired in a section with disabled
    interrupts.
    
    The kcov_remote_lock is used to synchronize the access to the hash-list
    kcov_remote_map.  The local_irq_save() block protects access to the
    per-CPU data kcov_percpu_data.
    
    There is no compelling reason to change the lock type to raw_spin_lock_t
    to make it work with local_irq_save().  Changing it would require to move
    memory allocation (in kcov_remote_add()) and deallocation outside of the
    locked section.
    
    Adding an unlimited amount of entries to the hashlist will increase the
    IRQ-off time during lookup.  It could be argued that this is debug code
    and the latency does not matter.  There is however no need to do so and it
    would allow to use this facility in an RT enabled build.
    
    Using a local_lock_t instead of local_irq_save() has the befit of adding a
    protection scope within the source which makes it obvious what is
    protected.  On a !PREEMPT_RT && !LOCKDEP build the local_lock_irqsave()
    maps directly to local_irq_save() so there is overhead at runtime.
    
    Replace the local_irq_save() section with a local_lock_t.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Reported-by: Clark Williams <[email protected]>
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Dmitry Vyukov <[email protected]>
    Acked-by: Marco Elver <[email protected]>
    Tested-by: Marco Elver <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Cc: Steven Rostedt <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Sebastian Andrzej Siewior authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2e7375f View commit details
    Browse the repository at this point in the history
  12. kernel/resource: clean up and optimize iomem_is_exclusive()

    Patch series "virtio-mem: disallow mapping virtio-mem memory via /dev/mem", v5.
    
    Let's add the basic infrastructure to exclude some physical memory regions
    marked as "IORESOURCE_SYSTEM_RAM" completely from /dev/mem access, even
    though they are not marked IORESOURCE_BUSY and even though "iomem=relaxed"
    is set.  Resource IORESOURCE_EXCLUSIVE for that purpose instead of adding
    new flags to express something similar to "soft-busy" or "not busy yet,
    but already prepared by a driver and not to be mapped by user space".
    
    Use it for virtio-mem, to disallow mapping any virtio-mem memory via
    /dev/mem to user space after the virtio-mem driver was loaded.
    
    This patch (of 3):
    
    We end up traversing subtrees of ranges we are not interested in; let's
    optimize this case, skipping such subtrees, cleaning up the function a
    bit.
    
    For example, in the following configuration (/proc/iomem):
    
    00000000-00000fff : Reserved
    00001000-00057fff : System RAM
    00058000-00058fff : Reserved
    00059000-0009cfff : System RAM
    0009d000-000fffff : Reserved
       000a0000-000bffff : PCI Bus 0000:00
       000c0000-000c3fff : PCI Bus 0000:00
       000c4000-000c7fff : PCI Bus 0000:00
       000c8000-000cbfff : PCI Bus 0000:00
       000cc000-000cffff : PCI Bus 0000:00
       000d0000-000d3fff : PCI Bus 0000:00
       000d4000-000d7fff : PCI Bus 0000:00
       000d8000-000dbfff : PCI Bus 0000:00
       000dc000-000dffff : PCI Bus 0000:00
       000e0000-000e3fff : PCI Bus 0000:00
       000e4000-000e7fff : PCI Bus 0000:00
       000e8000-000ebfff : PCI Bus 0000:00
       000ec000-000effff : PCI Bus 0000:00
       000f0000-000fffff : PCI Bus 0000:00
         000f0000-000fffff : System ROM
    00100000-3fffffff : System RAM
    40000000-403fffff : Reserved
       40000000-403fffff : pnp 00:00
    40400000-80a79fff : System RAM
    ...
    
    We don't have to look at any children of "0009d000-000fffff : Reserved" if
    we can just skip these 15 items directly because the parent range is not
    of interest.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: David Hildenbrand <[email protected]>
    Reviewed-by: Dan Williams <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Greg Kroah-Hartman <[email protected]>
    Cc: "Michael S. Tsirkin" <[email protected]>
    Cc: Jason Wang <[email protected]>
    Cc: "Rafael J. Wysocki" <[email protected]>
    Cc: Hanjun Guo <[email protected]>
    Cc: Andy Shevchenko <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    davidhildenbrand authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0e9f812 View commit details
    Browse the repository at this point in the history
  13. kernel/resource: disallow access to exclusive system RAM regions

    virtio-mem dynamically exposes memory inside a device memory region as
    system RAM to Linux, coordinating with the hypervisor which parts are
    actually "plugged" and consequently usable/accessible.  On the one hand,
    the virtio-mem driver adds/removes whole memory blocks, creating/removing
    busy IORESOURCE_SYSTEM_RAM resources, on the other hand, it logically
    (un)plugs memory inside added memory blocks, dynamically either exposing
    them to the buddy or hiding them from the buddy and marking them
    PG_offline.
    
    In contrast to physical devices, like a DIMM, the virtio-mem driver is
    required to actually make use of any of the device-provided memory,
    because it performs the handshake with the hypervisor.  virtio-mem memory
    cannot simply be access via /dev/mem without a driver.
    
    There is no safe way to:
    a) Access plugged memory blocks via /dev/mem, as they might contain
       unplugged holes or might get silently unplugged by the virtio-mem
       driver and consequently turned inaccessible.
    b) Access unplugged memory blocks via /dev/mem because the virtio-mem
       driver is required to make them actually accessible first.
    
    The virtio-spec states that unplugged memory blocks MUST NOT be written,
    and only selected unplugged memory blocks MAY be read.  We want to make
    sure, this is the case in sane environments -- where the virtio-mem driver
    was loaded.
    
    We want to make sure that in a sane environment, nobody "accidentially"
    accesses unplugged memory inside the device managed region.  For example,
    a user might spot a memory region in /proc/iomem and try accessing it via
    /dev/mem via gdb or dumping it via something else.  By the time the mmap()
    happens, the memory might already have been removed by the virtio-mem
    driver silently: the mmap() would succeeed and user space might
    accidentially access unplugged memory.
    
    So once the driver was loaded and detected the device along the
    device-managed region, we just want to disallow any access via /dev/mem to
    it.
    
    In an ideal world, we would mark the whole region as busy ("owned by a
    driver") and exclude it; however, that would be wrong, as we don't really
    have actual system RAM at these ranges added to Linux ("busy system RAM").
    Instead, we want to mark such ranges as "not actual busy system RAM but
    still soft-reserved and prepared by a driver for future use."
    
    Let's teach iomem_is_exclusive() to reject access to any range with
    "IORESOURCE_SYSTEM_RAM | IORESOURCE_EXCLUSIVE", even if not busy and even
    if "iomem=relaxed" is set.  Introduce EXCLUSIVE_SYSTEM_RAM to make it
    easier for applicable drivers to depend on this setting in their Kconfig.
    
    For now, there are no applicable ranges and we'll modify virtio-mem next
    to properly set IORESOURCE_EXCLUSIVE on the parent resource container it
    creates to contain all actual busy system RAM added via
    add_memory_driver_managed().
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: David Hildenbrand <[email protected]>
    Reviewed-by: Dan Williams <[email protected]>
    Cc: Andy Shevchenko <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Greg Kroah-Hartman <[email protected]>
    Cc: Hanjun Guo <[email protected]>
    Cc: Jason Wang <[email protected]>
    Cc: "Michael S. Tsirkin" <[email protected]>
    Cc: "Rafael J. Wysocki" <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    davidhildenbrand authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3ef2f8d View commit details
    Browse the repository at this point in the history
  14. virtio-mem: disallow mapping virtio-mem memory via /dev/mem

    We don't want user space to be able to map virtio-mem device memory
    directly (e.g., via /dev/mem) in order to have guarantees that in a sane
    setup we'll never accidentially access unplugged memory within the
    device-managed region of a virtio-mem device, just as required by the
    virtio-spec.
    
    As soon as the virtio-mem driver is loaded, the device region is visible
    in /proc/iomem via the parent device region.  From that point on user
    space is aware of the device region and we want to disallow mapping
    anything inside that region (where we will dynamically (un)plug memory)
    until the driver has been unloaded cleanly and e.g., another driver might
    take over.
    
    By creating our parent IORESOURCE_SYSTEM_RAM resource with
    IORESOURCE_EXCLUSIVE, we will disallow any /dev/mem access to our device
    region until the driver was unloaded cleanly and removed the parent
    region.  This will work even though only some memory blocks are actually
    currently added to Linux and appear as busy in the resource tree.
    
    So access to the region from user space is only possible
    a) if we don't load the virtio-mem driver.
    b) after unloading the virtio-mem driver cleanly.
    
    Don't build virtio-mem if access to /dev/mem cannot be restricticted -- if
    we have CONFIG_DEVMEM=y but CONFIG_STRICT_DEVMEM is not set.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: David Hildenbrand <[email protected]>
    Reviewed-by: Dan Williams <[email protected]>
    Acked-by: Michael S. Tsirkin <[email protected]>
    Cc: Andy Shevchenko <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Greg Kroah-Hartman <[email protected]>
    Cc: Hanjun Guo <[email protected]>
    Cc: Jason Wang <[email protected]>
    Cc: "Rafael J. Wysocki" <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    davidhildenbrand authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b5ba7aa View commit details
    Browse the repository at this point in the history
  15. ipc: check checkpoint_restore_ns_capable() to modify C/R proc files

    This commit removes the requirement to be root to modify sem_next_id,
    msg_next_id and shm_next_id and checks checkpoint_restore_ns_capable
    instead.
    
    Since those files are specific to the IPC namespace, there is no reason
    they should require root privileges.  This is similar to ns_last_pid,
    which also only checks checkpoint_restore_ns_capable.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Michal Clapinski <[email protected]>
    Reviewed-by: Davidlohr Bueso <[email protected]>
    Reviewed-by: Manfred Spraul <[email protected]>
    Cc: "Eric W. Biederman" <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    mclapinski authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b2ebd00 View commit details
    Browse the repository at this point in the history
  16. ipc-check-checkpoint_restore_ns_capable-to-modify-c-r-proc-files-fix

    ipc/ipc_sysctl.c needs capability.h for checkpoint_restore_ns_capable()
    
    Cc: Davidlohr Bueso <[email protected]>
    Cc: "Eric W. Biederman" <[email protected]>
    Cc: Manfred Spraul <[email protected]>
    Cc: Michal Clapinski <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    akpm00 authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2f417cf View commit details
    Browse the repository at this point in the history
  17. ipc/ipc_sysctl.c: remove fallback for !CONFIG_PROC_SYSCTL

    Compilation of ipc/ipc_sysctl.c is controlled by
    obj-$(CONFIG_SYSVIPC_SYSCTL)
    [see ipc/Makefile]
    
    And CONFIG_SYSVIPC_SYSCTL depends on SYSCTL
    [see init/Kconfig]
    
    An SYSCTL is selected by PROC_SYSCTL.
    [see fs/proc/Kconfig]
    
    Thus: #ifndef CONFIG_PROC_SYSCTL in ipc/ipc_sysctl.c is impossible, the
    fallback can be removed.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Manfred Spraul <[email protected]>
    Reviewed-by: "Eric W. Biederman" <[email protected]>
    Acked-by: Davidlohr Bueso <[email protected]>
    Cc: Manfred Spraul <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    manfred-colorfu authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    cc0170e View commit details
    Browse the repository at this point in the history
  18. Merge branch 'bitmap-master-5.15' of https://guthub.com/norov/linux.git

    # Conflicts:
    #	arch/parisc/include/asm/bitops.h
    sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c658fce View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8aa20e4 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    11eb436 View commit details
    Browse the repository at this point in the history
  21. mm: allow only SLUB on PREEMPT_RT

    Memory allocators may disable interrupts or preemption as part of the
    allocation and freeing process.  For PREEMPT_RT it is important that these
    sections remain deterministic and short and therefore don't depend on the
    size of the memory to allocate/ free or the inner state of the algorithm.
    
    Until v3.12-RT the SLAB allocator was an option but involved several
    changes to meet all the requirements.  The SLUB design fits better with
    PREEMPT_RT model and so the SLAB patches were dropped in the 3.12-RT
    patchset.  Comparing the two allocator, SLUB outperformed SLAB in both
    throughput (time needed to allocate and free memory) and the maximal
    latency of the system measured with cyclictest during hackbench.
    
    SLOB was never evaluated since it was unlikely that it preforms better
    than SLAB.  During a quick test, the kernel crashed with SLOB enabled
    during boot.
    
    Disable SLAB and SLOB on PREEMPT_RT.
    
    [[email protected]: commit description]
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ingo Molnar <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Vlastimil Babka <[email protected]>
    Cc: Christoph Lameter <[email protected]>
    Cc: Pekka Enberg <[email protected]>
    Cc: David Rientjes <[email protected]>
    Cc: Joonsoo Kim <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Ingo Molnar authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c035e8e View commit details
    Browse the repository at this point in the history
  22. mm: migrate: simplify the file-backed pages validation when migrating…

    … its mapping
    
    Patch series "Some cleanup for page migration", v3.
    
    This patchset does some cleanups and improvements for page migration.
    
    This patch (of 4):
    
    There is no need to validate the file-backed page's refcount before trying
    to freeze the page's expected refcount, instead we can rely on the
    folio_ref_freeze() to validate if the page has the expected refcount
    before migrating its mapping.
    
    Moreover we are always under the page lock when migrating the page
    mapping, which means nowhere else can remove it from the page cache, so we
    can remove the xas_load() validation under the i_pages lock.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lkml.kernel.org/r/df4c129fd8e86a95dbc55f4663d77441cc0d3bd1.1629447552.git.baolin.wang@linux.alibaba.com
    Signed-off-by: Baolin Wang <[email protected]>
    Suggested-by: Matthew Wilcox <[email protected]>
    Cc: Yang Shi <[email protected]>
    Cc: Alistair Popple <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Baolin Wang authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e1c19ed View commit details
    Browse the repository at this point in the history
  23. mm: unexport folio_memcg_{,un}lock

    Patch series "unexport memcg locking helpers".
    
    Neither the old page-based nor the new folio-based memcg locking helpers
    are used in modular code at all, so drop the exports.
    
    This patch (of 2):
    
    folio_memcg_{,un}lock are only used in built-in core mm code.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Christoph Hellwig <[email protected]>
    Cc: Johannes Weiner <[email protected]>
    Cc: Michal Hocko <[email protected]>
    Cc: Vladimir Davydov <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Christoph Hellwig authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c21a72c View commit details
    Browse the repository at this point in the history
  24. mm: unexport {,un}lock_page_memcg

    These are only used in built-in core mm code.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Christoph Hellwig <[email protected]>
    Acked-by: Johannes Weiner <[email protected]>
    Cc: Michal Hocko <[email protected]>
    Cc: Vladimir Davydov <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Christoph Hellwig authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8dfec87 View commit details
    Browse the repository at this point in the history
  25. kasan: add kasan mode messages when kasan init

    There are multiple kasan modes.  It makes sense that we add some messages
    to know which kasan mode is when booting up.  see [1].
    
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=212195 [1]
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Kuan-Ying Lee <[email protected]>
    Reviewed-by: Marco Elver <[email protected]>
    Cc: Andrey Ryabinin <[email protected]>
    Cc: Alexander Potapenko <[email protected]>
    Cc: Andrey Konovalov <[email protected]>
    Cc: Dmitry Vyukov <[email protected]>
    Cc: Catalin Marinas <[email protected]>
    Cc: Will Deacon <[email protected]>
    Cc: Matthias Brugger <[email protected]>
    Cc: Chinwen Chang <[email protected]>
    Cc: Yee Lee <[email protected]>
    Cc: Nicholas Tang <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    Kuan-Ying Lee authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c34b221 View commit details
    Browse the repository at this point in the history
  26. lib/stackdepot: allow optional init and stack_table allocation by kvm…

    …alloc() - fixup3
    
    Due to cd06ab2 ("drm/locking: add backtrace for locking contended
    locks without backoff") landing recently to -next adding a new stack depot
    user in drivers/gpu/drm/drm_modeset_lock.c we need to add an appropriate
    call to stack_depot_init() there as well.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Vlastimil Babka <[email protected]>
    Cc: Jani Nikula <[email protected]>
    Cc: Naresh Kamboju <[email protected]>
    Cc: Marco Elver <[email protected]>
    Cc: Vijayanand Jitta <[email protected]>
    Cc: Maarten Lankhorst <[email protected]>
    Cc: Maxime Ripard <[email protected]>
    Cc: Thomas Zimmermann <[email protected]>
    Cc: David Airlie <[email protected]>
    Cc: Daniel Vetter <[email protected]>
    Cc: Andrey Ryabinin <[email protected]>
    Cc: Alexander Potapenko <[email protected]>
    Cc: Andrey Konovalov <[email protected]>
    Cc: Dmitry Vyukov <[email protected]>
    Cc: Geert Uytterhoeven <[email protected]>
    Cc: Oliver Glitta <[email protected]>
    Cc: Imran Khan <[email protected]>
    Cc: Stephen Rothwell <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Stephen Rothwell <[email protected]>
    tehcaster authored and sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    39573ca View commit details
    Browse the repository at this point in the history
  27. Merge branch 'akpm/master'

    sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ff901c4 View commit details
    Browse the repository at this point in the history
  28. Add linux-next specific files for 20211025

    Signed-off-by: Stephen Rothwell <[email protected]>
    sfrothwell committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9ae1fbd View commit details
    Browse the repository at this point in the history
  29. notifier: Add blocking_notifier_call_chain_empty()

    Add blocking_notifier_call_chain_empty() that returns true if call chain
    is empty and false otherwise.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e7d8df9 View commit details
    Browse the repository at this point in the history
  30. notifier: Add atomic/blocking_notifier_has_unique_priority()

    Add atomic/blocking_notifier_has_unique_priority() helpers which return
    true if given handler has unique priority in the notifier chain.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2426c16 View commit details
    Browse the repository at this point in the history
  31. reboot: Correct typo in a comment

    Correct s/implemenations/implementations/ in <reboot.h>.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    dbff910 View commit details
    Browse the repository at this point in the history
  32. reboot: Warn if restart handler has duplicated priority

    It doesn't make sense to register restart handlers with the same priority,
    normally it's a direct sign of a problem. Add sanity check which ensures
    that there are no two restart handlers registered with the same priority.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ca49c2e View commit details
    Browse the repository at this point in the history
  33. reboot: Warn if unregister_restart_handler() fails

    Emit warning if unregister_restart_handler() fails since it never should
    fail. This will ease further API development by catching dumb mistakes.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a93911a View commit details
    Browse the repository at this point in the history
  34. reboot: Remove extern annotation from function prototypes

    There is no need to annotate function prototypes with 'extern', it makes
    code less readable. Remove unnecessary annotations from <reboot.h>.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    497f58b View commit details
    Browse the repository at this point in the history
  35. kernel: Add combined power-off+restart handler call chain API

    SoC platforms often have multiple options for performing of system's
    power-off and restart operations. Meanwhile today's kernel is limited to
    a single option. Add combined power-off+restart handler call chain API,
    which is inspired by the restart API. The new API provides both power-off
    and restart functionality, it's designed with reliability, simplicity
    and extensibility in mind.
    
    The old pm_power_off method will be kept around till all users are
    converted to the new API.
    
    Current restart API will be replaced with the new unified API since
    new API is its superset. The restart functionality of the power-handler
    API is built upon the existing restart-notifier APIs.
    
    In order to ease conversion to the new API, convenient helpers are added
    for the common use-cases. They will reduce amount of boilerplate code and
    remove global variables. These helpers preserve old behaviour where only
    one power-off handler was executed. Users of the new API should explicitly
    opt-in to allow power-off chaining by enabling the corresponding flag of
    power_handler structure.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ab10747 View commit details
    Browse the repository at this point in the history
  36. xen/x86: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1830c90 View commit details
    Browse the repository at this point in the history
  37. ARM: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4a12202 View commit details
    Browse the repository at this point in the history
  38. arm64: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    28c7d12 View commit details
    Browse the repository at this point in the history
  39. csky: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    901e137 View commit details
    Browse the repository at this point in the history
  40. ia64: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    07b5cb5 View commit details
    Browse the repository at this point in the history
  41. mips: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    d9c052e View commit details
    Browse the repository at this point in the history
  42. nds32: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    6129584 View commit details
    Browse the repository at this point in the history
  43. parisc: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8918521 View commit details
    Browse the repository at this point in the history
  44. powerpc: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    949c204 View commit details
    Browse the repository at this point in the history
  45. riscv: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1548b92 View commit details
    Browse the repository at this point in the history
  46. sh: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    6d67add View commit details
    Browse the repository at this point in the history
  47. x86: Use do_kernel_power_off()

    Kernel now supports chained power-off handlers. Use do_kernel_power_off()
    that invokes chained power-off handlers. It also invokes legacy
    pm_power_off() for now, which will be removed once all drivers will
    be converted to the new power-off API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9ea321c View commit details
    Browse the repository at this point in the history
  48. m68k: Switch to new power-handler API

    Kernel now supports chained power-off handlers. Use
    register_power_off_handler() that registers power-off handlers and
    do_kernel_power_off() that invokes chained power-off handlers. Legacy
    pm_power_off() will be removed once all drivers will be converted to
    the new power-off API.
    
    Normally arch code should adopt only the do_kernel_power_off() at first,
    but m68k is a special case because it uses pm_power_off() "inside out",
    i.e. it assigns machine_power_off() to pm_power_off, while it's
    machine_power_off() that should invoke the pm_power_off(), and thus,
    we can't convert platforms to the new API separately. There are only
    two platforms changed here, so it's not a big deal.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    04a2536 View commit details
    Browse the repository at this point in the history
  49. memory: emif: Use kernel_can_power_off()

    Replace legacy pm_power_off with kernel_can_power_off() helper that
    is aware about chained power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    adb208d View commit details
    Browse the repository at this point in the history
  50. ACPI: power: Switch to power-handler API

    Switch to power-handler API that replaces legacy pm_power_off callbacks.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    42a26b7 View commit details
    Browse the repository at this point in the history
  51. regulator: pfuze100: Use devm_register_power_handler()

    Use devm_register_power_handler() that replaces global pm_power_off_prepare
    variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3ae17be View commit details
    Browse the repository at this point in the history
  52. reboot: Remove pm_power_off_prepare()

    All pm_power_off_prepare() users were converted to power-handler API.
    Remove the obsolete callback.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ca4ea14 View commit details
    Browse the repository at this point in the history
  53. soc/tegra: pmc: Utilize power-handler API to power off Nexus 7 properly

    Nexus 7 Android tablet can be turned off using a special bootloader
    command which is conveyed to bootloader by putting magic value into
    specific scratch register and then rebooting normally. This power-off
    method should be invoked if USB cable is connected. Bootloader then will
    display battery status and power off the device. This behaviour is
    borrowed from downstream kernel and matches user expectations, otherwise
    it looks like device got hung during power-off and it may wake up on
    USB disconnect.
    
    Switch PMC driver to power-handler API, which provides drivers with
    combined power-off+restart call chains functionality, replacing the
    restart-only call chain API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    67007de View commit details
    Browse the repository at this point in the history
  54. mfd: ntxec: Use devm_register_power_handler()

    Use devm_register_power_handler() that replaces global pm_power_off
    variable and allows to register multiple power-off handlers. It also
    provides restart-handler support, i.e. all in one API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    474db1b View commit details
    Browse the repository at this point in the history
  55. mfd: rn5t618: Use devm_register_power_handler()

    Use devm_register_power_handler() that replaces global pm_power_off
    variable and allows to register multiple power-off handlers. It also
    provides restart-handler support, i.e. all in one API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    d346f4e View commit details
    Browse the repository at this point in the history
  56. mfd: acer-a500: Use devm_register_power_handler()

    Use devm_register_power_handler() that replaces global pm_power_off
    variable and allows to register multiple power-off handlers. It also
    provides restart-handler support, i.e. all in one API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8cf3cd1 View commit details
    Browse the repository at this point in the history
  57. mfd: ene-kb3930: Use devm_register_power_handler()

    Use devm_register_power_handler() that replaces global pm_power_off
    variable and allows to register multiple power-off handlers. It also
    provides restart-handler support, i.e. all in one API.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b8a571d View commit details
    Browse the repository at this point in the history
  58. mfd: axp20x: Use register_simple_power_off_handler()

    Use register_simple_power_off_handler() that replaces global pm_power_off
    variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    318fcb2 View commit details
    Browse the repository at this point in the history
  59. mfd: retu: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1543473 View commit details
    Browse the repository at this point in the history
  60. mfd: rk808: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    88ea66c View commit details
    Browse the repository at this point in the history
  61. mfd: palmas: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f84ff0f View commit details
    Browse the repository at this point in the history
  62. mfd: max8907: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3e205a8 View commit details
    Browse the repository at this point in the history
  63. mfd: tps6586x: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f0e2d09 View commit details
    Browse the repository at this point in the history
  64. mfd: tps65910: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4429eaf View commit details
    Browse the repository at this point in the history
  65. mfd: max77620: Use devm_register_simple_power_off_handler()

    Use devm_register_simple_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Nexus 7 Android tablet can be powered off using MAX77663 PMIC and using
    a special bootloader command. At first the bootloader option should be
    tried, it will have a higher priority than of PMIC that uses default
    priority.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    477daa9 View commit details
    Browse the repository at this point in the history
  66. mfd: dm355evm_msp: Use devm_register_trivial_power_off_handler()

    Use devm_register_trivial_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    fd3d7ca View commit details
    Browse the repository at this point in the history
  67. mfd: twl4030: Use devm_register_trivial_power_off_handler()

    Use devm_register_trivial_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5f61e19 View commit details
    Browse the repository at this point in the history
  68. mfd: ab8500: Use devm_register_trivial_power_off_handler()

    Use devm_register_trivial_power_off_handler() that replaces global
    pm_power_off variable and allows to register multiple power-off handlers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a7ef0e0 View commit details
    Browse the repository at this point in the history
  69. reset: ath79: Use devm_register_simple_restart_handler()

    Use devm_register_simple_restart_handler() helper that reduces boilerplate
    code.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    fbafc88 View commit details
    Browse the repository at this point in the history
  70. reset: intel-gw: Use devm_register_simple_restart_handler()

    Use devm_register_simple_restart_handler() helper that reduces boilerplate
    code.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5ea569a View commit details
    Browse the repository at this point in the history
  71. reset: lpc18xx: Use devm_register_prioritized_restart_handler()

    Use devm_register_prioritized_restart_handler() helper that reduces
    boilerplate code.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f66f7d3 View commit details
    Browse the repository at this point in the history
  72. reset: npcm: Use devm_register_prioritized_restart_handler()

    Use devm_register_prioritized_restart_handler() helper that reduces
    boilerplate code.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8f301ba View commit details
    Browse the repository at this point in the history
  73. HACK: ARM: seccomp: Enforce whitelisting of clock_gettime64

    After updating to Ubuntu 20.04, I found that all chromium-based software
    got broken. This happens because Ubuntu 20.04 updated GLIBC to 2.31,
    which now uses clock_gettime64 by default, but chromium doesn't whitelist
    this syscall for seccomp. The clock_gettime64 is a VDSO function on ARM,
    and thus, there is no good reason to fail software that is not ready
    for a newer GLIBC versions. Falkon and Akregator are now working on
    Ubuntu 20.04 without a need to disable seccomp by software, which isn't
    always possible (like in a case of Akregator).
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b6d2ad6 View commit details
    Browse the repository at this point in the history
  74. HACK: ARM: seccomp: Enforce whitelisting of clock_nanosleep_time64

    Chromium browser crashes sometime because it doesn't whitelist the
    clock_nanosleep_time64 syscall. This is a problem crated by GLIBC,
    it won't be fixed until all userspace software that uses seccomp
    will update its syscall filtering rules.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    eedfea2 View commit details
    Browse the repository at this point in the history
  75. soc/tegra: Enable runtime PM during OPP state-syncing

    GENPD core now can set up domain's performance state properly while device
    is RPM-suspended. Runtime PM of a device must be enabled during setup
    because GENPD checks whether device is suspended and check doesn't work
    while RPM is disabled. Instead of replicating the boilerplate RPM-enable
    code around OPP helper for each driver, let's make OPP helper to take care
    of enabling it.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e1f474d View commit details
    Browse the repository at this point in the history
  76. soc/tegra: Add devm_tegra_core_dev_init_opp_table_common()

    Only couple drivers need to get the -ENODEV error code and majority of
    drivers need to explicitly initialize the performance state. Add new
    common helper which sets up OPP table for these drivers.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c800edb View commit details
    Browse the repository at this point in the history
  77. soc/tegra: Don't print error message when OPPs not available

    Previously we assumed that devm_tegra_core_dev_init_opp_table() will
    be used only by drivers that will always have device with OPP table,
    but this is not true anymore. For example now Tegra30 will have OPP table
    for PWM, but Tegra20 not and both use the same driver. Hence let's not
    print the error message about missing OPP table in the common helper,
    we can print it elsewhere.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ed46621 View commit details
    Browse the repository at this point in the history
  78. dt-bindings: clock: tegra-car: Document new clock sub-nodes

    Document sub-nodes which describe Tegra SoC clocks that require a higher
    voltage of the core power domain in order to operate properly on a higher
    clock rates.  Each node contains a phandle to OPP table and power domain.
    
    The root PLLs and system clocks don't have any specific device dedicated
    to them, clock controller is in charge of managing power for them.
    
    Reviewed-by: Rob Herring <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    84829db View commit details
    Browse the repository at this point in the history
  79. clk: tegra: Support runtime PM and power domain

    The Clock-and-Reset controller resides in a core power domain on NVIDIA
    Tegra SoCs.  In order to support voltage scaling of the core power domain,
    we hook up DVFS-capable clocks to the core GENPD for managing of the
    GENPD's performance state based on the clock changes.
    
    Some clocks don't have any specific physical hardware unit that backs
    them, like root PLLs and system clock and they have theirs own voltage
    requirements.  This patch adds new clk-device driver that backs the clocks
    and provides runtime PM functionality for them.  A virtual clk-device is
    created for each such DVFS-capable clock at the clock's registration time
    by the new tegra_clk_register() helper.  Driver changes clock's device
    GENPD performance state based on clk-rate notifications.
    
    In result we have this sequence of events:
    
      1. Clock driver creates virtual device for selective clocks, enables
         runtime PM for the created device and registers the clock.
      2. Clk-device driver starts to listen to clock rate changes.
      3. Something changes clk rate or enables/disables clk.
      4. CCF core propagates the change through the clk tree.
      5. Clk-device driver gets clock rate-change notification or GENPD core
         handles prepare/unprepare of the clock.
      6. Clk-device driver changes GENPD performance state on clock rate
         change.
      7. GENPD driver changes voltage regulator state change.
      8. The regulator state is committed to hardware via I2C.
    
    We rely on fact that DVFS is not needed for Tegra I2C and that Tegra I2C
    driver already keeps clock always-prepared.  Hence I2C subsystem stays
    independent from the clk power management and there are no deadlock spots
    in the sequence.
    
    Currently all clocks are registered very early during kernel boot when the
    device driver core isn't available yet.  The clk-device can't be created
    at that time.  This patch splits the registration of the clocks in two
    phases:
    
      1. Register all essential clocks which don't use RPM and are needed
         during early boot.
    
      2. Register at a later boot time the rest of clocks.
    
    This patch adds power management support for Tegra20 and Tegra30 clocks.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    44a756e View commit details
    Browse the repository at this point in the history
  80. dt-bindings: host1x: Document OPP and power domain properties

    Document new DVFS OPP table and power domain properties of the Host1x bus
    and devices sitting on the bus.
    
    Reviewed-by: Rob Herring <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b198ea6 View commit details
    Browse the repository at this point in the history
  81. dt-bindings: host1x: Document Memory Client resets of Host1x, GR2D an…

    …d GR3D
    
    Memory Client should be blocked before hardware reset is asserted in order
    to prevent memory corruption and hanging of memory controller.
    
    Document Memory Client resets of Host1x, GR2D and GR3D hardware units.
    
    Reviewed-by: Rob Herring <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9457185 View commit details
    Browse the repository at this point in the history
  82. gpu: host1x: Add initial runtime PM and OPP support

    Add runtime PM and OPP support to the Host1x driver. For the starter we
    will keep host1x always-on because dynamic power management require a major
    refactoring of the driver code since lot's of code paths are missing the
    RPM handling and we're going to remove some of these paths in the future.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    6664c8f View commit details
    Browse the repository at this point in the history
  83. gpu: host1x: Add host1x_channel_stop()

    Add host1x_channel_stop() which waits till channel becomes idle and then
    stops the channel hardware. This is needed for supporting suspend/resume
    by host1x drivers since the hardware state is lost after power-gating,
    thus the channel needs to be stopped before client enters into suspend.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a08669d View commit details
    Browse the repository at this point in the history
  84. drm/tegra: dc: Support OPP and SoC core voltage scaling

    Add OPP and SoC core voltage scaling support to the display controller
    driver. This is required for enabling system-wide DVFS on pre-Tegra186
    SoCs.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c4a7d4a View commit details
    Browse the repository at this point in the history
  85. drm/tegra: hdmi: Add OPP support

    The HDMI on Tegra belongs to the core power domain and we're going to
    enable GENPD support for the core domain. Now HDMI driver must use
    OPP API for driving the controller's clock rate because OPP API takes
    care of reconfiguring the domain's performance state based on HDMI clock
    rate. Add OPP support to the HDMI driver.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1f58973 View commit details
    Browse the repository at this point in the history
  86. drm/tegra: gr2d: Support generic power domain and runtime PM

    Add runtime power management and support generic power domains.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b223225 View commit details
    Browse the repository at this point in the history
  87. drm/tegra: gr3d: Support generic power domain and runtime PM

    Add runtime power management and support generic power domains.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a4780bd View commit details
    Browse the repository at this point in the history
  88. drm/tegra: vic: Stop channel on suspend

    CDMA must be stopped before hardware is suspended. Add channel stopping
    to RPM suspend callback. Add system level suspend-resume callbacks.
    
    Runtime PM initialization is moved to host1x client init phase because
    RPM callback now uses host1x channel that is available only when host1x
    client is registered.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    66e7034 View commit details
    Browse the repository at this point in the history
  89. drm/tegra: nvdec: Stop channel on suspend

    CDMA must be stopped before hardware is suspended. Add channel stopping
    to RPM suspend callback. Add system level suspend-resume callbacks.
    
    Runtime PM initialization is moved to host1x client init phase because
    RPM callback now uses host1x channel that is available only when host1x
    client is registered.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2d301e7 View commit details
    Browse the repository at this point in the history
  90. drm/tegra: submit: Remove pm_runtime_enabled() checks

    Runtime PM is now universally available, make it mandatory by removing
    the pm_runtime_enabled() checks.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    577e826 View commit details
    Browse the repository at this point in the history
  91. drm/tegra: submit: Add missing pm_runtime_mark_last_busy()

    Runtime PM auto-suspension doesn't work without pm_runtime_mark_last_busy(),
    add it.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    99defd8 View commit details
    Browse the repository at this point in the history
  92. usb: chipidea: tegra: Add runtime PM and OPP support

    The Tegra USB controller belongs to the core power domain and we're going
    to enable GENPD support for the core domain. Now USB controller must be
    resumed using runtime PM API in order to initialize the USB power state.
    We already support runtime PM for the CI device, but CI's PM is separated
    from the RPM managed by tegra-usb driver. Add runtime PM and OPP support
    to the driver.
    
    Acked-by: Peter Chen <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5613633 View commit details
    Browse the repository at this point in the history
  93. bus: tegra-gmi: Add runtime PM and OPP support

    The GMI bus on Tegra belongs to the core power domain and we're going to
    enable GENPD support for the core domain. Now GMI must be resumed using
    runtime PM API in order to initialize the GMI power state. Add runtime PM
    and OPP support to the GMI driver.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0bc34d7 View commit details
    Browse the repository at this point in the history
  94. pwm: tegra: Add runtime PM and OPP support

    The PWM on Tegra belongs to the core power domain and we're going to
    enable GENPD support for the core domain. Now PWM must be resumed using
    runtime PM API in order to initialize the PWM power state. The PWM clock
    rate must be changed using OPP API that will reconfigure the power domain
    performance state in accordance to the rate. Add runtime PM and OPP
    support to the PWM driver.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3983e1a View commit details
    Browse the repository at this point in the history
  95. mmc: sdhci-tegra: Add runtime PM and OPP support

    The SDHCI on Tegra belongs to the core power domain and we're going to
    enable GENPD support for the core domain. Now SDHCI must be resumed using
    runtime PM API in order to initialize the SDHCI power state. The SDHCI
    clock rate must be changed using OPP API that will reconfigure the power
    domain performance state in accordance to the rate. Add runtime PM and OPP
    support to the SDHCI driver.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    625b7c7 View commit details
    Browse the repository at this point in the history
  96. mtd: rawnand: tegra: Add runtime PM and OPP support

    The NAND on Tegra belongs to the core power domain and we're going to
    enable GENPD support for the core domain. Now NAND must be resumed using
    runtime PM API in order to initialize the NAND power state. Add runtime PM
    and OPP support to the NAND driver.
    
    Acked-by: Miquel Raynal <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    eba0c4b View commit details
    Browse the repository at this point in the history
  97. spi: tegra20-slink: Add OPP support

    The SPI on Tegra belongs to the core power domain and we're going to
    enable GENPD support for the core domain. Now SPI driver must use OPP
    API for driving the controller's clock rate because OPP API takes care
    of reconfiguring the domain's performance state in accordance to the
    rate. Add OPP support to the driver.
    
    Acked-by: Mark Brown <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    720251a View commit details
    Browse the repository at this point in the history
  98. media: dt: bindings: tegra-vde: Convert to schema

    Convert NVIDIA Tegra video decoder binding to schema.
    
    Reviewed-by: Rob Herring <[email protected]>
    Acked-by: Hans Verkuil <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    190f1e5 View commit details
    Browse the repository at this point in the history
  99. media: dt: bindings: tegra-vde: Document OPP and power domain

    Document new OPP table and power domain properties of the video decoder
    hardware.
    
    Reviewed-by: Rob Herring <[email protected]>
    Acked-by: Hans Verkuil <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    88fab3f View commit details
    Browse the repository at this point in the history
  100. media: staging: tegra-vde: Support generic power domain

    Currently driver supports legacy power domain API, this patch adds generic
    power domain support. This allows us to utilize a modern GENPD API for
    newer device-trees.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20 and TK1 T124
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Acked-by: Hans Verkuil <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    70be9a4 View commit details
    Browse the repository at this point in the history
  101. soc/tegra: fuse: Reset hardware

    The FUSE controller is enabled at a boot time. Reset it in order to put
    hardware and clock into clean and disabled state.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    409be73 View commit details
    Browse the repository at this point in the history
  102. soc/tegra: fuse: Use resource-managed helpers

    Use resource-managed helpers to make code cleaner and more correct,
    properly releasing all resources in case of driver probe error.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7f6ce09 View commit details
    Browse the repository at this point in the history
  103. soc/tegra: regulators: Prepare for suspend

    Depending on hardware version, Tegra SoC may require a higher voltages
    during resume from system suspend, otherwise hardware will crash. Set
    SoC voltages to a nominal levels during suspend.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ad53c1b View commit details
    Browse the repository at this point in the history
  104. soc/tegra: pmc: Rename 3d power domains

    Device-tree schema doesn't allow domain name to start with a number.
    We don't use 3d domain yet in device-trees, so rename it to the name
    used by Tegra TRMs: TD, TD2.
    
    Reported-by: David Heidelberg <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    afca0d0 View commit details
    Browse the repository at this point in the history
  105. soc/tegra: pmc: Rename core power domain

    CORE power domain uses name of device-tree node, which is inconsistent with
    the names of PMC domains. Set the name to "core" to make it consistent.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    589bc84 View commit details
    Browse the repository at this point in the history
  106. soc/tegra: pmc: Enable core domain support for Tegra20 and Tegra30

    All device drivers got runtime PM and OPP support. Flip the core domain
    support status for Tegra20 and Tegra30 SoCs.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    669bb38 View commit details
    Browse the repository at this point in the history
  107. ARM: tegra: Rename CPU and EMC OPP table device-tree nodes

    OPP table name now should start with "opp-table" and OPP entries
    shouldn't contain commas and @ signs in accordance to the new schema
    requirement. Reorganize CPU and EMC OPP table device-tree nodes.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    28a5de1 View commit details
    Browse the repository at this point in the history
  108. ARM: tegra: Add 500MHz entry to Tegra30 memory OPP table

    Extend memory OPPs with 500MHz entry. This clock rate is used by ASUS
    Transformer tablets.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5ecb9ed View commit details
    Browse the repository at this point in the history
  109. ARM: tegra: Add OPP tables and power domains to Tegra20 device-trees

    Add OPP tables and power domains to all peripheral devices which
    support power management on Tegra20 SoC.
    
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b23a3a1 View commit details
    Browse the repository at this point in the history
  110. ARM: tegra: Add OPP tables and power domains to Tegra30 device-trees

    Add OPP tables and power domains to all peripheral devices which
    support power management on Tegra30 SoC.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e4249b3 View commit details
    Browse the repository at this point in the history
  111. ARM: tegra: Add Memory Client resets to Tegra20 GR2D, GR3D and Host1x

    Memory access must be blocked before hardware reset is asserted and before
    power is gated, otherwise a serious hardware fault is inevitable. Add
    reset for memory clients to the GR2D, GR3D and Host1x nodes.
    
    Tested-by: Paul Fertser <[email protected]> # PAZ00 T20
    Tested-by: Nicolas Chauvet <[email protected]> # PAZ00 T20
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    cb77fc4 View commit details
    Browse the repository at this point in the history
  112. ARM: tegra: Add Memory Client resets to Tegra30 GR2D, GR3D and Host1x

    Memory access must be blocked before hardware reset is asserted and before
    power is gated, otherwise a serious hardware fault is inevitable. Add
    reset for memory clients to the GR2D, GR3D and Host1x nodes.
    
    Tested-by: Peter Geis <[email protected]> # Ouya T30
    Tested-by: Matt Merhar <[email protected]> # Ouya T30
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    adfd443 View commit details
    Browse the repository at this point in the history
  113. ARM: tegra20/30: Disable unused host1x hardware

    MPE, VI, EPP and ISP were never used and we don't have drivers for them.
    Since these modules are enabled by default in a device-tree, a device is
    created for them, blocking voltage scaling because there is no driver to
    bind, and thus, state of PMC driver is never synced. Disable them.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    062148e View commit details
    Browse the repository at this point in the history
  114. ASoC: tegra: Restore AC97 support

    The device-tree of AC97 codecs need to be parsed differently from I2S
    codecs, plus codec device may need to be created. This was missed by the
    patch that unified machine drivers into a single driver, fix it. It should
    restore audio on Toradex Colibri board.
    
    Cc: <[email protected]>
    Fixes: cc8f70f ("ASoC: tegra: Unify ASoC machine drivers")
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9599b7d View commit details
    Browse the repository at this point in the history
  115. ASoC: tegra: Set default card name for Trimslice

    The default card name for Trimslice device should be "tegra-trimslice".
    It got lost by accident during unification of machine sound drivers,
    fix it.
    
    Cc: <[email protected]>
    Fixes: cc8f70f ("ASoC: tegra: Unify ASoC machine drivers")
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5af8aee View commit details
    Browse the repository at this point in the history
  116. mfd: tps80031: Remove driver

    Driver was upstreamed in 2013 and never got a user, remove it.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5aea88c View commit details
    Browse the repository at this point in the history
  117. ARM: tegra: Name clock and regulator nodes according to DT-schema

    Name clocks and regulators according to DT-schema to fix warnings such as:
    
    arch/arm/boot/dts/tegra20-acer-a500-picasso.dt.yaml: /: clock@0: 'anyOf' conditional failed, one must be fixed:
     	'reg' is a required property
     	'ranges' is a required property
     	From schema: /home/runner/.local/lib/python3.8/site-packages/dtschema/schemas/root-node.yaml
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2905126 View commit details
    Browse the repository at this point in the history
  118. dt-bindings: display: simple: Add HannStar HSD101PWW2

    Add HannStar HSD101PWW2 10.1" WXGA (1280x800) TFT-LCD LVDS panel
    to the list of compatibles.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5e30efb View commit details
    Browse the repository at this point in the history
  119. drm/panel: simple: Add support for HannStar HSD101PWW2 panel

    Add definition of the HannStar HSD101PWW2 Rev0-A00/A01 LCD
    SuperIPS+ HD panel.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    d5b1de4 View commit details
    Browse the repository at this point in the history
  120. dt-bindings: ARM: tegra: Document ASUS Transformers

    Document Tegra20/30-based ASUS Transformer Series tablet devices.
    This group includes EeePad TF101, Prime TF201, Pad TF300T, TF300TG
    and Infinity TF700T.
    
    Signed-off-by: David Heidelberg <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a069d19 View commit details
    Browse the repository at this point in the history
  121. dt-bindings: ARM: tegra: Document Pegatron Chagall

    Document Pegatron Chagall, which is Tegra30-based tablet device.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f7ae3df View commit details
    Browse the repository at this point in the history
  122. ARM: tegra: Add device-tree for ASUS Transformer EeePad TF101

    Add device-tree for Tegra20-based ASUS Transformer EeePad TF101.
    
    Co-developed-by: David Heidelberg <[email protected]>
    Co-developed-by: Dmitry Osipenko <[email protected]>
    Co-developed-by: Svyatoslav Ryhel <[email protected]>
    Co-developed-by: Antoni Aloy Torrens <[email protected]>
    Signed-off-by: David Heidelberg <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Antoni Aloy Torrens <[email protected]>
    Signed-off-by: Nikola Milosavljević <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    mnidza authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    87dba70 View commit details
    Browse the repository at this point in the history
  123. ARM: tegra: Add device-tree for ASUS Transformer Prime TF201

    Add device-tree for ASUS Transformer Prime TF201, which is NVIDIA
    Tegra30-based tablet device.
    
    Co-developed-by: Ion Agorria <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ba60ed8 View commit details
    Browse the repository at this point in the history
  124. ARM: tegra: Add device-tree for ASUS Transformer Pad TF300T

    Add device-tree for ASUS Transformer Pad TF300T, which is NVIDIA
    Tegra30-based tablet device.
    
    Tested-by: <Ihor Didenko [email protected]>
    Tested-by: <Andreas Westman Dorcsak [email protected]>
    Co-developed-by: Ion Agorria <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Co-developed-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f286e37 View commit details
    Browse the repository at this point in the history
  125. ARM: tegra: Add device-tree for ASUS Transformer Pad TF300TG

    Add device-tree for ASUS Transformer Pad TF300TG, which is NVIDIA
    Tegra30-based tablet device, a variant of TF300T that has 3g modem.
    
    Co-developed-by: Ion Agorria <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3efa410 View commit details
    Browse the repository at this point in the history
  126. ARM: tegra: Add device-tree for ASUS Transformer Infinity TF700T

    Add device-tree for ASUS Transformer Infinity TF700T, which is NVIDIA
    Tegra30-based tablet device.
    
    Tested-by: Andreas Westman Dorcsak <[email protected]>
    Tested-by: Jasper Korten <[email protected]>
    Co-developed-by: Ion Agorria <[email protected]>
    Co-developed-by: Maxim Schwalm <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: Maxim Schwalm <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    586b6f4 View commit details
    Browse the repository at this point in the history
  127. ARM: tegra: Add device-tree for Pegatron Chagall tablet

    Add device-tree for Pegatron Chagall, which is NVIDIA Tegra30-based
    Android tablet.
    
    Co-developed-by: Raffaele Tranquillini <[email protected]>
    Signed-off-by: Raffaele Tranquillini <[email protected]>
    Co-developed-by: Ion Agorria <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    d51672d View commit details
    Browse the repository at this point in the history
  128. spi: tegra20-slink: Put device into suspend on driver removal

    pm_runtime_disable() cancels all pending power requests, while they
    should be completed for the Tegra SPI driver. Otherwise SPI clock won't
    be disabled ever again because clk refcount will become unbalanced.
    Enforce runtime PM suspension to put device into expected state before
    driver is unbound and device's RPM state is reset by driver's core.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e9fb630 View commit details
    Browse the repository at this point in the history
  129. spi: tegra210-quad: Put device into suspend on driver removal

    pm_runtime_disable() cancels all pending power requests, while they
    should be completed for the Tegra SPI driver. Otherwise SPI clock won't
    be disabled ever again because clk refcount will become unbalanced.
    Enforce runtime PM suspension to put device into expected state before
    driver is unbound and device's RPM state is reset by driver's core.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    86cd45e View commit details
    Browse the repository at this point in the history
  130. iommu/tegra-smmu: Change debugfs directory name

    Change debugfs directory name to "smmu", which is a much more obvious name
    than the generic name of the memory controller device-tree node.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    81de9ef View commit details
    Browse the repository at this point in the history
  131. iommu/tegra-smmu: Defer attachment of display clients

    All consumer-grade Android and Chromebook devices show a splash screen
    on boot and then display is left enabled when kernel is booted. This
    behaviour is unacceptable in a case of implicit IOMMU domains to which
    devices are attached during kernel boot since devices, like display
    controller, may perform DMA at that time. We can work around this problem
    by deferring the enable of SMMU translation for a specific devices,
    like a display controller, until the first IOMMU mapping is created,
    which works good enough in practice because by that time h/w is already
    stopped.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1a1fa62 View commit details
    Browse the repository at this point in the history
  132. iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chro…

    …mebook
    
    The previous commit fixes problem where display client was attaching too
    early to IOMMU during kernel boot in a multi-platform kernel configuration
    which enables CONFIG_ARM_DMA_USE_IOMMU=y. The workaround that helped to
    defer the IOMMU attachment for Nyan Big Chromebook isn't needed anymore,
    revert it.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    99b9a96 View commit details
    Browse the repository at this point in the history
  133. gpu: host1x: Add back arm_iommu_detach_device()

    The case of CONFIG_ARM_DMA_USE_IOMMU=y was found to be broken for
    host1x driver. Add back the workaround using arm_iommu_detach_device()
    as a temporary solution.
    
    Cc: [email protected]
    Fixes: af1cbfb ("gpu: host1x: Support DMA mapping of buffers"
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3713252 View commit details
    Browse the repository at this point in the history
  134. drm/tegra: Add back arm_iommu_detach_device()

    The case of CONFIG_ARM_DMA_USE_IOMMU=y was found to be broken for
    DRM driver. Add back the workaround using arm_iommu_detach_device()
    as a temporary solution.
    
    Cc: [email protected]
    Fixes: fa6661b ("drm/tegra: Optionally attach clients to the IOMMU")
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    28ecc1d View commit details
    Browse the repository at this point in the history
  135. drm/tegra: plane: Accept all format-modifiers

    Tiling modifier can't be applied to YV12 video overlay by userspace
    because all tiling modifiers are filtered out for multi-plane formats.
    AFAIK, all modifiers should work with all of formats, hence the checking
    is incorrect.
    
    Fixes: e90124c ("drm/tegra: plane: Support format modifiers")
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    37ec7a0 View commit details
    Browse the repository at this point in the history
  136. PM / devfreq: tegra30: Use tracepoints for debugging

    Debug messages create too much CPU and memory activity by themselves,
    so it's difficult to debug lower rates and catch unwanted interrupts
    that happen rarely. Tracepoints are ideal in that regards because they
    do not contribute to the sampled date at all. This allowed me to catch
    few problems which are fixed by the followup patches, without tracepoints
    it would be much harder to do.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    bbdcf8f View commit details
    Browse the repository at this point in the history
  137. memory: tegra: Block DMA for clients HW on a faulty memory access

    Currently Memory Controller informs about erroneous memory accesses done
    by memory clients and that's it. Let's make it to block whole HW unit that
    corresponds to the misbehaving memory client in order to try to avoid
    memory corruptions and to stop deliberate attempts of manipulation by a
    misbehaving client.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    74f2fbe View commit details
    Browse the repository at this point in the history
  138. ARM: dts: tegra20: Add IOMMU nodes to Host1x clients

    Enable IOMMU support for Host1x clients.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4318eb0 View commit details
    Browse the repository at this point in the history
  139. xxx: mmc: core: Add quirk for NVIDIA Tegra20 EMMC

    This quirk is required in order to detect EMMC partitions on some Tegra20
    devices.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4909f07 View commit details
    Browse the repository at this point in the history
  140. Revert "xxx: mmc: core: Add quirk for NVIDIA Tegra20 EMMC"

    This reverts commit 828663c674099f5b2f831e1281913c762a6f61e8.
    
    It makes some T20 devices to see eMMC partitions, but breaks the others.
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    6cbb4c7 View commit details
    Browse the repository at this point in the history
  141. xxx: iommu: tegra-gart: Expose as system-wide IOMMU

    This enables IOMMU for Terga20 GPU. The patch will be removed after
    updating DRM WIP patch to support IOMMU in a different way.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    70cbc03 View commit details
    Browse the repository at this point in the history
  142. xxx: staging: android: Add legacy ram-console

    Device-tree should contain the ram-console node, example:
    
    /memreserve/ 0xbeb00000 0x100000;
    
    	ram-console {
    		compatible = "android,ram-console";
    		reg = <0xbeb00000 0x100000>;
    	};
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8b950fe View commit details
    Browse the repository at this point in the history
  143. mmc: Support non-standard gpt_sector cmdline parameter

    Add support for the gpt_sector cmdline parameter which will be used
    for looking up GPT entry on internal eMMC storage of NVIDIA Tegra20+
    devices. This parameter is used by a stock downstream bootloader of
    Android devices.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c13eac2 View commit details
    Browse the repository at this point in the history
  144. partitions: Support NVIDIA Tegra Partition Table

    All NVIDIA Tegra devices use a special partition table format for the
    internal storage partitioning.  Most of Tegra devices have GPT partition
    in addition to TegraPT, but some older Android consumer-grade devices do
    not or GPT is placed in a wrong sector, and thus, the TegraPT is needed
    in order to support these devices properly by the upstream kernel. This
    patch adds support for NVIDIA Tegra Partition Table format that is used
    at least by all NVIDIA Tegra20 and Tegra30 devices.
    
    Tested-by: Nils Östlund <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ca08fe3 View commit details
    Browse the repository at this point in the history
  145. soc/tegra: Expose Boot Configuration Table via sysfs

    It's quite useful to have unencrypted BCT exposed to userspace for
    debugging purposes, so let's expose it via sysfs.  The BCT data will be
    present in '/sys/tegra/boot_config_table' binary file if BCT is available.
    
    Suggested-by: Michał Mirosław <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    eb8aac9 View commit details
    Browse the repository at this point in the history
  146. xxx: partitions/tegra: Enable debug by default

    The debug messages are useful for a WIP devices, so let's enable them.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7107131 View commit details
    Browse the repository at this point in the history
  147. ARM: tegra_defconfig: Enable CONFIG_ARM_APPENDED_DTB

    Downstream bootloader of Tegra20/30 doesn't support device-tree,
    so compiled DTB needs to be manually appended to the kernel's zImage.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4f674ce View commit details
    Browse the repository at this point in the history
  148. PCI: disable nv_msi_ht_cap_quirk_leaf quirk on arm/arm64

    This patch disable the use of nv_msi_ht_cap_quirk_leaf quirk on arm and
    arm64 NVIDIA devices such as Tegra
    
    This fixes the following output:
    "pci 0000:00:01.0: nv_msi_ht_cap_quirk didn't locate host bridge"
    as experienced on a Trimslice device with PCI host bridge enabled
    
    v3: exclude the quirk for arm and arm64 instead of only for x86
    
    v2: use __maybe_unused to avoid a warning on nv_msi_ht_cap_quirk_leaf
    
    Signed-off-by: Nicolas Chauvet <[email protected]>
    Reviewed-by: Manikanta Maddireddy <[email protected]>
    Acked-by: Thierry Reding <[email protected]>
    kwizart authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    dec45b1 View commit details
    Browse the repository at this point in the history
  149. drm/tegra: dc: Add legacy BO tiling compatibility

    The BO tiling isn't respected since the time when DRM modifiers became
    supported and in a result older userspace can't set tiling mode. This
    patch restores the legacy BO tiling flag support, which is useful for
    developing purposes.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f7d9760 View commit details
    Browse the repository at this point in the history
  150. XXX: drm: Add generic colorkey properties for display planes

    Color keying is the action of replacing pixels matching a given color
    (or range of colors) with transparent pixels in an overlay when
    performing blitting. Depending on the hardware capabilities, the
    matching pixel can either become fully transparent or gain adjustment
    of the pixels component values.
    
    Color keying is found in a large number of devices whose capabilities
    often differ, but they still have enough common features in range to
    standardize color key properties. This commit adds new generic DRM plane
    properties related to the color keying, providing initial color keying
    support.
    
    Signed-off-by: Laurent Pinchart <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    Laurent Pinchart authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    da8304a View commit details
    Browse the repository at this point in the history
  151. WIP: drm/grate: Add Host1x and DRM drivers with experimental changes

    The new drivers and UAPI provide all features that are necessary for
    implementing of a proper userspace driver. The new driver takes a different
    approach in regards to working with sync points by making each submitted job
    to take an individual sync point, this solves the problem with the sync point
    recovery that old driver suffered from. The new Host1x driver and v2 UAPI are
    optimized for performance and minimal resources consumption. The new v2 UAPI
    exposes to userspace the HW cmdstream-related features that are necessary
    for a proper HW fencing. The staging v1 UAPI is kept functional and all of
    current userspace will continue to work with the new driver, note that some
    of the never-really-used features of v1 UAPI have been removed (like sync
    point increment IOCTL) and will return EPERM.
    
    The goal is to merge new features into the main driver once they are ready.
    
    Key moments of v2 UAPI:
    	- Raw sync points are not exposed to userspace.
    
    	- Job descriptors are embedded into the commands stream. Kernel
    	  driver parses the stream and patches the descriptors in-place.
    
    	- Commands buffer is copied from userspace via usrptr (no BO
    	  allocation and uncached-reading overhead).
    
    	- Channel is not restricted to a single client, thus 3d channel can
    	  take a multi-client job that uses 2d / 3d.
    
    	- Supports explicit jobs fencing. DRM sync object and DRM scheduler
    	  are utilized to provide the fencing support.
    
    	- Allows to use host1x gather opcode, which is restricted to
    	  data-upload usecase only. This allows userspace to pre-allocate
    	  a gather buffer, put shaders code / data there, and use two-word
    	  "gather" opcode to upload data from the buffer without pushing
    	  that data into the commands stream on each submission.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2ed8ffd View commit details
    Browse the repository at this point in the history
  152. ARM: dts: qcom: apq8064-nexus7: Add SMB345 battery charger

    Add SMB345 charger node to Nexus 7 2013 DTS.
    Proper charger configuration prevents battery from overcharging.
    
    Original author: Vinay Simha BN <[email protected]>
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2955bbc View commit details
    Browse the repository at this point in the history
  153. dt-bindings: sound: nvidia,tegra-audio: Convert multiple txt bindings…

    … to yaml
    
    Convert Tegra audio complex with the
     * ALC5632
     * MAX98090
     * RT5640
     * RT5677
     * SGTL5000
     * TrimSlice
     * WM8753
     * WM8903
     * WM9712
    codec to the YAML format.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0bf6967 View commit details
    Browse the repository at this point in the history
  154. WIP: dt-bindings: sound: tegra-audio: Document RT5631 codec

    ASUS Transformer and other tablets use RT5631 codec. Add RT5631 compatible
    to the tegra-audio binding.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: David Heidelberg <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3aaf84f View commit details
    Browse the repository at this point in the history
  155. ASoC: tegra: Support RT5631 by machine driver

    Add Realtek ALC5631/RT5631 codec support to the Tegra ASoC machine driver.
    The RT5631 codec is found on devices like ASUS Transformer TF201, TF700T
    and other Tegra-based Android tablets.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7611077 View commit details
    Browse the repository at this point in the history
  156. drm/tegra: rgb: Hacks for S6E63M0

    Pins DATA_ENABLE, H_SYNC, V_SYNC, PIXEL_CLOCK are low polarity,
    set this in the registers to make the panel working.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8194e27 View commit details
    Browse the repository at this point in the history
  157. drm/tegra: Temporary pixel format fix for i927

    Pixel format of the panel on this device is ABGR, not the typical RGBA
    format. There's no way to switch the pixel format in panel as there's no
    documenation, so do this in DRM driver instead.
    
    The proper solution would require checking MEDIA_BUS_FMT_* values in DRM
    driver and setting this value correctly in panel driver.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b19afcb View commit details
    Browse the repository at this point in the history
  158. drm/panel: s6e63m0: disable rotation

    Low part of GTCON(IFCTL) register is responsible for flipping/rotation.
    This commit disables default rotation by 180 degrees.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3afa278 View commit details
    Browse the repository at this point in the history
  159. drm/panel: s6e63m0: Increase back porch

    Original timings cause issues on Tegra hardware - image is
    shifted and colors are wrong.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b9baee5 View commit details
    Browse the repository at this point in the history
  160. drm/panel: s6e63m0: Workaround screen corruption on boot

    The panel driver gets probed before PMIC, so the regulator_bulk_get() call
    fails with EPROBE_DEFER, making the driver to probe later in the boot
    process. However, the screen gets corrupted in some time with noise
    displayed. To resolve this, reset GPIO is now requested before the
    regulator, setting the panel to the reset state.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a96ac48 View commit details
    Browse the repository at this point in the history
  161. XXX: WIP: leds: Add led class support isa1200 vibration motor

    This should be input/ driver, it has nothing to do with LED.
    
    (cherry picked from commit e510fd2c344d8f1967e186a3fa030ccee201a4d6)
    Signed-off-by: Sergey Larin <[email protected]>
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8a26935 View commit details
    Browse the repository at this point in the history
  162. dt-bindings: input: Add binding for Imagis ISA1200 Haptic Driver

    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e0822d7 View commit details
    Browse the repository at this point in the history
  163. Input: stmpe-keypad - add STMPE1801 support

    This chip variant differs from others - it has different register
    map and swapped rows/columns.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    794d8ec View commit details
    Browse the repository at this point in the history
  164. dt-bindings: input: Add binding for MELFAS MCS touchscreens

    Add the binding for MELFAS MCS-5000 and MCS-5080 touchscreen controllers.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2532d86 View commit details
    Browse the repository at this point in the history
  165. Input: mcs_touchkey: Support device tree

    Add device-tree support to MCS touchkey driver.
    
    Signed-off-by: Beomho Seo <[email protected]>
    Signed-off-by: Seung-Woo Kim <[email protected]>
    Beomho Seo authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0a8154d View commit details
    Browse the repository at this point in the history
  166. input: keyboard: mcs_touchkey:Convert to devm_* managed functions

    Tis patch use the devm_* managed functions to allocate resources.
    
    Change-Id: I9351869922b481a6791ca98f6dd3328d84424906
    Signed-off-by: Beomho Seo <[email protected]>
    Beomho Seo authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e880966 View commit details
    Browse the repository at this point in the history
  167. input: keyboard: mcs_touchkey: LED support

    This commit adds support for LED found on this touchkey controller.
    
    Signed-off-by: Sergey Larin <[email protected]>
    Kim, HeungJun authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5cabd14 View commit details
    Browse the repository at this point in the history
  168. ASoC: tegra: Add driver for WM8994

    (cherry picked from commit d58c0084b16491251b3871bfacbc070105eb9356)
    Signed-off-by: Sergey Larin <[email protected]>
    
    ASoC: tegra_wm8994: cleanup
    
    Remove unnecessary functions. Also, S/PDIF support
    is not needed.
    
    Signed-off-by: Sergey Larin <[email protected]>
    
    ASoC: tegra_wm8994: New driver based on WM8903
    
    This fully routed driver resolves issues with suspend/resume state not being
    correctly restored. It also provides headphone detection and internal/external
    mic switching (however, mic detection is probably broken).
    
    Signed-off-by: Sergey Larin <[email protected]>
    
    ASoC: tegra_wm8994: Fix codec name
    
    The codec name in wm8994 driver is 'wm8994-aif1', not the 'wm8994-hifi'
    as there are 2 interfaces.
    
    Signed-off-by: Sergey Larin <[email protected]>
    
    ASoC: tegra_wm8994: Set mclk ID value
    
    The mclk_id value wasn't set, so setting clocks in
    wm8994_set_dai_sysclk failed with an error. This led to other failures
    in output configuration.
    
    Signed-off-by: Sergey Larin <[email protected]>
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7cee73c View commit details
    Browse the repository at this point in the history
  169. WIP: dt-bindings: sound: nvidia,tegra-audio: add WM8994 support

    Support WM8994 inside the Tegra audio complex.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3232f41 View commit details
    Browse the repository at this point in the history
  170. power: supply: Add regulator to max8903 charger for VBUS control

    When OTG cable is inserted, the host needs to enable VBUS in order to
    supply power to the connected device. However, the charger detects that
    and starts charging the battery, draining the supplied power.
    
    Avoid this by using an optional regulator subnode which disables charging
    when enabled.
    
    Signed-off-by: Sergey Larin <[email protected]>
    
    power: supply: max8903: OTG disable fix
    
    The GPIO value wasn't changed after GPIO API changes - the GPIO is now
    ACTIVE_LOW in device tree instead of ACTIVE_HIGH.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    98d2678 View commit details
    Browse the repository at this point in the history
  171. ARM: tegra: Add device-tree for tegra20-glide Samsung SGH-I927

    Add device-tree for Tegra20-based Samsung SGH-I927 smartphone.
    
    Signed-off-by: Sergey Larin <[email protected]>
    cerg2010cerg2010 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    d6fbca3 View commit details
    Browse the repository at this point in the history
  172. WIP: dt-bindings: ARM: tegra: Document Samsung I927 Captivate Glide

    Document Samsung I927 Captivate Glide board.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b18ca2a View commit details
    Browse the repository at this point in the history
  173. soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA

    The DMA subsystem could be entirely disabled in Kconfig and then the
    TEGRA20_APB_DMA option isn't available too. Hence kernel configuration
    fails if DMADEVICES Kconfig option is disabled due to the unsatisfiable
    dependency.
    
    The FUSE driver isn't a critical driver and currently it only provides
    NVMEM interface to userspace which isn't known to be widely used, and
    thus, it's fine if FUSE driver fails to load.
    
    Let's remove the erroneous Kconfig dependency and let the FUSE driver to
    fail the probing if DMA is unavailable.
    
    Fixes: 19d41e5 ("soc/tegra: fuse: Add APB DMA dependency for Tegra20")
    Reported-by: Necip Fazil Yildiran <[email protected]>
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=209301
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9b9c381 View commit details
    Browse the repository at this point in the history
  174. PM / devfreq: tegra30: Tune up Tegra124 configuration

    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8758466 View commit details
    Browse the repository at this point in the history
  175. XXX: Add downstream pinmux debug info

    Add legacy `/sys/kernel/debug/tegra_pinmux` which allows to compare
    applied pinctrl configuration to the debug info of a downstream kernel.
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    4a31ed3 View commit details
    Browse the repository at this point in the history
  176. cpufreq: tegra20: Improve performance during frequency transition

    All Tegra SoCs require an intermediate step for CPU clock rate transition.
    The clk driver takes care of switching the CPU clock to a backup parent
    during transition. But if there is a need to change CPU voltage for the
    transition, then going from a low freq to a high freq may take dozen
    milliseconds, which could be unacceptably long transition time for some
    applications which require CPU to run at a reasonable performance
    immediately, like audio playback for example.
    
    In order to mitigate the potentially long transition time, we will switch
    CPU to a faster backup frequency upfront, i.e. before the voltage change
    is initiated.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a9fb4a6 View commit details
    Browse the repository at this point in the history
  177. Revert "cpufreq: tegra20: Improve performance during frequency transi…

    …tion"
    
    This reverts commit 6fdbd8979fc9.
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1b102b3 View commit details
    Browse the repository at this point in the history
  178. WIP: ARM: tegra: Add stub for core regulator of power management cont…

    …roller
    
    This eases writing new device-trees.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5748d5e View commit details
    Browse the repository at this point in the history
  179. XXX: WIP: drm: Universal display rotation on Nexus 7

    This removes a need to have bleeding edge userspace that knows how to
    work with the rotated planes. Only Opentegra driver supports planes rotation
    today, everything else is upside-down without the universal rotation support.
    
    The plan is to teach DRM core about the CRTC rotation capabilities and then
    this hack won't be needed, for now it's not obvious how to implement that.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f2831f9 View commit details
    Browse the repository at this point in the history
  180. drm/tegra: dsi: Assert hardware reset on power-up

    Assert DSI reset before power-up in order to ensure that hardware is
    properly re-initialized. This fixes occasional DSI panel initialization
    failures on boot if panel and DSI controller are left ON after bootloader.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0afea36 View commit details
    Browse the repository at this point in the history
  181. soc/tegra: fuse: Print out CPU, GPU and SoC Speedo IDs

    Speedo IDs are a valuable information, especially for bringing up new
    devices. These IDs should be printed out regardless of debugging state
    of the fuse driver.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c82f86b View commit details
    Browse the repository at this point in the history
  182. dt-bindings: i2c: Add binding for i2c-hotplug-gpio

    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2c0349c View commit details
    Browse the repository at this point in the history
  183. i2c: Add GPIO-based hotplug gate

    Implement driver for hot-plugged I2C busses: where some devices on
    a bus are hot-pluggable and their presence is indicated by GPIO line.
    
    Co-developed-by: Ion Agorria <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    fa044f9 View commit details
    Browse the repository at this point in the history
  184. dt-bindings: mfd: Add Asus Transformer Embedded Controller binding

    Add binding document for the embedded controller found in Asus Transformer
    devices.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    6d7aecb View commit details
    Browse the repository at this point in the history
  185. dt-bindings: misc: Add DT schema for asus-dockram

    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e8bebd6 View commit details
    Browse the repository at this point in the history
  186. misc: Support Asus Transformer EC access device

    Add support for accessing Embedded Controller RAM of Asus Transformer
    devices. This will be used by the EC MFD drivers.
    
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f2d1b45 View commit details
    Browse the repository at this point in the history
  187. mfd: Add driver for Asus Transformer embedded controller

    Support Nuvoton NPCE795-based ECs as used in Asus Transformer TF201,
    TF300T, TF300TG, TF300TL and TF700T pad and dock, as well as TF101 dock
    and TF701T pad. This is a glue driver handling detection and common
    operations for EC's functions.
    
    Co-developed-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    dc3ad2e View commit details
    Browse the repository at this point in the history
  188. input: Add driver for Asus Transformer dock keyboard and touchpad

    Add input driver for Asus Transformer dock keyboard and touchpad.
    
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    dbf2179 View commit details
    Browse the repository at this point in the history
  189. input: Add driver for Asus Transformer dock multimedia keys

    Some keys in Asus Dock report keycodes that don't make
    sense according to their position, this patch modifies the
    incoming data that is sent to serio to send proper scancodes.
    
    This enables normal keyboard keys to become available by default
    unless AltGr is pressed, which sends the multimedia keys sent
    originally. Pressing ScreenLock + AltGr switches the default
    choice between 2 type of keys.
    
    Since this only modifies codes sent by asus-ec keys ext it doesn't
    affect normal keyboards at all.
    
    Co-developed-by: Ion Agorria <[email protected]>
    Signed-off-by: Ion Agorria <[email protected]>
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7509bd6 View commit details
    Browse the repository at this point in the history
  190. leds: Add driver for Asus Transformer LEDs

    Add driver for Asus Transformer built-in LEDs.
    
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    b6004c1 View commit details
    Browse the repository at this point in the history
  191. power/supply: Add driver for Asus Transformer battery

    Driver contains one battery cell per EC controller and supports reading
    of battery status for Asus Transformer and its mobile dock.
    
    The voltage and charge values need to be multiplied by 1000 in order to
    be reported correctly, fix them.
    
    Co-developed-by: Dmitry Osipenko <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    Co-developed-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e5dcc21 View commit details
    Browse the repository at this point in the history
  192. power/supply: Add charger driver for Asus Transformer Dock

    Unlike Pad, Asus Transformer Dock AC event is detected by reading
    embedded controller. Although, this is only known way to detect AC
    plug, driver uses polling with 1-2 sec interval and may cause
    warnings from other devices which use similar method, like keyboard.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    47a7c89 View commit details
    Browse the repository at this point in the history
  193. Configuration menu
    Copy the full SHA
    71c23f3 View commit details
    Browse the repository at this point in the history
  194. Configuration menu
    Copy the full SHA
    dfe2376 View commit details
    Browse the repository at this point in the history
  195. dt-bindings: mfd: Add binding for Cypress CG7153AM Embedded Controller

    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    656c719 View commit details
    Browse the repository at this point in the history
  196. power/supply: Add driver for Pegatron Chagall battery

    Add battery driver for Pegatron Chagall Android tablet.
    
    Signed-off-by: Svyatoslav Ryhel <[email protected]>
    clamor-s authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8fb48b5 View commit details
    Browse the repository at this point in the history
  197. Configuration menu
    Copy the full SHA
    cd140d4 View commit details
    Browse the repository at this point in the history
  198. Configuration menu
    Copy the full SHA
    3393136 View commit details
    Browse the repository at this point in the history
  199. Revert "HACK: drm: panel: simple: Disable non-continuous mode for vvx…

    …10f004b00"
    
    This reverts commit f8286fe.
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9d78909 View commit details
    Browse the repository at this point in the history
  200. WIP: extcon: p4wifi: Add p4wifi USB connector driver

    The p4wifi USB connector reads the STMPE811 ADC to determine if USB
    or AC cable is plugged in.
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f6f243f View commit details
    Browse the repository at this point in the history
  201. WIP: drm: panel: Add CMC6230R LCD driver

    TODO: drop cmc623_initialize_clks and clocks from DTS
    
    v2:
     - fix drm_connector (David)
     - drop vrefresh (David)
     - drop return value from drm_panel_add (Max Buchholz)
    v3:
     - incorporated fixes and improvements from Dmitry
    
    Signed-off-by: David Heidelberg <[email protected]>
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    fe3461a View commit details
    Browse the repository at this point in the history
  202. WIP: staging: Add p4wifi directory

    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f1f558c View commit details
    Browse the repository at this point in the history
  203. WIP: staging: p4wifi: Add sec_jack driver

    Broken wakeup_source, FIXME later.
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    980c084 View commit details
    Browse the repository at this point in the history
  204. WIP: staging: p4wifi: Add misc p4wifi init functions

     - system_rev
     - reboot mode
     - charging mode
    
    v2:
     - disable write to hardcoded eMMC, to prevent possible corruption
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5e879d3 View commit details
    Browse the repository at this point in the history
  205. WIP: staging: p4wifi: Convert to platform driver

    Convert to a proper platform driver. Squash h/w initialization and reboot
    notifier to the driver.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1bb0b75 View commit details
    Browse the repository at this point in the history
  206. Configuration menu
    Copy the full SHA
    6218e3a View commit details
    Browse the repository at this point in the history
  207. iio: ak8975: Add AK8975C device id

    Signed-off-by: David Heidelberg <[email protected]>
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3b4cb49 View commit details
    Browse the repository at this point in the history
  208. WIP: ARM: tegra: Add device-tree for Samsung Galaxy Tab 10.1

    Add device-tree for Samsung Galaxy Tab 10.1 (p4wifi) NVIDIA Tegra20-based
    tablet.
    
    Signed-off-by: David Heidelberg <[email protected]>
    Decatf authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2741e11 View commit details
    Browse the repository at this point in the history
  209. WIP: dt-bindings: ARM: tegra: Document Samsung Galaxy Tab 10.1

    Document Samsung Galaxy Tab 10.1 p4wifi board.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ea2ec76 View commit details
    Browse the repository at this point in the history
  210. WIP: Add defconfig for Samsung Galaxy Tab 10.1

    it's a merged defconfig from
    postmarketos (kernel 5.0) and tegra_defconfig from grate-driver/linux
    (kernel 5.11-next).
    Disabled BIGSYS, which is used in postmarketos as a hack to combine
    system and cache partitions.
    
    v2:
     - dropped some PCIe Intel network adapters
    gaudeo authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    c3eb5b5 View commit details
    Browse the repository at this point in the history
  211. ARM: dts: elpida_ecb240abacn: Change Elpida compatible

    Vendor prefix shouldn't start with capital letter. The Elpida Memory
    compatible was never used in practice, hence just correct the compatible.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5a79de9 View commit details
    Browse the repository at this point in the history
  212. Configuration menu
    Copy the full SHA
    32f969c View commit details
    Browse the repository at this point in the history
  213. ARM: tegra: paz00: Add emc-tables for ram-code 1

    This is the same tables as ram-code 0
    
    Signed-off-by: Nicolas Chauvet <[email protected]>
    kwizart authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0de52ea View commit details
    Browse the repository at this point in the history
  214. WIP: ARM: tegra: Add device-tree for Lenovo IdeaTab A2109A

    Add device-tree for Tegra30-based Lenovo IdeaTab A2109A.
    
    Primary things left to do:
    
    	- LVDS bridge (for now we will assume it's always ON)
    	- Sound
    	- Power key
    
    Signed-off-by: Kai Jan Schmidt-Brauns <fix@me>
    KaiJan57 authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    a205aad View commit details
    Browse the repository at this point in the history
  215. WIP: dt-bindings: ARM: tegra: Document Lenovo IdeaTab A2109A

    Document Lenovo IdeaTab A2109A board.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ac8c50b View commit details
    Browse the repository at this point in the history
  216. brcmfmac: Work around potential firmware crash on BCM4329

    BCM4329 doesn't support BRCMF_C_GET_ASSOCLIST firmware call and WiFi
    eventually stop to work properly on Acer A500 during the FW call. Don't
    use that FW command on unsupported hardware to work around the problem.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    908d776 View commit details
    Browse the repository at this point in the history
  217. XXX: usb: phy: tegra: Ensure that clock is disabled on suspend

    Ensure that clock is disabled on suspend to catch LPM programming bugs.
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    dd51c96 View commit details
    Browse the repository at this point in the history
  218. memory: tegra: Don't error out DMA flushing

    DMA flushing may fail if hardware unit is power-gated. We need to reset
    hardware unit and its memory clients in a certain order, but it becomes
    complicated when we need to power-up hardware domain for the first time
    since resets are requested in a special order. We assumed that power
    domains are initially turned on all devices, but this could be a wrong
    assumption.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e0b8c39 View commit details
    Browse the repository at this point in the history
  219. dt-bindigs: display: extend the LVDS codec with Triple 10-BIT LVDS Tr…

    …ansmitter
    
    LVDS transmitter used in Surface RT.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    75eb497 View commit details
    Browse the repository at this point in the history
  220. WIP: Add ACPI Parking Protocol for ARM32 devices

    Right now ACPI isn't implemented, so parsing the MADT/APIC table is not
    possible. Its contents have to be hardcoded. The current hardcoded table
    is for Mircrosoft Surface RT.
    
    Signed-off-by: Leander Wollersberger <[email protected]>
    LeanderGlanda authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e1cc937 View commit details
    Browse the repository at this point in the history
  221. ARM: tegra30: Add phandles for controller nodes

    Add phandle names for memory/I2C/SPI/USB/SDMMC controller nodes to allow
    for cleaner device descriptions.
    
    Signed-off-by: Michał Mirosław <[email protected]>
    osctobe authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    41ead92 View commit details
    Browse the repository at this point in the history
  222. WIP: ARM: tegra: Add initial device-tree for Microsoft Surface RT

    Signed-off-by: Anton Bambura <[email protected]>
    Signed-off-by: Jonas Schwöbel <[email protected]>
    jonasschwoebel authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    274cff2 View commit details
    Browse the repository at this point in the history
  223. WIP: ARM: tegra: Add device-tree for EFI booting Surface RT

    Signed-off-by: Anton Bambura <[email protected]>
    Signed-off-by: Jonas Schwöbel <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f8a8a7a View commit details
    Browse the repository at this point in the history
  224. WIP: ARM: tegra: surface-rt: Battery and Charger support

    Battery and Charger support for UEFI and APX boot.
    use CONFIG_BATTERY_CHARGER_SURFACE_RT to enable support
    
    Signed-off-by: Jonas Schwöbel <[email protected]>
    jonasschwoebel authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7e0a588 View commit details
    Browse the repository at this point in the history
  225. WIP: ARM: tegra: surface-rt: Add sound support

    Added audio output support. Internal speakers and headphones work.
    No internal mic's and no headset mic support.
    
    Signed-off-by: Jonas Schwöbel <[email protected]>
    jonasschwoebel authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2e2e8a6 View commit details
    Browse the repository at this point in the history
  226. HID: microsoft: fix tCover 2nd gen

    Trackpad right/left click correctly send BTN_LEFT/RIGHT but additionally sends KEY_F23.
    KEY_F23 is linked to some special actions:
    pmOS -> trackpad disabled notifitcation
    raspiOS -> open new terminal
    
    This problem is fixed now.
    
    Signed-off-by: Jonas Schwöbel <[email protected]>
    jonasschwoebel authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    2559e39 View commit details
    Browse the repository at this point in the history
  227. WIP: dt-bindings: ARM: tegra: Document Microsoft Surface RT

    Document Microsoft Surface RT board.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3109d6e View commit details
    Browse the repository at this point in the history
  228. ARM: tegra: Add device-tree for Tegra20 QEMU

    This device-tree is intended to be used with kernel running on
    https://github.com/digetx/tegra2_qemu
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    022f51c View commit details
    Browse the repository at this point in the history
  229. dt-bindings: ARM: tegra: Document Tegra20 QEMU

    Document Tegra20 QEMU board.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f21b4ba View commit details
    Browse the repository at this point in the history
  230. CI: github: deploy

    Create tuxmake builds for each push on master branch and run checkpatch.pl
    
    Each time is generated tagged release which overwrites previous.
    This tagged release contains tuxmake archive (zImage, dtbs, vmlinux etc.)
    
    Based on: https://gitlab.com/okias/kernel-simpleci
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7b0c498 View commit details
    Browse the repository at this point in the history
  231. ARM: tegra_defconfig: Enable options needed by WIP devices

    Enable options needed by Transformers, GalaxyTab, SGH-I927 and SurfaceRT
    devices.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    6700e41 View commit details
    Browse the repository at this point in the history
  232. ARM: grate_defconfig: Add defconfig

    Supported devices:
    - acer-picasso;
    - microsoft surface-rt;
    - transformers;
    - pegatron chagall;
    - grouper / tilapia;
    - samsung-i927 glide;
    
    Link: grate-driver#69 (comment)
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3611369 View commit details
    Browse the repository at this point in the history
  233. ARM: pmos.config: Add defconfig

    besides generic needed options:
    - built-in stuff needed for cryptsetup
    - anbox support (is broken on armv7, but we hope it will be fixed)
    - waydroid support
    - nftables
    - containers (docker, lxc)
    - zram
    
    Link: grate-driver#69 (comment)
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    8ced967 View commit details
    Browse the repository at this point in the history
  234. thermal/core: Export thermal_cooling_device_stats_update()

    NVIDIA Tegra30 thermal sensor driver has a hardware-controlled CPU cooling
    feature that halves CPU frequency once a specified trip point is breached.
    In order to account the hardware state transitions, which are reported by
    interrupt, the sensor driver needs to report the cooling state transition
    and this is done by thermal_cooling_device_stats_update(). The sensor
    driver could be compiled as a loadable driver module, but this API
    function isn't exported, hence export it.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    9a3e2fc View commit details
    Browse the repository at this point in the history
  235. WIP: thermal/drivers/tegra30: Support CPU DIV2 frequency throttling

    Expose Tegra30 thermal sensor as a cooling device and enable
    hardware-assisted DIV2 CPU frequency throttling. The DIV2 cooling is
    activated by hardware while the breach of hot temperature trip is detected
    by sensor.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3d32db4 View commit details
    Browse the repository at this point in the history
  236. i2c: tegra: Ensure that device is suspended before driver is removed

    Tegra I2C device isn't guaranteed to be suspended after removal of
    the driver since driver uses pm_runtime_put() that is asynchronous and
    pm_runtime_disable() cancels pending power-change requests. This means
    that potentially refcount of the clocks may become unbalanced after
    removal of the driver. This a very minor problem which unlikely to
    happen in practice and won't cause any visible problems, nevertheless
    let's replace pm_runtime_disable() with pm_runtime_force_suspend() and
    use pm_runtime_put_sync() which disables RPM of the device and puts it
    into suspend before driver is removed.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    bebf060 View commit details
    Browse the repository at this point in the history
  237. dt-bindings: opp: Allow multi-worded OPP entry name

    Not all OPP entries fit into a single word. In particular NVIDIA Tegra OPP
    tables use multi-word names. Allow OPP entry to have multi-worded name
    separated by hyphen. This silences DT checker warnings about wrong naming
    scheme.
    
    Reviewed-by: David Heidelberg <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ef02ea9 View commit details
    Browse the repository at this point in the history
  238. ARM: tegra: nexus7: Drop clock-frequency from NFC node

    The clock-frequency property was never used and is deprecated now.
    Remove it from Nexus 7 device-tree.
    
    Signed-off-by: David Heidelberg <[email protected]>
    okias authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e2eca2f View commit details
    Browse the repository at this point in the history
  239. usb: xhci: tegra: Check padctrl interrupt presence in device tree

    Older device-trees don't specify padctrl interrupt and xhci-tegra driver
    now fails to probe with -EINVAL using those device-trees. Check interrupt
    presence and disallow runtime PM suspension if it's missing to fix the
    trouble.
    
    Fixes: 971ee24 ("usb: xhci: tegra: Enable ELPG for runtime/system PM")
    Reported-by: Nicolas Chauvet <[email protected]>
    Tested-by: Nicolas Chauvet <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    04d5f15 View commit details
    Browse the repository at this point in the history
  240. clk: tegra: Make vde a child of pll_p on tegra114

    The current default is to leave the VDE clock's parent at the default,
    which is clk_m. However, that is not a configuration that will allow the
    VDE to function. Reparent it to pll_p instead to make sure the hardware
    can actually decode video content.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7c36eec View commit details
    Browse the repository at this point in the history
  241. media: staging: tegra-vde: Support reference picture marking

    Tegra114 and Tegra124 support reference picture marking, which will
    cause BSEV to write picture marking data to SDRAM. Make sure there is
    a valid destination address for that data to avoid error messages from
    the memory controller.
    
    [[email protected]: added BO support and moved secure BO allocation to kernel]
    Tested-by: Anton Bambura <[email protected]> # T114 ASUS TF701T
    Signed-off-by: Thierry Reding <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    thierryreding authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7811c7b View commit details
    Browse the repository at this point in the history
  242. media: staging: tegra-vde: Properly mark invalid entries

    Entries in the reference picture list are marked as invalid by setting
    the frame ID to 0x3f.
    
    Signed-off-by: Thierry Reding <[email protected]>
    Signed-off-by: Dmitry Osipenko <[email protected]>
    thierryreding authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    07316b5 View commit details
    Browse the repository at this point in the history
  243. media: staging: tegra-vde: Reorder misc device registration

    Register misc device in the end of driver's probing since device should
    become visible to userspace once driver is fully prepared. Do the opposite
    in case of driver removal. This is a minor improvement that doesn't solve
    any problem.
    
    Signed-off-by: Dmitry Osipenko <[email protected]>
    digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    73c6fcc View commit details
    Browse the repository at this point in the history
  244. ARM: tegra: Enable video decoder on Tegra114

    Add Video Decoder Engine node to Tegra114 device-tree.
    
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    0ec4853 View commit details
    Browse the repository at this point in the history
  245. dt-bindings: sharp,lq101r1sx01: Add compatible for LQ101R1SX03

    LQ101R1SX03 is compatible with LQ101R1SX01, document it.
    
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    1dfcd12 View commit details
    Browse the repository at this point in the history
  246. drm/panel: sharp: lq101r1sx01: Support LQ101R1SX03

    LQ101R1SX03 is compatible with LQ101R1SX01, add compatible to the driver.
    
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    ae77b41 View commit details
    Browse the repository at this point in the history
  247. dt-bindings: ARM: tegra: Document Asus Transformer Pad TF701T

    Document Tegra114-based Asus Transformer Pad TF701T (asus-tf701t).
    
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3682cdd View commit details
    Browse the repository at this point in the history
  248. ARM: tegra: Add more labels to tegra114.dtsi

    Add more labels in order to use label reference in device-specific
    dts files.
    
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    28f2a40 View commit details
    Browse the repository at this point in the history
  249. ARM: tegra: Add device-tree for Asus Transformer Pad TF701T

    Add device-tree for Tegra114-based Asus Transformer Pad TF701T (K00C)
    tablet.
    
    Signed-off-by: Anton Bambura <[email protected]>
    jenneron authored and digetx committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    85d8573 View commit details
    Browse the repository at this point in the history
  250. Configuration menu
    Copy the full SHA
    ff32640 View commit details
    Browse the repository at this point in the history