acpi: Adjust device_pd quota for 64bit machines
This commit is contained in:
parent
839c0263c9
commit
c36909e5dc
|
@ -69,7 +69,7 @@ set config {
|
||||||
<provides> <service name="Timer"/> </provides>
|
<provides> <service name="Timer"/> </provides>
|
||||||
</start>
|
</start>
|
||||||
<start name="test-lwip_httpsrv">
|
<start name="test-lwip_httpsrv">
|
||||||
<resource name="RAM" quantum="2M"/>
|
<resource name="RAM" quantum="3M"/>
|
||||||
</start> }
|
</start> }
|
||||||
|
|
||||||
append_if [have_spec omap4] config {
|
append_if [have_spec omap4] config {
|
||||||
|
@ -91,7 +91,7 @@ append_if [expr ![have_spec omap4]] config {
|
||||||
|
|
||||||
append_if [have_spec acpi] config {
|
append_if [have_spec acpi] config {
|
||||||
<start name="acpi">
|
<start name="acpi">
|
||||||
<resource name="RAM" quantum="5M"/>
|
<resource name="RAM" quantum="6M"/>
|
||||||
<binary name="acpi_drv"/>
|
<binary name="acpi_drv"/>
|
||||||
<provides>
|
<provides>
|
||||||
<service name="PCI"/>
|
<service name="PCI"/>
|
||||||
|
|
|
@ -80,8 +80,8 @@ int main(int argc, char **argv)
|
||||||
* Initialize server entry point
|
* Initialize server entry point
|
||||||
*/
|
*/
|
||||||
enum {
|
enum {
|
||||||
STACK_SIZE = 2 * sizeof(addr_t)*1024,
|
STACK_SIZE = 2 * sizeof(addr_t)*1024,
|
||||||
PCI_DEVICE_PD_RAM_QUOTA = 512 * 1024,
|
PCI_DEVICE_PD_RAM_QUOTA = sizeof(addr_t) * 128 * 1024,
|
||||||
};
|
};
|
||||||
|
|
||||||
static Cap_connection cap;
|
static Cap_connection cap;
|
||||||
|
@ -93,7 +93,7 @@ int main(int argc, char **argv)
|
||||||
static Rpc_entrypoint device_pd_ep(&cap, STACK_SIZE, "device_pd_slave");
|
static Rpc_entrypoint device_pd_ep(&cap, STACK_SIZE, "device_pd_slave");
|
||||||
static Device_pd_policy device_pd_policy(device_pd_ep);
|
static Device_pd_policy device_pd_policy(device_pd_ep);
|
||||||
static Genode::Slave device_pd_slave(device_pd_ep, device_pd_policy,
|
static Genode::Slave device_pd_slave(device_pd_ep, device_pd_policy,
|
||||||
PCI_DEVICE_PD_RAM_QUOTA);
|
PCI_DEVICE_PD_RAM_QUOTA);
|
||||||
session_dev_pd = Genode::Root_client(device_pd_policy.root()).session("");
|
session_dev_pd = Genode::Root_client(device_pd_policy.root()).session("");
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
PWRN("PCI device protection domain for IOMMU support is not available");
|
PWRN("PCI device protection domain for IOMMU support is not available");
|
||||||
|
|
Loading…
Reference in New Issue