Commit Graph

159 Commits

Author SHA1 Message Date
jakllsch
ae52eb0e4e Correct #endif comment. 2011-03-05 21:38:34 +00:00
cegger
6f6097d0cf add defflag for AR9285.
Spotted by jmcneill@
2011-03-05 14:42:11 +00:00
jmcneill
f99cc07e58 use pa_intrpin instead of pa_intrline for irq#, since drivers treat irq=0
as "no irq" and this matches pa_intrpin encoding
2011-02-27 01:02:39 +00:00
mrg
cba6b56402 change "int pipe" into "unsigned int pipe". 2011-02-24 08:02:55 +00:00
mrg
310cb41fcc convert all crtc values passed in from userland to be unsigned instead
of signed.  there's still some more internal to the i915 driver that
should be converted.

tested on a radeon x1550.
2011-02-24 07:59:44 +00:00
cegger
0b677bd453 make it compile with ATHHAL_DEBUG 2011-02-21 13:04:22 +00:00
cegger
9aa13d102d add AR9285 support 2011-02-21 11:06:37 +00:00
jmcneill
074f2fafe1 add AR9280 support 2011-02-20 11:21:02 +00:00
jruoho
93a12f383b Fix wrong note in a comment. 2011-02-20 06:09:16 +00:00
jmcneill
80da431343 support building as a module 2011-02-20 03:55:18 +00:00
jruoho
95a56e1be2 Provide ACPI_CAST_PTHREAD_T(x). 2011-02-18 17:31:14 +00:00
jruoho
eb474d132b Revert previous. 2011-02-18 17:26:07 +00:00
jmcneill
4add633a5d sync viadrm with FreeBSD, big new feature is AGP DMA and PCI DMA support 2011-02-18 14:26:09 +00:00
jruoho
d47b7e1166 Cast pthread_self(3) to uintptr_t. ACPICA 20100915:
The ACPI_THREAD_ID type is no longer configurable, internally it is now
always UINT64.  This simplifies the ACPICA code, especially any printf
output.  UINT64 is the only common data type for all thread_id types across
all operating systems.  It is now up to the host OSL to cast the native
thread_id type to UINT64 before returning the value to ACPICA (via
AcpiOsGetThreadId).  Lin Ming, Bob Moore.
2011-02-18 13:01:22 +00:00
jmcneill
88c6140601 get rid of this stale copy of via_drv.c, the one we want is in bsd-core 2011-02-18 02:52:42 +00:00
jmcneill
3d85f4c008 get rid of #ifdef __FreeBSD__ sections
use ioconf & add a module dependency on "drm"
2011-02-18 02:00:36 +00:00
jakllsch
1ed4f910c6 Add the RS880 device IDs to radeondrm(4). 2011-02-17 23:21:53 +00:00
jruoho
fa8715d817 Fix ACPI_DEBUG build. 2011-02-17 12:08:14 +00:00
jruoho
2edec7caea Sigh. Why some people are unable to write proper C? 2011-02-17 11:21:40 +00:00
jruoho
f92834d9d6 __UNCONST(3). 2011-02-17 10:59:31 +00:00
jruoho
15a9932e12 Update for ACPICA 20110211. 2011-02-17 10:13:35 +00:00
jruoho
72daaf98ee ACPI_THREAD_ID type was changed to uint64_t, which is good enough for us. 2011-02-17 10:12:50 +00:00
jruoho
159c4e26bd Merge ACPICA 20110211. 2011-02-17 10:09:40 +00:00
jruoho
124f4c82e1 Import 20110211. 2011-02-17 10:00:50 +00:00
jruoho
aa569730f5 Retire src/sys/external/intel-public. 2011-02-17 08:09:10 +00:00
jruoho
ba4af2fdd7 Add the build glue. 2011-02-17 07:27:17 +00:00
jruoho
df3b2cd4aa Revert the change made by cegger@ to the GPE reference counting.
The forthcoming version includes a rewritten GPE handling, so it
is unclear how relevant and safe this change is. If needed, this
will be re-applied later.
2011-02-17 07:24:41 +00:00
jruoho
716c1ee010 Apply our local patches. 2011-02-17 07:21:14 +00:00
jruoho
28c506b8f8 Reimport ACPICA 20100528 to a new location. 2011-02-17 07:16:14 +00:00
jmcneill
8f6ebfdd74 map the framebuffer and agp with BUS_SPACE_MAP_PREFETCHABLE 2011-02-15 14:24:23 +00:00
jmcneill
18b8e65603 wsdisplay isn't module friendly so don't add genfb support to the kmod for now 2011-02-12 14:49:54 +00:00
jmcneill
65c6f254b0 Make DRM work with genfb again. 2011-02-11 01:13:02 +00:00
dyoung
3f178d7fdb Protect against a NULL pointer dereference that I've seen in the wild. 2011-01-26 00:55:42 +00:00
dyoung
153bc7928e unifdef -U__linux__ -U__FreeBSD__. No functional change intended. 2011-01-21 21:57:16 +00:00
joerg
664edd5c61 Drop the build date from the iasl binary. 2011-01-12 22:53:16 +00:00
cegger
f150925704 recognize Radeon HD 4200. This lets radeondrm(4) attach.
"go ahead" macallan@
2011-01-06 11:07:48 +00:00
cegger
b9b1de19e8 previous fixed one HP laptop and broke an other HP laptop.
The one which got fixed RuntimeCount is 1. The one which broke RuntimeCount is 0.
So only decrement RuntimeCount when RuntimeCount is non-zero.
2010-11-18 18:16:15 +00:00
cegger
b768b4ed61 fix AcpiEnableGpe:
GPEs get enabled at ACPI initialization. AcpiInstallGpeHandler() disables
GPEs using AcpiEvDisableGpe() w/o decrementing RuntimeCount.
So when acpiec(4) enables the GPE after installing the GPE Handler then
AcpiEnableGpe() does not call AcpiEvEnableGpe() because RuntimeCount
says it is already enabled which is wrong.
So decrement the RuntimeCount in AcpiInstallGpeHandler() right
before calling AcpiEvDisableGpe().
2010-11-18 14:40:31 +00:00
mrg
1109ac3635 use a sysctllog structure, and sysctl_teardown(), to destroy the drm data.
this should actually now fix PR#40029.
2010-11-10 05:22:55 +00:00
mrg
a3ccd86a62 call the sysctl destroy functions upon failure and unload, which
should fix PR#40029.  while there, fix the radeon unload, which
was improperly matching mutex init/destroy operations and leading
to trying to destroy lock that was never initialised.
2010-11-06 22:06:10 +00:00
jruoho
38451663e8 There is nothing particularly interesting for users in:
acpicpu0 at acpi0 (CPU0)
ACPI: Dynamic OEM Table Load:
Table [SSDT](id 00EB) - 13 Objects with 0 Devices 1 Methods 0 Regions
ACPI: Dynamic OEM Table Load:
: ACPI CPU

Thus, use ACPI_DEBUG_PRINT() instead of ACPI_INFO() when a table is loaded
dynamically.
2010-08-25 04:58:59 +00:00
jmcneill
3df8768a1c Get viadrm working again 2010-08-21 11:54:36 +00:00
hannken
1664eae7f3 Using vfinddev() leads to vnode races as it returns an unreferenced
vnode that may disappear before the caller has a chance to reference it.

Reference the vnode while the specfs cache is locked.

Welcome to 5.99.37.

No objections on tech-kern.
2010-07-21 09:06:37 +00:00
mrg
857eb74b8b also make radeondrm depend upon firmload, not just r128drm.
should fix kern/43646 from kre.
2010-07-21 03:14:32 +00:00
mrg
7d9a68ec2a radeondrm depends upon firmload now; noted by rjs. 2010-07-06 16:33:31 +00:00
mrg
9dd0ef545a kill these old built-in firmware headers; we use the ones installed into
the filesystem from src/sys/microcode/radeon now.
2010-07-06 04:15:44 +00:00
mrg
ad13e17661 move all the radeondrm firmware images into the filesystem. check that
some firmware sizes are the expected size.  (XXX make all.)

based upon similar changes seen in the linux radeon drm driver.

this saves about 250KB in the kernel or module.
2010-07-05 20:32:23 +00:00
rmind
3c507045e2 Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.
2010-07-01 02:38:26 +00:00
jruoho
398e767108 Silence debug messages related to the AML Debug() opcode. To enable it, only
set the AcpiGbl_EnableAmlDebugObject global. Previously this was enabled
also when ACPI_LV_DEBUG_OBJECT was set for AcpiDbgLevel, but this was too
noisy, even for ACPI_DEBUG kernels, when the AML makes heavy use of Debug().
2010-06-30 06:43:37 +00:00
mrg
ca255ec20b add minimal support for radeon 5xxx. there's not enough for it to be
useful yet, but that's not a big deal since the latest xf86-video-ati
doesn't support DRM on these yet.

new microcode images obtained from:
	http://people.freedesktop.org/~agd5f/radeon_ucode/

XXX: need to fix max_hw_contexts handling at the very least.

XXX: should convert radeondrm to use firmload(9)
2010-06-26 23:05:13 +00:00