1559 Commits

Author SHA1 Message Date
Christian Mauderer
fedd993da8 freebsd-to-rtems.py: Use all modules.
Update #3351
2018-04-10 08:55:47 +02:00
Christian Mauderer
494b156fd2 waf: Remove module without sources.
There are no imported sources for a number of modules. Some of them
doesn't even have the right paths for freebsd-org anymore. Therefore
this patch removes the following modules:

- dev_usb_add_on
- dev_usb_bluetooth
- dev_usb_controller_add_on
- dev_usb_misc
- dev_usb_storage_add_on
- dev_usb_template
- dev_nic_cs

Update #3351
2018-04-10 08:55:47 +02:00
Christian Mauderer
a6a6d54909 waf: Fix freebsd-to-rtems.py.
Update #3351
2018-04-10 08:55:28 +02:00
Chris Johns
d797c5dcd2 waf: Refactor libbsd.py to support per module generation.
This change allows us to control the modules we want to build.

Update #3351
2018-04-10 08:54:58 +02:00
Chris Johns
f7a09b5985 waf: Support building from libbsd.py directly from waf.
Remove the need to generate a waf script.

Move various pieces of data from the builder code to libbsd.py and make
it configuration data.

Update #3351
2018-04-10 08:54:52 +02:00
Sebastian Huber
8189ea825a CRYPTO(4): Port to RTEMS 2018-03-28 07:59:12 +02:00
Sebastian Huber
6600368589 CRYPTO(4): Import from FreeBSD 2018-03-27 14:42:46 +02:00
Sebastian Huber
b8f7836e44 DEVFS(5): Fix warning 2018-03-27 14:42:46 +02:00
Sebastian Huber
8993827a73 DEVFS(5): Properly initialize fp->f_cdevpriv 2018-03-27 14:42:46 +02:00
Christian Mauderer
7ec935e03f vprintf: Add handler that mutes all output.
This adds a vprintf handler that can be used to suppress all outputs of
the libbsd.
2018-03-23 09:36:35 +01:00
Sebastian Huber
d300a34424 Silence rtems_bsd_ifconfig() 2018-03-23 09:14:34 +01:00
Christian Mauderer
b3d1e6a9c3 config.inc: Remove unused values. 2018-03-22 07:09:08 +01:00
Christian Mauderer
b2a210ca3e if_atsam: Add checksum offload. 2018-03-21 09:14:25 +01:00
Christian Mauderer
67c35b9ed1 openssl: Provide deprecated functions.
Some applications (like the civetweb web server) still use functions
that are deprecated by openssl. If OPENSSL_NO_DEPRECATED is defined,
openssl will not provide these functions. This patch removes the define
so that the functions are available.
2018-03-21 09:14:25 +01:00
Sebastian Huber
eae664ea8f mutex: Use panic() after ISR lock release
Using panic() with interrupts disabled could lead to an additional error
(INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT) due to a potentially
blocking output.
2018-03-13 11:27:11 +01:00
Sebastian Huber
2275776d21 dwc_otg: Default to USB host mode
In case no "dr_mode" property is present in the device tree, then
default to USB host mode.  This is necessary to support the Cyclone V
SoC Development Kit.
2018-02-06 09:56:35 +01:00
Sebastian Huber
b79c025a12 dwc_otg: Add compatibility string, constify
Support device tree of  Cyclone V SoC Development Kit.
2018-02-06 09:56:35 +01:00
Sebastian Huber
bcaa8a28a2 dw_mmc: Properly init/reset DMA 2018-02-06 09:56:35 +01:00
Sebastian Huber
138bf250c2 dw_mmc: Add MMCBR_IVAR_TIMING 2018-02-06 09:56:35 +01:00
Sebastian Huber
c30fa94277 Add device tree support for Altera/Intel Cyclone V
Close #3290.
2018-02-06 09:55:31 +01:00
Sebastian Huber
9906c4a5ee tests: Fix configuration dependencies 2018-02-05 12:05:52 +01:00
Sebastian Huber
0f9258f2fb linux/percpu.h: Fix for uni-processor config 2018-02-05 11:55:01 +01:00
Sebastian Huber
a0633c51db SLEEPQUEUE(9): Update due to API changes
Update #3264.
2018-02-05 10:56:39 +01:00
Sebastian Huber
8b3da1329b termios: Update due to API changes
Update #2843.
2018-02-05 10:56:24 +01:00
Sebastian Huber
327f4e1029 sdk_dpaa: What to do with tail queue drop?
The issue is this:

static int dpaa_eth_macless_probe(struct platform_device *_of_dev)
{
[...]
    INIT_LIST_HEAD(&priv->dpa_fq_list);

    err = dpa_fq_probe_macless(dev, &priv->dpa_fq_list, RX);
    if (!err)
        err = dpa_fq_probe_macless(dev, &priv->dpa_fq_list,
                       TX);
    if (err < 0)
        goto fq_probe_failed;
[...]
    /* Add the FQs to the interface, and make them active */
    /* For MAC-less devices we only get here for RX frame queues
     * initialization, which are the TX queues of the other
     * partition.
     * It is safe to rely on one partition to set the FQ taildrop
     * threshold for the TX queues of the other partition
     * because the ERN notifications will be received by the
     * partition doing qman_enqueue.
     */
    err = dpa_fqs_init(dev,  &priv->dpa_fq_list, true);
    if (err < 0)
        goto fq_alloc_failed;
[...]

The priv->dpa_fq_list contains a list of FQ_TYPE_RX_PCD  and FQ_TYPE_TX
items.  I don't understand what the "For MAC-less devices we only get
here for RX frame queues initialization" means in this context.  The
td_enable == true in dpa_fqs_init().  So, we have:

int dpa_fq_init(struct dpa_fq *dpa_fq, bool td_enable)
{
[...]
        if (dpa_fq->fq_type == FQ_TYPE_TX ||
                dpa_fq->fq_type == FQ_TYPE_TX_CONFIRM ||
                dpa_fq->fq_type == FQ_TYPE_TX_CONF_MQ) {
[...]
            initfq.we_mask |= QM_INITFQ_WE_OAC;
[...]
        }

        if (td_enable) {
            initfq.we_mask |= QM_INITFQ_WE_TDTHRESH;
            qm_fqd_taildrop_set(&initfq.fqd.td,
                    DPA_FQ_TD, 1);
            initfq.fqd.fq_ctrl = QM_FQCTRL_TDE;
        }

The td_enable == true && dpa_fq->fq_type == FQ_TYPE_TX causes later:

int qman_init_fq(struct qman_fq *fq, u32 flags, struct qm_mcc_initfq *opts)
{
[...]
    if (opts && (opts->we_mask & QM_INITFQ_WE_OAC)) {
        /* And can't be set at the same time as TDTHRESH */
        if (opts->we_mask & QM_INITFQ_WE_TDTHRESH)
            return -EINVAL;
    }

This aborts the  initialization of the MAC-less driver.  I don't
understand why this path doesn't happen on the SDK Linux system.

Update #3277.
2018-01-23 14:55:35 +01:00
Sebastian Huber
d62a3df1c7 sdk_dpaa: Port to RTEMS
Update #3277.
2018-01-23 14:55:31 +01:00
Sebastian Huber
f5ed3aa620 sdk_dpaa: Import from QorIQ SDK Linux
http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git

Commit 1ae843c08261402b2c35d83422e4fa1e313611f4 (fsl-sdk-v2.0-1703).

Update #3277.
2018-01-23 14:55:27 +01:00
Sebastian Huber
0f6ff4a923 dpaa: QMan portal only initialization
Update #3277.
2018-01-23 14:55:24 +01:00
Sebastian Huber
a7d252c645 dpaa: Add and use bman_new_pool_for_bpid()
Update #3277.
2018-01-23 14:55:21 +01:00
Sebastian Huber
95fe5b1f46 dpaa: Use device tree throughout in BMan init
Update #3277.
2018-01-23 14:55:18 +01:00
Sebastian Huber
1342fad09c dpaa: Add and use SDK_DPAA_COMPAT_STATIC
Update #3277.
2018-01-23 14:55:15 +01:00
Sebastian Huber
34b7ccccde dpaa: Support FQ_TYPE_RX_PCD
Update #3277.
2018-01-23 14:55:12 +01:00
Sebastian Huber
bdf9931603 dpaa: Disable unused bman_pool members
Update #3277.
2018-01-23 14:55:09 +01:00
Sebastian Huber
2fba1e4322 dpaa: Remove unused configuration defines
Update #3277.
2018-01-23 14:55:05 +01:00
Sebastian Huber
cfc149bff3 linux/of_irq.h: Generalize of_irq_to_resource()
Determine interrupt cells via device tree.

Update #3277.
2018-01-23 14:55:02 +01:00
Sebastian Huber
e4923c85c9 linux/of_address.h: of_address_to_resource()
Translate address in of_address_to_resource().

Update #3277.
2018-01-23 14:54:59 +01:00
Sebastian Huber
0f1d2f6174 linux/of_address.h: Add of_translate_address()
Update #3277.
2018-01-23 14:54:56 +01:00
Sebastian Huber
81fc57de35 linux/of.h: Add of_find_node_by_path()
Update #3277.
2018-01-23 14:54:53 +01:00
Sebastian Huber
44fca38058 linux/of.h: Add of_read_number()
Update #3277.
2018-01-23 14:54:50 +01:00
Sebastian Huber
26ce2ac428 linux/of.h: Add of_n_size_cells()
Update #3277.
2018-01-23 14:54:47 +01:00
Sebastian Huber
0d421d850e linux/of.h: Add of_n_addr_cells()
Update #3277.
2018-01-23 14:54:44 +01:00
Sebastian Huber
066b536397 linux/sort.h: New file
Update #3277.
2018-01-23 14:54:41 +01:00
Sebastian Huber
583216ab22 linux/smp.h: Avoid function call overhead
Update #3277.
2018-01-23 14:54:30 +01:00
Sebastian Huber
fe05886a55 linux/compiler.h: Define __cold
Update #3277.
2018-01-23 14:54:23 +01:00
Sebastian Huber
22538146a5 Add rtems_bsd_ifconfig() 2018-01-23 14:50:36 +01:00
Sebastian Huber
13c409362d ehci_mpc83xx.c: Fix for qoriq hypervisor guest 2018-01-19 14:51:53 +01:00
Sebastian Huber
ea121a0c59 ZONE(9): Avoid function call overhead 2018-01-19 14:51:51 +01:00
Sebastian Huber
4e17f143de DEVICE(9): Fix __BUS_ACCESSOR() 2018-01-08 14:01:02 +01:00
Sebastian Huber
4e3a5d3f03 openssl: Remove superfluous file 2018-01-08 14:00:59 +01:00
Sebastian Huber
b1649d6322 Add rtems_bsd_initialize_dhcp() 2017-12-05 09:16:25 +01:00