The NetBSD Project

CVS log for src/sys/external/bsd/drm2/dist/drm/radeon/radeon_r600.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.7 / (download) - annotate - [select for diffs], Sat Sep 30 10:46:45 2023 UTC (5 months ago) by mrg
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.6: +2 -4 lines
Diff to previous 1.6 (colored)

drm: enable almost all PCIe functionality

linux_pci.c revisions 1.24 and 1.25 implemented most of the remaining
missing PCIe backends, but only enabled them for some amdgpu portions.

this enables all code marked with "XXX amdgpu pcie", "XXX radeon pcie",
and "XXX pcie speed".  for most of it, simply removing #ifndefs __NetBSD__
to enable compliation was required, once the new "bus->max_bus_speed"
member was added to struct pci_bus.  add an "always fails" backend for
pci_enable_atomic_ops_to_root() which seems to only be necessary
for virtual GPU functionality (and could be implemented if needed.)

tested on radeon 5450, 7750, R7 240 [radeon], and RX 550 [amdgpu], and
nvidia 750 and 1030 [nouveau].


this still does not quite work on nvidia cards.  there are two problems
that remain:

- the call to set the link speed is skipped because the speed is set
  to the default value of "-1".  nvkm_pcie_set_link() will actually
  determine the right value for this and for some cards, calling this
  function if the current speed is -1 helps set the link speed.  it
  may be that on linux other paths we don't have enabled properly
  would set this (there's one via debugfs, and a jetson specific one,
  though perhaps setting either AC or DC speed values as boot options
  (after hooking up these for netbsd) would currently work.

- worse, cards newer than kepler - geforce 900, 1000, and newer, are
  all lacking the backing support to set pcie link speed.  the GT 1030
  card i have been testing with remains at pcie 1.0.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 18 23:45:43 2021 UTC (2 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: 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
Changes since 1.5: +118 -70 lines
Diff to previous 1.5 (colored)

Merge linux-drm-v5-6-rc3

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 18 20:15:50 2021 UTC (2 years, 2 months ago) by riastradh
Branch: LINUX
CVS Tags: linux-drm-v5-6-rc3
Changes since 1.1: +127 -162 lines
Diff to previous 1.1 (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.1.6.4 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:58 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.1.6.3: +7 -6 lines
Diff to previous 1.1.6.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.1.6.3 / (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.1.6.2: +4 -35 lines
Diff to previous 1.1.6.2 (colored) to branchpoint 1.1 (colored)

Merge changes from current as of 20200406

Revision 1.3.2.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.3: +4 -35 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 14 14:34:59 2020 UTC (4 years ago) by maya
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, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

Reduce diffs by side-loading some header files like Linux.

From riastradh

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 14 04:35:20 2020 UTC (4 years ago) by riastradh
Branch: MAIN
Changes since 1.3: +4 -34 lines
Diff to previous 1.3 (colored)

Use a header file hack to cope with Linux/NetBSD namespace clashes.

Currently serves for:

ALIGN
mutex_init
mutex_destroy

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Fri Jan 31 11:25:09 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #677):

	sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v2_2.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/i915/intel_pm.c: revision 1.18
	sys/external/bsd/drm2/dist/drm/radeon/nid.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/i915/intel_pm.c: revision 1.19
	sys/external/bsd/drm2/dist/drm/radeon/rv770d.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/cikd.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v4_2.c: revision 1.2
	sys/external/bsd/drm2/dist/include/drm/drm_fixed.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/sumod.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_reg.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_mode.h: revision 1.5
	sys/external/bsd/drm2/dist/drm/radeon/r600d.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/r600d.h: revision 1.4
	sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd_v1_0.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_r600.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/radeon/evergreend.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/evergreend.h: revision 1.4
	sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.10
	sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.8
	sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.11
	sys/external/bsd/drm2/dist/drm/i915/i915_reg.h: revision 1.13
	sys/external/bsd/drm2/dist/drm/radeon/rv730d.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_rv770_smc.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/radeon/sid.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/radeon/radeon_si_smc.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/radeon/sid.h: revision 1.4

Use unsigned to avoid undefined behavior. Found by kUBSan.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 17 16:02:55 2019 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)

 Set "enabled" value only when hpd.hpd is not RADEON_HPD_NONE(== 0xff) to
avoid 1 << 255. Found by kUBSan.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Aug 17 15:50:05 2019 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored)

 Use unsigned to avoid undefined behavior. Found by kUBSan.

Revision 1.1.6.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:08:26 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.1.6.1: +4663 -0 lines
Diff to previous 1.1.6.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.2.2 / (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.1.2.1: +4663 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

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

Revision 1.1.6.1, Mon Aug 27 14:38:20 2018 UTC (5 years, 6 months ago) by christos
Branch: phil-wifi
Changes since 1.1: +0 -4663 lines
FILE REMOVED

file radeon_r600.c was added on branch phil-wifi on 2019-06-10 22:08:26 +0000

Revision 1.1.2.1, Mon Aug 27 14:38:20 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -4663 lines
FILE REMOVED

file radeon_r600.c was added on branch pgoyette-compat on 2018-09-06 06:56:33 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 27 14:38:20 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: 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-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, pgoyette-compat, netbsd-9

Prefix radeon .c files with `radeon_'.

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>