Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-10 Thread Alex Deucher
On Wed, Sep 10, 2014 at 12:03 AM, Michel Dänzer wrote: > On 10.09.2014 01:28, Alex Deucher wrote: >> >> On Mon, Sep 8, 2014 at 9:15 PM, Michel Dänzer wrote: >>> >>> On 09.09.2014 09:47, Michel Dänzer wrote: On 09.09.2014 02:36, Alex Deucher wrote: > > > Updated version with

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-09 Thread Michel Dänzer
On 10.09.2014 01:28, Alex Deucher wrote: On Mon, Sep 8, 2014 at 9:15 PM, Michel Dänzer wrote: On 09.09.2014 09:47, Michel Dänzer wrote: On 09.09.2014 02:36, Alex Deucher wrote: Updated version with comments integrated. [...] @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeo

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-09 Thread Alex Deucher
On Mon, Sep 8, 2014 at 9:15 PM, Michel Dänzer wrote: > On 09.09.2014 09:47, Michel Dänzer wrote: >> On 09.09.2014 02:36, Alex Deucher wrote: >>> >>> Updated version with comments integrated. >> >> [...] >> >>> @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeon_bo >>> *bo, u32 domain,

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-08 Thread Michel Dänzer
On 09.09.2014 09:47, Michel Dänzer wrote: > On 09.09.2014 02:36, Alex Deucher wrote: >> >> Updated version with comments integrated. > > [...] > >> @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeon_bo >> *bo, u32 domain, u64 max_offset, >> unsigned lpfn = 0; >> >>

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-08 Thread Michel Dänzer
On 09.09.2014 02:36, Alex Deucher wrote: Updated version with comments integrated. [...] @@ -314,10 +314,12 @@ int radeon_bo_pin_restricted(struct radeon_bo *bo, u32 domain, u64 max_offset, unsigned lpfn = 0; /* force to pin into visible video ram */ -

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-09-08 Thread Alex Deucher
On Thu, Aug 28, 2014 at 9:46 PM, Michel Dänzer wrote: > On 29.08.2014 00:01, Alex Deucher wrote: >> On Thu, Aug 28, 2014 at 4:57 AM, Christian König >> wrote: >>> Am 28.08.2014 um 08:56 schrieb Michel Dänzer: >>> From: Michel Dänzer This flag is a hint that userspace expects the B

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-28 Thread Michel Dänzer
On 29.08.2014 00:01, Alex Deucher wrote: > On Thu, Aug 28, 2014 at 4:57 AM, Christian König > wrote: >> Am 28.08.2014 um 08:56 schrieb Michel Dänzer: >> >>> From: Michel Dänzer >>> >>> This flag is a hint that userspace expects the BO to be accessed by the >>> CPU. We can use that hint to prevent

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-28 Thread Alex Deucher
On Thu, Aug 28, 2014 at 4:57 AM, Christian König wrote: > Am 28.08.2014 um 08:56 schrieb Michel Dänzer: > >> From: Michel Dänzer >> >> This flag is a hint that userspace expects the BO to be accessed by the >> CPU. We can use that hint to prevent such BOs from ever being stored in >> the CPU inac

Re: [Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-28 Thread Christian König
Am 28.08.2014 um 08:56 schrieb Michel Dänzer: From: Michel Dänzer This flag is a hint that userspace expects the BO to be accessed by the CPU. We can use that hint to prevent such BOs from ever being stored in the CPU inaccessible part of VRAM. Signed-off-by: Michel Dänzer This patch is Rev

[Mesa-dev] [PATCH] drm/radeon: Add RADEON_GEM_CPU_ACCESS BO creation flag

2014-08-27 Thread Michel Dänzer
From: Michel Dänzer This flag is a hint that userspace expects the BO to be accessed by the CPU. We can use that hint to prevent such BOs from ever being stored in the CPU inaccessible part of VRAM. Signed-off-by: Michel Dänzer --- drivers/gpu/drm/radeon/radeon_object.c | 11 +-- inclu