Re: sysfs-pci remove

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014/12/17 14:08, ratheesh kannoth wrote:
> On Wed, Dec 17, 2014 at 11:20 AM, Yijing Wang <wangyijing@xxxxxxxxxx> wrote:
>> If the device 06:0.0 was removed by "echo 1 > /sys/.../0000:6:0.0/remove",
>> you could not see lspci info for this device anymore.
>> Do you really remove the device ?
> 
> Oh , my bad. I did not remove the device. I did an unbind
> 
>  echo -n "0000:06:00.0" > /sys/bus/pci/drivers/enic/unbind0
> 
> Unbind wont remove it from /proc/iomem ? I thought enic pci driver is
> the one is calling ioremap on those memory ?

Unbind won't release PCI device bar resource, resources in /proc/iomem is the
physical address resource(added by request_resource()), if you iounmap the bar resource,
it won't change anything in /proc/iomem.

> 
> Thanks,
> Ratheesh
> 
> 


-- 
Thanks!
Yijing

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux