Re: mm/hmm: a simple question regarding devm_request_mem_region()

2018-03-21 Thread Nicolin Chen
On Wed, Mar 21, 2018 at 08:32:54PM -0400, Jerome Glisse wrote: > > I am testing with drivers/char/hmm_dmirror.c from your git repository. > > > > The addr I got (before "- size") is actually 0x7f, so equally > > (1 << 40). > > > > So from your reply, it seems to me that HMM is supposed t

Re: mm/hmm: a simple question regarding devm_request_mem_region()

2018-03-21 Thread Jerome Glisse
On Wed, Mar 21, 2018 at 05:23:55PM -0700, Nicolin Chen wrote: > On Wed, Mar 21, 2018 at 06:56:32PM -0400, Jerome Glisse wrote: > > On Wed, Mar 21, 2018 at 03:23:57PM -0700, Nicolin Chen wrote: > > > Hello Jerome, > > > > > > I started to looking at the mm/hmm code and having a question at the > >

Re: mm/hmm: a simple question regarding devm_request_mem_region()

2018-03-21 Thread Nicolin Chen
On Wed, Mar 21, 2018 at 06:56:32PM -0400, Jerome Glisse wrote: > On Wed, Mar 21, 2018 at 03:23:57PM -0700, Nicolin Chen wrote: > > Hello Jerome, > > > > I started to looking at the mm/hmm code and having a question at the > > devm_request_mem_region() call in the hmm_devmem_add() implementation: >

Re: mm/hmm: a simple question regarding devm_request_mem_region()

2018-03-21 Thread Jerome Glisse
On Wed, Mar 21, 2018 at 03:23:57PM -0700, Nicolin Chen wrote: > Hello Jerome, > > I started to looking at the mm/hmm code and having a question at the > devm_request_mem_region() call in the hmm_devmem_add() implementation: > > > addr = min((unsigned long)iomem_resource.end, > >

mm/hmm: a simple question regarding devm_request_mem_region()

2018-03-21 Thread Nicolin Chen
Hello Jerome, I started to looking at the mm/hmm code and having a question at the devm_request_mem_region() call in the hmm_devmem_add() implementation: > addr = min((unsigned long)iomem_resource.end, > (1UL << MAX_PHYSMEM_BITS) - 1); The main question is here as I am a b

Re: A simple question of a linux kernel beginner

2013-10-31 Thread 韩磊
Thank you! I still have a long way to go in kernel. 2013/11/1 Andreas Mohr : > Hi, > >> May I can use the ''double" as a basic variables? > > [see other replies] > > > Look into terminus technicus "scaling math" as a replacement technique > (in-kernel this is being used e.g. by clocksources/clo

Re: A simple question of a linux kernel beginner

2013-10-31 Thread Andreas Mohr
Hi, > May I can use the ''double" as a basic variables? [see other replies] Look into terminus technicus "scaling math" as a replacement technique (in-kernel this is being used e.g. by clocksources/clockevents). HTH, Andreas Mohr -- To unsubscribe from this list: send the line "unsubscribe

Re: A simple question of a linux kernel beginner

2013-10-31 Thread Yijing Wang
On 2013/10/31 19:31, 韩磊 wrote: > May I can use the ''double" as a basic variables? > > When I define the "double" as a function return type in linux kernel,the error > is "error: SSE register return with SSE disabled". > > How to fix it?? no float in kernel! > -- > To unsubscribe from this li

Re: A simple question of a linux kernel beginner

2013-10-31 Thread Levente Kurusa
2013-10-31 12:57 keltezéssel, Richard Weinberger írta: > On Thu, Oct 31, 2013 at 12:31 PM, 韩磊 wrote: >> May I can use the ''double" as a basic variables? >> >> When I define the "double" as a function return type in linux kernel,the >> error >> is "error: SSE register return with SSE disabled".

Re: A simple question of a linux kernel beginner

2013-10-31 Thread Richard Weinberger
On Thu, Oct 31, 2013 at 12:31 PM, 韩磊 wrote: > May I can use the ''double" as a basic variables? > > When I define the "double" as a function return type in linux kernel,the error > is "error: SSE register return with SSE disabled". > > How to fix it?? Don't do it. :) In kernel land we don't wan

A simple question of a linux kernel beginner

2013-10-31 Thread 韩磊
May I can use the ''double" as a basic variables? When I define the "double" as a function return type in linux kernel,the error is "error: SSE register return with SSE disabled". How to fix it?? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: A simple question.

2001-05-07 Thread Feng Xian
If you do a make install, it will be copied to /boot directory automatically;-) Alex On Mon, 7 May 2001, Hai Xu wrote: > Dear all, > > After I compile and upgrade to a newer Kernel, do I need to copy the > System.map from /usr/src/linux/ to /boot/System- and link it to > System.map? > > Th

Re: A simple question.

2001-05-07 Thread M.
On 07 May 2001 11:29:56 -0400, Hai Xu wrote: > After I compile and upgrade to a newer Kernel, do I need to copy the > System.map from /usr/src/linux/ to /boot/System- and link it to > System.map yes, you do. but System.map is only needed to do symbol lookups, for times like debugging. note m

A simple question.

2001-05-07 Thread Hai Xu
Dear all, After I compile and upgrade to a newer Kernel, do I need to copy the System.map from /usr/src/linux/ to /boot/System- and link it to System.map? Thanks in advance Hai Xu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PR

A simple question on buffer/cache

2001-03-15 Thread Zou Min
Hi, Just wonder what exactly the difference between buffer and cache in linux memory management is. Cache is used for filesystems, so that files read from a fs are kept in memory in order to provide faster access next time. Then what is buffer used for? As executables are also kept in memory, ar

Re: Incoming TCP TOS: A simple question, I would have thought...

2001-03-07 Thread kuznet
Hello! > I've scrolled through various code in net/ipv4, and I can't see how to query > the TOS of an incoming TCP stream (or at the least, the TOS of the SYN which > initiated the connection). No way. Formally it is IP_RECVTOS, followed by IP_PKTOPTIONS. But getting TOS via IP_PKTOPTIONS is no

Re: Incoming TCP TOS: A simple question, I would have thought...

2001-03-06 Thread David Luyer
> getsockopt(fd, SOL_IP, IP_TOS, .. Doesn't work. Returns the TOS of outgoing packets, which defaults to 0 even if there is a TOS set on incoming traffic... that was what I tried in my first test program. David. > cheers, > > lincoln. > > At 03:00 PM 7/03/2001 +1100, David Luyer wrote: > >

Re: Incoming TCP TOS: A simple question, I would have thought...

2001-03-06 Thread Lincoln Dale
getsockopt(fd, SOL_IP, IP_TOS, .. cheers, lincoln. At 03:00 PM 7/03/2001 +1100, David Luyer wrote: >I've scrolled through various code in net/ipv4, and I can't see how to query >the TOS of an incoming TCP stream (or at the least, the TOS of the SYN which >initiated the connection). > >Someone

Incoming TCP TOS: A simple question, I would have thought...

2001-03-06 Thread David Luyer
I've scrolled through various code in net/ipv4, and I can't see how to query the TOS of an incoming TCP stream (or at the least, the TOS of the SYN which initiated the connection). Someone has sent in a feature request for squid which would require this, presumably so they can set the TOS in t