1. 30 Aug, 2022 4 commits
    • Piyush Mehta's avatar
      usb: gadget: udc-xilinx: replace memcpy with memcpy_toio · 8cb339f1
      Piyush Mehta authored
      For ARM processor, unaligned access to device memory is not allowed.
      Method memcpy does not take care of alignment.
      
      USB detection failure with the unaligned address of memory access, with
      below kernel crash. To fix the unaligned address the kernel panic issue,
      replace memcpy with memcpy_toio method.
      
      Kernel crash:
      Unable to handle kernel paging request at virtual address ffff80000c05008a
      Mem abort info:
        ESR = 0x96000061
        EC = 0x25: DABT (current EL), IL = 32 bits
        SET = 0, FnV = 0
        EA = 0, S1PTW = 0
        FSC = 0x21: alignment fault
      Data abort info:
        ISV = 0, ISS = 0x00000061
        CM = 0, WnR = 1
      swapper pgtable: 4k pages, 48-bit VAs, pgdp=000000000143b000
      [ffff80000c05008a] pgd=100000087ffff003, p4d=100000087ffff003,
      pud=100000087fffe003, pmd=1000000800bcc003, pte=00680000a0010713
      Internal error: Oops: 96000061 [#1] SMP
      Modules linked in:
      CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.19-xilinx-v2022.1 #1
      Hardware name: ZynqMP ZCU102 Rev1.0 (DT)
      pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      pc : __memcpy+0x30/0x260
      lr : __xudc_ep0_queue+0xf0/0x110
      sp : ffff800008003d00
      x29: ffff800008003d00 x28: ffff800009474e80 x27: 00000000000000a0
      x26: 0000000000000100 x25: 0000000000000012 x24: ffff000800bc8080
      x23: 0000000000000001 x22: 0000000000000012 x21: ffff000800bc8080
      x20: 0000000000000012 x19: ffff000800bc8080 x18: 0000000000000000
      x17: ffff800876482000 x16: ffff800008004000 x15: 0000000000004000
      x14: 00001f09785d0400 x13: 0103020101005567 x12: 0781400000000200
      x11: 00000000c5672a10 x10: 00000000000008d0 x9 : ffff800009463cf0
      x8 : ffff8000094757b0 x7 : 0201010055670781 x6 : 4000000002000112
      x5 : ffff80000c05009a x4 : ffff000800a15012 x3 : ffff00080362ad80
      x2 : 0000000000000012 x1 : ffff000800a15000 x0 : ffff80000c050088
      Call trace:
       __memcpy+0x30/0x260
       xudc_ep0_queue+0x3c/0x60
       usb_ep_queue+0x38/0x44
       composite_ep0_queue.constprop.0+0x2c/0xc0
       composite_setup+0x8d0/0x185c
       configfs_composite_setup+0x74/0xb0
       xudc_irq+0x570/0xa40
       __handle_irq_event_percpu+0x58/0x170
       handle_irq_event+0x60/0x120
       handle_fasteoi_irq+0xc0/0x220
       handle_domain_irq+0x60/0x90
       gic_handle_irq+0x74/0xa0
       call_on_irq_stack+0x2c/0x60
       do_interrupt_handler+0x54/0x60
       el1_interrupt+0x30/0x50
       el1h_64_irq_handler+0x18/0x24
       el1h_64_irq+0x78/0x7c
       arch_cpu_idle+0x18/0x2c
       do_idle+0xdc/0x15c
       cpu_startup_entry+0x28/0x60
       rest_init+0xc8/0xe0
       arch_call_rest_init+0x10/0x1c
       start_kernel+0x694/0x6d4
       __primary_switched+0xa4/0xac
      
      Fixes: 1f7c5166 ("usb: gadget: Add xilinx usb2 device support")
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarPiyush Mehta <piyush.mehta@amd.com>
      Link: https://lore.kernel.org/r/20220824071253.1261096-1-piyush.mehta@amd.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8cb339f1
    • Heikki Krogerus's avatar
      usb: typec: Remove retimers properly · b7cafb8b
      Heikki Krogerus authored
      Retimer device class is left dangling when the typec module
      is unloaded. Attempts to reload the module failed with warning:
      
              "sysfs: cannot create duplicate filename '/class/retimer'"
      
      Fixing the issue by unregistering the class properly.
      
      Fixes: ddaf8d96 ("usb: typec: Add support for retimers")
      Reviewed-by: default avatarPrashant Malani <pmalani@chromium.org>
      Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Link: https://lore.kernel.org/r/20220825140411.10743-1-heikki.krogerus@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b7cafb8b
    • Johan Hovold's avatar
      usb: dwc3: disable USB core PHY management · 6000b8d9
      Johan Hovold authored
      The dwc3 driver manages its PHYs itself so the USB core PHY management
      needs to be disabled.
      
      Use the struct xhci_plat_priv hack added by commits 46034a99 ("usb:
      host: xhci-plat: add platform data support") and f768e718 ("usb:
      host: xhci-plat: add priv quirk for skip PHY initialization") to
      propagate the setting for now.
      
      Fixes: 4e88d4c0 ("usb: add a flag to skip PHY initialization to struct usb_hcd")
      Fixes: 178a0bce ("usb: core: hcd: integrate the PHY wrapper into the HCD core")
      Tested-by: default avatarMatthias Kaehlcke <mka@chromium.org>
      Cc: stable <stable@kernel.org>
      Reviewed-by: default avatarMatthias Kaehlcke <mka@chromium.org>
      Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
      Link: https://lore.kernel.org/r/20220825131836.19769-1-johan+linaro@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6000b8d9
    • Jean-Francois Le Fillatre's avatar
      usb: add quirks for Lenovo OneLink+ Dock · 3d5f7094
      Jean-Francois Le Fillatre authored
      The Lenovo OneLink+ Dock contains two VL812 USB3.0 controllers:
      17ef:1018 upstream
      17ef:1019 downstream
      
      Those two controllers both have problems with some USB3.0 devices,
      particularly self-powered ones. Typical error messages include:
      
        Timeout while waiting for setup device command
        device not accepting address X, error -62
        unable to enumerate USB device
      
      By process of elimination the controllers themselves were identified as
      the cause of the problem. Through trial and error the issue was solved
      by using USB_QUIRK_RESET_RESUME for both chips.
      Signed-off-by: default avatarJean-Francois Le Fillatre <jflf_kernel@gmx.com>
      Cc: stable <stable@kernel.org>
      Link: https://lore.kernel.org/r/20220824191320.17883-1-jflf_kernel@gmx.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3d5f7094
  2. 25 Aug, 2022 3 commits
  3. 23 Aug, 2022 2 commits
  4. 22 Aug, 2022 1 commit
  5. 19 Aug, 2022 5 commits
  6. 18 Aug, 2022 20 commits
  7. 14 Aug, 2022 5 commits
    • Linus Torvalds's avatar
      Linux 6.0-rc1 · 568035b0
      Linus Torvalds authored
      568035b0
    • Yury Norov's avatar
      radix-tree: replace gfp.h inclusion with gfp_types.h · 9f162193
      Yury Norov authored
      Radix tree header includes gfp.h for __GFP_BITS_SHIFT only. Now we
      have gfp_types.h for this.
      
      Fixes powerpc allmodconfig build:
      
         In file included from include/linux/nodemask.h:97,
                          from include/linux/mmzone.h:17,
                          from include/linux/gfp.h:7,
                          from include/linux/radix-tree.h:12,
                          from include/linux/idr.h:15,
                          from include/linux/kernfs.h:12,
                          from include/linux/sysfs.h:16,
                          from include/linux/kobject.h:20,
                          from include/linux/pci.h:35,
                          from arch/powerpc/kernel/prom_init.c:24:
         include/linux/random.h: In function 'add_latent_entropy':
      >> include/linux/random.h:25:46: error: 'latent_entropy' undeclared (first use in this function); did you mean 'add_latent_entropy'?
            25 |         add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
               |                                              ^~~~~~~~~~~~~~
               |                                              add_latent_entropy
         include/linux/random.h:25:46: note: each undeclared identifier is reported only once for each function it appears in
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      CC: Andrew Morton <akpm@linux-foundation.org>
      CC: Jason A. Donenfeld <Jason@zx2c4.com>
      Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9f162193
    • Linus Torvalds's avatar
      Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 74cbb480
      Linus Torvalds authored
      Pull vfs lseek fix from Al Viro:
       "Fix proc_reg_llseek() breakage. Always had been possible if somebody
        left NULL ->proc_lseek, became a practical issue now"
      
      * tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        take care to handle NULL ->proc_lseek()
      74cbb480
    • Al Viro's avatar
      take care to handle NULL ->proc_lseek() · 3f61631d
      Al Viro authored
      Easily done now, just by clearing FMODE_LSEEK in ->f_mode
      during proc_reg_open() for such entries.
      
      Fixes: 868941b1 "fs: remove no_llseek"
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      3f61631d
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.0-rc1b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 5d6a0f4d
      Linus Torvalds authored
      Pull more xen updates from Juergen Gross:
      
       - fix the handling of the "persistent grants" feature negotiation
         between Xen blkfront and Xen blkback drivers
      
       - a cleanup of xen.config and adding xen.config to Xen section in
         MAINTAINERS
      
       - support HVMOP_set_evtchn_upcall_vector, which is more compliant to
         "normal" interrupt handling than the global callback used up to now
      
       - further small cleanups
      
      * tag 'for-linus-6.0-rc1b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        MAINTAINERS: add xen config fragments to XEN HYPERVISOR sections
        xen: remove XEN_SCRUB_PAGES in xen.config
        xen/pciback: Fix comment typo
        xen/xenbus: fix return type in xenbus_file_read()
        xen-blkfront: Apply 'feature_persistent' parameter when connect
        xen-blkback: Apply 'feature_persistent' parameter when connect
        xen-blkback: fix persistent grants negotiation
        x86/xen: Add support for HVMOP_set_evtchn_upcall_vector
      5d6a0f4d