Re: [PATCH] iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd()

2021-03-13 Thread Luca Coelho
On Sat, 2021-03-13 at 19:06 +0200, Kalle Valo wrote: > Luca Coelho writes: > > > On Sat, 2021-03-13 at 16:43 +0100, Jiri Kosina wrote: > > > On Sat, 13 Mar 2021, Kalle Valo wrote: > > > > > > > > > > From: Jiri Kosina > > > > >

Re: [PATCH] iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd()

2021-03-13 Thread Luca Coelho
On Sat, 2021-03-13 at 16:43 +0100, Jiri Kosina wrote: > On Sat, 13 Mar 2021, Kalle Valo wrote: > > > > > > From: Jiri Kosina > > > > > > > > > > It's possible for iwl_pcie_enqueue_hcmd() to be called with hard IRQs > > > > > disabled (e.g. from LED core). We can't enable BHs in such a > > > >

Re: [PATCH v2 00/29] [Set 1,2,3] Rid W=1 warnings in Wireless

2020-10-06 Thread Luca Coelho
On Tue, 2020-10-06 at 10:10 +0300, Kalle Valo wrote: > Lee Jones writes: > > > On Tue, 06 Oct 2020, Kalle Valo wrote: > > > > > Lee Jones writes: > > > > > > > On Thu, 10 Sep 2020, Lee Jones wrote: > > > > > > > > > This is a rebased/re-worked set of patches which have been > > > > > previous

Re: [PATCH] iwlwifi: mvm: Remove unused inline function iwl_mvm_tid_to_ac_queue

2020-06-10 Thread Luca Coelho
YueHaibing wrote: > commit cfbc6c4c5b91 ("iwlwifi: mvm: support mac80211 TXQs model") > left behind this, remove it. > > Signed-off-by: YueHaibing Patch applied to iwlwifi-next.git, thanks. f12694634153 iwlwifi: mvm: Remove unused inline function iwl_mvm_tid_to_ac_queue

Re: [PATCH 6/9] net: wireless: intel: fix wiki website url

2020-06-10 Thread Luca Coelho
Flavio Suligoi wrote: > In some Intel files, the wiki url is still the old > "wireless.kernel.org" instead of the new > "wireless.wiki.kernel.org" > > Signed-off-by: Flavio Suligoi Patch applied to iwlwifi-next.git, thanks. e00c6d8d491b net: wireless: intel: fix wiki website url

Re: [PATCH] iwlwifi: Replace zero-length array with flexible-array

2020-06-10 Thread Luca Coelho
"Gustavo A. R. Silva" wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo { > int

Re: [PATCH] iwlwifi: fix memory leaks in iwl_pcie_ctxt_info_gen3_init

2019-09-29 Thread Luca Coelho
On Fri, 2019-09-27 at 15:56 -0500, Navid Emamdoost wrote: > In iwl_pcie_ctxt_info_gen3_init there are cases that the allocated dma > memory is leaked in case of error. > DMA memories prph_scratch, prph_info, and ctxt_info_gen3 are allocated > and initialized to be later assigned to trans_pcie. But

Re: [PATCH] iwlwifi: dbg_ini: fix memory leak in alloc_sgtable

2019-09-29 Thread Luca Coelho
On Thu, 2019-09-12 at 23:23 -0500, Navid Emamdoost wrote: > In alloc_sgtable if alloc_page fails, the alocated table should be > released. > > Signed-off-by: Navid Emamdoost > --- > drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 1 + > 1 file changed, 1 insertion(+) Thanks, Navid! I have applied

Re: [PATCH] iwlwifi: fix building without CONFIG_THERMAL

2019-09-19 Thread Luca Coelho
On Thu, 2019-09-19 at 13:55 +0200, Arnd Bergmann wrote: > The iwl_mvm_send_temp_report_ths_cmd() function is now called without > CONFIG_THERMAL, but not defined: > > ERROR: "iwl_mvm_send_temp_report_ths_cmd" > [drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko] undefined! > > Move that function

Re: [PATCH] iwlwifi: mvm: Move static keyword to the front of declarations

2019-09-02 Thread Luca Coelho
On Sun, 2019-09-01 at 00:01 +0200, Krzysztof Wilczynski wrote: > Move the static keyword to the front of declarations of > he_if_types_ext_capa_sta and he_iftypes_ext_capa, and > resolve the following compiler warnings that can be seen > when building with warnings enabled (W=1): > > drivers/net/w

Re: [PATCH] iwlwifi: remove redundant assignment to variable bufsz

2019-08-22 Thread Luca Coelho
On Thu, 2019-08-01 at 17:44 +0100, Colin King wrote: > From: Colin Ian King > > The variable bufsz is being initialized with a value that is never > read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused value")

Re: PROBLEM: 5.3.0-rc* causes iwlwifi failure

2019-08-22 Thread Luca Coelho
On Thu, 2019-08-22 at 09:59 +0100, Chris Clayton wrote: > Thanks, Stuart. > > On 18/08/2019 11:55, Stuart Little wrote: > > On Sun, Aug 18, 2019 at 09:17:59AM +0100, Chris Clayton wrote: > > > > > > On 17/08/2019 22:44, Stuart Little wrote: > > > > After some private coaching from Serge Belyshev

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-08-20 Thread Luca Coelho
On Fri, 2019-08-09 at 22:00 +0300, Thomas Backlund wrote: > Den 06-08-2019 kl. 16:04, skrev Takashi Iwai: > > On Mon, 05 Aug 2019 14:03:55 +0200, > > Now we got a feedback from the latest linux-firmware (20190726) and > > surprising the result was negative. The dmesg after the cold boot is > > fou

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-08-05 Thread Luca Coelho
On Mon, 2019-08-05 at 13:10 +0300, Luca Coelho wrote: > On Mon, 2019-08-05 at 12:05 +0200, Takashi Iwai wrote: > > On Mon, 05 Aug 2019 11:53:33 +0200, > > Luca Coelho wrote: > > > On Mon, 2019-08-05 at 12:48 +0300, Luca Coelho wrote: > > > > On Sun, 2019-07-2

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-08-05 Thread Luca Coelho
On Mon, 2019-08-05 at 12:05 +0200, Takashi Iwai wrote: > On Mon, 05 Aug 2019 11:53:33 +0200, > Luca Coelho wrote: > > On Mon, 2019-08-05 at 12:48 +0300, Luca Coelho wrote: > > > On Sun, 2019-07-21 at 18:43 +0200, Takashi Iwai wrote: > > > > On Sat, 20 Jul 2019 22

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-08-05 Thread Luca Coelho
On Mon, 2019-08-05 at 12:48 +0300, Luca Coelho wrote: > On Sun, 2019-07-21 at 18:43 +0200, Takashi Iwai wrote: > > On Sat, 20 Jul 2019 22:49:33 +0200, > > Luca Coelho wrote: > > > On Sat, 2019-07-20 at 22:42 +0200, Takashi Iwai wrote: > > > > On Fri, 19 Jul

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-08-05 Thread Luca Coelho
On Sun, 2019-07-21 at 18:43 +0200, Takashi Iwai wrote: > On Sat, 20 Jul 2019 22:49:33 +0200, > Luca Coelho wrote: > > On Sat, 2019-07-20 at 22:42 +0200, Takashi Iwai wrote: > > > On Fri, 19 Jul 2019 20:07:46 +0200, > > > Takashi Iwai wrote: > > &g

Re: Regression with the latest iwlwifi-9260-*-46.ucode

2019-07-20 Thread Luca Coelho
On Sat, 2019-07-20 at 22:42 +0200, Takashi Iwai wrote: > On Fri, 19 Jul 2019 20:07:46 +0200, > Takashi Iwai wrote: > > On Fri, 19 Jul 2019 18:36:53 +0200, > > Luciano Coelho wrote: > > > Adding Dor. > > > > > > Hi Takashi, > > > > > > Do you have full logs of the crash? We can't see much from the

Re: [PATCH -next] iwlwifi: dbg: work around clang bug by marking debug strings static

2019-07-16 Thread Luca Coelho
On Tue, 2019-07-16 at 10:28 -0700, Nick Desaulniers wrote: > On Thu, Jul 11, 2019 at 7:15 PM Joe Perches wrote: > > On Thu, 2019-07-11 at 17:17 -0700, Nick Desaulniers wrote: > > > Commit r353569 in prerelease Clang-9 is producing a linkage failure: > > > > > > ld: drivers/net/wireless/intel/iwlw

Re: [PATCH] iwlwifi: fix warning iwl-trans.h is included more than once

2019-07-09 Thread Luca Coelho
On Sun, 2019-05-26 at 17:08 +0530, Hariprasad Kelam wrote: > remove duplication include of iwl-trans.h > > issue identified by includecheck > > Signed-off-by: Hariprasad Kelam > --- Thanks! I have applied this (with small modifications to the commit message) in our internal tree and it will rea

Re: [PATCH][next] iwlwifi: mvm: fix comparison of u32 variable with less than zero

2019-07-02 Thread Luca Coelho
On Mon, 2019-07-01 at 17:26 +0100, Colin King wrote: > From: Colin Ian King > > The comparison of the u32 variable wgds_tbl_idx with less than zero is > always going to be false because it is unsigned. Fix this by making > wgds_tbl_idx a plain signed int. > > Addresses-Coverity: ("Unsigned comp

[PATCH] iwlwifi: don't panic in error path on non-msix systems

2019-04-17 Thread Luca Coelho
the proper causes-register in each case. Reported-by: Michal Hocko Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/pcie/trans.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel

Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-05 Thread Luca Coelho
On Tue, 2019-03-05 at 13:11 +0200, Kalle Valo wrote: > Arnd Bergmann writes: > > > do_div() expects unsigned operands and otherwise triggers a warning > > like: > > > > drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:465:2: > > error: comparison of distinct pointer types ('typeof ((rtt_av

Re: [PATCH] iwlwifi: mvm: Use div64_s64 instead of do_div in iwl_mvm_debug_range_resp

2019-02-20 Thread Luca Coelho
On Tue, 2019-02-19 at 11:05 -0800, Nick Desaulniers wrote: > On Tue, Feb 19, 2019 at 10:21 AM Nathan Chancellor > wrote: > > Clang warns: > > > > drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:465:2: > > warning: > > comparison of distinct pointer types ('typeof ((rtt_avg)) *' (aka > > 'l

Re: linux-next: build warning after merge of the wireless-drivers-next tree

2019-01-30 Thread Luca Coelho
On Thu, 2019-01-31 at 10:46 +1100, Stephen Rothwell wrote: > Hi all, > > After merging the wireless-drivers-next tree, today's linux-next > build > (x86_64 allmodconfig) produced this warning: > > drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:195:13: warning: > 'iwl_mvm_add_rtap_sniffer_config' d

Re: [PATCH] net: wireless: prefix header search paths with $(srctree)/

2019-01-28 Thread Luca Coelho
tl818x/rtl8180/Makefile | 2 +- > > drivers/net/wireless/realtek/rtl818x/rtl8187/Makefile | 2 +- > > 7 files changed, 10 insertions(+), 12 deletions(-) > > Luca, is it ok if I take this to wireless-drivers-next even though it > touches iwlwifi makefiles? Sure, it's much easier like that. Acked-by: Luca Coelho -- Cheers, Luca.

Re: [PATCH] iwlwifi: fix false-positive maybe-uninitialized warning

2019-01-22 Thread Luca Coelho
On Mon, 2018-12-10 at 21:39 +0100, Arnd Bergmann wrote: > With CONFIG_NO_AUTO_INLINE, we run into a silly warning when > gcc fails to remember that n_profiles is constant across > the function call to iwl_mvm_sar_set_profile: > > drivers/net/wireless/intel/iwlwifi/mvm/fw.c: In function > 'iwl_mvm_

Re: linux-next: build warnings after merge of the wireless-drivers-next tree

2018-12-19 Thread Luca Coelho
On Wed, 2018-12-19 at 08:31 +, Grumbach, Emmanuel wrote: > > Stephen Rothwell writes: > > > > > On Fri, 30 Nov 2018 12:05:55 +1100 Stephen Rothwell > > wrote: > > > > After merging the wireless-drivers-next tree, today's linux-next > > > > build > > > > (x86_64 allmodconfig) produced these w

Re: [PATCH 07/33] iwlwifi: mvm: use match_string() helper

2018-05-21 Thread Luca Coelho
On Mon, 2018-05-21 at 19:57 +0800, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > > Cc: Kalle Valo > Cc: Intel Linux Wireless > Cc: Johannes Berg > Cc: Emmanuel Grumbach > Cc: linux-wirel...@vger.kern

Re: [PATCH][next] iwlwifi: mvm: remove division by size of sizeof(struct ieee80211_wmm_rule)

2018-04-17 Thread Luca Coelho
On Wed, 2018-04-11 at 14:05 +0100, Colin King wrote: > From: Colin Ian King > > The subtraction of two struct ieee80211_wmm_rule pointers leaves a > result > that is automatically scaled down by the size of the size of pointed- > to > type, hence the division by sizeof(struct ieee80211_wmm_rule)

Re: UBSAN: Undefined behaviour in drivers/net/wireless/intel/iwlwifi/mvm/utils.c:838:5

2017-12-21 Thread Luca Coelho
On Thu, 2017-12-21 at 11:49 +0100, Paul Menzel wrote: > Dear Kalle, > > > On 12/21/17 11:38, Kalle Valo wrote: > > Paul Menzel writes: > > > > > > http://pastebin.coelho.fi/7b624f474846da52.txt > > > > > > Thank you. The warning is gone now. Thank you. For the next time, > > > it’d > > > be gr

Re: UBSAN: Undefined behaviour in drivers/net/wireless/intel/iwlwifi/mvm/utils.c:838:5

2017-12-20 Thread Luca Coelho
On Wed, 2017-12-20 at 12:00 +0100, Paul Menzel wrote: > Dear Luca, > > > Am 18.12.2017 um 19:30 schrieb Luca Coelho: > > On Wed, 2017-12-13 at 16:32 +0200, Luciano Coelho wrote: > > > On Wed, 2017-12-13 at 14:25 +0100, Paul Menzel wrote: > > > > I enable

Re: UBSAN: Undefined behaviour in drivers/net/wireless/intel/iwlwifi/mvm/utils.c:838:5

2017-12-18 Thread Luca Coelho
On Wed, 2017-12-13 at 16:32 +0200, Luciano Coelho wrote: > On Wed, 2017-12-13 at 14:25 +0100, Paul Menzel wrote: > > Dear Linux folks, > > > > > > I enabled the undefined behavior sanitizer, and built Linus’ > > master > > branch under Ubuntu 17.10 with gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0. > > >

Re: [PATCH] drivers/wireless: iwlwifi/mvm: Convert timers to use timer_setup()

2017-10-24 Thread Luca Coelho
baid_data is unclear, so this adds a direct copy > of the > rcu_ptr passed to the original callback. It may be possible to > improve this > to just use baid_data->mvm->baid_map[baid_data->baid] instead. > > Cc: Johannes Berg > Cc: Emmanuel Grumbach > Cc: Luca Coel

Re: linux-next: manual merge of the wireless-drivers-next tree with the wireless-drivers tree

2017-10-12 Thread Luca Coelho
On Thu, 2017-10-12 at 19:59 +0100, Mark Brown wrote: > On Thu, Oct 12, 2017 at 09:50:51PM +0300, Luca Coelho wrote: > > On Thu, 2017-10-12 at 19:35 +0100, Mark Brown wrote: > > > With trees like this that don't coordinate with their fixes > > > branch > >

Re: linux-next: manual merge of the wireless-drivers-next tree with the wireless-drivers tree

2017-10-12 Thread Luca Coelho
On Thu, 2017-10-12 at 19:35 +0100, Mark Brown wrote: > On Thu, Oct 12, 2017 at 09:27:46PM +0300, Luciano Coelho wrote: > > On Thu, 2017-10-12 at 19:21 +0100, Mark Brown wrote: > > > I may have confused the trees when I was pasting things in, the > > > commits > > > are filled in by hand. > > > > A

Re: linux-next: manual merge of the wireless-drivers-next tree with the wireless-drivers tree

2017-10-12 Thread Luca Coelho
On Thu, 2017-10-12 at 18:25 +0100, Mark Brown wrote: > Hi all, > > Today's linux-next merge of the wireless-drivers-next tree got a > conflict in: > > drivers/net/wireless/intel/iwlwifi/iwl-config.h > > between commit: > >dd05f9aab4426f ("iwlwifi: pcie: dynamic Tx command queue size") >

Re: 4.14.0-rc3 iwlwifi: Hardware became unavailable during restart

2017-10-11 Thread Luca Coelho
On Tue, 2017-10-10 at 09:44 +0200, Seraphime Kirkovski wrote: > Hello, Hi Seraphime, > I've got this splat after a couple of suspend-resume cycles on my > HP-laptop. I haven't had the time to bisect or test other rcs for now. > Pasting some logs before the actual WARN_ON, as they may be relevant

[PATCH] iwlwifi: mvm: only send LEDS_CMD when the FW supports it

2017-09-07 Thread Luca Coelho
From: Luca Coelho The LEDS_CMD command is only supported in some newer FW versions (e.g. iwlwifi-8000C-31.ucode), so we can't send it to older versions (such as iwlwifi-8000C-27.ucode). To fix this, check for a new bit in the FW capabilities TLV that tells when the command is supported.

Re: [GIT] Networking

2017-09-06 Thread Luca Coelho
with version 27. Okay, I found the offending patch: commit 7089ae634c50544b29b31faf1a751e8765c8de3b Author: Johannes Berg AuthorDate: Wed Jun 28 16:19:49 2017 +0200 Commit: Luca Coelho CommitDate: Wed Aug 9 09:15:32 2017 +0300 iwlwifi: mvm: use firmware LED command where ap

Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc()

2017-09-04 Thread Luca Coelho
On Mon, 2017-09-04 at 13:43 +0200, Jiri Kosina wrote: > On Thu, 24 Aug 2017, Luca Coelho wrote: > > > > looks like a correct fix to me, so feel free to add > > > > > > Acked-by: Jiri Kosina > > > > > > I'll be able to provide my Tes

Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc()

2017-08-30 Thread Luca Coelho
On Wed, 2017-08-30 at 17:57 +0300, David Weinehall wrote: > On Tue, Aug 22, 2017 at 10:37:29AM +0300, Luca Coelho wrote: > > From: Luca Coelho > > > > Work queues cannot be allocated when a mutex is held because the mutex > > may be in use and that would make it sle

Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc()

2017-08-24 Thread Luca Coelho
On Thu, 2017-08-24 at 21:56 +0200, Jiri Kosina wrote: > On Thu, 24 Aug 2017, Luca Coelho wrote: > > > > Work queues cannot be allocated when a mutex is held because the mutex > > > may be in use and that would make it sleep. Doing so generates the > &g

Re: [PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc()

2017-08-23 Thread Luca Coelho
On Tue, 2017-08-22 at 10:37 +0300, Luca Coelho wrote: > From: Luca Coelho > > Work queues cannot be allocated when a mutex is held because the mutex > may be in use and that would make it sleep. Doing so generates the > following splat with 4.13+: >

[PATCH v2] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc()

2017-08-22 Thread Luca Coelho
From: Luca Coelho Work queues cannot be allocated when a mutex is held because the mutex may be in use and that would make it sleep. Doing so generates the following splat with 4.13+: [ 19.513298] == [ 19.513429] WARNING: possible

[PATCH] iwlwifi: pcie: move rx workqueue initialization to iwl_trans_pcie_alloc()

2017-08-22 Thread Luca Coelho
From: Luca Coelho Work queues cannot be allocated in when a mutex is held because the mutex may be in use and that would make it sleep. Doing so generates the following splat with 4.13+: [ 19.513298] == [ 19.513429] WARNING: possible

Re: [PATCH] iwlwifi: Demote messages about fw flags size to info

2017-08-01 Thread Luca Coelho
Hi João Paulo, On Tue, 2017-08-01 at 15:58 -0700, João Paulo Rechi Vita wrote: > Hello Luca, > > On Mon, Jul 24, 2017 at 4:01 AM, Coelho, Luciano > wrote: > > On Fri, 2017-07-21 at 07:51 -0700, João Paulo Rechi Vita wrote: > > (...) > > > > Currently these messages are presented to the user d

Re: [PATCH v2] iwlwifi: mvm: Fix a memory leak in an error handling path in 'iwl_mvm_sar_get_wgds_table()'

2017-07-19 Thread Luca Coelho
On Fri, 2017-07-14 at 12:06 +0200, Christophe JAILLET wrote: > We should free 'wgds.pointer' here as done a few lines above in another > error handling path. > It was allocated within 'acpi_evaluate_object()'. > > Signed-off-by: Christophe JAILLET > --- > v2: rebase after 7fe90e0e3d60 ("iwlwifi:

Re: [PATCH] iwlwifi: mvm: add const to thermal_cooling_device_ops structure

2017-06-29 Thread Luca Coelho
On Wed, 2017-06-28 at 14:49 +0300, Luca Coelho wrote: > On Wed, 2017-06-21 at 14:10 +0530, Bhumika Goyal wrote: > > Declare thermal_cooling_device_ops structure as const as it is only passed > > as an argument to the function thermal_cooling_device_register and this > > argu

Re: [PATCH] iwlwifi: mvm: fix iwl_mvm_sar_find_wifi_pkg corner case

2017-06-28 Thread Luca Coelho
On Tue, 2017-06-27 at 17:24 +0200, Arnd Bergmann wrote: > gcc warns about what it thinks is an uninitialized variable > access: > > drivers/net/wireless/intel/iwlwifi/mvm/fw.c: In function > 'iwl_mvm_sar_find_wifi_pkg.isra.14': > drivers/net/wireless/intel/iwlwifi/mvm/fw.c:1102:5: error: 'wifi_pk

Re: [PATCH] iwlwifi: mvm: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Luca Coelho
On Wed, 2017-06-21 at 14:10 +0530, Bhumika Goyal wrote: > Declare thermal_cooling_device_ops structure as const as it is only passed > as an argument to the function thermal_cooling_device_register and this > argument is of type const. So, declare the structure as const. > > Signed-off-by: Bhumika

Re: [PATCH] net: wireless: intel: iwlwifi: dvm: remove unused defines

2017-06-06 Thread Luca Coelho
On Wed, 2017-06-07 at 01:20 +0200, Seraphime Kirkovski wrote: > Those constants have been unused for quite some time now. > > Signed-off-by: Seraphime Kirkovski > --- > I've compile-tested it. Thanks. I've applied it to our internal tree and it will reach the mainline at some point. -- Cheers

Re: [PATCH v6 4/5] iwlwifi: convert to use driver data API

2017-04-28 Thread Luca Coelho
On Fri, 2017-04-28 at 02:56 +0200, Luis R. Rodriguez wrote: > On Mon, Apr 10, 2017 at 04:19:12PM +0300, Luca Coelho wrote: > > On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > > > The driver data API provides support for looking for firmware > > > from a spe

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-26 Thread Luca Coelho
On Thu, 2017-04-27 at 05:16 +0200, Luis R. Rodriguez wrote: > > > +int driver_data_request_sync(const char *name, > > > +    const struct driver_data_req_params *req_params, > > > +    struct device *device) > > > +{ > > > +   const struct firmware *driver_da

Re: [PATCH v6 2/5] firmware: add extensible driver data API

2017-04-26 Thread Luca Coelho
On Thu, 2017-04-27 at 05:16 +0200, Luis R. Rodriguez wrote: > > > @@ -1460,6 +1471,128 @@ void release_firmware(const struct firmware *fw) > > >   } > > >   EXPORT_SYMBOL(release_firmware); > > >   > > > +static int _driver_data_request_api(struct driver_data_params *params, > > > +   

Re: [PATCH v6 4/5] iwlwifi: convert to use driver data API

2017-04-10 Thread Luca Coelho
On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > The driver data API provides support for looking for firmware > from a specific set of API ranges, so just use that. Since we > free the firmware on the callback immediately after consuming it, > this also takes avantage of that feature.

Re: [PATCH v6 1/5] firmware: add extensible driver data params

2017-04-06 Thread Luca Coelho
On Wed, 2017-03-29 at 20:25 -0700, Luis R. Rodriguez wrote: > As the firmware API evolves we keep extending functions with more arguments. > Stop this nonsense by proving an extensible data structure which can be used > to represent both user parameters and private internal parameters. > > We intr

Re: Issues with FW with Intel 720 wifi card

2017-02-03 Thread Luca Coelho
Hi Bharat, On Fri, 2017-02-03 at 16:27 +, Bharat Kumar Gogada wrote: > Hi, > > Im using linux 4.6 kernel, I get following error when I do interface up. > > Here is the boot log. > [4.407681] iwlwifi :01:00.0: loaded firmware version 16.242414.0 > op_mode iwlmvm > [4.407742] iwl

Re: kernel 4.9 iwlwifi startup error

2017-01-10 Thread Luca Coelho
On Tue, 2017-01-10 at 09:21 +0100, Fabio Coatti wrote: > In data martedì 10 gennaio 2017 00:21:51 CET, Luca Coelho ha scritto: > > On Tue, 2017-01-03 at 13:42 +1100, Andrew Donnellan wrote: > > > On 02/01/17 21:12, Fabio Coatti wrote: > > > > Hi all, > > > &

Re: kernel 4.9 iwlwifi startup error

2017-01-09 Thread Luca Coelho
On Tue, 2017-01-03 at 07:41 -0800, Alexander Morozov wrote: > I have a similar problem on Gentoo. But in my case, it just can't load > firmware: "no suitable firmware found". I've tried to reinstall > firmware with no luck. Everything is ok with 4.8.6. This is a completely different issue. This m

Re: kernel 4.9 iwlwifi startup error

2017-01-09 Thread Luca Coelho
On Tue, 2017-01-03 at 13:42 +1100, Andrew Donnellan wrote: > On 02/01/17 21:12, Fabio Coatti wrote: > > Hi all, > > I'm using kernel 4.9 and maybe half of the times I boot my laptop I get the > > error reported below, and the wifi does not work. I have to remove iwlwifi > > (like > > modprobe -r i

Re: drivers/net/wireless/intel/iwlwifi/pcie/trans.c: 2 * suspicious code ?

2017-01-09 Thread Luca Coelho
On Fri, 2017-01-06 at 17:47 +, David Binderman wrote: > Hello there, Hi David, > 1. > > drivers/net/wireless/intel/iwlwifi/pcie/trans.c:2039:14: warning: decrement > of a boolean expression [-Wbool-operation] > > Source code is > >txq->block--; > > Maybe someone got a bool a

Re: Intel Wireless 7260 failed to work

2016-12-28 Thread Luca Coelho
On Wed, 2016-12-28 at 10:17 +0200, Emmanuel Grumbach wrote: > On Wed, Dec 28, 2016 at 10:10 AM, Peter Xu wrote: > > On Wed, Dec 28, 2016 at 09:27:15AM +0200, Luca Coelho wrote: > > > > [...] > > > > > > > > Is this a known issue? Please let me k

Re: Intel Wireless 7260 failed to work

2016-12-27 Thread Luca Coelho
On Wed, 2016-12-28 at 11:59 +0800, Peter Xu wrote: > On Tue, Dec 27, 2016 at 09:46:55PM +0200, Kalle Valo wrote: > > Peter Xu writes: > > > > > Looks like latest Linux master (4.10-rc1, 7ce7d89f) cannot work well > > > with my wireless card, which is: > > > > > > Intel Corporation Wireless 726

Re: [PATCH 5/8] linux: drop __bitwise__ everywhere

2016-12-19 Thread Luca Coelho
-file.h | 4 ++-- For drivers/net/wireless/intel/iwlwifi/iwl-fw-file.h: Acked-by: Luca Coelho -- Luca.

Re: [PATCH 8/8] Makefile: drop -D__CHECK_ENDIAN__ from cflags

2016-12-19 Thread Luca Coelho
> drivers/net/wireless/intel/iwlwifi/Makefile | 2 +- > drivers/net/wireless/intel/iwlwifi/dvm/Makefile | 2 +- > drivers/net/wireless/intel/iwlwifi/mvm/Makefile | 2 +- For the drivers/net/wireless/intel/iwlwifi/ part: Acked-by: Luca Coelho -- Luca.

Re: [linuxwifi] [PATCH 1/2] iwlwifi: fix MODULE_FIRMWARE for 6030

2016-11-11 Thread Luca Coelho
Hi Jürg, On Mon, 2016-10-10 at 18:30 +0200, Jürg Billeter wrote: > IWL6000G2B_UCODE_API_MAX is not defined. ucode_api_max of > IWL_DEVICE_6030 uses IWL6000G2_UCODE_API_MAX. Use this also for > MODULE_FIRMWARE. > > Fixes: 9d9b21d1b616 ("iwlwifi: remove IWL_*_UCODE_API_OK") > Signed-off-by: Jürg Bi

Re: linux-4.9-rc1/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1561: poor error checking ?

2016-10-17 Thread Luca Coelho
Hi David, On Mon, 2016-10-17 at 07:40 +, David Binderman wrote: > Hello there, > > linux-4.9-rc1/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c:1561]: (style) > Checking if unsigned variable 'len' is less than zero. > > Source code is > > len = min((size_t)le32_to_cpu(rsp->len) << 2,

Re: [PATCH] iwlwifi: pcie: fix SPLC structure parsing

2016-10-13 Thread Luca Coelho
On Thu, 2016-10-13 at 14:55 +0200, Paul Bolle wrote: > On Thu, 2016-10-13 at 15:44 +0300, Luca Coelho wrote: > >  Even though there is apparently something wrong with this part of the > > ACPI table on you laptop, since it doesn't match our specifications. > >  In any

Re: [PATCH] iwlwifi: pcie: fix SPLC structure parsing

2016-10-13 Thread Luca Coelho
On Thu, 2016-10-13 at 08:56 -0500, Chris Rorvick wrote: > Hi Luca, > > > On Thu, 2016-10-13 at 13:21 +0300, Luca Coelho wrote: > > Could you please give this a spin? I have tested it with some handmade > > ACPI tables in QEMU and it seems to work fine now. > > >

Re: [PATCH] iwlwifi: pcie: fix SPLC structure parsing

2016-10-13 Thread Luca Coelho
On Thu, 2016-10-13 at 14:36 +0200, Paul Bolle wrote: > On Thu, 2016-10-13 at 14:30 +0300, Luca Coelho wrote: > > I forgot to say... could you load the iwlwifi module with debug=0x01 > > (module parameter), so we can see the messages the driver is printing > > when it

Re: [PATCH] iwlwifi: pcie: fix SPLC structure parsing

2016-10-13 Thread Luca Coelho
On Thu, 2016-10-13 at 13:27 +0200, Paul Bolle wrote: > Luca, > > On Thu, 2016-10-13 at 13:21 +0300, Luca Coelho wrote: > > Could you please give this a spin? I have tested it with some handmade > > ACPI tables in QEMU and it seems to work fine now. > > > Tested

[PATCH] iwlwifi: pcie: fix SPLC structure parsing

2016-10-13 Thread Luca Coelho
From: Luca Coelho The SPLC data parsing is too restrictive and was not trying find the correct element for WiFi. This causes problems with some BIOSes where the SPLC method exists, but doesn't have a WiFi entry on the first element of the list. The domain type values are also inco

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-13 Thread Luca Coelho
> On Wed, 2016-10-12 at 15:24 +0300, Luca Coelho wrote: > > Hi Chris, > > On Tue, 2016-10-11 at 09:09 -0500, Chris Rorvick wrote: > > > On Tue, Oct 11, 2016 at 5:11 AM, Paul Bolle wrote: > > > > > This is not coming from the NIC itself, but from the platfor

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-12 Thread Luca Coelho
On Wed, 2016-10-12 at 14:36 +0200, Paul Bolle wrote: > On Wed, 2016-10-12 at 15:24 +0300, Luca Coelho wrote: > > Okay... Actually this is a structure in the BIOS and the actual method > > we call is SPLC.  The SPLC method may return one item from this table, > > or somethi

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-12 Thread Luca Coelho
On Tue, 2016-10-11 at 23:32 -0500, Chris Rorvick wrote: > On Tue, Oct 11, 2016 at 5:11 AM, Paul Bolle wrote: > > For what it's worth, on my machine I have twenty (!) SPLX entries, all > > reading: > > Name (SPLX, Package (0x04) > > { > > Zero, > > Package (0x03) > >

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-12 Thread Luca Coelho
Hi Chris, On Tue, 2016-10-11 at 09:09 -0500, Chris Rorvick wrote: > On Tue, Oct 11, 2016 at 5:11 AM, Paul Bolle wrote: > > > This is not coming from the NIC itself, but from the platform's ACPI > > > tables. Can you tell us which platform you are using? > > > Interesting. I'm running a Dell XP

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-11 Thread Luca Coelho
Hi Paul, On Tue, 2016-10-11 at 12:11 +0200, Paul Bolle wrote: > On Mon, 2016-10-10 at 17:02 +0300, Luca Coelho wrote: > > On Mon, 2016-10-10 at 02:19 -0500, Chris Rorvick wrote: > > This is not coming from the NIC itself, but from the platform's ACPI > > tables.  Can you

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-10 Thread Luca Coelho
Hi, On Mon, 2016-10-10 at 02:19 -0500, Chris Rorvick wrote: > Commit bcb079a14d75 ("iwlwifi: pcie: retrieve and parse ACPI power > limitations") looks for a specific structure in the ACPI tables for > setting the default power limit. The data returned for at least some > dual band chipsets is not

Re: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded

2016-07-13 Thread Luca Coelho
On Wed, 2016-07-13 at 09:50 +0300, Kalle Valo wrote: > Prarit Bhargava writes: > > > > We implement thermal zone because we do support it, but the > > > problem is > > > that we need the firmware to be loaded for that. So you can argue > > > that > > > we should register *later* when the firmware

Re: [PATCH] iwlwifi: add missing type declaration

2016-07-12 Thread Luca Coelho
> > The easiest workaround is to just declare 'struct device' before its > first use, > rather than including the entire header file. > > Signed-off-by: Arnd Bergmann > Fixes: 21cb3222fe56 ("iwlwifi: decouple PCIe transport from > mac80211") > --- Acked-by: Luca Coelho Agree with Kalle that he will take this directly to wireless-drivers- next. -- Cheers, Luca.

Re: [PATCH] iwlwifi: Remove unused array 'iwlagn_loose_lookup'

2016-06-06 Thread Luca Coelho
On Fri, 2016-06-03 at 14:39 -0700, Guenter Roeck wrote: > gcc-6 reports the following error if -Werror=unused-const-variable > is enabled. > > drivers/net/wireless/intel/iwlwifi/dvm/lib.c:210:21: error: > 'iwlagn_loose_lookup' defined but not used > > Signed-off-by: Guenter Roeck > --- Th

[PATCH] iwlwifi: mvm: fix merge damage in tx.c

2016-05-18 Thread Luca Coelho
From: Luca Coelho During the merge in commit 909b27f70643 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net"), there was a small merge damage where one instance of info was not converted into skb_info. Fix this. Signed-off-by: Luca Coelho --- drivers/net/wireless/int

Re: [PATCH] iwlwifi: Deinline iwl_write8/write32/read32()

2015-10-05 Thread Luca Coelho
Hi Denys, On Thu, 2015-09-24 at 16:58 +0200, Denys Vlasenko wrote: > With this .config: http://busybox.net/~vda/kernel_config_ALLYES_Os, > after deinlining these functions have sizes and callsite counts > as follows: > > iwl_write8: 315 bytes, 3 calls > iwl_write32: 296 bytes, 90 calls > iwl_read

Re: [PATCH] Input: ALPS - fix max coordinates for v5 and v7 protocols

2015-03-30 Thread Luca Coelho
On Sat, 2015-03-21 at 20:36 -0700, Dmitry Torokhov wrote: > Commit 3296f71cd2fde7a2ad52e66a27eae419f6328066 ("Input: ALPS - consolidate > setting protocol parameters") inadvertently moved call to > alps_dolphin_get_device_area() from v5 to v7 protocol, causing both > protocols report incorrect maxi

Re: [PATCH] compiler.h: don't use temporary variable in __compiletime_assert()

2014-05-08 Thread Luca Coelho
On Thu, 2014-05-08 at 08:31 +0200, Johannes Berg wrote: > From: Johannes Berg > > Usually, BUG_ON and friends aren't even evaluated in sparse, but > recently compiletime_assert_atomic_type() was added, and that now > results in a sparse warning every time it is used. > > The reason turns out to

Re: [PATCH] Drivers:net:wireless:ti:wl1251: Fixed Sparse invalid assignment warning

2014-03-06 Thread Luca Coelho
On Tue, 2014-03-04 at 00:18 -0800, Surendra Patil wrote: > Sparse warns about invalid assignment in > drivers/net/wireless/ti/wl1251/cmd.c:451:42: warning: invalid assignment: |= > drivers/net/wireless/ti/wl1251/cmd.c:451:42:left side has type restricted > __le16 > drivers/net/wireless/ti/wl12

Re: [PATCH v4 0/8] wilink: add device tree support

2014-02-28 Thread Luca Coelho
On Fri, 2014-02-28 at 14:29 +0200, Luca Coelho wrote: > On Fri, 2014-02-28 at 08:26 +0100, Yegor Yefremov wrote: > > On Tue, Jul 30, 2013 at 3:04 PM, Luciano Coelho wrote: > > > Hi, > > > > > > This patch series adds device tree support to the wlcore_sdio dr

Re: [PATCH v4 0/8] wilink: add device tree support

2014-02-28 Thread Luca Coelho
On Fri, 2014-02-28 at 08:26 +0100, Yegor Yefremov wrote: > On Tue, Jul 30, 2013 at 3:04 PM, Luciano Coelho wrote: > > Hi, > > > > This patch series adds device tree support to the wlcore_sdio driver, > > which is used by WiLink6, WiLink7 and WiLink8. > > > > The first patches do some clean-up to m

Re: [PATCH] ieee80211: Print human-readable disassoc/deauth reason codes

2014-02-07 Thread Luca Coelho
On Fri, 2014-02-07 at 09:46 -0600, Larry Finger wrote: > On 02/07/2014 06:53 AM, Kalle Valo wrote: > > Johannes Berg writes: > > > >> On Wed, 2014-02-05 at 19:44 -0600, Calvin Owens wrote: > >>> Create a function to return a descriptive string for each reason code, > >>> and print that instead of

Re: [PATCH] clk: add flags to distinguish xtal clocks

2013-11-12 Thread Luca Coelho
On Mon, 2013-11-11 at 21:59 +0100, Maxime Ripard wrote: > Hi Luca, > > On Mon, Nov 11, 2013 at 09:50:56PM +0200, Luca Coelho wrote: > > On Mon, 2013-11-11 at 13:42 -0600, Felipe Balbi wrote: > > > > > + if (of_property_read_bool(node, "clock-xt

Re: [PATCH] clk: add flags to distinguish xtal clocks

2013-11-11 Thread Luca Coelho
On Mon, 2013-11-11 at 13:42 -0600, Felipe Balbi wrote: > Hi, > > On Sun, Nov 10, 2013 at 12:37:16PM +0100, Maxime Ripard wrote: > > Hi Felipe, > > > > On Fri, Nov 08, 2013 at 12:00:48PM -0600, Felipe Balbi wrote: > > > From: Luciano Coelho > > > > > > Add a flag that indicate whether the clock

Re: [PATCH] clk: add flags to distinguish xtal clocks

2013-11-08 Thread Luca Coelho
Hi Felipe, On Fri, 2013-11-08 at 12:00 -0600, Felipe Balbi wrote: > From: Luciano Coelho > > Add a flag that indicate whether the clock is a crystal or not. > > Additionally, parse a new device tree binding in clk-fixed-rate to set > this flag. > > If clock-xtal isn't set, the clock framework

Re: [PATCH 03/16] wl1251: add sysfs interface for bluetooth coexistence mode configuration

2013-10-29 Thread Luca Coelho
On Mon, 2013-10-28 at 23:39 +, Ben Hutchings wrote: > On Sat, 2013-10-26 at 22:34 +0200, Pali Rohár wrote: > > From: David Gnedt > > > > Port the bt_coex_mode sysfs interface from wl1251 driver version included > > in the Maemo Fremantle kernel to allow bt-coexistence mode configuration. > >

Re: [RFC] clk: add flags to distinguish xtal clocks

2013-10-23 Thread Luca Coelho
On Wed, 2013-10-23 at 02:24 -0700, Mike Turquette wrote: > Quoting Luca Coelho (2013-10-16 03:24:27) > > Hi, > > > > Sorry for the delayed response. > > > > On Tue, 2013-10-08 at 10:27 -0500, Felipe Balbi wrote: > > > Fixing Luca's address since

Re: [RFC] clk: add flags to distinguish xtal clocks

2013-10-16 Thread Luca Coelho
Hi, Sorry for the delayed response. On Tue, 2013-10-08 at 10:27 -0500, Felipe Balbi wrote: > Fixing Luca's address since he left TI Thanks, Felipe! I wouldn't have seen this otherwise. > On Mon, Oct 07, 2013 at 12:44:24AM -0700, Mike Turquette wrote: > > Quoting Luciano Coelho (2013-07-29 06:5

Re: [GIT PULL] firmware: wl1251 firmware binary

2013-10-04 Thread Luca Coelho
On Fri, 2013-10-04 at 10:32 -0500, Felipe Balbi wrote: > diff --git a/LICENCE.wl1251 b/LICENCE.wl1251 > new file mode 100644 > index 000..bd0f5f1 > --- /dev/null > +++ b/LICENCE.wl1251 > @@ -0,0 +1,59 @@ > +Copyright (c) 2000 – 2013 Texas Instruments Incorporated > + > +All rights reserved not

Re: [PATCH] net: wireless: wl1251: update firmware path

2013-10-03 Thread Luca Coelho
On Wed, 2013-10-02 at 08:00 -0500, Felipe Balbi wrote: > TI firmwares are located under ti-connectivity > directory. Update path to make sure driver can > find and load firmware blob. > > Signed-off-by: Felipe Balbi > --- Applied, thanks Felipe! -- Luca. -- To unsubscribe from this list: send

Re: [GIT PULL] firmware: wl1251 firmware binary

2013-10-03 Thread Luca Coelho
Hi Felipe, On Wed, 2013-10-02 at 07:55 -0500, Felipe Balbi wrote: > Hi, > > here's a pull request for wl4 firmware. I'll send a patch for wl1251 > driver updating firmware load path. > > The following changes since commit b8ac7c7e27dcd13fa3c843aaf62457e9c57ea4db: > > linux-firmware: Add Broca

Re: using mmc2 on panda [was: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet]

2013-10-02 Thread Luca Coelho
On Wed, 2013-10-02 at 12:20 +0200, Arend van Spriel wrote: > On 10/01/2013 01:29 PM, Luca Coelho wrote: > > Hi, > > > > On Tue, 2013-10-01 at 12:53 +0200, Arend van Spriel wrote: > >> On 10/01/2013 11:53 AM, Roger Quadros wrote: > >>> On 10/01/2013 12:4

  1   2   >