Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (1h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 10:38:15 UTC Now

2013-07-24 02:42:19 UTC riastradh-drm2 commitmail json YAML

Move some drm2 module make goo into a drm2/Makefile.inc.

(riastradh)

2013-07-24 02:41:58 UTC riastradh-drm2 commitmail json YAML

Hook drm_stub.c into the drm2 module build again.

(riastradh)

2013-07-24 02:41:44 UTC riastradh-drm2 commitmail json YAML

Tweak an error branch in drm_fill_in_dev a little.

Destroy the spin locks and mutices.

Other error branches require closer scrutiny.

(riastradh)

2013-07-24 02:41:28 UTC riastradh-drm2 commitmail json YAML

Adapt drm_fill_in_dev to use linux_mutex_init.

(riastradh)

2013-07-24 02:41:14 UTC riastradh-drm2 commitmail json YAML

Make drm_master_destroy destroy the spinlock and waitqueues too.

(riastradh)

2013-07-24 02:40:57 UTC riastradh-drm2 commitmail json YAML

Adapt drm_master_create to use DRM_INIT_WAITQUEUE.

(riastradh)

2013-07-24 02:40:42 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:40:28 UTC riastradh-drm2 commitmail json YAML

Omit minor allocation, procfs, debugfs, and more from drm_stub.c.

Might be better split into two files, one for handling DRM data
structures (masters, devices, &c.) and one for gluing them to Linux
KPIs, but this is expedient for now.

(riastradh)

2013-07-24 02:40:13 UTC riastradh-drm2 commitmail json YAML

drm_stub.c needs <linux/export.h> and <linux/printk.h>.

(riastradh)

2013-07-24 02:39:57 UTC riastradh-drm2 commitmail json YAML

Add fields to struct drm_sg_mem for NetBSD bus_dma.

(riastradh)

2013-07-24 02:39:42 UTC riastradh-drm2 commitmail json YAML

Ifdef out declaration of drm_agp_bind_pages in drmP.h.

Nothing seems to use it, and it uses Linux's struct page anyway, so
if anything did use it it would need to be adapted.

(riastradh)

2013-07-24 02:39:25 UTC riastradh-drm2 commitmail json YAML

Add drm_pci_alloc/drm_pci_free to local drm_memory.c.

Moved here from upstream's drm_pci.c because they don't actually
depend on anything of PCI; they just invoke the bus-independent
bus_dma abstraction.

(riastradh)

2013-07-24 02:39:11 UTC riastradh-drm2 commitmail json YAML

Add a bus_dma tag to struct drm_device.

Old drm got at this through the struct pci_attach_args sequestered
away somewhere in struct drm_device, but this way access to the dma
tag is bus-independent.

(riastradh)

2013-07-24 02:38:55 UTC riastradh-drm2 commitmail json YAML

Add fields to struct drm_dma_handle for NetBSD bus_dma.

(riastradh)

2013-07-24 02:38:39 UTC riastradh-drm2 commitmail json YAML

drm_mm.c needs <linux/printk.h> and <asm/bug.h>.

(riastradh)

2013-07-24 02:38:23 UTC riastradh-drm2 commitmail json YAML

Add comment explaining why drm_idlelock_* are not yet implemented.

(riastradh)

2013-07-24 02:38:06 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:37:49 UTC riastradh-drm2 commitmail json YAML

Rename fields of struct list_head to match Linux.

Linux code uses the fields by name, not by list_next and list_prev
accessors, so we'd better match.

hlist may need this too.

(riastradh)

2013-07-24 02:37:36 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:37:13 UTC riastradh-drm2 commitmail json YAML

Add GFP_ATOMIC, meaning M_NOWAIT, to <linux/slab.h>.

(riastradh)

2013-07-24 02:37:00 UTC riastradh-drm2 commitmail json YAML

Add linux_mutex_destroy to <linux/mutex.h>.

(riastradh)

2013-07-24 02:36:46 UTC riastradh-drm2 commitmail json YAML

Add some Linuxy MODULE_* stubs to <linux/module.h>.

(riastradh)

2013-07-24 02:36:31 UTC riastradh-drm2 commitmail json YAML

Add DRM_DESTROY_WAITQUEUE to drm_wait_netbsd.h.

(riastradh)

2013-07-24 02:36:18 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:36:04 UTC riastradh-drm2 commitmail json YAML

Add list_move and list_replace to <linux/list.h>.

(riastradh)

2013-07-24 02:35:49 UTC riastradh-drm2 commitmail json YAML

Include <sys/types.h> before <sys/device_if.h> in <linux/i2c.h>.

(riastradh)

2013-07-24 02:35:35 UTC riastradh-drm2 commitmail json YAML

Implement drm_lock_free and drm_i_have_hw_lock.

(riastradh)

2013-07-24 02:35:22 UTC riastradh-drm2 commitmail json YAML

Unhook drm_pci.c from drm2 module, to moved to a drm2pci module.

(riastradh)

2013-07-24 02:35:07 UTC riastradh-drm2 commitmail json YAML

First draft of a local drm_pci.c.

(riastradh)

2013-07-24 02:34:44 UTC riastradh-drm2 commitmail json YAML

Unhook drm_stub.c, most of which is irrelevant.

(riastradh)

2013-07-24 02:34:31 UTC riastradh-drm2 commitmail json YAML

Unhook drm_vm.c until rewritten for uvm.

(riastradh)

2013-07-24 02:34:16 UTC riastradh-drm2 commitmail json YAML

Unhook drm_scatter.c until rewritten with bus_dma(9).

(riastradh)

2013-07-24 02:34:03 UTC riastradh-drm2 commitmail json YAML

Unhook drm_proc.c; we shall use sysctl instead later.

(riastradh)

2013-07-24 02:33:45 UTC riastradh-drm2 commitmail json YAML

Unhook drm_platform.c; we have a different idea of platform devices.

(riastradh)

2013-07-24 02:33:31 UTC riastradh-drm2 commitmail json YAML

Unhook drm_modes.c until deemed necessary.

(riastradh)

2013-07-24 02:33:17 UTC riastradh-drm2 commitmail json YAML

Add a local drm_lock.c, since I can't make sense of Linux's.

This leaves drm_idlelock_take and drm_idlelock_release unimplemented
until I can figure out the intended semantics.  Linux's code doesn't
guarantee that the lock is taken when drm_idlelock_take returns, and
provides no way to check whether the current lwp/thread/whatever owns
the lock as intended, so there's no way to add diagnostic checks for
the correct use of the API.

(riastradh)

2013-07-24 02:32:56 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:32:40 UTC riastradh-drm2 commitmail json YAML

Define IPL_DRM to be IPL_TTY in drm_irq_netbsd.h.

This is not clearly the right definition, but it's what the old drm
code used.  This is not clearly the right place, but it will do for
now.

(riastradh)

2013-07-24 02:32:26 UTC riastradh-drm2 commitmail json YAML

Convert drm_irq.c to use drm_bus irq_install/irq_uninstall.

(riastradh)

2013-07-24 02:32:10 UTC riastradh-drm2 commitmail json YAML

Add a drm bus irq cookie to struct drm_device.

(riastradh)

2013-07-24 02:31:54 UTC riastradh-drm2 commitmail json YAML

Extend struct drm_bus with irq_install and irq_uninstall operations.

These allow us to pass an intr handler cookie from install to
uninstall, which Linux doesn't do in its request_irq/free_irq but
which we need for pci_intr_establish/pci_intr_disestablish.

(riastradh)

2013-07-24 02:31:40 UTC riastradh-drm2 commitmail json YAML

Convert drm_irq.c to use the drm_wait compatibility API.

(riastradh)

2013-07-24 02:31:25 UTC riastradh-drm2 commitmail json YAML

Avoid sizeof(wait_queue_head_t) in drm_irq.c.

Use sizeof(*dev->vbl_queue_head) instead to ease transition to
drm_wait compatibility API.

(riastradh)

2013-07-24 02:31:08 UTC riastradh-drm2 commitmail json YAML

Add timespec_to_ns and timeval_to_ns to <linux/ktime.h>.

Not quite the right place, but this'll do for now.

(riastradh)

2013-07-24 02:30:54 UTC riastradh-drm2 commitmail json YAML

Replace current->pid by curproc->pid in drm_irq.c.  (Kludge...)

(riastradh)

2013-07-24 02:30:39 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:30:26 UTC riastradh-drm2 commitmail json YAML

Define DRM_INFO appropriately for NetBSD in drmP.h.

(riastradh)

2013-07-24 02:30:10 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:29:48 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:29:27 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:29:06 UTC riastradh-drm2 commitmail json YAML

Add dummy vga_client_register stub to <linux/vgaarb.h>.

(riastradh)

2013-07-24 02:28:50 UTC riastradh-drm2 commitmail json YAML

Fix mod_timer to use absolute timeouts in <linux/timer.h>.

(riastradh)

2013-07-24 02:28:36 UTC riastradh-drm2 commitmail json YAML

Add Linux SMP atomic inc/dec memory barriers to <linux/atomic.h>.

(riastradh)

2013-07-24 02:28:23 UTC riastradh-drm2 commitmail json YAML

Define jiffies to be hardclock_ticks in <linux/jiffies.h>.

(riastradh)

2013-07-24 02:28:07 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:27:52 UTC riastradh-drm2 commitmail json YAML

Add atomic_add and atomic_add_return to <linux/atomic.h>.

(riastradh)

2013-07-24 02:27:38 UTC riastradh-drm2 commitmail json YAML

Separate `struct atomic { ... }' from typedef for greppability.

(riastradh)

2013-07-24 02:27:23 UTC riastradh-drm2 commitmail json YAML

Add empty trace_drm_vblank_* stubs to drm_trace.h.

(riastradh)

2013-07-24 02:27:09 UTC riastradh-drm2 commitmail json YAML

Define DRM_HZ to be hz (super-kludgey!) in drm_wait_netbsd.h.

(riastradh)

2013-07-24 02:26:54 UTC riastradh-drm2 commitmail json YAML

Define IRQF_SHARED to be 0 in drm_irq_netbsd.h.

(riastradh)

2013-07-24 02:26:39 UTC riastradh-drm2 commitmail json YAML

Define WARN_ON_SMP to be the same as WARN_ON in Linux <asm/bug.h>.

(riastradh)

2013-07-24 02:26:23 UTC riastradh-drm2 commitmail json YAML

Disable DRM_IOCTL_GET_CLIENT (drmGetClient in libdrm) for now.

It does not appear to be needed by anything but diagnostic tools, and
it requires bogus kernel state to be maintained.

(riastradh)

2013-07-24 02:26:09 UTC riastradh-drm2 commitmail json YAML

Unhook drm_ioc32.c; worry about 32-bit compat later.

(riastradh)

2013-07-24 02:25:54 UTC riastradh-drm2 commitmail json YAML

Build drm2 module with DIAGNOSTIC.

(riastradh)

2013-07-24 02:25:40 UTC riastradh-drm2 commitmail json YAML

Unhook drm_info.c -- Linux sysfs stuff.

(riastradh)

2013-07-24 02:25:26 UTC riastradh-drm2 commitmail json YAML

Unhook drm_gem.c until rewritten with uvm cruft.

(riastradh)

2013-07-24 02:25:12 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:24:58 UTC riastradh-drm2 commitmail json YAML

Add (unauthentic) spin_lock_destroy to <linux/spinlock.h>.

(riastradh)

2013-07-24 02:24:44 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:24:29 UTC riastradh-drm2 commitmail json YAML

Add some hlist operations to <linux/list.h>.

Also add some bogus `rcu-safe' operations, to be filled in with the
right memory barriers later.

(riastradh)

2013-07-24 02:24:16 UTC riastradh-drm2 commitmail json YAML

Implement unlikely as __predict_false in <linux/kernel.h>.

(riastradh)

2013-07-24 02:24:02 UTC riastradh-drm2 commitmail json YAML

Implement hash_long in <linux/hash.h>.

Uses the same hash function as in Linux, implemented differently.

(riastradh)

2013-07-24 02:23:48 UTC riastradh-drm2 commitmail json YAML

Avoid INT_MAX in PTR_ERR; check for truncation instead.

(riastradh)

2013-07-24 02:23:34 UTC riastradh-drm2 commitmail json YAML

In drm_global_release, declare item ignored.

(riastradh)

2013-07-24 02:23:21 UTC riastradh-drm2 commitmail json YAML

drm_global.c needs <linux/kernel.h>, <linux/export.h>, and <asm/bug.h>.

(riastradh)

2013-07-24 02:23:06 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:22:43 UTC riastradh-drm2 commitmail json YAML

drm_gem.c needs <linux/err.h>, <linux/export.h>, and <asm/bug.h>.

(riastradh)

2013-07-24 02:22:28 UTC riastradh-drm2 commitmail json YAML

Convert mutex_init to linux_mutex_init in drm_global.c.

(riastradh)

2013-07-24 02:22:14 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:21:59 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:21:43 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:21:22 UTC riastradh-drm2 commitmail json YAML

Fix up drm_read and drm_poll a little.

Still #ifdef'd out because it needs some selnotify calls to actually
work, but the #ifdef'd code now compiles and looks more plausible --
doesn't hold onto spin locks during loops and uiomoves.

(riastradh)

2013-07-24 02:21:05 UTC riastradh-drm2 commitmail json YAML

Tag the XXX's in drm_drv.c for enhanced greppability.

(riastradh)

2013-07-24 02:20:52 UTC riastradh-drm2 commitmail json YAML

Name fp->f_data in drm_close for clarity.

(riastradh)

2013-07-24 02:20:38 UTC riastradh-drm2 commitmail json YAML

Add variants of drm wait/wakeup for spin locks in drm_wait_netbsd.h.

(riastradh)

2013-07-24 02:20:24 UTC riastradh-drm2 commitmail json YAML

Define list_first_entry in <linux/list.h>.

(riastradh)

2013-07-24 02:20:09 UTC riastradh-drm2 commitmail json YAML

Define spin_is_locked in <linux/spinlock.h>.

(riastradh)

2013-07-24 02:19:53 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:19:30 UTC riastradh-drm2 commitmail json YAML

Use only C99-style initializers in DRM_MODE in drm_crtc.h.

(riastradh)

2013-07-24 02:19:15 UTC riastradh-drm2 commitmail json YAML

Unhook drm_encoder_slave.c until rewritten with NetBSD i2c.

(riastradh)

2013-07-24 02:18:59 UTC riastradh-drm2 commitmail json YAML

Fix copypasto in commit ffe8f68e48d8cfe8d22a8f2bea1ea5825e8d5b49.

Diff of sys/external/bsd/drm2/dist between vendor/LINUX_DRM2 and HEAD
is supposed to be only additions.

(riastradh)

2013-07-24 02:18:42 UTC riastradh-drm2 commitmail json YAML

First draft of NetBSD drm(4) driver attachment goop.

- Attachments will look like: drm0 at i915drm0 at pci0.  In the
future, we may have wsdisplay0 at (drmfb0 at) drm0 at pci0.  The
intent is to avoid having vga0, radeonfb0, &c., attach at pci0, and
then having drm0 parasitically sucking their memory as we currently
do with old drm.  The drm0 device exists only so that we can have a
unified /dev/drm device node exposed to userland (i.e., a single drm
device major).

- There are some OS-independent subroutines here that don't belong.
I wrote them by
  . studying the Linux driver attachment goop in dist/drm/drm_drv.c,
    drm_fops.c, and drm_stub.c;
  . identifying what logic is about DRM rather than about Linux's
    driver KPI; and
  . writing NetBSD driver attachment goop based on that information,
    with the logic that is about DRM and independent of driver KPI
    separated out into separate subroutines (drm_open_file, &c.).

- Initialization of struct drm_device is missing.  It's not clear yet
whether this should be done by i915drm_attach &c., perhaps using some
utility (say, drm_device_initialize) defined here, or whether this
should be done mostly by drm_attach.

- Poll and read are missing.  I suspect they will have to be filled
in at some point, in spite of comments in the old drm code to the
effect that they exist only for legacy X servers -- it looks like
more recent libdrms rely on them.

- Compile-tested only so far; this code is far from running.

(riastradh)

2013-07-24 02:18:11 UTC riastradh-drm2 commitmail json YAML

Reorder .PATH in drm2 module so we can have local overrides.

(riastradh)

2013-07-24 02:17:56 UTC riastradh-drm2 commitmail json YAML

Unhook drm_fb_helper.c from the build for now.

Needs to be rewritten as a wsdisplay attachment or something.

(riastradh)

2013-07-24 02:17:43 UTC riastradh-drm2 commitmail json YAML

Unhook drm_edid.c from the build for now.

Needs to be rewritten with NetBSD's edid KPI.

(riastradh)

2013-07-24 02:17:29 UTC riastradh-drm2 commitmail json YAML

Unhook drm_dp_helper.c from the build for now.

Needs to be rewritten with NetBSD's i2c KPI.

(riastradh)

2013-07-24 02:17:14 UTC riastradh-drm2 commitmail json YAML

Need to mask off IOC_DIRMASK too in DRM_IOCTL_NR.

(riastradh)

2013-07-24 02:16:56 UTC riastradh-drm2 commitmail json YAML

Ifdef out unused and now uninitialized fields of drm_agp_head.

(riastradh)

2013-07-24 02:16:40 UTC riastradh-drm2 commitmail json YAML

Define DRM_IOCTL_NR and DRM_MAJOR appropriately for NetBSD.

(riastradh)

2013-07-24 02:16:23 UTC riastradh-drm2 commitmail json YAML

drm_crtc_helper.c does not need drm_fb_helper.h.

(riastradh)

2013-07-24 02:16:08 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:15:53 UTC riastradh-drm2 commitmail json YAML

Add Linuxoid <asm/param.h> with hokey HZ.

(riastradh)

2013-07-24 02:15:30 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:15:14 UTC riastradh-drm2 commitmail json YAML

Work around global definitions of min and max in drm_crtc.c.

(riastradh)

2013-07-24 02:14:58 UTC riastradh-drm2 commitmail json YAML

Use list_next(&list), not list.next, in drm_crtc.c.

(riastradh)

2013-07-24 02:14:25 UTC riastradh-drm2 commitmail json YAML

Avoid empty-brace initializer in drm_mode_addfb in drm_crtc.c.

(riastradh)

2013-07-24 02:14:10 UTC riastradh-drm2 commitmail json YAML

Define swap in <linux/kernel.h>.

Kinda hokey definition, but this avoids typeof.

(riastradh)

2013-07-24 02:13:57 UTC riastradh-drm2 commitmail json YAML

Make drm_mode_group_init static in drm_crtc.c.

(riastradh)

2013-07-24 02:13:39 UTC riastradh-drm2 commitmail json YAML

Replace mutex_init by linux_mutex_init in drm_crtc.c.

(riastradh)

2013-07-24 02:13:23 UTC riastradh-drm2 commitmail json YAML

Sprinkle const into drm_crtc.c where string literals are involved.

Omit unused drm_get_connector_status_name (was used only by sysfs)
and drm_get_dirty_info_name (seems to have been completely unused).

(riastradh)

2013-07-24 02:13:02 UTC riastradh-drm2 commitmail json YAML

drm_crtc.c needs <linux/err.h> and <linux/spinlock.h>.

(riastradh)

2013-07-24 02:12:46 UTC riastradh-drm2 commitmail json YAML

Add some expedient __UNCONST workarounds to drm_crtc_helper.h.

(riastradh)

2013-07-24 02:12:29 UTC riastradh-drm2 commitmail json YAML

Add __le16, __le32, and __le64 to <linux/types.h>.

As far as I'm aware, these aliases are correct, and the type doesn't
actually have any effect on the byte order of reads and writes.

(riastradh)

2013-07-24 02:12:14 UTC riastradh-drm2 commitmail json YAML

Add hokey (but typeof-free) get_user and put_user to <asm/uaccess.h>.

(riastradh)

2013-07-24 02:12:00 UTC riastradh-drm2 commitmail json YAML

Add WARN and WARN_ON to <linux/kernel.h>.

(riastradh)

2013-07-24 02:11:38 UTC riastradh-drm2 commitmail json YAML

Fix some typos and add some stuff to <linux/list.h>.

(riastradh)

2013-07-24 02:10:45 UTC riastradh-drm2 commitmail json YAML

Define empty module_init and module_exit stubs in <linux/module.h>.

(riastradh)

2013-07-24 02:10:30 UTC riastradh-drm2 commitmail json YAML

Define empty module_param_named stub in <linux/moduleparam.h>.

(riastradh)

2013-07-24 02:10:15 UTC riastradh-drm2 commitmail json YAML

Define linux_mutex_init in <linux/mutex.h> to make its uses greppable.

(riastradh)

2013-07-24 02:09:59 UTC riastradh-drm2 commitmail json YAML

It's spin_unlock_irqrestore, not spin_lock_irqrestore.

(riastradh)

2013-07-24 02:09:43 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:09:28 UTC riastradh-drm2 commitmail json YAML

Disconnect drm_cache.c from drm2 module.  Needs to be rewritten.

(riastradh)

2013-07-24 02:09:07 UTC riastradh-drm2 commitmail json YAML

Replace wake_up by DRM_WAKEUP_ONE in drm_context.c.

(riastradh)

2013-07-24 02:08:48 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:08:33 UTC riastradh-drm2 commitmail json YAML

Ifdef out the one reference to (assignment of) drm_context last_switch.

(riastradh)

2013-07-24 02:08:17 UTC riastradh-drm2 commitmail json YAML

Remove apparently unused struct drm_context::last_switch.

(riastradh)

2013-07-24 02:08:01 UTC riastradh-drm2 commitmail json YAML

Add some bit-toggling atomics to <linux/atomic.h>.

(riastradh)

2013-07-24 02:07:46 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:07:31 UTC riastradh-drm2 commitmail json YAML

Implement Linux's kludgerous pointers-as-errors in <linux/err.h>.

(riastradh)

2013-07-24 02:07:09 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:06:53 UTC riastradh-drm2 commitmail json YAML

Replace capable(CAP_SYS_ADMIN) by DRM_SUSER() in drm_bufs.c.

(riastradh)

2013-07-24 02:06:38 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:06:18 UTC riastradh-drm2 commitmail json YAML

Replace wake_up_interruptible_all by DRM_WAKEUP_ALL in drm_bufs.c.

(riastradh)

2013-07-24 02:06:04 UTC riastradh-drm2 commitmail json YAML

Replace ioremap/iounmap by drm_ioremap/drm_iounmap in drm_bufs.c.

(riastradh)

2013-07-24 02:05:49 UTC riastradh-drm2 commitmail json YAML

Declare compatibility frobs drm_ioremap and drm_iounmap in drmP.h.

To be implemented later.

(riastradh)

2013-07-24 02:05:33 UTC riastradh-drm2 commitmail json YAML

Unifdef declaration of drm_global_mutex in drmP.h.

XXX Should probably be declared as drm_interlock_t instead.

(riastradh)

2013-07-24 02:05:17 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:05:01 UTC riastradh-drm2 commitmail json YAML

agp_info.ai_aperture_size, not agp_info.aper_size << 20, in drm_bufs.c.

(riastradh)

2013-07-24 02:04:46 UTC riastradh-drm2 commitmail json YAML

drm_bufs.c needs <linux/sched.h>, <linux/mm.h>, and <asm/mtrr.h>.

(riastradh)

2013-07-24 02:04:31 UTC riastradh-drm2 commitmail json YAML

First stab at vm_mmap in <linux/mm.h>.  Also PAGE_SIZE & round_page.

(riastradh)

2013-07-24 02:04:16 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:04:01 UTC riastradh-drm2 commitmail json YAML

Define MTRR when building the drm2 module on x86.

(riastradh)

2013-07-24 02:03:46 UTC riastradh-drm2 commitmail json YAML

Partially implement Linux <asm/mtrr.h>.

(riastradh)

2013-07-24 02:03:32 UTC riastradh-drm2 commitmail json YAML

#define current curproc, and add task_pid_nr, in <linux/sched.h>.

(riastradh)

2013-07-24 02:03:16 UTC riastradh-drm2 commitmail json YAML

Tweak drm waitqueue compatibility interface.

Use (Linux) struct mutex for drm_interlock_t, and split DRM_WAKEUP
into DRM_WAKEUP_ONE (cv_signal) and DRM_WAKEUP_ALL (cv_broadcast).

(riastradh)

2013-07-24 02:03:00 UTC riastradh-drm2 commitmail json YAML

Include <sys/bitops.h> in <linux/log2.h> for ilog2.

(riastradh)

2013-07-24 02:02:45 UTC riastradh-drm2 commitmail json YAML

Implement vmalloc_user and vfree with malloc(9) in <linux/vmalloc.h>.

XXX Probably not the right thing here -- uvm_km_alloc is probably
more appropriate, but Linux doesn't pass the size to vfree, so this
is more expedient for now.

(riastradh)

2013-07-24 02:02:32 UTC riastradh-drm2 commitmail json YAML

Implement list_empty and list_for_each_entry_safe in <linux/list.h>.

Also fix the list operations to be consistent about using the head,
rather than NULL, as the sentinel.

(riastradh)

2013-07-24 02:02:17 UTC riastradh-drm2 commitmail json YAML

Use a union rather than casts in <linux/atomic.h>.  Add atomic_dec.

(riastradh)

2013-07-24 02:02:03 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:01:42 UTC riastradh-drm2 commitmail json YAML

Negate error code in DRM_COPY_{TO,FROM}_USER in drm_copy_netbsd.h.

(riastradh)

2013-07-24 02:01:28 UTC riastradh-drm2 commitmail json YAML

Implement krealloc in <linux/slab.h>.

(riastradh)

2013-07-24 02:01:13 UTC riastradh-drm2 commitmail json YAML

Define SHMLBA to be PAGE_SIZE in <asm/shmparam.h>.

XXX Wait, what?

(riastradh)

2013-07-24 02:00:58 UTC riastradh-drm2 commitmail json YAML

Avoid pointer arithmetic on void * in drm_buffer.c.

(riastradh)

2013-07-24 02:00:44 UTC riastradh-drm2 commitmail json YAML

2013-07-24 02:00:22 UTC riastradh-drm2 commitmail json YAML

Replace trivial spinlock by atomics in drm_getmagic.

(This whole drm_getmagic thing smells awfully fishy...)

(riastradh)

2013-07-24 02:00:07 UTC riastradh-drm2 commitmail json YAML

Hack up drm_agpsupport.c.

It's a miserable bastard hybrid of NetBSD's and Linux's AGP KPIs, but
it's good enough to make drm_agpsupport.o the first successfully
compiled file in this drm2 mess!

(riastradh)

2013-07-24 01:59:52 UTC riastradh-drm2 commitmail json YAML

Fill in drm_agp_netbsd.h a little.

There are some horrible but expedient hacks in here.  Sorry.

(riastradh)

2013-07-24 01:59:37 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:59:19 UTC riastradh-drm2 commitmail json YAML

Add INIT_LIST_HEAD, list_add, list_add_tail, and list_del.

(riastradh)

2013-07-24 01:59:05 UTC riastradh-drm2 commitmail json YAML

Add Linux-style kmalloc &c. to <linux/slab.h>.

Defined in terms of malloc(9) with M_TEMP for now, since Linux's
kfree doesn't pass the size, so using kmem(9) is inexpedient.

(riastradh)

2013-07-24 01:58:51 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:58:36 UTC riastradh-drm2 commitmail json YAML

Implement drm_can_sleep by always returning false.

Not quite correct, but all we have in the kernel is assert_sleepable,
no sleepable_p, and it's not obvious to me that asking whether it's
kosher to sleep is ever a sensible thing to do.

(riastradh)

2013-07-24 01:58:20 UTC riastradh-drm2 commitmail json YAML

Provisionally remove ati_pcigart.c from the drm2 module.

We'll need it later for ATI support, but for now it is in the way of
progress toward Intel support.

(riastradh)

2013-07-24 01:58:05 UTC riastradh-drm2 commitmail json YAML

Provisionally forward-declare struct pci_dev in drmP.h.

(riastradh)

2013-07-24 01:57:50 UTC riastradh-drm2 commitmail json YAML

Include <sys/errno.h> in <linux/errno.h>.

(riastradh)

2013-07-24 01:57:36 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:57:20 UTC riastradh-drm2 commitmail json YAML

Implement Linux's struct mutex less sleazily.

Can't recall why I did it sleazily in the first place.

(riastradh)

2013-07-24 01:57:06 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:56:48 UTC riastradh-drm2 commitmail json YAML

In linux_idr, move idr_temp access under the write lock.

The atomic swaps were missing memory barriers, but using the rwlock
is easier to understand for now.  This should probably use passive
serialization eventually anyway.

(riastradh)

2013-07-24 01:56:33 UTC riastradh-drm2 commitmail json YAML

Include "opt_multiprocessor.h" for MULTIPROCESSOR in <asm/barrier.h>.

(riastradh)

2013-07-24 01:56:19 UTC riastradh-drm2 commitmail json YAML

Rewrite <drm/drm_mem_util.h> in terms of kmem.

This requires passing the sizes to drm_free_large, which will require
some changes to the code that uses this abstraction, but they look
like they will be easy changes.

(riastradh)

2013-07-24 01:55:58 UTC riastradh-drm2 commitmail json YAML

Add some atomic operations to <linux/atomic.h>.

(riastradh)

2013-07-24 01:55:44 UTC riastradh-drm2 commitmail json YAML

Reimplement (partial) Linux list abstraction directly.

TAILQ_* won't work easily because Linux doesn't distinguish heads from
noses.

(riastradh)

2013-07-24 01:55:29 UTC riastradh-drm2 commitmail json YAML

Ifdef out a bunch of stuff in <drm/drmP.h>.

Some of it is for debugs/sysfs/procfs and not fit for NetBSD.
Some of it is to be revisited later and adapted to NetBSD.

(riastradh)

2013-07-24 01:55:14 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:54:57 UTC riastradh-drm2 commitmail json YAML

Implement Linux memory barriers in <asm/barrier.h>.

(riastradh)

2013-07-24 01:54:35 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:54:19 UTC riastradh-drm2 commitmail json YAML

Define cycles_t to be unsigned long long for now in <linux/types.h>.

(riastradh)

2013-07-24 01:54:04 UTC riastradh-drm2 commitmail json YAML

Implement a subset of Linux's struct timer_list with callouts.

(riastradh)

2013-07-24 01:53:40 UTC riastradh-drm2 commitmail json YAML

Little pseudo-fixes for untested bogus delayed_work implementation.

(riastradh)

2013-07-24 01:53:26 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:53:03 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:52:39 UTC riastradh-drm2 commitmail json YAML

Define struct i2c_adapter as a device_t wrapper in <linux/i2c.h>.

(riastradh)

2013-07-24 01:52:24 UTC riastradh-drm2 commitmail json YAML

Add callout-based delayed_work implementation to <linux/workqueue.h>.

(riastradh)

2013-07-24 01:52:08 UTC riastradh-drm2 commitmail json YAML

Include <sys/systm.h> in <linux/kernel.h> for offsetof.

(riastradh)

2013-07-24 01:51:53 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:51:36 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:51:21 UTC riastradh-drm2 commitmail json YAML

Fill <linux/mutex.h> with aliases for our mutex abstraction.

mutex_lock_interruptible isn't; this may require revisiting.

(riastradh)

2013-07-24 01:51:06 UTC riastradh-drm2 commitmail json YAML

Define resource_size_t to be bus_size_t in <linux/types.h>.

(riastradh)

2013-07-24 01:50:51 UTC riastradh-drm2 commitmail json YAML

Add u64, s8, s16, s32, and s64 to <linux/types.h>.

(riastradh)

2013-07-24 01:50:35 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:50:10 UTC riastradh-drm2 commitmail json YAML

Convert drmP.h to use drm_waitqueue_t instead of wait_queue_head_t.

(riastradh)

2013-07-24 01:49:50 UTC riastradh-drm2 commitmail json YAML

Remove Linuxoid definitions of __OS_HAS_{AGP,MTRR} from drmP.h.

(riastradh)

2013-07-24 01:49:31 UTC riastradh-drm2 commitmail json YAML

2013-07-24 01:49:08 UTC riastradh-drm2 commitmail json YAML

Remove now unused <drm/drm_os_linux.h> shim.

(riastradh)

2013-07-24 00:52:41 UTC riastradh-drm2 commitmail json YAML

Include <linux/atomic.h> and <linux/uidgid.h> in <drm/drmP.h>.

(riastradh)

2013-07-24 00:52:26 UTC riastradh-drm2 commitmail json YAML

2013-07-24 00:52:04 UTC riastradh-drm2 commitmail json YAML

Omit unused drm_mm_initialized, which uses list internals.

(riastradh)

2013-07-24 00:51:47 UTC riastradh-drm2 commitmail json YAML