mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Wang <davidwang@zhaoxin.com>
To: <mpm@selenic.com>, <herbert@gondor.apana.org.au>, <arnd@arndb.de>,
	<gregkh@linuxfoundation.org>, <linux-kernel@vger.kernel.org>,
	<linux-crypto@vger.kernel.org>
Cc: <brucechang@via-alliance.com>, <cooperyan@zhaoxin.com>,
	<qiyuanwang@zhaoxin.com>, <benjaminpan@viatech.com>,
	<lukelin@viacpu.com>, <timguo@zhaoxin.com>
Subject: 答复: [PATCH] hwrng: via-rng - support new Centaur CPU
Date: Mon, 16 Apr 2018 10:30:27 +0800	[thread overview]
Message-ID: <000001d3d52a$e1e21830$a5a64890$@zhaoxin.com> (raw)
In-Reply-To: <1523602983-3418-1-git-send-email-davidwang@zhaoxin.com>

> -----邮件原件-----
> 发件人: David Wang [mailto:davidwang@zhaoxin.com]
> 发送时间: 2018年4月13日 15:03
> 收件人: mpm@selenic.com; herbert@gondor.apana.org.au; arnd@arndb.de;
> grehkg@linuxfoundation.org; linux-kernel@vger.kernel.org;
> linux-crypto@vger.kernel.org
> 抄送: brucechang@via-alliance.com; cooperyan@zhaoxin.com;
> qiyuanwang@zhaoxin.com; benjaminpan@viatech.com; lukelin@viacpu.com;
> timguo@zhaoxin.com; David Wang <davidwang@zhaoxin.com>
> 主题: [PATCH] hwrng: via-rng - support new Centaur CPU
> 
> New Centaur CPU(Family > 6) supprt Random Number Generator, but can't
> support MSR_VIA_RNG. Just like VIA Nano.
> 
> Signed-off-by: David Wang <davidwang@zhaoxin.com>
> ---
>  drivers/char/hw_random/via-rng.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/char/hw_random/via-rng.c
> b/drivers/char/hw_random/via-rng.c
> index d1f5bb5..d9448b1 100644
> --- a/drivers/char/hw_random/via-rng.c
> +++ b/drivers/char/hw_random/via-rng.c
> @@ -135,7 +135,7 @@ static int via_rng_init(struct hwrng *rng)
>  	 * is always enabled if CPUID rng_en is set.  There is no
>  	 * RNG configuration like it used to be the case in this
>  	 * register */
> -	if ((c->x86 == 6) && (c->x86_model >= 0x0f)) {
> +	if (((c->x86 == 6) && (c->x86_model >= 0x0f))  || (c->x86 > 6)){
>  		if (!boot_cpu_has(X86_FEATURE_XSTORE_EN)) {
>  			pr_err(PFX "can't enable hardware RNG "
>  				"if XSTORE is not enabled\n");
> --
> 1.9.1
Sorry to write wrong email address of Greg.

---
David

  reply	other threads:[~2018-04-16  2:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-13  7:03 David Wang
2018-04-16  2:30 ` David Wang [this message]
2018-04-20 17:05 ` Herbert Xu

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='000001d3d52a$e1e21830$a5a64890$@zhaoxin.com' \
    --to=davidwang@zhaoxin.com \
    --cc=arnd@arndb.de \
    --cc=benjaminpan@viatech.com \
    --cc=brucechang@via-alliance.com \
    --cc=cooperyan@zhaoxin.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukelin@viacpu.com \
    --cc=mpm@selenic.com \
    --cc=qiyuanwang@zhaoxin.com \
    --cc=timguo@zhaoxin.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

all inboxes | Powered by JetHome®