All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/25] linux/eal: Remove most causes of panic on init
@ 2017-02-08 18:51 Aaron Conole
  2017-02-08 18:51 ` [PATCH v2 01/25] eal: CPU init will no longer panic Aaron Conole
                   ` (26 more replies)
  0 siblings, 27 replies; 159+ messages in thread
From: Aaron Conole @ 2017-02-08 18:51 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger, Bruce Richardson

In many cases, it's enough to simply let the application know that the
call to initialize DPDK has failed.  A complete halt can then be
decided by the application based on error returned (and the app could
even attempt a possible re-attempt after some corrective action by the
user or application).

Changes ->v2:
- Audited all "RTE_LOG (" calls that were introduced, and converted
  to "RTE_LOG("
- Added some fprintf(stderr, "") lines to indicate errors before logging
  is initialized
- Removed assignments to errno.
- Changed patch 14/25 to reflect EFAULT, and document in 25/25

I kept the rte_errno reflection, since this is control-path code and the
init function returns a sentinel value of -1.

Aaron Conole (25):
  eal: CPU init will no longer panic
  eal: return error instead of panic for cpu init
  eal: No panic on hugepages info init
  eal: do not panic on failed hugepage query
  eal: failure to parse args returns error
  eal-common: introduce a way to query cpu support
  eal: Signal error when CPU isn't supported
  eal: do not panic on memzone initialization fails
  eal: set errno when exiting for already called
  eal: Do not panic on log failures
  eal: Do not panic on pci-probe
  eal: do not panic on vfio failure
  eal: do not panic on memory init
  eal: do not panic on tailq init
  eal: do not panic on alarm init
  eal: convert timer_init not to call panic
  eal: change the private pipe call to reflect errno
  eal: Do not panic on interrupt thread init
  eal: do not error if plugins fail to init
  eal_pci: Continue probing even on failures
  eal: do not panic on failed PCI probe
  eal_common_dev: continue initializing vdevs
  eal: do not panic (or abort) if vdev init fails
  eal: do not panic when bus probe fails
  rte_eal_init: add info about rte_errno codes

 lib/librte_eal/common/eal_common_cpuflags.c        |  13 ++-
 lib/librte_eal/common/eal_common_dev.c             |   5 +-
 lib/librte_eal/common/eal_common_lcore.c           |   7 +-
 lib/librte_eal/common/eal_common_pci.c             |  15 ++-
 lib/librte_eal/common/eal_common_tailqs.c          |   3 +-
 .../common/include/generic/rte_cpuflags.h          |   9 ++
 lib/librte_eal/common/include/rte_eal.h            |  27 ++++-
 lib/librte_eal/linuxapp/eal/eal.c                  | 122 +++++++++++++++------
 lib/librte_eal/linuxapp/eal/eal_hugepage_info.c    |   6 +-
 lib/librte_eal/linuxapp/eal/eal_interrupts.c       |   5 +-
 10 files changed, 161 insertions(+), 51 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 159+ messages in thread

end of thread, other threads:[~2017-03-10 18:34 UTC | newest]

Thread overview: 159+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 18:51 [PATCH v2 00/25] linux/eal: Remove most causes of panic on init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 01/25] eal: CPU init will no longer panic Aaron Conole
2017-02-08 18:51 ` [PATCH v2 02/25] eal: return error instead of panic for cpu init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 03/25] eal: No panic on hugepages info init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 04/25] eal: do not panic on failed hugepage query Aaron Conole
2017-02-08 18:51 ` [PATCH v2 05/25] eal: failure to parse args returns error Aaron Conole
2017-02-08 18:51 ` [PATCH v2 06/25] eal-common: introduce a way to query cpu support Aaron Conole
2017-02-08 18:51 ` [PATCH v2 07/25] eal: Signal error when CPU isn't supported Aaron Conole
2017-02-08 18:51 ` [PATCH v2 08/25] eal: do not panic on memzone initialization fails Aaron Conole
2017-02-08 18:51 ` [PATCH v2 09/25] eal: set errno when exiting for already called Aaron Conole
2017-02-08 18:51 ` [PATCH v2 10/25] eal: Do not panic on log failures Aaron Conole
2017-02-08 18:51 ` [PATCH v2 11/25] eal: Do not panic on pci-probe Aaron Conole
2017-02-08 18:51 ` [PATCH v2 12/25] eal: do not panic on vfio failure Aaron Conole
2017-02-08 18:51 ` [PATCH v2 13/25] eal: do not panic on memory init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 14/25] eal: do not panic on tailq init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 15/25] eal: do not panic on alarm init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 16/25] eal: convert timer_init not to call panic Aaron Conole
2017-02-08 18:51 ` [PATCH v2 17/25] eal: change the private pipe call to reflect errno Aaron Conole
2017-02-08 18:51 ` [PATCH v2 18/25] eal: Do not panic on interrupt thread init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 19/25] eal: do not error if plugins fail to init Aaron Conole
2017-02-08 18:51 ` [PATCH v2 20/25] eal_pci: Continue probing even on failures Aaron Conole
2017-02-08 18:51 ` [PATCH v2 21/25] eal: do not panic on failed PCI probe Aaron Conole
2017-02-08 18:51 ` [PATCH v2 22/25] eal_common_dev: continue initializing vdevs Aaron Conole
2017-02-08 18:51 ` [PATCH v2 23/25] eal: do not panic (or abort) if vdev init fails Aaron Conole
2017-02-08 18:51 ` [PATCH v2 24/25] eal: do not panic when bus probe fails Aaron Conole
2017-02-08 18:51 ` [PATCH v2 25/25] rte_eal_init: add info about rte_errno codes Aaron Conole
2017-02-08 19:11 ` [PATCH v2 00/25] linux/eal: Remove most causes of panic on init Aaron Conole
2017-02-09 14:29 ` [PATCH v3 " Aaron Conole
2017-02-09 14:29   ` [PATCH v3 01/25] eal: CPU init will no longer panic Aaron Conole
2017-02-09 14:29   ` [PATCH v3 02/25] eal: return error instead of panic for cpu init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 03/25] eal: No panic on hugepages info init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 04/25] eal: do not panic on failed hugepage query Aaron Conole
2017-02-09 14:29   ` [PATCH v3 05/25] eal: failure to parse args returns error Aaron Conole
2017-02-09 14:29   ` [PATCH v3 06/25] eal-common: introduce a way to query cpu support Aaron Conole
2017-02-09 14:29   ` [PATCH v3 07/25] eal: Signal error when CPU isn't supported Aaron Conole
2017-02-09 14:29   ` [PATCH v3 08/25] eal: do not panic on memzone initialization fails Aaron Conole
2017-02-09 14:29   ` [PATCH v3 09/25] eal: set errno when exiting for already called Aaron Conole
2017-02-09 14:29   ` [PATCH v3 10/25] eal: Do not panic on log failures Aaron Conole
2017-02-09 14:29   ` [PATCH v3 11/25] eal: Do not panic on pci-probe Aaron Conole
2017-02-09 14:29   ` [PATCH v3 12/25] eal: do not panic on vfio failure Aaron Conole
2017-02-09 14:29   ` [PATCH v3 13/25] eal: do not panic on memory init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 14/25] eal: do not panic on tailq init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 15/25] eal: do not panic on alarm init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 16/25] eal: convert timer_init not to call panic Aaron Conole
2017-02-09 14:29   ` [PATCH v3 17/25] eal: change the private pipe call to reflect errno Aaron Conole
2017-02-09 14:29   ` [PATCH v3 18/25] eal: Do not panic on interrupt thread init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 19/25] eal: do not error if plugins fail to init Aaron Conole
2017-02-09 14:29   ` [PATCH v3 20/25] eal_pci: Continue probing even on failures Aaron Conole
2017-02-09 14:29   ` [PATCH v3 21/25] eal: do not panic on failed PCI probe Aaron Conole
2017-02-09 14:29   ` [PATCH v3 22/25] eal_common_dev: continue initializing vdevs Aaron Conole
2017-02-09 14:29   ` [PATCH v3 23/25] eal: do not panic (or abort) if vdev init fails Aaron Conole
2017-02-09 14:29   ` [PATCH v3 24/25] eal: do not panic when bus probe fails Aaron Conole
2017-02-09 14:29   ` [PATCH v3 25/25] rte_eal_init: add info about rte_errno codes Aaron Conole
2017-02-09 22:37     ` Stephen Hemminger
2017-02-14 21:31       ` Aaron Conole
2017-02-09 22:38   ` [PATCH v3 00/25] linux/eal: Remove most causes of panic on init Stephen Hemminger
2017-02-14 20:50     ` Aaron Conole
2017-02-25 16:02   ` [PATCH v4 00/26] " Aaron Conole
2017-02-25 16:02     ` [PATCH v4 01/26] eal: CPU init will no longer panic Aaron Conole
2017-02-25 16:02     ` [PATCH v4 02/26] eal: return error instead of panic for cpu init Aaron Conole
2017-02-27 12:58       ` Bruce Richardson
2017-02-27 14:35         ` Aaron Conole
2017-02-27 13:00       ` Bruce Richardson
2017-02-27 14:34         ` Aaron Conole
2017-02-25 16:02     ` [PATCH v4 03/26] eal: No panic on hugepages info init Aaron Conole
2017-02-25 16:02     ` [PATCH v4 04/26] eal: do not panic on failed hugepage query Aaron Conole
2017-02-25 16:02     ` [PATCH v4 05/26] eal: failure to parse args returns error Aaron Conole
2017-02-25 16:02     ` [PATCH v4 06/26] eal-common: introduce a way to query cpu support Aaron Conole
2017-02-27 13:48       ` Bruce Richardson
2017-02-27 14:33         ` Aaron Conole
2017-02-27 15:11           ` Bruce Richardson
2017-02-25 16:02     ` [PATCH v4 07/26] eal: Signal error when CPU isn't supported Aaron Conole
2017-02-25 16:02     ` [PATCH v4 08/26] eal: do not panic on memzone initialization fails Aaron Conole
2017-02-25 16:02     ` [PATCH v4 09/26] eal: set errno when exiting for already called Aaron Conole
2017-02-25 16:02     ` [PATCH v4 10/26] eal: Do not panic on log failures Aaron Conole
2017-02-25 16:02     ` [PATCH v4 11/26] eal: Do not panic on pci-probe Aaron Conole
2017-02-25 16:02     ` [PATCH v4 12/26] eal: do not panic on vfio failure Aaron Conole
2017-02-25 16:02     ` [PATCH v4 13/26] eal: do not panic on memory init Aaron Conole
2017-02-25 16:02     ` [PATCH v4 14/26] eal: do not panic on tailq init Aaron Conole
2017-02-25 16:02     ` [PATCH v4 15/26] eal: do not panic on alarm init Aaron Conole
2017-02-25 16:02     ` [PATCH v4 16/26] eal: convert timer_init not to call panic Aaron Conole
2017-02-25 16:03     ` [PATCH v4 17/26] eal: change the private pipe call to reflect errno Aaron Conole
2017-02-25 16:03     ` [PATCH v4 18/26] eal: Do not panic on interrupt thread init Aaron Conole
2017-02-25 16:03     ` [PATCH v4 19/26] eal: do not error if plugins fail to init Aaron Conole
2017-02-25 16:03     ` [PATCH v4 20/26] eal_pci: Continue probing even on failures Aaron Conole
2017-02-25 16:03     ` [PATCH v4 21/26] eal: do not panic on failed PCI probe Aaron Conole
2017-02-25 16:03     ` [PATCH v4 22/26] eal_common_dev: continue initializing vdevs Aaron Conole
2017-02-25 16:03     ` [PATCH v4 23/26] eal: do not panic (or abort) if vdev init fails Aaron Conole
2017-02-25 16:03     ` [PATCH v4 24/26] eal: do not panic when bus probe fails Aaron Conole
2017-02-25 16:03     ` [PATCH v4 25/26] eal: do not panic on failed bus scan Aaron Conole
2017-02-25 16:03     ` [PATCH v4 26/26] rte_eal_init: add info about rte_errno codes Aaron Conole
2017-02-27 13:59     ` [PATCH v4 00/26] linux/eal: Remove most causes of panic on init Bruce Richardson
2017-02-27 14:34       ` Aaron Conole
2017-02-27 16:17     ` [PATCH v5 " Aaron Conole
2017-02-27 16:17       ` [PATCH v5 01/26] eal: CPU init will no longer panic Aaron Conole
2017-02-27 16:17       ` [PATCH v5 02/26] eal: return error instead of panic for cpu init Aaron Conole
2017-02-27 16:17       ` [PATCH v5 03/26] eal: No panic on hugepages info init Aaron Conole
2017-02-28 14:25         ` Bruce Richardson
2017-02-28 14:48           ` Aaron Conole
2017-02-27 16:17       ` [PATCH v5 04/26] eal: do not panic on failed hugepage query Aaron Conole
2017-02-27 16:17       ` [PATCH v5 05/26] eal: failure to parse args returns error Aaron Conole
2017-02-27 16:17       ` [PATCH v5 06/26] eal-common: introduce a way to query cpu support Aaron Conole
2017-02-27 16:17       ` [PATCH v5 07/26] eal: Signal error when CPU isn't supported Aaron Conole
2017-02-27 16:17       ` [PATCH v5 08/26] eal: do not panic on memzone initialization fails Aaron Conole
2017-02-28 14:27         ` Bruce Richardson
2017-02-28 14:46           ` Aaron Conole
2017-02-27 16:17       ` [PATCH v5 09/26] eal: set errno when exiting for already called Aaron Conole
2017-02-27 16:17       ` [PATCH v5 10/26] eal: Do not panic on log failures Aaron Conole
2017-02-27 16:17       ` [PATCH v5 11/26] eal: Do not panic on pci-probe Aaron Conole
2017-02-27 16:17       ` [PATCH v5 12/26] eal: do not panic on vfio failure Aaron Conole
2017-02-27 16:17       ` [PATCH v5 13/26] eal: do not panic on memory init Aaron Conole
2017-02-27 16:17       ` [PATCH v5 14/26] eal: do not panic on tailq init Aaron Conole
2017-02-27 16:18       ` [PATCH v5 15/26] eal: do not panic on alarm init Aaron Conole
2017-02-27 16:18       ` [PATCH v5 16/26] eal: convert timer_init not to call panic Aaron Conole
2017-02-27 16:18       ` [PATCH v5 17/26] eal: change the private pipe call to reflect errno Aaron Conole
2017-02-27 16:18       ` [PATCH v5 18/26] eal: Do not panic on interrupt thread init Aaron Conole
2017-02-27 16:18       ` [PATCH v5 19/26] eal: do not error if plugins fail to init Aaron Conole
2017-02-27 16:18       ` [PATCH v5 20/26] eal_pci: Continue probing even on failures Aaron Conole
2017-02-27 16:18       ` [PATCH v5 21/26] eal: do not panic on failed PCI probe Aaron Conole
2017-02-27 16:18       ` [PATCH v5 22/26] eal_common_dev: continue initializing vdevs Aaron Conole
2017-02-27 16:18       ` [PATCH v5 23/26] eal: do not panic (or abort) if vdev init fails Aaron Conole
2017-02-27 16:18       ` [PATCH v5 24/26] eal: do not panic when bus probe fails Aaron Conole
2017-02-27 16:18       ` [PATCH v5 25/26] eal: do not panic on failed bus scan Aaron Conole
2017-02-27 16:18       ` [PATCH v5 26/26] rte_eal_init: add info about rte_errno codes Aaron Conole
2017-02-28 14:45       ` [PATCH v5 00/26] linux/eal: Remove most causes of panic on init Bruce Richardson
2017-02-28 18:52       ` [PATCH v6 " Aaron Conole
2017-02-28 18:52         ` [PATCH v6 01/26] eal: cpu init will no longer panic Aaron Conole
2017-02-28 18:52         ` [PATCH v6 02/26] eal: return error instead of panic for cpu init Aaron Conole
2017-02-28 18:52         ` [PATCH v6 03/26] eal: do not panic on hugepage info init Aaron Conole
2017-02-28 18:52         ` [PATCH v6 04/26] eal: do not panic on failed hugepage query Aaron Conole
2017-02-28 18:52         ` [PATCH v6 05/26] eal: do not panic if parsing args returns error Aaron Conole
2017-02-28 18:52         ` [PATCH v6 06/26] eal-common: introduce a way to query cpu support Aaron Conole
2017-03-08 21:45           ` Thomas Monjalon
2017-02-28 18:52         ` [PATCH v6 07/26] eal: do not panic when CPU isn't supported Aaron Conole
2017-02-28 18:52         ` [PATCH v6 08/26] eal: do not panic on memzone initialization fails Aaron Conole
2017-02-28 18:52         ` [PATCH v6 09/26] eal: set errno when exiting for already called Aaron Conole
2017-02-28 18:52         ` [PATCH v6 10/26] eal: do not panic on log failures Aaron Conole
2017-02-28 18:53         ` [PATCH v6 11/26] eal: do not panic on PCI-probe Aaron Conole
2017-02-28 18:53         ` [PATCH v6 12/26] eal: do not panic on vfio failure Aaron Conole
2017-02-28 18:53         ` [PATCH v6 13/26] eal: do not panic on memory init Aaron Conole
2017-02-28 18:53         ` [PATCH v6 14/26] eal: do not panic on tailq init Aaron Conole
2017-02-28 18:53         ` [PATCH v6 15/26] eal: do not panic on alarm init Aaron Conole
2017-02-28 18:53         ` [PATCH v6 16/26] eal: convert timer init not to call panic Aaron Conole
2017-02-28 18:53         ` [PATCH v6 17/26] eal: change the private pipe call to reflect errno Aaron Conole
2017-02-28 18:53         ` [PATCH v6 18/26] eal: do not panic on interrupt thread init Aaron Conole
2017-02-28 18:53         ` [PATCH v6 19/26] eal: do not error if plugins fail to init Aaron Conole
2017-02-28 18:53         ` [PATCH v6 20/26] eal_pci: continue probing even on failures Aaron Conole
2017-03-08 22:04           ` Thomas Monjalon
2017-02-28 18:53         ` [PATCH v6 21/26] eal: do not panic on failed PCI-probe Aaron Conole
2017-02-28 18:53         ` [PATCH v6 22/26] eal_common_dev: continue initializing vdevs Aaron Conole
2017-02-28 18:53         ` [PATCH v6 23/26] eal: do not panic (or abort) if vdev init fails Aaron Conole
2017-02-28 18:53         ` [PATCH v6 24/26] eal: do not panic when bus probe fails Aaron Conole
2017-02-28 18:53         ` [PATCH v6 25/26] eal: do not panic on failed bus scan Aaron Conole
2017-02-28 18:53         ` [PATCH v6 26/26] rte_eal_init: add info about various error codes Aaron Conole
2017-03-08 21:58         ` [PATCH v6 00/26] linux/eal: Remove most causes of panic on init Thomas Monjalon
2017-03-09  9:11           ` Bruce Richardson
2017-03-09  9:26             ` Thomas Monjalon
2017-03-09  9:38               ` Richardson, Bruce
2017-03-10 18:34                 ` Aaron Conole

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.