* [Patch] DRM support for addressing >32 bits on 32 bit cores (Radeon DRM driver+TTM)
@ 2014-08-15 11:46 Andrej Krutak
2014-08-18 10:00 ` Michel Dänzer
0 siblings, 1 reply; 2+ messages in thread
From: Andrej Krutak @ 2014-08-15 11:46 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1: Type: text/plain, Size: 465 bytes --]
Hello,
I was advised to send this stuff here (
https://bugs.freedesktop.org/show_bug.cgi?id=18154 ).
The patches are tested with a P3041 board and a TURKS radeon card. It appears
that the radeon driver is already generic enough (so no major changes were
needed there), fortunately.
I think esp. the TTM patch is clearly needed, but it may be incomplete...
--
Best regards | S pozdravom | Mit freundlichen Grüßen | Cordialement
Andrej Krutak
[-- Attachment #2: radeon.patch --]
[-- Type: text/x-patch, Size: 1015 bytes --]
Allow > 32-bit physical addresses in mmio base info text.
--- linux-ppc-3.12/drivers/gpu/drm/radeon/radeon_device.c 2014-08-05 13:47:28.254522980 +0200
+++ linux-ppc-3.12/drivers/gpu/drm/radeon/radeon_device.c 2014-08-05 13:58:40.648549673 +0200
@@ -258,7 +258,7 @@ int radeon_doorbell_init(struct radeon_d
if (rdev->doorbell.ptr == NULL) {
return -ENOMEM;
}
- DRM_INFO("doorbell mmio base: 0x%08X\n", (uint32_t)rdev->doorbell.base);
+ DRM_INFO("doorbell mmio base: 0x%016llX\n", (uint64_t)rdev->doorbell.base);
DRM_INFO("doorbell mmio size: %u\n", (unsigned)rdev->doorbell.size);
rdev->doorbell.num_pages = rdev->doorbell.size / PAGE_SIZE;
@@ -1271,7 +1271,7 @@ int radeon_device_init(struct radeon_dev
if (rdev->rmmio == NULL) {
return -ENOMEM;
}
- DRM_INFO("register mmio base: 0x%08X\n", (uint32_t)rdev->rmmio_base);
+ DRM_INFO("register mmio base: 0x%016llX\n", (uint64_t)rdev->rmmio_base);
DRM_INFO("register mmio size: %u\n", (unsigned)rdev->rmmio_size);
/* doorbell bar mapping */
[-- Attachment #3: ttm.patch --]
[-- Type: text/x-patch, Size: 424 bytes --]
Allow > 32-bit physical addresses for TTM bus placement.
--- linux-ppc-3.12/include/drm/ttm/ttm_bo_api.h 2014-08-05 13:47:31.082598913 +0200
+++ linux-ppc-3.12/include/drm/ttm/ttm_bo_api.h 2014-08-05 14:14:54.999755480 +0200
@@ -82,7 +82,7 @@ struct ttm_placement {
*/
struct ttm_bus_placement {
void *addr;
- unsigned long base;
+ resource_size_t base;
unsigned long size;
unsigned long offset;
bool is_iomem;
[-- Attachment #4: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] DRM support for addressing >32 bits on 32 bit cores (Radeon DRM driver+TTM)
2014-08-15 11:46 [Patch] DRM support for addressing >32 bits on 32 bit cores (Radeon DRM driver+TTM) Andrej Krutak
@ 2014-08-18 10:00 ` Michel Dänzer
0 siblings, 0 replies; 2+ messages in thread
From: Michel Dänzer @ 2014-08-18 10:00 UTC (permalink / raw)
To: Andrej Krutak; +Cc: dri-devel
On 15.08.2014 20:46, Andrej Krutak wrote:
>
> I was advised to send this stuff here (
> https://bugs.freedesktop.org/show_bug.cgi?id=18154 ).
Please send them as Git patches with a proper commit log. Preferably
with git send-email, but at least generated by git format-patch.
See Documentation/SubmittingPatches for more details.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-18 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-15 11:46 [Patch] DRM support for addressing >32 bits on 32 bit cores (Radeon DRM driver+TTM) Andrej Krutak
2014-08-18 10:00 ` Michel Dänzer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.