Patch "sparc: Machine description indices can vary" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
sparc: Machine description indices can vary
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
sparc-machine-description-indices-can-vary.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Jun 8 08:58:54 CEST 2017
From: James Clarke <[email protected]>
Date: Mon, 29 May 2017 20:17:56 +0100
Subject: sparc: Machine description indices can vary
From: James Clarke <[email protected]>
[ Upstream commit c982aa9c304bf0b9a7522fd118fed4afa5a0263c ]
VIO devices were being looked up by their index in the machine description node block, but this often varies over time as devices are added and removed. Instead, store the ID and look up using the type, config handle and ID.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=112541
--- arch/sparc/include/asm/vio.h | 1 arch/sparc/kernel/vio.c | 68 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 65 insertions(+), 4 deletions(-)
arch/sparc/include/asm/vio.h +1 -0
@@ -327,6 +327,7 @@ struct vio_dev {int compat_len;u64 dev_no; +u64 id;unsigned long channel_id;
arch/sparc/kernel/vio.c +64 -4
104 lines not on this page · raw message
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/sparc-machine-description-indices-can-vary.patch