Re: Split RAID: Proposal for archival RAID using incremental batch checksum

2014-11-24 Thread Valdis . Kletnieks
On Mon, 24 Nov 2014 22:58:08 +0530, Anshuman Aggarwal said: > prevents it from directly recognized by file system code . I was > wondering if Split RAID block devices can be made to be unaware to the > RAID scheme on top and be fully mountable and usable without the raid > drivers (of course inval

Re: the file with the same name

2014-11-23 Thread Valdis . Kletnieks
On Sun, 23 Nov 2014 16:25:11 +0800, 孙建希 said: > I found there's many files with same name in kernel. > e.g: > include/asm/linkage.h > arch/x86/include/asm/linkage.h > > I know when compile for x86, kbuild will use x86 linkage.h. The secret is in the -I include directives - it will search fo

Re: ABI choice in adding new syscall

2014-11-20 Thread Valdis . Kletnieks
On Thu, 20 Nov 2014 16:44:25 -0200, Marcelo Silva Freitas said: > I am studing how to add new syscall to the kernel. > When editing the file syscall_64.tlb there are 3 choices for the ABI: 64, > common, x32 > I have read about and I don't found clearly the meaning and effect of > 'common' choice.

Re: tcp retransmission concept.

2014-11-20 Thread Valdis . Kletnieks
On Thu, 20 Nov 2014 21:26:32 +0530, Varun Sharma said: > Is any one know how tcp retransmission works inside kernel ? Yes, somebody understands it. :) You usually get better answers with more specific questions - do you need help in understanding the basic theory (on which case, info outside the

Re: Why each time of kernel compilation must be done completely?

2014-11-19 Thread Valdis . Kletnieks
On Wed, 19 Nov 2014 18:43:26 -0800, Greg KH said: > I think you are doing something wrong, unless you are changing a > configuration option, version of gcc, or are changing a .h file that all > files include. Actually, that reminds me of a patch I probably need to polish up and make git bisect a

Re: skb headroom and tailroom

2014-11-19 Thread Valdis . Kletnieks
On Wed, 19 Nov 2014 09:43:54 +0530, Varun Sharma said: > 1. At time of skb allocation sk->sk_prot->max_header value is 272 . > If we add tcp header+ip header+mac header outcome will always less > than 272 .Then why allocate more ? Is it for future case ? Did you remember to do the calculation

Re: Choosing the right environment

2014-11-18 Thread Valdis . Kletnieks
On Tue, 18 Nov 2014 20:54:05 +0530, somebody said: > > - I could go with a virtual machine on one of my main machines – But I'm > > not > > quite sure whether the hardware-abstraction will give me troubles when > > hacking on hardware drivers (which I want to start with) If you're hacking at ha

Re: Re Start Fresh

2014-11-13 Thread Valdis . Kletnieks
On Thu, 13 Nov 2014 10:02:42 -0500, Nick Krause said: > I am willing to start out completely fresh and willing to learn how to > do this correctly now and hopefully improve my rep ... slowly. > This is not another email for me trying to state again I am willing > to change, That's odd, that's wha

hijacking threads (was Re: How to disable fault-around by debugfs?)

2014-11-12 Thread Valdis . Kletnieks
On Wed, 12 Nov 2014 18:39:08 +0530, lokesh kumar said: > Hi, > Sorry i forgot to change subject line :( Note that for people that use mail software that supports threading, even changing the subject line may not be sufficient - there's another E_mail header. For this note, it says: References: <

Re: Kernelnewbies Digest, Vol 48, Issue 10

2014-11-10 Thread Valdis . Kletnieks
On Mon, 10 Nov 2014 19:24:59 +0530, mohanty bhagaban said: > How to get access to mainn kenel code repository through git as I need to > add some patches for reviews.Where can i get the bramch to submit my code > for review. git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.g

Re: lots of connections in SYN_RECV state

2014-11-07 Thread Valdis . Kletnieks
On Fri, 07 Nov 2014 23:11:26 +0530, Puneet Agarwal said: > I use linux kernel 2.6. I have enabled SYN cookies already. But that does not > seem to solve the problem. Overall request latency is very high with these > many > half open connections. So, out of curiosity, where are all these half ope

Re: lots of connections in SYN_RECV state

2014-11-07 Thread Valdis . Kletnieks
On Fri, 07 Nov 2014 23:49:35 +0800, Dave Tian said: > Latest kernel provides a TCP SYN Cookie feature to defense from SYN flooding. If by "latest" you mean "since Andi Kleen submitted a patch for 2.1.44", back in July 1997 pgp9qqVpije_e.pgp Description: PGP signature

Re: RT Kernel compile and install help needed.

2014-11-04 Thread Valdis . Kletnieks
On Tue, 04 Nov 2014 13:07:47 +0530, Chanchal Paul said: > I am fairly new to kernel compilation and installation process, still i > managed to learn from Kernelnewbies and RT-wiki and managed to patch > 3.12.14 vanilla kernel with rt patch 3.14.12. You *really* want to get the correct patch on th

Re: build a kernel over a mounted NFS partition

2014-11-03 Thread Valdis . Kletnieks
On Mon, 03 Nov 2014 21:00:13 +0200, Kevin Wilson said: > The strong server, on which I intend to build, has about 4 time more > CPU power than the NFS server. Actually, CPU doesn't matter as much as I/O capability. You don't believe me, try building a kernel with a cache-cold source tree, and ag

Re: copy_from_user user space address mapping in the kernel page table.

2014-11-02 Thread Valdis . Kletnieks
On Sun, 02 Nov 2014 19:57:44 +0530, mind entropy said: > In the copy_from_user when the user passes the virtual address is > the address mapped in the kernel page tables? Actually, a large part of the reason for copy_from_user()'s existence is to deal with the possibility that the page is *not*

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

2014-11-01 Thread Valdis . Kletnieks
On Mon, 20 Oct 2014 09:17:50 -, el_es said: > Maybe better to introduce a standard clear marker that > able people just respond with, to alikes of nick: > > REJECTED-by: Name We already do something like this. You'll on occasion see 'Nacked-By: ...' go by when a kernel hacker wants to denot

Re: Network subsystem and suggestions

2014-10-29 Thread Valdis . Kletnieks
On Wed, 29 Oct 2014 12:16:57 -0500, Jaime Arrocha said: > Lastly, what about this other book? > The Design of the UNIX Operating System by Maurice Bach That book is about the SYSV kernel. However, both it, and McKusic's book on the BSD kernel, are good because they demonstrate different approach

Re: [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch

2014-10-28 Thread Valdis . Kletnieks
On Tue, 28 Oct 2014 12:39:17 -0500, Greg Donald said: > The WARNING "line over 80 characters" currently accounts for 216K of > the total violations. IMHO checkpatch should just stop complaining > about the 80 char limit since that's the main offender causing new On the other hand, there's very g

Re: Some Kernel Questions/Confusions [Pls help]

2014-10-27 Thread Valdis . Kletnieks
On Mon, 27 Oct 2014 18:15:15 +0530, Er Krishna said: > 1. In case of Paging and discontiguous memory allocation for a particular > process, is it possible that all the segments say DS, SS, CS, Heap and all > can be in different page frames. I am asking this for a particular segment > (I know all t

Re: Kconfig options and make command line

2014-10-26 Thread Valdis . Kletnieks
On Sun, 26 Oct 2014 12:01:05 -0400, John de la Garza said: > On Sun, Oct 26, 2014 at 09:25:01AM +0100, Peter Senna Tschudin wrote: > > Sorry for the noise. > > > > $ make allyesconfig drivers/staging/rtl8723au/ > > > > does the trick. > > > > that seems like overkill, why not just enable the CONFIG

Re: sendmmsg() Expected Behavior?

2014-10-24 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 23:41:41 -0400, valdis.kletni...@vt.edu said: > Why were you expecting recvmsg() to return more than one message? Bah. Ignore that. you said recvmmsg() with *two* m's. pgpYuxOQ9HTPG.pgp Description: PGP signature ___ Kernelnewbies

Re: Documentation/DMA-API-HOWTO.txt 2

2014-10-24 Thread Valdis . Kletnieks
On Fri, 24 Oct 2014 15:09:45 +0200, Peter Senna Tschudin said: > 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 p

Re: sendmmsg() Expected Behavior?

2014-10-23 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 19:43:07 -0700, Hei Chan said: > Then, I found that recvmmsg() doesn't return all the packets that queued in 1 > single call. You want to receive *all* of them? Call recv() with a *buf and a len big enough to get a *lot* of msgs, and pass MSG_ALL in the flags. Why were you e

Re: Non-maskable interrupt

2014-10-22 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 10:47:57 +0900, "J.Hwan Kim" said: > > How fast are they increasing? A few an hour? A few a minute? >once per second... I bet 'cat /proc/sys/kernel/nmi_watchdog' returns '1'. See Documentation/lockup-watchdogs.txt pgpuTsUvENLGd.pgp Description: PGP signature __

Re: Non-maskable interrupt

2014-10-22 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 00:26:32 +0900, "J.Hwan Kim" said: > Hi, everyone > > In my system, NMI intrrupt counter is increased continuously, > which I found in /proc/interrupts. > How can I find the reasons of NMI interrupts? How fast are they increasing? A few an hour? A few a minute? 50 or 60 a sec

Re: epoll improvements

2014-10-16 Thread Valdis . Kletnieks
On Thu, 16 Oct 2014 14:09:05 +0200, "Nev Ikte" said: > I've tried to reproduce it with a single client > and basically, if ep_poll() is able to find an event or the timeout is 0, > the latency is down to 5usec, otherwise if it enters the waitqueue > the latency goes up to 10-25usec, which impact t

Re: Socket receive, send

2014-10-13 Thread Valdis . Kletnieks
On Tue, 14 Oct 2014 04:12:47 +0200, Grzegorz Dwornicki said: > Is there a good documentation on how messages are taking the tour from User > calling read/write on socket fd, to kernel handling the actual > send/receive functions? I wish to write code to capture the messages (no > netfilter - I wi

Re: I remove the audit and selinux from kernel and start the new kernel in Centos, but i can't bring up the network device, Why?

2014-10-12 Thread Valdis . Kletnieks
On Mon, 13 Oct 2014 13:04:08 +0800, sizel said: > I remove the audit and selinux from kernel and start the new kernel in > Centos, but i can't bring up the network device, Why? This would be a lot easier to answer if you gave us some actual details: 1) Why did you think audit and selinux were th

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

2014-10-12 Thread Valdis . Kletnieks
On Sun, 12 Oct 2014 22:31:12 -0400, nick said: > Valdis, > I do understand your concern with me finding one of the few false positives, > due to my issues already with the community. I am trying my best now to > improve > and work toward good,solid work that is of actual use to the community and

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

2014-10-12 Thread Valdis . Kletnieks
On Sat, 11 Oct 2014 14:52:40 +0100, Hugo Mills said: > On Sat, Oct 11, 2014 at 09:44:05AM -0400, nick wrote: > > Thank you for your help, I'll study the code and see what I can do > > about it. Do you have any suggestions of how to fix this checkpatch > > warning? > >Ignore it. The checker has

Re: cpuidle - minimum time for sleep

2014-10-09 Thread Valdis . Kletnieks
On Thu, 09 Oct 2014 21:28:23 +0300, Ran Shalit said: > Does anybody know what is the minimum expected time for sleep period > with the cpuidle ? Both processor dependent and sleep level dependent. There's a certain amount of latency induced by the hardware waking up. Look at /sys/devices/system

Re: Test RAM read/write speed

2014-09-30 Thread Valdis . Kletnieks
On Wed, 01 Oct 2014 01:32:19 +0530, Ssagarr Patil said: > May be a tool is needed at uboot level to test the speeds. What will that actually *tell* you though? Or more to the point, what *actionable* information will that give you? The cache speeds and memory speeds are something you're stuck wi

Re: Test RAM read/write speed

2014-09-29 Thread Valdis . Kletnieks
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 ARM ? This is always a hairy problem. Do you care about the memory speed of the DIMM, or the actual *effective* memory speed? They can be very differen

Re: Banned Again

2014-09-29 Thread Valdis . Kletnieks
On Mon, 29 Sep 2014 06:29:51 -0400, Nick Krause said: > I am getting very annoyed , that I am banned again from my other email > at yoc...@gmail.com are people trying to just prevent me from > being on the list. Is that your goal now? To quote your post to Linux-kernel from last Tuesday: > I was

Re: Doubt in USB Drivers

2014-09-28 Thread Valdis . Kletnieks
On Sun, 28 Sep 2014 16:27:06 +0530, me storage said: > I am new to Linux Kernel Programming .I want to develop usb drivers so i > read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my LDD3 is about a 2.6.10 kernel. Ubuntu 12.04 shipped a 3.2.14 kernel. % git diff --shortstat

Re: Git create patch series for multipe commits.

2014-09-26 Thread Valdis . Kletnieks
On Fri, 26 Sep 2014 10:35:57 -0700, Anand Moon said: > One more question, if the change belong to single file > and we are fixing multiple issue we need to different commit > for each changes. And then club them into patch series. Each patch should do exactly one thing. So if you find 3 different

Re: Compile external module against linux source and use functionality in linux source

2014-09-25 Thread Valdis . Kletnieks
On Thu, 25 Sep 2014 10:49:33 +0530, Arjun Pandey said: > Step 1 goes through fine. The module gets compiled fine. > However now when i try to compile the kernel i get linker error of > undefined reference to the function exported from the kernel module. > > I can't find any documentation on this u

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:08:29 -0400, John de la Garza said: > why not look at the destination ip of the ip header? It's possible to receive a packet on the "wrong" interface. For instance, we have a software package installed here that insists on talking on one IP address, so we end up with this

Re: A Course Project

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 11:12:55 -0400, El Mouatez Billah Karbab said: > I am student in Concordia university Montreal, and I have a course about > network security. The professor of this course wants us to do a project in > both the field of security research with some practical application, and I >

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:19:34 +0530, Maninder Singh said: > Hi, > > Each time a packet arrives at a router in a subnet during transit, I > need to determine the IP address of the incoming interface of the > router for that packet. What problem are you trying to solve using the IP address of the int

Re: PROBLEM: JFFS2 deadlock on Linux 3.14.19

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:26:13 +0200, Ivan Grimaldi said: > I have a custom board based on Freescale i.MX6DL, and at start time i > received a JFFS2 deadlock. > > My kernel version is v3.14.19 Looks like this one has been around for a while - it was reported against 3.10 and 3.0.18: https://lkml.

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 21:03:01 +0900, 정현 said: > And you should be careful about obtained IP address, because it is made by > IP spoofing attack or some sort of IP camo technique. He's looking at the IP address of the interface, not the source IP address of the packet. pgpeylxs2Gzvn.pgp Descr

Re: linux master cannot compile successfully

2014-09-18 Thread Valdis . Kletnieks
On Fri, 19 Sep 2014 09:28:03 +0800, Kinka Huang said: > @valdis, I am doing that on a laptop. I try to get back the file by > deleting unpack.h and checkout, but the same content remains. And `git That's weird indeed. > status` or `git log` doesn't show any changes of file "unpack.h" . One > susp

Re: linux master cannot compile successfully

2014-09-18 Thread Valdis . Kletnieks
On Thu, 18 Sep 2014 22:19:40 +0800, Kinka Huang said: > In file included from drivers/gpu/drm/nouveau/core/core/client.c:29:0: > drivers/gpu/drm/nouveau/core/include/nvif/unpack.h:1:1: error: expected > identifier or ‘(’ before ‘.’ token > ../../../nvif/unpack.h Your tree is somehow corrupted.

Re: Help with XfsTests

2014-09-18 Thread Valdis . Kletnieks
On Thu, 18 Sep 2014 06:39:01 -0400, nick said: > I am trying to run xfs tests on a partion at /dev/sdc1 but the scripts state > that the drive is not at $TEST_DIR and if ' > it's on that directory they abort after fsck. Does anybody known how to fix > this please. It can probably be fixed by rea

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-17 Thread Valdis . Kletnieks
On Wed, 17 Sep 2014 08:02:01 -0400, nick said: > it off , if not I would like to known exactly where I am wrong so I can learn. Somebody wake me up when he actually *means* that. pgpep_zcvBkMR.pgp Description: PGP signature ___ Kernelnewbies mailing l

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-17 Thread Valdis . Kletnieks
On Wed, 17 Sep 2014 08:09:36 -0400, nick said: > On 14-09-17 08:05 AM, Greg Freemyer wrote: > > I don't know that chunk of code, but error messages that go to the kernel > > log exist for a specific reason. Taking them out requires a specific > > reason. > > > > Ie. This would make a good commi

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 20:35:35 -0500, Greg Donald said: > fs/* currently contains 96,375 errors and 22,555 warnings. [/usr/src/linux-next] find fs -type f -name '*.[ch]' | xargs cat | wc -l 1138557 96K errors seemed to be a tad high. So.. doublechecking.. [/usr/src/linux-next] for i in `find

A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Valdis Kletnieks
In general, stand-alone patches to "fix" checkpatch whining are a Bad Idea(TM). Here's why... First off, the type of programmer who is tempted to do checkpatch cleanup as "My First Kernel Patch" are, by and large, novices. The code in the kernel falls into one of several states of use and stabil

Re: [PATCH] staging wlan-ng: Add missing a blank line after declarations

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 17:23:05 -0400, nick said: > I checked this patch and there seems to be issues that any of you have stated > before after not applying or grammar e.t.c. If there seem to be issues, why did you bother posting it? pgpf6oJH5i0Dq.pgp Description: PGP signature __

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 13:28:06 -0400, Rik van Riel said: > -BEGIN PGP SIGNED MESSAGE- > On 09/16/2014 01:12 PM, Nick Krause wrote: > > > I am going to resend my patch and see if it's good and if not I am > > going to leave for a while. > > You may want to consider fixing them, by applying th

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 13:12:32 -0400, Nick Krause said: > I am going to resend my patch and see if it's good Why bother? We already *know* it won't be. You could amaze and astound us all by seeing if it's good *before* you hit send. But I'm not holding my breath. > and if not I am going to leave f

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 11:57:35 -0400, Lidza Louina said: > Use this guide: http://kernelnewbies.org/OPWfirstpatch > > It's a tutorial that shows you how to setup and send patches. Don't bother. He's been pointed at that at least once a week for the past two months, and everybody from me to Greg KH

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 08:44:27 -0400, nick said: > I am attaching two check patch patches I wrote in the last few days as I am > unable to get a reply > from the maintainers. Would someone please send them off for me. "I am attaching". Fail 3 words in. That's why you aren't getting a reply from

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: Improve my Rep

2014-09-15 Thread Valdis . Kletnieks
On Mon, 15 Sep 2014 11:22:52 -0400, Nick Krause said: > I am sure I can help. Seems I need to be more careful with my patches. It also seems you are *unable* to be more careful with your patches, because you've been told to do so on multiple occasions by multiple people. Nick - face it. You've

Re: Improve my Rep

2014-09-15 Thread Valdis . Kletnieks
On Mon, 15 Sep 2014 10:38:58 -0400, Nick Krause said: > After issues with the community I am wondering how to improve my rep > and help out more. Quite frankly, I'd suggest going and spending a year or two helping another open source project. > I will start out with check patch but if there is ot

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 `/u

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: 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 sai

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: 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 mo

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. Ea

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 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 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 a

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 Kernelnewbies@k

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-ston

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 unders

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: 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 par

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 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: 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: 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: Package Installation Error

2014-09-08 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 09:52:46 +0530, Niamathullah sharief said: > when try to install "libncurses5-devel" i am getting these messages > *Reading package lists... Done Oh. apt-get based system. You have my condolences :) At least on Ubuntu, the appropriate command is: apt-get install libncurses

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 bin

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. F

Re: Bug Patch

2014-09-08 Thread Valdis . Kletnieks
On Mon, 08 Sep 2014 17:05:39 -0400, nick said: > In ieee_80211_rx.c we may have a Null allocated sub in parse_subframe > and need to check if the allocated skb is NUll. If it is return -ENOMEM. > + if (!sub_skb) > + return NULL; 1) null, Null, and

Re: Bug Patch

2014-09-08 Thread Valdis . Kletnieks
On Mon, 08 Sep 2014 06:36:34 -0400, nick said: > Found a bug and attempted to fix it > sub_skb = dev_alloc_skb(nSubframe_Length + 12); > + if (!sub_skb) > + return -ENOMEM; Nick - we've told you before to research this stuff mo

Re: Better testing when patching divers/staging/ - howto?

2014-09-05 Thread Valdis . Kletnieks
On Fri, 05 Sep 2014 11:54:45 -0700, Greg KH said: > Don't also forget a general 'make' for the whole tree, otherwise > undefined symbols that you might have deleted from the module will not > show up if you just build one subdirectory. If resources permit, do a 'make allnoconfig; make', a 'make a

Re: Arm Server Chips

2014-09-03 Thread Valdis . Kletnieks
On Wed, 03 Sep 2014 15:24:42 -0400, nick said: > embedded developers here have access to them and it's very hard to find them > on the arm website, That's because the ARM website is for the design of the ARM core itself. Power management will almost certainly come from the companies that actuall

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

2014-09-03 Thread Valdis . Kletnieks
On Wed, 03 Sep 2014 22:37:26 +0530, Joshi said: > I do this only when I know that I am working on a partition which has > filesystem The problem is that the block layer has no way of knowing that. What problem are you trying to solve here, and why are you trying to do it from the block layer? T

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 hand

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 ac

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. > N

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: How to get the information from /proc/files from within a kernel module?

2014-08-29 Thread Valdis . Kletnieks
On Sat, 30 Aug 2014 01:21:12 +0530, ravali pullela said: > The problem is that when i looked inside get_mm_rss function, it returns > get_mm_counter(mm, MM_FILEPAGES) + > get_mm_counter(mm, MM_ANONPAGES); > > I thought that anonymous and file pages cover all vm area

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 th

[no subject]

2014-08-29 Thread Valdis . Kletnieks
On Fri, 29 Aug 2014 16:58:26 +0200, Ravi Raj said: > Thank you for the response ,So the project is a > communication between fpga and a imx6 Arm A9 processor using SPI protocol > and we are making a custom board for this, so first step is to find an imx6 > Arm a9 board and port li

[no subject]

2014-08-29 Thread Valdis . Kletnieks
On Fri, 29 Aug 2014 16:58:26 +0200, Ravi Raj said: > so first step is to find an imx6 Arm a9 board and port linux to it Why not get an imx6 board that already *HAS* Linux for it? Heck, Freescale will even give you a one day CLASS on it: http://cache.freescale.com/files/training/doc/dwf/DWF_LINUX

Re:

2014-08-29 Thread Valdis . Kletnieks
On Fri, 29 Aug 2014 16:22:03 +0200, Ravi Raj said: >I am an Embedded firmware Developer,I am looking for a > Development board to port the linux kernal from scratch, could you guys > please recommend me a good development board were i can port linux from > scratch. Why are you try

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

2014-08-28 Thread Valdis . Kletnieks
On Thu, 28 Aug 2014 09:41:18 -0700, StephanT said: > As shown above both have the same Version - they were built together on the > same system. If I unload and load back the usb-storage the (F) disappears. > After re-boot the (F) is back. Stab in the dark - at boot, is it picking up a different mo

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 deb

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: 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: 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: 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

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 tr

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 cas

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