Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 21:25:44 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/dcons dcons_crom.c dcons_os.c
Message-ID:  <200901072126.n07LQ3eb080461@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marius      2009-01-07 21:25:44 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/dcons        dcons_crom.c dcons_os.c 
  Log:
  SVN rev 186876 on 2009-01-07 21:25:44Z by marius
  
  Check the return values of contigmalloc(9) as well as bus_dma(9)
  functions and stop attaching of dcons(4) and dcons_crom(4) if
  they indicate failure. This fixes a panic seen on sparc64 machines
  with no free physical memory in the requested 32-bit region but
  still doesn't make dcons(4)/dcons_crom(4) these work. I think
  the latter can be fixed by simply specifying ~0UL as the upper
  limit for contigmalloc(9) and letting the bounce pages and the
  IOMMU respectively handle limitations of the DMA engine. I didn't
  want to change that without the consensus of simokawa@ though,
  who unfortunately didn't reply so far.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.11      +12 -3     src/sys/dev/dcons/dcons_crom.c
  1.25      +11 -7     src/sys/dev/dcons/dcons_os.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901072126.n07LQ3eb080461>