Re: Bond, round robin mis-config​uration.

2011-07-31 Thread Peter Senna Tschudin
that justify the check. > > Thank you, >            Eduard > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > Peter -

Re: Bond, round robin mis-config​uration.

2011-07-31 Thread Peter Senna Tschudin
erface is transmiting ( the one which was the active). > > Thanks in advance, >           Eduard > > 2011/7/31 Peter Senna Tschudin : >> Hi Eduard, >> >> On Sun, Jul 31, 2011 at 4:59 AM, Eduard Sinelnikov >> wrote: >>> Hi, >>> >

Current and correct CPU clock and asm("cpuid")

2011-10-02 Thread Peter Senna Tschudin
effects of "asm("cpuid");" Does it ensure that the entire process will run on the same CPU, and will serialize it avoiding out of order execution by the CPU? Thank you very much! :-) Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36

Re: Current and correct CPU clock and asm("cpuid")

2011-10-03 Thread Peter Senna Tschudin
Hi Rohan. It is really good reference. Thanks! Peter On Mon, Oct 3, 2011 at 1:17 AM, rohan puri wrote: > > > On Mon, Oct 3, 2011 at 6:57 AM, Peter Senna Tschudin > wrote: >> >> Dear list members, >> >> I'm following: >> >> http://peop

Re: Current and correct CPU clock and asm("cpuid")

2011-10-03 Thread Peter Senna Tschudin
hz core speed (speaking of PowerPC > http://en.wikipedia.org/wiki/PowerPC_e500), the fastest execution is > 600 millions instruction per sec, assuming the instruction is one insn > per clock.   With this kind of speed, TSC is a very bad for measuring > time differences. This is my mis

Re: Current and correct CPU clock and asm("cpuid")

2011-10-04 Thread Peter Senna Tschudin
: http://www.ccsl.carleton.ca/~jamuir/rdtscpm1.pdf The section 3 describes how to deal with out of order execution and L1 cache. Thanks! Peter On Mon, Oct 3, 2011 at 9:57 PM, Peter Teoh wrote: > On Tue, Oct 4, 2011 at 2:57 AM, Peter Senna Tschudin > wrote: >> Hi Peter, >>

Re: Current and correct CPU clock and asm("cpuid")

2011-10-06 Thread Peter Senna Tschudin
rgotten to mention that my hpet output is from > x86 arch.   Anyway, TSC is nevertheless a valid timer, after some > research, I found its resolution is as good as HPET: > > http://aufather.wordpress.com/2010/09/08/high-performance-time-measuremen-in-linux/ > > But it did highlight lots

Re: Measuring time in range of microseconds.

2011-12-06 Thread Peter Senna Tschudin
___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mai

Re: Measuring time in range of microseconds.

2011-12-06 Thread Peter Senna Tschudin
[]'s Peter On Tue, Dec 6, 2011 at 9:06 AM, Sathishkumar Duraisamy wrote: > Hi Peter, > > Thanks for rdtsc. But I looking to measure time inside Linux Kernel > Module in ARM architecture. > > -- > Regards, > Sathishkumar D > http://flowersopenlab.weebly.com/

Google Summer of Code 2012

2012-02-08 Thread Peter Senna Tschudin
Hello, Are there plans for 2012 GSoC Kernel works? Is this the right place for asking? Regards, Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http

Re: Google Summer of Code 2012

2012-02-08 Thread Peter Senna Tschudin
work Any idea about how to get involved in Linux Foundation Google Summer of code? Thank you! -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.or

How to measure performance inside Kernel?

2012-02-09 Thread Peter Senna Tschudin
ch ( ?? ); /* end measurement */ And is this the correct approach for testing the performance of specific portion of Kernel code? Thank you! Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to measure performance inside Kernel?

2012-02-10 Thread Peter Senna Tschudin
rder execution engine, brake the stopwatch? The full module code is at: http://goo.gl/cCMIa Thank you! Peter On Thu, Feb 9, 2012 at 10:58 AM, Peter Senna Tschudin wrote: > Dear list, > > I'm looking for a way to compare the performance of two different > codes inside Kernel.

Re: How to measure performance inside Kernel?

2012-02-10 Thread Peter Senna Tschudin
,92,98,75,102,102,129,102,99,102,99,108,92,110,125,107,110,102,96,96,117,72,108,123,105,120,120,99,120,98,104,89,102,117,129,123,105,119,107,101,87,117,111,99,108,117,114,114,90,122,113,95,104,125,113,102,108,120,90,108,93,89,86,87,90,84,83,108,99,102,90,108,90,108,87,95,86,90,123,135,93,126,93,102,99,123,108,117,105,102,105,98,107,122,119,125,96,108,131,99,114,104,93,96,95,83,99,84,92,87, The geometrical mean of the values is: 104.7623578604 Isn't it enough? Thanks! :-) --

Re: How to measure performance inside Kernel?

2012-02-11 Thread Peter Senna Tschudin
;m using is at: http://goo.gl/cCMIa What's wrong? []'s Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to measure performance inside Kernel?

2012-02-11 Thread Peter Senna Tschudin
e, it may affect only one result. But I'll check other functions. Thanks! Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to measure performance inside Kernel?

2012-02-11 Thread Peter Senna Tschudin
60108 Original_code: 37.8944950594 The graph is at: http://i.imgur.com/nPjTE.jpg Source: http://goo.gl/cCMIa Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to measure performance inside Kernel?

2012-02-13 Thread Peter Senna Tschudin
types errors when trying it. Any ideas? -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: [QUESTION] staging/easycap fix

2012-02-15 Thread Peter Senna Tschudin
great. > >> Also, I'm reading driver cx231xx as it's also an usb video capture. >> Do you think it's a good code reference? Can you give me further reference? > > I don't know, ask the linux-media developers on their list for a good > reference driver to fo

Re: How to figure out the byteorder only with one byte number?

2012-02-18 Thread Peter Senna Tschudin
lnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Initramfs error during boot

2012-02-27 Thread Peter Senna Tschudin
Hi! >No init found. Try passing init= bootarg. How are you generatig your initrd? You may need to follow: https://wiki.ubuntu.com/KernelTeam/GitKernelBuild and/or: https://help.ubuntu.com/community/Kernel/Compile []'s Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id:

suspicious RCU usage?

2012-03-04 Thread Peter Senna Tschudin
* return 1 if pid is not running */ int yfkm2_is_pid_running(pid_t pid) { struct task_struct *q; q = find_task_by_vpid(pid); if (q != NULL && q->pid == pid) return 0; return 1; } Thank you! Peter -- Peter

Re: [Q] tracing/printing

2012-03-15 Thread Peter Senna Tschudin
ubscribe linux-media" in > the body of a message to majord...@vger.kernel.org > More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Hooking a system call.

2012-03-26 Thread Peter Senna Tschudin
There are many syscall examples for systemtap at: http://sourceware.org/systemtap/examples/ On Mar 26, 2012 6:09 AM, "Mulyadi Santosa" wrote: > On Mon, Mar 26, 2012 at 15:14, V.Ravikumar > wrote: > > But in my sample module example code for intercepting system call. how > can > > I make system_

Idea for Google Summer of Code

2012-03-27 Thread Peter Senna Tschudin
and this may be the most time consuming part of the project. -- // -- Is this a possible idea to Google Summer of Code? Thanks, Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernel

Driver for UPS

2012-04-08 Thread Peter Senna Tschudin
cupsd (http://www.apcupsd.org/) that are not what I'm looking for. Any references about APC UPS + Kernel are welcome. Thanks! Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Ker

kerneloops.org

2012-04-24 Thread Peter Senna Tschudin
Hi, Is someone working on a replacement for kerneloops.org? Is working on a replacement something welcome? Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http

UPS driver

2012-05-05 Thread Peter Senna Tschudin
OLOGY_NiCd, POWER_SUPPLY_TECHNOLOGY_LiMn, + POWER_SUPPLY_TECHNOLOGY_PbH2SO4, }; enum { --//-- Any idea if the maintainers are accepting drivers for devices like this UPS? Kind Regards, Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id

usbserial != serial

2012-05-07 Thread Peter Senna Tschudin
figure it out the address range for usb-serial /dev/ttyUSB0? There is nothing at /proc/ioports. My device uses cypress_m8 and usbserial modules. How bad is using filp_open() to open /dev/ttyUSB0? Thanks, Peter -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36

Re: Module vs Kernel main performacne

2012-06-07 Thread Peter Senna Tschudin
> Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Module vs Kernel main performacne

2012-06-07 Thread Peter Senna Tschudin
./prog > > for oprofile: > > # opcontrol --reset > # opcontrol --vmlinux=/boot/vmlinux.64 > # opcontrol --start > # ./a.out > # opcontrol --shutdown > # opreport -l -p Thanks! I'll try it now. I've made changes to your code, so it "prob

Re: Module vs Kernel main performacne

2012-06-07 Thread Peter Senna Tschudin
nel module? > > > So obviously, CPU is stalling when it is copying data and there are > more cache misses. My question is, is there a difference calling > copy_from_user from kernel proper compared to calling from LKM ? > > _______ > Kerne

Re: modules in Initramfs

2012-06-14 Thread Peter Senna Tschudin
rainer and consultant >> >> blog: the-hydra.blogspot.com >> training: mulyaditraining.blogspot.com > > > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- Peter Senna Tschudin peter.se...@gmail.com gpg id: 48274C36 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Kernel 3.4 compile problem

2012-06-19 Thread Peter Senna Tschudin
>> Traceback (most recent call last): >>    File "/mnt/sda4/Kaan/Dökümanlarım/Özgür Çalışmalarım ve >> diğerleri/kaan.aksit/2011/kernel/default/kernel/actions.py", line 39, in >> install >>      kerneltools.installLibcHeaders() >>    File "/usr/lib/pardu

How to automatically get subsystem name for a file?

2012-10-01 Thread Peter Senna Tschudin
I'm trying to figure it out how to automatically get the correct subsystem string for putting on the first line of the commit message / subject of the patch message. For example: Subject: [PATCH 001/142] arch/x86: Replace memcpy with struct assignment ^^^

Re: Advice on first patch

2012-10-03 Thread Peter Senna Tschudin
Matthew, The file drivers/net/wan/cosa.c has many lines like: return -1; and err = -1; goto err_out; Returning -1 is not the default way of returning error codes. Take a look at http://lxr.free-electrons.com/source/include/asm-generic/errno-base.h for a small list of error codes. There is also

Re: any way to see the running kernel's "vermagic" string?

2012-10-16 Thread Peter Senna Tschudin
http://plastilinux.blogspot.fr/2009/11/how-to-know-version-of-kernel-without.html On Tue, Oct 16, 2012 at 4:59 PM, Chinmay V S wrote: > Isn't "uname -r" on the console good enough?... > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.or

Re: any way to see the running kernel's "vermagic" string?

2012-10-16 Thread Peter Senna Tschudin
See what I've found: http://www.kernel.org/pub/linux/kernel/people//akpm/patches/2.6/2.6.6-rc3/2.6.6-rc3-mm2/broken-out/proc-sys-kernel-vermagic.patch On Tue, Oct 16, 2012 at 5:06 PM, Robert P. J. Day wrote: > On Tue, 16 Oct 2012, Chinmay V S wrote: > >> Isn't "uname -r" on the console good enoug

Re: looking for current, online kernel-related tutorials

2012-10-18 Thread Peter Senna Tschudin
Robert, I like this: http://www.freesoftwaremagazine.com/articles/drivers_linux It is not current but not very old. Peter On Wed, Oct 17, 2012 at 12:38 AM, Robert P. J. Day wrote: > > regarding kernel programming tutorials i'm currently > writing/updating: > > On Tue, 16 Oct 2012, Sarah Shar

Linux stable test kernels

2012-11-13 Thread Peter Senna Tschudin
Dear list, Where / how can I get latest Linux stable test kernels like 3.0.51-rc1, 3.4.18-rc1, and 3.6.6-rc1? Thanks, Peter -- Peter ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernel

Re: Linux stable test kernels

2012-11-13 Thread Peter Senna Tschudin
On Tue, Nov 13, 2012 at 11:31 AM, Luis R. Rodriguez wrote: > On Tue, Nov 13, 2012 at 2:28 AM, WANG Chao wrote: >> On 11/13/2012 05:36 PM, Peter Senna Tschudin wrote: >>> Dear list, >>> >>> Where / how can I get latest Linux stable test kernels like >&

Strange Makefile rule

2013-08-20 Thread Peter Senna Tschudin
I do not have cross compile environment but I'm curious how the Makefile rule works: linux-next]$ cat drivers/net/ethernet/arc/Makefile obj-$(CONFIG_ARC_EMAC) += arc_emac.o There is no file named arc_emac.h and arc_emac.c at drivers/net/ethernet/arc, so what does that line do? -- Peter __

Re: Strange Makefile rule

2013-08-20 Thread Peter Senna Tschudin
On Tue, Aug 20, 2013 at 6:50 PM, Randy Dunlap wrote: > On 08/20/13 09:42, Peter Senna Tschudin wrote: >> I do not have cross compile environment but I'm curious how the >> Makefile rule works: >> >> linux-next]$ cat drivers/net/ethernet/arc/Makefile >> &

What are the source files for a given Kconfig symbol?

2013-08-22 Thread Peter Senna Tschudin
I'm writing scripts to get source code files for a given Kconfig symbol such as ALX. I'm expecting something like: ./scripts/Kconfig-files.pl ALX drivers/net/ethernet/atheros/alx/alx.h drivers/net/ethernet/atheros/alx/main.c drivers/net/ethernet/atheros/alx/ethtool.c drivers/net/ethernet/atheros/a

Re: Greg KH showed a trick to compiled one file - how to?

2013-10-14 Thread Peter Senna Tschudin
I use something like: linux-next]$ make drivers/net/ethernet/intel/e100.o Note the .o as extension... On Mon, Oct 14, 2013 at 8:53 PM, Matthias Beyer wrote: > Hi there! > > Greg KH showed a method to compile only one file on fosdem (11 I > guess, just saw it on youtube) by writing: > > make

My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-04 Thread Peter Senna Tschudin
I have reported a bug more than two years ago and it is still affecting me. The bug report gives some information: https://bugzilla.redhat.com/show_bug.cgi?id=787299 I have tried basic debug instructions from: https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt And everything w

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-05 Thread Peter Senna Tschudin
On Mar 5, 2014 9:27 AM, "walter harms" wrote: > > > > Am 04.03.2014 22:26, schrieb Peter Senna Tschudin: > > I have reported a bug more than two years ago and it is still > > affecting me. The bug report gives some information: > > > > https://bugzil

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-07 Thread Peter Senna Tschudin
ple to magically pick stuff out of the LKML firehose :) >> >> On Tue, Mar 4, 2014 at 2:26 PM, Peter Senna Tschudin >> wrote: >>> >>> I have reported a bug more than two years ago and it is still >>> affecting me. The bug report gives some informatio

