1. Mar 05, 2024
  2. Feb 28, 2024
  3. Feb 27, 2024
  4. Feb 16, 2024
  5. Feb 14, 2024
    • Ulf Hansson's avatar
      mmc: Merge branch fixes into next · 0deb3c2a
      Ulf Hansson authored
      
      
      Merge the mmc fixes for v6.8-rc[n] into the next branch, to allow them to
      get tested together with the new mmc changes that are targeted for v6.9.
      
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      0deb3c2a
    • Christophe Kerello's avatar
      mmc: mmci: stm32: fix DMA API overlapping mappings warning · 6b1ba3f9
      Christophe Kerello authored
      
      
      Turning on CONFIG_DMA_API_DEBUG_SG results in the following warning:
      
      DMA-API: mmci-pl18x 48220000.mmc: cacheline tracking EEXIST,
      overlapping mappings aren't supported
      WARNING: CPU: 1 PID: 51 at kernel/dma/debug.c:568
      add_dma_entry+0x234/0x2f4
      Modules linked in:
      CPU: 1 PID: 51 Comm: kworker/1:2 Not tainted 6.1.28 #1
      Hardware name: STMicroelectronics STM32MP257F-EV1 Evaluation Board (DT)
      Workqueue: events_freezable mmc_rescan
      Call trace:
      add_dma_entry+0x234/0x2f4
      debug_dma_map_sg+0x198/0x350
      __dma_map_sg_attrs+0xa0/0x110
      dma_map_sg_attrs+0x10/0x2c
      sdmmc_idma_prep_data+0x80/0xc0
      mmci_prep_data+0x38/0x84
      mmci_start_data+0x108/0x2dc
      mmci_request+0xe4/0x190
      __mmc_start_request+0x68/0x140
      mmc_start_request+0x94/0xc0
      mmc_wait_for_req+0x70/0x100
      mmc_send_tuning+0x108/0x1ac
      sdmmc_execute_tuning+0x14c/0x210
      mmc_execute_tuning+0x48/0xec
      mmc_sd_init_uhs_card.part.0+0x208/0x464
      mmc_sd_init_card+0x318/0x89c
      mmc_attach_sd+0xe4/0x180
      mmc_rescan+0x244/0x320
      
      DMA API debug brings to light leaking dma-mappings as dma_map_sg and
      dma_unmap_sg are not correctly balanced.
      
      If an error occurs in mmci_cmd_irq function, only mmci_dma_error
      function is called and as this API is not managed on stm32 variant,
      dma_unmap_sg is never called in this error path.
      
      Signed-off-by: default avatarChristophe Kerello <christophe.kerello@foss.st.com>
      Fixes: 46b723dd ("mmc: mmci: add stm32 sdmmc variant")
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20240207143951.938144-1-christophe.kerello@foss.st.com
      
      
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      6b1ba3f9
    • Ulf Hansson's avatar
      mmc: Merge branch fixes into next · 2439e5bd
      Ulf Hansson authored
      
      
      Merge the mmc fixes for v6.8-rc[n] into the next branch, to allow them to
      get tested together with the new mmc changes that are targeted for v6.9.
      
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      2439e5bd
    • Ivan Semenov's avatar
      mmc: core: Fix eMMC initialization with 1-bit bus connection · ff3206d2
      Ivan Semenov authored
      Initializing an eMMC that's connected via a 1-bit bus is current failing,
      if the HW (DT) informs that 4-bit bus is supported. In fact this is a
      regression, as we were earlier capable of falling back to 1-bit mode, when
      switching to 4/8-bit bus failed. Therefore, let's restore the behaviour.
      
      Log for Samsung eMMC 5.1 chip connected via 1bit bus (only D0 pin)
      Before patch:
      [134509.044225] mmc0: switch to bus width 4 failed
      [134509.044509] mmc0: new high speed MMC card at address 0001
      [134509.054594] mmcblk0: mmc0:0001 BGUF4R 29.1 GiB
      [134509.281602] mmc0: switch to bus width 4 failed
      [134509.282638] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
      [134509.282657] Buffer I/O error on dev mmcblk0, logical block 0, async page read
      [134509.284598] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
      [134509.284602] Buffer I/O error on dev mmcblk0, logical block 0, async page read
      [134509.284609] ldm_validate_partition_table(): Disk read failed.
      [134509.286495] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
      [134509.286500] Buffer I/O error on dev mmcblk0, logical block 0, async page read
      [134509.288303] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
      [134509.288308] Buffer I/O error on dev mmcblk0, logical block 0, async page read
      [134509.289540] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
      [134509.289544] Buffer I/O error on dev mmcblk0, logical block 0, async page read
      [134509.289553]  mmcblk0: unable to read partition table
      [134509.289728] mmcblk0boot0: mmc0:0001 BGUF4R 31.9 MiB
      [134509.290283] mmcblk0boot1: mmc0:0001 BGUF4R 31.9 MiB
      [134509.294577] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
      [134509.295835] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
      [134509.295841] Buffer I/O error on dev mmcblk0, logical block 0, async page read
      
      After patch:
      
      [134551.089613] mmc0: switch to bus width 4 failed
      [134551.090377] mmc0: new high speed MMC card at address 0001
      [134551.102271] mmcblk0: mmc0:0001 BGUF4R 29.1 GiB
      [134551.113365]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21
      [134551.114262] mmcblk0boot0: mmc0:0001 BGUF4R 31.9 MiB
      [134551.114925] mmcblk0boot1: mmc0:0001 BGUF4R 31.9 MiB
      
      Fixes: 577fb131
      
       ("mmc: rework selection of bus speed mode")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarIvan Semenov <ivan@semenov.dev>
      Link: https://lore.kernel.org/r/20240206172845.34316-1-ivan@semenov.dev
      
      
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      ff3206d2
    • Jeffrey Hugo's avatar
      MAINTAINERS: Update bouncing @codeaurora addresses for EMMC CMDQ · 02c80137
      Jeffrey Hugo authored
      
      
      The @codeaurora email domain's servers have been decommissioned for a
      long while now, and any emails addressed there will bounce.
      
      Asutosh has an entry in .mailmap pointing to a new address, but
      MAINTAINERS still lists an old @codeaurora address.  Update MAINTAINERS
      to match .mailmap for anyone reading the file directly.
      
      Ritesh appears to have changed jobs, but looks to be still active in the
      community.  Update Ritesh's address to the one used in recient community
      postings.  Also Ritesh has indicated their entry should be changed from
      Maintainer (M:) to Reviewer (R:) so make that update while we are making
      changes to the entry.
      
      Signed-off-by: default avatarJeffrey Hugo <quic_jhugo@quicinc.com>
      Acked-by: default avatarRitesh Harjani <ritesh.list@gmail.com>
      Link: https://lore.kernel.org/r/20240209160934.3866475-1-quic_jhugo@quicinc.com
      
      
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      02c80137
    • Krzysztof Kozlowski's avatar
      d6e5288c
  6. Feb 13, 2024