Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1366763

Re: arm64: kernel v4.6-rc1 hangs on QEMU

From Yury Norov <ynorov@caviumnetworks.com>
Newsgroups linux.kernel
Subject Re: arm64: kernel v4.6-rc1 hangs on QEMU
Date 2016-03-30 01:00 +0200
Message-ID <riaM9-4u5-3@gated-at.bofh.it> (permalink)
References <ri9ZM-46r-15@gated-at.bofh.it> <ria9s-4ad-5@gated-at.bofh.it> <riaj7-4fC-5@gated-at.bofh.it> <riasN-4m1-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Mar 30, 2016 at 12:32:42AM +0200, Arnd Bergmann wrote:
> On Wednesday 30 March 2016 01:22:17 Yury Norov wrote:
> > > 
> > > Undefined instruction in cpuinfo_store_boot_cpu() could be related
> > > to the SYS_ID_AA64MMFR2_EL1 access that was recently added.
> > > 
> > > What does the architecture say about reading unknown cpuid registers?
> > > 
> > >       Arnd
> > 
> > ThunderX has some unimplemented system registers. AFAIR, attempt to access it
> > causes data abort.
> 
> Ok, if that is the case, maybe the read_cpuid() macro can be changed
> so it contains a fixup for the trap? That should handle both data abort
> and undefinstr.
> 
> 	Arnd

Sounds alluring, but not clear what we'd return that way. I mean, how
we'd distinguish between correct value and error code (0, -1 or whatever).
But I think, we can do like this:

        val = read_cpuid_safe(reg, impossible_val);
        if (val == impossible_val)
                goto err;

I think it will work for many cases.

Yury.

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

arm64: kernel v4.6-rc1 hangs on QEMU Yury Norov <ynorov@caviumnetworks.com> - 2016-03-30 00:10 +0200
  Re: arm64: kernel v4.6-rc1 hangs on QEMU Arnd Bergmann <arnd@arndb.de> - 2016-03-30 00:20 +0200
    Re: arm64: kernel v4.6-rc1 hangs on QEMU Yury Norov <ynorov@caviumnetworks.com> - 2016-03-30 00:30 +0200
      Re: arm64: kernel v4.6-rc1 hangs on QEMU Arnd Bergmann <arnd@arndb.de> - 2016-03-30 00:40 +0200
        Re: arm64: kernel v4.6-rc1 hangs on QEMU Yury Norov <ynorov@caviumnetworks.com> - 2016-03-30 01:00 +0200
          Re: arm64: kernel v4.6-rc1 hangs on QEMU Kefeng Wang <wangkefeng.wang@huawei.com> - 2016-03-30 08:50 +0200

csiph-web