Re: Measuring Network Packet processing time

2014-04-08 Thread Peter Senna Tschudin
You need to know exactly what you are doing for using rdtsc. There are some external factors that affect the counting such as dynamic clock, and out of order execution. I'm not sure that rdtsc registers are synchronized on different CPUs. Some code for you to play with: https://github.com/petersenn

Linux on PS4?

2014-04-14 Thread Peter Senna Tschudin
Did anyone succeed to run Linux on a Playstation 4? If so can one share instructions with me? Do one want help for making it happen? I would love to have a PS4 as a high end, compact, and cheap workstation for compiling Kernels... -- Peter ___ Kernelne

Re: Kernel Projects

2014-04-22 Thread Peter Senna Tschudin
I would recommend: http://eudyptula-challenge.org/ On Tue, Apr 22, 2014 at 7:22 PM, Julio Faracco wrote: > Hi, > > Does anybody know if there is a program to offer small (or big) kernel > projects to students or someone who are interested in? > > I'm looking for programs like Google Summer of Co

Re: [PATCH RFC] Remove useless return variables

2014-05-18 Thread Peter Senna Tschudin
Added CC: triv...@vger.kernel.org On Sun, May 18, 2014 at 7:04 AM, Andi Kleen wrote: > Peter Senna Tschudin writes: > >> This patch remove variables that are initialized with a constant, >> are never updated, and are only used as parameter of return. >> Return the con

Re: Writing kernel in C

2014-05-26 Thread Peter Senna Tschudin
Here's another nice one: https://fosdem.org/2014/schedule/event/04_uk_escape/ On Mon, May 26, 2014 at 1:57 PM, Julio Faracco wrote: > Hi Saurabh! > > This is a project of a friend of mine. > It called TempOS. It is a kernel for educational purpose too. > > http://tempos-project.org/ > > The proje

Re: Implementing a NFS proxy

2014-06-05 Thread Peter Senna Tschudin
I would start here: http://serverfault.com/questions/401312/how-to-create-an-nfs-proxy-by-using-kernel-server-client On Thu, Jun 5, 2014 at 8:53 AM, Ramana Reddy wrote: > Hi all, > > I want to implement a minimal skeleton of NFS proxy. > Is there any place where I can look at and find some useful

Re: Trace system call

2014-06-08 Thread Peter Senna Tschudin
I would start here: http://sourceware.org/systemtap/examples/keyword-index.html#SYSCALL On Sun, Jun 8, 2014 at 9:58 AM, Anil Joshi wrote: > Hi All, > > I am all new to this area so please sorry in advance if i am asking a wrong > a wrong query. > I made an client server program,i have to trace th

Re: Trace system call

2014-06-08 Thread Peter Senna Tschudin
hat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/SystemTap_Beginners_Guide/ This guide will help you setup your environment for running Systemtap and writing your scripts. > > > On Sun, Jun 8, 2014 at 6:49 PM, Peter Senna Tschudin > wrote: >> >> I would

