Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770 [RESOLVED]

2019-12-26 Thread gevisz
чт, 26 дек. 2019 г. в 18:12, gevisz :
>
> чт, 26 дек. 2019 г. в 17:43, gevisz :
> >
> > чт, 26 дек. 2019 г. в 15:56, Mick :
> > >
> > > On Thursday, 26 December 2019 13:40:26 GMT gevisz wrote:
> > >
> > > > [1.098401] [drm] Loading RV730
> > > > [1.098466] radeon :01:00.0: Direct firmware load for
> > > > radeon/RV730_pfp.bin failed with error -2
> > > > [1.098543] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin"
> > > > [1.098599] [rdm:rv770_init] *ERROR* Failed to load firmware!
> > > > [1.098655] radeon :01:00.0: Fatal error during GPU init
> > > > [1.098710] radeon: finishing device.
> > > >
> > > > I have not included RV730_pfp.bin to EXTRA_FIRMWARE kernel variable.
> > > > (And should not, according to the documentation.)
> > >
> > >
> > > Interesting!  o_O
> > >
> > > I remember the firmware blobs changing at some point in the past and my 
> > > dmesg
> > > on this laptop complained about missing firmware.
> > >
> > > I don't know if your card possesses the chipset the OS says it is.  In the
> > > first instance I suggest you add in the kernel what dmesg reports as 
> > > failing
> > > to load "radeon/RV730_pfp.bin".  If the hardware wants it, you better 
> > > provide
> > > it. Then reboot and see if it starts up happily, or reports of more 
> > > firmware
> > > blobs failing to load.
> >
> > Now, it
> > [1.098944] r600_cp: Failed to load firmware "radeon/RV730_me.bin"
>
> It seems that it finally was satisfied with those two blobs added.
> At least I can now start twm.

Yes, have just installed a normal WM and works now in a graphical mode.
Thanks to all who have tried to help and a special thanks to Mick. :)



Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread gevisz
чт, 26 дек. 2019 г. в 17:43, gevisz :
>
> чт, 26 дек. 2019 г. в 15:56, Mick :
> >
> > On Thursday, 26 December 2019 13:40:26 GMT gevisz wrote:
> >
> > > [1.098401] [drm] Loading RV730
> > > [1.098466] radeon :01:00.0: Direct firmware load for
> > > radeon/RV730_pfp.bin failed with error -2
> > > [1.098543] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin"
> > > [1.098599] [rdm:rv770_init] *ERROR* Failed to load firmware!
> > > [1.098655] radeon :01:00.0: Fatal error during GPU init
> > > [1.098710] radeon: finishing device.
> > >
> > > I have not included RV730_pfp.bin to EXTRA_FIRMWARE kernel variable.
> > > (And should not, according to the documentation.)
> >
> >
> > Interesting!  o_O
> >
> > I remember the firmware blobs changing at some point in the past and my 
> > dmesg
> > on this laptop complained about missing firmware.
> >
> > I don't know if your card possesses the chipset the OS says it is.  In the
> > first instance I suggest you add in the kernel what dmesg reports as failing
> > to load "radeon/RV730_pfp.bin".  If the hardware wants it, you better 
> > provide
> > it. Then reboot and see if it starts up happily, or reports of more firmware
> > blobs failing to load.
>
> Now, it
> [1.098944] r600_cp: Failed to load firmware "radeon/RV730_me.bin"

It seems that it finally was satisfied with those two blobs added.
At least I can now start twm.



Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread gevisz
чт, 26 дек. 2019 г. в 15:56, Mick :
>
> On Thursday, 26 December 2019 13:40:26 GMT gevisz wrote:
>
> > [1.098401] [drm] Loading RV730
> > [1.098466] radeon :01:00.0: Direct firmware load for
> > radeon/RV730_pfp.bin failed with error -2
> > [1.098543] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin"
> > [1.098599] [rdm:rv770_init] *ERROR* Failed to load firmware!
> > [1.098655] radeon :01:00.0: Fatal error during GPU init
> > [1.098710] radeon: finishing device.
> >
> > I have not included RV730_pfp.bin to EXTRA_FIRMWARE kernel variable.
> > (And should not, according to the documentation.)
>
>
> Interesting!  o_O
>
> I remember the firmware blobs changing at some point in the past and my dmesg
> on this laptop complained about missing firmware.
>
> I don't know if your card possesses the chipset the OS says it is.  In the
> first instance I suggest you add in the kernel what dmesg reports as failing
> to load "radeon/RV730_pfp.bin".  If the hardware wants it, you better provide
> it. Then reboot and see if it starts up happily, or reports of more firmware
> blobs failing to load.

Now, it
[1.098944] r600_cp: Failed to load firmware "radeon/RV730_me.bin"



Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread Mick
On Thursday, 26 December 2019 13:40:26 GMT gevisz wrote:

> [1.098401] [drm] Loading RV730
> [1.098466] radeon :01:00.0: Direct firmware load for
> radeon/RV730_pfp.bin failed with error -2
> [1.098543] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin"
> [1.098599] [rdm:rv770_init] *ERROR* Failed to load firmware!
> [1.098655] radeon :01:00.0: Fatal error during GPU init
> [1.098710] radeon: finishing device.
> 
> I have not included RV730_pfp.bin to EXTRA_FIRMWARE kernel variable.
> (And should not, according to the documentation.)


Interesting!  o_O

I remember the firmware blobs changing at some point in the past and my dmesg 
on this laptop complained about missing firmware.

I don't know if your card possesses the chipset the OS says it is.  In the 
first instance I suggest you add in the kernel what dmesg reports as failing 
to load "radeon/RV730_pfp.bin".  If the hardware wants it, you better provide 
it. Then reboot and see if it starts up happily, or reports of more firmware 
blobs failing to load.

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread gevisz
чт, 26 дек. 2019 г. в 11:59, Mick :
>
> On Thursday, 26 December 2019 08:43:02 GMT Adam Carter wrote:
> > Try creating an xorg.conf
>
> You shouldn't need an xorg.conf today under most basic cases.  From what the
> OP reports below the kernel modesetting is not working, which makes me think
> some setting is probably missing in the kernel.
>
>
> > On Thursday, December 26, 2019, gevisz  wrote:
> > > I have installed Gentoo on my second desktop computer
> > > with Gigabyte MA790FXT-UD5P motherboard, AMD
> > > Phenome II X4 945 processor, and AMD/ATI Radion
> > > HD 4770 video card. However, currently I have only
> > > the command line: startx fails to start X11 reporting
> > > the following error:
> > > ...
> > > (II) [KMS] drm report modesetting isn't supported.
> > > (EE) Fatal server error:
> > > (EE) no screens found (EE)
> > > ...
> > > (EE) Server terminated with error (1). Closing log file.
> > > ...
> > > xinit: unable to connect to X server: Bad file descriptor.
> > > and this is despite of the fact that I configured 4.19.86
> > > gentoo kernel following instructions from
> > > https://wiki.gentoo.org/wiki/Xorg/Guide
> > > and
> > > https://wiki.gentoo.org/wiki/Radeon#Feature_support
> > > Namely, I set
> > > EXTRA_FIRMWARE_DIR = /lib/firmware
> > > EXTRA_FIRMWARE = radeon/R700_rlc.bin, RV740_smc.bin, and RV710_uvd.bin
> > > DRM = y and DRM_RADEON = y as described in the second link above.
> > > (I have tried several variations but always got the above
> > > error message after startx.)
>
> I have a slightly older card than yours in a laptop:
>
> "ATI Mobility Radeon HD 4670" (ChipID = 0x9488) AMD RV730
>
> These kernel .config entries may be needed in yours too:
>
> $ grep -i DRM /usr/src/linux/.config
> CONFIG_DRM=y
> # CONFIG_DRM_DP_AUX_CHARDEV is not set
> # CONFIG_DRM_DEBUG_MM is not set
> # CONFIG_DRM_DEBUG_SELFTEST is not set
> CONFIG_DRM_KMS_HELPER=y
> CONFIG_DRM_KMS_FB_HELPER=y
> CONFIG_DRM_FBDEV_EMULATION=y
> CONFIG_DRM_FBDEV_OVERALLOC=100
> # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
> # CONFIG_DRM_DP_CEC is not set
> CONFIG_DRM_TTM=y
> # CONFIG_DRM_I2C_CH7006 is not set
> # CONFIG_DRM_I2C_SIL164 is not set
> # CONFIG_DRM_I2C_NXP_TDA998X is not set
> # CONFIG_DRM_I2C_NXP_TDA9950 is not set
> CONFIG_DRM_RADEON=y
> CONFIG_DRM_RADEON_USERPTR=y
> # CONFIG_DRM_AMDGPU is not set
> # CONFIG_DRM_NOUVEAU is not set
> # CONFIG_DRM_I915 is not set
> CONFIG_DRM_VGEM=y
> # CONFIG_DRM_VKMS is not set
> # CONFIG_DRM_VMWGFX is not set
> # CONFIG_DRM_GMA500 is not set
> CONFIG_DRM_UDL=m
> # CONFIG_DRM_AST is not set
> # CONFIG_DRM_MGAG200 is not set
> # CONFIG_DRM_CIRRUS_QEMU is not set
> # CONFIG_DRM_QXL is not set
> # CONFIG_DRM_BOCHS is not set
> # CONFIG_DRM_VIRTIO_GPU is not set
> CONFIG_DRM_PANEL=y
> CONFIG_DRM_BRIDGE=y
> CONFIG_DRM_PANEL_BRIDGE=y
> # CONFIG_DRM_ANALOGIX_ANX78XX is not set
> # CONFIG_DRM_HISI_HIBMC is not set
> # CONFIG_DRM_TINYDRM is not set
> # CONFIG_DRM_LEGACY is not set
> CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
> # CONFIG_DRM_VBOXVIDEO is not set
>
> Also in make.conf I have:
>
> VIDEO_CARDS="radeon r600"
>
> Rebuild your kernel, xorg and mesa, if you change any of the the above,
> reboot, check dmesg to make sure your radeon firmware is loading and the
> kernel is not reporting any errors on your card, then startx and look at /var/
> log/Xorg.0.log to see what is being reported.

Thank you for sharing your kernal configuration. Comparing it to mine,
I have found only two differences. Namely, my kernel configuration had:
CONFIG_DRM_VGEM=n (you had "y" here)
CONFIG_DRM_UDL=n (you had "m" here)
I consired the second one irrelevant. So, I have changed the first one and
recompiled everything you mentioned. (VIDEO_CARDS variable in my make.conf
alsowas the same.) However, after reboot, I have got the same startx
error message.

Looking onto dmesg, I found the following messages related to Radeon video card:
[1.096815] [drm] radeon kernel modesetting enabled.
[1.097070] [drm] initializing kernel modesetting (RV740 0x1002:0x94B3
0x1002:0x0D00 0x00).
...
[1.098286] [drm] radeon: 512M of VRAM memory ready
[1.098341] [drm] radeon: 1024M of GTT memory ready.
[1.098401] [drm] Loading RV730
[1.098466] radeon :01:00.0: Direct firmware load for
radeon/RV730_pfp.bin failed with error -2
[1.098543] r600_cp: Failed to load firmware "radeon/RV730_pfp.bin"
[1.098599] [rdm:rv770_init] *ERROR* Failed to load firmware!
[1.098655] radeon :01:00.0: Fatal error during GPU init
[1.098710] radeon: finishing device.

I have not included RV730_pfp.bin to EXTRA_FIRMWARE kernel variable.
(And should not, according to the documentation.)



Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread Mick
On Thursday, 26 December 2019 08:43:02 GMT Adam Carter wrote:
> Try creating an xorg.conf

You shouldn't need an xorg.conf today under most basic cases.  From what the 
OP reports below the kernel modesetting is not working, which makes me think 
some setting is probably missing in the kernel.


> On Thursday, December 26, 2019, gevisz  wrote:
> > I have installed Gentoo on my second desktop computer
> > with Gigabyte MA790FXT-UD5P motherboard, AMD
> > Phenome II X4 945 processor, and AMD/ATI Radion
> > HD 4770 video card. However, currently I have only
> > the command line: startx fails to start X11 reporting
> > the following error:
> > ...
> > (II) [KMS] drm report modesetting isn't supported.
> > (EE) Fatal server error:
> > (EE) no screens found (EE)
> > ...
> > (EE) Server terminated with error (1). Closing log file.
> > ...
> > xinit: unable to connect to X server: Bad file descriptor.
> > and this is despite of the fact that I configured 4.19.86
> > gentoo kernel following instructions from
> > https://wiki.gentoo.org/wiki/Xorg/Guide
> > and
> > https://wiki.gentoo.org/wiki/Radeon#Feature_support
> > Namely, I set
> > EXTRA_FIRMWARE_DIR = /lib/firmware
> > EXTRA_FIRMWARE = radeon/R700_rlc.bin, RV740_smc.bin, and RV710_uvd.bin
> > DRM = y and DRM_RADEON = y as described in the second link above.
> > (I have tried several variations but always got the above
> > error message after startx.)

I have a slightly older card than yours in a laptop:

"ATI Mobility Radeon HD 4670" (ChipID = 0x9488) AMD RV730

These kernel .config entries may be needed in yours too:

$ grep -i DRM /usr/src/linux/.config
CONFIG_DRM=y
# CONFIG_DRM_DP_AUX_CHARDEV is not set
# CONFIG_DRM_DEBUG_MM is not set
# CONFIG_DRM_DEBUG_SELFTEST is not set
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_DRM_DP_CEC is not set
CONFIG_DRM_TTM=y
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_USERPTR=y
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I915 is not set
CONFIG_DRM_VGEM=y
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
CONFIG_DRM_UDL=m
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_QXL is not set
# CONFIG_DRM_BOCHS is not set
# CONFIG_DRM_VIRTIO_GPU is not set
CONFIG_DRM_PANEL=y
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# CONFIG_DRM_HISI_HIBMC is not set
# CONFIG_DRM_TINYDRM is not set
# CONFIG_DRM_LEGACY is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
# CONFIG_DRM_VBOXVIDEO is not set

Also in make.conf I have:

VIDEO_CARDS="radeon r600"

Rebuild your kernel, xorg and mesa, if you change any of the the above, 
reboot, check dmesg to make sure your radeon firmware is loading and the 
kernel is not reporting any errors on your card, then startx and look at /var/
log/Xorg.0.log to see what is being reported.

HTH.
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread Adam Carter
Try creating an xorg.conf

On Thursday, December 26, 2019, gevisz  wrote:

> I have installed Gentoo on my second desktop computer
> with Gigabyte MA790FXT-UD5P motherboard, AMD
> Phenome II X4 945 processor, and AMD/ATI Radion
> HD 4770 video card. However, currently I have only
> the command line: startx fails to start X11 reporting
> the following error:
> ...
> (II) [KMS] drm report modesetting isn't supported.
> (EE) Fatal server error:
> (EE) no screens found (EE)
> ...
> (EE) Server terminated with error (1). Closing log file.
> ...
> xinit: unable to connect to X server: Bad file descriptor.
> and this is despite of the fact that I configured 4.19.86
> gentoo kernel following instructions from
> https://wiki.gentoo.org/wiki/Xorg/Guide
> and
> https://wiki.gentoo.org/wiki/Radeon#Feature_support
> Namely, I set
> EXTRA_FIRMWARE_DIR = /lib/firmware
> EXTRA_FIRMWARE = radeon/R700_rlc.bin, RV740_smc.bin, and RV710_uvd.bin
> DRM = y and DRM_RADEON = y as described in the second link above.
> (I have tried several variations but always got the above
> error message after startx.)
>
>


[gentoo-user] startx does not work for AMD/ATI Radion HD 4770

2019-12-26 Thread gevisz
I have installed Gentoo on my second desktop computer
with Gigabyte MA790FXT-UD5P motherboard, AMD
Phenome II X4 945 processor, and AMD/ATI Radion
HD 4770 video card. However, currently I have only
the command line: startx fails to start X11 reporting
the following error:
...
(II) [KMS] drm report modesetting isn't supported.
(EE) Fatal server error:
(EE) no screens found (EE)
...
(EE) Server terminated with error (1). Closing log file.
...
xinit: unable to connect to X server: Bad file descriptor.
and this is despite of the fact that I configured 4.19.86
gentoo kernel following instructions from
https://wiki.gentoo.org/wiki/Xorg/Guide
and
https://wiki.gentoo.org/wiki/Radeon#Feature_support
Namely, I set
EXTRA_FIRMWARE_DIR = /lib/firmware
EXTRA_FIRMWARE = radeon/R700_rlc.bin, RV740_smc.bin, and RV710_uvd.bin
DRM = y and DRM_RADEON = y as described in the second link above.
(I have tried several variations but always got the above
error message after startx.)