You are not logged in.

#1001 2010-03-16 07:08:35

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

==> Applying patches...
  -> Applying 0001-drm-radeon-kms-pm-fix-typo-in-power-table-parsing.patch...
patching file drivers/gpu/drm/radeon/radeon_atombios.c
Hunk #1 FAILED at 1734.
1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon_atombios.c.rej
==> ERROR: Applying 0001-drm-radeon-kms-pm-fix-typo-in-power-table-parsing.patch failed
  -> Applying 0002-drm-radeon-kms-gfx-init-fixes-for-r6xx-r7xx.patch...
patching file drivers/gpu/drm/radeon/r600.c
Hunk #1 succeeded at 1132 (offset 16 lines).
patching file drivers/gpu/drm/radeon/r600_cp.c
patching file drivers/gpu/drm/radeon/rv770.c
Hunk #1 succeeded at 647 (offset -1 lines).
  -> Applying 0003-i2c-algo-bit-Add-pre-and-post-xfer-hooks.patch...
patching file drivers/i2c/algos/i2c-algo-bit.c
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file drivers/i2c/algos/i2c-algo-bit.c.rej
patching file include/linux/i2c-algo-bit.h
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/linux/i2c-algo-bit.h.rej
==> ERROR: Applying 0003-i2c-algo-bit-Add-pre-and-post-xfer-hooks.patch failed
  -> Applying 0004-drm-radeon-kms-use-new-pre-post_xfer-i2c-bit-algo-h.patch...
patching file drivers/gpu/drm/radeon/radeon_connectors.c
patching file drivers/gpu/drm/radeon/radeon_i2c.c
Hunk #2 succeeded at 182 with fuzz 1.
patching file drivers/gpu/drm/radeon/radeon_mode.h
Hunk #1 succeeded at 170 (offset -3 lines).
Hunk #2 succeeded at 426 (offset -4 lines).
  -> Applying 0005-drm-radeon-kms-add-gui_idle-callback.patch...
patching file drivers/gpu/drm/radeon/r100.c
Hunk #1 succeeded at 65 (offset -1 lines).
patching file drivers/gpu/drm/radeon/r600.c
Hunk #1 succeeded at 74 (offset -1 lines).
patching file drivers/gpu/drm/radeon/radeon.h
Hunk #1 succeeded at 795 (offset -3 lines).
Hunk #2 succeeded at 1164 (offset -19 lines).
can't find file to patch at input line 82
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
|index 3e40bc4..2383696 100644
|--- a/drivers/gpu/drm/radeon/radeon_asic.c
|+++ b/drivers/gpu/drm/radeon/radeon_asic.c
--------------------------
File to patch:

No patches working...

Offline

#1002 2010-03-16 08:02:27

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: Discussion: the ati/radeon open source drivers & radeon repository

The patches are based on branch drm-radeon-testing of drm-next git kernel source tree.
So try to apply them to drm-radeon-testing.

Last edited by endlessroad1991 (2010-03-16 08:17:18)

Offline

#1003 2010-03-16 08:28:33

yimm
Member
From: France
Registered: 2009-10-16
Posts: 106

Re: Discussion: the ati/radeon open source drivers & radeon repository

gtklocker wrote:

Well, another question before compiling the kernel...
I have some patches into "PKGBUILD-directory"/patches. This part of my PKGBUILD is right to do that work ?

Yes, it works. I use it to compile my custom kernel with PM patches to drm-radeon-testing branch.

These patches don't work with kernel26-git ( this branch /torvalds/linux-2.6.git ).

Last edited by yimm (2010-03-16 08:43:12)

Offline

#1004 2010-03-16 08:58:10

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

Can you upload the (x86-64) built package, somewhere ? smile

Offline

#1005 2010-03-16 09:43:38

yimm
Member
From: France
Registered: 2009-10-16
Posts: 106

Re: Discussion: the ati/radeon open source drivers & radeon repository

I have no time to compile a full kernel (I use a custom config for my laptop)
Try this PKGBUILD.
http://pastebin.com/zG43SXvP
with all patches in patches folder.

Offline

#1006 2010-03-16 10:22:35

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

@yimm: The PKGBUILD had some syntax errors... anyway, I corrected them, and I'll upload the update it version smile Thank you smile

/edit: It can't find files to patch, again.

E.g. -->

|--- a/drivers/gpu/drm/radeon/r600.c
|+++ b/drivers/gpu/drm/radeon/r600.c

Doesn't exist -->

$ ls /mnt/playground/packs/kernel26-git/src/drm-2.6-build/drivers/gpu/drm/radeon/
Makefile       radeon_cp.c   radeon_ioc32.c  radeon_microcode.h
r300_cmdbuf.c  radeon_drv.c  radeon_irq.c    radeon_state.c
r300_reg.h     radeon_drv.h  radeon_mem.c

Same with

|--- a/drivers/gpu/drm/radeon/radeon_atombios.c
|+++ b/drivers/gpu/drm/radeon/radeon_atombios.c

sad

Last edited by gtklocker (2010-03-16 10:43:05)

Offline

#1007 2010-03-16 11:16:59

yimm
Member
From: France
Registered: 2009-10-16
Posts: 106

Re: Discussion: the ati/radeon open source drivers & radeon repository

gtklocker wrote:

@yimm: The PKGBUILD had some syntax errors... anyway, I corrected them, and I'll upload the update it version smile Thank you smile

Certainly because of pastebin.

Hm...
for me :

ls drm-2.6-build/drivers/gpu/drm/radeon/ | grep r600.c
r600.c
r600_cp.c
r600_cs.c
ls drm-2.6-build/drivers/gpu/drm/radeon/ | grep radeon_atombios.c
radeon_atombios.c

See here :
http://git.kernel.org/?p=linux/kernel/g … on-testing

These files exist.
There are a lot of missing files in your folder

Last edited by yimm (2010-03-16 11:22:04)

Offline

#1008 2010-03-16 11:23:09

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

??

I can't understand why it happens, everything is done correctly here... wtf ? tongue

Offline

#1009 2010-03-16 11:51:02

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: Discussion: the ati/radeon open source drivers & radeon repository

@gtklocker: you should do "git checkout" to checkout to the drm-radeon-testing branch:
In "%PKGBUILD Directory%/drm-2.6", do
git checkout -b drm-radeon-testing origin/drm-radeon-testing
I guess you didn't do it. That's why a lot of files are missing.

Last edited by endlessroad1991 (2010-03-16 11:57:29)

Offline

#1010 2010-03-16 12:02:41

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

Yes, I did that. It is part of the pkgbuild -->

        msg2 "Cloning the project..."
        warning "The initial clone will download approximately 300 mb"
        git clone --mirror "$_gitroot" "$_gitname" && git checkout -b drm-radeon-testing origin/drm-radeon-testing || return 1

Offline

#1011 2010-03-16 12:06:18

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: Discussion: the ati/radeon open source drivers & radeon repository

Just try to do it again smile

Offline

#1012 2010-03-16 12:18:51

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

$ git checkout -b drm-radeon-testing origin/drm-radeon-testing
fatal: This operation must be run in a work tree

Offline

#1013 2010-03-16 12:22:22

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: Discussion: the ati/radeon open source drivers & radeon repository

What about do it in "%PKGBUILD Directory%/src/drm-2.6-build"?

Offline

#1014 2010-03-16 12:28:13

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

big_smile

This solves my problem, I'll add it to the PKGBUILD, thanks smile

Offline

#1015 2010-03-16 12:43:33

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

The first two patches couldn't be applied. The other are ok.

Offline

#1016 2010-03-16 12:51:45

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: Discussion: the ati/radeon open source drivers & radeon repository

Look at the drm-radeon-testing source tree, you will find the first 2 patches have been applied smile
So the first 2 patches are unnecessary now, you can delete them from your PKGBUILD

Last edited by endlessroad1991 (2010-03-16 12:52:41)

Offline

#1017 2010-03-16 14:11:37

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

platform radeon_cp.0: firmware: using built-in firmware radeon/RS780_pfp.bin
platform radeon_cp.0: firmware: using built-in firmware radeon/RS780_me.bin
platform radeon_cp.0: firmware: requesting radeon/R600_rlc.bin
r600_cp: Failed to load firmware "radeon/R600_rlc.bin"
radeon 0000:01:05.0: disabling GPU acceleration

Again !!! It's built-in now, why does this continue to happen ?!

Offline

#1018 2010-03-16 14:16:40

yimm
Member
From: France
Registered: 2009-10-16
Posts: 106

Re: Discussion: the ati/radeon open source drivers & radeon repository

It's not a good day for you to test yikes
Hm... R600_rlc.bin exist?

Offline

#1019 2010-03-16 14:26:30

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

$ locate R600_rlc.bin                                                         
/lib/firmware/radeon/R600_rlc.bin

Offline

#1020 2010-03-16 14:44:59

yimm
Member
From: France
Registered: 2009-10-16
Posts: 106

Re: Discussion: the ati/radeon open source drivers & radeon repository

Hmm... no idea for the moment.

Last edited by yimm (2010-03-16 14:46:18)

Offline

#1021 2010-03-16 15:00:39

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

sad frakking kernel sad

Offline

#1022 2010-03-16 15:32:09

mixi
Member
From: Germany
Registered: 2009-11-30
Posts: 13

Re: Discussion: the ati/radeon open source drivers & radeon repository

gtklocker wrote:

$ locate R600_rlc.bin                                                         
/lib/firmware/radeon/R600_rlc.bin

Is the module loaded while root isn't mounted (initramfs or directly built into the kernel)? If yes try to install radeon-initrd from AUR and add "radeon" to the initramfs hooks in mkinitcpio,conf.

Offline

#1023 2010-03-16 15:57:31

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: Discussion: the ati/radeon open source drivers & radeon repository

@gtklocker:
mixi is right.I think you are using "early start" KMS. http://wiki.archlinux.org/index.php/ATI#Early_start
If you're using early start KMS, instead of installing radeon-initrd from AUR, you can do:
    1. Add "radeon" to MODULES line of /etc/mkinitcpio.conf
    2. Add "/lib/firmware/radeon/R600_rlc.bin" to FILES line of /etc/mkinitcpio.conf
    3. Run "mkinitcpio -p XXX" (XXX is the name of your initrd file without suffix name. If your initrd file is kernel26-git.img, then XXX is kernel26-git)
    4. Reboot
On my laptop, I didn't install radeon-initrd from AUR but did as the steps above, and then succeeded to get early start KMS.

Last edited by endlessroad1991 (2010-03-16 16:04:28)

Offline

#1024 2010-03-16 16:39:45

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Discussion: the ati/radeon open source drivers & radeon repository

I'm using KMS right configured to the kernel --> CONFIG_DRM_RADEON_KMS=y.

Offline

#1025 2010-03-16 23:56:54

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: Discussion: the ati/radeon open source drivers & radeon repository

I have someone interested in buying an AGP HD4650 or HD4670, has anyone had any experience with either of them & the open drivers?

Also, can anyone recommend an AGP ATi card that they know from experience works well with the open drivers?

He is rightfully concerned that he may buy into trouble.

Last edited by handy (2010-03-17 01:32:09)


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

Board footer

Powered by FluxBB