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
nexedi
linux
Commits
bf5d1a6b
Commit
bf5d1a6b
authored
May 08, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/disp/nv50-: fetch mask of available dacs during oneinit
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
f7b2ece3
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
44 additions
and
31 deletions
+44
-31
drivers/gpu/drm/nouveau/nvkm/engine/disp/dacgf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/dacgf119.c
+8
-3
drivers/gpu/drm/nouveau/nvkm/engine/disp/dacnv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/dacnv50.c
+8
-3
drivers/gpu/drm/nouveau/nvkm/engine/disp/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/g84.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gk104.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gk110.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gk110.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm200.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gt200.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gt200.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/gt215.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
+3
-0
drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp77.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp77.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp89.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp89.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
+10
-5
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h
+2
-7
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootgf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootgf119.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/disp/dacgf119.c
View file @
bf5d1a6b
...
@@ -58,8 +58,13 @@ gf119_dac = {
...
@@ -58,8 +58,13 @@ gf119_dac = {
int
int
gf119_dac_new
(
struct
nvkm_disp
*
disp
,
int
id
)
gf119_dac_new
(
struct
nvkm_disp
*
disp
,
int
id
)
{
{
struct
nvkm_device
*
device
=
disp
->
engine
.
subdev
.
device
;
if
(
!
(
nvkm_rd32
(
device
,
0x612004
)
&
(
0x00000010
<<
id
)))
return
0
;
return
nvkm_ior_new_
(
&
gf119_dac
,
disp
,
DAC
,
id
);
return
nvkm_ior_new_
(
&
gf119_dac
,
disp
,
DAC
,
id
);
}
}
int
gf119_dac_cnt
(
struct
nvkm_disp
*
disp
,
unsigned
long
*
pmask
)
{
struct
nvkm_device
*
device
=
disp
->
engine
.
subdev
.
device
;
*
pmask
=
(
nvkm_rd32
(
device
,
0x612004
)
&
0x000000f0
)
>>
4
;
return
4
;
}
drivers/gpu/drm/nouveau/nvkm/engine/disp/dacnv50.c
View file @
bf5d1a6b
...
@@ -109,8 +109,13 @@ nv50_dac = {
...
@@ -109,8 +109,13 @@ nv50_dac = {
int
int
nv50_dac_new
(
struct
nvkm_disp
*
disp
,
int
id
)
nv50_dac_new
(
struct
nvkm_disp
*
disp
,
int
id
)
{
{
struct
nvkm_device
*
device
=
disp
->
engine
.
subdev
.
device
;
if
(
!
(
nvkm_rd32
(
device
,
0x610184
)
&
(
0x00100000
<<
id
)))
return
0
;
return
nvkm_ior_new_
(
&
nv50_dac
,
disp
,
DAC
,
id
);
return
nvkm_ior_new_
(
&
nv50_dac
,
disp
,
DAC
,
id
);
}
}
int
nv50_dac_cnt
(
struct
nvkm_disp
*
disp
,
unsigned
long
*
pmask
)
{
struct
nvkm_device
*
device
=
disp
->
engine
.
subdev
.
device
;
*
pmask
=
(
nvkm_rd32
(
device
,
0x610184
)
&
0x00700000
)
>>
20
;
return
3
;
}
drivers/gpu/drm/nouveau/nvkm/engine/disp/g84.c
View file @
bf5d1a6b
...
@@ -33,7 +33,7 @@ g84_disp = {
...
@@ -33,7 +33,7 @@ g84_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
g84_disp_root_oclass
,
.
root
=
&
g84_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
2
,
.
new
=
g84_sor_new
},
.
sor
=
{
.
nr
=
2
,
.
new
=
g84_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
View file @
bf5d1a6b
...
@@ -33,7 +33,7 @@ g94_disp = {
...
@@ -33,7 +33,7 @@ g94_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
g94_disp_root_oclass
,
.
root
=
&
g94_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
g94_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
g94_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c
View file @
bf5d1a6b
...
@@ -172,7 +172,7 @@ gf119_disp = {
...
@@ -172,7 +172,7 @@ gf119_disp = {
.
super
=
gf119_disp_super
,
.
super
=
gf119_disp_super
,
.
root
=
&
gf119_disp_root_oclass
,
.
root
=
&
gf119_disp_root_oclass
,
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
gf119_dac_new
},
.
dac
=
{
.
cnt
=
gf119_dac_cnt
,
.
new
=
gf119_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gf119_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gf119_sor_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gk104.c
View file @
bf5d1a6b
...
@@ -34,7 +34,7 @@ gk104_disp = {
...
@@ -34,7 +34,7 @@ gk104_disp = {
.
super
=
gf119_disp_super
,
.
super
=
gf119_disp_super
,
.
root
=
&
gk104_disp_root_oclass
,
.
root
=
&
gk104_disp_root_oclass
,
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
gf119_dac_new
},
.
dac
=
{
.
cnt
=
gf119_dac_cnt
,
.
new
=
gf119_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gk104_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gk104_sor_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gk110.c
View file @
bf5d1a6b
...
@@ -34,7 +34,7 @@ gk110_disp = {
...
@@ -34,7 +34,7 @@ gk110_disp = {
.
super
=
gf119_disp_super
,
.
super
=
gf119_disp_super
,
.
root
=
&
gk110_disp_root_oclass
,
.
root
=
&
gk110_disp_root_oclass
,
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
gf119_dac_new
},
.
dac
=
{
.
cnt
=
gf119_dac_cnt
,
.
new
=
gf119_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gk104_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gk104_sor_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c
View file @
bf5d1a6b
...
@@ -34,7 +34,7 @@ gm107_disp = {
...
@@ -34,7 +34,7 @@ gm107_disp = {
.
super
=
gf119_disp_super
,
.
super
=
gf119_disp_super
,
.
root
=
&
gm107_disp_root_oclass
,
.
root
=
&
gm107_disp_root_oclass
,
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
gf119_dac_new
},
.
dac
=
{
.
cnt
=
gf119_dac_cnt
,
.
new
=
gf119_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gm107_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gm107_sor_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gm200.c
View file @
bf5d1a6b
...
@@ -34,7 +34,7 @@ gm200_disp = {
...
@@ -34,7 +34,7 @@ gm200_disp = {
.
super
=
gf119_disp_super
,
.
super
=
gf119_disp_super
,
.
root
=
&
gm200_disp_root_oclass
,
.
root
=
&
gm200_disp_root_oclass
,
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
head
=
{
.
cnt
=
gf119_head_cnt
,
.
new
=
gf119_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
gf119_dac_new
},
.
dac
=
{
.
cnt
=
gf119_dac_cnt
,
.
new
=
gf119_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gm200_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gm200_sor_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gt200.c
View file @
bf5d1a6b
...
@@ -33,7 +33,7 @@ gt200_disp = {
...
@@ -33,7 +33,7 @@ gt200_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
gt200_disp_root_oclass
,
.
root
=
&
gt200_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
2
,
.
new
=
g84_sor_new
},
.
sor
=
{
.
nr
=
2
,
.
new
=
g84_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/gt215.c
View file @
bf5d1a6b
...
@@ -33,7 +33,7 @@ gt215_disp = {
...
@@ -33,7 +33,7 @@ gt215_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
gt215_disp_root_oclass
,
.
root
=
&
gt215_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gt215_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
gt215_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
View file @
bf5d1a6b
...
@@ -153,7 +153,10 @@ void gf119_hda_eld(struct nvkm_ior *, u8 *, u8);
...
@@ -153,7 +153,10 @@ void gf119_hda_eld(struct nvkm_ior *, u8 *, u8);
#define IOR_WARN(i,f,a...) IOR_MSG((i), warn, f, ##a)
#define IOR_WARN(i,f,a...) IOR_MSG((i), warn, f, ##a)
#define IOR_DBG(i,f,a...) IOR_MSG((i), debug, f, ##a)
#define IOR_DBG(i,f,a...) IOR_MSG((i), debug, f, ##a)
int
nv50_dac_cnt
(
struct
nvkm_disp
*
,
unsigned
long
*
);
int
nv50_dac_new
(
struct
nvkm_disp
*
,
int
);
int
nv50_dac_new
(
struct
nvkm_disp
*
,
int
);
int
gf119_dac_cnt
(
struct
nvkm_disp
*
,
unsigned
long
*
);
int
gf119_dac_new
(
struct
nvkm_disp
*
,
int
);
int
gf119_dac_new
(
struct
nvkm_disp
*
,
int
);
int
nv50_pior_new
(
struct
nvkm_disp
*
,
int
);
int
nv50_pior_new
(
struct
nvkm_disp
*
,
int
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp77.c
View file @
bf5d1a6b
...
@@ -31,7 +31,7 @@ mcp77_disp = {
...
@@ -31,7 +31,7 @@ mcp77_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
g94_disp_root_oclass
,
.
root
=
&
g94_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
mcp77_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
mcp77_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp89.c
View file @
bf5d1a6b
...
@@ -31,7 +31,7 @@ mcp89_disp = {
...
@@ -31,7 +31,7 @@ mcp89_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
gt215_disp_root_oclass
,
.
root
=
&
gt215_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
mcp89_sor_new
},
.
sor
=
{
.
nr
=
4
,
.
new
=
mcp89_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
View file @
bf5d1a6b
...
@@ -76,11 +76,16 @@ nv50_disp_oneinit_(struct nvkm_disp *base)
...
@@ -76,11 +76,16 @@ nv50_disp_oneinit_(struct nvkm_disp *base)
return
ret
;
return
ret
;
}
}
for
(
i
=
0
;
func
->
dac
.
new
&&
i
<
func
->
dac
.
nr
;
i
++
)
{
if
(
func
->
dac
.
cnt
)
{
disp
->
dac
.
nr
=
func
->
dac
.
cnt
(
&
disp
->
base
,
&
disp
->
dac
.
mask
);
nvkm_debug
(
subdev
,
" DAC(s): %d (%02lx)
\n
"
,
disp
->
dac
.
nr
,
disp
->
dac
.
mask
);
for_each_set_bit
(
i
,
&
disp
->
dac
.
mask
,
disp
->
dac
.
nr
)
{
ret
=
func
->
dac
.
new
(
&
disp
->
base
,
i
);
ret
=
func
->
dac
.
new
(
&
disp
->
base
,
i
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
}
}
}
for
(
i
=
0
;
func
->
pior
.
new
&&
i
<
func
->
pior
.
nr
;
i
++
)
{
for
(
i
=
0
;
func
->
pior
.
new
&&
i
<
func
->
pior
.
nr
;
i
++
)
{
ret
=
func
->
pior
.
new
(
&
disp
->
base
,
i
);
ret
=
func
->
pior
.
new
(
&
disp
->
base
,
i
);
...
@@ -637,7 +642,7 @@ nv50_disp = {
...
@@ -637,7 +642,7 @@ nv50_disp = {
.
super
=
nv50_disp_super
,
.
super
=
nv50_disp_super
,
.
root
=
&
nv50_disp_root_oclass
,
.
root
=
&
nv50_disp_root_oclass
,
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
head
=
{
.
cnt
=
nv50_head_cnt
,
.
new
=
nv50_head_new
},
.
dac
=
{
.
nr
=
3
,
.
new
=
nv50_dac_new
},
.
dac
=
{
.
cnt
=
nv50_dac_cnt
,
.
new
=
nv50_dac_new
},
.
sor
=
{
.
nr
=
2
,
.
new
=
nv50_sor_new
},
.
sor
=
{
.
nr
=
2
,
.
new
=
nv50_sor_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
.
pior
=
{
.
nr
=
3
,
.
new
=
nv50_pior_new
},
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h
View file @
bf5d1a6b
...
@@ -18,7 +18,7 @@ struct nv50_disp {
...
@@ -18,7 +18,7 @@ struct nv50_disp {
struct
{
struct
{
unsigned
long
mask
;
unsigned
long
mask
;
int
nr
;
int
nr
;
}
head
;
}
head
,
dac
;
struct
{
struct
{
u32
lvdsconf
;
u32
lvdsconf
;
...
@@ -53,12 +53,7 @@ struct nv50_disp_func {
...
@@ -53,12 +53,7 @@ struct nv50_disp_func {
struct
{
struct
{
int
(
*
cnt
)(
struct
nvkm_disp
*
,
unsigned
long
*
mask
);
int
(
*
cnt
)(
struct
nvkm_disp
*
,
unsigned
long
*
mask
);
int
(
*
new
)(
struct
nvkm_disp
*
,
int
id
);
int
(
*
new
)(
struct
nvkm_disp
*
,
int
id
);
}
head
;
}
head
,
dac
;
struct
{
int
nr
;
int
(
*
new
)(
struct
nvkm_disp
*
,
int
id
);
}
dac
;
struct
{
struct
{
int
nr
;
int
nr
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootgf119.c
View file @
bf5d1a6b
...
@@ -64,7 +64,7 @@ gf119_disp_root_init(struct nv50_disp_root *root)
...
@@ -64,7 +64,7 @@ gf119_disp_root_init(struct nv50_disp_root *root)
}
}
/* ... DAC caps */
/* ... DAC caps */
for
(
i
=
0
;
i
<
disp
->
func
->
dac
.
nr
;
i
++
)
{
for
(
i
=
0
;
i
<
disp
->
dac
.
nr
;
i
++
)
{
tmp
=
nvkm_rd32
(
device
,
0x61a000
+
(
i
*
0x800
));
tmp
=
nvkm_rd32
(
device
,
0x61a000
+
(
i
*
0x800
));
nvkm_wr32
(
device
,
0x6101c0
+
(
i
*
0x800
),
tmp
);
nvkm_wr32
(
device
,
0x6101c0
+
(
i
*
0x800
),
tmp
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c
View file @
bf5d1a6b
...
@@ -427,7 +427,7 @@ nv50_disp_root_init(struct nv50_disp_root *root)
...
@@ -427,7 +427,7 @@ nv50_disp_root_init(struct nv50_disp_root *root)
}
}
/* ... DAC caps */
/* ... DAC caps */
for
(
i
=
0
;
i
<
disp
->
func
->
dac
.
nr
;
i
++
)
{
for
(
i
=
0
;
i
<
disp
->
dac
.
nr
;
i
++
)
{
tmp
=
nvkm_rd32
(
device
,
0x61a000
+
(
i
*
0x800
));
tmp
=
nvkm_rd32
(
device
,
0x61a000
+
(
i
*
0x800
));
nvkm_wr32
(
device
,
0x6101d0
+
(
i
*
0x04
),
tmp
);
nvkm_wr32
(
device
,
0x6101d0
+
(
i
*
0x04
),
tmp
);
}
}
...
...
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