-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade libdrm-2.4.75 to libdrm-2.4.109 #25
Open
klausz65
wants to merge
1
commit into
illumos:master
Choose a base branch
from
klausz65:update-to-2.4.109
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
Dec-30-2021 - Klaus Ziegler | ||
|
||
Issues left over up from release 2.4.109: | ||
|
||
1. This is just the upgrade from libdrm-2.4.75 to 2.4.109, no new functionality | ||
of libdrm-2.4.109 has been checked or reflected in any manifest file, this | ||
will be done in subsequent #PRs. | ||
|
||
2. Implement dynamic creation of the new header file: | ||
|
||
- generated_static_table_fourcc.h | ||
|
||
into the build process of gfx-drm using Python, the regular build process | ||
of libdrm uses meson to build this header file. For the moment, the supplied | ||
header file was created using a regular meson build of the library on SPARC | ||
and Intel platforms to make sure there are no differences. | ||
|
||
3. The creation of manual pages has been disabled in usr/src/man/Makefile | ||
for subdirectories man3 and man7, because illumos based distributions up to | ||
date don't include rst2man(1) command. | ||
|
||
4. Get rid of 32bit support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
Dec-30-2021 - Klaus Ziegler | ||
|
||
To upgrade libdrm: | ||
|
||
change LIBDRM_VERS in | ||
usr/src/common/libdrm/Makefile | ||
usr/src/common/libdrm/Makefile.drm | ||
LIBDRM_HASH in | ||
usr/src/common/libdrm/Makefile | ||
|
||
If the file extension of the file to be downloaded has changed, it must be | ||
changed in usr/src/pkg/manifests/x11-library-libdrm.mf and LIBDRM_ARCHIVE in | ||
usr/src/common/libdrm/Makefile must be modified accordingly. | ||
|
||
# NOTE: if you want to contribute changes to this graphics/DRM gate, | ||
# please use your own fork of gfx-drm.git and substitute HTTPS/URL below, | ||
# to match your repository. | ||
|
||
After you have setup a build environment as follows: | ||
git clone https://github.com/illumos/gfx-drm.git | ||
cd gfx-drm | ||
export BLDENV=tools/bldenv | ||
chmod 755 tools/bldenv | ||
|
||
edit myenv.sh to suite your needs, and start the first build: | ||
/usr/bin/env -i $BLDENV myenv.sh "cd usr/src; make install" | ||
|
||
most likely this first build will err'out right after unpacking | ||
the new library archive. At this stage the make target: check | ||
is run, which checks differences of gfx-drm headers and the | ||
new library supplied headers, these 5 headers will be checked: | ||
|
||
drm.h drm_fourcc.h drm_mode.h drm_sarea.h i915_drm.h | ||
|
||
To pass check target, generate patch files for these headers: | ||
cd usr/src/common/libdrm/libdrm-2.4.<new-version>/include/drm | ||
gdiff -u drm.h <WS>/usr/src/uts/common/drm/drm.h > /tmp/drm.h.patch | ||
and the others as well, then apply these patches to headers | ||
contained in usr/src/uts/common/drm and restart the build. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ ELFEDIT= /usr/bin/elfedit | |
ELFSIGN= /usr/bin/elfsign | ||
DTRACE= /usr/sbin/dtrace -xnolibs | ||
UNIQ= /usr/bin/uniq | ||
TAR= /usr/bin/tar | ||
TAR= /usr/bin/gtar | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was there a problem with plain old tar? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, we need to unpack an xz file now. |
||
ASTBINDIR= /usr/ast/bin | ||
MSGCC= $(ASTBINDIR)/msgcc | ||
MSGFMT= /usr/bin/msgfmt -s | ||
|
@@ -300,7 +300,7 @@ CCABS32= -Wc,-xcode=abs32 | |
# | ||
# generate v9 code which tolerates callers using the v7 ABI, for the sake of | ||
# system calls. | ||
CC32BITCALLERS= -_gcc=-massume-32bit-callers | ||
CC32BITCALLERS= | ||
|
||
# GCC, especially, is increasingly beginning to auto-inline functions and | ||
# sadly does so separately not under the general -fno-inline-functions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
PROG= \ | ||
drmsl \ | ||
hash \ | ||
random \ | ||
drmdevice | ||
|
||
include ../../Makefile.drm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
usr/src/common/libdrm/libdrm-2.4.109/generated_static_table_fourcc.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* AUTOMATICALLY GENERATED by gen_table_fourcc.py. You should modify | ||
that script instead of adding here entries manually! */ | ||
static const struct drmFormatModifierInfo drm_format_modifier_table[] = { | ||
{ DRM_MODIFIER_INVALID(NONE, INVALID_MODIFIER) }, | ||
{ DRM_MODIFIER_LINEAR(NONE, LINEAR) }, | ||
{ DRM_MODIFIER_INTEL(X_TILED, X_TILED) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED, Y_TILED) }, | ||
{ DRM_MODIFIER_INTEL(Yf_TILED, Yf_TILED) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_CCS, Y_TILED_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Yf_TILED_CCS, Yf_TILED_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_GEN12_RC_CCS, Y_TILED_GEN12_RC_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_GEN12_MC_CCS, Y_TILED_GEN12_MC_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_GEN12_RC_CCS_CC, Y_TILED_GEN12_RC_CCS_CC) }, | ||
{ DRM_MODIFIER(SAMSUNG, 64_32_TILE, 64_32_TILE) }, | ||
{ DRM_MODIFIER(SAMSUNG, 16_16_TILE, 16_16_TILE) }, | ||
{ DRM_MODIFIER(QCOM, COMPRESSED, COMPRESSED) }, | ||
{ DRM_MODIFIER(VIVANTE, TILED, TILED) }, | ||
{ DRM_MODIFIER(VIVANTE, SUPER_TILED, SUPER_TILED) }, | ||
{ DRM_MODIFIER(VIVANTE, SPLIT_TILED, SPLIT_TILED) }, | ||
{ DRM_MODIFIER(VIVANTE, SPLIT_SUPER_TILED, SPLIT_SUPER_TILED) }, | ||
{ DRM_MODIFIER(NVIDIA, TEGRA_TILED, TEGRA_TILED) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_ONE_GOB, 16BX2_BLOCK_ONE_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_TWO_GOB, 16BX2_BLOCK_TWO_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_FOUR_GOB, 16BX2_BLOCK_FOUR_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_EIGHT_GOB, 16BX2_BLOCK_EIGHT_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_SIXTEEN_GOB, 16BX2_BLOCK_SIXTEEN_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_THIRTYTWO_GOB, 16BX2_BLOCK_THIRTYTWO_GOB) }, | ||
{ DRM_MODIFIER(BROADCOM, VC4_T_TILED, VC4_T_TILED) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND32, SAND32) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND64, SAND64) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND128, SAND128) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND256, SAND256) }, | ||
{ DRM_MODIFIER(BROADCOM, UIF, UIF) }, | ||
{ DRM_MODIFIER(ARM, 16X16_BLOCK_U_INTERLEAVED, 16X16_BLOCK_U_INTERLEAVED) }, | ||
{ DRM_MODIFIER(ALLWINNER, TILED, TILED) }, | ||
}; | ||
static const struct drmFormatModifierVendorInfo drm_format_modifier_vendor_table[] = { | ||
{ DRM_FORMAT_MOD_VENDOR_NONE, "NONE" }, | ||
{ DRM_FORMAT_MOD_VENDOR_INTEL, "INTEL" }, | ||
{ DRM_FORMAT_MOD_VENDOR_AMD, "AMD" }, | ||
{ DRM_FORMAT_MOD_VENDOR_NVIDIA, "NVIDIA" }, | ||
{ DRM_FORMAT_MOD_VENDOR_SAMSUNG, "SAMSUNG" }, | ||
{ DRM_FORMAT_MOD_VENDOR_QCOM, "QCOM" }, | ||
{ DRM_FORMAT_MOD_VENDOR_VIVANTE, "VIVANTE" }, | ||
{ DRM_FORMAT_MOD_VENDOR_BROADCOM, "BROADCOM" }, | ||
{ DRM_FORMAT_MOD_VENDOR_ARM, "ARM" }, | ||
{ DRM_FORMAT_MOD_VENDOR_ALLWINNER, "ALLWINNER" }, | ||
{ DRM_FORMAT_MOD_VENDOR_AMLOGIC, "AMLOGIC" }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
diff ... libdrm-2.4.73/freedreno/kgsl/kgsl_bo.c | ||
--- libdrm-2.4.73-ref/freedreno/kgsl/kgsl_bo.c Wed Aug 24 12:57:41 2016 | ||
+++ libdrm-2.4.73/freedreno/kgsl/kgsl_bo.c Sat Dec 31 12:27:53 2016 | ||
@@ -32,7 +32,5 @@ | ||
--- libdrm-2.4.109/freedreno/kgsl/kgsl_bo.c.orig 2021-11-25 21:33:02.000000000 +0000 | ||
+++ libdrm-2.4.109/freedreno/kgsl/kgsl_bo.c 2021-12-29 08:58:14.846699228 +0000 | ||
@@ -28,7 +28,9 @@ | ||
|
||
#include "kgsl_priv.h" | ||
|
||
-#include <linux/fb.h> | ||
- | ||
+#ifndef __sun | ||
#include <linux/fb.h> | ||
+#endif | ||
|
||
static int set_memtype(struct fd_device *dev, uint32_t handle, uint32_t flags) | ||
{ | ||
diff ... libdrm-2.4.73/freedreno/kgsl/kgsl_ringbuffer.c | ||
--- libdrm-2.4.73-ref/freedreno/kgsl/kgsl_ringbuffer.c Mon Nov 14 12:55:20 2016 | ||
+++ libdrm-2.4.73/freedreno/kgsl/kgsl_ringbuffer.c Sat Dec 31 18:02:19 2016 | ||
@@ -146,7 +146,8 @@ | ||
ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr; | ||
ibdesc.hostptr = kgsl_ring->bo->hostptr; | ||
ibdesc.sizedwords = 0x145; | ||
- req.timestamp = (uint32_t)kgsl_ring->bo->hostptr; | ||
+ /* This way to avoid GCC -Wpointer-to-int-cast */ | ||
+ req.timestamp = (unsigned int) (unsigned long) kgsl_ring->bo->hostptr; | ||
} | ||
|
||
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally causes less problems for people if you go ahead and check in the generated file,
and provide a make rule to (optionally) verify that regenerating the file produces the same.
This is the same approach described in UPDATE_LIB.
Oh, looks like you did "git add" that file, right?
Is there a rule to verify if matches what gets generated?