[PATCH] drm: fix i_mapping and f_mapping initialization in drm_open in error path

Marco Munderloh munderl at tnt.uni-hannover.de
Tue Apr 2 05:01:37 PDT 2013


Hi Ilija,

> Thanks for testing. Other issues are probably unrelated, so I'll send the last version of the patch to Dave.

I came across another problem which seems related. rmmod radeon works, however, modprobe radeon afterwards results in a crash (divide error), see attachment.

Best, Marco

On 02.04.2013 13:23, Ilija Hadzic wrote:
>
> -- Ilija
>
> On Tue, Apr 2, 2013 at 6:36 AM, Marco Munderloh <munderl at tnt.uni-hannover.de <mailto:munderl at tnt.uni-hannover.de>> wrote:
>
>         Attached is a v2 of the patch, for reference. I would appreciate if the original reporter or you tested it in lieu of your proposed patch and let me know if it
>         fixes your
>         issue.
>
>
>     The patch works for me. echo 3 > /proc/sys/vm/drop_caches as well as rmmod radeon do not end up in a crash anymore. However, I have still no clue why one of these makes
>     drm_open to fail. On rmmod radeon I get the following log messages. If don't know if the 'unpin not necessary' has anything to do with it.
>
>     [drm] radeon: finishing device.
>     radeon 0000:01:00.0: ffff88024e526c00 unpin not necessary
>     radeon 0000:01:00.0: ffff88024f2f6000 unpin not necessary
>     radeon 0000:01:00.0: ffff88024f2f6000 unpin not necessary
>     [TTM] Finalizing pool allocator
>     [TTM] Finalizing DMA pool allocator
>     [TTM] Zone  kernel: Used memory at exit: 0 kiB
>     [TTM] Zone   dma32: Used memory at exit: 0 kiB
>     [drm] radeon: ttm finalized
>     vga_switcheroo: disabled
>     [drm] Module unloaded
>
>     By the way, sometimes my r8169 ethernet controller does not survive suspend/hibernation (does not detect link). rmmod/modprobe helps. I don't know if this is related.
>
>

-- 
Dipl.-Ing. Marco Munderloh             Mail: munderl at tnt.uni-hannover.de
Institut für Informationsverarbeitung (TNT)     Phone: +49 511 762-19587
Leibniz Universitaet Hannover, Appelstr. 9a       Fax: +49 511 762- 5333
30167 Hannover, Germany     Web: http://www.tnt.uni-hannover.de/~munderl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash_modprobe_radeon.log
Type: text/x-log
Size: 12046 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130402/1b198711/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4523 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130402/1b198711/attachment-0003.bin>


More information about the dri-devel mailing list