Re: [PATCH] drm/etnaviv: don't fail to build on arches without PHYS_OFFSET

2018-01-09 Thread Lucas Stach
Am Montag, den 08.01.2018, 11:16 -0700 schrieb Joshua Clayton: > It seems wrong to define PHYS_OFFSET here in a gpu driver. > Is there an actual ARC system using vivante? Yes. > The bit of code that uses PHYS_OFFSET looks pretty ARM specific. > > If not, then at least maybe > > +#if !define (PH

Re: [PATCH] drm/etnaviv: don't fail to build on arches without PHYS_OFFSET

2018-01-09 Thread Joshua Clayton
It seems wrong to define PHYS_OFFSET here in a gpu driver. Is there an actual ARC system using vivante? The bit of code that uses PHYS_OFFSET looks pretty ARM specific. If not, then at least maybe +#if !define (PHYS_OFFSET) && defined (COMPILE_TEST) +#define PHY_OFFSET 0 +#endif would be more ap

[PATCH] drm/etnaviv: don't fail to build on arches without PHYS_OFFSET

2018-01-07 Thread Lucas Stach
Some architecture ports like ARC don't provide the PHYS_OFFSET symbol. Define it to 0 in that case, which is the most conservative default in the usage context of the etnaviv driver. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 1 file changed, 4 insertions(+) d