[PATCH] bus: mhi: host: Change the trace string for the userspace tools mapping

2024-02-18 Thread Krishna chaitanya chundru
User space tools can't map strings if we use directly, as the string address is internal to kernel. So add trace point strings for the user space tools to map strings properly. Signed-off-by: Krishna chaitanya chundru --- drivers/bus/mhi/host/main.c | 4 ++-- drivers/bus/mhi/host/trace.h | 2

Re: [PATCH v11] bus: mhi: host: Add tracing support

2024-02-05 Thread Krishna Chaitanya Chundru
On 2/6/2024 11:56 AM, Manivannan Sadhasivam wrote: On Tue, Feb 06, 2024 at 10:02:05AM +0530, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also when we rec

[PATCH v11] bus: mhi: host: Add tracing support

2024-02-05 Thread Krishna chaitanya chundru
__get_str(name), __entry->ch_num, __entry->reason, + __print_symbolic(__entry->state, MHI_CH_STATE_TYPE_LIST)) +); + +DEFINE_EVENT(mhi_update_channel_state, mhi_channel_command_start, + + TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan, int state, +const char *reason), + + TP_ARGS(mhi_cntrl, mhi_chan, state, reason) +); + +DEFINE_EVENT(mhi_update_channel_state, mhi_channel_command_end, + + TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan, int state, +const char *reason), + + TP_ARGS(mhi_cntrl, mhi_chan, state, reason) +); + +TRACE_EVENT(mhi_pm_st_transition, + + TP_PROTO(struct mhi_controller *mhi_cntrl, int state), + + TP_ARGS(mhi_cntrl, state), + + TP_STRUCT__entry( + __string(name, mhi_cntrl->mhi_dev->name) + __field(int, state) + ), + + TP_fast_assign( + __assign_str(name, mhi_cntrl->mhi_dev->name); + __entry->state = state; + ), + + TP_printk("%s: Handling state transition: %s\n", __get_str(name), + __print_symbolic(__entry->state, DEV_ST_TRANSITION_LIST)) +); + +#endif +#undef TRACE_INCLUDE_PATH +#define TRACE_INCLUDE_PATH ../../drivers/bus/mhi/host +#undef TRACE_INCLUDE_FILE +#define TRACE_INCLUDE_FILE trace + +#include --- base-commit: ae1d892d518af5c092f2b1f8e6921996c6a95cb3 change-id: 20240206-ftrace_support-8ef0fbecf85e Best regards, -- Krishna chaitanya chundru

[PATCH v10] bus: mhi: host: Add tracing support

2024-01-30 Thread Krishna chaitanya chundru
__entry->ch_num, __entry->reason, + __print_symbolic(__entry->state, MHI_CH_STATE_TYPE_LIST)) +); + +DEFINE_EVENT(mhi_update_channel_state, mhi_channel_command_start, + + TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan, int state, +const char *reason), + + TP_ARGS(mhi_cntrl, mhi_chan, state, reason) +); + +DEFINE_EVENT(mhi_update_channel_state, mhi_channel_command_end, + + TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan, int state, +const char *reason), + + TP_ARGS(mhi_cntrl, mhi_chan, state, reason) +); + +TRACE_EVENT(mhi_pm_st_transition, + + TP_PROTO(struct mhi_controller *mhi_cntrl, int state), + + TP_ARGS(mhi_cntrl, state), + + TP_STRUCT__entry( + __string(name, mhi_cntrl->mhi_dev->name) + __field(int, state) + ), + + TP_fast_assign( + __assign_str(name, mhi_cntrl->mhi_dev->name); + __entry->state = state; + ), + + TP_printk("%s: Handling state transition: %s\n", __get_str(name), + __print_symbolic(__entry->state, DEV_ST_TRANSITION_LIST)) +); + +#endif +#undef TRACE_INCLUDE_PATH +#define TRACE_INCLUDE_PATH ../../drivers/bus/mhi/host +#undef TRACE_INCLUDE_FILE +#define TRACE_INCLUDE_FILE trace + +#include --- base-commit: 3006adf3be79cde4d14b1800b963b82b6e5572e0 change-id: 20231005-ftrace_support-6869d4156139 Best regards, -- Krishna chaitanya chundru

Re: [PATCH v9] bus: mhi: host: Add tracing support

2024-01-30 Thread Krishna Chaitanya Chundru
my next patch. - Krishna Chaitanya.

Re: [PATCH v9] bus: mhi: host: Add tracing support

2024-01-30 Thread Krishna Chaitanya Chundru
On 1/30/2024 1:41 PM, Manivannan Sadhasivam wrote: On Fri, Jan 05, 2024 at 05:53:03PM +0530, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also when we rec

Re: [PATCH v9] bus: mhi: host: Add tracing support

2024-01-24 Thread Krishna Chaitanya Chundru
On 1/8/2024 6:52 PM, Krishna Chaitanya Chundru wrote: Hi Steven, Even though I added your reviewed-by tag, I incorporated changes mentioned in the previous patch. Can you please review it once. Thanks & Regards, Krishna Chaitanya. Hi Steven, Can you please review it once. Th

Re: [PATCH v9] bus: mhi: host: Add tracing support

2024-01-08 Thread Krishna Chaitanya Chundru
Hi Steven, Even though I added your reviewed-by tag, I incorporated changes mentioned in the previous patch. Can you please review it once. Thanks & Regards, Krishna Chaitanya. On 1/5/2024 5:53 PM, Krishna chaitanya chundru wrote: This change adds ftrace support for following funct

[PATCH v9] bus: mhi: host: Add tracing support

2024-01-05 Thread Krishna chaitanya chundru
k("%s: chan%d: Updating state to: %s\n", + __get_str(name), __entry->ch_num, + __print_symbolic(__entry->state, MHI_CH_STATE_TYPE_LIST)) +); + +DEFINE_EVENT(mhi_update_channel_state, mhi_channel_command_start, + + TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan, int state), + + TP_ARGS(mhi_cntrl, mhi_chan, state) +); + +DEFINE_EVENT(mhi_update_channel_state, mhi_channel_command_end, + + TP_PROTO(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan, int state), + + TP_ARGS(mhi_cntrl, mhi_chan, state) +); + +TRACE_EVENT(mhi_pm_st_transition, + + TP_PROTO(struct mhi_controller *mhi_cntrl, int state), + + TP_ARGS(mhi_cntrl, state), + + TP_STRUCT__entry( + __string(name, mhi_cntrl->mhi_dev->name) + __field(int, state) + ), + + TP_fast_assign( + __assign_str(name, mhi_cntrl->mhi_dev->name); + __entry->state = state; + ), + + TP_printk("%s: Handling state transition: %s\n", __get_str(name), + __print_symbolic(__entry->state, DEV_ST_TRANSITION_LIST)) +); + +#endif +#undef TRACE_INCLUDE_PATH +#define TRACE_INCLUDE_PATH ../../drivers/bus/mhi/host +#undef TRACE_INCLUDE_FILE +#define TRACE_INCLUDE_FILE trace + +#include --- base-commit: 3006adf3be79cde4d14b1800b963b82b6e5572e0 change-id: 20231005-ftrace_support-6869d4156139 Best regards, -- Krishna chaitanya chundru

Re: [PATCH v8] bus: mhi: host: Add tracing support

2024-01-05 Thread Krishna Chaitanya Chundru
On 1/5/2024 10:47 AM, Baochen Qiang wrote: On 1/4/2024 12:47 PM, Krishna Chaitanya Chundru wrote: Hi Steven, Can you please review this. Thanks & Regards, Krishna Chaitanya. On 12/7/2023 10:00 AM, Krishna chaitanya chundru wrote: This change adds ftrace support for following funct

Re: [PATCH v8] bus: mhi: host: Add tracing support

2024-01-04 Thread Krishna Chaitanya Chundru
On 1/4/2024 9:31 PM, Steven Rostedt wrote: On Thu, 7 Dec 2023 10:00:47 +0530 Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also when we receive data and con

Re: [PATCH v8] bus: mhi: host: Add tracing support

2024-01-03 Thread Krishna Chaitanya Chundru
Hi Steven, Can you please review this. Thanks & Regards, Krishna Chaitanya. On 12/7/2023 10:00 AM, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also

Re: [PATCH v8] bus: mhi: host: Add tracing support

2023-12-11 Thread Krishna Chaitanya Chundru
Hi Steven, Can you review it once. Thanks & Regards, Krishna Chaitanya. On 12/7/2023 10:00 AM, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also when we

[PATCH v8] bus: mhi: host: Add tracing support

2023-12-06 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Where ever the trace events are added, debug messages are removed. Signed-off-by: Krishna chaitanya chundru --- Changes in v8: - Pass the structure and derefernce the variables in TP_fast_assign as suggested by steve - Link t

Re: [PATCH v7] bus: mhi: host: Add tracing support

2023-12-06 Thread Krishna Chaitanya Chundru
On 12/6/2023 9:25 PM, Steven Rostedt wrote: On Wed, 6 Dec 2023 21:12:57 +0530 Krishna chaitanya chundru wrote: diff --git a/drivers/bus/mhi/host/init.c b/drivers/bus/mhi/host/init.c index f78aefd2d7a3..6acb85f4c5f8 100644 --- a/drivers/bus/mhi/host/init.c +++ b/drivers/bus/mhi/host/init.c

[PATCH v7] bus: mhi: host: Add tracing support

2023-12-06 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Where ever the trace events are added, debug messages are removed. Signed-off-by: Krishna chaitanya chundru --- Changes in v7: - change log format as pointed by mani. - Link to v6: https://lore.kernel.org/r/20231204-ftrace_support-

[PATCH v6] bus: mhi: host: Add tracing support

2023-12-04 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Where ever the trace events are added, debug messages are removed. Signed-off-by: Krishna chaitanya chundru --- Changes in v6: - use 'rp' directly as suggested by jeffrey. - Link to v5: https://lore.kernel.org/r/20231127-ftrace_sup

Re: [PATCH v5] bus: mhi: host: Add tracing support

2023-12-04 Thread Krishna Chaitanya Chundru
On 12/1/2023 10:31 PM, Jeffrey Hugo wrote: On 11/27/2023 4:09 AM, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also when we receive data and control event

[PATCH v5] bus: mhi: host: Add tracing support

2023-11-27 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Where ever the trace events are added, debug messages are removed. Signed-off-by: Krishna chaitanya chundru --- Changes in v5: - Use DECLARE_EVENT_CLASS for multiple events as suggested by steve. - Instead of converting to u64 to p

Re: [PATCH v4] bus: mhi: host: Add tracing support

2023-11-13 Thread Krishna Chaitanya Chundru
On 11/12/2023 1:07 AM, Steven Rostedt wrote: On Sat, 11 Nov 2023 11:25:22 +0530 Krishna chaitanya chundru wrote: diff --git a/drivers/bus/mhi/host/trace.h b/drivers/bus/mhi/host/trace.h new file mode 100644 index ..0e99318f5d08 --- /dev/null +++ b/drivers/bus/mhi/host/trace.h

[PATCH v4] bus: mhi: host: Add tracing support

2023-11-10 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Where ever we added trace events removing debug messages. Signed-off-by: Krishna chaitanya chundru --- Changes in v4: - Fix compilation issues in previous patch which happended due to rebasing. - In the defconfig FTRACE co

[PATCH v3] bus: mhi: host: Add tracing support

2023-11-10 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Where ever we added trace events removing debug messages. Signed-off-by: Krishna chaitanya chundru --- Changes in v3: - move trace header file from include/trace/events to drivers/bus/mhi/host/ so that - we can include driver he

Re: [PATCH v2] bus: mhi: host: Add tracing support

2023-10-30 Thread Krishna Chaitanya Chundru
On 10/27/2023 8:59 PM, Jeffrey Hugo wrote: On 10/23/2023 1:11 AM, Krishna Chaitanya Chundru wrote: On 10/20/2023 8:33 PM, Jeffrey Hugo wrote: On 10/13/2023 3:52 AM, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues

Re: [PATCH v2] bus: mhi: host: Add tracing support

2023-10-23 Thread Krishna Chaitanya Chundru
On 10/20/2023 8:33 PM, Jeffrey Hugo wrote: On 10/13/2023 3:52 AM, Krishna chaitanya chundru wrote: This change adds ftrace support for following functions which helps in debugging the issues when there is Channel state & MHI state change and also when we receive data and control event

Re: [PATCH v2] bus: mhi: host: Add tracing support

2023-10-17 Thread Krishna Chaitanya Chundru
On 10/16/2023 8:43 PM, Steven Rostedt wrote: On Fri, 13 Oct 2023 15:22:19 +0530 Krishna chaitanya chundru wrote: +++ b/include/trace/events/mhi_host.h @@ -0,0 +1,287 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights

Re: [PATCH] bus: mhi: host: Add tracing support

2023-10-13 Thread Krishna Chaitanya Chundru
On 10/6/2023 4:10 AM, Bjorn Andersson wrote: On Thu, Oct 05, 2023 at 03:55:20PM +0530, Krishna chaitanya chundru wrote: This change adds ftrace support for following: 1. mhi_intvec_threaded_handler 2. mhi_process_data_event_ring 3. mhi_process_ctrl_ev_ring 4. mhi_gen_tre 5

[PATCH v2] bus: mhi: host: Add tracing support

2023-10-13 Thread Krishna chaitanya chundru
re 5. mhi_update_channel_state 6. mhi_tryset_pm_state 7. mhi_pm_st_worker Signed-off-by: Krishna chaitanya chundru --- Changes in v2: - Passing the raw state into the trace event and using __print_symbolic() as suggested by bjorn. - Change mhi_pm_st_worker to mhi_pm_st_transition as suggested by b

[PATCH] bus: mhi: host: Add tracing support

2023-10-05 Thread Krishna chaitanya chundru
ble cat /sys/kernel/debug/tracing/trace Signed-off-by: Krishna chaitanya chundru --- MAINTAINERS | 1 + drivers/bus/mhi/host/init.c | 3 + drivers/bus/mhi/host/internal.h | 1 + drivers/bus/mhi/host/main.c | 27 -- drivers/bus/mhi/host/pm.c |

Module versioning + Missing CRC in symvers + export tracepoints

2021-04-20 Thread Krishna Chaitanya
Hi, I am seeing an issue of no CRC being generated in the Module.symvers for a driver module even when CONFIG_MODVERSIONS Is enabled, this causes modpost warnings about missing versioning. The module in questions only exports tracepoint related symbols (as struct tracepoint is part of the module

Re: [PATCH] [v6] wireless: Initial driver submission for pureLiFi STA devices

2020-10-19 Thread Krishna Chaitanya
On Mon, Oct 19, 2020 at 4:01 PM Srinivasan Raju wrote: > > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. > > This driver implementation has been based on the zd1211rw driver. > > Driver is based on 802.11 softMAC Architecture and uses > native 802.11 for

Re: [PATCH] wireless: fixup genregdb.awk for remove of antenna gain from wireless-regd

2014-07-15 Thread Krishna Chaitanya
tion for CFG80211_INTERNAL_REGDB > so folks are aware of expectations for now. > > Reported-by: John Walker > Reported-by: Krishna Chaitanya > Signed-off-by: Luis R. Rodriguez > --- > > !!! Note !!! > > This means older kernels that upgrade wireless-regdb and use >

Re: [PATCH] wireless: fixup genregdb.awk for remove of antenna gain from wireless-regd

2014-07-15 Thread Krishna Chaitanya
folks are aware of expectations for now. Reported-by: John Walker j...@x109.net Reported-by: Krishna Chaitanya chaitanya.m...@gmail.com Signed-off-by: Luis R. Rodriguez mcg...@suse.com --- !!! Note !!! This means older kernels that upgrade wireless-regdb and use CFG80211_INTERNAL_REGDB

Re: [mac80211_hwsim] BUG: unable to handle kernel paging request at ce1db404

2014-03-15 Thread Krishna Chaitanya
On Sat, Mar 15, 2014 at 9:11 PM, Johannes Berg wrote: > On Sat, 2014-03-15 at 21:03 +0530, Krishna Chaitanya wrote: > >> > > what RC are u using? Default should be minstrel, i dont see >> > > a reason for rc alloc to fail (remote reason kmalloc failure), >>

Re: [mac80211_hwsim] BUG: unable to handle kernel paging request at ce1db404

2014-03-15 Thread Krishna Chaitanya
On Sat, Mar 15, 2014 at 8:50 PM, Johannes Berg wrote: > > On Thu, 2014-03-13 at 02:15 +0530, Krishna Chaitanya wrote: > > > From the logs it looks like "rate_control_alloc" is failed, > > causing ieee80211_register_hw to fail triggering the crash. > > Ye

Re: [mac80211_hwsim] BUG: unable to handle kernel paging request at ce1db404

2014-03-15 Thread Krishna Chaitanya
On Sat, Mar 15, 2014 at 8:50 PM, Johannes Berg johan...@sipsolutions.net wrote: On Thu, 2014-03-13 at 02:15 +0530, Krishna Chaitanya wrote: From the logs it looks like rate_control_alloc is failed, causing ieee80211_register_hw to fail triggering the crash. Yes. what RC are u using

Re: [mac80211_hwsim] BUG: unable to handle kernel paging request at ce1db404

2014-03-15 Thread Krishna Chaitanya
On Sat, Mar 15, 2014 at 9:11 PM, Johannes Berg johan...@sipsolutions.net wrote: On Sat, 2014-03-15 at 21:03 +0530, Krishna Chaitanya wrote: what RC are u using? Default should be minstrel, i dont see a reason for rc alloc to fail (remote reason kmalloc failure), so did you disable RC

Re: [mac80211_hwsim] BUG: unable to handle kernel paging request at ce1db404

2014-03-12 Thread Krishna Chaitanya
On Wed, Mar 12, 2014 at 11:04 PM, Martin Pitt wrote: > > Fengguang Wu [2014-03-08 20:11 +0800]: > > [4.429993] mac80211_hwsim: ieee80211_register_hw failed (-2) > > [...] > > [4.431924] [] get_device+0xf/0x17 > > [4.431924] [] driver_detach+0x38/0x8f > > [4.431924] []

Re: [mac80211_hwsim] BUG: unable to handle kernel paging request at ce1db404

2014-03-12 Thread Krishna Chaitanya
On Wed, Mar 12, 2014 at 11:04 PM, Martin Pitt martin.p...@ubuntu.com wrote: Fengguang Wu [2014-03-08 20:11 +0800]: [4.429993] mac80211_hwsim: ieee80211_register_hw failed (-2) [...] [4.431924] [c12377de] get_device+0xf/0x17 [4.431924] [c123a165] driver_detach+0x38/0x8f [

Re: [PATCH] p54usb: fix leaks at failure path in p54u_probe()

2014-03-08 Thread Krishna Chaitanya
On Sun, Mar 9, 2014 at 4:38 AM, Christian Lamparter wrote: > On Sunday, March 09, 2014 04:14:32 AM Krishna Chaitanya wrote: >> On Sat, Mar 8, 2014 at 2:41 AM, Alexey Khoroshilov >> wrote: >> > If p54u_load_firmware() fails, p54u_probe() does not deallocate >>

Re: [PATCH] p54usb: fix leaks at failure path in p54u_probe()

2014-03-08 Thread Krishna Chaitanya
On Sat, Mar 8, 2014 at 2:41 AM, Alexey Khoroshilov wrote: > If p54u_load_firmware() fails, p54u_probe() does not deallocate > already allocated resources. The patch adds proper failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey

Re: [PATCH] p54usb: fix leaks at failure path in p54u_probe()

2014-03-08 Thread Krishna Chaitanya
On Sat, Mar 8, 2014 at 2:41 AM, Alexey Khoroshilov khoroshi...@ispras.ru wrote: If p54u_load_firmware() fails, p54u_probe() does not deallocate already allocated resources. The patch adds proper failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by:

Re: [PATCH] p54usb: fix leaks at failure path in p54u_probe()

2014-03-08 Thread Krishna Chaitanya
On Sun, Mar 9, 2014 at 4:38 AM, Christian Lamparter chunk...@googlemail.com wrote: On Sunday, March 09, 2014 04:14:32 AM Krishna Chaitanya wrote: On Sat, Mar 8, 2014 at 2:41 AM, Alexey Khoroshilov khoroshi...@ispras.ru wrote: If p54u_load_firmware() fails, p54u_probe() does not deallocate

[Query] Using DMA API's with struct dev created from device_create

2013-11-07 Thread Krishna Chaitanya
Hi, In cases where the BUS interface is system fabric itself, where no probing is required, so kernel doesn't provide the "dev" pointer (unlike USB and PCI). The driver is a wireless driver based on mac80211. So we used device_create to device, which is passed to set_wiphy_dev, it works fine.

[Query] Using DMA API's with struct dev created from device_create

2013-11-07 Thread Krishna Chaitanya
Hi, In cases where the BUS interface is system fabric itself, where no probing is required, so kernel doesn't provide the dev pointer (unlike USB and PCI). The driver is a wireless driver based on mac80211. So we used device_create to device, which is passed to set_wiphy_dev, it works fine. But

Re: [PATCH 1/1] mac80211:Resetting connection monitor timers in transmit path

2013-10-23 Thread Krishna Chaitanya
On Wed, Oct 23, 2013 at 3:42 PM, Dhahira Thesneem wrote: > > Reset connection monitor timers when we are able to successfully transmit > data to an AP. > > Signed-off-by: Dhahira Thesneem > --- > net/mac80211/tx.c |6 -- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH 1/1] mac80211:Resetting connection monitor timers in transmit path

2013-10-23 Thread Krishna Chaitanya
On Wed, Oct 23, 2013 at 3:42 PM, Dhahira Thesneem dhahira.thesn...@mistralsolutions.com wrote: Reset connection monitor timers when we are able to successfully transmit data to an AP. Signed-off-by: Dhahira Thesneem dhahira.thesn...@mistralsolutions.com --- net/mac80211/tx.c |6 --