All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Arkadiusz Hiler <arkadiusz.hiler@intel.com>,
	Matthew Auld <matthew.william.auld@gmail.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
	Matthew Auld <matthew.auld@intel.com>
Subject: Re: [PATCH] drm/i915/lmem: add the fake lmem region
Date: Wed, 06 Nov 2019 11:17:29 +0000	[thread overview]
Message-ID: <157303904973.24928.5397179241917221252@skylake-alporthouse-com> (raw)
In-Reply-To: <20191106083037.7bylgel7e3q37kht@ahiler-desk1.fi.intel.com>

Quoting Arkadiusz Hiler (2019-11-06 08:30:37)
> On Tue, Nov 05, 2019 at 01:05:20PM +0000, Matthew Auld wrote:
> > On Thu, 31 Oct 2019 at 20:40, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > >
> > > Quoting Arkadiusz Hiler (2019-10-31 12:40:35)
> > > > On Wed, Oct 30, 2019 at 10:22:37PM +0000, Matthew Auld wrote:
> > > > > On Tue, 29 Oct 2019 at 16:51, Matthew Auld <matthew.auld@intel.com> wrote:
> > > > > >
> > > > > > Intended for upstream testing so that we can still exercise the LMEM
> > > > > > plumbing and !i915_ggtt_has_aperture paths. Smoke tested on Skull Canyon
> > > > > > device. This works by allocating an intel_memory_region for a reserved
> > > > > > portion of system memory, which we treat like LMEM. For the LMEMBAR we
> > > > > > steal the aperture and 1:1 it map to the stolen region.
> > > > > >
> > > > > > To enable simply set the i915 modparam fake_lmem_start= on the kernel
> > > > > > cmdline with the start of reserved region(see memmap=). The size of the
> > > > > > region we can use is determined by the size of the mappable aperture, so
> > > > > > the size of reserved region should be >= mappable_end. For now we only
> > > > > > enable for the selftests. Depends on CONFIG_DRM_I915_UNSTABLE being
> > > > > > enabled.
> > > > > >
> > > > > > eg. memmap=2G$16G i915.fake_lmem_start=0x400000000
> > > > >
> > > > > Hi Arek,
> > > > >
> > > > > Would you be able to update the fi-skl-lmem kernel cmd line with
> > > > > s/i915_fake_lmem_start/i915.fake_lmem_start?
> > > >
> > > > done
> > >
> > > <6>[  497.897456] [drm] Intel graphics fake LMEM: [mem 0x100000000-0x13fffffff]
> > > <6>[  497.897459] [drm] Intel graphics fake LMEM IO start: 40000000
> > > <6>[  497.897461] [drm] Intel graphics fake LMEM size: 40000000
> > >
> > > All present.
> > 
> > Arek,
> > 
> > Could we enable DRM_I915_UNSTABLE_FAKE_LMEM in CI? That should give us
> > some coverage of the fake local-memory setup on fi-skl-lmem.
> 
> Hey,
> 
>   config DRM_I915_UNSTABLE
>           bool "Enable unstable API for early prototype development"
>           depends on EXPERT
>           depends on STAGING
>           depends on BROKEN # should never be enabled by distros!
> 
>   config DRM_I915_UNSTABLE_FAKE_LMEM
>           bool "Enable the experimental fake lmem"
>           depends on DRM_I915_UNSTABLE
> 
> AFAIU because of that dependency on CONFIG_BROKEN we cannot just enable
> it through .config - we have to edit the value in init/Kconfig[0].

Before the revert last night, CONFIG_BROKEN was already enabled in
CI. It's now enabled again. The above output was from CI setting up lmem
without extra hackery.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

WARNING: multiple messages have this Message-ID (diff)
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Arkadiusz Hiler <arkadiusz.hiler@intel.com>,
	Matthew Auld <matthew.william.auld@gmail.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
	Matthew Auld <matthew.auld@intel.com>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/lmem: add the fake lmem region
Date: Wed, 06 Nov 2019 11:17:29 +0000	[thread overview]
Message-ID: <157303904973.24928.5397179241917221252@skylake-alporthouse-com> (raw)
Message-ID: <20191106111729.vRIeHnCdGQzDbtMo7zxQJzgnErRMS0RFlE3Us2cfk8w@z> (raw)
In-Reply-To: <20191106083037.7bylgel7e3q37kht@ahiler-desk1.fi.intel.com>

Quoting Arkadiusz Hiler (2019-11-06 08:30:37)
> On Tue, Nov 05, 2019 at 01:05:20PM +0000, Matthew Auld wrote:
> > On Thu, 31 Oct 2019 at 20:40, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > >
> > > Quoting Arkadiusz Hiler (2019-10-31 12:40:35)
> > > > On Wed, Oct 30, 2019 at 10:22:37PM +0000, Matthew Auld wrote:
> > > > > On Tue, 29 Oct 2019 at 16:51, Matthew Auld <matthew.auld@intel.com> wrote:
> > > > > >
> > > > > > Intended for upstream testing so that we can still exercise the LMEM
> > > > > > plumbing and !i915_ggtt_has_aperture paths. Smoke tested on Skull Canyon
> > > > > > device. This works by allocating an intel_memory_region for a reserved
> > > > > > portion of system memory, which we treat like LMEM. For the LMEMBAR we
> > > > > > steal the aperture and 1:1 it map to the stolen region.
> > > > > >
> > > > > > To enable simply set the i915 modparam fake_lmem_start= on the kernel
> > > > > > cmdline with the start of reserved region(see memmap=). The size of the
> > > > > > region we can use is determined by the size of the mappable aperture, so
> > > > > > the size of reserved region should be >= mappable_end. For now we only
> > > > > > enable for the selftests. Depends on CONFIG_DRM_I915_UNSTABLE being
> > > > > > enabled.
> > > > > >
> > > > > > eg. memmap=2G$16G i915.fake_lmem_start=0x400000000
> > > > >
> > > > > Hi Arek,
> > > > >
> > > > > Would you be able to update the fi-skl-lmem kernel cmd line with
> > > > > s/i915_fake_lmem_start/i915.fake_lmem_start?
> > > >
> > > > done
> > >
> > > <6>[  497.897456] [drm] Intel graphics fake LMEM: [mem 0x100000000-0x13fffffff]
> > > <6>[  497.897459] [drm] Intel graphics fake LMEM IO start: 40000000
> > > <6>[  497.897461] [drm] Intel graphics fake LMEM size: 40000000
> > >
> > > All present.
> > 
> > Arek,
> > 
> > Could we enable DRM_I915_UNSTABLE_FAKE_LMEM in CI? That should give us
> > some coverage of the fake local-memory setup on fi-skl-lmem.
> 
> Hey,
> 
>   config DRM_I915_UNSTABLE
>           bool "Enable unstable API for early prototype development"
>           depends on EXPERT
>           depends on STAGING
>           depends on BROKEN # should never be enabled by distros!
> 
>   config DRM_I915_UNSTABLE_FAKE_LMEM
>           bool "Enable the experimental fake lmem"
>           depends on DRM_I915_UNSTABLE
> 
> AFAIU because of that dependency on CONFIG_BROKEN we cannot just enable
> it through .config - we have to edit the value in init/Kconfig[0].

Before the revert last night, CONFIG_BROKEN was already enabled in
CI. It's now enabled again. The above output was from CI setting up lmem
without extra hackery.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-11-06 11:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-29 16:51 [PATCH] drm/i915/lmem: add the fake lmem region Matthew Auld
2019-10-29 16:51 ` [Intel-gfx] " Matthew Auld
2019-10-30  1:43 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-10-30  1:43   ` [Intel-gfx] " Patchwork
2019-10-30  1:57 ` ✗ Fi.CI.BAT: failure " Patchwork
2019-10-30  1:57   ` [Intel-gfx] " Patchwork
2019-10-30  9:14 ` [PATCH] " Chris Wilson
2019-10-30  9:14   ` [Intel-gfx] " Chris Wilson
2019-10-30 22:22 ` Matthew Auld
2019-10-30 22:22   ` [Intel-gfx] " Matthew Auld
2019-10-31 12:40   ` Arkadiusz Hiler
2019-10-31 12:40     ` [Intel-gfx] " Arkadiusz Hiler
2019-10-31 20:40     ` Chris Wilson
2019-10-31 20:40       ` [Intel-gfx] " Chris Wilson
2019-11-05 13:05       ` Matthew Auld
2019-11-05 13:05         ` [Intel-gfx] " Matthew Auld
2019-11-06  8:30         ` Arkadiusz Hiler
2019-11-06  8:30           ` [Intel-gfx] " Arkadiusz Hiler
2019-11-06 11:17           ` Chris Wilson [this message]
2019-11-06 11:17             ` Chris Wilson
2019-11-06 13:58             ` Arkadiusz Hiler
2019-11-06 13:58               ` [Intel-gfx] " Arkadiusz Hiler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=157303904973.24928.5397179241917221252@skylake-alporthouse-com \
    --to=chris@chris-wilson.co.uk \
    --cc=arkadiusz.hiler@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    --cc=matthew.william.auld@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.