Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b3472020
Commit
b3472020
authored
Nov 01, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: use nvif_mmu_type to determine BAR1 caching
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
658c71f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
drivers/gpu/drm/nouveau/include/nvif/device.h
drivers/gpu/drm/nouveau/include/nvif/device.h
+0
-1
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.c
+3
-1
No files found.
drivers/gpu/drm/nouveau/include/nvif/device.h
View file @
b3472020
...
...
@@ -58,7 +58,6 @@ u64 nvif_device_time(struct nvif_device *);
#define nvxx_bios(a) nvxx_device(a)->bios
#define nvxx_fb(a) nvxx_device(a)->fb
#define nvxx_mmu(a) nvxx_device(a)->mmu
#define nvxx_bar(a) nvxx_device(a)->bar
#define nvxx_gpio(a) nvxx_device(a)->gpio
#define nvxx_clk(a) nvxx_device(a)->clk
#define nvxx_i2c(a) nvxx_device(a)->i2c
...
...
drivers/gpu/drm/nouveau/nouveau_bo.c
View file @
b3472020
...
...
@@ -589,6 +589,7 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
struct
ttm_mem_type_manager
*
man
)
{
struct
nouveau_drm
*
drm
=
nouveau_bdev
(
bdev
);
struct
nvif_mmu
*
mmu
=
&
drm
->
client
.
mmu
;
switch
(
type
)
{
case
TTM_PL_SYSTEM
:
...
...
@@ -605,7 +606,8 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
if
(
drm
->
client
.
device
.
info
.
family
>=
NV_DEVICE_INFO_V0_TESLA
)
{
/* Some BARs do not support being ioremapped WC */
if
(
nvxx_bar
(
&
drm
->
client
.
device
)
->
iomap_uncached
)
{
const
u8
type
=
mmu
->
type
[
drm
->
ttm
.
type_vram
].
type
;
if
(
type
&
NVIF_MEM_UNCACHED
)
{
man
->
available_caching
=
TTM_PL_FLAG_UNCACHED
;
man
->
default_caching
=
TTM_PL_FLAG_UNCACHED
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment