Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
28eb559b
Commit
28eb559b
authored
Apr 03, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pat: cleanups
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
e7f260a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
arch/x86/mm/pat.c
arch/x86/mm/pat.c
+11
-11
No files found.
arch/x86/mm/pat.c
View file @
28eb559b
...
...
@@ -284,7 +284,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
struct
memtype
*
saved_ptr
;
if
(
parse
->
start
>=
end
)
{
pr
intk
(
"New Entry
\n
"
);
pr
_debug
(
"New Entry
\n
"
);
list_add
(
&
new_entry
->
nd
,
parse
->
nd
.
prev
);
new_entry
=
NULL
;
break
;
...
...
@@ -386,7 +386,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
break
;
}
printk
(
"Overlap at 0x%Lx-0x%Lx
\n
"
,
printk
(
KERN_INFO
"Overlap at 0x%Lx-0x%Lx
\n
"
,
saved_ptr
->
start
,
saved_ptr
->
end
);
/* No conflict. Go ahead and add this new entry */
list_add
(
&
new_entry
->
nd
,
&
saved_ptr
->
nd
);
...
...
@@ -396,7 +396,7 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
}
if
(
err
)
{
printk
(
printk
(
KERN_INFO
"reserve_memtype failed 0x%Lx-0x%Lx, track %s, req %s
\n
"
,
start
,
end
,
cattr_name
(
new_entry
->
type
),
cattr_name
(
req_type
));
...
...
@@ -408,16 +408,16 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
if
(
new_entry
)
{
/* No conflict. Not yet added to the list. Add to the tail */
list_add_tail
(
&
new_entry
->
nd
,
&
memtype_list
);
pr
intk
(
"New Entry
\n
"
);
}
pr
_debug
(
"New Entry
\n
"
);
}
if
(
ret_type
)
{
pr
intk
(
pr
_debug
(
"reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s, ret %s
\n
"
,
start
,
end
,
cattr_name
(
actual_type
),
cattr_name
(
req_type
),
cattr_name
(
*
ret_type
));
}
else
{
pr
intk
(
pr
_debug
(
"reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s
\n
"
,
start
,
end
,
cattr_name
(
actual_type
),
cattr_name
(
req_type
));
...
...
@@ -454,11 +454,11 @@ int free_memtype(u64 start, u64 end)
spin_unlock
(
&
memtype_lock
);
if
(
err
)
{
printk
(
KERN_
DEBUG
"%s:%d freeing invalid memtype %Lx-%Lx
\n
"
,
printk
(
KERN_
INFO
"%s:%d freeing invalid memtype %Lx-%Lx
\n
"
,
current
->
comm
,
current
->
pid
,
start
,
end
);
}
pr
intk
(
"free_memtype request 0x%Lx-0x%Lx
\n
"
,
start
,
end
);
pr
_debug
(
"free_memtype request 0x%Lx-0x%Lx
\n
"
,
start
,
end
);
return
err
;
}
...
...
@@ -529,7 +529,7 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn,
if
(
pfn
<=
max_pfn_mapped
&&
ioremap_change_attr
((
unsigned
long
)
__va
(
offset
),
size
,
flags
)
<
0
)
{
free_memtype
(
offset
,
offset
+
size
);
printk
(
KERN_
DEBUG
printk
(
KERN_
INFO
"%s:%d /dev/mem ioremap_change_attr failed %s for %Lx-%Lx
\n
"
,
current
->
comm
,
current
->
pid
,
cattr_name
(
flags
),
...
...
@@ -550,7 +550,7 @@ void map_devmem(unsigned long pfn, unsigned long size, pgprot_t vma_prot)
reserve_memtype
(
addr
,
addr
+
size
,
want_flags
,
&
flags
);
if
(
flags
!=
want_flags
)
{
printk
(
KERN_
DEBUG
printk
(
KERN_
INFO
"%s:%d /dev/mem expected mapping type %s for %Lx-%Lx, got %s
\n
"
,
current
->
comm
,
current
->
pid
,
cattr_name
(
want_flags
),
...
...
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