[PATCH 1/3] drm: add helper to check for wc memory support
Oded Gabbay
oded.gabbay at gmail.com
Tue Feb 2 13:01:10 CET 2016
On Mon, Feb 1, 2016 at 7:01 PM, Alex Deucher <alexdeucher at gmail.com> wrote:
>
> On Sat, Jan 30, 2016 at 4:57 AM, Christian König
> <deathsimple at vodafone.de> wrote:
> > Am 30.01.2016 um 06:59 schrieb Oded Gabbay:
> >>
> >> From: Dave Airlie <airlied at redhat.com>
> >>
> >> Signed-off-by: Dave Airlie <airlied at redhat.com>
> >> Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
> >
> >
> > With the minor issues Michel noted fixed this series is Reviewed-by:
> > Christian König <christian.koenig at amd.com> as well.
>
> Applied with the comments fixed up. Thanks!
>
> Alex
>
Hi Alex,
Could you please add stable tag ? I forgot to add them.
Thanks,
Oded
>
> >
> >
> >> ---
> >> include/drm/drm_cache.h | 9 +++++++++
> >> 1 file changed, 9 insertions(+)
> >>
> >> diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h
> >> index 7bfb063..461a055 100644
> >> --- a/include/drm/drm_cache.h
> >> +++ b/include/drm/drm_cache.h
> >> @@ -35,4 +35,13 @@
> >> void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
> >> +static inline bool drm_arch_can_wc_memory(void)
> >> +{
> >> +#if defined(CONFIG_PPC) && !defined(CONFIG_NOT_COHERENT_CACHE)
> >> + return false;
> >> +#else
> >> + return true;
> >> +#endif
> >> +}
> >> +
> >> #endif
> >
> >
More information about the dri-devel
mailing list