From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michel =?ISO-8859-1?Q?D=E4nzer?= Subject: Re: [PATCH 2/2] drm/radeon: implement dynamic PTs allocation via SA Date: Thu, 27 Sep 2012 14:03:43 +0200 Message-ID: <1348747423.3647.288.camel@thor.local> References: <1348584252-22778-1-git-send-email-Dmitrii.Cherkasov@amd.com> <1348584252-22778-2-git-send-email-Dmitrii.Cherkasov@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail.gna.ch (darkcity.gna.ch [195.226.6.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 78AB09EB02 for ; Thu, 27 Sep 2012 05:03:57 -0700 (PDT) In-Reply-To: <1348584252-22778-2-git-send-email-Dmitrii.Cherkasov@amd.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Dmitry Cherkasov Cc: Alex Deucher , Dmitry Cherkasov , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Die, 2012-09-25 at 18:44 +0400, Dmitry Cherkasov wrote: = > make dynamic allocation of page tables on demand in radeon_vm_update_pte > = > Signed-off-by: Dmitry Cherkasov This change caused many piglit tests to fail for me on SI with radeon: The kernel rejected CS, see dmesg for more information. There was no corresponding dmesg output though. Afterwards, stopping X resulted in the kernel fault below. Trying to start X again hung after that. Sep 27 13:07:28 ruby kernel: [ 1286.402018] general protection fault: 0000 = [#1] SMP = Sep 27 13:07:28 ruby kernel: [ 1286.402155] Modules linked in: ppdev lp bne= p rfcomm bluetooth rfkill cpufreq_stats cpufreq_userspace cpufreq_powersave= cpufreq_conservative binfmt_misc nfsd auth_rpcgss nfs_acl nfs lockd fscach= e sunrpc ext2 fuse k8temp loop firewire_sbp2 snd_hda_codec_hdmi snd_hda_cod= ec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss = snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq = snd_timer serio_raw pcspkr snd_seq_device powernow_k8 mperf kvm_amd kvm pro= cessor parport_pc parport thermal_sys k10temp snd evdev i2c_piix4 soundcore= ext4 crc16 jbd2 mbcache dm_mod hid_generic usbhid hid sg sr_mod cdrom sd_m= od crc_t10dif microcode firewire_ohci ahci libahci firewire_core ohci_hcd c= rc_itu_t libata ehci_hcd xhci_hcd scsi_mod radeon(O) r8169 mii usbcore i2c_= algo_bit usb_common ttm drm_kms_helper drm i2c_core button Sep 27 13:07:28 ruby kernel: [ 1286.404249] CPU 0 = Sep 27 13:07:28 ruby kernel: [ 1286.404300] Pid: 21528, comm: Xorg Tainted:= G IO 3.6.0-rc5+ #79 Gigabyte Technology Co., Ltd. GA-A75M-UD2H/GA= -A75M-UD2H Sep 27 13:07:28 ruby kernel: [ 1286.404533] RIP: 0010:[] = [] kfree+0x5a/0xb1 Sep 27 13:07:28 ruby kernel: [ 1286.404700] RSP: 0018:ffff880201f39b48 EFL= AGS: 00010046 Sep 27 13:07:28 ruby kernel: [ 1286.404809] RAX: ffffea00077858c0 RBX: 0000= 000000000286 RCX: ffff880201f39b28 Sep 27 13:07:28 ruby kernel: [ 1286.404950] RDX: 0200000000000000 RSI: ffff= 880222628000 RDI: ffff880222628000 Sep 27 13:07:28 ruby kernel: [ 1286.405091] RBP: ffff880201f39b68 R08: 0000= 000000000002 R09: 0000000000000000 Sep 27 13:07:28 ruby kernel: [ 1286.405232] R10: dead000000200200 R11: ffff= 8802224d5448 R12: ffff880222628000 Sep 27 13:07:28 ruby kernel: [ 1286.405373] R13: dead000000100100 R14: 0000= 000000000800 R15: ffff880220b961e0 Sep 27 13:07:28 ruby kernel: [ 1286.405516] FS: 00007f8f59873700(0000) GS:= ffff880226600000(0000) knlGS:0000000000000000 Sep 27 13:07:28 ruby kernel: [ 1286.405676] CS: 0010 DS: 0000 ES: 0000 CR0= : 000000008005003b Sep 27 13:07:28 ruby kernel: [ 1286.405791] CR2: ffffffffff600400 CR3: 0000= 00000160b000 CR4: 00000000000007f0 Sep 27 13:07:28 ruby kernel: [ 1286.405933] DR0: 0000000000000000 DR1: 0000= 000000000000 DR2: 0000000000000000 Sep 27 13:07:28 ruby kernel: [ 1286.406074] DR3: 0000000000000000 DR6: 0000= 0000ffff0ff0 DR7: 0000000000000400 Sep 27 13:07:28 ruby kernel: [ 1286.406217] Process Xorg (pid: 21528, threa= dinfo ffff880201f38000, task ffff880220bf4940) Sep 27 13:07:28 ruby kernel: [ 1286.406376] Stack: Sep 27 13:07:28 ruby kernel: [ 1286.406422] 0000000000000000 ffff88022281b= d80 ffff880224870000 0000000000000800 Sep 27 13:07:28 ruby kernel: [ 1286.406599] ffff880201f39b98 ffffffffa0153= 2e9 ffff880224871ff0 ffff88022281bd80 Sep 27 13:07:28 ruby kernel: [ 1286.406774] ffff880224870000 ffff88022281b= db8 ffff880201f39bd8 ffffffffa015474b Sep 27 13:07:28 ruby kernel: [ 1286.406949] Call Trace: Sep 27 13:07:28 ruby kernel: [ 1286.407039] [] radeon_bo= _set_tiling_flags+0x149/0x1a4 [radeon] Sep 27 13:07:28 ruby kernel: [ 1286.407218] [] radeon_vm= _fini+0x40/0xce5 [radeon] Sep 27 13:07:28 ruby kernel: [ 1286.407369] [] radeon_dr= iver_postclose_kms+0x2e/0x47 [radeon] Sep 27 13:07:28 ruby kernel: [ 1286.407534] [] drm_relea= se+0x4a9/0x552 [drm] Sep 27 13:07:28 ruby kernel: [ 1286.407660] [] __fput+0x= 10f/0x1e5 Sep 27 13:07:28 ruby kernel: [ 1286.407768] [] ____fput+= 0x9/0xb Sep 27 13:07:28 ruby kernel: [ 1286.407872] [] task_work= _run+0x58/0x83 Sep 27 13:07:28 ruby kernel: [ 1286.407987] [] do_exit+0= x284/0x7d6 Sep 27 13:07:28 ruby kernel: [ 1286.408096] [] ? lock_re= lease+0x17d/0x1cd Sep 27 13:07:28 ruby kernel: [ 1286.408214] [] do_group_= exit+0x76/0xb5 Sep 27 13:07:28 ruby kernel: [ 1286.408330] [] get_signa= l_to_deliver+0x502/0x547 Sep 27 13:07:28 ruby kernel: [ 1286.408461] [] do_signal= +0x2f/0x4ac Sep 27 13:07:28 ruby kernel: [ 1286.408572] [] ? trace_h= ardirqs_on+0xd/0xf Sep 27 13:07:28 ruby kernel: [ 1286.408692] [] ? sys_fut= ex+0x11f/0x151 Sep 27 13:07:28 ruby kernel: [ 1286.408806] [] do_notify= _resume+0x41/0x7e Sep 27 13:07:28 ruby kernel: [ 1286.408926] [] int_signa= l+0x12/0x17 Sep 27 13:07:28 ruby kernel: [ 1286.409030] Code: 3b 00 eb 6d e8 59 ed ff f= f 49 83 fc 10 76 6a e8 e6 ec ff ff 48 89 c3 e8 65 24 f7 ff 4c 89 e7 e8 97 f= 1 ff ff 4c 8b 68 20 4c 89 e7 <49> 63 75 6c e8 c7 61 f7 ff 4c 89 e6 4c 89 ef= e8 7f f5 ff ff f6 = Sep 27 13:07:28 ruby kernel: [ 1286.409871] RIP [] kfree= +0x5a/0xb1 Sep 27 13:07:28 ruby kernel: [ 1286.409985] RSP Sep 27 13:07:28 ruby kernel: [ 1286.410062] ---[ end trace 85ca17c4ace45276= ]--- Sep 27 13:07:28 ruby kernel: [ 1286.410157] Fixing recursive fault but rebo= ot is needed! -- = Earthling Michel D=E4nzer | http://www.amd.com Libre software enthusiast | Debian, X and DRI developer