The NetBSD Project

CVS log for src/sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / external / bsd / drm2 / dist / drm / radeon

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 20 01:22:38 2022 UTC (19 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

drm: Ifdef out alpha-specific logic in radeon.

Guessing this is handled transparently by bus_space(9) when we ask
for prefetchable linear mappings.  Need an alpha wizard to review!

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 21 17:50:21 2022 UTC (21 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.24: +2 -11 lines
Diff to previous 1.24 (colored)

drm: Nix driver-specific DRM_FILE_PAGE_OFFSET defs and tests.

This was consolidated upstream into the vma manager.

PR kern/56812

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 23 17:09:25 2021 UTC (2 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

Cast addr to uint64_t before printing.
Ok: riastradh@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 19 12:23:58 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

radeon: Fix dma_addressing_limited call.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 19 09:57:01 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Stub dma_addressing_limited, fixup references for caller

This might turn out to be a mistake if we actually need to distinguish
if a device is only capable of 32-bit DMA.


Author: Maya Rashish <maya@NetBSD.org>

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 19 09:56:53 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

'r' is just for us, so let's declare it


Author: Maya Rashish <maya@NetBSD.org>

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 19 09:56:45 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

match the 'else' case here to get vma_node


Author: Maya Rashish <maya@NetBSD.org>

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 19 01:50:00 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.18: +7 -2 lines
Diff to previous 1.18 (colored)

Fix up radeon.

Enough to make it compile.  (Next up: make it link.)

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 18 23:45:43 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
Changes since 1.17: +120 -218 lines
Diff to previous 1.17 (colored)

Merge linux-drm-v5-6-rc3

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 18 20:15:52 2021 UTC (2 years, 2 months ago) by riastradh
Branch: LINUX
CVS Tags: linux-drm-v5-6-rc3
Changes since 1.1.1.2: +118 -214 lines
Diff to previous 1.1.1.2 (colored)

Import drm from Linux v5.6-rc3 (commit f8788d86ab28f61f7b46eb6be375f8a726783636)

    drivers/gpu/drm     -> sys/external/bsd/drm2/dist/drm
    include/drm         -> sys/external/bsd/drm2/dist/include/drm
    include/uapi/drm    -> sys/external/bsd/drm2/dist/include/uapi/drm

GPL exclusions in dist/drm:

- amd/amdgpu/amdgpu_atpx_handler.c
- arc/
- arm/
- armada/
- aspeed/
- atmel-hlcdc/
- bochs/
- bridge/
- cirrus/
- drm_dp_cec.c
- drm_dp_mst_topology_internal.h
- drm_edid_load.c
- drm_format_helper.c
- drm_gem_cma_helper.c
- drm_gem_framebuffer_helper.c
- drm_gem_shmem_helper.c
- drm_gem_ttm_helper.c
- drm_gem_vram_helper.c
- drm_hdcp.c
- drm_lease.c
- drm_mipi_dbi.c
- drm_simple_kms_helper.c
- drm_sysfs.c
- drm_trace.h
- drm_vram_helper_common.c
- drm_writeback.c
- etnaviv/
- exynos/
- fsl-dcu/
- gma500/
- hisilicon/
- i2c/tda9950.c
- i2c/tda998x_drv.c
- i915/gt/selftest_context.c
- i915/gt/selftest_engine.c
- i915/gt/selftest_engine.h
- i915/gt/selftest_engine_cs.c
- i915/gt/selftest_engine_pm.c
- i915/i915_trace.h
- i915/selftests/i915_live_selftests.h
- i915/selftests/i915_mock_selftests.h
- i915/selftests/i915_perf_selftests.h
- i915/selftests/lib_sw_fence.h
- imx/
- ingenic/
- lima/
- mcde/
- mediatek/
- meson/
- mgag200/
- msm/
- mxsfb/
- omapdrm/
- panel/
- panfrost/
- pl111/
- radeon/radeon_atpx_handler.c
- rcar-du/
- rockchip/
- selftests/drm_cmdline_selftests.h
- selftests/drm_modeset_selftests.h
- selftests/test-drm_cmdline_parser.c
- selftests/test-drm_damage_helper.c
- selftests/test-drm_dp_mst_helper.c
- selftests/test-drm_format.c
- selftests/test-drm_framebuffer.c
- selftests/test-drm_modeset_common.c
- selftests/test-drm_modeset_common.h
- selftests/test-drm_plane_helper.c
- selftests/test-drm_rect.c
- shmobile/
- sti/
- stm/
- sun4i/
- tegra/
- tilcdc/
- tiny/
- tve200/
- udl/
- v3d/
- vc4/
- virtio/virtgpu_trace.h
- virtio/virtgpu_trace_points.c
- vkms/
- vmwgfx/device_include/vmware_pack_begin.h
- vmwgfx/device_include/vmware_pack_end.h
- zte/

  Exceptions -- these all appear to be files to which someone added
  an SPDX license header automatically by a script that is not aware
  of the default MIT licensing under drivers/gpu/drm:

  - ast/ast_dp501.c
  - ast/ast_dram_tables.h
  - lib/drm_random.c
  - lib/drm_random.h
  - i915/display/intel_acpi.c
  - i915/selftests/mock_gem_device.h
  - i915/selftests/i915_mock_selftests.h
  - i915/selftests/i915_live_selftests.h
  - r128/ati_pcigart.h
  - selftests/drm_mm_selftests.h
  - selftests/test-drm_mm.c
  - vmwgfx/device_include/vm_basic_types.h

GPL exclusions in dist/include/drm:

- bridge
- drm_client.h
- drm_fb_cma_helper.h
- drm_format_helper.h
- drm_gem_cma_helper.h
- drm_gem_shmem_helper.h
- drm_gem_ttm_helper.h
- drm_gem_vram_helper.h
- drm_lease.h
- drm_mipi_dbi.h
- drm_mipi_dsi.h
- drm_of.h
- drm_simple_kms_helper.h
- drm_sysfs.h
- drm_writeback.h
- gma_drm.h
- i2c/tda998x.h
- i915_mei_hdcp_interface.h
- intel-gtt.h

  Exceptions:
  - drm_agpsupport.h - was in original drm; wrong spdx header auto-added

GPL exclusions in dist/include/uapi/drm:

- armada_drm.h
- etnaviv_drm.h
- exynos_drm.h
- lima_drm.h
- omap_drm.h

  Exceptions:
  - i810_drm.h - was in original drm; spdx header is wrong

Revision 1.17 / (download) - annotate - [select for diffs], Mon Apr 27 16:57:31 2020 UTC (3 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.16: +7 -2 lines
Diff to previous 1.16 (colored)

Fix possible bus_dmamap_load(9) leak.  PR/55127

"Looks good to me" from riastradh@.
Note it was also commented "that code path is likely to be reached"
so maybe pullups are not necessary.

Revision 1.9.18.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:26 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.9.18.1: +97 -18 lines
Diff to previous 1.9.18.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Merge changes from current as of 20200406

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:20:16 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.15: +97 -18 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 14 04:38:24 2020 UTC (4 years ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.15: +97 -18 lines
Diff to previous 1.15 (colored)

Implement drm userptr with uvm_vslock & bus_dmamap_load_uio.

Revision 1.9.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:08:27 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.9: +279 -80 lines
Diff to previous 1.9 (colored)

Sync with HEAD

Revision 1.9.16.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:33 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.9: +279 -80 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.15 / (download) - annotate - [select for diffs], Mon Aug 27 15:22:54 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.14: +7 -4 lines
Diff to previous 1.14 (colored)

Draft support for drm prime.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 27 15:10:12 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.13: +8 -0 lines
Diff to previous 1.13 (colored)

Sprinkle AGP conditionals where needed.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 27 07:50:54 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.12: +4 -5 lines
Diff to previous 1.12 (colored)

Kill legacy mmap in radeon like was done upstream.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 27 07:50:43 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.11: +12 -0 lines
Diff to previous 1.11 (colored)

Ifdef out some more radeon userptr code.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Aug 27 07:47:55 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.10: +10 -0 lines
Diff to previous 1.10 (colored)

Disable radeon userptr for now.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 27 04:58:36 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.9: +238 -71 lines
Diff to previous 1.9 (colored)

merge linux-drm-v4-4-143

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Aug 27 01:34:59 2018 UTC (5 years, 6 months ago) by riastradh
Branch: LINUX
CVS Tags: linux-drm-v4-4-143
Changes since 1.1.1.1: +234 -63 lines
Diff to previous 1.1.1.1 (colored)

Import drm from Linux v4.4.143 (commit a8ea6276d00555387deaaa5eaeb380cd5c17bdc9).

   drivers/gpu/drm      -> sys/external/bsd/drm2/dist/drm
   include/drm          -> sys/external/bsd/drm2/dist/include/drm
   include/uapi/drm     -> sys/external/bsd/drm2/dist/uapi/drm

GPL sources excluded.

Revision 1.5.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:57 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.5.6.2: +30 -4 lines
Diff to previous 1.5.6.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

update from HEAD

Revision 1.5.4.2.4.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:45 2017 UTC (7 years, 1 month ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.5.4.2: +10 -0 lines
Diff to previous 1.5.4.2 (colored) next main 1.5.4.3 (colored)

Sync with netbsd-5

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Mon Dec 12 09:13:42 2016 UTC (7 years, 2 months ago) by msaitoh
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.5.4.2: +10 -0 lines
Diff to previous 1.5.4.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by snj in ticket #1280):
	sys/external/bsd/drm2/ttm/ttm_bus_dma.c: revision 1.2
	sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h: revision 1.14
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_dp.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c: revision 1.7
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c: revision 1.11
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nouveau_engine_fifo_nv40.c: revision 1.2
	sys/external/bsd/drm2/dist/include/drm/ttm/ttm_bo_driver.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c: revision 1.8
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_connector.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_gem.c: revision 1.4
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/devinit/nouveau_subdev_devinit_nv04.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_bo.c: revision 1.7
	sys/external/bsd/drm2/dist/drm/nouveau/core/core/nouveau_core_object.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c: revision 1.4
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/mxm/nouveau_subdev_mxm_mxms.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/mxm/nouveau_subdev_mxm_nv50.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/disp/nouveau_engine_disp_nvd0.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nouveau_engine_fifo_base.c: revision 1.5
	sys/external/bsd/drm2/include/drm/ttm/ttm_page_alloc.h: revision 1.2
	sys/external/bsd/drm2/drm/drm_vma_manager.c: revision 1.4
	sys/external/bsd/drm2/nouveau/nouveau_pci.c: revision 1.8
- fix non-debug build
- Use %"PRIx8", not %hx, for uint8_t.  %hx is for unsigned short.
- Flush unused function. Found by joerg.
- Make sure rbtrees are empty on desctruction.
  If related to PR kern/51076, might help catch the bug a bit earlier.
- revert rev 1.6.  we don't have access to those files as normal files
  and possible will get them directly elsewhere soon.
  (if i hack my nouveau to ignore fireware failure, it end up having
  a vaguely working console and slowly working X, which is better than
  the current situation.)
- Avoid possible null pointer dereference. Found by Coverity, CID 709895.
- Mark fallthrough to suppress Coverity complaints.
  CID 143119
  CID 143120
  CID 143121
  CID 143122
  CID 143123
  CID 143124
- Sanity-check that the encoder we found is not null.
  I think the previous code guarantees that finding this encoder should
  work, so this should be a moot point. CID 145720.
- Mark intended fallthrough to suppress Coverity CID 201378.
- Mark fallthrough with a comment to appease Coverity, CID 703385.
- Make it clearer to Coverity that there's no array overrun. CID 989067.
- Rework ttm tt swapin/swapout logic.
  Rather than handling `swapping in/out' here, per se, we let uvm do
  that, we interpret `swap out' as `deactivate pages', and we add
  generic ttm operations to wire and unwire pages, for the ttm_tt
  driver to use.
  This fixes certain graphics buffer eviction logic, which enables
  nouveau to suspend/resume on one of my machines.  (The machine
  doesn't resume overall for other reasons, but the nouveau device
  suspends and resumes in isolation.)
- Use bus_space_subregion to get fifo channels out of mmio registers.
  Evidently it is not enough to just map them separately.  Ran out of
  time to investigate why, last time I poked at this and confirmed this
  change works.
- Avoid taking locks during interrupts and explain why we are doing it this way.
- We now use cpu_intr_p() all the time.

Revision 1.5.8.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:00 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5.8.3: +8 -4 lines
Diff to previous 1.5.8.3 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 10 01:35:27 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.8: +8 -4 lines
Diff to previous 1.8 (colored)

Don't assign value to rdev unless we're going to use the value.

Therefore, don't declare the variable unless we're going to assign it a
value.

Revision 1.5.8.3 / (download) - annotate - [select for diffs], Sun May 29 08:44:36 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5.8.2: +10 -0 lines
Diff to previous 1.5.8.2 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 24 04:26:12 2016 UTC (7 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529
Changes since 1.7: +10 -0 lines
Diff to previous 1.7 (colored)

Rework ttm tt swapin/swapout logic.

Rather than handling `swapping in/out' here, per se, we let uvm do
that, we interpret `swap out' as `deactivate pages', and we add
generic ttm operations to wire and unwire pages, for the ttm_tt
driver to use.

This fixes certain graphics buffer eviction logic, which enables
nouveau to suspend/resume on one of my machines.  (The machine
doesn't resume overall for other reasons, but the nouveau device
suspends and resumes in isolation.)

XXX pullup to netbsd-7 after a couple weeks

Revision 1.5.8.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:19 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5.8.1: +8 -0 lines
Diff to previous 1.5.8.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Thu Apr 23 07:31:17 2015 UTC (8 years, 10 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7-nhusb
Changes since 1.5.4.1: +8 -0 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored)

Pull up following revision(s) (requested by mrg in ticket #718):
	sys/arch/x86/include/pmap.h: revision 1.56
	sys/arch/x86/x86/pmap.c: revision 1.188
	sys/dev/pci/agp_amd64.c: revision 1.8
	sys/dev/pci/agp_i810.c: revision 1.118
	sys/external/bsd/drm2/dist/drm/i915/i915_dma.c: revision 1.16
	sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: revision 1.29
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_agp.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_ttm.c: revision 1.4
	sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_agp.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_display.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_crtc.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/radeon/radeon_object.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c: revision 1.7
	sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c: revisions 1.7-1.10
	sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c: revision 1.5
	sys/external/bsd/drm2/i915drm/intelfb.c: revision 1.13
	sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h: revisions 1.12, 1.13
	sys/external/bsd/drm2/include/linux/mm.h: revision 1.5
	sys/external/bsd/drm2/include/linux/pci.h: revisions 1.16, 1.17
	sys/external/bsd/drm2/nouveau/nouveaufb.c: revision 1.2
	sys/external/bsd/drm2/radeon/radeon_pci.c: revisions 1.8, 1.9
	sys/uvm/uvm_init.c: revision 1.46
Hack against the blank console problem:
Leave the CLUT alone on ancient cards. At least this leaves us with a
semi working console (red and blue are flipped). Leave an example of what
seems to be happening but disable it because colors are better than 444 bit
greyscale.
--
Initialize P->V tracking for unmanaged device pages in uvm_init.

Conditional on __HAVE_PMAP_PV_TRACK until we add it to all pmaps.

MI part of pmap_pv(9) change proposed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html
--
Implement pmap_pv(9) for x86 for P->V tracking of unmanaged pages.

Proposed on tech-kern with no objections:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html
--
Use pmap_pv(9) to remove mappings of Intel graphics aperture pages.

Proposed on tech-kern with no objections:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html

Further background at:

https://mail-index.netbsd.org/tech-kern/2014/07/23/msg017392.html
--
Use pmap_pv(9) to remove mappings of device pages in TTM.

Adapt nouveau and radeon to do pmap_pv_track for their device pages.

Proposed on tech-kern with no objections:

https://mail-index.netbsd.org/tech-kern/2015/03/26/msg018561.html

Further background at:

https://mail-index.netbsd.org/tech-kern/2014/07/23/msg017392.html
--
Fix error branches in agp_amd64.c.

- agp_generic_detach always.
- Free asc if it was allocated.  (Found by Brainy, noted by maxv@.)
- Free the GATT if it was allocated.
--
pmf_device_register returns false on failure, not true
--
In DRM_SPIN_WAIT_ON, don't stop after waiting only one tick.

Continue the loop to recheck the condition and count the whole
duration.
--
Don't use the video BIOS memory as an i915 flush page!
--
Don't let anyone else allocate the video BIOS either.
--
Missed a zero: it's 0x100000, not 0x10000.
--
Don't reserve if atomic -- caller must have pre-pinned the buffer.
--
Don't reserve if atomic -- caller must have pre-pinned the buffer.
--
almost add radeondrmkms suspend/resume support.  it unfortunately doesn't work.
--
Need the page's uvm object lock to do pmap_page_protect.
--
Use KASSERTMSG to show bad base/offset.
--
KASSERT about page-alignment on initialization too.
--
Don't break when hardclock_ticks wraps around.

Since we now only count time spent in wait, rather than determining
the end time and checking whether we've passed it, timeouts might be
marginally longer in effect.  Unlikely to be an issue.
--
Remove broken drm2 vm_mmap stub.  Can't possibly have ever worked.
--
apply some of the additional changes from Arto Huusko in PR#49645:
- call pmf_device_deregister on detach.

i've kept the "resume = true" for radeon_resume_kms() call as it
seems to work for me (indeed, code inspection shows it is unused
on netbsd :-)

my old nforce4 box that can resume old drm (or could, last i tried
several years ago) while X and GL apps were running, can at least
survive a resume if X hasn't started.  my one attempt so far with
X exited, but having run, did not work.
--
First attempt to make ttm_buffer_object_transfer less bogus.
--
Make sure mem.bus.is_iomem is initialized.  PR 49833

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 10 17:44:35 2015 UTC (8 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.6: +8 -0 lines
Diff to previous 1.6 (colored)

KASSERT about page-alignment on initialization too.

Revision 1.5.8.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:16 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5: +4 -0 lines
Diff to previous 1.5 (colored)

Sync with HEAD

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Sun Jan 11 06:29:15 2015 UTC (9 years, 1 month ago) by snj
Branch: netbsd-7
Changes since 1.5: +4 -0 lines
Diff to previous 1.5 (colored)

Pull up following revision(s) (requested by chs in ticket #404):
	sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c: revision 1.6
apply a patch from rjs@, which is necessary for radeondrmkms on i386:
set DRM_FILE_PAGE_OFFSET to 0xa0000000UL for 32 bit platforms.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 5 06:28:34 2015 UTC (9 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.5: +4 -0 lines
Diff to previous 1.5 (colored)

apply a patch from rjs@, which is necessary for radeondrmkms on i386:

set DRM_FILE_PAGE_OFFSET to 0xa0000000UL for 32 bit platforms.

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:18 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.5.6.1: +1122 -0 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:37 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.5.2.1: +1122 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Rebase.

Revision 1.5.6.1, Sat Jul 26 21:19:45 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.5: +0 -1122 lines
FILE REMOVED

file radeon_ttm.c was added on branch tls-maxphys on 2014-08-20 00:04:18 +0000

Revision 1.5.2.1, Sat Jul 26 21:19:45 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.5: +0 -1122 lines
FILE REMOVED

file radeon_ttm.c was added on branch tls-earlyentropy on 2014-08-10 06:55:37 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jul 26 21:19:45 2014 UTC (9 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: tls-maxphys, tls-earlyentropy, nick-nhusb, netbsd-7
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

Make sure the low bits, not the high bits, of the offset are zero!

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 26 21:15:45 2014 UTC (9 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Let the drm driver decide what part of what object gets mmapped.

Pass the file around too so radeon/ttm can get at it to verify access.

Add drm_gem_or_legacy_mmap_object for drivers to choose the previous
behaviour, like i915.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 17 03:34:13 2014 UTC (9 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.2: +16 -3 lines
Diff to previous 1.2 (colored)

Actually hook up the radeon_ttm uvm pager ops!

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 16 20:59:57 2014 UTC (9 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.1: +81 -2 lines
Diff to previous 1.1 (colored)

First whack at radeon driver.

No hardware to test yet, but it builds.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Jul 16 19:35:29 2014 UTC (9 years, 7 months ago) by riastradh
Branch: LINUX
CVS Tags: linux-3-15-drm-bsd
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import drm from Linux 3.15 (commitid 1860e379875dfe7271c649058aeddffe5afd9d0d).

   drivers/gpu/drm      -> sys/external/bsd/drm2/dist/drm
   include/drm          -> sys/external/bsd/drm2/dist/include/drm
   include/uapi/drm     -> sys/external/bsd/drm2/dist/uapi/drm

GPL sources excluded.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 16 19:35:29 2014 UTC (9 years, 7 months ago) by riastradh
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>