Re: Improve my Rep

2014-09-15 Thread Valdis . Kletnieks
On Mon, 15 Sep 2014 15:13:42 -0600, Jake Campbell said: Is there any other challenges out there similar to Eudyptula that Nick could follow instead since he was kicked out? The vast majority of such things have a must be able to follow the rules and guidelines requirement, so I fear Nick may

Re: My simple kernel module wont compile

2014-09-11 Thread Valdis . Kletnieks
On Thu, 11 Sep 2014 16:13:58 +0200, testlaster said: The first line didn't work because I seem to not have a build directory there. Hopefully, that /usr/src/linux-headers directory is an exact match for the kernel you're planning to use the module in. make[2]: *** No rule to make target

Re: Page fault in kernel code

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 14:45:23 +0530, Manavendra Nath Manav said: But if the total RAM is limited (less than 896MB LOWMEM), for example as in embedded devices how the kernel code be kept in RAM all the time. Am I correct to assume that the kernel pre-fetches all pages when entering kernel mode

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 20:26:48 +0300, Ran Shalit said: What is usually the criterion for PM (power management) suspending that application shall use ? Is it according to minimum threshold for cpu load (as indication for no process) ? That will be highly application dependent. Something that

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 21:23:28 +0300, Ran Shalit said: As far as I understand, suspend/respond PM is not per device, but for all system, and wakeup source will resume again the whole system. I think you mean runtime suspend/resume in the answer. The original question didn't specify. You said

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 21:58:48 +0300, Ran Shalit said: 1. How can I make a process to notice this inactivity ? Do you think it can be implemented by some periodic process who check if there is activity ? It returns to the original question I raised, that I will use some periodic process who

