drm/nv50: Add NVA3 support in ctxprog/ctxvals generator.
Subsystems (3)
PATCH 1/1 drm/nv50: Add NVA3 support in ctxprog/ctxvals generator.
Signed-off-by Marcin Kościelnicki <[email protected]>
--- drivers/gpu/drm/nouveau/nv50_grctx.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nv50_grctx.c +12 -1
@@ -177,6 +177,7 @@ nv50_grctx_init(struct nouveau_grctx *ctx)case 0x96 :case 0x98 :case 0xa0 : +case 0xa3 :case 0xa5 :case 0xa8 :case 0xaa :
@@ -364,6 +365,7 @@ nv50_graph_construct_mmio(struct nouveau_grctx *ctx)case 0xac :gr_def (ctx,0x401c00 ,0x042500df );break ; +case 0xa3 :case 0xa5 :case 0xa8 :gr_def (ctx,0x401c00 ,0x142500df );
@@ -418,6 +420,7 @@ nv50_graph_construct_mmio(struct nouveau_grctx *ctx)break ;case 0x84 :case 0xa0 : +case 0xa3 :case 0xa5 :case 0xa8 :case 0xaa :
@@ -792,6 +795,7 @@ nv50_graph_construct_mmio(struct nouveau_grctx *ctx)case 0xa5 :gr_def (ctx, offset +0x1c ,0x310c0000 );break ; +case 0xa3 :case 0xa8 :case 0xaa :case 0xac :
@@ -859,6 +863,8 @@ nv50_graph_construct_mmio(struct nouveau_grctx *ctx)else gr_def (ctx, offset +0x8 ,0x05010202 );gr_def (ctx, offset +0xc ,0x00030201 ); +if (dev_priv->chipset ==0xa3 ) +cp_ctx (ctx, base +0x36c ,1 );cp_ctx (ctx, base +0x400 ,2 );gr_def (ctx, base +0x404 ,0x00000040 );
@@ -1159,7 +1165,9 @@ nv50_graph_construct_xfer1(struct nouveau_grctx *ctx)nv50_graph_construct_gene_unk8 (ctx);if (dev_priv->chipset ==0xa0 )xf_emit (ctx,0x189 ,0 ); -else if (dev_priv->chipset <0xa8 ) +else if (dev_priv->chipset ==0xa3 ) +xf_emit (ctx,0xd5 ,0 ); +else if (dev_priv->chipset ==0xa5 )xf_emit (ctx,0x99 ,0 );else if (dev_priv->chipset ==0xaa )xf_emit (ctx,0x65 ,0 );
@@ -1197,6 +1205,8 @@ nv50_graph_construct_xfer1(struct nouveau_grctx *ctx) ctx->ctxvals_pos = offset +4 ;if (dev_priv->chipset ==0xa0 )xf_emit (ctx,0xa80 ,0 ); +else if (dev_priv->chipset ==0xa3 ) +xf_emit (ctx,0xa7c ,0 );else xf_emit (ctx,0xa7a ,0 );xf_emit (ctx,1 ,0x3fffff );
@@ -1341,6 +1351,7 @@ nv50_graph_construct_gene_unk1(struct nouveau_grctx *ctx)xf_emit (ctx,0x942 ,0 );break ;case 0xa0 : +case 0xa3 :xf_emit (ctx,0x2042 ,0 );break ;case 0xa5 :
Signature · 6 lines
1.7.0.2 _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 1270204098-9664-1-git-send-email-koriakin-mP9o5jsk0RY@public.gmane.org
With my NVA3 board, I am getting a lot of messages as follows:
DRHD: handling fault status reg 3
DMAR:[DMA Read] Request device [01:00.0] fault addr 0 DMAR:[fault reason 06] PTE Read access is not set
This is while accessing web pages - for example, displaying a map from www.viamichelin.fr generates about 5 pages of such message groups. The map gets displayed OK, nevertheless.
01:00.0 is the video card. The messages come from .../drivers/pci/dmar.c. Does this mean anything to you?
Carlo
Signature · 3 lines
* Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - [email protected] che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)