Re: [kernelnewbies]a question about checkpatch.pl

2014-06-08 Thread Peter Senna Tschudin
I see two problems: 1 - You are running as root. This do not cause the error message but it is way too dangerous. Don't compile, and test as root. 2 - The correct way of invoking checkpatch.pl is from the top-level dir. of a kernel tree. Example: cd /path/to/linux/source ./scripts/checkpatch.pl -

Re: Problems with Linux next tree

2014-07-14 Thread Peter Senna Tschudin
Lucas, What do you get if you do: $ git remote update On Mon, Jul 14, 2014 at 11:04 PM, Lucas Tanure wrote: > For now, the easier way is to re-clone the tree. > -- > Lucas Tanure > +55 (19) 988176559 > > > On Mon, Jul 14, 2014 at 5:57 PM, Benedict Börger > wrote: >> Hi Lucas, >> >> >> On 14.07

Re: Trial Patch

2014-09-09 Thread Peter Senna Tschudin
On Tue, Sep 9, 2014 at 3:45 PM, Greg Freemyer wrote: > > > On September 8, 2014 11:08:46 PM EDT, nick wrote: >>I am attaching a trial patch again , please let me known if there are >>any issues for me to fix. >>Nick > > Nick, I guess you know this list is a training ground for the main lists. As

Re: Test RAM read/write speed

2014-09-30 Thread Peter Senna Tschudin
I use the memtest86+ numbers about memory speed. It gives numbers for RAM and different cache levels. On Mon, Sep 29, 2014 at 11:42 PM, wrote: > On Tue, 30 Sep 2014 02:53:05 +0530, Ssagarr Patil said: > >> Is there any benchmarking tool to test read/write speed on Linux and which >> works on AR

Re: Test RAM read/write speed

2014-09-30 Thread Peter Senna Tschudin
On Tue, Sep 30, 2014 at 10:02 PM, Ssagarr Patil wrote: > Hi, > > >> Date: Tue, 30 Sep 2014 17:49:42 +0200 >> Subject: Re: Test RAM read/write speed >> From: peter.se...@gmail.com >> To: valdis.kletni...@vt.edu >> CC: hugarsa...@outlook.com; kernelnewbies@ke

Re: [PATCH] staging: Fix spacing between function name and parentheses

2014-10-11 Thread Peter Senna Tschudin
I think that, in this case, checkpatch.pl contributed: $ ./scripts/checkpatch.pl -f drivers/staging/octeon-usb/octeon-hcd.c WARNING: space prohibited between function name and open parenthesis '(' #415: FILE: drivers/staging/octeon-usb/octeon-hcd.c:415: + if (c.s.field op (va

Documentation/DMA-API-HOWTO.txt

2014-10-24 Thread Peter Senna Tschudin
There is a portion of DMA-API-HOWTO.txt that was not updated for a long time. -- // -- This means specifically that you may _not_ use the memory/addresses returned from vmalloc() for DMA. It is possible to DMA to the _underlying_ memory mapped into a vmalloc() area, but this requires walking page

Documentation/DMA-API-HOWTO.txt 2

2014-10-24 Thread Peter Senna Tschudin
This was edited in 2010, but the original is more than 9 years old, and still there are some drivers using virt_to_bus() and bus_to_virt(). -- // -- All drivers should be using these interfaces with no exceptions. It is planned to completely remove virt_to_bus() and bus_to_virt() as they are enti

Kconfig options and make command line

2014-10-26 Thread Peter Senna Tschudin
I was trying to compile the file: drivers/staging/rtl8723au/core/rtw_ap.c but $ make drivers/staging/rtl8723au/core/rtw_ap.o doesn't work as there is no Makefile at core directory. Doing: $ make drivers/staging/rtl8723au/ doesn't work also as rtw_ap.c is only compiled under certain Kconfig c

Re: Kconfig options and make command line

2014-10-26 Thread Peter Senna Tschudin
Sorry for the noise. $ make allyesconfig drivers/staging/rtl8723au/ does the trick. On Sun, Oct 26, 2014 at 9:19 AM, Peter Senna Tschudin wrote: > I was trying to compile the file: > > drivers/staging/rtl8723au/core/rtw_ap.c > > but > > $ make drivers/staging/rt

Re: Can I submit simple patches like this to the primary ML?

2015-01-29 Thread Peter Senna Tschudin
On Thu, Jan 29, 2015 at 12:27 PM, Vinícius Tinti wrote: > On Thu, Jan 29, 2015 at 3:07 AM, Greg KH wrote: > > On Thu, Jan 29, 2015 at 02:16:51AM -0200, Vinícius Tinti wrote: > >> On Thu, Jan 29, 2015 at 2:08 AM, Greg KH wrote: > >> > On Thu, Jan 29, 2015 at 01:48:43AM -0200, Vinícius Tinti wrot

Re: Qemu configuration question

2015-06-18 Thread Peter Senna Tschudin
Hello Sebastien, Getting better? > When running my configured kernel in Qemu, poweroff does not work > properly: the machine is halted but the kvm process that runs it does > not terminate, whereas it does so when powering off the machine after > having booted a regular Debian kernel. > > Current

Logging communication with devices

