Skip to contentSkip to conversation

Ide patches

GIT PULL Applied John Snow 2 participants 4 messages Oct 31, 2017 – Nov 2, 2017 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore

John Snow

author
#0 lore raw

The following changes since commit 7fa00e204902cee0b33a0c60de87e87319d1809f:

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20171031' into staging (2017-10-31 14:28:25 +0000)

are available in the git repository at:

https://github.com/jnsnow/qemu.git tags/ide-pull-request

for you to fetch changes up to 96f43c2b0a663f4789b51ed97297163321e7ba5e:

ide: avoid referencing NULL dev in rotational rate setting (2017-10-31 18:00:03 -0400)

----------------------------------------------------------------

----------------------------------------------------------------

Daniel P. Berrange (1):
ide: avoid referencing NULL dev in rotational rate setting

Thomas Huth (1):
hw/ide/ahci: Move allwinner code into a separate file

 hw/ide/Makefile.objs    |   1 +
 hw/ide/ahci-allwinner.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++
 hw/ide/ahci.c           |  95 ------------------------------------
 hw/ide/core.c           |   4 +-
 4 files changed, 131 insertions(+), 96 deletions(-)
 create mode 100644 hw/ide/ahci-allwinner.c
Signature · 1 line
2.9.5
author
#1 lore raw

[Qemu-devel] [PULL 2/2] ide: avoid referencing NULL dev in rotational rate setting

From: "Daniel P. Berrange" <[email protected]>

The 'dev' variable can be NULL when the guest OS calls identify on an IDE unit that does not have a drive attached to it.

Message-id: [email protected]

---
 hw/ide/core.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
hw/ide/core.c +3 -1
index a04766a..471d0c9 100644
@@ -208,7 +208,9 @@ static void ide_identify(IDEState *s)
     if (dev && dev->conf.discard_granularity) {
         put_le16(p + 169, 1); /* TRIM support */
     }
-    put_le16(p + 217, dev->rotation_rate); /* Nominal media rotation rate */
+    if (dev) {
+        put_le16(p + 217, dev->rotation_rate); /* Nominal media rotation rate */
+    }
 
     ide_identify_size(s);
     s->identify_set = 1;
Signature · 1 line
2.9.5
author
#2 lore raw

[Qemu-devel] [PULL 1/2] hw/ide/ahci: Move allwinner code into a separate file

In reply to John Snow

From: Thomas Huth <[email protected]>

The allwinner code is only needed for the allwinner board (for which we also have a separate CONFIG_ALLWINNER_A10 config switch), so it does not make sense that we compile this for all the other boards that need AHCI, too. Let's move it to a separate file that is only compiled when CONFIG_ALLWINNER_A10 is set.

Message-id: [email protected]

---
 hw/ide/Makefile.objs    |   1 +
 hw/ide/ahci-allwinner.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++
 hw/ide/ahci.c           |  95 ------------------------------------
 3 files changed, 128 insertions(+), 95 deletions(-)
 create mode 100644 hw/ide/ahci-allwinner.c
hw/ide/Makefile.objs +1 -0
index 729e9bd..f0edca3 100644
@@ -10,3 +10,4 @@ common-obj-$(CONFIG_IDE_VIA) += via.o
 common-obj-$(CONFIG_MICRODRIVE) += microdrive.o
 common-obj-$(CONFIG_AHCI) += ahci.o
 common-obj-$(CONFIG_AHCI) += ich.o
+common-obj-$(CONFIG_ALLWINNER_A10) += ahci-allwinner.o
hw/ide/ahci-allwinner.c new file +127 -0

127 lines not on this page · raw message

hw/ide/ahci.c +0 -95

104 lines not on this page · raw message

Signature · 1 line
2.9.5
#3 lore raw
In reply to John Snow
Quoted 22 lines · John Snow

The following changes since commit 7fa00e204902cee0b33a0c60de87e87319d1809f:

Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20171031' into staging (2017-10-31 14:28:25 +0000)

are available in the git repository at:

https://github.com/jnsnow/qemu.git tags/ide-pull-request

for you to fetch changes up to 96f43c2b0a663f4789b51ed97297163321e7ba5e:

ide: avoid referencing NULL dev in rotational rate setting (2017-10-31 18:00:03 -0400)

----------------------------------------------------------------

----------------------------------------------------------------

Daniel P. Berrange (1):
ide: avoid referencing NULL dev in rotational rate setting

Thomas Huth (1):
hw/ide/ahci: Move allwinner code into a separate file

Quoted 7 lines
 hw/ide/Makefile.objs    |   1 +
 hw/ide/ahci-allwinner.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++
 hw/ide/ahci.c           |  95 ------------------------------------
 hw/ide/core.c           |   4 +-
 4 files changed, 131 insertions(+), 96 deletions(-)
 create mode 100644 hw/ide/ahci-allwinner.c

Applied, thanks.

-- PMM