From: Christian Zigotzky <chzigotzky@xenosoft.de>
To: Michael Ellerman <mpe@ellerman.id.au>,
Gabriel Paubert <paubert@iram.es>,
netdev@vger.kernel.org, Denis Kirjanov <kda@linux-powerpc.org>,
linuxppc-dev@lists.ozlabs.org
Subject: [P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?
Date: Mon, 7 Dec 2015 13:09:12 +0100 [thread overview]
Message-ID: <566576E8.2060300@xenosoft.de> (raw)
In-Reply-To: <56603787.3000802@xenosoft.de>
[-- Attachment #1: Type: text/plain, Size: 3117 bytes --]
Michael,
Maybe a DMA issue. Please find attached an output of strace.
Cheers,
Christian
On 03 December 2015 1:37 PM, Christian Zigotzky wrote:
> Hi Michael,
>
> I checked out the Linux git till the commit 'powerpc-4.3-1'
>
> git checkout ff474e8ca8547d09cb82ebab56d4c96f9eea01ce
>
> Output:
>
> Checking out files: 100% (13843/13843), done.
> Note: checking out 'ff474e8ca8547d09cb82ebab56d4c96f9eea01ce'.
>
> You are in 'detached HEAD' state. You can look around, make experimental
> changes and commit them, and you can discard any commits you make in this
> state without impacting any branches by performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again.
> Example:
>
> git checkout -b new_branch_name
>
> HEAD ist jetzt bei ff474e8... Merge tag 'powerpc-4.3-1' of
> git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
>
> ---
>
> The P.A. Semi Ethernet doesn't work with the powerpc-4.3-1 merge. I
> reverted this merge with:
>
> git revert ff474e8ca8547d09cb82ebab56d4c96f9eea01ce -m 1
>
> Output:
>
> Committer: christian <christian@AmigaoneX1000.lan>
> Ihr Name und E-Mail Adresse wurden automatisch auf Basis
> Ihres Benutzer- und Rechnernamens konfiguriert. Bitte prüfen Sie, dass
> diese zutreffend sind. Sie können diese Meldung unterdrücken, indem Sie
> diese explizit setzen:
>
> git config --global user.name "Ihr Name"
> git config --global user.email ihre@emailadresse.de
>
> Nachdem Sie das getan hast, können Sie Ihre Identität für diesen
> Commit ändern mit:
>
> git commit --amend --reset-author
>
> 146 files changed, 2047 insertions(+), 3609 deletions(-)
> delete mode 100644
> Documentation/devicetree/bindings/leds/leds-powernv.txt
> delete mode 100644
> Documentation/devicetree/bindings/powerpc/fsl/scfg.txt
> delete mode 100644 arch/powerpc/boot/dts/t1040d4rdb.dts
> delete mode 100644 arch/powerpc/boot/dts/t1042d4rdb.dts
> delete mode 100644 arch/powerpc/boot/dts/t104xd4rdb.dtsi
> delete mode 100644 arch/powerpc/configs/85xx-32bit.config
> delete mode 100644 arch/powerpc/configs/85xx-64bit.config
> delete mode 100644 arch/powerpc/configs/85xx-hw.config
> delete mode 100644 arch/powerpc/configs/85xx-smp.config
> delete mode 100644 arch/powerpc/configs/altivec.config
> create mode 100644 arch/powerpc/configs/corenet32_smp_defconfig
> rename arch/powerpc/configs/{fsl-emb-nonhw.config =>
> corenet64_smp_defconfig} (50%)
> delete mode 100644 arch/powerpc/configs/corenet_basic_defconfig
> delete mode 100644 arch/powerpc/configs/mpc85xx_basic_defconfig
> create mode 100644 arch/powerpc/configs/mpc85xx_defconfig
> create mode 100644 arch/powerpc/configs/mpc85xx_smp_defconfig
> delete mode 100644 arch/powerpc/include/asm/trace_clock.h
> delete mode 100644 arch/powerpc/kernel/trace_clock.c
> rewrite arch/powerpc/platforms/powernv/opal-power.c (76%)
> delete mode 100644 drivers/leds/leds-powernv.c
>
> ---
>
> After that the P.A. Semi Ethernet works without any problems.
>
> Cheers,
>
> Christian
>
[-- Attachment #2: strace_ifconfig_eth0_up_pasemi_mac.txt --]
[-- Type: text/plain, Size: 9846 bytes --]
execve("/sbin/ifconfig", ["ifconfig", "eth0", "up"], [/* 33 vars */]) = 0
brk(0) = 0x10022000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dff000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=155410, ...}) = 0
mmap(NULL, 155410, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7da9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/powerpc-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\2\1\3\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0025\240\0\0\0004"..., 512) = 512
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dfe000
fstat64(3, {st_mode=S_IFREG|0755, st_size=1565776, ...}) = 0
mmap(0xfe60000, 1635768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfe60000
mprotect(0xffd8000, 61440, PROT_NONE) = 0
mmap(0xffe7000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x177000) = 0xffe7000
mmap(0xffed000, 9656, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffed000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7dfd000
mprotect(0xffe7000, 20480, PROT_READ) = 0
mprotect(0x1001f000, 4096, PROT_READ) = 0
mprotect(0xf7e00000, 4096, PROT_READ) = 0
munmap(0xf7da9000, 155410) = 0
brk(0) = 0x10022000
brk(0x10043000) = 0x10043000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.UTF-8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=363, ...}) = 0
mmap(NULL, 363, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dfc000
close(3) = 0
open("/usr/lib/powerpc-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26260, ...}) = 0
mmap(NULL, 26260, PROT_READ, MAP_SHARED, 3, 0) = 0xf7df5000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df4000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_TELEPHONE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
mmap(NULL, 56, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df3000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_ADDRESS", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0
mmap(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df2000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_NAME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_NAME", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0
mmap(NULL, 83, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7df1000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_PAPER", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_PAPER", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dce000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3) = 0
open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dcd000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_MONETARY", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
mmap(NULL, 294, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7dcc000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1243766, ...}) = 0
mmap(NULL, 1243766, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c9c000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_TIME", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_TIME", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2354, ...}) = 0
mmap(NULL, 2354, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c9b000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c9a000
close(3) = 0
open("/usr/lib/locale/de_DE.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/de_DE.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=256580, ...}) = 0
mmap(NULL, 256580, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7c5b000
close(3) = 0
uname({sysname="Linux", nodename="AmigaoneX1000", ...}) = 0
access("/proc/net", R_OK) = 0
access("/proc/net/unix", R_OK) = 0
socket(PF_LOCAL, SOCK_DGRAM, 0) = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
access("/proc/net/if_inet6", R_OK) = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5
access("/proc/net/ax25", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/net/nr", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/net/rose", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/net/ipx", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/net/appletalk", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/sys/net/econet", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/sys/net/ash", R_OK) = -1 ENOENT (No such file or directory)
access("/proc/net/x25", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.UTF-8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.UTF-8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/net-tools.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/net-tools.mo", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=40282, ...}) = 0
mmap(NULL, 40282, PROT_READ, MAP_PRIVATE, 6, 0) = 0xf7c51000
close(6) = 0
open("/usr/lib/powerpc-linux-gnu/gconv/ISO8859-1.so", O_RDONLY|O_CLOEXEC) = 6
read(6, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\5\0\0\0\0004"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0644, st_size=9548, ...}) = 0
mmap(0xfe3d000, 73756, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0xfe3d000
mprotect(0xfe3f000, 61440, PROT_NONE) = 0
mmap(0xfe4e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x1000) = 0xfe4e000
close(6) = 0
mprotect(0xfe4e000, 4096, PROT_READ) = 0
ioctl(4, SIOCGIFFLAGS, {ifr_name="eth0", ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0
ioctl(4, SIOCSIFFLAGS, {ifr_name="eth0", ???}) = -1 ENOMEM (Cannot allocate memory)
dup(2) = 6
fcntl64(6, F_GETFL) = 0x10001 (flags O_WRONLY|O_LARGEFILE)
close(6) = 0
open("/usr/share/locale/de_DE.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "SIOCSIFFLAGS: Cannot allocate me"..., 37SIOCSIFFLAGS: Cannot allocate memory
) = 37
exit_group(-1) = ?
+++ exited with 255 +++
next prev parent reply other threads:[~2015-12-07 12:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-29 13:11 [P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board? Christian Zigotzky
2015-11-30 8:37 ` Denis Kirjanov
2015-11-30 9:48 ` Christian Zigotzky
2015-11-30 17:08 ` Christian Zigotzky
2015-11-30 18:12 ` Gabriel Paubert
2015-12-01 14:47 ` Christian Zigotzky
2015-12-02 4:59 ` Christian Zigotzky
2015-12-02 8:14 ` Michael Ellerman
2015-12-02 21:11 ` Christian Zigotzky
2015-12-03 12:37 ` Christian Zigotzky
2015-12-07 12:09 ` Christian Zigotzky [this message]
2015-12-07 14:12 ` Christian Zigotzky
2015-12-08 7:32 ` Denis Kirjanov
2015-12-08 23:38 ` Benjamin Herrenschmidt
2015-12-02 8:54 ` Denis Kirjanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=566576E8.2060300@xenosoft.de \
--to=chzigotzky@xenosoft.de \
--cc=kda@linux-powerpc.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=netdev@vger.kernel.org \
--cc=paubert@iram.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).