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 (9h)  netbsd-10 (6d)  netbsd-9 (6d)  netbsd-8 (11d) 

2024-05-23 02:44:56 UTC Now

2021-12-19 11:37:50 UTC MAIN commitmail json YAML

2021-12-19 11:37:41 UTC MAIN commitmail json YAML

2021-12-19 11:37:29 UTC MAIN commitmail json YAML

drm: Omit half-baked dma_buf_file indirection.

(riastradh)

2021-12-19 11:37:23 UTC MAIN commitmail json YAML

drm: Fix type confusion in drm_prime_lookup_buf_by_handle.

(riastradh)

2021-12-19 11:37:14 UTC MAIN commitmail json YAML

drm: Note NetBSD->Linux errno conversion.

(riastradh)

2021-12-19 11:37:06 UTC MAIN commitmail json YAML

2021-12-19 11:36:57 UTC MAIN commitmail json YAML

2021-12-19 11:36:48 UTC MAIN commitmail json YAML

2021-12-19 11:36:41 UTC MAIN commitmail json YAML

drm: Omit bogus __unused attributes.

(riastradh)

2021-12-19 11:36:32 UTC MAIN commitmail json YAML

linux/list.h: Add list_safe_reset_next.

(riastradh)

2021-12-19 11:36:25 UTC MAIN commitmail json YAML

drm prime: Plug leak and tidy up.

(riastradh)

2021-12-19 11:36:17 UTC MAIN commitmail json YAML

2021-12-19 11:36:08 UTC MAIN commitmail json YAML

2021-12-19 11:36:00 UTC MAIN commitmail json YAML

linux: Fix timer_setup -- pass timer, not flags, as argument.

(riastradh)

2021-12-19 11:35:51 UTC MAIN commitmail json YAML

2021-12-19 11:35:44 UTC MAIN commitmail json YAML

linux: fix __lockdep_used, add mutex_acquire/release

(riastradh)

2021-12-19 11:35:36 UTC MAIN commitmail json YAML

2021-12-19 11:35:27 UTC MAIN commitmail json YAML

2021-12-19 11:35:18 UTC MAIN commitmail json YAML

2021-12-19 11:35:07 UTC MAIN commitmail json YAML

2021-12-19 11:34:56 UTC MAIN commitmail json YAML

drm: rb_tree_insert_node returns node, not NULL, on success

(riastradh)

2021-12-19 11:34:46 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/drm_atomic.c@1.12 / diff / nxr@1.12
src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv50/nouveau_dispnv50_disp.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_bios.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_dmem.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c@1.23 / diff / nxr@1.23
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c@1.15 / diff / nxr@1.15
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_svm.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_client.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_engine.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_subdev.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/disp/nouveau_nvkm_engine_disp_dp.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/fifo/nouveau_nvkm_engine_fifo_base.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/nouveau_nvkm_engine_gr_gf100.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/nouveau_nvkm_engine_gr_nv04.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/nouveau_nvkm_engine_gr_nv10.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/nouveau_nvkm_engine_gr_nv50.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/falcon/nouveau_nvkm_falcon_base.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/falcon/nouveau_nvkm_falcon_cmdq.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/falcon/nouveau_nvkm_falcon_msgq.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/falcon/nouveau_nvkm_falcon_qmgr.c@1.4 / diff / nxr@1.4
      :
(more 13 files)
nouveau: ashes to ashes, dust to dust, mutex inited must later destruct

(riastradh)

2021-12-19 11:34:29 UTC MAIN commitmail json YAML

drm/ttm: Thread the needle of buffer transfer object initialization.

Kinda finicky here!

(riastradh)

2021-12-19 11:34:20 UTC MAIN commitmail json YAML

drm: Fix sign error in comparison for vma lookup.

(riastradh)

2021-12-19 11:34:14 UTC MAIN commitmail json YAML

drm/ttm: More careful diagnostics earlier on.

(riastradh)

2021-12-19 11:34:06 UTC MAIN commitmail json YAML

drm/ttm: Compare bytes to bytes, not pages to bytes.

While here, KASSERT -> KASSERTMSG for better diagnostics.

(riastradh)

2021-12-19 11:33:59 UTC MAIN commitmail json YAML

drm: Let's go one segment at a time, not two, shall we?

(riastradh)

2021-12-19 11:33:50 UTC MAIN commitmail json YAML

src/sys/external/bsd/common/include/linux/kernel.h@1.43 / diff / nxr@1.43
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_phys.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_region.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c@1.8 / diff / nxr@1.8
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shrinker.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_tiling.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_userptr.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_rps.h@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h@1.44 / diff / nxr@1.44
src/sys/external/bsd/drm2/dist/drm/i915/i915_gem_fence_reg.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/i915_gem_fence_reg.h@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c@1.24 / diff / nxr@1.24
src/sys/external/bsd/drm2/dist/drm/i915/i915_memcpy.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/i915_perf.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/i915_scatterlist.h@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/i915/intel_uncore.h@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/i915drm/files.i915drmkms@1.70 / diff / nxr@1.70
src/sys/external/bsd/drm2/i915drm/i915_gem_userptr.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/i915drm/i915_module.c@1.14 / diff / nxr@1.14
src/sys/external/bsd/drm2/i915drm/i915_pci_autoconf.c@1.5 / diff / nxr@1.5
      :
(more 10 files)
drm: Another pass over i915.  Most of i915 gem builds now.

(riastradh)

2021-12-19 11:33:31 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/drm_prime.c@1.16 / diff / nxr@1.16
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_clflush.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_dmabuf.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_execbuffer.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_internal.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.h@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.h@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object_types.h@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pages.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_phys.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_pm.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_shmem.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_stolen.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h@1.11 / diff / nxr@1.11
src/sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.c@1.23 / diff / nxr@1.23
src/sys/external/bsd/drm2/dist/drm/i915/i915_gem_gtt.h@1.11 / diff / nxr@1.11
src/sys/external/bsd/drm2/dist/drm/i915/i915_scatterlist.h@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/i915_vma.h@1.6 / diff / nxr@1.6
      :
(more 15 files)
drm: Another pass over i915 and some supporting logic.

This makes a shim around sg_table, which essentially represents two
things:

1. an array of pages (roughly corresponding to bus_dma_segment_t[])
2. an array of DMA addresses stored in a bus_dmamap_t

Both parts are optional; different parts of i915 use sg_tables to
pass around one or both of the two parts.  This helps to reduce the
ifdefs by quite a bit, although it's not always clear which part of
an sg_table any particular interface is actually using which is why I
was reluctant to do this before.

(riastradh)

2021-12-19 11:33:17 UTC MAIN commitmail json YAML

2021-12-19 11:33:09 UTC MAIN commitmail json YAML

2021-12-19 11:33:02 UTC MAIN commitmail json YAML

i915: obj->base.filp, not obj->filp, now.

(riastradh)

2021-12-19 11:32:54 UTC MAIN commitmail json YAML

2021-12-19 11:32:44 UTC MAIN commitmail json YAML

Undo harmful local diffs

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:32:35 UTC MAIN commitmail json YAML

i915: bus_space_read/write moved to intel_uncore.h; nix diff.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:32:25 UTC MAIN commitmail json YAML

2021-12-19 11:32:18 UTC MAIN commitmail json YAML

i915_globals.c: don't build, not useful (we don't __init etc)

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:32:09 UTC MAIN commitmail json YAML

Provide list_for_each_entry_safe_reverse and reorder for consistency

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:32:01 UTC MAIN commitmail json YAML

Update for new name, fallthrough, reorder to make GCC happy about fallthrough comment

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:54 UTC MAIN commitmail json YAML

Match linux side-loading, fixes i915_getparam.c put_user undefined

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:47 UTC MAIN commitmail json YAML

sys/types.h before including a netbsd uvm header

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:40 UTC MAIN commitmail json YAML

Add netbsd-ified i915_gem_gtt_{prepare,finish}_pages prototypes

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:33 UTC MAIN commitmail json YAML

../dist/drm/i915/gem/i915_gem_ioctls.h for i915_gem_userptr_ioctl prototype

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:26 UTC MAIN commitmail json YAML

linux/bitmap.h for bitmap_zalloc

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:19 UTC MAIN commitmail json YAML

NetBSD-ify sglist, update netbsd goo to newer struct

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:31:11 UTC MAIN commitmail json YAML

linux: Just use __sync_* for xchg and cmpxchg.

Easier than figuring out the dance with __builtin_choose_expr to make
these work with all types they need to work with.

(riastradh)

2021-12-19 11:31:04 UTC MAIN commitmail json YAML

2021-12-19 11:30:57 UTC MAIN commitmail json YAML

drm/i915: Need a separate spin lock for i915 stub_fence.

Nothing built-in to the dma fence wait queue that we can abuse here.

(riastradh)

2021-12-19 11:30:45 UTC MAIN commitmail json YAML

2021-12-19 11:27:28 UTC MAIN commitmail json YAML

drm/i915: Forgot i915_gem_object_types.h change for rb->array.

(riastradh)

2021-12-19 11:27:20 UTC MAIN commitmail json YAML

2021-12-19 11:27:12 UTC MAIN commitmail json YAML

drm/i915: Unhook i915_gem_client_blt.c and revert changes.

Only used by self-tests, which we're not using (for now...).

(riastradh)

2021-12-19 11:27:04 UTC MAIN commitmail json YAML

linux: Define XA_FLAGS_ALLOC to 0 for now.

(riastradh)

2021-12-19 11:26:57 UTC MAIN commitmail json YAML

linux: Add __same_type and __must_be_array.

(riastradh)

2021-12-19 11:26:50 UTC MAIN commitmail json YAML

2021-12-19 11:26:42 UTC MAIN commitmail json YAML

linux: Make xchg and cmpxchg work on pointers too.

(riastradh)

2021-12-19 11:26:35 UTC MAIN commitmail json YAML

2021-12-19 11:26:26 UTC MAIN commitmail json YAML

drm: Sprinkle BUS_DMA_COHERENT/NOCACHE and bus_dmamap_sync.

Algorithm:

- For dummy pages, use NOCACHE and PREREAD|PREWRITE.
- In #ifdef __NetBSD__ #else dma_alloc_coherent, use BUS_DMA_COHERENT.
- For (GPU) page tables we program, use PREWRITE.

(riastradh)

2021-12-19 11:26:14 UTC MAIN commitmail json YAML

2021-12-19 11:26:04 UTC MAIN commitmail json YAML

Don't redefine stuff that common now has

Preferring common to avoid licensing mish-mash

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:57 UTC MAIN commitmail json YAML

Apparently vunmap needs an argument which is num pages... one?

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:48 UTC MAIN commitmail json YAML

catch up with newer drm_encoder_init prototype

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:39 UTC MAIN commitmail json YAML

catch up with newer drm_encoder_init prototype

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:32 UTC MAIN commitmail json YAML

drmP.h is no more

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:25 UTC MAIN commitmail json YAML

Defer call to drmfb_attach, otherwise we lock against ourselves

Mutex error: mutex_vector_enter,542: locking against myself

lockdebug_abort() at ffffffc0004ba3ec netbsd:lockdebug_abort+0xcc
mutex_enter() at ffffffc000476af4 netbsd:mutex_enter+0x3d4
drm_fb_helper_restore_fbdev_mode_unlocked() at ffffffc0003432a8
netbsd:drm_fb_helper_restore_fbdev_mode_unlocked+0x60
drmfb_genfb_setmode() at ffffffc00031c428
netbsd:drmfb_genfb_setmode+0x18
genfb_attach() at ffffffc000377b04 netbsd:genfb_attach+0x10c
drmfb_attach() at ffffffc00031c808 netbsd:drmfb_attach+0x1d0
sunxi_fb_attach() at ffffffc00005a648 netbsd:sunxi_fb_attach+0xd0
config_attach_loc() at ffffffc0004a7174 netbsd:config_attach_loc+0x184
config_found_sm_loc() at ffffffc0004a72a0
netbsd:config_found_sm_loc+0x58
sunxi_drm_fb_probe() at ffffffc00005a078 netbsd:sunxi_drm_fb_probe+0x250
__drm_fb_helper_initial_config_and_unlock() at ffffffc000342bdc
netbsd:__drm_fb_helper_initial_config_and_unlock+0x2a4
sunxi_drm_load() at ffffffc00005a384 netbsd:sunxi_drm_load+0x154
drm_dev_register() at ffffffc00033b728 netbsd:drm_dev_register+0xe0
sunxi_drm_init() at ffffffc000059d40 netbsd:sunxi_drm_init+0x20
config_process_deferred() at ffffffc0004a6efc
netbsd:config_process_deferred+0xac
config_attach_loc() at ffffffc0004a7190 netbsd:config_attach_loc+0x1a0
config_found_sm_loc() at ffffffc0004a72a0
netbsd:config_found_sm_loc+0x58
arm_fdt_attach() at ffffffc000061e34 netbsd:arm_fdt_attach+0x64
config_attach_loc() at ffffffc0004a7174 netbsd:config_attach_loc+0x184
cpu_configure() at ffffffc00005dab4 netbsd:cpu_configure+0x44
main() at ffffffc000605284 netbsd:main+0x2b4
aarch64_start() at ffffffc000001854 netbsd:aarch64_start+0x1054

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:17 UTC MAIN commitmail json YAML

Use helper to fill fb struct

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:09 UTC MAIN commitmail json YAML

Fill fb->dev.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:25:01 UTC MAIN commitmail json YAML

2021-12-19 11:24:52 UTC MAIN commitmail json YAML

2021-12-19 11:24:44 UTC MAIN commitmail json YAML

2021-12-19 11:24:37 UTC MAIN commitmail json YAML

amdgpu: Compile with CONFIG_DRM_AMD_DC_DCN defined for now.

(riastradh)

2021-12-19 11:24:30 UTC MAIN commitmail json YAML

Add missing header, NetBSD-ify

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:24:22 UTC MAIN commitmail json YAML

Stub out some functions.

We can probably do without the fast path, and let's see whether
we get to i915_gem_phys_pwrite at all.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:24:15 UTC MAIN commitmail json YAML

Update to new access_ok prototype

also... this function should probably do something

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:24:08 UTC MAIN commitmail json YAML

Update to new PTE macro names.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:24:00 UTC MAIN commitmail json YAML

2021-12-19 11:23:52 UTC MAIN commitmail json YAML

2021-12-19 11:23:38 UTC MAIN commitmail json YAML

2021-12-19 11:23:26 UTC MAIN commitmail json YAML

2021-12-19 11:23:17 UTC MAIN commitmail json YAML

2021-12-19 11:23:09 UTC MAIN commitmail json YAML

2021-12-19 11:23:00 UTC MAIN commitmail json YAML

2021-12-19 11:22:51 UTC MAIN commitmail json YAML

2021-12-19 11:22:40 UTC MAIN commitmail json YAML

amdgpu: Fix bogus enum.

Cherry-picked from:

commit a110f3750bf8b93764f13bd1402c7cba03d15d61
Author: Arnd Bergmann <arnd@arndb.de>
Date:  Mon Oct 26 22:00:30 2020 +0100

    drm/amdgpu: fix incorrect enum type

    core_link_write_dpcd() returns enum dc_status, not ddc_result:

    display/dc/core/dc_link_dp.c: In function 'dp_set_panel_mode':
    display/dc/core/dc_link_dp.c:4237:11: warning: implicit conversion from 'enu
m dc_status' to 'enum ddc_result'
    [-Wenum-conversion]

    Avoid the warning by using the correct enum in the caller.

    Fixes: 0b226322434c ("drm/amd/display: Synchronous DisplayPort Link Training")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

(riastradh)

2021-12-19 11:22:32 UTC MAIN commitmail json YAML

2021-12-19 11:22:23 UTC MAIN commitmail json YAML

Provisionally work around cycle in x86 header files.

(riastradh)

2021-12-19 11:22:15 UTC MAIN commitmail json YAML

drm_mm: Allow multiple holes with the same size.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:22:08 UTC MAIN commitmail json YAML

drm/ttm: Conditionalize initialization of vma node.

Needs to match conditional destruction.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:22:00 UTC MAIN commitmail json YAML

linux/rwsem: Reorder members to avoid confusing lockdebug.

(riastradh)

2021-12-19 11:21:54 UTC MAIN commitmail json YAML

linux/rwsem: Work around broken lockdebug macros.

(riastradh)

2021-12-19 11:21:45 UTC MAIN commitmail json YAML

2021-12-19 11:21:38 UTC MAIN commitmail json YAML

linux: Use IPL_VM for lock inside rw_semaphore.

down_read_trylock needs to work under a spin lock.

(riastradh)

2021-12-19 11:21:30 UTC MAIN commitmail json YAML

2021-12-19 11:21:12 UTC MAIN commitmail json YAML

drm/ttm: Conditionalize destruction of vma node.

Needs to match conditional initialization.

(riastradh)

2021-12-19 11:21:03 UTC MAIN commitmail json YAML

drm: Make sure to destroy waitqueue when done.

(riastradh)

2021-12-19 11:20:56 UTC MAIN commitmail json YAML

Add missing unlock at exit

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:20:49 UTC MAIN commitmail json YAML

drm/dma-fence: Fix zero timeout semantics in dma_fence_default_wait.

(riastradh)

2021-12-19 11:20:41 UTC MAIN commitmail json YAML

We need to allocate a singular temporary slot, not many.

This also indirectly fixes a panic when nelem == 0.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:20:33 UTC MAIN commitmail json YAML

'struct srcu' is actually called 'struct srcu_struct'

Author: Iain Hibbert <plunky@netbsd.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:20:26 UTC MAIN commitmail json YAML

i915: container_of(const) -> const_container_of

(riastradh)

2021-12-19 11:20:18 UTC MAIN commitmail json YAML

i915: Disable i915_active.c for now; needs more work.

(riastradh)

2021-12-19 11:20:11 UTC MAIN commitmail json YAML

i915: Hack to disable upstream i915_sw_fence.h.

(riastradh)

2021-12-19 11:20:02 UTC MAIN commitmail json YAML

i915: Remove wait_queue_entry_t for now; to revisit.

(riastradh)

2021-12-19 11:19:55 UTC MAIN commitmail json YAML

2021-12-19 11:19:48 UTC MAIN commitmail json YAML

i915: Disable CONFIG_DRM_I915_DEBUG_RUNTIME_PM.

No runtime_pm at all here for now.

(riastradh)

2021-12-19 11:19:40 UTC MAIN commitmail json YAML

i915: Custom i915_gem_mmap_object, not fault routine, here.

(riastradh)

2021-12-19 11:19:33 UTC MAIN commitmail json YAML

i915: Fix drm_dev_init argument.

Confusingly the parameter is named `parent' but means the struct
device that corresponds to the struct pci_dev.  Use pci_dev_dev here
since it works in both APIs.

(riastradh)

2021-12-19 11:19:24 UTC MAIN commitmail json YAML

2021-12-19 11:19:17 UTC MAIN commitmail json YAML

Need to provide a value for CONFIG_DRM_I915_DEBUG_RUNTIME_PM

Maybe 1 will do.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:19:09 UTC MAIN commitmail json YAML

pdev is ifdef'd out, so ifdef out the declaration too

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:19:01 UTC MAIN commitmail json YAML

Move local diff's location to above where it's used

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:52 UTC MAIN commitmail json YAML

Emulate pdev->dev for NetBSD.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:44 UTC MAIN commitmail json YAML

Exclude call to dma_set_max_seg_size

We probably don't need to replicate this.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:35 UTC MAIN commitmail json YAML

Provide declarations, we use these from different files.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:26 UTC MAIN commitmail json YAML

Shuffle ifdefs for build. Remove local diff that doesn't build.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:18 UTC MAIN commitmail json YAML

Remove local change to constify, and remove const qualifier

We certainly write to this pointer in i915_driver_create with
memcpy.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:09 UTC MAIN commitmail json YAML

Remove local diff

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:18:00 UTC MAIN commitmail json YAML

restore lost ifdef of vga_switcheroo code

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:52 UTC MAIN commitmail json YAML

Remove duplicate declaration of i915_device_ids

The one that compiles is in i915_pci.c now. No `pciidlist` in this
file!

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:44 UTC MAIN commitmail json YAML

nbsd-namespace.h for the right mutex_init

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:35 UTC MAIN commitmail json YAML

no struct vm_are_struct, ifdef out declaration

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:28 UTC MAIN commitmail json YAML

Remove local diff, side effect of backporting kabylake support.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:19 UTC MAIN commitmail json YAML

Provide and use an rb_next2 which takes a pointer to the tree as well

Easier for us to implement.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:10 UTC MAIN commitmail json YAML

Give up on figuring side-loading, we need bitmap_* functions.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:17:02 UTC MAIN commitmail json YAML

drm/linux: Fix bitmap_zalloc size.

(riastradh)

2021-12-19 11:16:55 UTC MAIN commitmail json YAML

Provide bitmap_alloc

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:16:48 UTC MAIN commitmail json YAML

PRIx64 for u64

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:16:39 UTC MAIN commitmail json YAML

NetBSD-ify clflush size

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:16:32 UTC MAIN commitmail json YAML

2021-12-19 11:16:24 UTC MAIN commitmail json YAML

i915: Move linux/nbsd-namespace.h to end of includes.

(riastradh)

2021-12-19 11:16:17 UTC MAIN commitmail json YAML

i915: Add missing parameter name.

XXX Shouldn't be getting here -- CONFIG_ACPI busted?

(riastradh)

2021-12-19 11:16:08 UTC MAIN commitmail json YAML

2021-12-19 11:16:00 UTC MAIN commitmail json YAML

2021-12-19 11:15:49 UTC MAIN commitmail json YAML

2021-12-19 11:15:41 UTC MAIN commitmail json YAML

i915: Fix up #ifdef around sg dma iteration.

(riastradh)

2021-12-19 11:15:33 UTC MAIN commitmail json YAML

i915: Can't track down the right side load here, give up.

(riastradh)

2021-12-19 11:15:26 UTC MAIN commitmail json YAML

drm/linux: pagemap.h->highmem.h side load

(riastradh)

2021-12-19 11:15:18 UTC MAIN commitmail json YAML

i915/gt/gen8_ppgtt.c: Fix various typos.

(riastradh)

2021-12-19 11:15:11 UTC MAIN commitmail json YAML

2021-12-19 11:15:04 UTC MAIN commitmail json YAML

2021-12-19 11:14:56 UTC MAIN commitmail json YAML

2021-12-19 11:14:48 UTC MAIN commitmail json YAML

i915: Fix constification in px_base macro.

(riastradh)

2021-12-19 11:14:42 UTC MAIN commitmail json YAML

2021-12-19 11:14:34 UTC MAIN commitmail json YAML

drm: Make BUILD_BUG_ON_ZERO do something.

(riastradh)

2021-12-19 11:14:27 UTC MAIN commitmail json YAML

stub BUILD_BUG_ON_ZERO, from openbsd.

This is a dual purpose macro that asserts but can also be used in
expressions. Provide the expression implementation.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:14:16 UTC MAIN commitmail json YAML

Fix mangled local change and close parens.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:14:06 UTC MAIN commitmail json YAML

2021-12-19 11:13:52 UTC MAIN commitmail json YAML

i915: Disable -Wmissing-field-initializers.

(riastradh)

2021-12-19 11:13:45 UTC MAIN commitmail json YAML

i915: Fix include path for intelfb files too.

(riastradh)

2021-12-19 11:13:36 UTC MAIN commitmail json YAML

i915: LIST_HEAD -> struct list_head = LIST_HEAD_INIT

(riastradh)

2021-12-19 11:13:30 UTC MAIN commitmail json YAML

2021-12-19 11:13:22 UTC MAIN commitmail json YAML

2021-12-19 11:13:14 UTC MAIN commitmail json YAML

2021-12-19 11:12:59 UTC MAIN commitmail json YAML

2021-12-19 11:12:51 UTC MAIN commitmail json YAML

2021-12-19 11:12:43 UTC MAIN commitmail json YAML

i915: Need <linux/notifier.h> for atomic_notifier_head.

Not sure where the missing side-load is so let's just add it where it
belongs anyway.

(riastradh)

2021-12-19 11:12:36 UTC MAIN commitmail json YAML

Match linux side-loading

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:12:29 UTC MAIN commitmail json YAML

Take advantage of sys/file.h include guards, to make sure that

including sys/file.h after this header is safe.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:12:22 UTC MAIN commitmail json YAML

const const const

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:12:14 UTC MAIN commitmail json YAML

Enable the scratch_order code and not have our own.

Now there's multiple scratch pages. Maybe it's best to follow
what upstream does here.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:12:06 UTC MAIN commitmail json YAML

Define __iomem to nothing for this one function. (Somewhat overkill..)

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:59 UTC MAIN commitmail json YAML

provide __i915_vma_flags and avoid const qualifiers for warnings

Type casting the way this definition does doesn't get along with
const.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:51 UTC MAIN commitmail json YAML

ifdef out poll_wait, inspired by openbsd doing the same

rather than figure out a type for poll_table

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:42 UTC MAIN commitmail json YAML

Our __always_inline doesn't make the function inline.

Avoid compiler warnings about the function being defined but not used

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:35 UTC MAIN commitmail json YAML

Maybe we can just get away with not defining anything in this header?

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:27 UTC MAIN commitmail json YAML

exclude more scatter-gather code that isn't used

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:19 UTC MAIN commitmail json YAML

Stub might_lock_nested. Not in the LOCKDEP case...

Not sure we have anything for nested locks.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:11 UTC MAIN commitmail json YAML

Use types we have.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:11:04 UTC MAIN commitmail json YAML

Avoid dropping const qualifier

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:10:56 UTC MAIN commitmail json YAML

Switch #ifdef CONFIG_WHATEVER to #if IS_ENABLED(CONFIG_WHATEVER)

Our IS_ENABLED should probably be #if defined(option) && (option),
but that becomes tricky with evaluation order. If option gets
expanded earlier, this errors out (e.g. with CONFIG_AGP)

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:10:48 UTC MAIN commitmail json YAML

linux: Simplify build_bug.h and add static_assert.

(riastradh)

2021-12-19 11:10:41 UTC MAIN commitmail json YAML

2021-12-19 11:10:25 UTC MAIN commitmail json YAML

provide our own uncore read/write functions

and add struct members for it

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:10:18 UTC MAIN commitmail json YAML

stub struct rcu_work

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:10:09 UTC MAIN commitmail json YAML

Call it srcu_struct like linux does.

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:10:01 UTC MAIN commitmail json YAML

2021-12-19 11:09:48 UTC MAIN commitmail json YAML

2021-12-19 11:09:34 UTC MAIN commitmail json YAML

drm: Initialize/destroy struct drm_file::event_read_wq.

(riastradh)

2021-12-19 11:09:25 UTC MAIN commitmail json YAML

drm/ttm: ttm_bo_put(bo) won't bo=NULL like ttm_bo_unref(&bo) did.

(riastradh)

2021-12-19 11:09:17 UTC MAIN commitmail json YAML

linux dma-fence: Fix up more callback uses.

(riastradh)

2021-12-19 11:09:10 UTC MAIN commitmail json YAML

linux dma-fence: Use dma_fence_default_wait if .wait is null.

(riastradh)

2021-12-19 11:09:02 UTC MAIN commitmail json YAML

Fix merge botch: do uvm_obj_init unconditionally.

(riastradh)

2021-12-19 11:08:55 UTC MAIN commitmail json YAML

Initialize priv->filp, lost in removing drm_fops.c

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:08:47 UTC MAIN commitmail json YAML

stub drm_lease.c the same way as openbsd

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:08:40 UTC MAIN commitmail json YAML

NetBSD-ize execlists_active_{un,}lock_bh

Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

(riastradh)

2021-12-19 11:08:32 UTC MAIN commitmail json YAML

radeon: Fix merge botch -- don't unreserve twice.

(riastradh)

2021-12-19 11:08:25 UTC MAIN commitmail json YAML

radeon: Fix missing unlocks in radeon fence.

(riastradh)

2021-12-19 11:08:17 UTC MAIN commitmail json YAML

radeon: Use dma_fence_signal_locked when we already hold lock.

(riastradh)

2021-12-19 11:08:10 UTC MAIN commitmail json YAML

drm: drm_update_vblank_count requires vbl_lock.

(riastradh)

2021-12-19 11:08:03 UTC MAIN commitmail json YAML

2021-12-19 11:07:56 UTC MAIN commitmail json YAML

drm: Unstub drm_client slightly more.

(riastradh)

2021-12-19 11:07:49 UTC MAIN commitmail json YAML

drm: Slightly unstub this toe.

(riastradh)

2021-12-19 11:07:42 UTC MAIN commitmail json YAML

drm: Just disable fb_get_options for now.

(riastradh)

2021-12-19 11:07:36 UTC MAIN commitmail json YAML

2021-12-19 11:07:28 UTC MAIN commitmail json YAML

drm/gem: Narrow scope of #ifdef __NetBSD__.

Need to initialize this resv.

(riastradh)

2021-12-19 11:07:20 UTC MAIN commitmail json YAML

2021-12-19 11:07:12 UTC MAIN commitmail json YAML

2021-12-19 11:07:04 UTC MAIN commitmail json YAML

drm/ttm: Fix up ttm_bo_global_release a bit.

(riastradh)

2021-12-19 11:06:55 UTC MAIN commitmail json YAML

2021-12-19 11:06:44 UTC MAIN commitmail json YAML