| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2007, Intel Corporation. |
|---|
| 3 | 4 | * 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. |
|---|
| 17 | 5 | * |
|---|
| 18 | 6 | * Authors: Thomas Hellstrom <thomas-at-tungstengraphics.com> |
|---|
| 19 | 7 | * Alan Cox <alan@linux.intel.com> |
|---|
| 20 | 8 | */ |
|---|
| 21 | 9 | |
|---|
| 22 | | -#include <drm/drmP.h> |
|---|
| 23 | 10 | #include <linux/shmem_fs.h> |
|---|
| 11 | + |
|---|
| 24 | 12 | #include <asm/set_memory.h> |
|---|
| 25 | | -#include "psb_drv.h" |
|---|
| 13 | + |
|---|
| 26 | 14 | #include "blitter.h" |
|---|
| 15 | +#include "psb_drv.h" |
|---|
| 27 | 16 | |
|---|
| 28 | 17 | |
|---|
| 29 | 18 | /* |
|---|
| .. | .. |
|---|
| 514 | 503 | * Map the GTT and the stolen memory area |
|---|
| 515 | 504 | */ |
|---|
| 516 | 505 | if (!resume) |
|---|
| 517 | | - dev_priv->gtt_map = ioremap_nocache(pg->gtt_phys_start, |
|---|
| 506 | + dev_priv->gtt_map = ioremap(pg->gtt_phys_start, |
|---|
| 518 | 507 | gtt_pages << PAGE_SHIFT); |
|---|
| 519 | 508 | if (!dev_priv->gtt_map) { |
|---|
| 520 | 509 | dev_err(dev->dev, "Failure to map gtt.\n"); |
|---|