public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 16/26] dm: tegra: net: Convert tegra boards to driver model for Ethernet
Date: Thu, 11 Feb 2016 16:21:12 -0700	[thread overview]
Message-ID: <56BD1768.2040601@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ2CWSO5LgyT_uz7RtNcjVEtUSNG9eix7gbvUfA5DyJpBQ@mail.gmail.com>

On 12/13/2015 08:46 PM, Simon Glass wrote:
> Applied to u-boot-dm/next.

I've found another strange problem, at least triggered/exposed by this 
patch:

On at least either Dalmore or Jetson TK1, using USB Ethernet (hence with 
RTL8169 support disabled in include/configs/jetson-tk1.h[1]), I find 
that if I execute the following commands at or after this patch, then 
the system reboots during DHCP operation:

save mmc 1:1 $loadaddr /dfu_dummy.bin 0x3c0
usb start
setenv autoload no
dhcp

yields:

====================
Tegra124 (Jetson TK1) # dhcp
Waiting for Ethernet connection... done.
BOOTP broadcast 1
DHCP client bound to address 10.20.204.50 (1 ms)
data abort
pc : [<fff6f1d4>]	   lr : [<fff59fd0>]
reloc pc : [<801291d4>]	   lr : [<80113fd0>]
sp : fda4e720  ip : 450088df	 fp : fda60048
r10: fffa4fe3  r9 : fda53ee0	 r8 : 00000000
r7 : 00000000  r6 : 00000000	 r5 : 00000000  r4 : fda60048
r3 : 00000383  r2 : 00000000	 r1 : 00000000  r0 : e10f354b
Flags: NzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...
====================

However, if I execute those commands at the commit before this patch, 
then everything is OK.

The "save" command is definitely required to trigger this issue. The 
partition being saved to is a 1024MiB ext4 filesystem that's almost 
empty. If I omit the save, or save to a 1024MiB FAT filesystem instead, 
there's no error. This leads me to suspect some kind of memory 
corruption rather than a direct problem with this patch. Due to ext4 
interaction, also CCing ?ukasz in case he has any quick ideas.

I'll go track down the PC where the error occurs and try and add some 
debug spew etc. to see what's up. Any other ideas appreciated though.

(This is the problem with writing test systems; they show up bugs!)



[1] i.e. I have this change made locally so that no PCIe Ethernet device 
exists, which causes the USB Ethernet to be used by default:

diff --git a/include/configs/jetson-tk1.h b/include/configs/jetson-tk1.h
index 23b2e436167c..af26b055b70b 100644
--- a/include/configs/jetson-tk1.h
+++ b/include/configs/jetson-tk1.h
@@ -62,7 +62,6 @@
  #define CONFIG_CMD_PCI

  /* PCI networking support */
-#define CONFIG_RTL8169

  /* General networking support */
  #define CONFIG_CMD_DHCP

  parent reply	other threads:[~2016-02-11 23:21 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-29 20:17 [U-Boot] [PATCH v2 00/26] dm: Conversion of code to the new driver model PCI API Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 01/26] dm: pci: Mark legacy files as such Simon Glass
2015-12-14  3:45   ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 02/26] dm: pci: Add a dm_ prefix to pci_get_bdf() Simon Glass
2015-12-03  9:06   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 03/26] dm: pci: Add a dm_ prefix to pci_bus_find_bdf() Simon Glass
2015-12-03  9:06   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 04/26] dm: pci: Use driver model PCI API in auto-config Simon Glass
2015-12-03  9:15   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 05/26] dm: pci: Add a driver-model version of pci_find_device() Simon Glass
2015-12-03  9:18   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 06/26] dm: pci: scsi: Use driver-model PCI API Simon Glass
2015-12-03 10:03   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 07/26] dm: pci: Add a driver-model version of pci_find_class() Simon Glass
2015-12-03 10:03   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 08/26] dm: pci: Add a function to read a PCI BAR Simon Glass
2015-12-14  3:45   ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 09/26] dm: serial: Convert ns16550 driver to use driver model PCI API Simon Glass
2015-12-07 13:27   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 10/26] dm: x86: ivybridge: Convert graphics init to use DM " Simon Glass
2015-12-07 10:34   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 11/26] dm: Convert bios_interrupts " Simon Glass
2015-12-07 10:53   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 12/26] dm: pci: video: Convert video and pci_rom " Simon Glass
2015-11-30  9:29   ` Anatolij Gustschin
2015-12-07 10:53   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 13/26] dm: x86: pci: Adjust bios_run_on_x86() to use the " Simon Glass
2015-12-07 10:53   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:17 ` [U-Boot] [PATCH v2 14/26] dm: pci: Drop the old version of pci_find_device/s() Simon Glass
2015-12-07 10:58   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 15/26] dm: pci: Drop the old version of pci_find_class() Simon Glass
2015-12-07 10:58   ` Bin Meng
2015-12-14  3:45     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 16/26] dm: tegra: net: Convert tegra boards to driver model for Ethernet Simon Glass
2015-11-30 22:35   ` Joe Hershberger
2015-12-14  3:46     ` Simon Glass
2016-01-15 23:53       ` Stephen Warren
2016-01-18  3:58         ` Simon Glass
2016-01-18 17:27           ` Stephen Warren
2016-01-19  1:59             ` Simon Glass
2016-02-11 23:21       ` Stephen Warren [this message]
2016-02-12  0:10         ` Simon Glass
2016-02-12  0:45           ` Stephen Warren
2016-02-12 20:04             ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 17/26] dm: test: Convert PCI tests to use the DM PCI API Simon Glass
2015-12-14  3:46   ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 18/26] dm: pci: Add driver model API functions for address mapping Simon Glass
2015-12-07 11:14   ` Bin Meng
2015-12-14  3:46     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 19/26] dm: net: Convert rtl8169 to use DM PCI API Simon Glass
2015-11-30 22:35   ` Joe Hershberger
2015-12-14  3:46     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 20/26] dm: pci: Switch to DM API for PCI address mapping Simon Glass
2015-12-14  3:46   ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 21/26] dm: ahci: Convert to use new DM PCI API Simon Glass
2015-12-07 11:27   ` Bin Meng
2015-12-14  3:46     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 22/26] dm: usb: Convert echi-pci " Simon Glass
2015-11-29 20:43   ` Marek Vasut
2015-12-14  3:46     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 23/26] dm: Convert PCI MMC over to use " Simon Glass
2015-12-07 11:28   ` Bin Meng
2015-12-14  3:46     ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 24/26] pci: Tidy up comments in pci_bind_bus_devices() Simon Glass
2015-12-14  3:46   ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 25/26] dm: net: usb: Refactor mcs7830 driver ready for DM conversion Simon Glass
2015-12-14  3:46   ` Simon Glass
2015-11-29 20:18 ` [U-Boot] [PATCH v2 26/26] dm: net: usb: Convert mcs7830 driver to support driver model Simon Glass
2015-12-14  3:46   ` Simon Glass

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=56BD1768.2040601@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=u-boot@lists.denx.de \
    /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