]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Merge 5.1-rc6 into char-misc-next
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Apr 2019 21:14:47 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Apr 2019 21:14:47 +0000 (23:14 +0200)
We want the fixes, and this resolves a merge error in the fastrpc
driver.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1  2 
drivers/misc/fastrpc.c
drivers/misc/habanalabs/goya/goya.c

index c4cc8e53243d26ec7291f8832e4abdb274fde110,36d0d5c9cfbad80a3d191fa680d8e23f3ee908c1..98603e235cf04a1625eca271deb68e73b36efef3
@@@ -1314,7 -1184,7 +1314,8 @@@ static int fastrpc_cb_probe(struct plat
        struct fastrpc_session_ctx *sess;
        struct device *dev = &pdev->dev;
        int i, sessions = 0;
 +      unsigned long flags;
+       int rc;
  
        cctx = dev_get_drvdata(dev->parent);
        if (!cctx)
                }
        }
        cctx->sesscount++;
 -      spin_unlock(&cctx->lock);
 +      spin_unlock_irqrestore(&cctx->lock, flags);
-       dma_set_mask(dev, DMA_BIT_MASK(32));
+       rc = dma_set_mask(dev, DMA_BIT_MASK(32));
+       if (rc) {
+               dev_err(dev, "32-bit DMA enable failed\n");
+               return rc;
+       }
  
        return 0;
  }
index 5100dfbf3acc346d9ecb9c70a3fbf779453331fd,3c509e19d69dc430a668825ab935927f8441b468..bde11fc2c2512e6c05064d6b160c449c995b0f61
@@@ -1447,16 -1688,13 +1447,15 @@@ static void goya_init_golden_registers(
  
        /*
         * Workaround for H2 #HW-23 bug
-        * Set DMA max outstanding read requests to 240 on DMA CH 1. Set it
-        * to 16 on KMD DMA
-        * We need to limit only these DMAs because the user can only read
+        * Set DMA max outstanding read requests to 240 on DMA CH 1.
+        * This limitation is still large enough to not affect Gen4 bandwidth.
+        * We need to only limit that DMA channel because the user can only read
         * from Host using DMA CH 1
         */
-       WREG32(mmDMA_CH_0_CFG0, 0x0fff0010);
        WREG32(mmDMA_CH_1_CFG0, 0x0fff00F0);
  
 +      WREG32(mmTPC_PLL_CLK_RLX_0, 0x200020);
 +
        goya->hw_cap_initialized |= HW_CAP_GOLDEN;
  }