~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/gpu/drm/nouveau/nvc0_grctx.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1623
1623
{
1624
1624
        struct drm_nouveau_private *dev_priv = dev->dev_private;
1625
1625
 
1626
 
        // ROPC_BROADCAST
 
1626
        /* ROPC_BROADCAST */
1627
1627
        nv_wr32(dev, 0x408800, 0x02802a3c);
1628
1628
        nv_wr32(dev, 0x408804, 0x00000040);
1629
1629
        nv_wr32(dev, 0x408808, 0x0003e00d);
1647
1647
{
1648
1648
        int i;
1649
1649
 
1650
 
        // GPC_BROADCAST
 
1650
        /* GPC_BROADCAST */
1651
1651
        nv_wr32(dev, 0x418380, 0x00000016);
1652
1652
        nv_wr32(dev, 0x418400, 0x38004e00);
1653
1653
        nv_wr32(dev, 0x418404, 0x71e0ffff);
1728
1728
{
1729
1729
        struct drm_nouveau_private *dev_priv = dev->dev_private;
1730
1730
 
1731
 
        // GPC_BROADCAST.TP_BROADCAST
 
1731
        /* GPC_BROADCAST.TP_BROADCAST */
1732
1732
        nv_wr32(dev, 0x419848, 0x00000000);
1733
1733
        nv_wr32(dev, 0x419864, 0x0000012a);
1734
1734
        nv_wr32(dev, 0x419888, 0x00000000);
1741
1741
        nv_wr32(dev, 0x419a1c, 0x00000000);
1742
1742
        nv_wr32(dev, 0x419a20, 0x00000800);
1743
1743
        if (dev_priv->chipset != 0xc0)
1744
 
                nv_wr32(dev, 0x00419ac4, 0x0007f440); // 0xc3
 
1744
                nv_wr32(dev, 0x00419ac4, 0x0007f440); /* 0xc3 */
1745
1745
        nv_wr32(dev, 0x419b00, 0x0a418820);
1746
1746
        nv_wr32(dev, 0x419b04, 0x062080e6);
1747
1747
        nv_wr32(dev, 0x419b08, 0x020398a4);
1797
1797
nvc0_grctx_generate(struct nouveau_channel *chan)
1798
1798
{
1799
1799
        struct drm_nouveau_private *dev_priv = chan->dev->dev_private;
1800
 
        struct nvc0_graph_priv *priv = dev_priv->engine.graph.priv;
1801
 
        struct nvc0_graph_chan *grch = chan->pgraph_ctx;
 
1800
        struct nvc0_graph_priv *priv = nv_engine(chan->dev, NVOBJ_ENGINE_GR);
 
1801
        struct nvc0_graph_chan *grch = chan->engctx[NVOBJ_ENGINE_GR];
1802
1802
        struct drm_device *dev = chan->dev;
1803
1803
        int i, gpc, tp, id;
1804
1804
        u32 r000260, tmp;
1912
1912
                for (i = 1; i < 7; i++)
1913
1913
                        data2[1] |= ((1 << (i + 5)) % ntpcv) << ((i - 1) * 5);
1914
1914
 
1915
 
                // GPC_BROADCAST
 
1915
                /* GPC_BROADCAST */
1916
1916
                nv_wr32(dev, 0x418bb8, (priv->tp_total << 8) |
1917
1917
                                        priv->magic_not_rop_nr);
1918
1918
                for (i = 0; i < 6; i++)
1919
1919
                        nv_wr32(dev, 0x418b08 + (i * 4), data[i]);
1920
1920
 
1921
 
                // GPC_BROADCAST.TP_BROADCAST
 
1921
                /* GPC_BROADCAST.TP_BROADCAST */
1922
1922
                nv_wr32(dev, 0x419bd0, (priv->tp_total << 8) |
1923
1923
                                       priv->magic_not_rop_nr |
1924
1924
                                       data2[0]);
1926
1926
                for (i = 0; i < 6; i++)
1927
1927
                        nv_wr32(dev, 0x419b00 + (i * 4), data[i]);
1928
1928
 
1929
 
                // UNK78xx
 
1929
                /* UNK78xx */
1930
1930
                nv_wr32(dev, 0x4078bc, (priv->tp_total << 8) |
1931
1931
                                        priv->magic_not_rop_nr);
1932
1932
                for (i = 0; i < 6; i++)
1944
1944
                gpc = -1;
1945
1945
                for (i = 0, gpc = -1; i < 32; i++) {
1946
1946
                        int ltp = i * (priv->tp_total - 1) / 32;
1947
 
                        
 
1947
 
1948
1948
                        do {
1949
1949
                                gpc = (gpc + 1) % priv->gpc_nr;
1950
1950
                        } while (!tpnr[gpc]);