View | Details | Raw Unified | Return to bug 43458
Collapse All | Expand All

(-)a/drivers/gpu/drm/panfrost/panfrost_drv.c (-4 lines)
Lines 563-572 static int panfrost_probe(struct platform_device *pdev) Link Here
563
		return -ENODEV;
563
		return -ENODEV;
564
564
565
	pfdev->coherent = device_get_dma_attr(&pdev->dev) == DEV_DMA_COHERENT;
565
	pfdev->coherent = device_get_dma_attr(&pdev->dev) == DEV_DMA_COHERENT;
566
	if (!pfdev->coherent && of_device_is_compatible(of_root, "baikal,baikal-m")) {
567
		pfdev->coherent = true;
568
		dev_warn(&pdev->dev, "marking as DMA coherent on BE-M1000");
569
	}
570
566
571
	/* Allocate and initialize the DRM device. */
567
	/* Allocate and initialize the DRM device. */
572
	ddev = drm_dev_alloc(&panfrost_drm_driver, &pdev->dev);
568
	ddev = drm_dev_alloc(&panfrost_drm_driver, &pdev->dev);
(-)a/drivers/gpu/drm/panfrost/panfrost_mmu.c (+4 lines)
Lines 136-141 static void panfrost_mmu_enable(struct panfrost_device *pfdev, struct panfrost_m Link Here
136
	/* Need to revisit mem attrs.
136
	/* Need to revisit mem attrs.
137
	 * NC is the default, Mali driver is inner WT.
137
	 * NC is the default, Mali driver is inner WT.
138
	 */
138
	 */
139
	if (panfrost_model_eq(pfdev, 0x620)) {
140
		memattr &= ~0xf0f0f0ULL;
141
		memattr |= 0x404040;
142
	}
139
	mmu_write(pfdev, AS_MEMATTR_LO(as_nr), lower_32_bits(memattr));
143
	mmu_write(pfdev, AS_MEMATTR_LO(as_nr), lower_32_bits(memattr));
140
	mmu_write(pfdev, AS_MEMATTR_HI(as_nr), upper_32_bits(memattr));
144
	mmu_write(pfdev, AS_MEMATTR_HI(as_nr), upper_32_bits(memattr));
141
145

Return to bug 43458