Re: 2.5.74-mm2 + nvidia (and others)

Christian Axelsson (smiler@lanil.mine.nu)
08 Jul 2003 13:40:35 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-31819-1057664725-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2003-07-08 at 09:03, Martin Schlemmer wrote:
> On Mon, 2003-07-07 at 21:30, Andrew Morton wrote:
>=20
> > Well that will explode if someone enables highpmd and has highmem.
> > This would be better:
> >=20
> > --- nv.c.orig 2003-07-05 22:55:10.000000000 -0700
> > +++ nv.c 2003-07-05 22:55:58.000000000 -0700
> > @@ -2105,11 +2105,14 @@
> > if (pgd_none(*pg_dir))
> > goto failed;
> > =20
> > - pg_mid_dir =3D pmd_offset(pg_dir, address);
> > - if (pmd_none(*pg_mid_dir))
> > + pg_mid_dir =3D pmd_offset_map(pg_dir, address);
> > + if (pmd_none(*pg_mid_dir)) {
> > + pmd_unmap(pg_mid_dir);
> > goto failed;
> > + }
> > =20
> > NV_PTE_OFFSET(address, pg_mid_dir, pte);
> > + pmd_unmap(pg_mid_dir);
> > =20
> > if (!pte_present(pte))
> > goto failed;
> >=20
> > -
>=20
> Bit too specific to -mm2, what about the the attached?

Compiles nicely, havent but I havent reloaded it yet.

--=20
Christian Axelsson
smiler@lanil.mine.nu

--=_courier-31819-1057664725-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/Cq2xyqbmAWw8VdkRAvttAKCvQkQSvIQiZe8lbb0nsBEjgmUwygCgvufs
KbJCJ6o1xXGcauTZjx1VLSM=
=G6E7
-----END PGP SIGNATURE-----

--=_courier-31819-1057664725-0001-2--