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
dd5b84ac
Commit
dd5b84ac
authored
Sep 28, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
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
Show 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
;
...
...
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