Bug 6110 - mtrr: base(0xf0020000) is not aligned
Summary: mtrr: base(0xf0020000) is not aligned
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 11:45 UTC by Pavel Kysilka
Modified: 2006-06-24 08:38 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.16-rc3
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
kernel log information and tip (25.51 KB, text/x-log)
2006-02-20 14:13 UTC, Pavel Kysilka
Details
detailed info. Bug more described. (83.72 KB, text/plain)
2006-02-22 11:33 UTC, Pavel Kysilka
Details

Description Pavel Kysilka 2006-02-20 11:45:56 UTC
Distribution: Debian testing
Hardware Environment: Intel865GBF motherboard, 1GB RAM, Intel865G integrated
graphics card.
Software Environment: Xorg-6.9.0, console intelfb framebuffer,
Problem Description:
I upgrade my debian to new xorg server. After upgrade is not console with
framebuffer and HW acceleration in xorg server working.
Console is blinking with random character and color - totally unusable.

I do'nt know, that this is dri or agp or frammebuffer error.
Steps to reproduce:
Boot the PC.

This messages from log may be usefull.

Feb 20 18:05:09 prog3 kernel: Linux agpgart interface v0.101 (c) Dave Jones
Feb 20 18:05:09 prog3 kernel: agpgart: Detected an Intel 865 Chipset.
Feb 20 18:05:09 prog3 kernel: agpgart: Detected 16252K stolen memory.
Feb 20 18:05:09 prog3 kernel: agpgart: AGP aperture is 128M @ 0xf0000000
Feb 20 18:05:09 prog3 kernel: [drm] Initialized drm 1.0.1 20051102

......

Feb 20 20:06:23 prog3 kernel: mtrr: base(0xf0020000) is not aligned on a
size(0x800000) boundary
Feb 20 20:06:23 prog3 kernel: [drm:drm_unlock] *ERROR* Process 2443 using kernel
context 0

.....

Feb 20 18:13:34 prog3 kernel: ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16
(level, low) -> IRQ 19
Feb 20 18:13:34 prog3 kernel: [drm] Initialized i830 1.3.2 20021108 on minor 0
Feb 20 18:13:45 prog3 kernel: intelfb: intelfb_init
Feb 20 18:13:45 prog3 kernel: intelfb: Framebuffer driver for Intel(R)
830M/845G/852GM/855GM/865G/915G/915GM chipsets
Feb 20 18:13:45 prog3 kernel: intelfb: Version 0.9.2
Feb 20 18:13:45 prog3 kernel: intelfb: intelfb_pci_register
Feb 20 18:13:45 prog3 kernel: ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16
(level, low) -> IRQ 19
Feb 20 18:13:45 prog3 kernel: intelfb: fb aperture: 0xf0000000/0x8000000, MMIO
region: 0xffa00000/0x80000
Feb 20 18:13:45 prog3 kernel: intelfb: 00:02.0: Intel(R) 865G, aperture size
128MB, stolen memory 16252kB
Feb 20 18:13:45 prog3 kernel: intelfb: cannot acquire agp
Feb 20 18:13:45 prog3 kernel: intelfb: cleanup
Feb 20 18:14:07 prog3 kernel: mtrr: base(0xf0020000) is not aligned on a
size(0x800000) boundary
Feb 20 18:14:07 prog3 kernel: [drm:drm_unlock] *ERROR* Process 2610 using kernel
context 0
Feb 20 19:26:05 prog3 kernel: [drm] Module unloaded
Feb 20 19:26:08 prog3 kernel: intelfb: intelfb_exit
Feb 20 19:26:12 prog3 kernel: intelfb: intelfb_init

......


goldenfish@prog3:~$ cat /proc/mtrr 
reg00: base=0x00000000 (   0MB), size=1024MB: write-back, count=1
reg01: base=0xf0000000 (3840MB), size= 128MB: write-combining, count=2
goldenfish@prog3:~$ 

For testing and more information, contact me.
Thank you.
Comment 1 Andrew Morton 2006-02-20 13:30:03 UTC
I assume it's a DRM problem.  David, can you confirm?

Pavel, do you know if any earlier kernels worked OK?
Comment 2 Dave Airlie 2006-02-20 13:49:04 UTC
are you building your own kernels? if so then you are using the wrong DRM driver
more than likely... you have the i830 driver loaded when it should be the i915,
this doesn't happen if you use distro kernels or read the DRM module help in
Kconfig..
Comment 3 Pavel Kysilka 2006-02-20 14:01:12 UTC
Latest version, that i was tested, is 2.6.15-rc7. No problem with mtrr.

More info about hardware from previous report:

