Skip to contentSkip to conversation

Pull request: scottwood/linux.git next

DISCUSSION Scott Wood 4 participants 11 messages Aug 8, 2013 – Aug 20, 2013

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

The following changes since commit 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b:

Linux 3.11-rc2 (2013-07-21 12:05:29 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git next

for you to fetch changes up to c8db32c8669f7de05b820ee4934926405af52188:

powerpc/e500: Update compilation flags with core specific options (2013-08-07 18:49:44 -0500)

----------------------------------------------------------------
Catalin Udma (2):
powerpc/perf: increase the perf HW events to 6 powerpc/e500: Update compilation flags with core specific options

Dongsheng Wang (1):
powerpc/mpc85xx: invalidate TLB after hibernation resume

Haijun.Zhang (2):
powerpc/85xx: add P1020RDB-PD platform support powerpc/85xx: add the P1020RDB-PD DTS support

Hongtao Jia (3):
powerpc: Move opcode definitions from kvm/emulate.c to asm/ppc-opcode.h powerpc/85xx: Add machine check handler to fix PCIe erratum on mpc85xx powerpc/msi: Fix compile error on mpc83xx

Ian Campbell (1):

      powerpc/fsl-booke: Rename b4qds.dts -> b4qds.dtsi.

Kevin Hao (3):
powerpc/mpc85xx: remove the unneeded pci init functions for corenet ds board powerpc/fsl-pci: fix the unreachable warning message powerpc/fsl-pci: enable SWIOTLB in function setup_pci_atmu

Laurentiu TUDOR (1):
powerpc/85xx: Move ePAPR paravirt initialization earlier

Lijun Pan (2):
powerpc/perf: correct typos in counter enumeration powerpc/perf: add 2 additional performance monitor counters for e6500 core

Minghuan Lian (3):
powerpc/dts: update MSI bindings doc for MPIC v4.3 powerpc/dts: add MPIC v4.3 dts node powerpc/fsl_msi: add MSIIR1 support for MPIC v4.3

Priyanka Jain (1):
powerpc/perf: Add e6500 PMU driver

Wei Yongjun (1):
powerpc/fsl_msi: fix error return code in fsl_of_msi_probe()

Yuanquan Chen (1):
powerpc/pci: fix PCI-e check link issue

Zhenhua Luo (1):
powerpc/fsl: Enable CONFIG_DEVTMPFS_MOUNT so /dev can be mounted correctly

 .../devicetree/bindings/powerpc/fsl/msi-pic.txt    |  53 +++-
 arch/powerpc/Makefile                              |  18 +-
 arch/powerpc/boot/dts/b4420qds.dts                 |   2 +-
 arch/powerpc/boot/dts/b4860qds.dts                 |   2 +-
 arch/powerpc/boot/dts/{b4qds.dts => b4qds.dtsi}    |   0
 arch/powerpc/boot/dts/fsl/b4si-post.dtsi           |   2 +-
 arch/powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi       | 149 +++++++++++
 arch/powerpc/boot/dts/fsl/t4240si-post.dtsi        |   2 +-
 arch/powerpc/boot/dts/p1020rdb-pd.dts              | 280 +++++++++++++++++++++
 arch/powerpc/configs/85xx/p1023rds_defconfig       |   1 +
 arch/powerpc/configs/corenet32_smp_defconfig       |   1 +
 arch/powerpc/configs/corenet64_smp_defconfig       |   1 +
 arch/powerpc/configs/mpc83xx_defconfig             |   1 +
 arch/powerpc/configs/mpc85xx_defconfig             |   1 +
 arch/powerpc/configs/mpc85xx_smp_defconfig         |   1 +
 arch/powerpc/include/asm/epapr_hcalls.h            |   6 +
 arch/powerpc/include/asm/mpic.h                    |   7 +
 arch/powerpc/include/asm/perf_event_fsl_emb.h      |   2 +-
 arch/powerpc/include/asm/ppc-opcode.h              |  47 ++++
 arch/powerpc/include/asm/reg_fsl_emb.h             |  24 +-
 arch/powerpc/kernel/cpu_setup_fsl_booke.S          |   2 +-
 arch/powerpc/kernel/cputable.c                     |   2 +-
 arch/powerpc/kernel/epapr_paravirt.c               |  28 ++-
 arch/powerpc/kernel/setup_32.c                     |   4 +-
 arch/powerpc/kernel/setup_64.c                     |   3 +
 arch/powerpc/kernel/swsusp_booke.S                 |   8 +
 arch/powerpc/kernel/traps.c                        |   3 +
 arch/powerpc/kvm/emulate.c                         |  45 +---
 arch/powerpc/oprofile/op_model_fsl_emb.c           |  30 +++
 arch/powerpc/perf/Makefile                         |   2 +-
 arch/powerpc/perf/core-fsl-emb.c                   |  30 +++
 arch/powerpc/perf/e6500-pmu.c                      | 121 +++++++++
 arch/powerpc/platforms/85xx/corenet_ds.c           |   6 -
 arch/powerpc/platforms/85xx/mpc85xx_rdb.c          |  22 ++
 arch/powerpc/sysdev/fsl_msi.c                      | 137 +++++++---
 arch/powerpc/sysdev/fsl_msi.h                      |  10 +-
 arch/powerpc/sysdev/fsl_pci.c                      | 184 ++++++++++++--
 arch/powerpc/sysdev/fsl_pci.h                      |   6 +
 38 files changed, 1088 insertions(+), 155 deletions(-)
 rename arch/powerpc/boot/dts/{b4qds.dts => b4qds.dtsi} (100%)
 create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi
 create mode 100644 arch/powerpc/boot/dts/p1020rdb-pd.dts
 create mode 100644 arch/powerpc/perf/e6500-pmu.c
#1 lore raw
Quoted 5 lines · Scott Wood

The following changes since commit 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b:

Linux 3.11-rc2 (2013-07-21 12:05:29 -0700)

are available in the git repository at:

Next time, put a little blurb at the head of the pull request giving a rough highlight, like I do when I send a pull request to Linus.

Thanks !

Cheers,
Ben.

Quoted 98 lines

git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git next

for you to fetch changes up to c8db32c8669f7de05b820ee4934926405af52188:

powerpc/e500: Update compilation flags with core specific options (2013-08-07 18:49:44 -0500)

----------------------------------------------------------------
Catalin Udma (2):
powerpc/perf: increase the perf HW events to 6 powerpc/e500: Update compilation flags with core specific options

Dongsheng Wang (1):
powerpc/mpc85xx: invalidate TLB after hibernation resume

Haijun.Zhang (2):
powerpc/85xx: add P1020RDB-PD platform support powerpc/85xx: add the P1020RDB-PD DTS support

Hongtao Jia (3):
powerpc: Move opcode definitions from kvm/emulate.c to asm/ppc-opcode.h powerpc/85xx: Add machine check handler to fix PCIe erratum on mpc85xx powerpc/msi: Fix compile error on mpc83xx

Ian Campbell (1):

      powerpc/fsl-booke: Rename b4qds.dts -> b4qds.dtsi.

Kevin Hao (3):
powerpc/mpc85xx: remove the unneeded pci init functions for corenet ds board powerpc/fsl-pci: fix the unreachable warning message powerpc/fsl-pci: enable SWIOTLB in function setup_pci_atmu

Laurentiu TUDOR (1):
powerpc/85xx: Move ePAPR paravirt initialization earlier

Lijun Pan (2):
powerpc/perf: correct typos in counter enumeration powerpc/perf: add 2 additional performance monitor counters for e6500 core

Minghuan Lian (3):
powerpc/dts: update MSI bindings doc for MPIC v4.3 powerpc/dts: add MPIC v4.3 dts node powerpc/fsl_msi: add MSIIR1 support for MPIC v4.3

Priyanka Jain (1):
powerpc/perf: Add e6500 PMU driver

Wei Yongjun (1):
powerpc/fsl_msi: fix error return code in fsl_of_msi_probe()

Yuanquan Chen (1):
powerpc/pci: fix PCI-e check link issue

Zhenhua Luo (1):
powerpc/fsl: Enable CONFIG_DEVTMPFS_MOUNT so /dev can be mounted correctly

 .../devicetree/bindings/powerpc/fsl/msi-pic.txt    |  53 +++-
 arch/powerpc/Makefile                              |  18 +-
 arch/powerpc/boot/dts/b4420qds.dts                 |   2 +-
 arch/powerpc/boot/dts/b4860qds.dts                 |   2 +-
 arch/powerpc/boot/dts/{b4qds.dts => b4qds.dtsi}    |   0
 arch/powerpc/boot/dts/fsl/b4si-post.dtsi           |   2 +-
 arch/powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi       | 149 +++++++++++
 arch/powerpc/boot/dts/fsl/t4240si-post.dtsi        |   2 +-
 arch/powerpc/boot/dts/p1020rdb-pd.dts              | 280 +++++++++++++++++++++
 arch/powerpc/configs/85xx/p1023rds_defconfig       |   1 +
 arch/powerpc/configs/corenet32_smp_defconfig       |   1 +
 arch/powerpc/configs/corenet64_smp_defconfig       |   1 +
 arch/powerpc/configs/mpc83xx_defconfig             |   1 +
 arch/powerpc/configs/mpc85xx_defconfig             |   1 +
 arch/powerpc/configs/mpc85xx_smp_defconfig         |   1 +
 arch/powerpc/include/asm/epapr_hcalls.h            |   6 +
 arch/powerpc/include/asm/mpic.h                    |   7 +
 arch/powerpc/include/asm/perf_event_fsl_emb.h      |   2 +-
 arch/powerpc/include/asm/ppc-opcode.h              |  47 ++++
 arch/powerpc/include/asm/reg_fsl_emb.h             |  24 +-
 arch/powerpc/kernel/cpu_setup_fsl_booke.S          |   2 +-
 arch/powerpc/kernel/cputable.c                     |   2 +-
 arch/powerpc/kernel/epapr_paravirt.c               |  28 ++-
 arch/powerpc/kernel/setup_32.c                     |   4 +-
 arch/powerpc/kernel/setup_64.c                     |   3 +
 arch/powerpc/kernel/swsusp_booke.S                 |   8 +
 arch/powerpc/kernel/traps.c                        |   3 +
 arch/powerpc/kvm/emulate.c                         |  45 +---
 arch/powerpc/oprofile/op_model_fsl_emb.c           |  30 +++
 arch/powerpc/perf/Makefile                         |   2 +-
 arch/powerpc/perf/core-fsl-emb.c                   |  30 +++
 arch/powerpc/perf/e6500-pmu.c                      | 121 +++++++++
 arch/powerpc/platforms/85xx/corenet_ds.c           |   6 -
 arch/powerpc/platforms/85xx/mpc85xx_rdb.c          |  22 ++
 arch/powerpc/sysdev/fsl_msi.c                      | 137 +++++++---
 arch/powerpc/sysdev/fsl_msi.h                      |  10 +-
 arch/powerpc/sysdev/fsl_pci.c                      | 184 ++++++++++++--
 arch/powerpc/sysdev/fsl_pci.h                      |   6 +
 38 files changed, 1088 insertions(+), 155 deletions(-)
 rename arch/powerpc/boot/dts/{b4qds.dts => b4qds.dtsi} (100%)
 create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi
 create mode 100644 arch/powerpc/boot/dts/p1020rdb-pd.dts
 create mode 100644 arch/powerpc/perf/e6500-pmu.c
#2 lore raw
Quoted 2 lines · Benjamin Herrenschmidt
Quoted 1 line · Scott Wood

The following changes since commit =

3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b:

Quoted 4 lines
Quoted 4 lines

=20
Linux 3.11-rc2 (2013-07-21 12:05:29 -0700)
=20
are available in the git repository at:

Quoted 8 lines

=20
Next time, put a little blurb at the head of the pull request giving a rough highlight, like I do when I send a pull request to Linus. =20
Thanks !
=20
Cheers,
Ben.

Also, I think we should pull a few of the commits in here out and submit = for 3.11

powerpc/msi: Fix compile error on mpc83xx powerpc/fsl_msi: fix error return code in fsl_of_msi_probe() powerpc/pci: fix PCI-e check link issue

- k

Quoted 2 lines

=20

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git =

next

Quoted 2 lines
Quoted 2 lines

=20
for you to fetch changes up to =

c8db32c8669f7de05b820ee4934926405af52188:

Quoted 2 lines
Quoted 2 lines

=20
powerpc/e500: Update compilation flags with core specific options =

(2013-08-07 18:49:44 -0500)

Quoted 5 lines
Quoted 5 lines

=20
----------------------------------------------------------------
Catalin Udma (2):
powerpc/perf: increase the perf HW events to 6 powerpc/e500: Update compilation flags with core specific =

options

Quoted 10 lines
Quoted 10 lines

=20
Dongsheng Wang (1):
powerpc/mpc85xx: invalidate TLB after hibernation resume
=20
Haijun.Zhang (2):
powerpc/85xx: add P1020RDB-PD platform support powerpc/85xx: add the P1020RDB-PD DTS support
=20
Hongtao Jia (3):
powerpc: Move opcode definitions from kvm/emulate.c to =

asm/ppc-opcode.h

Quoted 1 line
Quoted 1 line

powerpc/85xx: Add machine check handler to fix PCIe erratum on =

mpc85xx

Quoted 7 lines
Quoted 7 lines

powerpc/msi: Fix compile error on mpc83xx
=20
Ian Campbell (1):

     powerpc/fsl-booke: Rename b4qds.dts -> b4qds.dtsi.

=20
Kevin Hao (3):
powerpc/mpc85xx: remove the unneeded pci init functions for =

corenet ds board

Quoted 9 lines
Quoted 9 lines

powerpc/fsl-pci: fix the unreachable warning message powerpc/fsl-pci: enable SWIOTLB in function setup_pci_atmu
=20
Laurentiu TUDOR (1):
powerpc/85xx: Move ePAPR paravirt initialization earlier
=20
Lijun Pan (2):
powerpc/perf: correct typos in counter enumeration powerpc/perf: add 2 additional performance monitor counters for =

e6500 core

Quoted 9 lines
Quoted 9 lines

=20
Minghuan Lian (3):
powerpc/dts: update MSI bindings doc for MPIC v4.3 powerpc/dts: add MPIC v4.3 dts node powerpc/fsl_msi: add MSIIR1 support for MPIC v4.3
=20
Priyanka Jain (1):
powerpc/perf: Add e6500 PMU driver
=20

Quoted 8 lines
Quoted 8 lines

Wei Yongjun (1):
powerpc/fsl_msi: fix error return code in fsl_of_msi_probe()
=20
Yuanquan Chen (1):
powerpc/pci: fix PCI-e check link issue
=20
Zhenhua Luo (1):
powerpc/fsl: Enable CONFIG_DEVTMPFS_MOUNT so /dev can be mounted =

correctly

Quoted 10 lines
Quoted 10 lines

=20

.../devicetree/bindings/powerpc/fsl/msi-pic.txt    |  53 +++-
arch/powerpc/Makefile                              |  18 +-
arch/powerpc/boot/dts/b4420qds.dts                 |   2 +-
arch/powerpc/boot/dts/b4860qds.dts                 |   2 +-
arch/powerpc/boot/dts/{b4qds.dts =3D> b4qds.dtsi}    |   0
arch/powerpc/boot/dts/fsl/b4si-post.dtsi           |   2 +-
arch/powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi       | 149 +++++++++++
arch/powerpc/boot/dts/fsl/t4240si-post.dtsi        |   2 +-
arch/powerpc/boot/dts/p1020rdb-pd.dts              | 280 =

+++++++++++++++++++++

Quoted 20 lines
Quoted 20 lines
arch/powerpc/configs/85xx/p1023rds_defconfig       |   1 +
arch/powerpc/configs/corenet32_smp_defconfig       |   1 +
arch/powerpc/configs/corenet64_smp_defconfig       |   1 +
arch/powerpc/configs/mpc83xx_defconfig             |   1 +
arch/powerpc/configs/mpc85xx_defconfig             |   1 +
arch/powerpc/configs/mpc85xx_smp_defconfig         |   1 +
arch/powerpc/include/asm/epapr_hcalls.h            |   6 +
arch/powerpc/include/asm/mpic.h                    |   7 +
arch/powerpc/include/asm/perf_event_fsl_emb.h      |   2 +-
arch/powerpc/include/asm/ppc-opcode.h              |  47 ++++
arch/powerpc/include/asm/reg_fsl_emb.h             |  24 +-
arch/powerpc/kernel/cpu_setup_fsl_booke.S          |   2 +-
arch/powerpc/kernel/cputable.c                     |   2 +-
arch/powerpc/kernel/epapr_paravirt.c               |  28 ++-
arch/powerpc/kernel/setup_32.c                     |   4 +-
arch/powerpc/kernel/setup_64.c                     |   3 +
arch/powerpc/kernel/swsusp_booke.S                 |   8 +
arch/powerpc/kernel/traps.c                        |   3 +
arch/powerpc/kvm/emulate.c                         |  45 +---
arch/powerpc/oprofile/op_model_fsl_emb.c           |  30 +++
Quoted 8 lines
Quoted 8 lines
arch/powerpc/perf/Makefile                         |   2 +-
arch/powerpc/perf/core-fsl-emb.c                   |  30 +++
arch/powerpc/perf/e6500-pmu.c                      | 121 +++++++++
arch/powerpc/platforms/85xx/corenet_ds.c           |   6 -
arch/powerpc/platforms/85xx/mpc85xx_rdb.c          |  22 ++
arch/powerpc/sysdev/fsl_msi.c                      | 137 +++++++---
arch/powerpc/sysdev/fsl_msi.h                      |  10 +-
arch/powerpc/sysdev/fsl_pci.c                      | 184 =

++++++++++++--

Quoted 7 lines
Quoted 6 lines

arch/powerpc/sysdev/fsl_pci.h | 6 +

38 files changed, 1088 insertions(+), 155 deletions(-)

rename arch/powerpc/boot/dts/{b4qds.dts =3D> b4qds.dtsi} (100%) create mode 100644 arch/powerpc/boot/dts/fsl/qoriq-mpic4.3.dtsi create mode 100644 arch/powerpc/boot/dts/p1020rdb-pd.dts create mode 100644 arch/powerpc/perf/e6500-pmu.c

=20

author
#3 lore raw
Quoted 9 lines · Kumar Gala
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 5 lines · Scott Wood

The following changes since commit 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b:

Linux 3.11-rc2 (2013-07-21 12:05:29 -0700)

are available in the git repository at:

Quoted 7 lines
Quoted 7 lines

Next time, put a little blurb at the head of the pull request giving a rough highlight, like I do when I send a pull request to Linus.

Thanks !

Cheers,
Ben.

Oh, sorry -- forgot.

Highlights include:
- Setting compilation flags properly for the chosen e500 target --
among other things, on 64-bit e500 builds this will prevent the assembler from replacing lwsync with sync, which caused a significant slowdown on certain workloads.
- e6500 perf support
- MPIC MSI support for t4240/b4860-era chips
- p1020rdb-pd board support

Quoted 3 lines

Also, I think we should pull a few of the commits in here out and submit for 3.11

powerpc/msi: Fix compile error on mpc83xx

This is poorly worded -- there is no compilation error unless you apply a subsequent patch without this one. A better subject would have been "powerpc/mpic: allow fsl_mpic_primary_get_version without CONFIG_MPIC".

Quoted 1 line

powerpc/fsl_msi: fix error return code in fsl_of_msi_probe()

This one doesn't seem that critical...

Quoted 1 line

powerpc/pci: fix PCI-e check link issue

I agree on this one.

-Scott

#4 lore raw
In reply to Scott Wood
Quoted 2 lines · Scott Wood

powerpc/e500: Update compilation flags with core specific
options

This breaks the build for my FSL test configs. For some reason gcc 4.7.3 doesn't know about -mcpu=e5500

Additionally, on 64-bit, that means one can no longer make a kernel that does both A2 and e5500...

I'm reverting that crap patch, please make such optimizations CONFIG_* options like power5...7

Cheers,
Ben.

author
#5 lore raw
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 2 lines · Scott Wood

powerpc/e500: Update compilation flags with core specific
options

This breaks the build for my FSL test configs. For some reason gcc 4.7.3 doesn't know about -mcpu=e5500

Ugh. I guess that's what I get for using toolchains provided internally rather than building them myself -- though it doesn't help that the GCC people love finding new ways to break building GCC without libc (why doesn't --without-headers automatically disable any component that requires libc headers?), and usually respond to bug reports with "go run crosstool and leave us alone". It looks like e5500 support is in 4.8.1, but I can't actually get it to build (libdecnumber wants to #include_next <stdlib.h> and can't be disabled -- arm64 toolchain built fine with the similar configure options). I don't know about earlier versions.

Quoted 2 lines

Additionally, on 64-bit, that means one can no longer make a kernel that does both A2 and e5500...

Other than the toolchain issue, I'm not sure how this is worse than it was before, when such a kernel would have had -Wa,-me500 forced.

What -mcpu value should be used in such a combined kernel?

Quoted 2 lines

I'm reverting that crap patch, please make such optimizations CONFIG_* options like power5...7

Speaking of crap patches, those config options don't limit themselves to book3s and thus we're now getting CONFIG_GENERIC_CPU (and thus -mtune=power7) on e5500 builds.

-Scott

#6 lore raw
Quoted 10 lines · Scott Wood
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 2 lines · Scott Wood

powerpc/e500: Update compilation flags with core specific
options

This breaks the build for my FSL test configs. For some reason gcc 4.7.3 doesn't know about -mcpu=e5500

Ugh. I guess that's what I get for using toolchains provided internally rather than building them myself

:-)

I recommend you use one of tony's on kernel.org, that way you have something that matches what other people use :-)

Quoted 4 lines

-- though it doesn't help that the GCC
people love finding new ways to break building GCC without libc (why doesn't --without-headers automatically disable any component that requires libc headers?)

Hehe, yeah.

Quoted 6 lines

, and usually respond to bug reports with "go run
crosstool and leave us alone". It looks like e5500 support is in 4.8.1, but I can't actually get it to build (libdecnumber wants to #include_next <stdlib.h> and can't be disabled -- arm64 toolchain built fine with the similar configure options). I don't know about earlier versions.

In any case, there are mechanisms in Kbuild to check if the option exist, so that should be used here. Look at the other ones.

Quoted 5 lines
Quoted 2 lines

Additionally, on 64-bit, that means one can no longer make a kernel that does both A2 and e5500...

Other than the toolchain issue, I'm not sure how this is worse than it was before, when such a kernel would have had -Wa,-me500 forced.

Probably similarly bad though it did work ... but if you are touching it, may as well do it right...

Quoted 1 line

What -mcpu value should be used in such a combined kernel?

Good question. We lack a generic booke option. What about powerpc64 ?

A default like that is fine as long as tricky asm uses the macros for that and the *optional* -mcpu=<xxx> option is available (and you can put it in defconfig).

It might be worth asking gcc to add something like -march=<arch version> or something like that though.

Quoted 6 lines
Quoted 2 lines

I'm reverting that crap patch, please make such optimizations CONFIG_* options like power5...7

Speaking of crap patches, those config options don't limit themselves to book3s and thus we're now getting CONFIG_GENERIC_CPU (and thus -mtune=power7) on e5500 builds.

Indeed, another crap patch ... I didn't spot it because it didn't break the build :-)

Feel free to submit a fix !

Cheers,
Ben.

author
#7 lore raw
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 8 lines · Scott Wood
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 2 lines · Scott Wood

powerpc/e500: Update compilation flags with core specific
options

This breaks the build for my FSL test configs. For some reason gcc 4.7.3 doesn't know about -mcpu=e5500

Quoted 7 lines
Quoted 2 lines

Ugh. I guess that's what I get for using toolchains provided internally rather than building them myself

:-)

I recommend you use one of tony's on kernel.org, that way you have something that matches what other people use :-)

It looks like -mcpu=e500mc64 has been supported for a while.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Additionally, on 64-bit, that means one can no longer make a kernel that does both A2 and e5500...

Other than the toolchain issue, I'm not sure how this is worse than it was before, when such a kernel would have had -Wa,-me500 forced.

Probably similarly bad though it did work ... but if you are touching it, may as well do it right...

There are worms inside that can...

Quoted 10 lines
Quoted 1 line

What -mcpu value should be used in such a combined kernel?

Good question. We lack a generic booke option. What about powerpc64 ?

A default like that is fine as long as tricky asm uses the macros for that and the *optional* -mcpu=<xxx> option is available (and you can put it in defconfig).

It might be worth asking gcc to add something like -march=<arch version> or something like that though.

If we use the generic CPU target then mftb won't get turned into mfspr (I assume this is what you meant by "tricky asm"). Does mfspr work everywhere, including from userspace? Or do we need to patch? What about 403GCX which seems to need some special SPR (I could leave the existing ifdef alone, but what about vdso)?

-Scott

#8 lore raw
Quoted 5 lines · Scott Wood

If we use the generic CPU target then mftb won't get turned into mfspr (I assume this is what you meant by "tricky asm"). Does mfspr work everywhere, including from userspace? Or do we need to patch? What about 403GCX which seems to need some special SPR (I could leave the existing ifdef alone, but what about vdso)?

I think mfspr works everywhere we care about but I might be mistaken :-) I don't think anybody have tried booting a 403 in a looooong time. I would be surprised if it still worked.

Cheers,
Ben.

#9 lore raw
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 5 lines · Scott Wood

If we use the generic CPU target then mftb won't get turned into mfspr (I assume this is what you meant by "tricky asm"). Does mfspr work everywhere, including from userspace? Or do we need to patch? What about 403GCX which seems to need some special SPR (I could leave the existing ifdef alone, but what about vdso)?

I think mfspr works everywhere we care about but I might be mistaken :-) I don't think anybody have tried booting a 403 in a looooong time. I would be surprised if it still worked.

I think I have one buried somewhere in my garage. I'm not digging it out.

josh

#10 lore raw
Quoted 5 lines · Josh Boyer
Quoted 3 lines

I think mfspr works everywhere we care about but I might be mistaken :-) I don't think anybody have tried booting a 403 in a looooong time. I would be surprised if it still worked.

I think I have one buried somewhere in my garage. I'm not digging it out.

Don't :-)

I'm thinking of removing the code... been wanting to do that for a while, I'd be surprised if it still worked anyway. How much RAM do these things have ? Probably not enough for a recent kernel...

Cheers,
Ben.