Skip to contentSkip to conversation

drm/ttm: use phys_addr_t for ttm_bus_placement

PATCH In review Alex Deucher 4 participants 4 messages Apr 1, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/ttm: use phys_addr_t for ttm_bus_placement

Fixes ttm on platforms like PPC460 where the CPU is in 32-bit mode, but the physical addresses are

Quoted 1 line

32 bits.

Extracted from a patch by Hans.

Cc Thomas Hellstrom <[email protected]>
Cc Julian Margetson <[email protected]>
Cc Hans Verkuil <[email protected]>
---
 include/drm/ttm/ttm_bo_api.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/ttm/ttm_bo_api.h +1 -1
index afae231..055a08d 100644
@@ -92,7 +92,7 @@ struct ttm_placement {
  */
 struct ttm_bus_placement {
 	void		*addr;
-	unsigned long	base;
+	phys_addr_t	base;
 	unsigned long	size;
 	unsigned long	offset;
 	bool		is_iomem;
Signature · 6 lines
2.5.5

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Tested-by on v1 1/1
#1 lore raw
Quoted 18 lines · Alex Deucher

Fixes ttm on platforms like PPC460 where the CPU is in 32-bit mode, but the physical addresses are

Quoted 1 line

32 bits.

Extracted from a patch by Hans.

Cc Thomas Hellstrom <[email protected]>
Cc Julian Margetson <[email protected]>
Cc Hans Verkuil <[email protected]>
---
  include/drm/ttm/ttm_bo_api.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/ttm/ttm_bo_api.h +0 -0
index afae231..055a08d 100644

include/drm/ttm/ttm_bo_api.h struct ttm_placement { · line 98

Quoted 8 lines
include/drm/ttm/ttm_bo_api.h +1 -1
@@ -92,7 +92,7 @@ struct ttm_placement {
   */
  struct ttm_bus_placement {
  	void		*addr;
-	unsigned long	base;
+	phys_addr_t	base;
  	unsigned long	size;
  	unsigned long	offset;
  	bool		is_iomem;

Tested and working .

Regards
Julian

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 28 lines · Julian Margetson
Quoted 18 lines · Alex Deucher

Fixes ttm on platforms like PPC460 where the CPU is in 32-bit mode, but the physical addresses are

Quoted 1 line

32 bits.

Extracted from a patch by Hans.

Cc Thomas Hellstrom <[email protected]>
Cc Julian Margetson <[email protected]>
Cc Hans Verkuil <[email protected]>
---
  include/drm/ttm/ttm_bo_api.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/ttm/ttm_bo_api.h +0 -0
index afae231..055a08d 100644

include/drm/ttm/ttm_bo_api.h struct ttm_placement { · line 98

Quoted 8 lines
include/drm/ttm/ttm_bo_api.h +1 -1
@@ -92,7 +92,7 @@ struct ttm_placement {
   */
  struct ttm_bus_placement {
      void        *addr;
-    unsigned long    base;
+    phys_addr_t    base;
      unsigned long    size;
      unsigned long    offset;
      bool        is_iomem;

Tested and working .

Quoted 6 lines

Regards
Julian

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/1
#3 lore raw
In reply to Alex Deucher

Am 01.04.2016 um 17:02 schrieb Alex Deucher:

Quoted 9 lines

Fixes ttm on platforms like PPC460 where the CPU is in 32-bit mode, but the physical addresses are

Quoted 1 line

32 bits.

Extracted from a patch by Hans.

Cc Thomas Hellstrom <[email protected]>
Cc Julian Margetson <[email protected]>
Cc Hans Verkuil <[email protected]>
Quoted 9 lines
---
  include/drm/ttm/ttm_bo_api.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/ttm/ttm_bo_api.h +0 -0
index afae231..055a08d 100644

include/drm/ttm/ttm_bo_api.h struct ttm_placement { · line 98

Quoted 8 lines
include/drm/ttm/ttm_bo_api.h +1 -1
@@ -92,7 +92,7 @@ struct ttm_placement {
   */
  struct ttm_bus_placement {
  	void		*addr;
-	unsigned long	base;
+	phys_addr_t	base;
  	unsigned long	size;
  	unsigned long	offset;
  	bool		is_iomem;

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel