Commit Graph

7564 Commits

Author SHA1 Message Date
nonaka af729c7e72 lynxfb too.
> Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
> something meaningful. All relevant documentation has been updated or
> written.
2012-03-14 13:41:07 +00:00
elad 0c9d8d15c9 Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
2012-03-13 18:40:26 +00:00
pgoyette e50d670682 Since there are no RW_READERs for the device's rw_lock, convert it to a
mutex and reduce the overhead.

Also, even if we're polling, we need to use the lock to control access to
the bus, otherwise we get anomolous results.

(These same changes were made several weeks ago to other drivers;  I
missed this one.)
2012-03-11 22:46:22 +00:00
para 046d9aac76 call kmem_free with the right address in hdafg_detach for sc_widgets
the former code let to memory corruption
2012-03-11 19:39:36 +00:00
nonaka 412ca8ab0d fix mmaped offset.
X works on Yeeloong Notebook now.
2012-03-11 15:58:56 +00:00
nonaka 705817db9f path correct device to wsdisplayio_busid_pci(). 2012-03-11 13:57:30 +00:00
macallan 7a11465321 when doing host blits, let the fifo drain every now and then. Apparently even
a relatively slow CPU can overload a relatively fast Rage 128 in some
circumstances.
This cures weird artifacts seen when scrolling lots and lots of text very
fast. Why this only showed up with glyph cacheing which should reduce the
frequency of host blits isn't quite clear though.
2012-03-08 05:42:44 +00:00
bouyer 0746b39155 bnx_start() is not MP-safe, so do not create the bnx_alloc_pkts()'s
workqueue MPSAFE. This could lead to bnx_start() being running at
the same time on 2 CPUs, with packets being sent twice.
Problem found and reported by Beverly Schwartz and Greg Troxel.
2012-03-06 18:29:23 +00:00
sborrill 48cab5c020 Add support for Intel 6 Series Serial ATA Controller 2012-03-05 16:21:44 +00:00
nonaka 4ed5e194ff Added Conexant 20671. 2012-03-03 05:41:45 +00:00
nonaka 423f20813e regen. 2012-03-03 05:40:11 +00:00
nonaka 73b2793519 Added some AMD/ATI devices. 2012-03-03 05:39:31 +00:00
nonaka 5a4d57175c Added Ricoh 5U822/5U823 SD/MMC Controller support. 2012-03-02 18:20:33 +00:00
nonaka 583c0ba939 regen. 2012-03-02 18:11:59 +00:00
nonaka c46a25299a Added Ricoh 5U822.
Rename Ricoh 5CE823 to 5U823.
2012-03-02 18:10:58 +00:00
nonaka 803036783b regen. 2012-03-02 15:49:26 +00:00
nonaka 010fac9c6c Added Ricoh 5CE823. 2012-03-02 15:47:51 +00:00
nonaka ccf5af0f11 Added Lemote Yeeloong Notebook support. 2012-03-02 13:20:57 +00:00
nonaka 8b18844d0e convert to device_t. 2012-03-02 11:41:36 +00:00
macallan f8f541b744 let the fifo drain periodically - we need this even in 8 bit on some
hardware, like rv100 paired with a semi-fast CPU
2012-02-28 21:22:20 +00:00
macallan 33768ffc70 add methods to map/unmap video memory and registers when entering/leaving X
so DRI has a fighting chance of working
2012-02-28 20:23:51 +00:00
macallan 774b5c96e5 support anti-aliased fonts in 8 bit as well 2012-02-28 20:21:16 +00:00
tsutsui cf0922a577 - make agp_amd64_attach() also checks AMD64 Family 10h CPU's
misc configuration devices
- print proper error message if no misc configuration device is found

Fixes kernel crash right after starting Xserver with radeondrm
on ASRock AM2NF3-VSTA (AM2 + nForce3 250 AGP) with Athlon II X2 CPU.
2012-02-25 21:21:09 +00:00
macallan 111cf9c784 break long lines 2012-02-23 07:49:42 +00:00
macallan b463d5211f set the CPU clock back to full speed on shutdown
this is necessary because PMON does not touch the clock scaling register on
reboot but still reports full CPU speed which confuses the clock code
2012-02-23 07:37:16 +00:00
macallan 2e1e7cb425 use glyphcache for anti-aliased fonts 2012-02-21 15:26:20 +00:00
mrg aef481556c convert to device_t.
been running on my inspiron 8500 for a couple of months.
2012-02-20 02:14:34 +00:00
rmind 917749f218 Replace simple_lock(9). 2012-02-19 00:42:02 +00:00
drochner b8a8326811 split device_t/softc 2012-02-18 13:38:35 +00:00
macallan e320fd11fe remove debug spam 2012-02-16 20:45:21 +00:00
macallan 707f8c3dec cache glyphs in video memory when using anti-aliased fonts on r128fb and
radeonfb
2012-02-16 17:33:28 +00:00
tsutsui f08dfa45a0 Regen from pcidevs rev 1.1102:
> Add VIA VX900 Host Bridge, to handle its quirk. PR/46018
> Ok releng@
2012-02-15 16:27:23 +00:00
tsutsui 532c63b4fa Add VIA VX900 Host Bridge, to handle its quirk. PR/46018
Ok releng@
2012-02-15 16:26:00 +00:00
macallan b148f574ff another blah() -> blah(void)
ok riz
2012-02-14 22:27:20 +00:00
pgoyette f76013d4aa Replace the xxx_acquire()/xxx_release() rwlocks with mutexes. There are
only RW_WRITERs for these, and no RW_READERs, so no need to incur the
extra overhead of allowing for both.  As discussed on tech-kern.

For piixpm and ichsmb, the acquire/release protocol needs to be used,
even if the request is I2C_F_POLL'd (or if the device supports only
polled mode).  Otherwise multiple requests can be running at the same
time, and they stomp on each other and create anomolous results.

Part 2 addresses my PR kern/45889

3 ACKs from releng
2012-02-14 15:08:07 +00:00
christos ff4d8f4f03 ansi prototypes 2012-02-03 23:39:59 +00:00
martin 37705281c9 Add missing <sys/rnd.h> include, ack: jdc@ 2012-02-03 10:11:07 +00:00
nonaka 6cabf8a9dc Use "opt_sdmmc.h" for SDHC_DEBUG. 2012-02-02 22:49:17 +00:00
tls 7b0b7dedd9 Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.
2012-02-02 19:42:57 +00:00
macallan ee1ab7bfc0 add a bunch of register definitions
not used yet but I better commit them now than have he tell me that I forgot
them when pm2fb.c starts using them
2012-02-02 07:09:53 +00:00
jakllsch 232e69ea3e Set HDAUDIO_PCI_TCSEL to TC0 like Linux does.
Fixes stalled audio on Lenovo X60 with coreboot firmware.

Additionally, move snooping adjustment to be executed on resume too,
as Linux does.
2012-02-01 16:56:34 +00:00
drochner d8e1a7b61a Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
2012-01-30 19:41:18 +00:00
drochner 26613330c6 extend the pci_aprint_devinfo slightly to cover the cases commonly
used by drivers: a short name for the quiet/naive case and a string
to override the "pcidevs" based name by one provided by the driver,
ride on yesterday's kernel minor version bump
2012-01-29 11:31:38 +00:00
para e62ee4d475 extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged
2012-01-27 19:48:38 +00:00
para 89c9828deb converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
2012-01-27 18:52:47 +00:00
drochner 7361c687ef put printing of the pci_devinfo into its own function (not inlined
by purpose) - this is a stack hog, and with this change my uTCA amd64
system boots again
a lot of similar code can be eliminated from pci device drivers this way,
but before doing so (and making the new function part of the module API)
I'd like to consider a modification to make it work with drivers which
prefer to print names from other sources (like pciide)
2012-01-26 21:17:28 +00:00
macallan 0f92837504 add a simple glyph cacheing scheme
Glyphs which use the default attribute will be saved into offscreen video
memory the first time they're used and subsequent uses will just copy them
from there instead of rendering them every time.
This should give a nice speedup especially on slow CPUs.
2012-01-25 03:49:12 +00:00
macallan 1a435f513d sprinkle sc_ to make it consistent 2012-01-25 02:04:35 +00:00
rkujawa eaa0692ccf Add missing i2c dependencies to voodoofb. 2012-01-24 01:58:40 +00:00
macallan eed205ff9e clear the screen when returning from X 2012-01-22 19:00:45 +00:00