<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/net/wireless/ath, branch dev-4.17</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.17</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.17'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2018-08-03T05:48:00+00:00</updated>
<entry>
<title>ath10k: search all IEs for variant before falling back</title>
<updated>2018-08-03T05:48:00+00:00</updated>
<author>
<name>Thomas Hebb</name>
<email>tommyhebb@gmail.com</email>
</author>
<published>2018-04-13T14:40:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=2435709952b4718565c081a2f50d5d161efb87bb'/>
<id>urn:sha1:2435709952b4718565c081a2f50d5d161efb87bb</id>
<content type='text'>
[ Upstream commit c8489668065a283d3027e86e877b103a87f99d22 ]

commit f2593cb1b291 ("ath10k: Search SMBIOS for OEM board file
extension") added a feature to ath10k that allows Board Data File
(BDF) conflicts between multiple devices that use the same device IDs
but have different calibration requirements to be resolved by allowing
a "variant" string to be stored in SMBIOS [and later device tree, added
by commit d06f26c5c8a4 ("ath10k: search DT for qcom,ath10k-calibration-
variant")] that gets appended to the ID stored in board-2.bin.

This original patch had a regression, however. Namely that devices with
a variant present in SMBIOS that didn't need custom BDFs could no longer
find the default BDF, which has no variant appended. The patch was
reverted and re-applied with a fix for this issue in commit 1657b8f84ed9
("search SMBIOS for OEM board file extension").

But the fix to fall back to a default BDF introduced another issue: the
driver currently parses IEs in board-2.bin one by one, and for each one
it first checks to see if it matches the ID with the variant appended.
If it doesn't, it checks to see if it matches the "fallback" ID with no
variant. If a matching BDF is found at any point during this search, the
search is terminated and that BDF is used. The issue is that it's very
possible (and is currently the case for board-2.bin files present in the
ath10k-firmware repository) for the default BDF to occur in an earlier
IE than the variant-specific BDF. In this case, the current code will
happily choose the default BDF even though a better-matching BDF is
present later in the file.

This patch fixes the issue by first searching the entire file for the ID
with variant, and searching for the fallback ID only if that search
fails. It also includes some code cleanup in the area, as
ath10k_core_fetch_board_data_api_n() no longer does its own string
mangling to remove the variant from an ID, instead leaving that job to a
new flag passed to ath10k_core_create_board_name().

I've tested this patch on a QCA4019 and verified that the driver behaves
correctly for 1) both fallback and variant BDFs present, 2) only fallback
BDF present, and 3) no matching BDFs present.

Fixes: 1657b8f84ed9 ("ath10k: search SMBIOS for OEM board file extension")
Signed-off-by: Thomas Hebb &lt;tommyhebb@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath10k: fix kernel panic while reading tpc_stats</title>
<updated>2018-08-03T05:47:58+00:00</updated>
<author>
<name>Tamizh Chelvam</name>
<email>tamizhr@codeaurora.org</email>
</author>
<published>2018-04-25T08:36:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a4f84c17f04e5d112ebba17b3ebce8f407b77d87'/>
<id>urn:sha1:a4f84c17f04e5d112ebba17b3ebce8f407b77d87</id>
<content type='text'>
[ Upstream commit 4b190675ad06f5a6ecbeef0b01890c5fb372e3eb ]

When attempt to read tpc_stats for the chipsets which support
more than 3 tx chain will trigger kernel panic(kernel stack is corrupted)
due to writing values on rate_code array out of range.
This patch changes the array size depends on the WMI_TPC_TX_N_CHAIN and
added check to avoid write values on the array if the num tx chain
get in tpc config event is greater than WMI_TPC_TX_N_CHAIN.

Tested on QCA9984 with firmware-5.bin_10.4-3.5.3-00057

Kernel panic log :

[  323.510944] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: bf90c654
[  323.510944]
[  323.524390] CPU: 0 PID: 1908 Comm: cat Not tainted 3.14.77 #31
[  323.530224] [&lt;c021db48&gt;] (unwind_backtrace) from [&lt;c021ac08&gt;] (show_stack+0x10/0x14)
[  323.537941] [&lt;c021ac08&gt;] (show_stack) from [&lt;c03c53c0&gt;] (dump_stack+0x80/0xa0)
[  323.545146] [&lt;c03c53c0&gt;] (dump_stack) from [&lt;c022e4ac&gt;] (panic+0x84/0x1e4)
[  323.552000] [&lt;c022e4ac&gt;] (panic) from [&lt;c022e61c&gt;] (__stack_chk_fail+0x10/0x14)
[  323.559350] [&lt;c022e61c&gt;] (__stack_chk_fail) from [&lt;bf90c654&gt;] (ath10k_wmi_event_pdev_tpc_config+0x424/0x438 [ath10k_core])
[  323.570471] [&lt;bf90c654&gt;] (ath10k_wmi_event_pdev_tpc_config [ath10k_core]) from [&lt;bf90d800&gt;] (ath10k_wmi_10_4_op_rx+0x2f0/0x39c [ath10k_core])
[  323.583047] [&lt;bf90d800&gt;] (ath10k_wmi_10_4_op_rx [ath10k_core]) from [&lt;bf8fcc18&gt;] (ath10k_htc_rx_completion_handler+0x170/0x1a0 [ath10k_core])
[  323.595702] [&lt;bf8fcc18&gt;] (ath10k_htc_rx_completion_handler [ath10k_core]) from [&lt;bf961f44&gt;] (ath10k_pci_hif_send_complete_check+0x1f0/0x220 [ath10k_pci])
[  323.609421] [&lt;bf961f44&gt;] (ath10k_pci_hif_send_complete_check [ath10k_pci]) from [&lt;bf96562c&gt;] (ath10k_ce_per_engine_service+0x74/0xc4 [ath10k_pci])
[  323.622490] [&lt;bf96562c&gt;] (ath10k_ce_per_engine_service [ath10k_pci]) from [&lt;bf9656f0&gt;] (ath10k_ce_per_engine_service_any+0x74/0x80 [ath10k_pci])
[  323.635423] [&lt;bf9656f0&gt;] (ath10k_ce_per_engine_service_any [ath10k_pci]) from [&lt;bf96365c&gt;] (ath10k_pci_napi_poll+0x44/0xe8 [ath10k_pci])
[  323.647665] [&lt;bf96365c&gt;] (ath10k_pci_napi_poll [ath10k_pci]) from [&lt;c0599994&gt;] (net_rx_action+0xac/0x160)
[  323.657208] [&lt;c0599994&gt;] (net_rx_action) from [&lt;c02324a4&gt;] (__do_softirq+0x104/0x294)
[  323.665017] [&lt;c02324a4&gt;] (__do_softirq) from [&lt;c0232920&gt;] (irq_exit+0x9c/0x11c)
[  323.672314] [&lt;c0232920&gt;] (irq_exit) from [&lt;c0217fc0&gt;] (handle_IRQ+0x6c/0x90)
[  323.679341] [&lt;c0217fc0&gt;] (handle_IRQ) from [&lt;c02084e0&gt;] (gic_handle_irq+0x3c/0x60)
[  323.686893] [&lt;c02084e0&gt;] (gic_handle_irq) from [&lt;c02095c0&gt;] (__irq_svc+0x40/0x70)
[  323.694349] Exception stack(0xdd489c58 to 0xdd489ca0)
[  323.699384] 9c40:                                                       00000000 a0000013
[  323.707547] 9c60: 00000000 dc4bce40 60000013 ddc1d800 dd488000 00000990 00000000 c085c800
[  323.715707] 9c80: 00000000 dd489d44 0000092d dd489ca0 c026e664 c026e668 60000013 ffffffff
[  323.723877] [&lt;c02095c0&gt;] (__irq_svc) from [&lt;c026e668&gt;] (rcu_note_context_switch+0x170/0x184)
[  323.732298] [&lt;c026e668&gt;] (rcu_note_context_switch) from [&lt;c020e928&gt;] (__schedule+0x50/0x4d4)
[  323.740716] [&lt;c020e928&gt;] (__schedule) from [&lt;c020e490&gt;] (schedule_timeout+0x148/0x178)
[  323.748611] [&lt;c020e490&gt;] (schedule_timeout) from [&lt;c020f804&gt;] (wait_for_common+0x114/0x154)
[  323.756972] [&lt;c020f804&gt;] (wait_for_common) from [&lt;bf8f6ef0&gt;] (ath10k_tpc_stats_open+0xc8/0x340 [ath10k_core])
[  323.766873] [&lt;bf8f6ef0&gt;] (ath10k_tpc_stats_open [ath10k_core]) from [&lt;c02bb598&gt;] (do_dentry_open+0x1ac/0x274)
[  323.776741] [&lt;c02bb598&gt;] (do_dentry_open) from [&lt;c02c838c&gt;] (do_last+0x8c0/0xb08)
[  323.784201] [&lt;c02c838c&gt;] (do_last) from [&lt;c02c87e4&gt;] (path_openat+0x210/0x598)
[  323.791408] [&lt;c02c87e4&gt;] (path_openat) from [&lt;c02c9d1c&gt;] (do_filp_open+0x2c/0x78)
[  323.798873] [&lt;c02c9d1c&gt;] (do_filp_open) from [&lt;c02bc85c&gt;] (do_sys_open+0x114/0x1b4)
[  323.806509] [&lt;c02bc85c&gt;] (do_sys_open) from [&lt;c0208c80&gt;] (ret_fast_syscall+0x0/0x44)
[  323.814241] CPU1: stopping
[  323.816927] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.14.77 #31
[  323.823008] [&lt;c021db48&gt;] (unwind_backtrace) from [&lt;c021ac08&gt;] (show_stack+0x10/0x14)
[  323.830731] [&lt;c021ac08&gt;] (show_stack) from [&lt;c03c53c0&gt;] (dump_stack+0x80/0xa0)
[  323.837934] [&lt;c03c53c0&gt;] (dump_stack) from [&lt;c021cfac&gt;] (handle_IPI+0xb8/0x140)
[  323.845224] [&lt;c021cfac&gt;] (handle_IPI) from [&lt;c02084fc&gt;] (gic_handle_irq+0x58/0x60)
[  323.852774] [&lt;c02084fc&gt;] (gic_handle_irq) from [&lt;c02095c0&gt;] (__irq_svc+0x40/0x70)
[  323.860233] Exception stack(0xdd499fa0 to 0xdd499fe8)
[  323.865273] 9fa0: ffffffed 00000000 1d3c9000 00000000 dd498000 dd498030 10c0387d c08b62c8
[  323.873432] 9fc0: 4220406a 512f04d0 00000000 00000000 00000001 dd499fe8 c021838c c0218390
[  323.881588] 9fe0: 60000013 ffffffff
[  323.885070] [&lt;c02095c0&gt;] (__irq_svc) from [&lt;c0218390&gt;] (arch_cpu_idle+0x30/0x50)
[  323.892454] [&lt;c0218390&gt;] (arch_cpu_idle) from [&lt;c026500c&gt;] (cpu_startup_entry+0xa4/0x108)
[  323.900690] [&lt;c026500c&gt;] (cpu_startup_entry) from [&lt;422085a4&gt;] (0x422085a4)

Signed-off-by: Tamizh chelvam &lt;tamizhr@codeaurora.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for Bahamas</title>
<updated>2018-08-03T05:47:45+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:09:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=90212b23abfbde2fdd5bd564faf511cd654e43c5'/>
<id>urn:sha1:90212b23abfbde2fdd5bd564faf511cd654e43c5</id>
<content type='text'>
[ Upstream commit 699e2302c286a14afe7b7394151ce6c4e1790cc1 ]

The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
and to select the correct conformance test limits (CTL) for a country. If
the country isn't available and it is still programmed in the EEPROM then
it will cause an error and stop the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this country are:

* 2.4GHz: ETSI
* 5GHz: FCC

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for Bermuda</title>
<updated>2018-08-03T05:47:45+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:09:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=f95f6a05616a311b926ffff249fecf638d79c3f1'/>
<id>urn:sha1:f95f6a05616a311b926ffff249fecf638d79c3f1</id>
<content type='text'>
[ Upstream commit 9c790f2d234f65697e3b0948adbfdf36dbe63dd7 ]

The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
and to select the correct conformance test limits (CTL) for a country. If
the country isn't available and it is still programmed in the EEPROM then
it will cause an error and stop the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this country are:

* 2.4GHz: FCC
* 5GHz: FCC

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for Serbia</title>
<updated>2018-08-03T05:47:45+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:10:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=0bce8a8c2032752d5243270ab30acc9dfaf63038'/>
<id>urn:sha1:0bce8a8c2032752d5243270ab30acc9dfaf63038</id>
<content type='text'>
[ Upstream commit 2a3169a54bb53717928392a04fb84deb765b51f1 ]

