Re: Replace two ioread32 with ioread64_lo_hi non_atomic

2022-04-25 Thread Abu Rasheda
On Mon, Apr 25, 2022 at 1:32 PM Philipp Hortmann < philipp.g.hortm...@gmail.com> wrote: > Hi, > > in this patch: > [PATCH 4/5] staging: vt6655: Replace two VNSvInPortD with ioread64_lo_hi > > I tried to combine two reads in one. > > if (ww == W_MAX_TIMEOUT) > return false;

Re: how to debug problem with "failing unmounting"

2020-07-09 Thread Abu Rasheda
On Thu, Jul 9, 2020 at 5:24 AM Tomek The Messenger < tomekthemessen...@gmail.com> wrote: > Hi > On the soc on which I work there is issue with unmouting some > partitions/directories during /sbin/reboot, here is some example: > > [ OK ] Stopped target Local File System. > Unmouting Temporary

Re: Kernel Module with multiple source files not initializing

2019-10-25 Thread Abu Rasheda
On Fri, Oct 25, 2019 at 2:16 AM Irfan Ullah (울라 이르판) wrote: > Dear All, > I have developed a kernel module consists of one source file that sends > and receives message to the user space. I have spitted the source code in > two files, and now I am trying to develop kernel module from these

Re: WOL from S5 (shutdown)

2019-07-31 Thread Abu Rasheda
any pointers? On Fri, Jul 26, 2019 at 4:56 PM Abu Rasheda wrote: > Hello, > > I understand how the computer running Linux would wake up from USB based > ethernet from S3 (suspend) state. But, I am missing some piece of > information for WOL on USB ethernet from S5 (shutdown)

WOL from S5 (shutdown)

2019-07-26 Thread Abu Rasheda
me out a book or explain? Thanks. Abu Rasheda ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: a Linux device driver

2018-06-05 Thread Abu Rasheda
On Tue, Jun 5, 2018 at 1:51 AM, Ozgur Kara wrote: > > > 05.06.2018, 08:57, "valdis.kletni...@vt.edu" : > > On Mon, 04 Jun 2018 15:49:37 -0700, Abu Rasheda said: > > > >> Any recommendations what device driver is missing and open source > >> com

a Linux device driver

2018-06-04 Thread Abu Rasheda
Hello, I am an experienced Linux kernel and driver developer and have some time! I like to develop a driver for Linux open source. Any recommendations what device driver is missing and open source community could benefit from a new driver or enhance some existing driver? Where could I go for

Re: using SD card on Broadcom 4709 eval board

2014-11-23 Thread Abu Rasheda
On Sun, Nov 23, 2014 at 3:09 AM, Paul Bolle pebo...@tiscali.nl wrote: The depends on line you quoted was added in v2.6.32, which is still supported, so the tree you're using might not be seen as extremely old by everyone. I think it i 3.6.3x where x is I think 4 The above is a verbose way to

using SD card on Broadcom 4709 eval board

2014-11-22 Thread Abu Rasheda
I have been trying to use SD card on Broadcom's 4709 eval board. Linux kernel tree provided with SDK seems to have few SDIO drivers, but non of them seems to be working or more accurately, loading them does not list device in /proc/devices, so I can create block file to mount it. After googling

Re: using SD card on Broadcom 4709 eval board

2014-11-22 Thread Abu Rasheda
depends on B43 SSB_SDIOHOST_POSSIBLE EXPERIMENTAL, EXPERIMENTAL was removed in v3.9. So this concerns a pre-v3.9 tree? Yes, it is 2.6 kernel. I know this is extremely old.I just want to have SD card working, any suggestions ? off the above B43 is only shows up in arch/ppc, You mean

Re: Writing kernel in C

2014-05-26 Thread Abu Rasheda
1. It called TempOS. It is a kernel for educational purpose too. http://tempos-project.org The project is listed in OSDev Wiki too http://wiki.osdev.org/Projects 2. Here's another nice one: https://fosdem.org/2014/schedule/event/04_uk_escape 3. take a look at that [0], it's a small

Re: how tso (tcp segmentation offload) effect TCP bidirectional test sending throughput.

2014-04-11 Thread Abu Rasheda
On Fri, Apr 11, 2014 at 3:10 AM, Varun Sharma vsd...@gmail.com wrote: Hi, if we off tso (tcp segmentation offload) on sending side , *TCP Bidirectional* test sending throughput decrease as compare to *TCP Unidirectional *test sending throughput . whereas if we on tso(tcp segmentation

Re: Non-consistent CPU usage in IP forwarding test

2014-04-03 Thread Abu Rasheda
On Thursday, April 3, 2014, Oleg A. Arkhangelsky syso...@yandex.ru wrote: Hello all, We've got very strange behavior when testing IP packet forwarding performance on Sandy Bridge platform (Supermicro X9DRH with the latest BIOS). This is two socket E5-2690 CPU system. Using different PC

Re: using perf tool

2013-12-08 Thread Abu Rasheda
compiled kernel module on this machine, perf can get path from the binary and locate the source. enjoy. On Fri, Dec 6, 2013 at 7:14 PM, Abu Rasheda rcpilot2...@gmail.com wrote: Guys, I want to annotate Linux kernel module with c-source using perf tool. Is it possible ? can someone points me

Re: module vs main kernel

2013-12-04 Thread Abu Rasheda
rcpilot2...@gmail.com wrote: I have my implementation of socket APIs, I sock_unregister(AF_INET); sock_register(inet_family_ops), this replaces kernel resident socket related calls with my socket related calls. My code is loaded as kernel module. My question, is Linux kernel able to call

module vs main kernel

2013-12-02 Thread Abu Rasheda
I have my implementation of socket APIs, I sock_unregister(AF_INET); sock_register(inet_family_ops), this replaces kernel resident socket related calls with my socket related calls. My code is loaded as kernel module. My question, is Linux kernel able to call its own socket call more

Re: How to avoid packet drop

2013-10-04 Thread Abu Rasheda
I am running a tool that is a packet generator. With that tool i am able to achieve line/link rate on my 1Gbps network. I have two queries Query 1) When i run the same tool on 10Gbps network i am able to achieve only 5Gbps rate.( by network i mean i have two machines with Centos 6.4

Re: valid address space ?

2013-02-25 Thread Abu Rasheda
On Sun, Feb 24, 2013 at 11:23 PM, valdis.kletni...@vt.edu wrote: On Sun, 24 Feb 2013 21:37:48 -0800, Abu Rasheda said: tmp_long_ptr = ((long_ptr 0x8000) ? (long_ptr | 0x8000) : (long_ptr 0x)); This will not do what you think it does when compiled

valid address space ?

2013-02-24 Thread Abu Rasheda
I am trying to dump some kernel data structure (walk e.g. task or file data structure on x86_64 arch). Sometime accessing through a pointer, pointer may not be NULL, but pointing to invalid address due to garbage value. What I am looking for is range of address which are valid for kernel data

Re: valid address space ?

2013-02-24 Thread Abu Rasheda
On Sunday, February 24, 2013, Abu Rasheda wrote: I am trying to dump some kernel data structure (walk e.g. task or file data structure on x86_64 arch). Sometime accessing through a pointer, pointer may not be NULL, but pointing to invalid address due to garbage value. What I am looking

Re: How the follow Starts in Android-Kernel

2013-02-07 Thread Abu Rasheda
On Tue, Feb 5, 2013 ... http://www.linux-arm.org/LinuxBootLoader/SMPBoot http://duartes.org/gustavo/blog/post/how-computers-boot-up for i86 http://duartes.org/gustavo/blog/post/how-computers-boot-up Does something similar exist for MIPS ? Thanks

Re: Any way to do time keeping during kernel uncompression[ARM architecture]

2013-02-06 Thread Abu Rasheda
On Wed, Feb 6, 2013 at 3:53 AM, sandeep kumar coolsandyfor...@gmail.comwrote: Dear All FYI: I got the below data in my board... For Zimage: Copy from eMMC to RAM(bootloader) other stuff in bootloader -- 200msec Kernel relocation --- 1msec Kernel uncompression -- 700msec Total time taken

Re: Module vs Kernel main performacne

2012-06-08 Thread Abu Rasheda
I modified my module (m.c). Still sending buffer from user space using ioctl, but instead of copying data from buffer provided by user, I have allocated (kmalloc) a buffer and I copy from this buffer to another kernel buffer which is allocated each time this module ioclt is invoked.

Re: Module vs Kernel main performacne

2012-06-07 Thread Abu Rasheda
Hello Abu, I had to include linux/module.h or an error was issued about THIS_MODULE. I am running this tool on Scientific Linux 6.0, which is 2.6.32 kernel. I know this is old but this is what I have for my product. What Kernel version are you using? I'm trying to compile it and I'm

Re: Module vs Kernel main performacne

2012-06-07 Thread Abu Rasheda
peter.se...@gmail.com wrote: Hi again! Hi How did you call from Kernel module? In original code, copied data is dmaed and in experimental code data is dropped. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Module vs Kernel main performacne

2012-06-01 Thread Abu Rasheda
the behavior. Abu Rasheda m.tgz Description: GNU Zip compressed data ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Module vs Kernel main performacne

2012-05-31 Thread Abu Rasheda
On Wed, May 30, 2012 at 10:35 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Thu, May 31, 2012 at 4:44 AM, Abu Rasheda rcpilot2...@gmail.com wrote: as I increase size of buffer, insns per cycle keep decreasing. Here is the data:    1k 0.90  insns per cycle    8k 0.43  insns

Re: Module vs Kernel main performacne

2012-05-30 Thread Abu Rasheda
I did another experiment. Wrote a stand alone module and user program which does ioctl and pass buffer to kernel module. User program passes a buffer through ioctl and kernel module does kmalloc on it and calls copy_from_user, kfree and return. Test program send 120 gigabyte data to module. If

Re: Module vs Kernel main performacne

2012-05-30 Thread Abu Rasheda
On Wed, May 30, 2012 at 2:44 PM, Abu Rasheda rcpilot2...@gmail.com wrote: I did another experiment. Wrote a stand alone module and user program which does ioctl and pass buffer to kernel module. User program passes a buffer through ioctl and kernel module does kmalloc on it and calls

Module vs Kernel main performacne

2012-05-29 Thread Abu Rasheda
Hi, I am working on x8_64 arch. Profiled (oprofile) Linux kernel module and notice that whole lot of cycles are spent in copy_from_user call. I compared same flow from kernel proper and noticed that for more data through put cycles spent in copy_from_user are much less. Kernel proper has 1/8

Re: Module vs Kernel main performacne

2012-05-29 Thread Abu Rasheda
What I meant here is, there must be difference speed when you copy onto something contigous vs non contigous. IIRC at least it will waste some portion of L1/L2 cache. When you say, LKM area is prepared with vmalloc is it for code / executable you refering too ? if so will it matter for data

Re: Kernel latency for handling the Network traffic

2012-05-03 Thread Abu Rasheda
On Thu, May 3, 2012 at 6:54 AM, mic...@michaelblizek.twilightparadox.com wrote: Hi! On 16:33 Thu 03 May     , Suresh Kumar Subramanian wrote: Hi, I am building the router based on linux kernel. The hardware details are below, 2 - 64 bit quad core processor (3Ghz core). RAM-  24GB RAM.

Linux kernel networking stack

2011-10-11 Thread Abu Rasheda
I want to embark on journey of learning Linux networking stack. I want suggestions, what is best way to do this. Any book recommendation, any documentation which might exist. Thanks. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Debugging IP packet through Linux stack

2011-09-21 Thread Abu Rasheda
I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Debugging IP packet through Linux stack

2011-09-21 Thread Abu Rasheda
On Wed, Sep 21, 2011 at 10:26 PM, Abu Rasheda rcpilot2...@gmail.com wrote: I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue. I discovered that /proc/net/snmp files

Re: Compiling kernel module ...

2011-08-06 Thread Abu Rasheda
On Fri, Aug 5, 2011 at 5:10 PM, Akash email2akashj...@gmail.com wrote: Use #if like * *#define KERNEL_VERSION(a,b,c) (((a) 16) + ((b) 8) + (c)) #if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 33) // New socket create function #else // Old socket create function

Compiling kernel module ...

2011-08-05 Thread Abu Rasheda
I am compiling my driver and have run into following scenario. Socket create function got a new parameter in Vanila kenrel 2.6.33. while Scientific Linux has it back ported to 2.6.32. How do I handle this kind of situation ? so that my driver compiles for both kernel versions.

Re: Linux kernel test suites

2011-05-23 Thread Abu Rasheda
Thank to all of you who replied. I will check these out. Abu Rasheda On Sun, May 22, 2011 at 9:40 PM, sanjeev sharma sanjeevsharmae...@gmail.com wrote: Hey, You can refer Autotest. Thanks Sanjeev sharma On Sat, May 21, 2011 at 5:03 AM, Abu Rasheda rcpilot2...@gmail.com wrote: Can

Fwd: Sleep and Wake up

2011-05-02 Thread Abu Rasheda
I am testing my driver on much faster host processor and facing following issues: My host is too powerful and it can fill up device buffer queue very fast. What kind of device is this? its a networking device It sounds like a broken device, you need to be able to handle large data