lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 11 Nov 2019 10:47:26 +0200
From:   Peter Ujfalusi <peter.ujfalusi@...com>
To:     Vinod Koul <vkoul@...nel.org>
CC:     <robh+dt@...nel.org>, <nm@...com>, <ssantosh@...nel.org>,
        <dan.j.williams@...el.com>, <dmaengine@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>,
        <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <grygorii.strashko@...com>, <lokeshvutla@...com>,
        <t-kristo@...com>, <tony@...mide.com>, <j-keerthy@...com>
Subject: Re: [PATCH v4 07/15] dmaengine: ti: k3 PSI-L remote endpoint
 configuration



On 11/11/2019 6.47, Vinod Koul wrote:
> On 01-11-19, 10:41, Peter Ujfalusi wrote:
> 
>> --- /dev/null
>> +++ b/drivers/dma/ti/k3-psil.c
>> @@ -0,0 +1,97 @@
>> +// SPDX-License-Identifier: GPL-2.0
> 
> ...
> 
>> +extern struct psil_ep_map am654_ep_map;
>> +extern struct psil_ep_map j721e_ep_map;
>> +
>> +static DEFINE_MUTEX(ep_map_mutex);
>> +static struct psil_ep_map *soc_ep_map;
>> +
>> +struct psil_endpoint_config *psil_get_ep_config(u32 thread_id)
>> +{
>> +	int i;
>> +
>> +	mutex_lock(&ep_map_mutex);
>> +	if (!soc_ep_map) {
>> +		if (of_machine_is_compatible("ti,am654")) {
>> +			soc_ep_map = &am654_ep_map;
>> +		} else if (of_machine_is_compatible("ti,j721e")) {
>> +			soc_ep_map = &j721e_ep_map;
>> +		} else {
>> +			pr_err("PSIL: No compatible machine found for map\n");
>> +			return ERR_PTR(-ENOTSUPP);
>> +		}
>> +		pr_debug("%s: Using map for %s\n", __func__, soc_ep_map->name);
>> +	}
>> +	mutex_unlock(&ep_map_mutex);
>> +
>> +	if (thread_id & K3_PSIL_DST_THREAD_ID_OFFSET && soc_ep_map->dst) {
>> +		/* check in destination thread map */
>> +		for (i = 0; i < soc_ep_map->dst_count; i++) {
>> +			if (soc_ep_map->dst[i].thread_id == thread_id)
>> +				return &soc_ep_map->dst[i].ep_config;
>> +		}
>> +	}
>> +
>> +	thread_id &= ~K3_PSIL_DST_THREAD_ID_OFFSET;
>> +	if (soc_ep_map->src) {
>> +		for (i = 0; i < soc_ep_map->src_count; i++) {
>> +			if (soc_ep_map->src[i].thread_id == thread_id)
>> +				return &soc_ep_map->src[i].ep_config;
>> +		}
>> +	}
>> +
>> +	return ERR_PTR(-ENOENT);
>> +}
>> +EXPORT_SYMBOL(psil_get_ep_config);
> 
> This doesn't match the license of this module, we need it to be
> EXPORT_SYMBOL_GPL

Oops, will fix it.


- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