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 (30m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 23:08:34 UTC Now

2018-08-27 14:47:53 UTC MAIN commitmail json YAML

Allow nvkm_client_map to map subregions.

Linux ioremap does not care about overlapping mapped regions, but
bus_space_map does.  Since nouveau ioremaps the entire register space
of BAR 0, and separately some subregions of it, we need to convey the
bus addresses in question to it in order to bus_space_subregion.

Kinda kludgey, but we don't care about running this in userland or
anything.

While here: initialize object->map.tag.  Not physically necessary on
x86 as long as the x86_io_mem_tag is nonull, so this won't fix any
symptoms on x86, but it is wrong to leave it null.

(riastradh)

2018-08-27 14:47:29 UTC MAIN commitmail json YAML

Let's not truncate registers to 8-bit when we read them, shall we?

(riastradh)

2018-08-27 14:47:16 UTC MAIN commitmail json YAML

Use bus_space now that we have the tag and handle.

Fix possible byte order issue while here.

(riastradh)

2018-08-27 14:47:02 UTC MAIN commitmail json YAML

Work around ioctl ABI mistake in i915 drm.

A flags argument was added to the I915_GEM_MMAP ioctl.  The version
of xf86-video-intel we imported was compiled to use the new ioctl
structure including the flags argument, but without initializing the
flags argument, so it would be userland stack garbage causing
i915_gem_mmap_ioctl to fail.

Newer xf86-video-intel will query the mmap version first before
trying to use either the older ioctl structure, with the original
shorter argument and thus no stack garbage (which will be padded with
to the full length in the kernel by drm_ioctl), or the newer ioctl
structure, with the argument initialized.

libdrm does not appear to be affected by this -- it zeroes the longer
structure before passing it in.

Patch from mrg@, diagnosis and explanation by me.

(riastradh)

2018-08-27 14:46:38 UTC MAIN commitmail json YAML

Fix order of arguments to kcopy.  @#&!$!*#

Add const qualifiers to src to compiler will detect this.

(riastradh)

2018-08-27 14:46:23 UTC MAIN commitmail json YAML

Give find_first/next_set/zero_bit a chance to work.

Self-review comments on the draft thrown together in a hurry two
weeks ago:

- I bet I screwed up for_each_set_bit or something.
- There might be several bits wrong in this __find_next_bit routine!
- for_each_set_bit is busted.
- Maybe I should test this stuff before I commit it.
- Hey, cool, buffer overflow here.
- What was I thinking.
- how did this even
- Was I drunk?  I'm never drunk.
- I don't even drink.
- It wasn't even that late at night...

(riastradh)

2018-08-27 14:46:10 UTC MAIN commitmail json YAML

Use kcopy, not memcpy, in case of failure to page in dst.  From chs@.

(riastradh)

2018-08-27 14:45:57 UTC MAIN commitmail json YAML

Forgot again to restore reference consumed by uvm_map.

Add missing errno comment while here.

(riastradh)

2018-08-27 14:45:46 UTC MAIN commitmail json YAML

Zero-pad truncated drm ioctl commands on input.

This way we don't act on uninitialized stack garbage if user invokes
a drm ioctl with a short input, which, uhhh, we have been doing for a
long time.  #@^&*$!@&@#*@!

XXX pullup-7
XXX pullup-8

(riastradh)

2018-08-27 14:45:31 UTC MAIN commitmail json YAML

For reasons beyond me, map does size/offset but unmap does start/end.

(riastradh)

2018-08-27 14:45:11 UTC MAIN commitmail json YAML

Narrow scope of locks in i915 error checks to reduce deadlocks.

Not really sure why I had put some of these locks here...

(riastradh)

2018-08-27 14:44:46 UTC MAIN commitmail json YAML

Need irq_lock to wait on irq_queue.  From mrg@.

(riastradh)

2018-08-27 14:44:30 UTC MAIN commitmail json YAML

Use uvm_map directly and make sure we unmap correct length.

(riastradh)

2018-08-27 14:44:16 UTC MAIN commitmail json YAML

Fix mapping of non-page-aligned stuff in vmap_batch.

(riastradh)

2018-08-27 14:44:04 UTC MAIN commitmail json YAML

2018-08-27 14:43:48 UTC MAIN commitmail json YAML

2018-08-27 14:43:32 UTC MAIN commitmail json YAML

Caller must also hold vblank_time_lock here.

(riastradh)

2018-08-27 14:43:15 UTC MAIN commitmail json YAML

Fix scope of locks in drm_handle_vblank.

(riastradh)

2018-08-27 14:43:00 UTC MAIN commitmail json YAML

Fix intel pipe update locking and whining.

(riastradh)

2018-08-27 14:42:43 UTC MAIN commitmail json YAML

Rework vblank locking.  New drm_vblank_get/put_locked subroutines.

(riastradh)

2018-08-27 14:42:23 UTC MAIN commitmail json YAML

2018-08-27 14:42:07 UTC MAIN commitmail json YAML

Fix locking in amd_sched_wakeup and amd_sched_entity_in.

(riastradh)

2018-08-27 14:41:53 UTC MAIN commitmail json YAML

kfifo is used under a spin lock, so its lock must be a spin lock.

From mrg@.

(riastradh)

2018-08-27 14:41:41 UTC MAIN commitmail json YAML

Make mutex destruction match initialization.

From mrg@.

(riastradh)

2018-08-27 14:41:27 UTC MAIN commitmail json YAML

At mrg@'s suggestion, make amdgpu win over radeon.

(riastradh)

2018-08-27 14:41:10 UTC MAIN commitmail json YAML

2018-08-27 14:40:56 UTC MAIN commitmail json YAML

Linux vfree accepts NULL as noop.  Match semantics.

From mrg@.

(riastradh)

2018-08-27 14:40:44 UTC MAIN commitmail json YAML

KASSERT -> KASSERTMSG, to help debug panic observed by mrg@.

(riastradh)

2018-08-27 14:40:30 UTC MAIN commitmail json YAML

Call drm_modeset_lock_fini in drm_plane_cleanup.

From mrg@.

(riastradh)

2018-08-27 14:40:13 UTC MAIN commitmail json YAML

Linux fence_put accepts NULL as noop.  Match this.

From mrg@.

(riastradh)

2018-08-27 14:39:59 UTC MAIN commitmail json YAML

Call ww_mutex_destroy in drm_modeset_lock_fini.

From mrg@.

(riastradh)

2018-08-27 14:39:46 UTC MAIN commitmail json YAML

Initialize connector->kdev, which amdgpu uses.

(riastradh)

2018-08-27 14:39:20 UTC MAIN commitmail json YAML

2018-08-27 14:38:20 UTC MAIN commitmail json YAML

2018-08-27 14:24:03 UTC MAIN commitmail json YAML

2018-08-27 14:23:31 UTC MAIN commitmail json YAML

Disable PCIe stuff until I can figure out what it does.

(riastradh)

2018-08-27 14:23:14 UTC MAIN commitmail json YAML

Just disable -Wshadow and -Wmissing-field-initializers for all amdgpu.

(riastradh)

2018-08-27 14:23:00 UTC MAIN commitmail json YAML

Options are lowercase in config conditions.

(riastradh)

2018-08-27 14:22:47 UTC MAIN commitmail json YAML

Update amdgpu2netbsd.  Make idempotent.

(riastradh)

2018-08-27 14:22:31 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/amdgpu/files.amdgpu@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu.h@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ci_dpm.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ci_smc.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cik.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cik_ih.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cik_sdma.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dce_v8_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gfx_v7_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_kv_dpm.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_kv_smc.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd_v4_2.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_vce_v2_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ci_dpm.c deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ci_smc.c deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/cik.c deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/cik_ih.c deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/cik_sdma.c deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/dce_v8_0.c deleted
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/gfx_v7_0.c deleted
      :
(more 4 files)
New option AMDGPU_CIK for devices covered by radeon and amdgpu.

(riastradh)

2018-08-27 14:20:41 UTC MAIN commitmail json YAML

2018-08-27 14:20:26 UTC MAIN commitmail json YAML

Notify radeon_fence_default_wait on fence signal.

(riastradh)

2018-08-27 14:20:11 UTC MAIN commitmail json YAML

Make sure all of struct drm_file gets initialized.

(riastradh)

2018-08-27 14:19:59 UTC MAIN commitmail json YAML

Treat pre-enabled devices as 1 enablecnt.

(riastradh)

2018-08-27 14:19:47 UTC MAIN commitmail json YAML

For now, unconditionally set nouveau verbosity to debug.

(riastradh)

2018-08-27 14:19:26 UTC MAIN commitmail json YAML

Paranoia: let dev be null, in match routines.

(riastradh)

2018-08-27 14:19:09 UTC MAIN commitmail json YAML

Reduce diff a little.

This code was already #ifndef __NetBSD__; the corresponding logic
lives in nouveau_module.c.

(riastradh)

2018-08-27 14:18:54 UTC MAIN commitmail json YAML

Clarify nvkm_device_pci_create arguments.  Use bogus parent for match prints.

(riastradh)

2018-08-27 14:18:43 UTC MAIN commitmail json YAML

2018-08-27 14:18:30 UTC MAIN commitmail json YAML

2018-08-27 14:18:18 UTC MAIN commitmail json YAML

2018-08-27 14:18:04 UTC MAIN commitmail json YAML

2018-08-27 14:17:50 UTC MAIN commitmail json YAML

2018-08-27 14:17:36 UTC MAIN commitmail json YAML

Device hangs on pci disable in match; try skipping enable/disable.

(riastradh)

2018-08-27 14:17:21 UTC MAIN commitmail json YAML

Hook up the nouveau pci driver so it does anything.

(riastradh)

2018-08-27 14:17:05 UTC MAIN commitmail json YAML

Zero the whole thing for good measure.

(riastradh)

2018-08-27 14:16:52 UTC MAIN commitmail json YAML

Make sure the resources are marked unmapped initially.

(riastradh)

2018-08-27 14:16:39 UTC MAIN commitmail json YAML

Move the Linux PCI shim into its very own .c file.

The poor thing has deserved this for a very long time, even though it
is full of kludges.  Also I'm tired of recompiling everything every
time I touch it.

(riastradh)

2018-08-27 14:16:17 UTC MAIN commitmail json YAML

2018-08-27 14:16:04 UTC MAIN commitmail json YAML

Fix sense of test to make linux_pci_dev_destroy work.

(riastradh)

2018-08-27 14:15:46 UTC MAIN commitmail json YAML

2018-08-27 14:15:35 UTC MAIN commitmail json YAML

Initialize more of struct pci_device.

(riastradh)

2018-08-27 14:15:24 UTC MAIN commitmail json YAML

Sync drm_close_file: call drm_property_release_user_blobs.

(riastradh)

2018-08-27 14:15:13 UTC MAIN commitmail json YAML

Release the magic before releasing the master.

Releasing the master frees the idr into which we are trying to
release the magic.  Use of magic that has been freed sounds like a
dangerous proposition.

(riastradh)

2018-08-27 14:14:54 UTC MAIN commitmail json YAML

Make gc static.  No need to use this private state elsewhere.

(riastradh)

2018-08-27 14:14:42 UTC MAIN commitmail json YAML

Draft rewrite of idr preload.

Previous idr code assumed every caller would definitely call
idr_preload, idr_alloc, idr_preload_end, but some callers skip
idr_alloc if an intermediate failure happens first, and would
therefore leak idr nodes.

Use a per-lwp single-node cache instead, and print warnings about
leakers.

(riastradh)

2018-08-27 14:14:29 UTC MAIN commitmail json YAML

2018-08-27 14:14:13 UTC MAIN commitmail json YAML

Clarify with comments and assertions.

(riastradh)

2018-08-27 14:13:46 UTC MAIN commitmail json YAML

There may not be an old list.

Nihil ex nihilo -- don't dereference null.

(riastradh)

2018-08-27 14:13:29 UTC MAIN commitmail json YAML

amdgpu.kmod depends on drmkms.kmod, not on amdgpu.kmod.

(riastradh)

2018-08-27 14:13:16 UTC MAIN commitmail json YAML

Lotsa kasserts about referencedness of frences.

(riastradh)

2018-08-27 14:13:00 UTC MAIN commitmail json YAML

Acquire references in add_shared/excl.

(riastradh)

2018-08-27 14:12:44 UTC MAIN commitmail json YAML

Call linux_pci_dev_init/destroy in viadrmums(4) too.

(riastradh)

2018-08-27 14:12:30 UTC MAIN commitmail json YAML

Let upstream code attempt match for nouveau.

(riastradh)

2018-08-27 14:12:14 UTC MAIN commitmail json YAML

2018-08-27 14:12:00 UTC MAIN commitmail json YAML

Implement linux_pci_dev_destroy.

(riastradh)

2018-08-27 14:11:47 UTC MAIN commitmail json YAML

2018-08-27 14:11:22 UTC MAIN commitmail json YAML

2018-08-27 14:11:04 UTC MAIN commitmail json YAML

Locks are not like negatives: doubles don't cancel out.

(riastradh)

2018-08-27 14:10:54 UTC MAIN commitmail json YAML

Disable broken workqueue_whoami garbage.

(riastradh)

2018-08-27 14:10:42 UTC MAIN commitmail json YAML

2018-08-27 14:10:14 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/amdgpu/files.amdgpu@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atom.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_crtc.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_dp.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_encoders.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_i2c.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_dpm.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_ih.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_smc.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dce_v10_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dce_v11_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fiji_dpm.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fiji_smc.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gfx_v8_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v7_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v8_0.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_iceland_dpm.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_iceland_ih.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_iceland_smc.c@1.1 / diff / nxr@1.1
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_sdma_v2_4.c@1.1 / diff / nxr@1.1
      :
(more 39 files)
Rename amdgpu files to avoid clashes with radeon.

(riastradh)

2018-08-27 14:05:40 UTC MAIN commitmail json YAML

2018-08-27 14:05:27 UTC MAIN commitmail json YAML

Note radeon/amdgpu file collisions TODO in README.

(riastradh)

2018-08-27 14:04:50 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_acpi.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_benchmark.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_bios.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_bo_list.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cgs.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cs.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ctx.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_display.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dpm.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_drv.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fence.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gem.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gfx.c@1.3 / diff / nxr@1.3
      :
(more 47 files)
Tired of fine-grained commits.  Have an amdgpu(4).

(riastradh)

2018-08-27 14:03:38 UTC MAIN commitmail json YAML

2018-08-27 14:03:24 UTC MAIN commitmail json YAML

2018-08-27 14:03:10 UTC MAIN commitmail json YAML

2018-08-27 14:02:52 UTC MAIN commitmail json YAML

2018-08-27 14:02:32 UTC MAIN commitmail json YAML

2018-08-27 14:01:32 UTC MAIN commitmail json YAML

Empty stub <linux/irq.h>.

Not sure why upstream uses it -- the file in Linux exhorts against
its usage in any MI code.

(riastradh)

2018-08-27 14:01:15 UTC MAIN commitmail json YAML

2018-08-27 14:01:01 UTC MAIN commitmail json YAML

2018-08-27 14:00:46 UTC MAIN commitmail json YAML

Fix prototype of function in comment.

(riastradh)

2018-08-27 14:00:26 UTC MAIN commitmail json YAML

Rewrite <linux/kfifo.h>.

pcq isn't flexible enough for its needs now.  Just use a spinlocked
circular buffer.

(riastradh)

2018-08-27 13:58:16 UTC MAIN commitmail json YAML

2018-08-27 13:58:04 UTC MAIN commitmail json YAML

Note need_mmap_used is __diagused, not __unused.

(riastradh)

2018-08-27 13:57:50 UTC MAIN commitmail json YAML

2018-08-27 13:57:38 UTC MAIN commitmail json YAML

Need <sys/kernel.h> for boottime.

(riastradh)

2018-08-27 13:57:24 UTC MAIN commitmail json YAML

2018-08-27 13:57:11 UTC MAIN commitmail json YAML

Add a copy of __user (empty) to <linux/types.h> for expedience.

(riastradh)

2018-08-27 13:56:58 UTC MAIN commitmail json YAML

2018-08-27 13:56:46 UTC MAIN commitmail json YAML

Make sure to call pslist_entry_init.

(riastradh)

2018-08-27 13:56:34 UTC MAIN commitmail json YAML

Fence release callback may be absent; default to fence_free.

(riastradh)

2018-08-27 13:56:22 UTC MAIN commitmail json YAML

Fix ordering of bus_dmamap_sync.

The ordering is:

...
- driver writes to kernel pointer
- sync
- driver triggers device use of newly written data (*)
- sync
- driver writes to kernel pointer
- sync
...

The operation (*) is a DMA write.  Hence the syncs should be:

...
- driver writes to kernel pointer
- bus_dmamap_sync(BUS_DMASYNC_PREWRITE)
- driver triggers device use of newly written data
- bus_dmamap_sync(BUS_DMASYNC_POSTWRITE)
- bus_dmamap_sync(BUS_DMASYNC_PREWRITE)
- driver writes to kernel pointer
- bus_dmamap_sync(BUS_DMASYNC_POSTWRITE)
- bus_dmamap_sync(BUS_DMASYNC_PREWRITE)
...

(riastradh)

2018-08-27 13:56:09 UTC MAIN commitmail json YAML

GART might not be mapped with bus_dma.

Still need membar and tlb flush in that case.

(riastradh)

2018-08-27 13:55:59 UTC MAIN commitmail json YAML

get pd_rom_bst and pd_rom_found_bsh _after_ pci_map_rom

fixes early attach panic.

Author: coypu <coypu@sdf.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2018-08-27 13:55:46 UTC MAIN commitmail json YAML

2018-08-27 13:55:35 UTC MAIN commitmail json YAML

Make drmkms_pci.kmod build again.

(riastradh)

2018-08-27 13:55:24 UTC MAIN commitmail json YAML

2018-08-27 13:55:12 UTC MAIN commitmail json YAML

2018-08-27 13:54:59 UTC MAIN commitmail json YAML

2018-08-27 13:54:48 UTC MAIN commitmail json YAML

2018-08-27 13:54:37 UTC MAIN commitmail json YAML

Move hweight8 next to its cousins.

(riastradh)

2018-08-27 13:54:25 UTC MAIN commitmail json YAML

Make i915drmkms.kmod build again.

(riastradh)

2018-08-27 13:54:15 UTC MAIN commitmail json YAML

Put override directory first in CPPFLAGS.

(riastradh)

2018-08-27 13:54:05 UTC MAIN commitmail json YAML

Move CPPFLAGS to top, CWARNFLAGS below.

(riastradh)

2018-08-27 13:53:52 UTC MAIN commitmail json YAML

Omit commented warn flag, evidently needless.

(riastradh)

2018-08-27 13:53:42 UTC MAIN commitmail json YAML

2018-08-27 13:53:32 UTC MAIN commitmail json YAML

Define CONFIG_DRM_FBDEV_EMULATION=1 in generic drmkms code.

This was accidentally pulled in by i915drmkms, but we need it
generically or else we need to patch upstream differently.

(riastradh)

2018-08-27 13:53:20 UTC MAIN commitmail json YAML

Sort.  Put CWARNFLAGS next to source lists.

(riastradh)

2018-08-27 13:53:09 UTC MAIN commitmail json YAML

Guard #include "pci.h" with _KERNEL_OPT.

(riastradh)

2018-08-27 13:52:58 UTC MAIN commitmail json YAML

Add some components to drmkms_linux.kmod.

(riastradh)

2018-08-27 13:52:47 UTC MAIN commitmail json YAML

2018-08-27 13:45:20 UTC MAIN commitmail json YAML

2018-08-27 13:45:08 UTC MAIN commitmail json YAML

2018-08-27 13:44:54 UTC MAIN commitmail json YAML

2018-08-27 13:44:41 UTC MAIN commitmail json YAML

Insert membars needed for non-x86.

XXX We should really define membar_enter_postatomic and
membar_exit_preatomic to avoid relying on not typoing
__HAVE_ATOMIC_AS_MEMBAR.

(riastradh)

2018-08-27 13:44:29 UTC MAIN commitmail json YAML

With <asm/cpufeature.h>, we can now use cpu_has_pat.

(riastradh)

2018-08-27 13:44:16 UTC MAIN commitmail json YAML

2018-08-27 13:44:04 UTC MAIN commitmail json YAML

Make this a proper boolean.  Skip ISSET.  Add some spacing.

(riastradh)

2018-08-27 13:43:52 UTC MAIN commitmail json YAML

2018-08-27 13:43:39 UTC MAIN commitmail json YAML

2018-08-27 13:43:23 UTC MAIN commitmail json YAML

Move hint setting nearer to uvm_map for clarity.  CTASSERT page size.

Elsewhere this code says 4096, rather than PAGE_SIZE.  PAGE_SIZE is
the smallest unit that uvm_map accepts, so it had better match.

(riastradh)

2018-08-27 13:43:12 UTC MAIN commitmail json YAML

Initialize kva hint for uvm_map to avoid using uninitialized memory.

(riastradh)

2018-08-27 13:43:05 UTC MAIN commitmail json YAML

Update usage() to include documented flags

(sevan)

2018-08-27 13:43:01 UTC MAIN commitmail json YAML

Remove temporary diagnostic now that I know I forgot uio_offset.

(riastradh)

2018-08-27 13:42:47 UTC MAIN commitmail json YAML

2018-08-27 13:42:36 UTC MAIN commitmail json YAML

2018-08-27 13:42:24 UTC MAIN commitmail json YAML

Turn on driver debug messages for now

Author: coypoop <coypu@sdf.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2018-08-27 13:42:12 UTC MAIN commitmail json YAML

2018-08-27 13:41:50 UTC MAIN commitmail json YAML

Temporary diagnostic kludge: confirm the ubc_uiomove worked as expected.

(riastradh)

2018-08-27 13:41:37 UTC MAIN commitmail json YAML

Guess what uvm criterion means we should discard backing pages.

(riastradh)

2018-08-27 13:41:24 UTC MAIN commitmail json YAML

Stub SYS_RESTART for reboot notifications so we can remove panic("XXX").

(riastradh)

2018-08-27 13:41:08 UTC MAIN commitmail json YAML

Attempt to match Linux semantics for membars implied by atomics.

This is kind of moot at the moment because we're mostly x86-only for
drmkms, but this might help in the future if we ever went beyond x86.

(riastradh)

2018-08-27 13:40:54 UTC MAIN commitmail json YAML

Nix memory barriers that were nixed upstream.  Add smp_mb__after_atomic.

(riastradh)

2018-08-27 13:40:41 UTC MAIN commitmail json YAML

Fix return types of test_and_{set,clear,change}_bit.

(riastradh)

2018-08-27 13:40:28 UTC MAIN commitmail json YAML

2018-08-27 13:40:15 UTC MAIN commitmail json YAML

correct typo

shows up as null deref in finish_csr_load.

Author: coypoop <coypu@sdf.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2018-08-27 13:40:03 UTC MAIN commitmail json YAML

i915 needs firmware now too, so defer to mountroot.

(riastradh)

2018-08-27 13:39:48 UTC MAIN commitmail json YAML

Don't forget to call kthread_exit.

(riastradh)

2018-08-27 13:39:33 UTC MAIN commitmail json YAML

2018-08-27 13:39:21 UTC MAIN commitmail json YAML

For the kludges we don't have or need a device (parent) pointer.

(riastradh)

2018-08-27 13:39:07 UTC MAIN commitmail json YAML

2018-08-27 13:38:51 UTC MAIN commitmail json YAML

2018-08-27 13:38:32 UTC MAIN commitmail json YAML

Try to avoid uninitialized garbage that gcc helpfully ignores.

(riastradh)

2018-08-27 13:38:15 UTC MAIN commitmail json YAML

Conditional here shouldn't be necessary now.

(riastradh)

2018-08-27 13:37:55 UTC MAIN commitmail json YAML

2018-08-27 13:37:37 UTC MAIN commitmail json YAML

Can't and needn't xcall while cold.

(riastradh)

2018-08-27 13:37:21 UTC MAIN commitmail json YAML

Fix vestigial call to drm_fb_helper_set_config.

(riastradh)

2018-08-27 13:36:53 UTC MAIN commitmail json YAML

Use atomics to manage fence->flags.

Outside users use this field too, and expect it to be managed with
atomics.

(riastradh)

2018-08-27 13:36:33 UTC MAIN commitmail json YAML

2018-08-27 13:36:14 UTC MAIN commitmail json YAML

2018-08-27 13:35:55 UTC MAIN commitmail json YAML

Try not to ask rbtree to overwrite random fields with garbage.

(riastradh)

2018-08-27 13:35:35 UTC MAIN commitmail json YAML

2018-08-27 13:35:15 UTC MAIN commitmail json YAML

2018-08-27 13:34:50 UTC MAIN commitmail json YAML

Fix fence API usage: lock is _not_ held here, so acquire it.

(riastradh)

2018-08-27 13:33:59 UTC MAIN commitmail json YAML

2018-08-27 13:31:37 UTC MAIN commitmail json YAML

2018-08-27 13:20:47 UTC MAIN commitmail json YAML

Add missing -width; remove unnecessary .Pp.

(wiz)

2018-08-27 13:09:16 UTC MAIN commitmail json YAML

Improve the "Map" section.

(maxv)

2018-08-27 12:46:03 UTC MAIN commitmail json YAML

2018-08-27 09:54:17 UTC MAIN commitmail json YAML

When the root= boot arg is missing, attempt to autodetect the root device
by comparing a hash of a disk device's MBR with the hash passed in from
the bootloader.

(jmcneill)

2018-08-27 09:52:16 UTC MAIN commitmail json YAML

Add evbarm_cpu_rootconf callback for hooking into cpu_rootconf

(jmcneill)

2018-08-27 09:51:32 UTC MAIN commitmail json YAML

2018-08-27 08:53:19 UTC MAIN commitmail json YAML

Add kasan interceptors for strcpy/strcmp/strlen.

(maxv)

2018-08-27 07:57:56 UTC MAIN commitmail json YAML

Sort in the standard English alphabetical order, please.

(riastradh)

2018-08-27 07:57:45 UTC MAIN commitmail json YAML

Restore functions that are used outside debugfs after all.

(riastradh)

2018-08-27 07:57:34 UTC MAIN commitmail json YAML

Ifdef out drm_fb_helper_set_suspend calls.

(riastradh)

2018-08-27 07:57:22 UTC MAIN commitmail json YAML

2018-08-27 07:57:12 UTC MAIN commitmail json YAML

2018-08-27 07:56:59 UTC MAIN commitmail json YAML

2018-08-27 07:56:47 UTC MAIN commitmail json YAML

2018-08-27 07:56:36 UTC MAIN commitmail json YAML

Const cast for read from const void *.

(riastradh)

2018-08-27 07:56:25 UTC MAIN commitmail json YAML

The PCI driver is now named as such.

(riastradh)

2018-08-27 07:56:14 UTC MAIN commitmail json YAML

2018-08-27 07:55:59 UTC MAIN commitmail json YAML

2018-08-27 07:55:49 UTC MAIN commitmail json YAML

Implement <linux/async.h> synchronously.

(riastradh)

2018-08-27 07:55:39 UTC MAIN commitmail json YAML

2018-08-27 07:55:29 UTC MAIN commitmail json YAML

2018-08-27 07:55:17 UTC MAIN commitmail json YAML

2018-08-27 07:55:06 UTC MAIN commitmail json YAML

Disable drm prime ioctls for now.

(riastradh)

2018-08-27 07:54:54 UTC MAIN commitmail json YAML

Define dummy drm_irq_by_busid, legacy function for legacy UMS API.

(riastradh)

2018-08-27 07:54:42 UTC MAIN commitmail json YAML

Fix bad merge and ifdef out linux fb stuff.

(riastradh)

2018-08-27 07:54:28 UTC MAIN commitmail json YAML

2018-08-27 07:54:18 UTC MAIN commitmail json YAML

2018-08-27 07:54:07 UTC MAIN commitmail json YAML

We don't need drm_legacy_vma_flush.

(riastradh)

2018-08-27 07:53:52 UTC MAIN commitmail json YAML

Implement drm_new_set_master in drm_fops.c and use it.

(riastradh)

2018-08-27 07:53:39 UTC MAIN commitmail json YAML

2018-08-27 07:53:28 UTC MAIN commitmail json YAML

struct ttm_bo_device::fence_lock is no more.

(riastradh)