forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/gma500/gtt.c
....@@ -1,29 +1,18 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2007, Intel Corporation.
34 * All Rights Reserved.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
14
- * You should have received a copy of the GNU General Public License along with
15
- * this program; if not, write to the Free Software Foundation, Inc.,
16
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
175 *
186 * Authors: Thomas Hellstrom <thomas-at-tungstengraphics.com>
197 * Alan Cox <alan@linux.intel.com>
208 */
219
22
-#include <drm/drmP.h>
2310 #include <linux/shmem_fs.h>
11
+
2412 #include <asm/set_memory.h>
25
-#include "psb_drv.h"
13
+
2614 #include "blitter.h"
15
+#include "psb_drv.h"
2716
2817
2918 /*
....@@ -514,7 +503,7 @@
514503 * Map the GTT and the stolen memory area
515504 */
516505 if (!resume)
517
- dev_priv->gtt_map = ioremap_nocache(pg->gtt_phys_start,
506
+ dev_priv->gtt_map = ioremap(pg->gtt_phys_start,
518507 gtt_pages << PAGE_SHIFT);
519508 if (!dev_priv->gtt_map) {
520509 dev_err(dev->dev, "Failure to map gtt.\n");