public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [v3] Bluetooth: btnxpuart: Enable status prints for firmware download
  2024-04-17  8:15 [PATCH v3] " Neeraj Sanjay Kale
@ 2024-04-17  8:55 ` bluez.test.bot
  0 siblings, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2024-04-17  8:55 UTC (permalink / raw)
  To: linux-bluetooth, neeraj.sanjaykale

[-- Attachment #1: Type: text/plain, Size: 2481 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=845335

---Test result---

Test Summary:
CheckPatch                    PASS      0.69 seconds
GitLint                       PASS      0.31 seconds
SubjectPrefix                 PASS      0.12 seconds
BuildKernel                   PASS      29.72 seconds
CheckAllWarning               PASS      33.65 seconds
CheckSparse                   PASS      39.11 seconds
CheckSmatch                   FAIL      36.54 seconds
BuildKernel32                 PASS      29.43 seconds
TestRunnerSetup               PASS      519.51 seconds
TestRunner_l2cap-tester       PASS      18.63 seconds
TestRunner_iso-tester         PASS      31.85 seconds
TestRunner_bnep-tester        PASS      4.66 seconds
TestRunner_mgmt-tester        PASS      112.25 seconds
TestRunner_rfcomm-tester      PASS      7.18 seconds
TestRunner_sco-tester         PASS      14.89 seconds
TestRunner_ioctl-tester       PASS      7.62 seconds
TestRunner_mesh-tester        PASS      5.72 seconds
TestRunner_smp-tester         PASS      6.72 seconds
TestRunner_userchan-tester    PASS      4.85 seconds
IncrementalBuild              PASS      27.86 seconds

Details
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:

Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139
make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bpa10x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bpa10x.o'
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2


---
Regards,
Linux Bluetooth


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

* [PATCH v3] Bluetooth: btnxpuart: Enable status prints for firmware download
@ 2024-05-14  9:14 Neeraj Sanjay Kale
  2024-05-14  9:20 ` Paul Menzel
  2024-05-14  9:56 ` [v3] " bluez.test.bot
  0 siblings, 2 replies; 5+ messages in thread
From: Neeraj Sanjay Kale @ 2024-05-14  9:14 UTC (permalink / raw)
  To: marcel, luiz.dentz
  Cc: linux-bluetooth, linux-kernel, amitkumar.karwar, rohit.fule,
	neeraj.sanjaykale, sherry.sun, ziniu.wang_1, haibo.chen, LnxRevLi,
	guillaume.legoupil, salim.chebbo

This enables prints for firmware download which can help automation
tests to verify firmware download functionality.

A new flag BTNXPUART_FW_DOWNLOAD_ABORT is added which handles the
situation where driver is removed while firmware download is in
progress.

This also adds a check before freeing the rx->skb in flush and close
functions to handle the kernel crash seen in case of firmware download
timeout.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Tested-by: Guillaume Legoupil <guillaume.legoupil@nxp.com>
---
v2: Handle firmware download abort scenario. (Guillaume Legoupil)
v3: Minor corrections. Add details to commit message.
---
 drivers/bluetooth/btnxpuart.c | 67 +++++++++++++++++++++++------------
 1 file changed, 45 insertions(+), 22 deletions(-)

diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 0b93c2ff29e4..7aed5298ee6f 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -29,6 +29,7 @@
 #define BTNXPUART_CHECK_BOOT_SIGNATURE	3
 #define BTNXPUART_SERDEV_OPEN		4
 #define BTNXPUART_IR_IN_PROGRESS	5
+#define BTNXPUART_FW_DOWNLOAD_ABORT	6
 
 /* NXP HW err codes */
 #define BTNXPUART_IR_HW_ERR		0xb0
@@ -159,6 +160,7 @@ struct btnxpuart_dev {
 	u8 fw_name[MAX_FW_FILE_NAME_LEN];
 	u32 fw_dnld_v1_offset;
 	u32 fw_v1_sent_bytes;
+	u32 fw_dnld_v3_offset;
 	u32 fw_v3_offset_correction;
 	u32 fw_v1_expected_len;
 	u32 boot_reg_offset;
@@ -550,6 +552,7 @@ static int nxp_download_firmware(struct hci_dev *hdev)
 	nxpdev->fw_v1_sent_bytes = 0;
 	nxpdev->fw_v1_expected_len = HDR_LEN;
 	nxpdev->boot_reg_offset = 0;
+	nxpdev->fw_dnld_v3_offset = 0;
 	nxpdev->fw_v3_offset_correction = 0;
 	nxpdev->baudrate_changed = false;
 	nxpdev->timeout_changed = false;
@@ -564,14 +567,23 @@ static int nxp_download_firmware(struct hci_dev *hdev)
 					       !test_bit(BTNXPUART_FW_DOWNLOADING,
 							 &nxpdev->tx_state),
 					       msecs_to_jiffies(60000));
+
+	release_firmware(nxpdev->fw);
+	memset(nxpdev->fw_name, 0, sizeof(nxpdev->fw_name));
+
 	if (err == 0) {
-		bt_dev_err(hdev, "FW Download Timeout.");
+		bt_dev_err(hdev, "FW Download Timeout. offset: %d",
+				nxpdev->fw_dnld_v1_offset ?
+				nxpdev->fw_dnld_v1_offset :
+				nxpdev->fw_dnld_v3_offset);
 		return -ETIMEDOUT;
 	}
+	if (test_bit(BTNXPUART_FW_DOWNLOAD_ABORT, &nxpdev->tx_state)) {
+		bt_dev_err(hdev, "FW Download Aborted");
+		return -EINTR;
+	}
 
 	serdev_device_set_flow_control(nxpdev->serdev, true);
-	release_firmware(nxpdev->fw);
-	memset(nxpdev->fw_name, 0, sizeof(nxpdev->fw_name));
 
 	/* Allow the downloaded FW to initialize */
 	msleep(1200);
@@ -693,7 +705,7 @@ static int nxp_request_firmware(struct hci_dev *hdev, const char *fw_name)
 	if (!strlen(nxpdev->fw_name)) {
 		snprintf(nxpdev->fw_name, MAX_FW_FILE_NAME_LEN, "%s", fw_name);
 
-		bt_dev_dbg(hdev, "Request Firmware: %s", nxpdev->fw_name);
+		bt_dev_info(hdev, "Request Firmware: %s", nxpdev->fw_name);
 		err = request_firmware(&nxpdev->fw, nxpdev->fw_name, &hdev->dev);
 		if (err < 0) {
 			bt_dev_err(hdev, "Firmware file %s not found", nxpdev->fw_name);
@@ -781,7 +793,7 @@ static int nxp_recv_fw_req_v1(struct hci_dev *hdev, struct sk_buff *skb)
 	}
 
 	if (!len) {
-		bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes",
+		bt_dev_info(hdev, "FW Download Complete: %zu bytes",
 			   nxpdev->fw->size);
 		if (nxp_data->helper_fw_name && !nxpdev->helper_downloaded) {
 			nxpdev->helper_downloaded = true;
@@ -934,7 +946,7 @@ static int nxp_recv_fw_req_v3(struct hci_dev *hdev, struct sk_buff *skb)
 	}
 
 	if (req->len == 0) {
-		bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes",
+		bt_dev_info(hdev, "FW Download Complete: %zu bytes",
 			   nxpdev->fw->size);
 		clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state);
 		wake_up_interruptible(&nxpdev->fw_dnld_done_wait_q);
@@ -954,8 +966,9 @@ static int nxp_recv_fw_req_v3(struct hci_dev *hdev, struct sk_buff *skb)
 		goto free_skb;
 	}
 
-	serdev_device_write_buf(nxpdev->serdev, nxpdev->fw->data + offset -
-				nxpdev->fw_v3_offset_correction, len);
+	nxpdev->fw_dnld_v3_offset = offset - nxpdev->fw_v3_offset_correction;
+	serdev_device_write_buf(nxpdev->serdev, nxpdev->fw->data +
+				nxpdev->fw_dnld_v3_offset, len);
 
 free_skb:
 	kfree_skb(skb);
@@ -1037,7 +1050,7 @@ static int nxp_setup(struct hci_dev *hdev)
 		if (err < 0)
 			return err;
 	} else {
-		bt_dev_dbg(hdev, "FW already running.");
+		bt_dev_info(hdev, "FW already running.");
 		clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state);
 	}
 
@@ -1253,8 +1266,10 @@ static int btnxpuart_close(struct hci_dev *hdev)
 	ps_wakeup(nxpdev);
 	serdev_device_close(nxpdev->serdev);
 	skb_queue_purge(&nxpdev->txq);
-	kfree_skb(nxpdev->rx_skb);
-	nxpdev->rx_skb = NULL;
+	if (!IS_ERR_OR_NULL(nxpdev->rx_skb)) {
+		kfree_skb(nxpdev->rx_skb);
+		nxpdev->rx_skb = NULL;
+	}
 	clear_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state);
 	return 0;
 }
@@ -1269,8 +1284,10 @@ static int btnxpuart_flush(struct hci_dev *hdev)
 
 	cancel_work_sync(&nxpdev->tx_work);
 
-	kfree_skb(nxpdev->rx_skb);
-	nxpdev->rx_skb = NULL;
+	if (!IS_ERR_OR_NULL(nxpdev->rx_skb)) {
+		kfree_skb(nxpdev->rx_skb);
+		nxpdev->rx_skb = NULL;
+	}
 
 	return 0;
 }
@@ -1385,16 +1402,22 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
 	struct btnxpuart_dev *nxpdev = serdev_device_get_drvdata(serdev);
 	struct hci_dev *hdev = nxpdev->hdev;
 
-	/* Restore FW baudrate to fw_init_baudrate if changed.
-	 * This will ensure FW baudrate is in sync with
-	 * driver baudrate in case this driver is re-inserted.
-	 */
-	if (nxpdev->current_baudrate != nxpdev->fw_init_baudrate) {
-		nxpdev->new_baudrate = nxpdev->fw_init_baudrate;
-		nxp_set_baudrate_cmd(hdev, NULL);
+	if (is_fw_downloading(nxpdev)) {
+		set_bit(BTNXPUART_FW_DOWNLOAD_ABORT, &nxpdev->tx_state);
+		clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state);
+		wake_up_interruptible(&nxpdev->check_boot_sign_wait_q);
+		wake_up_interruptible(&nxpdev->fw_dnld_done_wait_q);
+	} else {
+		/* Restore FW baudrate to fw_init_baudrate if changed.
+		 * This will ensure FW baudrate is in sync with
+		 * driver baudrate in case this driver is re-inserted.
+		 */
+		if (nxpdev->current_baudrate != nxpdev->fw_init_baudrate) {
+			nxpdev->new_baudrate = nxpdev->fw_init_baudrate;
+			nxp_set_baudrate_cmd(hdev, NULL);
+		}
+		ps_cancel_timer(nxpdev);
 	}
-
-	ps_cancel_timer(nxpdev);
 	hci_unregister_dev(hdev);
 	hci_free_dev(hdev);
 }
-- 
2.34.1


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

* Re: [PATCH v3] Bluetooth: btnxpuart: Enable status prints for firmware download
  2024-05-14  9:14 [PATCH v3] Bluetooth: btnxpuart: Enable status prints for firmware download Neeraj Sanjay Kale
@ 2024-05-14  9:20 ` Paul Menzel
  2024-05-15  7:18   ` Neeraj Sanjay Kale
  2024-05-14  9:56 ` [v3] " bluez.test.bot
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2024-05-14  9:20 UTC (permalink / raw)
  To: Neeraj Sanjay Kale
  Cc: marcel, luiz.dentz, linux-bluetooth, linux-kernel,
	amitkumar.karwar, rohit.fule, sherry.sun, ziniu.wang_1,
	haibo.chen, LnxRevLi, guillaume.legoupil, salim.chebbo

Dear Neeraj,


Thank you for the patch.

Am 14.05.24 um 11:14 schrieb Neeraj Sanjay Kale:
> This enables prints for firmware download which can help automation
> tests to verify firmware download functionality.

Please paste the old and new log messages to the commit message.

> A new flag BTNXPUART_FW_DOWNLOAD_ABORT is added which handles the
> situation where driver is removed while firmware download is in
> progress.

Could this be a separate patch?

> This also adds a check before freeing the rx->skb in flush and close
> functions to handle the kernel crash seen in case of firmware download
> timeout.

Please make this a separate commit with a Fixes: tag.


Kind regrads,

Paul


> Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
> Tested-by: Guillaume Legoupil <guillaume.legoupil@nxp.com>
> ---
> v2: Handle firmware download abort scenario. (Guillaume Legoupil)
> v3: Minor corrections. Add details to commit message.
> ---
>   drivers/bluetooth/btnxpuart.c | 67 +++++++++++++++++++++++------------
>   1 file changed, 45 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
> index 0b93c2ff29e4..7aed5298ee6f 100644
> --- a/drivers/bluetooth/btnxpuart.c
> +++ b/drivers/bluetooth/btnxpuart.c
> @@ -29,6 +29,7 @@
>   #define BTNXPUART_CHECK_BOOT_SIGNATURE	3
>   #define BTNXPUART_SERDEV_OPEN		4
>   #define BTNXPUART_IR_IN_PROGRESS	5
> +#define BTNXPUART_FW_DOWNLOAD_ABORT	6
>   
>   /* NXP HW err codes */
>   #define BTNXPUART_IR_HW_ERR		0xb0
> @@ -159,6 +160,7 @@ struct btnxpuart_dev {
>   	u8 fw_name[MAX_FW_FILE_NAME_LEN];
>   	u32 fw_dnld_v1_offset;
>   	u32 fw_v1_sent_bytes;
> +	u32 fw_dnld_v3_offset;
>   	u32 fw_v3_offset_correction;
>   	u32 fw_v1_expected_len;
>   	u32 boot_reg_offset;
> @@ -550,6 +552,7 @@ static int nxp_download_firmware(struct hci_dev *hdev)
>   	nxpdev->fw_v1_sent_bytes = 0;
>   	nxpdev->fw_v1_expected_len = HDR_LEN;
>   	nxpdev->boot_reg_offset = 0;
> +	nxpdev->fw_dnld_v3_offset = 0;
>   	nxpdev->fw_v3_offset_correction = 0;
>   	nxpdev->baudrate_changed = false;
>   	nxpdev->timeout_changed = false;
> @@ -564,14 +567,23 @@ static int nxp_download_firmware(struct hci_dev *hdev)
>   					       !test_bit(BTNXPUART_FW_DOWNLOADING,
>   							 &nxpdev->tx_state),
>   					       msecs_to_jiffies(60000));
> +
> +	release_firmware(nxpdev->fw);
> +	memset(nxpdev->fw_name, 0, sizeof(nxpdev->fw_name));
> +
>   	if (err == 0) {
> -		bt_dev_err(hdev, "FW Download Timeout.");
> +		bt_dev_err(hdev, "FW Download Timeout. offset: %d",
> +				nxpdev->fw_dnld_v1_offset ?
> +				nxpdev->fw_dnld_v1_offset :
> +				nxpdev->fw_dnld_v3_offset);
>   		return -ETIMEDOUT;
>   	}
> +	if (test_bit(BTNXPUART_FW_DOWNLOAD_ABORT, &nxpdev->tx_state)) {
> +		bt_dev_err(hdev, "FW Download Aborted");
> +		return -EINTR;
> +	}
>   
>   	serdev_device_set_flow_control(nxpdev->serdev, true);
> -	release_firmware(nxpdev->fw);
> -	memset(nxpdev->fw_name, 0, sizeof(nxpdev->fw_name));
>   
>   	/* Allow the downloaded FW to initialize */
>   	msleep(1200);
> @@ -693,7 +705,7 @@ static int nxp_request_firmware(struct hci_dev *hdev, const char *fw_name)
>   	if (!strlen(nxpdev->fw_name)) {
>   		snprintf(nxpdev->fw_name, MAX_FW_FILE_NAME_LEN, "%s", fw_name);
>   
> -		bt_dev_dbg(hdev, "Request Firmware: %s", nxpdev->fw_name);
> +		bt_dev_info(hdev, "Request Firmware: %s", nxpdev->fw_name);
>   		err = request_firmware(&nxpdev->fw, nxpdev->fw_name, &hdev->dev);
>   		if (err < 0) {
>   			bt_dev_err(hdev, "Firmware file %s not found", nxpdev->fw_name);
> @@ -781,7 +793,7 @@ static int nxp_recv_fw_req_v1(struct hci_dev *hdev, struct sk_buff *skb)
>   	}
>   
>   	if (!len) {
> -		bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes",
> +		bt_dev_info(hdev, "FW Download Complete: %zu bytes",
>   			   nxpdev->fw->size);
>   		if (nxp_data->helper_fw_name && !nxpdev->helper_downloaded) {
>   			nxpdev->helper_downloaded = true;
> @@ -934,7 +946,7 @@ static int nxp_recv_fw_req_v3(struct hci_dev *hdev, struct sk_buff *skb)
>   	}
>   
>   	if (req->len == 0) {
> -		bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes",
> +		bt_dev_info(hdev, "FW Download Complete: %zu bytes",
>   			   nxpdev->fw->size);
>   		clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state);
>   		wake_up_interruptible(&nxpdev->fw_dnld_done_wait_q);
> @@ -954,8 +966,9 @@ static int nxp_recv_fw_req_v3(struct hci_dev *hdev, struct sk_buff *skb)
>   		goto free_skb;
>   	}
>   
> -	serdev_device_write_buf(nxpdev->serdev, nxpdev->fw->data + offset -
> -				nxpdev->fw_v3_offset_correction, len);
> +	nxpdev->fw_dnld_v3_offset = offset - nxpdev->fw_v3_offset_correction;
> +	serdev_device_write_buf(nxpdev->serdev, nxpdev->fw->data +
> +				nxpdev->fw_dnld_v3_offset, len);
>   
>   free_skb:
>   	kfree_skb(skb);
> @@ -1037,7 +1050,7 @@ static int nxp_setup(struct hci_dev *hdev)
>   		if (err < 0)
>   			return err;
>   	} else {
> -		bt_dev_dbg(hdev, "FW already running.");
> +		bt_dev_info(hdev, "FW already running.");
>   		clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state);
>   	}
>   
> @@ -1253,8 +1266,10 @@ static int btnxpuart_close(struct hci_dev *hdev)
>   	ps_wakeup(nxpdev);
>   	serdev_device_close(nxpdev->serdev);
>   	skb_queue_purge(&nxpdev->txq);
> -	kfree_skb(nxpdev->rx_skb);
> -	nxpdev->rx_skb = NULL;
> +	if (!IS_ERR_OR_NULL(nxpdev->rx_skb)) {
> +		kfree_skb(nxpdev->rx_skb);
> +		nxpdev->rx_skb = NULL;
> +	}
>   	clear_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state);
>   	return 0;
>   }
> @@ -1269,8 +1284,10 @@ static int btnxpuart_flush(struct hci_dev *hdev)
>   
>   	cancel_work_sync(&nxpdev->tx_work);
>   
> -	kfree_skb(nxpdev->rx_skb);
> -	nxpdev->rx_skb = NULL;
> +	if (!IS_ERR_OR_NULL(nxpdev->rx_skb)) {
> +		kfree_skb(nxpdev->rx_skb);
> +		nxpdev->rx_skb = NULL;
> +	}
>   
>   	return 0;
>   }
> @@ -1385,16 +1402,22 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
>   	struct btnxpuart_dev *nxpdev = serdev_device_get_drvdata(serdev);
>   	struct hci_dev *hdev = nxpdev->hdev;
>   
> -	/* Restore FW baudrate to fw_init_baudrate if changed.
> -	 * This will ensure FW baudrate is in sync with
> -	 * driver baudrate in case this driver is re-inserted.
> -	 */
> -	if (nxpdev->current_baudrate != nxpdev->fw_init_baudrate) {
> -		nxpdev->new_baudrate = nxpdev->fw_init_baudrate;
> -		nxp_set_baudrate_cmd(hdev, NULL);
> +	if (is_fw_downloading(nxpdev)) {
> +		set_bit(BTNXPUART_FW_DOWNLOAD_ABORT, &nxpdev->tx_state);
> +		clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state);
> +		wake_up_interruptible(&nxpdev->check_boot_sign_wait_q);
> +		wake_up_interruptible(&nxpdev->fw_dnld_done_wait_q);
> +	} else {
> +		/* Restore FW baudrate to fw_init_baudrate if changed.
> +		 * This will ensure FW baudrate is in sync with
> +		 * driver baudrate in case this driver is re-inserted.
> +		 */
> +		if (nxpdev->current_baudrate != nxpdev->fw_init_baudrate) {
> +			nxpdev->new_baudrate = nxpdev->fw_init_baudrate;
> +			nxp_set_baudrate_cmd(hdev, NULL);
> +		}
> +		ps_cancel_timer(nxpdev);
>   	}
> -
> -	ps_cancel_timer(nxpdev);
>   	hci_unregister_dev(hdev);
>   	hci_free_dev(hdev);
>   }

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

* RE: [v3] Bluetooth: btnxpuart: Enable status prints for firmware download
  2024-05-14  9:14 [PATCH v3] Bluetooth: btnxpuart: Enable status prints for firmware download Neeraj Sanjay Kale
  2024-05-14  9:20 ` Paul Menzel
@ 2024-05-14  9:56 ` bluez.test.bot
  1 sibling, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2024-05-14  9:56 UTC (permalink / raw)
  To: linux-bluetooth, neeraj.sanjaykale

[-- Attachment #1: Type: text/plain, Size: 2481 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=853012

---Test result---

Test Summary:
CheckPatch                    PASS      0.74 seconds
GitLint                       PASS      0.39 seconds
SubjectPrefix                 PASS      0.13 seconds
BuildKernel                   PASS      30.00 seconds
CheckAllWarning               PASS      32.53 seconds
CheckSparse                   PASS      38.20 seconds
CheckSmatch                   FAIL      36.10 seconds
BuildKernel32                 PASS      28.97 seconds
TestRunnerSetup               PASS      521.76 seconds
TestRunner_l2cap-tester       PASS      20.55 seconds
TestRunner_iso-tester         PASS      29.31 seconds
TestRunner_bnep-tester        PASS      4.82 seconds
TestRunner_mgmt-tester        PASS      111.61 seconds
TestRunner_rfcomm-tester      PASS      7.99 seconds
TestRunner_sco-tester         PASS      15.09 seconds
TestRunner_ioctl-tester       PASS      7.85 seconds
TestRunner_mesh-tester        PASS      5.96 seconds
TestRunner_smp-tester         PASS      6.90 seconds
TestRunner_userchan-tester    PASS      5.02 seconds
IncrementalBuild              PASS      28.15 seconds

Details
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:

Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139
make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bpa10x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bpa10x.o'
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2


---
Regards,
Linux Bluetooth


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

* Re: [PATCH v3] Bluetooth: btnxpuart: Enable status prints for firmware download
  2024-05-14  9:20 ` Paul Menzel
@ 2024-05-15  7:18   ` Neeraj Sanjay Kale
  0 siblings, 0 replies; 5+ messages in thread
From: Neeraj Sanjay Kale @ 2024-05-15  7:18 UTC (permalink / raw)
  To: Paul Menzel
  Cc: marcel@holtmann.org, luiz.dentz@gmail.com,
	linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
	Amitkumar Karwar, Rohit Fule, Sherry Sun, Luke Wang, Bough Chen,
	LnxRevLi, Guillaume Legoupil, Salim Chebbo

Hi Paul,

Thank you for reviewing this patch.

> Am 14.05.24 um 11:14 schrieb Neeraj Sanjay Kale:
> > This enables prints for firmware download which can help automation
> > tests to verify firmware download functionality.
> 
> Please paste the old and new log messages to the commit message.
> 
> > A new flag BTNXPUART_FW_DOWNLOAD_ABORT is added which handles
> the
> > situation where driver is removed while firmware download is in
> > progress.
> 
> Could this be a separate patch?
> 
> > This also adds a check before freeing the rx->skb in flush and close
> > functions to handle the kernel crash seen in case of firmware download
> > timeout.
> 
> Please make this a separate commit with a Fixes: tag.
> 

I have split this patch into a 3-commit patch series and sent for review today. Please let me know your feedback on it.

We can ignore/discard this patch now.

Thanks,
Neeraj

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

end of thread, other threads:[~2024-05-15  7:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14  9:14 [PATCH v3] Bluetooth: btnxpuart: Enable status prints for firmware download Neeraj Sanjay Kale
2024-05-14  9:20 ` Paul Menzel
2024-05-15  7:18   ` Neeraj Sanjay Kale
2024-05-14  9:56 ` [v3] " bluez.test.bot
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17  8:15 [PATCH v3] " Neeraj Sanjay Kale
2024-04-17  8:55 ` [v3] " bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox