Re: [Intel-gfx] [PATCH 2/3] drm/i915: Sanitycheck device iomem on probe

2021-12-08 Thread Ramalingam C
On 2021-12-08 at 17:23:26 +0200, Andi Shyti wrote: > Hi Ram, > > > +static int intel_memory_region_memtest(struct intel_memory_region *mem, > > + void *caller) > > +{ > > + struct drm_i915_private *i915 = mem->i915; > > + int err = 0; > > + > > + if (!mem->io

[PATCH 2/3] drm/i915: Sanitycheck device iomem on probe

2021-12-08 Thread Ramalingam C
From: Chris Wilson As we setup the memory regions for the device, give each a quick test to verify that we can read and write to the full iomem range. This ensures that our physical addressing for the device's memory is correct, and some reassurance that the memory is functional. v2: wrapper for

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Sanitycheck device iomem on probe

2021-12-08 Thread Andi Shyti
Hi Ram, > +static int intel_memory_region_memtest(struct intel_memory_region *mem, > +void *caller) > +{ > + struct drm_i915_private *i915 = mem->i915; > + int err = 0; > + > + if (!mem->io_start) > + return 0; > + > + if (IS_ENABLED(

[PATCH 2/3] drm/i915: Sanitycheck device iomem on probe

2021-12-08 Thread Ramalingam C
From: Chris Wilson As we setup the memory regions for the device, give each a quick test to verify that we can read and write to the full iomem range. This ensures that our physical addressing for the device's memory is correct, and some reassurance that the memory is functional. v2: wrapper for