http://bugme.osdl.org/show_bug.cgi?id=4738
Comment 4 Pavel Kysilka 2006-02-20 14:13:45 UTC
Created attachment 7423 [details]
kernel log information and tip

usefull info:

Feb 20 20:06:01 prog3 kernel: PCI: Ignore bogus resource 6 [0:0] of
0000:00:02.0
								   
^^^^^^^^^^^^
Feb 20 20:06:01 prog3 kernel: PCI: Bridge: 0000:00:1e.0
Feb 20 20:06:01 prog3 kernel:	IO window: a000-bfff
Feb 20 20:06:01 prog3 kernel:	MEM window: ff900000-ff9fffff
Feb 20 20:06:01 prog3 kernel:	PREFETCH window: disabled.
Feb 20 20:06:01 prog3 kernel: PCI: Setting latency timer of device 0000:00:1e.0
to 64

 lspci -tv -s '0000:02.0'
-[00]---02.0  Intel Corporation 82865G Integrated Graphics Controller
Comment 5 Antonino Daplas 2006-02-20 15:19:50 UTC
Looks like something acquired agp but did not release it (drm?) which caused
intelfb to fail.

You can try these:

1. Make sure that intelfb gets loaded first (ie by compiling intelfb statically
and DRM as a module).

2. Disable acceleration in intelfb (video=intelfb:accel=0 or modprobe intelfb
accel=0)

 
Comment 6 Pavel Kysilka 2006-02-22 11:33:21 UTC
Created attachment 7439 [details]
detailed info. Bug more described.

Hi,

i was create tests and i found possible error.

Booting with intelfb framebuffer compiled statically with 
parameters: accel=0/1, mtrr=0/1 working --> intelfb loaded first than i830
module and xorg. Only intel-dri acceleration not working - tested with glxinfo.

Intelfb is working.


If xorg loaded before intelfb driver, console is after switching X->console
blinking with random chars.


I look in the log:

kernel.log :
Feb 20 18:14:07 prog3 kernel: mtrr: base(0xf0020000) is not aligned on a
size(0x800000) boundary

Xorg.log :

(II) I810(0): [drm] framebuffer handle = 0xf0020000
(II) I810(0): [drm] added 1 reserved context for kernel
(WW) I810(0): i830 Kernel module detected, Use the i915 Kernel module instead,
aborting DRI init.
(II) I810(0): [drm] removed 1 reserved context for kernel

Xorg logfile is attached.
Comment 7 Antonino Daplas 2006-02-22 13:30:50 UTC
> (WW) I810(0): i830 Kernel module detected, Use the i915 Kernel module
> instead,
> aborting DRI init.

It's telling you what to do, use the 1915 module.  So do not compile the i830
kernel module but grab the drm module instead from http://dri.sf.net and compile
that.
Comment 8 Pavel Kysilka 2006-06-24 08:38:00 UTC
Hi,

sorry for late answer.

I test latest linux-2.6.git with new X-server (7.x - debian testing), new
drm(i915) module and actual intelfb module.

Some things working, some not.

0) intelfb driver working for me
1) a) modprobe intelfb, modprobe i915, start xorg server -> working
   b) modprobe i915, start xorg server, modprobe intelfb -> crash computer.
      no log, computer freeze, monitor has yellow led light

2) dri acceleration working. i must use cvs version of i915_drv.so file.

3) AGP Aperature size - 
BIOS - i have set 256MB.
kernel report me 128MB.

Jun 24 16:03:54 prog3 kernel: agpgart: Detected an Intel 865 Chipset.
Jun 24 16:03:54 prog3 kernel: Linux agpgart interface v0.101 (c) Dave Jones
Jun 24 16:03:54 prog3 kernel: agpgart: Detected an Intel 865 Chipset.
Jun 24 16:03:54 prog3 kernel: agpgart: Detected 16252K stolen memory.
Jun 24 16:03:54 prog3 kernel: agpgart: AGP aperture is 128M @ 0xf0000000
Jun 24 16:03:54 prog3 kernel: [drm] Initialized drm 1.0.1 20051102
os - 256MB

with my matroxg550 i have 256MB.
Jun 23 10:41:30 prog3 kernel: Linux agpgart interface v0.101 (c) Dave Jones
Jun 23 10:41:30 prog3 kernel: agpgart: Detected an Intel 865 Chipset.
Jun 23 10:41:30 prog3 kernel: agpgart: AGP aperture is 256M @ 0xe0000000
Jun 23 10:41:30 prog3 kernel: [drm] Initialized drm 1.0.1 20051102

i don't know, that this is error or not.

I close this bug.

Thanks goldenfish

Note You need to log in before you can comment on or make changes to this bug.