Need help in nvme queue

2018-07-20 Thread Er Krishna
Hi All,

Does Linux kernel provide any kernel API to find the number of queues
supported by Name Device which can be of vendor specific like Toshiba or
Seagate or anything. Or if I can get it by reading PCIe Configuration spcae
or capabilities. Please let me know how to get it from my driver code.

Br/Krish
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


kobj->state_initialized is never set to 0

2018-07-20 Thread Helen Koike
Hi,

I am simulating hotplugging a platform device (to the
media/platform/vimc driver), so I register it using
platform_device_register, then I unregister it with
platform_device_unregister, then I register it again, but the code
doesn't allow me to register something that was registered before due
to this line:

https://github.com/torvalds/linux/blob/master/lib/kobject.c#L334

The variable kobj->state_initialized is set to 1 at

https://github.com/torvalds/linux/blob/master/lib/kobject.c#L194

but it is never set to 0 again.

Is this how it is supposed to work? Or kobj->state_initialized is set
to 0 somewhere else I couldn't find?

Thanks
Helen

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


memcpy seg fault with mmaped address

2018-07-20 Thread David Frank
Hi, 
I'm memcpy data into mmaped address with 2GB file, after a few files, it would 
fault with the following stack dump:
received signal SIGSEGV, Segmentation fault.[Switching to Thread 0x75e95700 
(LWP 3028)]
__memmove_avx_unaligned_erms ()
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:494
494    ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such
file or directory.
(gdb) bt
#0  __memmove_avx_unaligned_erms ()
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:494


Any idea?
Thanks,
David
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux kernel mailing list filtering issues

2018-07-20 Thread Alexander Kapshuk
On Fri, Jul 20, 2018 at 3:43 PM  wrote:
>
> On 2018-07-19 23:55, Alexander Kapshuk wrote:
> > On Thu, Jul 19, 2018 at 10:25 PM  wrote:
> >>
> >> Hi all, I've been trying to post a bug report to the linux-usb mailing
> >> list but keep getting trapped in the filters despite ensuring I'm
> >> using
> >> plaintext.
> >> Heres what I get in the bounce back:
> >>
> >> The mail system
> >>
> >> : host vger.kernel.org[209.132.180.67]
> >> said:
> >> 550
> >>  5.7.1 Content-Policy accept-into-freezer-1 msg: Bayes Statistical
> >>  Bogofilter considers this message SPAM.  BF:  In case you
> >> disagree,
> >>  send the ENTIRE message plus this error message to
> >>  ;
> >>
> >> I've sent the message to the postmaster but haven't heard anything. My
> >> message got through to the maintainer, who has requested I fix my
> >> message and get it on the mailing list proper but nothing I've tried
> >> is
> >> working.
> >>
> >> Heres part of the header from the source of my most recent message:
> >>
> >> MIME-Version: 1.0
> >> Content-Type: text/plain; charset=UTF-8;
> >>   format=flowed
> >> Content-Transfer-Encoding: 8bit
> >>
> >> Any suggestions? Thanks
> >>
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> > What email client did you use to send in your patch?
>
> I used thuderbird to post to the list. My issue seemed to be not having
> the usb: dwc2: tags in the subject line, and my subject being too long.
> Both apparently heavily weight the filter towards treating the message
> as spam. I also removed anything in the debug information that resembled
> a url or email address, which didn't help immediately but might have
> helped weight  it towards not spam after I did the above things. It
> might be a good idea to have a list of suggestions like these on the
> wiki.

You will find kernel documentation [1] on preferred email clients and
formats of interest.
Among other things, the advise on the format of email messages is:
Don't send patches with ``format=flowed``.  This can cause unexpected
and unwanted line breaks.

My personal preference is the use of 'git send-email'. I've also found
mutt to be compliant with the guidelines laid out in the reference
doc.
Hope this helps.

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/Documentation/process/email-clients.rst?h=v4.17.8

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies