public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] another "little" problem appeared (ATI driver/direct rendering/kernel)
@ 2006-11-14 15:34 Michel Merinoff
  2006-11-14 17:44 ` Florian D.
  2006-11-14 17:46 ` [gentoo-amd64] " Duncan
  0 siblings, 2 replies; 8+ messages in thread
From: Michel Merinoff @ 2006-11-14 15:34 UTC (permalink / raw
  To: gentoo-amd64

Well, I had been using the kernel 2.6.17-r8 and everything seemed ok
with the subj. But then I upgraded the kernel to 2.6.18-r1, and there's
one feature I can't get started with.
As it is said in a few faqs (including gentoo faq) of howto install DRI,
in order to get the thing working you must enable kernel agp support
with the proper driver installed. My driver seemed to be
CONFIG_AGP_AMD64. It was enabled in the kernel previous, it is enabled
in the kernel actual:
michel@michelle /usr/src/linux $ cat .config|grep AGP_AMD64
CONFIG_AGP_AMD64=y

But it is not seen when I use make menuconfig. I syncronically checked
all the options which were enabled at the previous kernel, but it did
not appear, and I can't find out why. I tried to check dependencies, but
didn't succeed.

And the thing is dri doesn't work with 2.6.18-r1. I checked 2.6.17-r8,
it does.

	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html

-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64] another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-14 15:34 [gentoo-amd64] another "little" problem appeared (ATI driver/direct rendering/kernel) Michel Merinoff
@ 2006-11-14 17:44 ` Florian D.
  2006-11-14 17:46 ` [gentoo-amd64] " Duncan
  1 sibling, 0 replies; 8+ messages in thread
From: Florian D. @ 2006-11-14 17:44 UTC (permalink / raw
  To: gentoo-amd64

Michel Merinoff wrote:
> Well, I had been using the kernel 2.6.17-r8 and everything seemed ok
> with the subj. But then I upgraded the kernel to 2.6.18-r1, and there's
> one feature I can't get started with.
> As it is said in a few faqs (including gentoo faq) of howto install DRI,
> in order to get the thing working you must enable kernel agp support
> with the proper driver installed. My driver seemed to be
> CONFIG_AGP_AMD64. It was enabled in the kernel previous, it is enabled
> in the kernel actual:
> michel@michelle /usr/src/linux $ cat .config|grep AGP_AMD64
> CONFIG_AGP_AMD64=y
> 
> But it is not seen when I use make menuconfig. I syncronically checked
> all the options which were enabled at the previous kernel, but it did
> not appear, and I can't find out why. I tried to check dependencies, but
> didn't succeed.
> 
> And the thing is dri doesn't work with 2.6.18-r1. I checked 2.6.17-r8,
> it does.
hi,
it is in:
  -> Device Drivers 
           	-> Character devices

on my computer, it has been selected by another config-item (I don´t know which one, though), so I 
cannot change it. On your computer it is obviously the same.


-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-amd64]  Re: another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-14 15:34 [gentoo-amd64] another "little" problem appeared (ATI driver/direct rendering/kernel) Michel Merinoff
  2006-11-14 17:44 ` Florian D.
@ 2006-11-14 17:46 ` Duncan
  2006-11-14 19:48   ` Florian D.
  1 sibling, 1 reply; 8+ messages in thread
From: Duncan @ 2006-11-14 17:46 UTC (permalink / raw
  To: gentoo-amd64

Michel Merinoff <mike_merinov@yahoo.co.uk> posted
4559E1E8.40604@yahoo.co.uk, excerpted below, on  Tue, 14 Nov 2006 18:34:00
+0300:

> Well, I had been using the kernel 2.6.17-r8 and everything seemed ok
> with the subj. But then I upgraded the kernel to 2.6.18-r1, and there's
> one feature I can't get started with.
> As it is said in a few faqs (including gentoo faq) of howto install DRI,
> in order to get the thing working you must enable kernel agp support
> with the proper driver installed. My driver seemed to be
> CONFIG_AGP_AMD64. It was enabled in the kernel previous, it is enabled
> in the kernel actual:
> michel@michelle /usr/src/linux $ cat .config|grep AGP_AMD64
> CONFIG_AGP_AMD64=y
> 
> But it is not seen when I use make menuconfig. I syncronically checked
> all the options which were enabled at the previous kernel, but it did
> not appear, and I can't find out why. I tried to check dependencies, but
> didn't succeed.
> 
> And the thing is dri doesn't work with 2.6.18-r1. I checked 2.6.17-r8,
> it does.

I was using kernel.org kernels before I started on Gentoo, and being
comfortable with that, saw/see no reason to change, so I know nothing
about the Gentoo patched kernel specifics.  However, I have the kernel's
Radeon DRM driver and xorg's Radeon driver working here, now on 2.6.19-rc5
(IIRC), but they worked fine on 2.6.18 and 2.6.17 as well.

One setting is under Device Drivers > Character Devices > Direct Rendering
Manager > ATI Radeon.  The Direct Rendering Manager (DRM, no, /not/
digital restrictions management, tho it seems the Linux kernel group
doesn't seem to have much of a problem with that, but anyway...) must be
configured Y/M before the individual manufacturer drivers are exposed as
choices.

AGP itself isn't shown as a choice here, it's shown, but not as an option,
because something else I have is apparently auto-selecting it. ... A bit
of educated guess checking later... I found it -- and probably figured out
why you may have lost that setting...

I don't remember exactly when it was, since I run the -rcs as well so have
been on the .19-rc series for some time now and this change would have
likely been introduced fairly early in the rc cycle so if it was for .18,
that was a long time ago for me and it's blurring into .17 and .16 and... 
However, your post would seem to indicate it happened between .17 and .18.

So what is "it"?  <g>  Good question!  <g>  They changes the dependencies
for IOMMU worked.

A bit of background...  The IOMMU is the adapter that lets legacy 32-bit
PCI devices (like many hard drive chipsets) do DMA to memory beyond the
32-bit (4-gig) memory barrier.  The reserved driver address space at the
top of 32-bit memory is why folks with more than about 3.5 gig of memory
can't see it all without a BIOS trick reserving that area as a memory
hole, with the real memory behind those addresses remapped above the 4-gig
32-bit memory barrier.  Just because amd64 CPUs can address 40-bits of
memory doesn't mean it can actually be used unless the chipset works
around that problem!

Now, true AMD64 CPUs have a hardware IOMMU built-in.  Intel's em64t CPUs
lack that hardware IOMMU, so the kernel emulates it.  It's configured by
the same option in either case, however, but that option was renamed and
changed locations not long ago -- it would seem between 2.6.17 and
2.6.18, given your report.  IDR where it was before, but the new option is
CONFIG_IOMMU, located at Processor type and features > IOMMU support.  As
I suspected (the educated guessing mentioned above), activating this
option auto-selects, that is, hard-enabled, AGP, so it's no longer an
option.  That makes sense given that on AMD hardware the IOMMU is part of
the AGP unit and reserves part of the memory out of the BIOS AGP aperture,
and presumably the Linux software emulation of the same thing for Intel
hardware would be implemented in the same place.  Of course, as I said,
this is for accessing memory addresses above the 4 gigabyte 32-bit
boundary, so if you have less than 4 gigs (well, less than 3.5 gigs, since
that last half-gig has to be relocated above the boundary if you have four
gigs or you lose access to it) of memory, no harm in disabling IOMMU.

So, the short version of the above is that if you have > 3.5 gig of memory,
you need IOMMU support enabled in ordered to be able to use it, and that
automatically activates AGP support, which is then no longer an option as
a result.  < 3.5 gig, it's safe to disable IOMMU, which should return the
AGP option.  With AGP on, you should get the DRM option.  With that on,
you should be able to select ATI Radeon DRI/DRM, if you want/need it.
IOMMU is under processor type and features.  AGP/DRM/Radeon-DRI/DRM is
under character drivers.

Hope that helps. =8^)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64]  Re: another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-14 17:46 ` [gentoo-amd64] " Duncan
@ 2006-11-14 19:48   ` Florian D.
  2006-11-14 20:18     ` Hemmann, Volker Armin
  0 siblings, 1 reply; 8+ messages in thread
From: Florian D. @ 2006-11-14 19:48 UTC (permalink / raw
  To: gentoo-amd64

Duncan wrote:
> Michel Merinoff <mike_merinov@yahoo.co.uk> posted
> 4559E1E8.40604@yahoo.co.uk, excerpted below, on  Tue, 14 Nov 2006 18:34:00
> +0300:
> 
>> Well, I had been using the kernel 2.6.17-r8 and everything seemed ok
>> with the subj. But then I upgraded the kernel to 2.6.18-r1, and there's

> 2.6.18, given your report.  IDR where it was before, but the new option is
> CONFIG_IOMMU, located at Processor type and features > IOMMU support.  As

hmm.. I have vanilla-2.6.18.2 and there is no `IOMMU support' option. It is enabled by default. I 
guess on 2.6.18-r1 its the same.
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64]  Re: another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-14 19:48   ` Florian D.
@ 2006-11-14 20:18     ` Hemmann, Volker Armin
  2006-11-15  7:51       ` Michel Merinoff
  0 siblings, 1 reply; 8+ messages in thread
From: Hemmann, Volker Armin @ 2006-11-14 20:18 UTC (permalink / raw
  To: gentoo-amd64

On Tuesday 14 November 2006 20:48, Florian D. wrote:
> Duncan wrote:
> > Michel Merinoff <mike_merinov@yahoo.co.uk> posted
> > 4559E1E8.40604@yahoo.co.uk, excerpted below, on  Tue, 14 Nov 2006
> > 18:34:00
> >
> > +0300:
> >> Well, I had been using the kernel 2.6.17-r8 and everything seemed ok
> >> with the subj. But then I upgraded the kernel to 2.6.18-r1, and there's
> >
> > 2.6.18, given your report.  IDR where it was before, but the new option
> > is CONFIG_IOMMU, located at Processor type and features > IOMMU support. 
> > As
>
> hmm.. I have vanilla-2.6.18.2 and there is no `IOMMU support' option. It is
> enabled by default. I guess on 2.6.18-r1 its the same.

yes there is an option. Look  again.
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64]  Re: another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-14 20:18     ` Hemmann, Volker Armin
@ 2006-11-15  7:51       ` Michel Merinoff
  2006-11-15  7:58         ` Michel Merinoff
  0 siblings, 1 reply; 8+ messages in thread
From: Michel Merinoff @ 2006-11-15  7:51 UTC (permalink / raw
  To: gentoo-amd64

Hemmann, Volker Armin wrote:
> On Tuesday 14 November 2006 20:48, Florian D. wrote:
>   
>> Duncan wrote:
>>     
>>> Michel Merinoff <mike_merinov@yahoo.co.uk> posted
>>> 4559E1E8.40604@yahoo.co.uk, excerpted below, on  Tue, 14 Nov 2006
>>> 18:34:00
>>>
>>> +0300:
>>>       
>>>> Well, I had been using the kernel 2.6.17-r8 and everything seemed ok
>>>> with the subj. But then I upgraded the kernel to 2.6.18-r1, and there's
>>>>         
>>> 2.6.18, given your report.  IDR where it was before, but the new option
>>> is CONFIG_IOMMU, located at Processor type and features > IOMMU support. 
>>> As
>>>       
>> hmm.. I have vanilla-2.6.18.2 and there is no `IOMMU support' option. It is
>> enabled by default. I guess on 2.6.18-r1 its the same.
>>     
>
> yes there is an option. Look  again.
>   
Yes, there was such trick. Thanks for everyone, especially Duncan for
not saying the word 'slaveryware'. :-)

But it still doesn't work. I'll try to have more work around little
later. I checked off IOMMU support manually, but the AMD64 (but it was
set to yes) option didn't appear in the menu. I recompiled the kernel
with no effect.
Send instant messages to your online friends http://uk.messenger.yahoo.com 

-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-amd64]  Re: another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-15  7:51       ` Michel Merinoff
@ 2006-11-15  7:58         ` Michel Merinoff
  2006-11-15 10:09           ` Duncan
  0 siblings, 1 reply; 8+ messages in thread
From: Michel Merinoff @ 2006-11-15  7:58 UTC (permalink / raw
  To: gentoo-amd64

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 763 bytes --]

Michel Merinoff wrote:
> But it still doesn't work. I'll try to have more work around little
> later. I checked off IOMMU support manually, but the AMD64 (but it was
> set to yes) option didn't appear in the menu. I recompiled the kernel
> with no effect.
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
>   
Hm. I found, that when I run 'make && make modules_install' it
permanently set CONFIG_IOMMU to yes, even if I unset it manually before.
How do I avoid it?

		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-amd64]  Re: another "little" problem appeared (ATI driver/direct rendering/kernel)
  2006-11-15  7:58         ` Michel Merinoff
@ 2006-11-15 10:09           ` Duncan
  0 siblings, 0 replies; 8+ messages in thread
From: Duncan @ 2006-11-15 10:09 UTC (permalink / raw
  To: gentoo-amd64

Michel Merinoff <mike_merinov@yahoo.co.uk> posted
455AC899.3030908@yahoo.co.uk, excerpted below, on  Wed, 15 Nov 2006
10:58:17 +0300:

> Hm. I found, that when I run 'make && make modules_install' it permanently
> set CONFIG_IOMMU to yes, even if I unset it manually before. How do I
> avoid it?

By manually you mean editing the .config file directly?  If so, you must
run make old-config to update everything else before running a make, or
it'll use the old settings.  The .config file is simply a nicely portable
way to package up all the settings in one place, but the build system
doesn't normally use it until you import it using make oldconfig, updating
the multitude of settings in the multitude of locations that the build
system normally uses.

If that forces it on as well, then you have something else configured on
that requires it, somewhere.  Perhaps grepping the sources?  I don't know
where all the help texts are saved or I'd suggest grepping them only since
they tell what dependencies they set and the like.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-15 10:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14 15:34 [gentoo-amd64] another "little" problem appeared (ATI driver/direct rendering/kernel) Michel Merinoff
2006-11-14 17:44 ` Florian D.
2006-11-14 17:46 ` [gentoo-amd64] " Duncan
2006-11-14 19:48   ` Florian D.
2006-11-14 20:18     ` Hemmann, Volker Armin
2006-11-15  7:51       ` Michel Merinoff
2006-11-15  7:58         ` Michel Merinoff
2006-11-15 10:09           ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox