#
c8b0c33b |
| 24-Jun-2024 |
Doug Moore <dougm@FreeBSD.org> |
log2: move log2 functions from linuxkpi to libkern
Linux has a header file that defines an ilog2 function and some simple functions/macros that use it: roundup_pow_of_two, is_power_of_2, rounddown_p
log2: move log2 functions from linuxkpi to libkern
Linux has a header file that defines an ilog2 function and some simple functions/macros that use it: roundup_pow_of_two, is_power_of_2, rounddown_pow_of_two, and order_base_2. This change moves three of those simple functions (all but is_power_of_2) from linuxkpi to libkern. It also deletes a few implementations of these functions that have previously been copied into code for various device drivers, so that they can use the libkern version. The is_power_of_2 macro was not moved because powerof2 in param.h provides almost the same service already (except that they disagree about whether 0 is a power of two).
Since the linux definitions of these functions were copied into FreeBSD 11 years ago, linux has improved them, and this change provides those improvements. In particular, a giant table of log values for evaluating ilog2 for constant values is no longer necessary.
Reviewed by: alc, markj (previous version) Differential Revision: https://reviews.freebsd.org/D45536
show more ...
|
#
c70c791f |
| 06-Jun-2024 |
Mark Johnston <markj@FreeBSD.org> |
drm2: Remove one more implementation of ilog2()
Reviewed by: dougm Fixes: b0056b31e900 ("libkern: add ilog2 macro") Differential Revision: https://reviews.freebsd.org/D45504
|
Revision tags: release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
ef545fe7 |
| 09-Sep-2023 |
Mateusz Guzik <mjg@FreeBSD.org> |
drm2: fix build after abs64 became global
Fixes: 229c65a83fb ("kern: Globally define abs64") Sponsored by: Rubicon Communications, LLC ("Netgate")
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0 |
|
#
662c3e20 |
| 02-Sep-2020 |
Niclas Zeising <zeising@FreeBSD.org> |
drm2: Further improve deprecation message
Further improve the drm2 deprecation message, only displaying information about the port for relevant architectures, and skipping the message completely fro
drm2: Further improve deprecation message
Further improve the drm2 deprecation message, only displaying information about the port for relevant architectures, and skipping the message completely from arm, which uses some parts of drm2 still.
This is mostly intended to be merged to 12, since the base bits of drm2 on FreeBSD 13 are only really used on arm.
Reviewed by: manu, mmel Approved by: manu MFC after: 3 days X-MFC-with: r364737 Differential Revision: https://reviews.freebsd.org/D26275
show more ...
|
#
e2515283 |
| 27-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
8d9b400f |
| 25-Aug-2020 |
Niclas Zeising <zeising@FreeBSD.org> |
drm2: Update deprecation message
Update the deprecation message in the drm2 (aka legacy drm) drivers to point towards the graphics/drm-kmod ports for all architectures, not just amd64. drm-kmod has
drm2: Update deprecation message
Update the deprecation message in the drm2 (aka legacy drm) drivers to point towards the graphics/drm-kmod ports for all architectures, not just amd64. drm-kmod has support for more architectures these days, and the graphics/drm-legacy-kmod port is being deprecated.
Approved by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26174
show more ...
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
c6879c6c |
| 23-Oct-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339015 through r339669.
|
#
468002c5 |
| 20-Oct-2018 |
Warner Losh <imp@FreeBSD.org> |
Add updating entry for DRM
Update messaging for which drm module to install. Add guidance on what hardware is supported (which should be copied into the release notes). Note: the in tree drivers are
Add updating entry for DRM
Update messaging for which drm module to install. Add guidance on what hardware is supported (which should be copied into the release notes). Note: the in tree drivers are abandonware. There has been no organized support for them for many years, and the plan is to still remove them for all but arm once the transition to drm-*kmod is complete. Also note that WITHOUT_MODULE_DRM and WITHOUT_MODULE_DRM2 should generally be added to src.conf for anybody using the drm-*kmod ports. That will become default in 13 soon, however.
Approved by: FreeBSD Graphics Team Relnotes: Yes MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D17451
show more ...
|
#
da2d1e9d |
| 29-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338298 through r338391.
|
#
264d4ffd |
| 28-Aug-2018 |
Warner Losh <imp@FreeBSD.org> |
Add big, nasty abandonware tags to this code.
This code works for some people, but hasn't been updated in a long time. Still allow people to use this code for the moment, but put a big, nasty obsole
Add big, nasty abandonware tags to this code.
This code works for some people, but hasn't been updated in a long time. Still allow people to use this code for the moment, but put a big, nasty obsolete message to inform and encourage people to move to the port.
Approved by: re@ (gjb) Differential Review: https://reviews.freebsd.org/D16894
show more ...
|
#
592ffb21 |
| 24-Aug-2018 |
Warner Losh <imp@FreeBSD.org> |
Revert drm2 removal.
Revert r338177, r338176, r338175, r338174, r338172
After long consultations with re@, core members and mmacy, revert these changes. Followup changes will be made to mark them a
Revert drm2 removal.
Revert r338177, r338176, r338175, r338174, r338172
After long consultations with re@, core members and mmacy, revert these changes. Followup changes will be made to mark them as deprecated and prent a message about where to find the up-to-date driver. Followup commits will be made to make this clear in the installer. Followup commits to reduce POLA in ways we're still exploring.
It's anticipated that after the freeze, this will be removed in 13-current (with the residual of the drm2 code copied to sys/arm/dev/drm2 for the TEGRA port's use w/o the intel or radeon drivers).
Due to the impending freeze, there was no formal core vote for this. I've been talking to different core members all day, as well as Matt Macey and Glen Barber. Nobody is completely happy, all are grudgingly going along with this. Work is in progress to mitigate the negative effects as much as possible.
Requested by: re@ (gjb, rgrimes)
show more ...
|
Revision tags: release/11.2.0, release/10.4.0, release/11.1.0 |
|
#
9b3ece1c |
| 04-Feb-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r313243
|
#
b7a18075 |
| 28-Jan-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Really revert 312923 this time
|
#
b4b4b530 |
| 28-Jan-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Revert crap accidentally committed
|
#
814aaaa7 |
| 28-Jan-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Revert r312923 a better approach will be taken later
|
#
2e8e6c3a |
| 28-Jan-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Make the drm2 module depend on linuxkpi
Use linux memory allocation to reduce diff with upstream
|
#
14f850f3 |
| 27-Jan-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r312720 through r312893.
|
#
21b73749 |
| 27-Jan-2017 |
Mateusz Guzik <mjg@FreeBSD.org> |
Introduce __read_mostly and __exclusive_cache_line macros.
The intended use is to annotate frequently used globals which either rarely change (and thus can be grouped in the same cacheline) or are a
Introduce __read_mostly and __exclusive_cache_line macros.
The intended use is to annotate frequently used globals which either rarely change (and thus can be grouped in the same cacheline) or are an atomic counter (which means it may benefit from being the only variable in the cacheline).
Linker script support is provided only for amd64. Architectures without it risk having other variables put in, i.e. as if they were not annotated. This is harmless from correctness point of view.
Reviewed by: bde (previous version) MFC after: 1 month
show more ...
|
#
67bc8c8b |
| 19-Nov-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r308491 through r308841.
|
#
aa1f683b |
| 13-Nov-2016 |
Michal Meloun <mmel@FreeBSD.org> |
Allow DRM2 code to be built on platforms without AGP. This patch is taken from original drm-3.8 code.
Differential Revision: https://reviews.freebsd.org/D8454 MFC after: 3 weeks
|
Revision tags: release/11.0.1, release/11.0.0 |
|
#
e5619a89 |
| 14-Jul-2016 |
Enji Cooper <ngie@FreeBSD.org> |
Always panic if an invalid capability is passed to `capable(..)` instead of just with INVARIANTS
rwatson's point was valid in the sense that if the data passed at runtime is invalid, it should alway
Always panic if an invalid capability is passed to `capable(..)` instead of just with INVARIANTS
rwatson's point was valid in the sense that if the data passed at runtime is invalid, it should always trip the invariant, not just in the debug case. This is a deterrent against malicious input, or input caused by hardware errors.
MFC after: 4 days X-MFC with: r302577 Requested by: rwatson Sponsored by: EMC / Isilon Storage Division
show more ...
|
#
e3c76b36 |
| 11-Jul-2016 |
Enji Cooper <ngie@FreeBSD.org> |
Add missing default case to capable(..) function definition
By definition (enum __drm_capabilities), cases other than CAP_SYS_ADMIN aren't possible. Add in a KASSERT safety belt and return false in
Add missing default case to capable(..) function definition
By definition (enum __drm_capabilities), cases other than CAP_SYS_ADMIN aren't possible. Add in a KASSERT safety belt and return false in !INVARIANTS case if an invalid value is passed in, as it would be a programmer error.
This fixes a -Wreturn-type error with gcc 5.3.0.
Differential Revision: https://reviews.freebsd.org/D7188 MFC after: 1 week Reported by: devel/amd64-gcc (5.3.0) Reviewed by: dumbbell Sponsored by: EMC / Isilon Storage Division
show more ...
|
Revision tags: release/10.3.0 |
|
#
7d536dc8 |
| 10-Mar-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
740be6d7 |
| 08-Mar-2016 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
drm/i915: Update to match Linux 3.8.13
This update brings initial support for Haswell GPUs.
Tested by: Many users of FreeBSD, PC-BSD and HardenedBSD Relnotes: yes Sponsored by: The FreeBSD Foundati
drm/i915: Update to match Linux 3.8.13
This update brings initial support for Haswell GPUs.
Tested by: Many users of FreeBSD, PC-BSD and HardenedBSD Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5554
show more ...
|