Problems when try to alloc user bo using TTM
Hi all: TTM provide "ttm_bo_type_user" which create bo from user space memory. I try to use this functions, but find some problems: 1. Can not get "pages" when driver try to bind user pages to GPU apterure. ttm->state set to "tt_unbound" when add ttm structs, while ttm_tt_populate prevent driver populate function called if ttm->state is not "tt_unpopulated" int ttm_tt_populate(struct ttm_tt *ttm) { struct page *page; unsigned long i; struct ttm_backend *be; int ret; if (ttm->state != tt_unpopulated) return 0; 2. Page number may not be the size it rounded up. eg. supports allocate a user space BO size=5K, which round up to 2 pages,but it should be 3, if the user space memory like this page1 page2 page3 ___ |_|_|_|_| |<>| 5k Thanks april -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29572] Radeon card reports wrong temperature when switched off
https://bugzilla.kernel.org/show_bug.cgi?id=29572 --- Comment #7 from Alex Deucher 2011-02-24 06:21:01 --- None of the temperatures potentially returned are accurate when the device is disabled. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29572] Radeon card reports wrong temperature when switched off
https://bugzilla.kernel.org/show_bug.cgi?id=29572 --- Comment #6 from Alex Deucher 2011-02-24 06:19:12 --- The previous behavior was undefined; it just happened to be 0 for one user. It's reading back a register from an MMIO aperture on a disabled PCI device. It might read back as 50 for someone else in the same situation. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29572] Radeon card reports wrong temperature when switched off
https://bugzilla.kernel.org/show_bug.cgi?id=29572 --- Comment #5 from Andrew Morton 2011-02-24 05:14:11 --- (In reply to comment #4) > The old behavior was wrong. Don't care really. We shouldn't change interfaces. > The temperature value in the register was > interpreted incorrectly prior to my recent patch (improper handling of signed > values). That seems unrelated. > Also, if the card is disabled, the value of the mmio registers is > undefined. So reads should have returned -EINVAL from day one. Too late to fix that. The best thing to do now would be to detect this situation and to return zero, preserving the API. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29572] Radeon card reports wrong temperature when switched off
https://bugzilla.kernel.org/show_bug.cgi?id=29572 --- Comment #4 from Alex Deucher 2011-02-24 04:36:28 --- The old behavior was wrong. The temperature value in the register was interpreted incorrectly prior to my recent patch (improper handling of signed values). Also, if the card is disabled, the value of the mmio registers is undefined. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29572] Radeon card reports wrong temperature when switched off
https://bugzilla.kernel.org/show_bug.cgi?id=29572 Andrew Morton changed: What|Removed |Added CC||a...@linux-foundation.org --- Comment #3 from Andrew Morton 2011-02-24 00:13:17 --- Retaining the old behavior is desirable. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 25052] kernel modesetting still does not work
https://bugzilla.kernel.org/show_bug.cgi?id=25052 --- Comment #17 from Elmar Stellnberger 2011-02-23 21:29:44 --- Concerning your patches I believe that they will be valuable for many users (although I could not verify them for me yet.). As I have found out flawed EDIDs are a known problem and thatways f.i. already addressed by the proprietary fglrx driver through letting the user select out of a prewritten list of artificial EDIDs for known monitor types. Nonetheless just using the EDID of another port of the same monitor or just suppressing the checksum test promises to be a more gracile way of resolving such an issue. That is basically why I want to make a commit request for these patches to be acquired in the final openSuSE 11.4 release within 15 days so that more people can test these options (mentioning them in the release notes with a demand to report the results for finally acquiring the patches into the mainline kernel.). As far as now I would also issue the following additional feature requests for an in future comprehensively EDID relied graphics system: (1) kernel option for using a user supplied EDID (instead of the hw. supplied ED.) (2) option(s) for Xorg or the radeon kernel module to achieve the same: rebooting is painful and the typical user will have to test different things. If Xorg quits without success in modesetting (as so often by 2.6.36.1-1) or detects a wrong EDID checksum then it should point the user on the fgconsole to try them. by the way: Do you know whether the nouveau driver does already fully rely on KMS? -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 25052] kernel modesetting still does not work
https://bugzilla.kernel.org/show_bug.cgi?id=25052 --- Comment #16 from Elmar Stellnberger 2011-02-23 20:45:45 --- As Comment #15 shows there is currently something more fundamentally messed up with KMS (which is apparently not EDID-related). Actually the situation has rather deteriorated instead of improving: 2.6.34-12.1 & -9.3: itg: works, ext: dark 2.6.36.1-1, Comment #1: non-deterministic, once it worked for both monitors 2.6.38-0.0.12: both monitors: vertical pixelry, nothing works (results completed by downstream report from openSuSE as linked by Comment #1.) If it works for other cards KMS does probably have a problem with ATI or just ATI Mobility 2xxx cards (I am planning to make a request to the oS core test team in this regard and will tell you as soon as results should become available.). -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 25052] kernel modesetting still does not work
https://bugzilla.kernel.org/show_bug.cgi?id=25052 --- Comment #15 from Elmar Stellnberger 2011-02-23 20:27:24 --- Unfortunately the tests of Comment #14 were not significant. I have tested the patches with the same kernel but a different Xorg namely xorg-x11-server-7.6_1.9.3-122.1 and xorg-x11-driver-video-7.6-180.1 which however now does resolve UMS for radeon so that everything does again work without any patch and kernel option. With a full KMS kernel like 2.6.38-0.0.12 on the other hand unfortunately video mode initializtion does at me currently not work at all under any configuration: neither with the integrated monitor nor with my external one over any of the ports DVI, HDMI or VGA. Here are the exact results: VGA: itg: colored vertical lines; ext: c.v.l.(the same), mouse: pixelry HDMI: itg & ext: colored lines; this time brighter with more white, mouse: same DVI: itg: 1st: colored lines; 2nd: sparse colored lines ahead of white bg, ext 1&2: at first 'no signal'-dark then the same as for itg, mouse: same As the screen output for DVI has differed between two consecutive test runs I presume that there is no substantial difference in the result between different monitors and ports (always vertical colorful lines). The mouse did at first never appear until you moved it into the upper left screen area where there would normally appear an xterm by xinit. From then on the mouse pointer was represented by a rectangular pixel surrogate. Rebooting was the only escape though the system was still reactive (no crash or hang): changing the virtual terminal (chvt) or exiting X from an exit typed into xterm both resulted in a fully blackened screen with no more output. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29632] v2.6.38-rc5 drm:radeon regression
https://bugzilla.kernel.org/show_bug.cgi?id=29632 Rafael J. Wysocki changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29632] v2.6.38-rc5 drm:radeon regression
https://bugzilla.kernel.org/show_bug.cgi?id=29632 Rafael J. Wysocki changed: What|Removed |Added Status|NEW |RESOLVED Resolution||CODE_FIX -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29632] v2.6.38-rc5 drm:radeon regression
https://bugzilla.kernel.org/show_bug.cgi?id=29632 Marek Olšák changed: What|Removed |Added CC||mar...@gmail.com --- Comment #3 from Marek Olšák 2011-02-23 10:55:22 --- This was fixed with commit 45e4039c3aea597ede44a264cea322908cdedfe9 in Dave Airlie's drm-fixes branch. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde
https://bugzilla.kernel.org/show_bug.cgi?id=14442 --- Comment #36 from Duncan <1i5t5.dun...@cox.net> 2011-02-23 10:30:57 --- Yes, thanks for the clarification. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde
https://bugzilla.kernel.org/show_bug.cgi?id=14442 Florian Mickler changed: What|Removed |Added Status|RESOLVED|CLOSED Resolution|PATCH_ALREADY_AVAILABLE |UNREPRODUCIBLE --- Comment #35 from Florian Mickler 2011-02-23 10:02:40 --- Where is the patch that fixes the issue? You can choose between 3 alternatives here: - Resolved|PatchAlreadyAvailable means there is a patch that is not yet merged in Linus tree, this always needs a line "Patch: url_to_patch" in order for Rafaels scripts to work nicely. (Not strictly needed here, as he doesn't produce reports for old kernels ... but.. anyway) - Closed|CodeFix means, a commit was merged into linus tree that has fixed the issue (always give the sha1 id of that commit - Closed|Unreproducible means, it is not reproducible on current linus tree but it's not clear what fixed it. (i.e. you can not provide a sha1 of the fix) I guess, the last one is what's applicable here? -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29632] v2.6.38-rc5 drm:radeon regression
https://bugzilla.kernel.org/show_bug.cgi?id=29632 Rafael J. Wysocki changed: What|Removed |Added CC||airl...@linux.ie --- Comment #2 from Rafael J. Wysocki 2011-02-23 09:13:17 --- First-Bad-Commit : fff1ce4dc6113b6fdc4e3a815ca5fd229408f8ef -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 29632] v2.6.38-rc5 drm:radeon regression
https://bugzilla.kernel.org/show_bug.cgi?id=29632 Fabio changed: What|Removed |Added CC||fabio@libero.it --- Comment #1 from Fabio 2011-02-23 08:48:11 --- From http://marc.info/?l=linux-kernel&m=129803001230359&w=2 : fff1ce4dc6113b6fdc4e3a815ca5fd229408f8ef is the first bad commit commit fff1ce4dc6113b6fdc4e3a815ca5fd229408f8ef Author: Marek Olšák Date: Mon Feb 14 01:01:10 2011 +0100 drm/radeon/kms: check AA resolve registers on r300 This is an important security fix because we allowed arbitrary values to be passed to AARESOLVE_OFFSET. This also puts the right buffer address in the register. Signed-off-by: Marek Olšák Signed-off-by: Dave Airlie :04 04 c3a86a556f8c4ee1313bdc12e1f86cb44bacb742 5b872a00532f36c0514790223375f1377a588501 M drivers -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel
[Bug 14442] resume after hibernate: /dev/sdb drops and returns as /dev/sde
https://bugzilla.kernel.org/show_bug.cgi?id=14442 Duncan <1i5t5.dun...@cox.net> changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution||PATCH_ALREADY_AVAILABLE --- Comment #34 from Duncan <1i5t5.dun...@cox.net> 2011-02-23 08:45:14 --- AFAICT, Resolved with 2.6.37 release, so updating as such. I finally got some time to test with a stable kernel, and as of 2.6.37, as best I can tell (this one bedeviled me to the point I'm reluctant to say it's for sure fixed now, without a YEAR of it not coming back!), it's fixed. The kernel comes back up and from CLI (there's major X corruption preventing use of it after restore, but that'd be a different bug), I can dmesg, which clearly shows (1) an initial failure to read the drive's ID info properly, as before, but now, (2) instead of kicking it out to sde (with sd[a-d] normal) or whatever as it did before, it apparently retries and comes up with the proper ID, thus returning the drive to the proper sd[a-d] letter and its partitions to the proper place in their assigned md/RAIDs. On a slightly different note, a big THANKS! to whoever introduced and continues maintaining magic-sysreq. I had a hardware issue for awhile and at first thought it was yet another pre-release kernel bug. A bit of circuit-trace paint later (expensive keyboard) and it's working fine again, but as often the case, I didn't realize how much I took that feature for granted until it failed. And of course, thanks for getting the device-id detect and if necessary retry working, too. =:^) Now to see how 2.6.38 is coming along. Maybe the radeon graphics restore-state-on-resume works better now. We'll see. -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are watching the assignee of the bug. -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- ___ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel