Informing kernel that a block device is offlined

2015-11-10 Thread Alvin Abitria
Hello, Good day. My inquiry is about block drivers. Suppose our device encounter problems and all error handling failed. The only remaining option I see for the driver to do is to offline it. The intention is for the system to be notified to avoid sending any future request to the device and

System can't boot properly coz of block device state

2015-08-01 Thread Alvin Abitria
I'm having a problem where the server system hosting a pci device we're developing messes up in boot and can't get to the login screen. I'm developing a linux driver for that pci device (a block device/ssd actually). However from our tests, when the device is has undergone lots of usage, it

PCI error handlers in Linux

2014-09-16 Thread Alvin Abitria
Hello, In my pci driver for a certain pci device, I implemented the pci error handler functions (error_detected, slot_reset methods, etc). I want to trigger a pci error for me to exercise those handlers and observe its behavior. I've read from the pci error recovery kernel documentation that

Can block driver kthread slow down blkid and other processes?

2014-09-14 Thread Alvin Abitria
Hello Gurus, I'm currently creating a Linux driver for block devices. This has been going on for some time, and I just recently changed the driver design from bio-mode to request-mode (I used to handle struct bio but now I'm operating on struct request) and it made the functionality simpler,

Re: Can block driver kthread slow down blkid and other processes?

2014-09-14 Thread Alvin Abitria
I see. Thanks Greg! Just posted to the mailing list you mentioned. On Sun, Sep 14, 2014 at 11:35 PM, Greg KH g...@kroah.com wrote: On Sun, Sep 14, 2014 at 09:53:03PM +0800, Alvin Abitria wrote: Hello Gurus, Try posting your code to the linux-fsde...@vger.kernel.org mailing list

Re: About bio_endio

2014-06-24 Thread Alvin Abitria
Hello Pranay! Thanks for your reply. I apologize for my very late reply, I was very preoccupied earlier at work. On Tue, Jun 24, 2014 at 1:07 PM, Pranay Srivastava pran...@gmail.com wrote: Hello Alvin, On Mon, Jun 23, 2014 at 10:39 PM, Alvin Abitria abitria.al...@gmail.com wrote: Hello

Re: About bio_endio

2014-06-24 Thread Alvin Abitria
Hello Pranay, Thanks for your very helpful insights! I hope you don’t mind if I continue with more questions on block layer :-) On Jun 25, 2014 2:09 AM, Pranay Srivastava pran...@gmail.com wrote: Hello Alvin, On Tue, Jun 24, 2014 at 9:53 PM, Alvin Abitria abitria.al...@gmail.com wrote

About bio_endio

2014-06-23 Thread Alvin Abitria
Hello, I'm developing a block driver using the make_request method, effectively bypassing existing scsi or request stack in block layer.  So that means im directly working with bios.  As prescribed in linux documentation and from referring to similar drivers in kernel, you close a session with

bio_endio error codes

2014-06-23 Thread Alvin Abitria
Hello Gurus, Please disregard my earlier mail due to poor formatting  and readability. I'm developing a block driver using the make_request  method, effectively bypassing existing scsi or request  stack in block layer.  So that means im directly  working with bios.  As prescribed in linux 

Unexpected driver interrupt behavior during init

2014-05-26 Thread Alvin Abitria
I am currently developing a PCI block driver and can use only MSI interrupt.   During interrupt initialization, I called the pci_enable_msi and request_irq with following sample irq initialization function - static int mydev_init_irq(struct mydevice *dev_ptr) {         int error;         struct