What are the prospects of the DRM TTM changes making it into 2.6.24? I noticed that Andrew has them [1] in his mm tree... any chance of that getting pushed into Linus' tree for 2.6.24?
Cheers,
Waldo
[1] http://userweb.kernel.org/~akpm/mmotm/broken-out/git-drm.patch?
Intel Corporation - Platform Software Engineering, UMG - Hillsboro, Oregon
> What are the prospects of the DRM TTM changes making it into 2.6.24? I
> noticed that Andrew has them [1] in his mm tree... any chance of that
> getting pushed into Linus' tree for 2.6.24?
>
No the merge window for 2.6.24 closed a few weeks ago. TTM wasn't in -mm
for the 2.6.23 cycle as we hadn't finished the API stabilisation work in
time. So I don't expect we'll see it before 2.6.25.
I also have a few AGP changes I need to line up to support the chipset
flushing work I've done to support TTM properly..
Dave.
On Mon, 19 Nov 2007, Bastian, Waldo wrote:
> Cheers,
> Waldo
>
> [1] http://userweb.kernel.org/~akpm/mmotm/broken-out/git-drm.patch?
>
> Intel Corporation - Platform Software Engineering, UMG - Hillsboro, Oregon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> --
> _______________________________________________
> Dri-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dri-devel
>
>
On Mon, 19 Nov 2007 21:53:05 +0000 (GMT)
Dave Airlie <[email protected]> wrote:
>
> > What are the prospects of the DRM TTM changes making it into 2.6.24? I
> > noticed that Andrew has them [1] in his mm tree... any chance of that
> > getting pushed into Linus' tree for 2.6.24?
> >
>
> No the merge window for 2.6.24 closed a few weeks ago. TTM wasn't in -mm
> for the 2.6.23 cycle as we hadn't finished the API stabilisation work in
> time. So I don't expect we'll see it before 2.6.25.
>
> I also have a few AGP changes I need to line up to support the chipset
> flushing work I've done to support TTM properly..
>
Did anything happen with that null-pointer deref I was hitting?
From: Andrew Morton <[email protected]>
[ 140.659360] BUG: unable to handle kernel NULL pointer dereference at virtual address 0000000c
[ 140.659379] printing eip: f8c511b6 *pde = 00000000
[ 140.659395] Oops: 0000 [#1] PREEMPT
[ 140.659411] last sysfs file: /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
[ 140.659419] Modules linked in: i915 drm ipw2200 sonypi ipv6 autofs4 hidp l2cap bluetooth sunrpc nf_conntrack_netbios_ns ipt_REJECT nf_conntrack_ipv4 xt_state nf_conntrack xt_tcpudp iptable_filter ip_tables x_tables acpi_cpufreq nvram ohci1394 ehci_hcd ieee1394 uhci_hcd joydev sg snd_hda_intel snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device sr_mod snd_pcm_oss cdrom snd_mixer_oss snd_pcm snd_timer i2c_i801 piix pcspkr generic snd ieee80211 soundcore ieee80211_crypt i2c_core snd_page_alloc button ext3 jbd ide_disk ide_core
[ 140.659677]
[ 140.659685] Pid: 3525, comm: glxgears Not tainted (2.6.24-rc2-mm1 #2)
[ 140.659693] EIP: 0060:[<f8c511b6>] EFLAGS: 00010046 CPU: 0
[ 140.659725] EIP is at drm_fence_flush_old+0x3d/0xf4 [drm]
[ 140.659731] EAX: 00000000 EBX: f6240468 ECX: 00000282 EDX: 00000000
[ 140.659738] ESI: 00000002 EDI: 00000002 EBP: e8c33ec8 ESP: e8c33ea8
[ 140.659745] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[ 140.659752] Process glxgears (pid: 3525, ti=E8C32000 task=F113E170 task.ti=E8C32000)
[ 140.659758] Stack: f6240000 f624044c 00000000 f13919a0 f62690b8 f737b200 08be829c 000176b8
[ 140.659803] e8c33f1c f8dbdc76 00000013 f1391cc0 f6240000 f737b200 f8c6d898 00000001
[ 140.659850] 00000001 f737b200 f8e40000 0001ffff 00000013 f737b200 08be8250 00000000
[ 140.659896] Call Trace:
[ 140.659906] [<c0104cec>] show_trace_log_lvl+0x12/0x25
[ 140.659921] [<c0104d8b>] show_stack_log_lvl+0x8c/0x9e
[ 140.659932] [<c0104e27>] show_registers+0x8a/0x1c0
[ 140.659944] [<c010504b>] die+0xee/0x1c4
[ 140.659954] [<c0116a2c>] do_page_fault+0x405/0x4e1
[ 140.659966] [<c031fa22>] error_code+0x6a/0x70
[ 140.659979] [<f8dbdc76>] i915_cmdbuffer+0x3a4/0x3e8 [i915]
[ 140.659997] [<f8c4a73c>] drm_ioctl+0x1ac/0x228 [drm]
[ 140.660028] [<c0179bca>] vfs_ioctl+0x4e/0x67
[ 140.660041] [<c0179e45>] do_vfs_ioctl+0x262/0x279
[ 140.660053] [<c0179e9c>] sys_ioctl+0x40/0x5c
[ 140.660064] [<c0103da2>] syscall_call+0x7/0xb
[ 140.660165] =======================
[ 140.660170] INFO: lockdep is turned off.
Cc: Dave Airlie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
drivers/char/drm/drm_fence.c | 3 +++
1 file changed, 3 insertions(+)
diff -puN drivers/char/drm/drm_fence.c~git-drm-oops-fix drivers/char/drm/drm_fence.c
--- a/drivers/char/drm/drm_fence.c~git-drm-oops-fix
+++ a/drivers/char/drm/drm_fence.c
@@ -305,6 +305,9 @@ void drm_fence_flush_old(struct drm_devi
struct drm_fence_object *fence;
uint32_t diff;
+ if (!driver)
+ return;
+
write_lock_irqsave(&fm->lock, flags);
old_sequence = (sequence - driver->flush_diff) & driver->sequence_mask;
diff = (old_sequence - fc->last_exe_flush) & driver->sequence_mask;
_
> >
> > I also have a few AGP changes I need to line up to support the chipset
> > flushing work I've done to support TTM properly..
> >
>
> Did anything happen with that null-pointer deref I was hitting?
>
I've rebased the patches in my tree along with a chunk I missed which
should make your patch unnecessary.
Do you pull my agp-mm tree into -mm?
ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/agp-2.6 agp-mm
if not..
Dave.
On Wed, 21 Nov 2007 17:36:33 +1000 "Dave Airlie" <[email protected]> wrote:
> > >
> > > I also have a few AGP changes I need to line up to support the chipset
> > > flushing work I've done to support TTM properly..
> > >
> >
> > Did anything happen with that null-pointer deref I was hitting?
> >
>
> I've rebased the patches in my tree along with a chunk I missed which
> should make your patch unnecessary.
ok..
> Do you pull my agp-mm tree into -mm?
>
> ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/agp-2.6 agp-mm
> if not..
I pull
git+ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/agp-2.6.git#agp-mm
and
git+ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git#drm-mm
the agp tree was empty when I last pulled it, ~12 hours ago.
<looks>
There's stuff there now:
GIT d9b38a24bdbeeb38c03de7172a30769333452d10 git+ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/agp-2.6.git#agp-mm
commit d9b38a24bdbeeb38c03de7172a30769333452d10
Author: Dave Airlie <[email protected]>
Date: Wed Nov 21 16:36:31 2007 +1000
agp/intel: Add chipset flushing support for i8xx chipsets.
This is a bit of a large hammer but it makes sure the chipset is flushed
by writing out 1k of data to an uncached page. We may be able to get better
information in the future on how to this better.
Signed-off-by: Dave Airlie <[email protected]>
commit f5b8bc5801bc9676935cb7d2417a636a08e2e06d
Author: Dave Airlie <[email protected]>
Date: Mon Oct 29 18:06:10 2007 +1000
intel-agp: add chipset flushing support
This adds support for flushing the chipsets on the 915, 945, 965 and G33
families of Intel chips.
The BIOS doesn't seem to always allocate the BAR on the 965 chipsets
so I have to use pci resource code to create a resource
It adds an export for pcibios_align_resource.
commit 5beaa1edf58ef2a477049f21842a8f12f28b8366
Author: Dave Airlie <[email protected]>
Date: Mon Oct 29 15:14:03 2007 +1000
agp: add chipset flushing support to AGP interface
This bumps the AGP interface to 0.103.
Certain Intel chipsets contains a global write buffer, and this can require
flushing from the drm or X.org to make sure all data has hit RAM before
initiating a GPU transfer, due to a lack of coherency with the integrated
graphics device and this buffer.
This just adds generic support to the AGP interfaces, a follow-on patch
will add support to the Intel driver to use this interface.
Signed-off-by: Dave Airlie <[email protected]>
arch/x86/pci/i386.c | 2 +-
drivers/char/agp/agp.h | 3 +-
drivers/char/agp/backend.c | 2 +-
drivers/char/agp/compat_ioctl.c | 4 +
drivers/char/agp/compat_ioctl.h | 2 +
drivers/char/agp/frontend.c | 11 +++
drivers/char/agp/generic.c | 7 ++
drivers/char/agp/intel-agp.c | 150 +++++++++++++++++++++++++++++++++++++++
include/linux/agp_backend.h | 1 +
include/linux/agpgart.h | 1 +
10 files changed, 180 insertions(+), 3 deletions(-)