* [PATCH] microblaze: Add missing PVR version codes
@ 2015-01-02 2:40 Erico Nunes
2015-01-05 11:30 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Erico Nunes @ 2015-01-02 2:40 UTC (permalink / raw)
To: michal.simek; +Cc: monstr, linux-kernel, Erico Nunes
PVR version code was missing in the cpu_ver_lookup table for the following
versions: 8.50.b 8.50.c 9.2 9.3
This caused /proc/cpuinfo to display "CPU-Ver: Unknown" for these versions.
This was detected and the patch tested with MicroBlaze version 8.50.c.
The other codes were taken from the Xilinx MicroBlaze Processor Reference
Guides UG081 (v14.7) and UG984 (v2014.1).
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
---
arch/microblaze/kernel/cpu/cpuinfo.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/microblaze/kernel/cpu/cpuinfo.c b/arch/microblaze/kernel/cpu/cpuinfo.c
index 234acad..b60442d 100644
--- a/arch/microblaze/kernel/cpu/cpuinfo.c
+++ b/arch/microblaze/kernel/cpu/cpuinfo.c
@@ -41,8 +41,12 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
{"8.40.a", 0x18},
{"8.40.b", 0x19},
{"8.50.a", 0x1a},
+ {"8.50.b", 0x1c},
+ {"8.50.c", 0x1e},
{"9.0", 0x1b},
{"9.1", 0x1d},
+ {"9.2", 0x1f},
+ {"9.3", 0x20},
{NULL, 0},
};
--
2.2.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] microblaze: Add missing PVR version codes
2015-01-02 2:40 [PATCH] microblaze: Add missing PVR version codes Erico Nunes
@ 2015-01-05 11:30 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2015-01-05 11:30 UTC (permalink / raw)
To: Erico Nunes, michal.simek; +Cc: monstr, linux-kernel
On 01/02/2015 03:40 AM, Erico Nunes wrote:
> PVR version code was missing in the cpu_ver_lookup table for the following
> versions: 8.50.b 8.50.c 9.2 9.3
>
> This caused /proc/cpuinfo to display "CPU-Ver: Unknown" for these versions.
>
> This was detected and the patch tested with MicroBlaze version 8.50.c.
> The other codes were taken from the Xilinx MicroBlaze Processor Reference
> Guides UG081 (v14.7) and UG984 (v2014.1).
>
> Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
> ---
> arch/microblaze/kernel/cpu/cpuinfo.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/microblaze/kernel/cpu/cpuinfo.c b/arch/microblaze/kernel/cpu/cpuinfo.c
> index 234acad..b60442d 100644
> --- a/arch/microblaze/kernel/cpu/cpuinfo.c
> +++ b/arch/microblaze/kernel/cpu/cpuinfo.c
> @@ -41,8 +41,12 @@ const struct cpu_ver_key cpu_ver_lookup[] = {
> {"8.40.a", 0x18},
> {"8.40.b", 0x19},
> {"8.50.a", 0x1a},
> + {"8.50.b", 0x1c},
> + {"8.50.c", 0x1e},
> {"9.0", 0x1b},
> {"9.1", 0x1d},
> + {"9.2", 0x1f},
> + {"9.3", 0x20},
> {NULL, 0},
> };
>
>
Applied.
Thanks,
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-05 11:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-02 2:40 [PATCH] microblaze: Add missing PVR version codes Erico Nunes
2015-01-05 11:30 ` Michal Simek
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®