Re: Package Installation Error

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 06:51:28 -0500, Greg Donald said: You need to find the actual package name for your system: apt-cache search curses | grep dev It's possible he's missing entries in his /etc/apt/sources.list and/or /etc/apt/sources.d/* or wherever his distro puts such things. Of course,

Re: hi Questiion about Eudyptula Challenge Task 05

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 17:46:33 +0530, Sudip Mukherjee said: No new udev rule is needed. If you truly understood the point of task 5, this is all the clue you need to fix it. And that's all the hint I'm giving on this one. :) pgpBCBf2npxdK.pgp Description: PGP signature

Re: x86_64_defconfig and i386_defconfig: What is the difference?

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 07:58:49 -, Rajat Jain said: Can someone tell me if the i386 one is to be used when we want to build for a 32bit machine and the x86_64 is to be used for 64 bit machine? I wouldn't run either one on an actual machine. Defconfigs are *example* configs, only useful as a

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 08:22:59 -0400, nick said: This patch is wrong, checkpatch errors. I am attaching another fixed version. *yawn* You still didn't even fix the typos in comments. Not Worth The Effort To Review. pgpOHhaJ8TGxQ.pgp Description: PGP signature

Re: x86_64_defconfig and i386_defconfig: What is the difference?

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 16:19:54 +0200, Paul Bolle said: (I remember seeing tutorials that show you how to generate a .config from scratch. I wonder whether anyone actually does that. Distros did that originally. Now they just keep delta'ing their known-working config. The pain involved was part

Re: x86_64_defconfig and i386_defconfig: What is the difference?

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 16:06:07 +0200, Matthias Brugger said: Can someone tell me if the i386 one is to be used when we want to build for a 32bit machine and the x86_64 is to be used for 64 bit machine? You can build the kernel with any architecture for any architecture. This is called

Re: hi Questiion about Eudyptula Challenge Task 05

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 20:14:48 +0530, Jeshwanth Kumar N K said: If you have any doubt please ask little only, he will reply for sure. Better not to ask questions in public mailing list. Which is why I gave a cryptic answer that's totally correct, and yet makes no sense unless you already

Re: Page fault in kernel code

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 18:53:55 +0530, Manavendra Nath Manav said: Why is it so? Why can't kernel mode code handle the page fault and reload the page from swap? Also, can page fault occur when kernel is executing in process context and/or interrupt context? There's no inherent chiseled-in-stone

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 11:52:20 -0400, Nick Krause said: I understand that , sorry Guys. I am going to fix this later including my spell checks. Don't bother. pgpcXduwFWoHJ.pgp Description: PGP signature ___ Kernelnewbies mailing list

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 17:16:19 -0400, nick said: I am sending this in again fixed and working. Typos are still there, and zero explanation of how you verified fixed and working, which given your track record of failing to even compile test your code is a *big* show-stopper. If you don't care

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 21:21:18 -0400, nick said: Not going to execute, I wasn't sure if that statement needs to be executed. skb = dev_alloc_skb(frag_length + 4); + if (skb == NULL) { + skb_queue_purge(priv-rtllib-skbwaitQ[TXCMD_QUEUE]; +

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 22:56:10 -0400, nick said: OK. It's official. I see *zero* possibility that you'll ever manage to write an acceptable patch. This is *still* wrong. Care to explain. No. Please go figure it out for yourself. pgpIluHFvWDJG.pgp Description: PGP signature

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 23:53:50 -0400, nick said: Build Error. Fixed it. I need to really check my patches first :(. How many times have you done that now? In addition, I want you to forget about and not reply to any patches you known I haven't build tested. No, it doesn't work like that. Each

Re: Trial Patch

2014-09-08 Thread Valdis . Kletnieks
On Mon, 08 Sep 2014 23:08:46 -0400, nick said: I am attaching a trial patch again , please let me known if there are any issues for me to fix. Executive summary: Many. Most of which you've been told about before. This patch checks in fw_download_code for if the allocated skb is NULl.

Re: Package Installation Error

2014-09-08 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 09:20:42 +0530, Niamathullah sharief said: *** Install ncurses (ncurses-devel) and try again. but when i try to install ncurses i am getting as ncurses is already new one. On many systems, packages are split into two parts - the part needed to run already-compiled

Re: Resources to teach from C to Kernel Development?

2014-09-02 Thread Valdis . Kletnieks
On Thu, 28 Aug 2014 20:49:01 +0100, Ed Holmes said: Can you recommend me any books or online resources to teach a C programmer Kernel development? I can program in C but I don't really know where to go from there. I've tried the Eucalyptus challenge but it just suggests things to try. No

Re: The start physical and virtual address of NUMA memory node

2014-09-02 Thread Valdis . Kletnieks
On Tue, 02 Sep 2014 02:27:27 +0900, J.Hwan Kim said: My embedded system says no numa configuration information through kernel message. Are you sure your hardware is in fact NUMA? Did you build your kernel with NUMA support? And are you just curious what the configuration is, or does it

Re: Recent Kernels failing to boot?

2014-09-02 Thread Valdis . Kletnieks
On Tue, 02 Sep 2014 12:14:28 +0100, John Whitmore said: I'm not even sure that this is the correct home for this question but sure it's worth a punt. I'm running OpenSUSE on a netbook and use it to compile and install the latest kernel from Linus's git repo. OK... So you have a git tree handy

Re: How to safely access inode/dentry obtained from struct page *?

2014-08-31 Thread Valdis . Kletnieks
On Sat, 30 Aug 2014 10:41:16 +0530, Joshi said: I am trying to obtain file name at block layer level (above IO scheduler). Nope. Won't work. There is no single unique name for a file. Consider: touch a ln a b There's now 2 names for the same inode. And why should the block level care about

Re: ?

2014-08-29 Thread Valdis . Kletnieks
On Fri, 29 Aug 2014 18:03:33 +0200, Ravi Raj said: We want to design our own coustom board and we dont want to depend on the Board support package vendors. It's GPL. So you buy the board, get the initial copy of the kernel already ported, and then do your own work from

Re: Kernel Programming

2014-08-28 Thread Valdis . Kletnieks
On Thu, 28 Aug 2014 15:33:21 +0530, Prudhvee Narasimha Sadha said: Hi, I have learnt the basic OS concepts and I'm pretty good at c. Now I need to really work on it. *WHY* do you need to work on it? Do you just want something for your resume? Has your boss ordered you to write a specific

Re: What part of the kernel code maintains /proc/modules

2014-08-28 Thread Valdis . Kletnieks
On Wed, 27 Aug 2014 16:55:23 -0700, StephanT said: Just want to know why in /proc/modules some of the modules are marked (F). Li ke: usb_storage 56610 0 - Live 0xa005d000 (F) kernel/modules.c has a function module_flags_taint(): static size_t module_flags_taint(struct module *mod,

Re: Btrfs Issues

2014-08-28 Thread Valdis . Kletnieks
On Wed, 27 Aug 2014 21:30:54 -0700, Manish Katiyar said: No I just pulled it out and then I get this error. Maybe this is normally when not unmounted? This is expected then. It was middle of a journal transaction when you pulled the device out. I wonder if we'll get to watch Nick debug

Re: values from pci_dev or read from config space - pci

2014-08-26 Thread Valdis . Kletnieks
On Tue, 26 Aug 2014 08:33:18 +0200, Oscar Salvador said: If I get the IRQ from the pci_dev, I get a X, but if I get the IRQ from the config space, I get another different number Y. Would be you so kind to explain: 1- Why it's better use the values stored in pci_dev structure instead of

Re: Curious about corner case in btrfs code

2014-08-26 Thread Valdis . Kletnieks
On Tue, 26 Aug 2014 18:47:41 -0400, Nick said: After reading through the code in inode.c today , I am curious about the comment and the following code I will paste below. I am curious if this corner case is hit often enough for me to write a patch to improve the speed of this corner case.

Re: Curious about corner case in btrfs code

2014-08-26 Thread Valdis . Kletnieks
On Tue, 26 Aug 2014 20:13:10 -0400, Nick said: From reading the code off the bat, seems to not need to be written as this case is rarely meet for large files or files that are huge and take a lot of time to write. Nope. Same exact logic for small files. The code is doing Don't bother

Re: cdev_init and struct file_operations

2014-08-26 Thread Valdis . Kletnieks
On Tue, 26 Aug 2014 20:48:41 -0400, John de la Garza said: In the book Linux Device Drivers a struct cdev is setup like this: static void scull_setup_cdev(struct scull_dev *dev, int index) { int err, devno = MKDEV(scull_major, scull_minor + index); cdev_init(dev-cdev, scull_fops);

Re: Curious about corner case in btrfs code

2014-08-26 Thread Valdis . Kletnieks
On Tue, 26 Aug 2014 21:49:51 -0400, Greg Freemyer said: A decade plus ago when I first got interested in using xfs for a production system, the freeze feature would randomly fail for me. I was able to update the xfstest that exercised that code and get a reproducer. I didn't do the actual

Re: Which way is faster , when receive a lot of packets?

2014-08-25 Thread Valdis . Kletnieks
On Mon, 25 Aug 2014 20:30:00 +0800, lx said: I have two ideas to handle the packet. 1.I allocate a memory pool and mmap into userspace, when packet is coming, I copy packet into the memory pool, then, userspace can access it. 2.When packet is coming , I mmap the data of packet into userspace

Re: How to get the information from /proc/files from within a kernel module?

2014-08-25 Thread Valdis . Kletnieks
On Mon, 25 Aug 2014 19:57:39 +0530, ravali pullela said: I want process related information like rss.(we can get this by doing cat /proc/pidstatus) Is there a way to get this from within a kernel module? I checked out the sources on /proc filesystem. They all show how to create, read, write a

Re: Questions about btrfs helper threads

2014-08-24 Thread Valdis . Kletnieks
On Sun, 24 Aug 2014 01:49:07 -0400, nick said: After searching through parts of the btrfs code and docs. I am unable to find any information on the helper threads in btrfs and would like to known more about how their implemented and what are the reasons for helper threads in btrfs versus

Re: serial console in early boot

2014-08-24 Thread Valdis . Kletnieks
On Sun, 24 Aug 2014 18:02:29 -0400, John de la Garza said: I would expect that the serial line wouldn't be ready and that qemu would behave like actual hardware. Why? QEMU knows it's running as a user process. Do you see anywhere in the documentation that it guarantees emulation of real

Re: Questions about btrfs helper threads

2014-08-24 Thread Valdis . Kletnieks
On Sun, 24 Aug 2014 23:31:38 -0400, nick said: In addition , why not create a linked list for the compression in btrfs as we can then do the work using the already build in workqueues for btrfs and improve the scalability of the compression functions and workload it causes as compression is

Re: New to Kernel newbie

2014-08-22 Thread Valdis . Kletnieks
On Fri, 22 Aug 2014 21:39:42 +0530, manoj kumar said: i am new to kernelnewbie. I would like to work on the VFS/Filesystem sub system. Any guidance towards the same is much appreciated. Step 0: Figure out *why* you want to work on filesystems, pick a *specific* goal, and pick up a basic

Re: Help with btrfs project

2014-08-20 Thread Valdis . Kletnieks
On Wed, 20 Aug 2014 10:44:41 +0530, Sudip Mukherjee said: Hey Nick, It seems like you are an expert on btrfs . Can you please let me know He's not. Please do not rely on any information Nick may provide, as he is either hopelessly clueless, or actively trolling the kernel community.

Re: Linked List versus Hashed Linked iIst

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 07:45:48 -0400, Greg Freemyer said: You can take that excellent code into your user space app and test it to your heart's content. Not only can you do that, for something like a linked list evaluation, you should do that. You have implied tested code is code that

Re: fd type from number

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 08:38:24 -0700, Loris Degioanni said: I'm looking for an efficient way to determine the type of an fd (file, socket...) given its number, from a kernel module. What problem are you trying to solve here? There may be a better API for your problem. So step back - what are

Re: How to mmap kernel memory area to userspace ?

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 17:54:14 +0800, lxgeek said: I want to mmap a kernel memory area which sk_buf-data pointer into userspace. I want to do this , because this way can reduce a copy from kernel to userspace. How to fix it? Or, which book or project can help me ? Look at how

Re: Questions for Storage Engineers

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 13:33:22 -0400, Nick Krause said: This is a favor for the btrfs developers, one of my aunt's work's at IBM and is able to ask questions to a few storage engineers about features they would like to see in a file system and it's tools. In addition if you would like to ask

Re: Questions for Storage Engineers

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 23:49:48 +0530, Saket Sinha said: Each filesystem has its own use-case. Like XFS is for big data, btrfs with its COW and other features meets some specific use-cases like facebook where they have a scenario(refer http://lwn.net/Articles/591780/ ) where btrfs suites then

Re: Questions for Storage Engineers

2014-08-19 Thread Valdis . Kletnieks
On Tue, 19 Aug 2014 14:05:25 -0400, Nick Krause said: I can get the information :). I been banned from the list so I can't get them involved directly and it's better You *do* realize that the btrfs maintainers haven't been banned from anyplace, and have enough name recognition that if they want

Re: Why I can't map memory with mmap

2014-08-18 Thread Valdis . Kletnieks
On Mon, 18 Aug 2014 08:15:12 -0700, Kevin O'Gorman said: maybe someone here can help me figure out how to map a big (really big) work area and lock it in memory. What problem are you trying to solve by doing this? It usually doesn't make sense to lock more than a small chunk in memory -

Re: Why I can't map memory with mmap

2014-08-18 Thread Valdis . Kletnieks
On Mon, 18 Aug 2014 10:24:45 -0700, you said: I'm solving a huge alpha-beta search problem, and want a huge cache table tocheck permutations. That's why I increased RAM from 8 to 32 GB, and would be happy to use the extra 24GB all for the cache. (Cache table is like a hash table but with

Re: Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10

2014-08-14 Thread Valdis . Kletnieks
On Thu, 14 Aug 2014 16:46:22 +0530, Chetan Nanda said: Hi, I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on 3.10 kernel (for ARM arch) via writing CONFIG_DEBUG_SET_MODULE_RONX=y at the end of board specific config file. But .config generated after kernel build do not

Re: Skb Documentation?

2014-08-14 Thread Valdis . Kletnieks
On Thu, 14 Aug 2014 12:40:53 -0400, Nick Krause said: After searching around in the documentation directory, I need no information on skb data structure and other information relating to Shouldn't you have done that reading *BEFORE* you started submitting 57 different versions of a patch that

Re: [PATCH] usb: Fix switch statement in ohci-tmio.c

2014-08-14 Thread Valdis . Kletnieks
On Thu, 14 Aug 2014 14:18:40 -0400, Nick Krause said: case 3: pm |= CCR_PM_USBPW3; + break; case 2: pm |= CCR_PM_USBPW2; + break; case 1:

Re: [PATCH] usb: Fix switch statement in ohci-tmio.c

2014-08-14 Thread Valdis . Kletnieks
On Thu, 14 Aug 2014 17:13:28 -0400, Nick Krause said: I am learned C. Perhaps I am a little rusty and need to review. We've seen very little evidence that you *ever* really understood C at all, and you're *far* from a little rusty. It's been some 23 years since I've hacked any code in IBM's

Re: usb_driver hotplug probe callback

2014-08-14 Thread Valdis . Kletnieks
On Fri, 15 Aug 2014 09:35:57 +0530, Sudip Mukherjee said: finally little tells you that task is complete , you will get a feeling of achievement and you will also say sh** .. it was this easy Later on, you'll realize that there were at least 3 even easier ways to do it. :) i hope i have

Re: [PATCH] staging: Check for Null return of allocated skb in fw_download_code

2014-08-13 Thread Valdis . Kletnieks
On Tue, 12 Aug 2014 22:53:37 -0700, Manish Katiyar said: And it may also be a good idea to post the logs regarding how you tested your patch and verified that the fix works as expected. As you are asking I want to see how he sets up an environment where he can *trigger* the issue reliably. :)

Re: [PATCH] staging: Check for Null return of allocated skb in fw_download_code

2014-08-13 Thread Valdis . Kletnieks
On Wed, 13 Aug 2014 18:50:43 +0400, Max Filippov said: No need to trigger it, faking it would be enough, e.g.: +if (++i 3) +skb = dev_alloc_skb(frag_length + 4); +else +skb = NULL; Don't bet on this

Re: [PATCH] staging: Check for Null return of allocated skb in fw_download_code

2014-08-13 Thread Valdis . Kletnieks
On Wed, 13 Aug 2014 12:55:00 -0400, Nick Krause said: On Wed, Aug 13, 2014 at 12:02 PM, valdis.kletni...@vt.edu wrote: On Wed, 13 Aug 2014 18:50:43 +0400, Max Filippov said: No need to trigger it, faking it would be enough, e.g.: +if (++i 3) +

Re: [PATCH] staging: Check for Null return of allocated skb in fw_download_code

2014-08-13 Thread Valdis . Kletnieks
On Wed, 13 Aug 2014 14:03:08 -0400, Nick Krause said: I did test my patch by doing a kernel build and I get this error, drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c:66:4: error: implicit declaration of function ‘skb_quene_purge’ [-Werror=implicit-function-declaration]

Re: [PATCHv3] staging: Check for Null allocated skb in fw_download_code

2014-08-12 Thread Valdis . Kletnieks
On Tue, 12 Aug 2014 16:19:40 -0400, Nick Krause said: On Tue, Aug 12, 2014 at 4:18 PM, Nicholas Krause xerofo...@gmail.com wrote: I am fixing the bug entry , https://bugzilla.kernel.org/show_bug.cgi?id=60461. This entry states that we are not checking the skb allocated in

Re: [PATCHv3] staging: Check for Null allocated skb in fw_download_code

2014-08-12 Thread Valdis . Kletnieks
On Tue, 12 Aug 2014 20:46:56 -, Jeff Haran said: While the avoidance of dereferencing NULL pointers in the kernel is a laudable goal, what will be the effect of the call to write_nic_byte() at the end of the function not happening should the call to dev_alloc_skb() return NULL? Damn. I

Re: Usb module loading

2014-08-08 Thread Valdis . Kletnieks
On Fri, 08 Aug 2014 08:14:26 +0200, Kristofer Hallin said: You are not supposed to make the solutions for Eudyptula challenge available to others. Also, it's a potentially career-limiting move - Google is forever, and doing something like that may tell potential employers that you are either

Re: Help with git

2014-08-08 Thread Valdis . Kletnieks
On Fri, 08 Aug 2014 13:04:15 -0400, Nick Krause said: 1.git branch next No, this should be (3) or so. You really want to 'git clone' linus's tree and then 'git remote add' the linux-next tree before you do this. If you're new to git, do yourself a favor, follow the directions, and just build

Re: Help with git

2014-08-08 Thread Valdis . Kletnieks
On Fri, 08 Aug 2014 13:53:50 -0400, Nick Krause said: Then I am going to work on a few areas( still deciding where to specialize) 1. Btrfs 2. Scheduler 3. F2FS 4. Networking 5. Drivers(mostly USB and Intel Graphics) Pick *one* thing. There's quite obviously a wide gap between your level

Re: Help with git

2014-08-08 Thread Valdis . Kletnieks
On Fri, 08 Aug 2014 13:37:25 -0400, Nick Krause said: Would you mind asking Greg if he wants some help with staging clean up as he is very upset with me after me not listening and I own it to him to help help him out. No, what you owe him is to *SHUT THE HELL UP* and *DONT DO IT AGAIN* until

Re: Help with git

2014-08-08 Thread Valdis . Kletnieks
On Fri, 08 Aug 2014 14:18:50 -0400, Nick Krause said: Thanks for the notice , if there are any bugs that are simple for a newbie on Linus's tree I would be glad to help out there. This isn't the kernel it was 8 or 10 years ago. There's not a lot of low-hanging fruit left - that's why the

Re: Formula One Scheduler (was Re: Help with git)

2014-08-08 Thread Valdis . Kletnieks
On Fri, 08 Aug 2014 13:28:45 -0700, Arlie Stephens said: On Aug 08 2014, valdis.kletni...@vt.edu wrote: There's a big difference between knowing how to change the spark plugs on a VW Beetle, and being able to walk into a Formula One pit and make tuning suggestions that actually help the

Re: how do I port from 2.6.32 kernel to 3.11. kernel

2014-08-07 Thread Valdis . Kletnieks
On Thu, 07 Aug 2014 08:15:33 -0700, Omkar Houddin said: Can you please suggest me how to port a pci driver which is now on 2.6.32 kernel to 3.11.4 kernel. In general, we're very careful to make sure that if we change an API, that the new version has a different signature (new name, or

Re: Questions about struct task_struct

2014-08-07 Thread Valdis . Kletnieks
On Wed, 06 Aug 2014 18:11:30 -0400, Nick Krause said: 1.volatile long state; Is this line like jiffies for timers with regards to the keyword volatile? Why should it be any different? 2.void *stack; Is this a pointer to the kernel stack for the process related to the process that the

Re: Delivery Status Notification (Failure)

2014-08-07 Thread Valdis . Kletnieks
On Thu, 07 Aug 2014 13:14:42 -0400, Nick Krause said: No I don't take any offense, I am very rusty with kernel code haven't touched it in like 2 years. Excuse me if I'm dubious. Yesterday you said: On Wed, 06 Aug 2014 18:11:30 -0400, Nick Krause said: I am new to kernel programming and have

Re: Help with git

2014-08-07 Thread Valdis . Kletnieks
On Thu, 07 Aug 2014 21:48:54 -0400, Nick Krause said: sed: can't read /home/nick/linux-next/.git/rebase-apply/info: No such file or directory It usually helps if you give the actual command that you were trying to do. You didn't do this on top of a linux-next tree that you did a 'git pull' to

Re: Help with git

2014-08-07 Thread Valdis . Kletnieks
On Thu, 07 Aug 2014 22:25:06 -0400, Nick Krause said: 1. git clone linux-next Don't do that. You'll get something that you can't easily update. git clone linux *LINUS MAINLINE TREE* git remote add linux-next *add this as a remote* git fetch --all then use git remote up to update

Re: Help with git

2014-08-07 Thread Valdis . Kletnieks
On Thu, 07 Aug 2014 22:25:06 -0400, Nick Krause said: 1. git clone linux-next Before you do the git add, you *really* want to create a branch for yourself to work on. 2. git add file changed Because otherwise this will get dumped on one of 200+ linux-next branches and cause acute indigestion

Re: Bad Patches and Issues with other devolopers

2014-08-06 Thread Valdis . Kletnieks
On Wed, 06 Aug 2014 10:48:14 +0100, Anuz Pratap Singh Tomar said: oh man you have gained prominence in vger? They have banned you from vger. Wow. I've been around for a dozen years or so, and can't remember *that* ever happening before. That takes some *major* doing, and could take literally

Re: Delivery Status Notification (Failure)

2014-08-06 Thread Valdis . Kletnieks
On Wed, 06 Aug 2014 15:07:21 -0400, Nick Krause said: Does anybody have some work in the scheduler subsystem I can work on that is a good top dipping for a kernel newbie. There is zero code in the scheduler that somebody of your demonstrated competence will be able to successfully modify. For

Re: Bad Patches and Issues with other devolopers

2014-08-05 Thread Valdis . Kletnieks
On Tue, 05 Aug 2014 13:42:58 -0400, Nick Krause said: I have sent out just ten bad patches and the developers seem very annoyed with me and Let's face it - if you've sent ten bad patches in a row without getting one right, you're doing something wrong. And although total noob coders scale very

Re: Linux filesystem configuration infrastructure

2014-08-04 Thread Valdis . Kletnieks
On Mon, 04 Aug 2014 10:20:35 +0530, Sankar P said: Now, I would like to add a few settings to my filesystem (such as the number of blocks that should be allocated in an extent by default, maximum fragmentation score after which defrag should be automatically handled etc.) I would like to have

Re: Where is the source code of udev?

2014-08-04 Thread Valdis . Kletnieks
On Mon, 04 Aug 2014 11:30:52 -0300, Julio Faracco said: Where can I find the updated source code of udev? I'm cloning the source from here: http://git.kernel.org/cgit/linux/hotplug/udev.git/ Unless you're planning to do actual udev development, you're probably better off looking at the

Re: Configure git send mail for yahoo email

2014-08-04 Thread Valdis . Kletnieks
On Mon, 04 Aug 2014 11:34:17 -0700, Anand Moon said: Unable to initialize SMTP properly. Check config and use --smtp-debug. So? Did you use --smtp-debug? Did the resulting output help any? pgpZ86Tkm5mA_.pgp Description: PGP signature ___

Re: Configure git send mail for yahoo email

2014-08-04 Thread Valdis . Kletnieks
On Mon, 04 Aug 2014 12:40:35 -0700, Anand Moon said: Finally I got it working using following configuration git config --global sendemail.smtpserverport 465 I thought the port 4100 in the original mail looked fishy. Whatever gave you the idea to try that? I'd like to list the source in my

Re: How to implement a tty serial driver for RFC2217 networked serial port access devices?

2014-08-02 Thread Valdis . Kletnieks
On Sat, 02 Aug 2014 12:38:50 +0100, TJ said: The kernel module would act as a RFC2217 client, presenting the local system with serial TTY devices whose endpoints are on a remote network access device, e.g. the Moxa NPort 6650 [2][*]. Wouldn't a 2217-capable telnet at the other end of a

Re: building kernel with -O

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 09:03:38 -0500, Xin Tong said: Ive heard that one can not build the entire Linux kernel with -O0 option. why is that ? being a compiler developer, i can not think of reasons why that is the case. The short answer: -O0 completely suppresses function inlining, and there are

Re: building kernel with -O

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 11:59:46 -0500, Xin Tong said: why can not __builtin_return_address() be made *never* inline and use That's actually harder to accomplish than you might think. And as a lot of kernel developers like to say, -ENOPATCH. pgpWllDN6OJ82.pgp Description: PGP signature

Re: Work (really slow directory access on ext4)

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 10:38:13 -0700, Arlie Stephens said: On the good side, Vladis' observations of his mail directory have been a great help. And remember, that's on a single laptop-class hard drive, no fancy raid or anything. (Though it *is* a hybrid, with 32G of flash cache on the front

Re: blocking rootkits using virtualization

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 23:47:32 +0530, Aniket Shinde said: --Is the method of making kernel read only to block rootkits used in linux kernel mainline? Been there since 2006 or so. Riel needs to update that project entry. :) CONFIG_DEBUG_RODATA=y CONFIG_DEBUG_RODATA_TEST=y

Re: HugePage by default

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 14:41:26 -0500, Xin Tong said: Is there anyway for me to turn on HugePage by default in the Linux X86 kernel, i.e. allocate a 2MB page by default in place of 4KB now ? Possibly related config entries to research: CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y

Re: HugePage by default

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 15:06:39 -0500, Xin Tong said: 2. modify the kernel (maybe extensively) to allocate 2MB page by default. How fast do you run out of memory if you do that every time you actually only need a few 4K pages? (In other words - think what that isn't the default behavior already

Re: HugePage by default

2014-07-30 Thread Valdis . Kletnieks
On Wed, 30 Jul 2014 18:26:39 -0500, Xin Tong said: I am planning to use this only for workloads with very large memory footprints, e.g. hadoop, tpcc, etc. You might want to look at how your system gets booted. I think you'll find that you burn through 800 to 2000 or so processes, all of which

Re: How to implement a driver's read and write operations with synchronization properly

2014-07-29 Thread Valdis . Kletnieks
On Tue, 29 Jul 2014 20:59:08 +0700, Anh Le said: still, user programs like bash could have a race problem by spliting the input, I hope that they can somehow take care of this problem themselves. stdio is *not* always your friend. fopen/fprintf is prone to splitting on bugger boundaries

Re: Work

2014-07-25 Thread Valdis . Kletnieks
On Fri, 25 Jul 2014 11:03:36 +0530, ravi ranjan Mishra said: How to make environment like (build and test) for working on kernel patch, what are the resources should be available for that. thanks. Depends on what exactly you're trying to do. If it involves hardware support, you'll need the

Re: Work

2014-07-25 Thread Valdis . Kletnieks
On Thu, 24 Jul 2014 22:23:00 -0400, Nick Krause said: I having been doing build tests and checkpatch in staging for the last month. It doesn't seem like it's worth my time as so my other people are doing it. I want an interesting project one that is challenging and rewarding :). OK. I'm gonna

Re: doubt with git and linux-next

2014-07-25 Thread Valdis . Kletnieks
On Fri, 25 Jul 2014 19:36:26 +0530, Sudip Mukherjee said: Hi, I am having some doubt regarding git and how to sync my local copy with linux-next. I have cloned it and the next day if I want to sync my master with linux-next , i am using : git remote update git pull master git pull won't

Re: Work

2014-07-25 Thread Valdis . Kletnieks
On Fri, 25 Jul 2014 15:23:42 -0700, Arlie Stephens said: If you want an annoying problem, explain and/or fix directory performance on ext4. I've got a server where an ls of a directory took 5 seconds, according to time, even though it only has 295 entries at present. I don't suppose you

Re: [PowerPC] - Define error in arch/arch/powerpc/boot/io.h ??

2014-07-24 Thread Valdis . Kletnieks
On Thu, 24 Jul 2014 14:19:37 +0200, Kristof Provost said: On 2014-07-24 09:00:22 (-0300), Lucas Tanure tan...@linux.com wrote: Line 2 of arch/arch/powerpc/boot/io.h : 1 #ifndef _IO_H 2 #define __IO_H 3 4 #include types.h Should be _IO_H, not __IO_H. I'm right ? That

Re: question about kref API

2014-07-23 Thread Valdis . Kletnieks
On Wed, 23 Jul 2014 17:55:50 -, Jeff Haran said: From: 'Greg KH' [mailto:g...@kroah.com] If you could elaborate on where the race condition is here, I think you'd being doing both me and the community a great service. Nice try with the Do it for the community because I don't

Re: downstream pci walk

2014-07-16 Thread Valdis . Kletnieks
On Thu, 17 Jul 2014 05:58:03 +0800, Amerei Acuna said: I'm writing a custom PCI driver for a hobby endpoint. Due to some special, possibly unique, circumstance, I need to determine if two devices form a pair. As I'm using a PCI switch to connect these two devices, I'm thinking on the

Re: Problems with Linux next tree

2014-07-14 Thread Valdis . Kletnieks
On Mon, 14 Jul 2014 17:57:10 -0300, Lucas Tanure said: Hi, No I didn't. It is a clean linux-next tree. Turns out that if I don't update every day I got this issue. Due to the way the linux-next tree is built, 'git pull' won't work. You want to 'git clone' Linus's master tree, then 'git

Re: Using /tmp for temprory storage

2014-07-14 Thread Valdis . Kletnieks
On Mon, 14 Jul 2014 21:47:10 +0530, sagar hu said: I am trying to log huge data into SD card(class-10), doing this operation is causing frequent loss of data,  is there any way in which I can use /tmp for temporary storage and frequently move the data to SD card ? This isn't a kernel

Re: Are Small Changes in kernel accepted as patches

2014-06-21 Thread Valdis . Kletnieks
On Sat, 21 Jun 2014 15:07:49 +0530, karthik said: I was just going through the linux-next source and found a small change in one of the files. (Unnecessary else) One-line patches that fix misleading logic are always welcome. Just remember to: 1_ Read Documentation/SubmititingPatches.txt and

Re: How to get the average/max process scheduling latency

2014-06-20 Thread Valdis . Kletnieks
On Fri, 20 Jun 2014 15:36:47 +0200, Teto said: Do you know any tool/software to retrieve the average latency for a specific program on a specific platform. This is to modelize the application rate for data processing. You need to add while running under a specific application load, because

Re: How to get the average/max process scheduling latency

2014-06-19 Thread Valdis . Kletnieks
On Mon, 16 Jun 2014 18:23:56 +0200, Teto said: I could not find an answer yet. I've found that on latest kernel latency is on average around 3us with a max at 64us (I consider a moderate load). Is that correct ? Depends on your hardware and system load. I'd hardly expect the same numbers

<    2   3   4   5   6   7   8   9   10   11   >