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 (21m)  netbsd-8 (6d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 20:29:25 UTC Now

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

intel_lvds.c needs <linux/err.h> and <linux/notifier.h>.

(riastradh)

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

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

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

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

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

Add bogus x86-specific mmiowb to Linux <asm/io.h>.

(riastradh)

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

intel_dp.c needs <linux/err.h>, <linux/module.h>, and <linux/printk.h>.

(riastradh)

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

NetBSDify (bus_spaceify) i915_disable_vga.  (XXX Move elsewhere?)

(riastradh)

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

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

Avoid {0} struct initializer in intel_dp_init_connector.

(riastradh)

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

Avoid {0} struct initializer in ironlake_set_m_n in intel_display.c.

(riastradh)

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

Ifdef out Linux framebuffer stuff in i915 intel_display.c.

(riastradh)

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

i915 intel_display.c needs <linux/err.h> and Linux <asm/bug.h>.

(riastradh)

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

Add kludgey dev field to struct i2c_adapter for intel_dp.

(riastradh)

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

Add stubs for flush_workqueue and flush_scheduled_work that warn.

(riastradh)

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

Add EREMOTEIO as an alias for EIO to <linux/err.h>.

(riastradh)

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

Add min_t and DIV_ROUND_UP to <linux/kernel.h>.

(riastradh)

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

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

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

atomic_add_unless
atomic_clear_mask
atomic_inc_not_zero
atomic_set_mask
atomic_sub

(riastradh)

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

Define WARN_ONCE in Linux <asm/bug.h>.

(riastradh)

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

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

Make intel_prepare_ddi_buffers static in intel_ddi.c.

(riastradh)

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

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

Restore use of print_hex_dump in drm_edid.c.

(riastradh)

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

Fix #endif include-protection comment in <linux/printk.h>.

(riastradh)

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

Add hex dumping utilities to <linux/printk.h>.

(riastradh)

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

Hook drm_dp_helper.c back into drm2.kmod, now that we have i2c shims.

(riastradh)

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

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

Use __pci_rom_iomem marker in intel_parse_bios.

(riastradh)

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

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

Disable dmi hacks in i915/intel_bios.c for now.

(riastradh)

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

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

<linux/delay.h> needs <sys/kernel.h> for hz (in mstohz).

(riastradh)

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

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

Move GFP (`get free page') constants to <linux/gfp.h>.

Declare alloc_page and __free_page there too, to be implemented soon.

(riastradh)

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

Add struct page to <linux/mm_types.h> as a struct vm_page wrapper.

(riastradh)

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

Fill struct shrink_control with nr_to_scan in <linux/shrinker.h>.

i915_gem wants to use it.

(riastradh)

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

Fix pointer nature of INIT_COMPLETION in <linux/completion.h>.

(riastradh)

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

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

Add a bunch of i915 trace stubs to i915_trace.h.

(riastradh)

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

Replace ALIGN by round_up in i915_gem.c.

ALIGN means something else in NetBSD.

(riastradh)

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

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

<linux/string.h> needs <sys/null.h> for NULL.

(riastradh)

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

Fix up some bit-hacking and pointer-futzing in <linux/kernel.h>.

- Avoid C arithmetic pitfalls and multiple evaluatoin in round_up.
- Add round_down.
- Explain why upper_32_bits and lower_32_bits exist.
- Explain what container_of does.

(riastradh)

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

Use kmem for drm_sg_mem records in local drm_scatter.c.

(riastradh)

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

Hack up ACPI memory-mapped I/O for intel_opregion.c.

This is absolutely the wrong thing, but

. it will probably work for now,

. it is much more expedient than rewriting all this code with NetBSD
bus space access or drm maps, and

. the problem remains marked so that it is easily greppable.

(riastradh)

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

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

Expose the i915 struct drm_driver and PCI id list from i915_drv.c.

(riastradh)

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

Ifdef out Linux-specific stuff in i915_drv.c.

PCI driver attachment goop, VM hooks, power management operations,
file operations.  We'll do this all in another file for NetBSD.

Ifdef out the now-unused i915_modeset parameter for now, too.

(riastradh)

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

Prefix `error: '/`warning: ' to Linux dev_err/dev_warn output.

(riastradh)

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

Print a warning if the drm(4) unit number is >=64.

(riastradh)

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

Add trace_i915_gem_object_create to i915_trace.h.

(riastradh)

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

Use an intermediate call in WARN* to avoid GCC compiler warnings.

For some reason this shuts it up about statements without effect.

(riastradh)

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

Fix Linux mutex_lock_interruptible to return an error.

(riastradh)

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

Use %d, not %s, for the error number in i915_module.c.

(riastradh)

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

Hook i915_module.c into the i915drm2 module build.

(riastradh)

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

Restore usage of pci_get_bus_and_slot in i915_get_bridge_dev.

(riastradh)

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

Kludge up Linux PCI device shims.

. New drm_pci_attach/drm_pci_detach simplify initialization of
autoconf-derived struct pci_dev.

. New linux_pci_dev_init initializes struct pci_dev so that there's
one place where all its fields are listed.  The kludge parameter is,
well, kludgey.  Sorry.

. Replace pci_kludgey_find_dev by pci_get_bus_and_slot with the same
interface as Linux's, but some kasserts requiring it to look for the
one bus/device/function tuple that i915drm is interested in.

. Add pci_get_class which does similarly, for intel_detect_pch.

Later pci_get_bus_and_slot and pci_get_class should be fixed once we
can pass a cookie through PCI bus enumeration and pci_find_device.

(riastradh)

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

Constify string irqname in drm_irq_install.

(riastradh)

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

Constify name, desc, and date strings in struct drm_driver.

(riastradh)

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

Add trace_i915_reg_rw to i915_trace.h.

(riastradh)

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

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

Reject drm ioctls through control minors unless explicitly allowed.

(riastradh)

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

Rework drm minor allocation in local drm_drv.c.

Need multiple different minors, of different types, for each drm
device.

(riastradh)

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

Compare dev->agp and dev->sg against NULL in drm_fops.c.

(riastradh)

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

Don't mess with guts of struct completion in i915_gem.c.

(riastradh)

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

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

Use time_t, not unsigned long, for i915 last_gpu_reset.

(riastradh)

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

Omit more stuff that pmf does for us in i915_drv.c.

(riastradh)

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

Omit Linux framebuffer stuff from i915_drv.c.

(riastradh)

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

Use pci_dev_dev to get at a pci_dev's device_t in i915_drm_freeze.

(riastradh)

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

Omit needless pci_save_state from i915_drm_freeze, courtesy pmf.

(riastradh)

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

Add pci_{read,write}_config_byte to <linux/pci.h>.

(riastradh)

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

Need more zeros for struct pci_device_id initializer in i915_drv.c.

(riastradh)

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

i915_drv.c needs <linux/moduleparam.h> and <linux/time.h>.

(riastradh)

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

Kludgily work around flush_workqueue in i915_driver_unload.

(riastradh)

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

Use drm_io_mapping_create_wc in i915_driver_load.

(riastradh)

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

Add <linux/time.h> with get_seconds, hacked to return time_t.

(riastradh)

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

Fix struct pci_dev::dev in <linux/pci.h>.

Linux code expects it to be a struct device and takes its address,
but we can't arrange for the actual struct device to go there.

(riastradh)

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

Add drm_io_mapping_create_wc to drmP.h.

Linux's io_mapping_create_wc just takes a bus address and a size, but
we need to pass along extra information, namely the bus space tag,
which we shall pass via a struct drm_device.

(riastradh)

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

Fill <linux/io-mapping.h> with an io_mapping abstraction.

Mapped to bus space reservations.  This might not be appropriate --
non-x86 platforms don't have them yet, and I'm not 100% confident
that Linux uses io_mappings for regions exclusively like bus space
reservations will require, but if that requirement is violated then
at least it will fail noisily, whether because of a bug or because
Linux io_mappings work differently.

(riastradh)

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

Add dev_err to <linux/device.h> as another device_printf alias.

(riastradh)

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

Comment that CPPFLAGS+=-DFOO in drm2/Makefile.inc is wrong.

Fixing this requires some thought, which would be inexpedient at the
moment.

(riastradh)

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

Define CONFIG_X86 in the drm2 modules on x86.

(riastradh)

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

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

Work around rb_tree_iterate API botch in linux_idr.c.

(riastradh)

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

Tweak idr_pre_get.

. No need to test kmem_alloc(n, KM_SLEEP) for NULL.
. Avoid kmem_free with lock held, out of paranoia.

(riastradh)

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

Rework <linux/completion.h> to match Linux semantics.

(riastradh)

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

Restore struct intel_gmbus::bit_algo now that we have Linux i2c shims.

(riastradh)

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

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

Add currently empty i915_trace.h to appease i915 code.

(riastradh)

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

Add drm2edid to the commented list of what i915drm2 should depend on.

(riastradh)

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

Make drm2 module depend on iic, and comment on wrong dependencies.

(riastradh)

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

Remove comment about cargo-cult provenance of drm_memory.c.

Only drm_ioremap was cargo-culted from the old drm's drm_memory.c,
and that's a bit of a strong word for it by now.

(riastradh)

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

Use cpp to prefix linux_ to all the idr names.

Now all global symbols drm2.kmod defines begin with linux_ or drm_,
making it easier to check whether I've missed anything by running

  nm --undefined-only drm2.kmod | awk '$3 ~ /^(drm|linux)_/'

(riastradh)

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

`#define list_sort linux_list_sort' so `nm | grep linux' finds it.

(riastradh)

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

Restore ddc probing in drm_edid.c now that we have Linux i2c shims.

Also include <linux/string.h> for memchr_inv.

(riastradh)

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

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

Replace dma_set_coherent_mask by drm_limit_dma_space in i915_dma.c.

(riastradh)

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

Add drm_limit_dma_space to limit the memory available for DMA.

Designed as a compatibility stub to replace dma_set_coherent_mask in
Linux.  Not exactly the same, but probably close enough for all uses
of dma_set_coherent_mask in Linux.

(riastradh)

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

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

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

intel_drv.h needs <asm/processor.h> for cpu_relax.

(riastradh)

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

drm_bufs.c doesn't need <asm/mtrr.h> after all (drmP.h gets it).

(riastradh)

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

Define CONFIG_MTRR in drm2 modules on x86.

XXX We really need a better place for this stuff...

(riastradh)

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

Add 16-bit (RMW) pci_{read,write}_config_word to <linux/pci.h>.

(riastradh)

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

Add Linux <asm/processor.h> with cpu_relax() (= DELAY(1), for now).

(riastradh)

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

Ifdef out some Linux framebuffer stuff in i915.

(riastradh)

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

Use `static inline', not `extern inline', in i915_drv.h.

(riastradh)

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

Ifdef out i915_gem_object_get_page and i915_gem_fault in i915_drv.h.

Will restore when we have GEM VM stuff worked out.

(riastradh)

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

Unhook i915_debugfs.c and i915_sysfs.c from the build.

(riastradh)

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

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

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

i915_drv.h needs <linux/completion.h> and <linux/shrinker.h>.

(riastradh)

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

Add DRM_WAITERS_P and DRM_SPIN_WAITERS_P to drm_wait_netbsd.h.

(riastradh)

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

Add stub <linux/shrinker.h>.

Abstraction for the system to request that caches be shrunk.
Currently does nothing.

(riastradh)

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

Add <linux/completion.h>.

A completion is a synchronized waitable `done' flag.  Trivial
condvar/mutex/bool.

(riastradh)

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

Convert i915_driver_load to linux_mutex_init, and destory in unload.

(riastradh)

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

Convert i915_get_bridge_dev to use pci_kludgey_find_dev.

(riastradh)

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

Convert capable(CAP_SYS_ADMIN) to DRM_SUSER() in i915_getparam.

(riastradh)

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

Use dev->irq_enabled, not dev->pdev->irq, in i915_getparam.

The drm irq establishment code maintains dev->irq_enabled, and this
way we need not maintain it separately in the pci layer.

(riastradh)

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

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

Add bool virtual_start_mapped to struct intel_ring_buffer.

The nullable pointer virtual_start was replaced by a struct
drm_local_map, which can't be null (well, perhaps we could abuse one
of the fields in it for that purpose, but this is cleaner), so
virtual_start_mapped will be maintained in the place of the
possibility of a null virtual_start to indicate whether the mapping
is present.

(riastradh)

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

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

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

Ifdef out Linux framebuffer stuff from i915_dma.c.

(riastradh)

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

Add a default (panic) case to DRM_IS_BUS_SPACE_P in drmP.h.

(riastradh)

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

Add pci_set_master to <linux/pci.h>.

(riastradh)

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

Add kludgey non-delayed work to <linux/workqueue.h>.

(riastradh)

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

Add THIS_MODULE (expanding to 0) to <linux/module.h>.

(riastradh)

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

Add upper_32_bits and lower_32_bits to <linux/kernel.h>.

(riastradh)

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

Add some conversion and comparison stuff to <linux/jiffies.h>.

(riastradh)

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

Implement udelay (DELAY) and msleep (kpause) in <linux/delay.h>.

(riastradh)

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

Make Linux WARN_* macros expand to expressions, not statements.

These are to return the value of the condition.

(riastradh)

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

Add some consts to i915/dvo_ch7xxx.c for string literals.

(riastradh)

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

Fix sense of refcount decrement conditional in drm_iounmap.

Add some kasserts just in case.

(riastradh)

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

Add stubs for pci_enable_msi and pci_disable_msi to <linux/pci.h>.

(riastradh)

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

Add field to struct pci_dev for the PCI device number.

(riastradh)

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

Add pci_kludgey_find_dev to <linux/pci.h>.

This is not a Linux KPI, but the Linux KPI (pci_get_bus_and_slot)
doesn't pass along the original pci device or bus, so this is what
we'll use to replace uses of it (or, the one use of it) without
changing much code.

(riastradh)

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

Add __always_unused and round_up to <linux/kernel.h>.

(riastradh)

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

Add pci_bus_alloc_resource to <linux/pci.h>.

(riastradh)

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

Add <linux/ioport.h> with struct resource: keeps bus_space_alloc books.

(riastradh)

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

Add pci_config_{read,write}_dword to <linux/pci.h>.

(riastradh)

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

Ifdef out field bit_algo of struct intel_gmbus.

XXX Revisit this with the rest of i2c cruft...

(riastradh)

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

Fill in <linux/acpi_io.h> with acpi_os_ioremap (= AcpiOsMapMemory).

Define __acpi_iomem as an empty frotz to replace the Linux __iomem
attribute selectively and greppably.  AcpiOsMapMemory returns usable
kernel virtual addresses, so we don't need to use bus_space_mumble or
anything to dereference them.

(riastradh)

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

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

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

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

Ifdef out Linux intel_ips kludge in intel_pm.c.

(riastradh)

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

Hook drm_edid.c back into the drm2 module build.

drm2.kmod now has no more undefined drm_* symbols!

(riastradh)

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

Fix const in drm_match_cea_mode in drm_edid.c.

(riastradh)

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

Avoid shadowing global edid_vendor in drm_edid.c.

(riastradh)

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

drm_edid.c needs <linux/device.h> for dev_warn.

(riastradh)

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

Add dev_warn (= device_printf, for now) to <linux/device.h>.

(riastradh)

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

Ifdef out Linux i2c stuff in drm_edid.c, to be rewritten.

(riastradh)

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

Clumsily avoid Linux print_hex_dump in drm_edid.c.

(riastradh)

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

drm_edid.c needs to include some more header files.

(riastradh)

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

Add Linux <asm/byteorder.h> with cpu_to_le16 &c.

(riastradh)

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

Define uninitialized_var in <linux/kernel.h>.

(riastradh)

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

Fix #endif comment in Linux <asm/bug.h>.

(riastradh)

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

Add linux_list_sort.c implementing list_sort.

Algorithm is merge sort using binary counting in a temporary array of
64 elements on the stack, big enough for any list that'll fit into
memory in a 64-bit address space, but small enough to fit comfortably
on the stack.

(riastradh)

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

Hook drm_modes.c back into the drm2 module build.

(riastradh)

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

Ifdef out Linux framebuffer commandline parsing in drm_modes.c.

(riastradh)

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

Ifdef out apparently unused drm_mode_validate_clocks in drm_modes.c.

(riastradh)

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

Define PICOS2KHZ and KHZ2PICOS in <linux/fb.h>.

(riastradh)

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

Include just <sys/types.h>, not <sys/systm.h>, in <linux/kernel.h>.

(riastradh)

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

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

Hook drm_gem.c back into the build.

(riastradh)

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

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

Ifdef out the Linux-style vm routines in drm_gem.c.

(riastradh)

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

Manage the relevant uvm objects in gem object creation/destruction.

(riastradh)

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

Destroy the idr and spin lock in drm_gem_destroy.

(riastradh)

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

Adjust fields of struct drm_gem_object for uvm.

Add a struct uvm_object pointer gemo_uao for an anonymous object to
back shared memory, and a struct uvm_object gemo_uvmobj for custom
device page mapping.

In struct drm_driver, replace the Linux VM operations gem_vm_ops by
NetBSD UVM operations gem_uvm_ops, so that the compiler will catch
any extant references to the Linux structure that will need changing.

(riastradh)

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

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

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

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

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

Use e_vm_default_addr to choose a default address in Linux vm_mmap.

(riastradh)

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

Use bus_addr_t, not bus_size_t, for resource_size_t; add phys_addr_t.

(riastradh)

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

Tag the spinlock struct in <linux/spinlock.h>.

(riastradh)

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

Define barrier() as __insn_barrier() in <linux/kernel.h>.

(riastradh)

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

Add stub definition of __must_check to <linux/kernel.h>.

(riastradh)

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

Make container_of type-safe with the help of a judicious sizeof.

Still avoids multiple evaluation of the pointer operand expression.

(riastradh)

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

Insert a strategic cast into agp_find_bridge.

(riastradh)

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

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

Add an i915drm device stub to files.drm2, attaching at pci.

(riastradh)

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

Hook local drm_scatter.c into the build.

(riastradh)

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

Add XXX comment to obviously broken error branch in drm_addmap_core.

(riastradh)

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

Omit __drm_pci_free.  Use kmem for drm_dma_handles now that we can.

(riastradh)

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

For _DRM_CONSISTENT maps, hang the dmah on the drm_local_map.

The way the Linux code does it is a bookkeeping kludge that falls
down when we want to maintain more than just the PCI bus address, as
drm mmap will want in order to avoid vtophys.

(riastradh)

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

Update drm_memory.c to reflect drm_local_map tagged union changes.

(riastradh)

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

Add operations to drmP.h for access to drm_local_map memory or I/O.

(riastradh)

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

Replace extra data in struct drm_local_map by a union.

This is a tagged union; only certain variants, specified by the map's
type, need a bus space handle and a drm bus map.  They will also need
a bus space tag later.  Other variants use other data, with more to
be added in the future, probably.

(riastradh)

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

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

Ifdef out calls to drm_sysfs_connector_remove in drm_crtc.c.

Revisit later, perhaps.

(riastradh)

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

Ifdef out call to drm_sysfs_hotplug_event in drm_crtc_helper.c.

(riastradh)

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

Add agp bridge data argument to drm_*_agp in local drm_fops.c.

(riastradh)

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

Add agp bridge data argument to drm_*_agp in drm_agpsupport.c.

(riastradh)

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

Add drm_bind_agp, drm_unbind_agp, & drm_free_agp to drm_agp_netbsd.h.

These have an extra argument for the agp bridge descriptor, as
NetBSD's AGP KPI requires.

Omit declarations of drm_bind_agp, drm_unbind_agp, and drm_free_agp
from drmP.h, now that these are all declared (and defined) in
drm_agp_netbsd.h instead.

(riastradh)

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

Ctassert that AGP_PAGE_SIZE == PAGE_SIZE in drm_agp_netbsd.h.

Linux assumes this.

(riastradh)