Message ID | 20180228203243.1413-1-mark.cave-ayland@ilande.co.uk |
---|---|
Headers | show |
Series | macio: remove legacy macio_init() function | expand |
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Subject: [Qemu-devel] [PATCHv3 00/12] macio: remove legacy macio_init() function === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneline $BASE.. | wc -l) failed=0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..." if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then failed=1 echo fi n=$((n+1)) done exit $failed === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu t [tag update] patchew/1519709965-29833-1-git-send-email-cota@braap.org -> patchew/1519709965-29833-1-git-send-email-cota@braap.org * [new tag] patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk -> patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Switched to a new branch 'test' 172de12fd3 macio: remove macio_init() function 0e9b5f92bd macio: move setting of CUDA timebase frequency to macio_common_realize() cb79b98479 mac_newworld: use object link to pass OpenPIC object to macio 9042b9cdfd openpic: move OpenPIC state and related definitions to openpic.h dbb8ecee13 openpic: move KVM-specific declarations into separate openpic_kvm.h file 62cc211353 mac_oldworld: use object link to pass heathrow PIC object to macio 1fe36332f8 macio: move macio related structures and defines into separate macio.h file 2e9a6f0518 heathrow: change heathrow_pic_init() to return the heathrow device 6dbf45d8e3 heathrow: convert to trace-events b109c28719 heathrow: QOMify heathrow PIC 5ee002a59c macio: move ESCC device within the macio device 4d426b15fd macio: embed DBDMA device directly within macio === OUTPUT BEGIN === Checking PATCH 1/12: macio: embed DBDMA device directly within macio... Checking PATCH 2/12: macio: move ESCC device within the macio device... Checking PATCH 3/12: heathrow: QOMify heathrow PIC... Checking PATCH 4/12: heathrow: convert to trace-events... Checking PATCH 5/12: heathrow: change heathrow_pic_init() to return the heathrow device... Checking PATCH 6/12: macio: move macio related structures and defines into separate macio.h file... Checking PATCH 7/12: mac_oldworld: use object link to pass heathrow PIC object to macio... Checking PATCH 8/12: openpic: move KVM-specific declarations into separate openpic_kvm.h file... Checking PATCH 9/12: openpic: move OpenPIC state and related definitions to openpic.h... ERROR: "foo * bar" should be "foo *bar" #249: FILE: include/hw/ppc/openpic.h:57: +#define RAVEN_DBL_IRQ (RAVEN_IPI_IRQ + (RAVEN_MAX_CPU * RAVEN_MAX_IPI)) total: 1 errors, 0 warnings, 353 lines checked Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. Checking PATCH 10/12: mac_newworld: use object link to pass OpenPIC object to macio... Checking PATCH 11/12: macio: move setting of CUDA timebase frequency to macio_common_realize()... Checking PATCH 12/12: macio: remove macio_init() function... === OUTPUT END === Test command exited with code: 1 --- Email generated automatically by Patchew [http://patchew.org/]. Please send your feedback to patchew-devel@freelists.org
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Subject: [Qemu-devel] [PATCHv3 00/12] macio: remove legacy macio_init() function === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneline $BASE.. | wc -l) failed=0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..." if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then failed=1 echo fi n=$((n+1)) done exit $failed === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu t [tag update] patchew/1519709965-29833-1-git-send-email-cota@braap.org -> patchew/1519709965-29833-1-git-send-email-cota@braap.org * [new tag] patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk -> patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Switched to a new branch 'test' 172de12fd3 macio: remove macio_init() function 0e9b5f92bd macio: move setting of CUDA timebase frequency to macio_common_realize() cb79b98479 mac_newworld: use object link to pass OpenPIC object to macio 9042b9cdfd openpic: move OpenPIC state and related definitions to openpic.h dbb8ecee13 openpic: move KVM-specific declarations into separate openpic_kvm.h file 62cc211353 mac_oldworld: use object link to pass heathrow PIC object to macio 1fe36332f8 macio: move macio related structures and defines into separate macio.h file 2e9a6f0518 heathrow: change heathrow_pic_init() to return the heathrow device 6dbf45d8e3 heathrow: convert to trace-events b109c28719 heathrow: QOMify heathrow PIC 5ee002a59c macio: move ESCC device within the macio device 4d426b15fd macio: embed DBDMA device directly within macio === OUTPUT BEGIN === Checking PATCH 1/12: macio: embed DBDMA device directly within macio... Checking PATCH 2/12: macio: move ESCC device within the macio device... Checking PATCH 3/12: heathrow: QOMify heathrow PIC... Checking PATCH 4/12: heathrow: convert to trace-events... Checking PATCH 5/12: heathrow: change heathrow_pic_init() to return the heathrow device... Checking PATCH 6/12: macio: move macio related structures and defines into separate macio.h file... Checking PATCH 7/12: mac_oldworld: use object link to pass heathrow PIC object to macio... Checking PATCH 8/12: openpic: move KVM-specific declarations into separate openpic_kvm.h file... Checking PATCH 9/12: openpic: move OpenPIC state and related definitions to openpic.h... ERROR: "foo * bar" should be "foo *bar" #249: FILE: include/hw/ppc/openpic.h:57: +#define RAVEN_DBL_IRQ (RAVEN_IPI_IRQ + (RAVEN_MAX_CPU * RAVEN_MAX_IPI)) total: 1 errors, 0 warnings, 353 lines checked Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. Checking PATCH 10/12: mac_newworld: use object link to pass OpenPIC object to macio... Checking PATCH 11/12: macio: move setting of CUDA timebase frequency to macio_common_realize()... Checking PATCH 12/12: macio: remove macio_init() function... === OUTPUT END === Test command exited with code: 1 --- Email generated automatically by Patchew [http://patchew.org/]. Please send your feedback to patchew-devel@freelists.org
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Subject: [Qemu-devel] [PATCHv3 00/12] macio: remove legacy macio_init() function Message-id: 20180228203243.1413-1-mark.cave-ayland@ilande.co.uk === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneline $BASE.. | wc -l) failed=0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..." if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then failed=1 echo fi n=$((n+1)) done exit $failed === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu * [new tag] patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk -> patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Submodule 'capstone' (git://git.qemu.org/capstone.git) registered for path 'capstone' Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Submodule 'roms/QemuMacDrivers' (git://git.qemu.org/QemuMacDrivers.git) registered for path 'roms/QemuMacDrivers' Submodule 'roms/SLOF' (git://git.qemu-project.org/SLOF.git) registered for path 'roms/SLOF' Submodule 'roms/ipxe' (git://git.qemu-project.org/ipxe.git) registered for path 'roms/ipxe' Submodule 'roms/openbios' (git://git.qemu-project.org/openbios.git) registered for path 'roms/openbios' Submodule 'roms/openhackware' (git://git.qemu-project.org/openhackware.git) registered for path 'roms/openhackware' Submodule 'roms/qemu-palcode' (git://github.com/rth7680/qemu-palcode.git) registered for path 'roms/qemu-palcode' Submodule 'roms/seabios' (git://git.qemu-project.org/seabios.git/) registered for path 'roms/seabios' Submodule 'roms/seabios-hppa' (git://github.com/hdeller/seabios-hppa.git) registered for path 'roms/seabios-hppa' Submodule 'roms/sgabios' (git://git.qemu-project.org/sgabios.git) registered for path 'roms/sgabios' Submodule 'roms/skiboot' (git://git.qemu.org/skiboot.git) registered for path 'roms/skiboot' Submodule 'roms/u-boot' (git://git.qemu-project.org/u-boot.git) registered for path 'roms/u-boot' Submodule 'roms/vgabios' (git://git.qemu-project.org/vgabios.git/) registered for path 'roms/vgabios' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into 'capstone'... Submodule path 'capstone': checked out '22ead3e0bfdb87516656453336160e0a37b066bf' Cloning into 'dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Cloning into 'roms/QemuMacDrivers'... Submodule path 'roms/QemuMacDrivers': checked out 'd4e7d7ac663fcb55f1b93575445fcbca372f17a7' Cloning into 'roms/SLOF'... Submodule path 'roms/SLOF': checked out 'fa981320a1e0968d6fc1b8de319723ff8212b337' Cloning into 'roms/ipxe'... Submodule path 'roms/ipxe': checked out '0600d3ae94f93efd10fc6b3c7420a9557a3a1670' Cloning into 'roms/openbios'... Submodule path 'roms/openbios': checked out '54d959d97fb331708767b2fd4a878efd2bbc41bb' Cloning into 'roms/openhackware'... Submodule path 'roms/openhackware': checked out 'c559da7c8eec5e45ef1f67978827af6f0b9546f5' Cloning into 'roms/qemu-palcode'... Submodule path 'roms/qemu-palcode': checked out 'f3c7e44c70254975df2a00af39701eafbac4d471' Cloning into 'roms/seabios'... Submodule path 'roms/seabios': checked out '63451fca13c75870e1703eb3e20584d91179aebc' Cloning into 'roms/seabios-hppa'... Submodule path 'roms/seabios-hppa': checked out '649e6202b8d65d46c69f542b1380f840fbe8ab13' Cloning into 'roms/sgabios'... Submodule path 'roms/sgabios': checked out 'cbaee52287e5f32373181cff50a00b6c4ac9015a' Cloning into 'roms/skiboot'... Submodule path 'roms/skiboot': checked out 'e0ee24c27a172bcf482f6f2bc905e6211c134bcc' Cloning into 'roms/u-boot'... Submodule path 'roms/u-boot': checked out 'd85ca029f257b53a96da6c2fb421e78a003a9943' Cloning into 'roms/vgabios'... Submodule path 'roms/vgabios': checked out '19ea12c230ded95928ecaef0db47a82231c2e485' Cloning into 'ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' Switched to a new branch 'test' 172de12 macio: remove macio_init() function 0e9b5f9 macio: move setting of CUDA timebase frequency to macio_common_realize() cb79b98 mac_newworld: use object link to pass OpenPIC object to macio 9042b9c openpic: move OpenPIC state and related definitions to openpic.h dbb8ece openpic: move KVM-specific declarations into separate openpic_kvm.h file 62cc211 mac_oldworld: use object link to pass heathrow PIC object to macio 1fe3633 macio: move macio related structures and defines into separate macio.h file 2e9a6f0 heathrow: change heathrow_pic_init() to return the heathrow device 6dbf45d heathrow: convert to trace-events b109c28 heathrow: QOMify heathrow PIC 5ee002a macio: move ESCC device within the macio device 4d426b1 macio: embed DBDMA device directly within macio === OUTPUT BEGIN === Checking PATCH 1/12: macio: embed DBDMA device directly within macio... Checking PATCH 2/12: macio: move ESCC device within the macio device... Checking PATCH 3/12: heathrow: QOMify heathrow PIC... Checking PATCH 4/12: heathrow: convert to trace-events... Checking PATCH 5/12: heathrow: change heathrow_pic_init() to return the heathrow device... Checking PATCH 6/12: macio: move macio related structures and defines into separate macio.h file... Checking PATCH 7/12: mac_oldworld: use object link to pass heathrow PIC object to macio... Checking PATCH 8/12: openpic: move KVM-specific declarations into separate openpic_kvm.h file... Checking PATCH 9/12: openpic: move OpenPIC state and related definitions to openpic.h... ERROR: "foo * bar" should be "foo *bar" #249: FILE: include/hw/ppc/openpic.h:57: +#define RAVEN_DBL_IRQ (RAVEN_IPI_IRQ + (RAVEN_MAX_CPU * RAVEN_MAX_IPI)) total: 1 errors, 0 warnings, 353 lines checked Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. Checking PATCH 10/12: mac_newworld: use object link to pass OpenPIC object to macio... Checking PATCH 11/12: macio: move setting of CUDA timebase frequency to macio_common_realize()... Checking PATCH 12/12: macio: remove macio_init() function... === OUTPUT END === Test command exited with code: 1 --- Email generated automatically by Patchew [http://patchew.org/]. Please send your feedback to patchew-devel@freelists.org
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Subject: [Qemu-devel] [PATCHv3 00/12] macio: remove legacy macio_init() function === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneline $BASE.. | wc -l) failed=0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..." if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then failed=1 echo fi n=$((n+1)) done exit $failed === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu * [new tag] patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk -> patchew/20180228203243.1413-1-mark.cave-ayland@ilande.co.uk Submodule 'capstone' (git://git.qemu.org/capstone.git) registered for path 'capstone' Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Submodule 'roms/QemuMacDrivers' (git://git.qemu.org/QemuMacDrivers.git) registered for path 'roms/QemuMacDrivers' Submodule 'roms/SLOF' (git://git.qemu-project.org/SLOF.git) registered for path 'roms/SLOF' Submodule 'roms/ipxe' (git://git.qemu-project.org/ipxe.git) registered for path 'roms/ipxe' Submodule 'roms/openbios' (git://git.qemu-project.org/openbios.git) registered for path 'roms/openbios' Submodule 'roms/openhackware' (git://git.qemu-project.org/openhackware.git) registered for path 'roms/openhackware' Submodule 'roms/qemu-palcode' (git://github.com/rth7680/qemu-palcode.git) registered for path 'roms/qemu-palcode' Submodule 'roms/seabios' (git://git.qemu-project.org/seabios.git/) registered for path 'roms/seabios' Submodule 'roms/seabios-hppa' (git://github.com/hdeller/seabios-hppa.git) registered for path 'roms/seabios-hppa' Submodule 'roms/sgabios' (git://git.qemu-project.org/sgabios.git) registered for path 'roms/sgabios' Submodule 'roms/skiboot' (git://git.qemu.org/skiboot.git) registered for path 'roms/skiboot' Submodule 'roms/u-boot' (git://git.qemu-project.org/u-boot.git) registered for path 'roms/u-boot' Submodule 'roms/vgabios' (git://git.qemu-project.org/vgabios.git/) registered for path 'roms/vgabios' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into 'capstone'... Submodule path 'capstone': checked out '22ead3e0bfdb87516656453336160e0a37b066bf' Cloning into 'dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42' Cloning into 'roms/QemuMacDrivers'... Submodule path 'roms/QemuMacDrivers': checked out 'd4e7d7ac663fcb55f1b93575445fcbca372f17a7' Cloning into 'roms/SLOF'... Submodule path 'roms/SLOF': checked out 'fa981320a1e0968d6fc1b8de319723ff8212b337' Cloning into 'roms/ipxe'... Submodule path 'roms/ipxe': checked out '0600d3ae94f93efd10fc6b3c7420a9557a3a1670' Cloning into 'roms/openbios'... Submodule path 'roms/openbios': checked out '54d959d97fb331708767b2fd4a878efd2bbc41bb' Cloning into 'roms/openhackware'... Submodule path 'roms/openhackware': checked out 'c559da7c8eec5e45ef1f67978827af6f0b9546f5' Cloning into 'roms/qemu-palcode'... Submodule path 'roms/qemu-palcode': checked out 'f3c7e44c70254975df2a00af39701eafbac4d471' Cloning into 'roms/seabios'... Submodule path 'roms/seabios': checked out '63451fca13c75870e1703eb3e20584d91179aebc' Cloning into 'roms/seabios-hppa'... Submodule path 'roms/seabios-hppa': checked out '649e6202b8d65d46c69f542b1380f840fbe8ab13' Cloning into 'roms/sgabios'... Submodule path 'roms/sgabios': checked out 'cbaee52287e5f32373181cff50a00b6c4ac9015a' Cloning into 'roms/skiboot'... Submodule path 'roms/skiboot': checked out 'e0ee24c27a172bcf482f6f2bc905e6211c134bcc' Cloning into 'roms/u-boot'... Submodule path 'roms/u-boot': checked out 'd85ca029f257b53a96da6c2fb421e78a003a9943' Cloning into 'roms/vgabios'... Submodule path 'roms/vgabios': checked out '19ea12c230ded95928ecaef0db47a82231c2e485' Cloning into 'ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce' Switched to a new branch 'test' 172de12 macio: remove macio_init() function 0e9b5f9 macio: move setting of CUDA timebase frequency to macio_common_realize() cb79b98 mac_newworld: use object link to pass OpenPIC object to macio 9042b9c openpic: move OpenPIC state and related definitions to openpic.h dbb8ece openpic: move KVM-specific declarations into separate openpic_kvm.h file 62cc211 mac_oldworld: use object link to pass heathrow PIC object to macio 1fe3633 macio: move macio related structures and defines into separate macio.h file 2e9a6f0 heathrow: change heathrow_pic_init() to return the heathrow device 6dbf45d heathrow: convert to trace-events b109c28 heathrow: QOMify heathrow PIC 5ee002a macio: move ESCC device within the macio device 4d426b1 macio: embed DBDMA device directly within macio === OUTPUT BEGIN === Checking PATCH 1/12: macio: embed DBDMA device directly within macio... Checking PATCH 2/12: macio: move ESCC device within the macio device... Checking PATCH 3/12: heathrow: QOMify heathrow PIC... Checking PATCH 4/12: heathrow: convert to trace-events... Checking PATCH 5/12: heathrow: change heathrow_pic_init() to return the heathrow device... Checking PATCH 6/12: macio: move macio related structures and defines into separate macio.h file... Checking PATCH 7/12: mac_oldworld: use object link to pass heathrow PIC object to macio... Checking PATCH 8/12: openpic: move KVM-specific declarations into separate openpic_kvm.h file... Checking PATCH 9/12: openpic: move OpenPIC state and related definitions to openpic.h... ERROR: "foo * bar" should be "foo *bar" #249: FILE: include/hw/ppc/openpic.h:57: +#define RAVEN_DBL_IRQ (RAVEN_IPI_IRQ + (RAVEN_MAX_CPU * RAVEN_MAX_IPI)) total: 1 errors, 0 warnings, 353 lines checked Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. Checking PATCH 10/12: mac_newworld: use object link to pass OpenPIC object to macio... Checking PATCH 11/12: macio: move setting of CUDA timebase frequency to macio_common_realize()... Checking PATCH 12/12: macio: remove macio_init() function... === OUTPUT END === Test command exited with code: 1 --- Email generated automatically by Patchew [http://patchew.org/]. Please send your feedback to patchew-devel@freelists.org
On Wed, Feb 28, 2018 at 08:32:31PM +0000, Mark Cave-Ayland wrote: > This patchset eliminates the legacy macio_init() function used to setup the > ESCC and PIC memory regions and instead allows the macio device to be > instantiated directly via qdev, wiring up the ESCC internally using sysbus MMIO > memory regions and the PIC via QOM object links. > > The biggest surprise in this patchset was the need to QOMify the heathrow > device which apparently up until now has never required any of these new-fangled > APIs from the last decade such as qdev and QOM. > > There's still some follow-up work to do with the PCI host bridge wiring but it > seems to me that this is a good preparation step. > > Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Applied to ppc-for-2.12, thanks. > > v3: > - Rebase onto master > - Add extra R-B tags from David and Philippe > - Add patch 8 to move KVM openpic declarations into separate openpic_kvm.h file > (fixes compilation of ppc-linux-user) > > v2: > - Rebase onto master > - Add R-B tags from David > - Rework patch 4 ("heathrow: convert to trace-events") as suggested by David > > > Mark Cave-Ayland (12): > macio: embed DBDMA device directly within macio > macio: move ESCC device within the macio device > heathrow: QOMify heathrow PIC > heathrow: convert to trace-events > heathrow: change heathrow_pic_init() to return the heathrow device > macio: move macio related structures and defines into separate macio.h > file > mac_oldworld: use object link to pass heathrow PIC object to macio > openpic: move KVM-specific declarations into separate openpic_kvm.h > file > openpic: move OpenPIC state and related definitions to openpic.h > mac_newworld: use object link to pass OpenPIC object to macio > macio: move setting of CUDA timebase frequency to > macio_common_realize() > macio: remove macio_init() function > > hw/intc/heathrow_pic.c | 166 +++++++++++++++++++++-------------------- > hw/intc/openpic.c | 157 -------------------------------------- > hw/intc/openpic_kvm.c | 1 + > hw/intc/trace-events | 5 ++ > hw/misc/macio/macio.c | 150 +++++++++++++++++-------------------- > hw/ppc/e500.c | 1 + > hw/ppc/mac.h | 10 +-- > hw/ppc/mac_newworld.c | 56 +++++--------- > hw/ppc/mac_oldworld.c | 50 +++++-------- > include/hw/intc/heathrow_pic.h | 49 ++++++++++++ > include/hw/misc/macio/macio.h | 79 ++++++++++++++++++++ > include/hw/ppc/openpic.h | 160 ++++++++++++++++++++++++++++++++++++++- > include/hw/ppc/openpic_kvm.h | 7 ++ > target/ppc/kvm-stub.c | 2 +- > 14 files changed, 494 insertions(+), 399 deletions(-) > create mode 100644 include/hw/intc/heathrow_pic.h > create mode 100644 include/hw/misc/macio/macio.h > create mode 100644 include/hw/ppc/openpic_kvm.h >
This patchset eliminates the legacy macio_init() function used to setup the ESCC and PIC memory regions and instead allows the macio device to be instantiated directly via qdev, wiring up the ESCC internally using sysbus MMIO memory regions and the PIC via QOM object links. The biggest surprise in this patchset was the need to QOMify the heathrow device which apparently up until now has never required any of these new-fangled APIs from the last decade such as qdev and QOM. There's still some follow-up work to do with the PCI host bridge wiring but it seems to me that this is a good preparation step. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> v3: - Rebase onto master - Add extra R-B tags from David and Philippe - Add patch 8 to move KVM openpic declarations into separate openpic_kvm.h file (fixes compilation of ppc-linux-user) v2: - Rebase onto master - Add R-B tags from David - Rework patch 4 ("heathrow: convert to trace-events") as suggested by David Mark Cave-Ayland (12): macio: embed DBDMA device directly within macio macio: move ESCC device within the macio device heathrow: QOMify heathrow PIC heathrow: convert to trace-events heathrow: change heathrow_pic_init() to return the heathrow device macio: move macio related structures and defines into separate macio.h file mac_oldworld: use object link to pass heathrow PIC object to macio openpic: move KVM-specific declarations into separate openpic_kvm.h file openpic: move OpenPIC state and related definitions to openpic.h mac_newworld: use object link to pass OpenPIC object to macio macio: move setting of CUDA timebase frequency to macio_common_realize() macio: remove macio_init() function hw/intc/heathrow_pic.c | 166 +++++++++++++++++++++-------------------- hw/intc/openpic.c | 157 -------------------------------------- hw/intc/openpic_kvm.c | 1 + hw/intc/trace-events | 5 ++ hw/misc/macio/macio.c | 150 +++++++++++++++++-------------------- hw/ppc/e500.c | 1 + hw/ppc/mac.h | 10 +-- hw/ppc/mac_newworld.c | 56 +++++--------- hw/ppc/mac_oldworld.c | 50 +++++-------- include/hw/intc/heathrow_pic.h | 49 ++++++++++++ include/hw/misc/macio/macio.h | 79 ++++++++++++++++++++ include/hw/ppc/openpic.h | 160 ++++++++++++++++++++++++++++++++++++++- include/hw/ppc/openpic_kvm.h | 7 ++ target/ppc/kvm-stub.c | 2 +- 14 files changed, 494 insertions(+), 399 deletions(-) create mode 100644 include/hw/intc/heathrow_pic.h create mode 100644 include/hw/misc/macio/macio.h create mode 100644 include/hw/ppc/openpic_kvm.h