The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Zhenyu Wang <zhenyuw@linux.intel.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: zhi.a.wang@intel.com, zhenyuw@linux.intel.com, airlied@linux.ie,
	intel-gfx@lists.freedesktop.org, igvt-g-dev@ml01.01.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	jani.nikula@linux.intel.com, daniel.vetter@intel.com
Subject: Re: [igvt-g-dev] [PATCH] drm/i915/gvt: Fix kmem_cache_create() name
Date: Wed, 25 Jan 2017 10:25:19 +0800	[thread overview]
Message-ID: <20170125022519.3q3nomcc2v33jj2y@zhen-hp.sh.intel.com> (raw)
In-Reply-To: <20170124201524.10895.88940.stgit@gimli.home>

[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]

On 2017.01.24 13:15:43 -0700, Alex Williamson wrote:
> According to kmem_cache_sanity_check(), spaces are not allowed in the
> name of a cache and results in a kernel oops with CONFIG_DEBUG_VM.
> Convert to underscores.
> 
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---

Will send to 4.10 fixes. Thanks!

>  drivers/gpu/drm/i915/gvt/execlist.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c
> index f32bb6f..d03b229 100644
> --- a/drivers/gpu/drm/i915/gvt/execlist.c
> +++ b/drivers/gpu/drm/i915/gvt/execlist.c
> @@ -826,7 +826,7 @@ int intel_vgpu_init_execlist(struct intel_vgpu *vgpu)
>  		INIT_LIST_HEAD(&vgpu->workload_q_head[i]);
>  	}
>  
> -	vgpu->workloads = kmem_cache_create("gvt-g vgpu workload",
> +	vgpu->workloads = kmem_cache_create("gvt-g_vgpu_workload",
>  			sizeof(struct intel_vgpu_workload), 0,
>  			SLAB_HWCACHE_ALIGN,
>  			NULL);
> 
> _______________________________________________
> igvt-g-dev mailing list
> igvt-g-dev@lists.01.org
> https://lists.01.org/mailman/listinfo/igvt-g-dev

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

      reply	other threads:[~2017-01-25  2:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24 20:15 [PATCH] drm/i915/gvt: Fix kmem_cache_create() name Alex Williamson
2017-01-25  2:25 ` Zhenyu Wang [this message]

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=20170125022519.3q3nomcc2v33jj2y@zhen-hp.sh.intel.com \
    --to=zhenyuw@linux.intel.com \
    --cc=airlied@linux.ie \
    --cc=alex.williamson@redhat.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=igvt-g-dev@ml01.01.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zhi.a.wang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox