The NetBSD Project

CVS log for src/sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.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.13 / (download) - annotate - [select for diffs], Mon Nov 6 14:33:51 2023 UTC (4 months, 3 weeks ago) by tnn
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.12: +15 -4 lines
Diff to previous 1.12 (colored) to selected 1.6 (colored)

radeon: fix and enable ACPI methods for getting ROM BIOS

The hacky way of getting the BIOS mapped only works on x86. ACPI
should be preferred if available. Makes BIOS reading though VFCT
work on aarch64 with EDK2. (But only if EDK2 has POSTed the GPU.)

XXX amdgpu should get the same treatment.

Revision 1.12 / (download) - annotate - [select for diffs], Sat May 28 01:07:47 2022 UTC (22 months ago) by manu
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, 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.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.6 (colored)

Let radeon DRM driver build on ports that lack ACPI

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 28 17:15:29 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (colored) to selected 1.6 (colored)

drm: Fix ACPI crud in ALL kernel build.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 27 14:24:27 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.6 (colored)

drm: Use ACPI_FREE, not kfree, for ACPI_ALLOCATE_BUFFER result.

Most of this code is not currently enabled, but it might be enabled
soon.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 27 14:23:16 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.8: +13 -3 lines
Diff to previous 1.8 (colored) to selected 1.6 (colored)

radeon: Make radeon_bios.c ACPI stuff build.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 18 23:45:43 2021 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.7: +52 -43 lines
Diff to previous 1.7 (colored) to selected 1.6 (colored)

Merge linux-drm-v5-6-rc3

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 18 20:15:46 2021 UTC (2 years, 3 months ago) by riastradh
Branch: LINUX
CVS Tags: linux-drm-v5-6-rc3
Changes since 1.1.1.2: +50 -41 lines
Diff to previous 1.1.1.2 (colored) to selected 1.6 (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.4.18.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:26 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.4.18.1: +2 -3 lines
Diff to previous 1.4.18.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

Merge changes from current as of 20200406

Revision 1.6.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.6: +2 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Feb 14 14:34:59 2020 UTC (4 years, 1 month 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.6: +2 -3 lines
Diff to previous 1.6 (colored)

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

From riastradh

Revision 1.4.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:08:26 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +20 -28 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

Sync with HEAD

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:32 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.4: +20 -28 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

Sync with HEAD

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

Revision 1.6 / (download) - annotate - [selected], Mon Aug 27 13:55:59 2018 UTC (5 years, 7 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.5: +3 -4 lines
Diff to previous 1.5 (colored)

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>

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 27 04:58:36 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.4: +23 -30 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

merge linux-drm-v4-4-143

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Aug 27 01:34:58 2018 UTC (5 years, 7 months ago) by riastradh
Branch: LINUX
CVS Tags: linux-drm-v4-4-143
Changes since 1.1.1.1: +15 -9 lines
Diff to previous 1.1.1.1 (colored) to selected 1.6 (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.2.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:57 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.2.6.2: +27 -1 lines
Diff to previous 1.2.6.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.6 (colored)

update from HEAD

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:05 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.2: +27 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.6 (colored)

Sync with HEAD

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Thu Jul 30 16:29:38 2015 UTC (8 years, 8 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.2.4.1: +1 -1 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.6 (colored)

Pull up following revision(s) (requested by riastradh in ticket #911):
	sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c: revision 1.3
Fix two issues in NetBSD implementation of igp_read_bios_from_vram():
 * Allocate the correct buffer for the VGA BIOS image.
 * Abort if buffer allocation failed, not if buffer allocation succeeded.
Not directly tested, but I can't imagine this makes anything worse.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Thu Jul 30 15:46:41 2015 UTC (8 years, 8 months ago) by snj
Branch: netbsd-7
Changes since 1.2: +26 -0 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

Pull up following revision(s) (requested by riastradh in ticket #906):
	sys/external/bsd/drm2/include/linux/pci.h: revisions 1.18, 1.19
	sys/external/bsd/drm2/dist/drm/radeon/radeon_bios.c: revision 1.4
Save the location of the found ROM so caller can bus_space_read it.
--
Use bus_space_read rather than kmemdup to read ROM.
jakllsch@ reports that on some 64-bit systems, kmemdup does 8-byte
reads, which yield garbage in the high word.  bus_space_read_region_1
does 1-byte reads instead, which seem to work.
Derived from a patch from jakllsch@.
--
Fix type of pd_rom_found_size: it's a size, not a handle.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 24 18:23:23 2015 UTC (8 years, 9 months ago) by riastradh
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, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, 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.3: +26 -0 lines
Diff to previous 1.3 (colored) to selected 1.6 (colored)

Use bus_space_read rather than kmemdup to read ROM.

jakllsch@ reports that on some 64-bit systems, kmemdup does 8-byte
reads, which yield garbage in the high word.  bus_space_read_region_1
does 1-byte reads instead, which seem to work.

Derived from a patch from jakllsch@.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 13 18:18:18 2015 UTC (8 years, 9 months ago) by jakllsch
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

Fix two issues in NetBSD implementation of igp_read_bios_from_vram():

 * Allocate the correct buffer for the VGA BIOS image.
 * Abort if buffer allocation failed, not if buffer allocation succeeded.

Not directly tested, but I can't imagine this makes anything worse.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:18 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.6.1: +740 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) to selected 1.6 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:37 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2.2.1: +740 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.6 (colored)

Rebase.

Revision 1.2.6.1, Wed Jul 16 20:59:57 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.2: +0 -740 lines
FILE REMOVED

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

Revision 1.2.2.1, Wed Jul 16 20:59:57 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2: +0 -740 lines
FILE REMOVED

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

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jul 16 20:59:57 2014 UTC (9 years, 8 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-base, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: tls-maxphys, tls-earlyentropy, nick-nhusb, netbsd-7
Changes since 1.1: +39 -0 lines
Diff to previous 1.1 (colored) to selected 1.6 (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:28 2014 UTC (9 years, 8 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) to selected 1.6 (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:28 2014 UTC (9 years, 8 months ago) by riastradh
Branch: MAIN
Diff to selected 1.6 (colored)

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>