The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
and to select the correct conformance test limits (CTL) for a country. If
the country isn't available and it is still programmed in the EEPROM then
it will cause an error and stop the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this country are:

* 2.4GHz: ETSI
* 5GHz: ETSI

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for Tanzania</title>
<updated>2018-08-03T05:47:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:10:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=decbb5cdd6b95a12e67679033ef4076a7c20322e'/>
<id>urn:sha1:decbb5cdd6b95a12e67679033ef4076a7c20322e</id>
<content type='text'>
[ Upstream commit 667ddac5745fb9fddfe8f7fd2523070f50bd4442 ]

The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
and to select the correct conformance test limits (CTL) for a country. If
the country isn't available and it is still programmed in the EEPROM then
it will cause an error and stop the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this country are:

* 2.4GHz: ETSI
* 5GHz: FCC

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for Uganda</title>
<updated>2018-08-03T05:47:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:10:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=097287cd620c5650bd3f7898c5ac9bd9f57ef695'/>
<id>urn:sha1:097287cd620c5650bd3f7898c5ac9bd9f57ef695</id>
<content type='text'>
[ Upstream commit 1ea3986ad2bc72081c69f3fbc1e5e0eeb3c44f17 ]

The country code is used by the ath to detect the ISO 3166-1 alpha-2 name
and to select the correct conformance test limits (CTL) for a country. If
the country isn't available and it is still programmed in the EEPROM then
it will cause an error and stop the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this country are:

* 2.4GHz: ETSI
* 5GHz: FCC

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for APL2_FCCA</title>
<updated>2018-08-03T05:47:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:11:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=e2480c6992104d6be139e0b3fc24a5ebde485232'/>
<id>urn:sha1:e2480c6992104d6be139e0b3fc24a5ebde485232</id>
<content type='text'>
[ Upstream commit 4f183687e3fad3ce0e06e38976cad81bc4541990 ]

The regdomain code is used to select the correct the correct conformance
test limits (CTL) for a country. If the regdomain code isn't available and
it is still programmed in the EEPROM then it will cause an error and stop
the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this regdomain code are:

* 2.4GHz: FCC
* 5GHz: FCC

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for APL13_WORLD</title>
<updated>2018-08-03T05:47:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:11:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=11d13f9a1d1061701c444cb9a4d0b5e3517809e6'/>
<id>urn:sha1:11d13f9a1d1061701c444cb9a4d0b5e3517809e6</id>
<content type='text'>
[ Upstream commit 9ba8df0c52b3e6baa436374b429d3d73bd09a320 ]

The regdomain code is used to select the correct the correct conformance
test limits (CTL) for a country. If the regdomain code isn't available and
it is still programmed in the EEPROM then it will cause an error and stop
the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this regdomain code are:

* 2.4GHz: ETSI
* 5GHz: ETSI

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ath: Add regulatory mapping for ETSI8_WORLD</title>
<updated>2018-08-03T05:47:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven.eckelmann@openmesh.com</email>
</author>
<published>2018-05-23T08:11:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=cb59856a151faeb5c3e38a8b65d7a895b67e56cc'/>
<id>urn:sha1:cb59856a151faeb5c3e38a8b65d7a895b67e56cc</id>
<content type='text'>
[ Upstream commit 45faf6e096da8bb80e1ddf8c08a26a9601d9469e ]

The regdomain code is used to select the correct the correct conformance
test limits (CTL) for a country. If the regdomain code isn't available and
it is still programmed in the EEPROM then it will cause an error and stop
the initialization with:

  Invalid EEPROM contents

The current CTL mappings for this regdomain code are:

* 2.4GHz: ETSI
* 5GHz: ETSI

Signed-off-by: Sven Eckelmann &lt;sven.eckelmann@openmesh.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