2015-10-04 Thread Peter Senna Tschudin
Does Linux provide an elegant and/or standard way of logging communication with devices that manage buffers and that can help me improve code like: $ cat drivers/usb/host/fotg210-hcd.c ... temp = snprintf(next, size, "\n\t%p%c%s len=%d %08x urb %p",

Re: Mentor

2015-11-02 Thread Peter Senna Tschudin
Hi, On Mon, Nov 2, 2015 at 4:59 PM, Ranjith T wrote: > Hi, > > I am Ranjith from India and I would like to contribute something for > linux kernel. But I really don't know from where I have to start.(I > have submitted linux kernel patch already). I would suggest you to start with the Eudyptula

Re: Trivial patches and lots of maintainers

2015-12-28 Thread Peter Senna Tschudin
Hello Manuel, On Mon, Dec 28, 2015 at 4:08 PM, Manuel Pégourié-Gonnard wrote: > Hi, > > When submitting trivial patches such as fixing typos in comments, should I > always Cc all people suggested by get_maintainer.pl? Sending to everyone pointed by get_maintainer.pl is usually a good idea. > >

kernel.googlesource.com not updated for a week

2016-03-14 Thread Peter Senna Tschudin
Hi, At least https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next/ and https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux/ are not updated for approximately a week. Even if git.kernel.org is working fine, does anyone know why kernel.googlesource.com is

Replying to E-mails I did not receive

2016-07-03 Thread Peter Senna Tschudin
Hi! I tested a few patches sent to lists I'm not subscribed to. I want to reply to the thread with my "Tested-by: " and "Acked-by:", but I'm not sure what is the best way to do it. Is it enough to simply compose a new message with the original text as a reply to the correct message id? How you u

Re: Replying to E-mails I did not receive

2016-07-03 Thread Peter Senna Tschudin
On Jul 3, 2016 17:10, wrote: > > On Sun, 03 Jul 2016 13:10:42 +0200, Peter Senna Tschudin said: > > Hi! > > > > I tested a few patches sent to lists I'm not subscribed to. I want to > > reply to the thread with my "Tested-by: " and "Acked-by:&qu

Re: check if a kernel page is read-only

2016-09-06 Thread Peter Senna Tschudin
On Mon, Sep 5, 2016 at 6:57 PM, wrote: > On Mon, 05 Sep 2016 12:59:46 +0200, Oscar Salvador said: > >> I'm writing a module to read/write kernel memory, and for this I'd like to >> check if a page is marked as read-only > > Actually, you almost certainly want to do a *much* stricter check than >

Re: udelay vs usleep_range

2016-09-11 Thread Peter Senna Tschudin
Hi Gargi, On Sun, Sep 11, 2016 at 5:58 PM, Gargi Sharma wrote: > Hi all, > > I ran the checkpatch script over drivers/staging/nvec.c and got the > following warning > > udelay(33); > > CHECK: usleep_range is preferred over udelay; see > Documentation/timers/timers-howto.txt Which version of che

Re: Is kernel Bugzilla a good way to start?

2016-12-22 Thread Peter Senna Tschudin
I would give http://eudyptula-challenge.org/ a try. Guess is the fastest and coolest way to get started. 2016-12-22 17:21 GMT+01:00 Dennis Semakin : > > Hi everybody. > I just thought that may be it will be quicker to start to develop for > kernel. > > -- > Отправлено из мобильного приложения Янде

Re: patch protocol question

2017-03-07 Thread Peter Senna Tschudin
On Tue, Mar 7, 2017 at 10:29 PM, Tobin C. Harding wrote: > I would like to know the correct protocol in order to make the > maintainers job as easy as possible please. > > Once a patch has been reviewed and the review makes good points that > mean the patch is invalid/unnecessary what is the proto

Re: coccinelle

2017-03-14 Thread Peter Senna Tschudin
I guess this is off topic on this list. There is an specific Coccinelle mailing list: https://systeme.lip6.fr/mailman/listinfo/cocci On Tue, Mar 14, 2017 at 8:21 AM, Tobin C. Harding wrote: > Attempting to do transform using Coccinelle > > if (foo != 0) { >... > > -> > > if (foo) { >.

Re: What is the fastest way to build and boot a kernel

2017-04-18 Thread Peter Senna Tschudin
On Tue, Apr 18, 2017 at 7:38 PM, Code Soldier1 wrote: > Hi Greg, > > No I did not know about 'make localmodconfig'. Can you kindly explain. > As far as the change is concerned I am planning to change a few things > and experiment, so there is nothing specific. Check this out: https://lwn.net/Art

Re: Need help with tracepoints

2017-04-29 Thread Peter Senna Tschudin
On Sat, Apr 29, 2017 at 1:46 PM, Peter Senna Tschudin wrote: > Hello Matwey, > > This doesn't answer your question, but did you take a look at perf and > it's ability to do trace points? > > See this link: http://www.brendangregg.com/perf.html#Tracepoints I actuall

Re: Need help with tracepoints

2017-04-29 Thread Peter Senna Tschudin
Hello Matwey, This doesn't answer your question, but did you take a look at perf and it's ability to do trace points? See this link: http://www.brendangregg.com/perf.html#Tracepoints On Sat, Apr 29, 2017 at 12:52 PM, Matwey V. Kornilov wrote: > Hello, > > I am following trace/tracepoints.txt gu