Skip to content
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

Compile errors #36

Closed
jingoman opened this issue Sep 21, 2014 · 4 comments
Closed

Compile errors #36

jingoman opened this issue Sep 21, 2014 · 4 comments

Comments

@jingoman
Copy link

I tried to upgrade from an existing version, as TVHeadend wasn't showing all the adaptors or able to playback. I think there was a minor kernel upgrade at some point too from 3.2.0-67 to 3.2.0-68.

The upgrade failed. So I tried to install from scratch. On both occasions, I get the following errors during the "make" command:

Unapplying patches
patch -s -f -R -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej
make[3]: Leaving directory /home/user/downloads/tbs_ljavles2/media_build/linux' Applying patches for kernel 3.2.0-68-generic patch -s -f -N -p1 -i ../backports/api_version.patch patch -s -f -N -p1 -i ../backports/pr_fmt.patch 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/au0828/au0828.h.rej make[2]: *** [apply_patches] Error 1 make[2]: Leaving directory/home/user/downloads/tbs_ljavles2/media_build/linux'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/user/downloads/tbs_ljavles2/media_build/v4l'
make: *** [all] Error 2

Is there something wrong? Or something I need to do?

@p2x500
Copy link

p2x500 commented Sep 25, 2014

I think the repo needs updating. I had the same problem and managed to compile using

git clone git://linuxtv.org/media_build.git
cd media_build
git reset --hard 23dfa5a2b8965d0a9ffd5725b867217ece25909

which resets to version of 29th July.

@chriskvik
Copy link

Can you specify exactly what you did? I cant get it to build using :
~ $ git clone git://linuxtv.org/media_build.git
~ $ cd media_build
~ $ git reset --hard 23dfa5a2b8965d0a9ffd5725b867217ece25909
~ $ git pull
~ $ cd ..
~ $ git clone --depth=1 https://github.com/ljalves/linux_media.git -b latest ./media
~ $ cd media_build
~/media_build $ make dir DIR=../media
~/media_build $ make distclean
~/media_build $ make

Did i forget something?

1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej

Im on Debian Sid -> 3.16-2-amd64

@ant-thomas
Copy link

Issue is also here - #33

You need to git checkout 23dfa5a2b8965d0a9ffd5725b867217ece25909e before make when you're in media_build folder.

@ljalves
Copy link
Owner

ljalves commented Oct 23, 2014

Updated the wiki "Installing" page with this info.

@ljalves ljalves closed this as completed Oct 23, 2014
ljalves pushed a commit that referenced this issue Nov 11, 2014
This patch wires up the new syscall sys_bpf() on powerpc.

Passes the tests in samples/bpf:

    #0 add+sub+mul OK
    #1 unreachable OK
    #2 unreachable2 OK
    #3 out of range jump OK
    #4 out of range jump2 OK
    #5 test1 ld_imm64 OK
    #6 test2 ld_imm64 OK
    #7 test3 ld_imm64 OK
    #8 test4 ld_imm64 OK
    #9 test5 ld_imm64 OK
    #10 no bpf_exit OK
    #11 loop (back-edge) OK
    #12 loop2 (back-edge) OK
    #13 conditional loop OK
    #14 read uninitialized register OK
    #15 read invalid register OK
    #16 program doesn't init R0 before exit OK
    #17 stack out of bounds OK
    #18 invalid call insn1 OK
    #19 invalid call insn2 OK
    #20 invalid function call OK
    #21 uninitialized stack1 OK
    #22 uninitialized stack2 OK
    #23 check valid spill/fill OK
    #24 check corrupted spill/fill OK
    #25 invalid src register in STX OK
    #26 invalid dst register in STX OK
    #27 invalid dst register in ST OK
    #28 invalid src register in LDX OK
    #29 invalid dst register in LDX OK
    #30 junk insn OK
    #31 junk insn2 OK
    #32 junk insn3 OK
    #33 junk insn4 OK
    #34 junk insn5 OK
    #35 misaligned read from stack OK
    #36 invalid map_fd for function call OK
    #37 don't check return value before access OK
    #38 access memory with incorrect alignment OK
    #39 sometimes access memory with incorrect alignment OK
    #40 jump test 1 OK
    #41 jump test 2 OK
    #42 jump test 3 OK
    #43 jump test 4 OK

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
[mpe: test using samples/bpf]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
crazycat69 pushed a commit to crazycat69/linux_media that referenced this issue Dec 10, 2021
[Why]
IGT bypass test will set crc source as DPRX,and display DM didn`t check
connection type, it run the test on the HDMI connector ,then the kernel
will be crashed because aux->transfer is set null for HDMI connection.
This patch will skip the invalid connection test and fix kernel crash issue.

[How]
Check the connector type while setting the pipe crc source as DPRX or
auto,if the type is not DP or eDP, the crtc crc source will not be set
and report error code to IGT test,IGT will show the this subtest as no
valid crtc/connector combinations found.

116.779714] [IGT] amd_bypass: starting subtest 8bpc-bypass-mode
[ 117.730996] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 117.731001] #PF: supervisor instruction fetch in kernel mode
[ 117.731003] #PF: error_code(0x0010) - not-present page
[ 117.731004] PGD 0 P4D 0
[ 117.731006] Oops: 0010 [ljalves#1] SMP NOPTI
[ 117.731009] CPU: 11 PID: 2428 Comm: amd_bypass Tainted: G OE 5.11.0-34-generic ljalves#36~20.04.1-Ubuntu
[ 117.731011] Hardware name: AMD CZN/, BIOS AB.FD 09/07/2021
[ 117.731012] RIP: 0010:0x0
[ 117.731015] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[ 117.731016] RSP: 0018:ffffa8d64225bab8 EFLAGS: 00010246
[ 117.731017] RAX: 0000000000000000 RBX: 0000000000000020 RCX: ffffa8d64225bb5e
[ 117.731018] RDX: ffff93151d921880 RSI: ffffa8d64225bac8 RDI: ffff931511a1a9d8
[ 117.731022] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 117.731023] CR2: ffffffffffffffd6 CR3: 000000010d5a4000 CR4: 0000000000750ee0
[ 117.731023] PKRU: 55555554
[ 117.731024] Call Trace:
[ 117.731027] drm_dp_dpcd_access+0x72/0x110 [drm_kms_helper]
[ 117.731036] drm_dp_dpcd_read+0xb7/0xf0 [drm_kms_helper]
[ 117.731040] drm_dp_start_crc+0x38/0xb0 [drm_kms_helper]
[ 117.731047] amdgpu_dm_crtc_set_crc_source+0x1ae/0x3e0 [amdgpu]
[ 117.731149] crtc_crc_open+0x174/0x220 [drm]
[ 117.731162] full_proxy_open+0x168/0x1f0
[ 117.731165] ? open_proxy_open+0x100/0x100

BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1546
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants