W dniu 31 stycznia 2010 12:27 użytkownik Rafał Miłecki <zaj...@gmail.com> napisał: > I need to call MemoryRefreshConversion which is: > > Size 0069 > Format Rev. 01 > Param Rev. 00 > Content Rev. 01 > Attributes: Work space size 01 longs > Parameter space size 00 longs > Table update indicator 0 > > How can I do this? > > > Following code: > index = GetIndexIntoMasterTable(COMMAND, MemoryRefreshConversion); > DRM_INFO("[DBG] MemoryRefreshConversion\n"); > atom_execute_table(rdev->mode_info.atom_context, index, NULL); > > Caused: > [ 31.022649] [drm] [DBG] MemoryRefreshConversion > [ 31.022700] BUG: unable to handle kernel NULL pointer dereference at (null) > [ 31.022719] IP: [<fc28c5e1>] atom_put_dst+0x171/0x510 [radeon] > [ 31.022770] *pde = 00000000 > [ 31.022780] Oops: 0002 [#1] PREEMPT SMP > [ 31.022793] last sysfs file: > /sys/devices/pci0000:00/0000:00:1c.3/0000:06:00.0/ieee80211/phy0/rfkill2/state > [ 31.022809] Modules linked in: af_packet ip6t_LOG xt_tcpudp > xt_pkttype xt_physdev ipt_LOG xt_limit rfcomm sco bridge stp > snd_pcm_oss snd_mixer_oss llc bnep snd_seq l2cap snd_seq_device edd > ip6t_REJECT nf_conntrack_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT > xt_state iptable_raw iptable_filter ip6table_mangle > nf_conntrack_netbios_ns cpufreq_conservative nf_conntrack_ipv4 > cpufreq_userspace nf_conntrack cpufreq_powersave nf_defrag_ipv4 > ip_tables acpi_cpufreq ip6table_filter ip6_tables x_tables fuse loop > dm_mod arc4 ecb cryptomgr crypto_hash aead pcompress > snd_hda_codec_atihdmi radeon crypto_blkcipher snd_hda_codec_realtek > ttm snd_hda_intel crypto_algapi drm_kms_helper snd_hda_codec iwlagn > snd_hwdep drm iwlcore snd_pcm sdhci_pci i2c_algo_bit mac80211 > snd_timer uvcvideo sdhci ohci1394 cfbcopyarea sr_mod snd btusb > videodev iTCO_wdt cfg80211 cfbimgblt sony_laptop video bluetooth > snd_page_alloc mmc_core v4l1_compat ieee1394 serio_raw > iTCO_vendor_support intel_agp i2c_i801 cfbfillrect sky2 pcspkr sg > backlight rfkill joydev cdrom button battery ac ext4 jbd2 fan > processor thermal thermal_sys > [ 31.023104] > [ 31.023113] Pid: 2234, comm: cat Not tainted (2.6.32-kms #38) VGN-FW11S > [ 31.023126] EIP: 0060:[<fc28c5e1>] EFLAGS: 00010246 CPU: 1 > [ 31.023138] EIP is at atom_put_dst+0x171/0x510 [radeon] > [ 31.023138] EAX: 00000000 EBX: 00000000 ECX: 0000e263 EDX: f65f3df8 > [ 31.023138] ESI: 00007404 EDI: 00000000 EBP: f65f3d90 ESP: f65f3d64 > [ 31.023138] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 > [ 31.023138] Process cat (pid: 2234, ti=f65f2000 task=f64931b0 > task.ti=f65f2000) > [ 31.023138] Stack: > [ 31.023138] 00000041 00000000 00000040 00000040 00007404 00000000 > f65f3df8 ffffffff > [ 31.023138] <0> 00007404 f65f3df8 00000002 f65f3dbc fc28e29a > f65f3da8 00007404 cdcdcdcd > [ 31.023138] <0> 00000001 0000e264 cdcdcdcd 00000002 00000002 > f69c5a40 f65f3e1c fc28e4ac > [ 31.023138] Call Trace: > [ 31.023138] [<fc28e29a>] ? atom_op_move+0xaa/0x170 [radeon] > [ 31.023138] [<fc28e4ac>] ? atom_execute_table_locked+0xbc/0x220 [radeon] > [ 31.023138] [<c11ac298>] ? vsnprintf+0xc8/0x410 > [ 31.023138] [<c1023912>] ? default_spin_lock_flags+0x12/0x20 > [ 31.023138] [<c13b6a00>] ? _read_lock_irqsave+0x20/0x50 > [ 31.023138] [<fc28e65b>] ? atom_op_calltable+0x4b/0xf0 [radeon] > [ 31.023138] [<fc28e4ac>] ? atom_execute_table_locked+0xbc/0x220 [radeon] > [ 31.023138] [<c11ae990>] ? bitmap_ord_to_pos+0x40/0x60 > [ 31.023138] [<fc28e740>] ? atom_execute_table+0x40/0x60 [radeon]
Uf, OK, I see we need to handle all parameters in PS_ALLOCATION (param-space I guess). That include also parameters we use deeper, in subcalls. -- Rafał ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel