Re: [RESEND][PATCH] PCI: Reassign page-aligned memory resources to device for pci passthrough.

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

 



On Thursday, December 4, 2008 12:43 am Yuji Shimada wrote:
> What do you think about supporting both boottime and runtime re-assignment.
>
> I find we can re-assign resources using fakephp driver. What I need to
> do is enhancing my patch to set "pagealignmem" parameter at runtime.
>
> I think it is good to create "/proc/bus/pci/pagealignmem".
>
> Re-assignment can be done as follows.
>
> 1. Sets SSSS:DD:BB.F of the device to "pagealignmem" parameter at runtime.
> 2. Hot-remove the device
> 3. Hot-add it.
>
>
> If you agree with me, I will submit new patch.

This is a step in the right direction, thanks for pursuing it.

It might be better to put the pagealignmem file (and maybe just call it 
"resource_alignment") into the sysfs directory for the device instead though, 
then we could write various alignment constraints to it and hot plug as you 
suggest.  Also, there have been some discussions about using fakephp for non-
testing purposes; cc'ing Alex for his comments there.

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