Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
dd5b84ac
Commit
dd5b84ac
authored
11 years ago
by
Ben Skeggs
Browse files
Options
Download
Email Patches
Plain Diff
drm/nouveau/device: use an additional bit from NV_PMC_BOOT_0 to identify chipset
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3db0fdb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/gpu/drm/nouveau/core/engine/device/base.c
drivers/gpu/drm/nouveau/core/engine/device/base.c
+3
-3
No files found.
drivers/gpu/drm/nouveau/core/engine/device/base.c
View file @
dd5b84ac
...
...
@@ -158,9 +158,9 @@ nouveau_devobj_ctor(struct nouveau_object *parent,
iounmap
(
map
);
/* determine chipset and derive architecture from it */
if
((
boot0
&
0x
0
f000000
)
>
0
)
{
device
->
chipset
=
(
boot0
&
0xff00000
)
>>
20
;
switch
(
device
->
chipset
&
0xf0
)
{
if
((
boot0
&
0x
1
f000000
)
>
0
)
{
device
->
chipset
=
(
boot0
&
0x
1
ff00000
)
>>
20
;
switch
(
device
->
chipset
&
0x
1
f0
)
{
case
0x10
:
{
if
(
0x461
&
(
1
<<
(
device
->
chipset
&
0xf
)))
device
->
card_type
=
NV_10
;
...
...
This diff is collapsed.
Click to expand it.
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