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
2b80bb74
Commit
2b80bb74
authored
May 30, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/secboot: use nvkm_mc_intr_mask/unmask()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
8a90b6fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
+5
-6
No files found.
drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
View file @
2b80bb74
...
...
@@ -43,8 +43,8 @@ struct nvkm_secboot {
const
struct
nvkm_secboot_func
*
func
;
struct
nvkm_subdev
subdev
;
enum
nvkm_devidx
devidx
;
u32
base
;
u32
irq_mask
;
u32
enable_mask
;
};
#define nvkm_secboot(p) container_of((p), struct nvkm_secboot, subdev)
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
View file @
2b80bb74
...
...
@@ -19,8 +19,9 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#include "priv.h"
#include <subdev/mc.h>
#include <subdev/timer.h>
static
const
char
*
...
...
@@ -85,8 +86,7 @@ nvkm_secboot_falcon_enable(struct nvkm_secboot *sb)
/* enable IRQs */
nvkm_wr32
(
device
,
sb
->
base
+
0x010
,
0xff
);
nvkm_mask
(
device
,
0x640
,
sb
->
irq_mask
,
sb
->
irq_mask
);
nvkm_mask
(
device
,
0x644
,
sb
->
irq_mask
,
sb
->
irq_mask
);
nvkm_mc_intr_mask
(
device
,
sb
->
devidx
,
true
);
return
0
;
}
...
...
@@ -97,8 +97,7 @@ nvkm_secboot_falcon_disable(struct nvkm_secboot *sb)
struct
nvkm_device
*
device
=
sb
->
subdev
.
device
;
/* disable IRQs and wait for any previous code to complete */
nvkm_mask
(
device
,
0x644
,
sb
->
irq_mask
,
0x0
);
nvkm_mask
(
device
,
0x640
,
sb
->
irq_mask
,
0x0
);
nvkm_mc_intr_mask
(
device
,
sb
->
devidx
,
false
);
nvkm_wr32
(
device
,
sb
->
base
+
0x014
,
0xff
);
falcon_wait_idle
(
device
,
sb
->
base
);
...
...
@@ -270,8 +269,8 @@ nvkm_secboot_ctor(const struct nvkm_secboot_func *func,
/* setup the performing falcon's base address and masks */
switch
(
func
->
boot_falcon
)
{
case
NVKM_SECBOOT_FALCON_PMU
:
sb
->
devidx
=
NVKM_SUBDEV_PMU
;
sb
->
base
=
0x10a000
;
sb
->
irq_mask
=
0x1000000
;
sb
->
enable_mask
=
0x2000
;
break
;
default:
...
...
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