mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-06 11:10:24 +00:00
platform_session: increase RAM and CAP quota
As a consequence of the adding IOMMU support to the platform driver, additional RAM and CAPs are needed for setting up IO page-table structures. genodelabs/genode#5002
This commit is contained in:
parent
3a62676da8
commit
350a3d9ae4
@ -72,7 +72,7 @@ class Platform::Connection : public Genode::Connection<Session>,
|
|||||||
|
|
||||||
Connection(Env &env)
|
Connection(Env &env)
|
||||||
:
|
:
|
||||||
Genode::Connection<Session>(env, Label(), Ram_quota { 56*1024 }, Args()),
|
Genode::Connection<Session>(env, Label(), Ram_quota { 84*1024 }, Args()),
|
||||||
Client(cap()),
|
Client(cap()),
|
||||||
_env(env)
|
_env(env)
|
||||||
{
|
{
|
||||||
@ -98,7 +98,7 @@ class Platform::Connection : public Genode::Connection<Session>,
|
|||||||
Capability<Device_interface> acquire_device(Device_name const &name) override
|
Capability<Device_interface> acquire_device(Device_name const &name) override
|
||||||
{
|
{
|
||||||
return _wait_for_device([&] () {
|
return _wait_for_device([&] () {
|
||||||
return retry_with_upgrade(Ram_quota{6*1024}, Cap_quota{6}, [&] () {
|
return retry_with_upgrade(Ram_quota{20*1024}, Cap_quota{6}, [&] () {
|
||||||
return Client::acquire_device(name); });
|
return Client::acquire_device(name); });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -106,7 +106,7 @@ class Platform::Connection : public Genode::Connection<Session>,
|
|||||||
Capability<Device_interface> acquire_device()
|
Capability<Device_interface> acquire_device()
|
||||||
{
|
{
|
||||||
return _wait_for_device([&] () {
|
return _wait_for_device([&] () {
|
||||||
return retry_with_upgrade(Ram_quota{6*1024}, Cap_quota{6}, [&] () {
|
return retry_with_upgrade(Ram_quota{20*1024}, Cap_quota{6}, [&] () {
|
||||||
return Client::acquire_single_device(); });
|
return Client::acquire_single_device(); });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ struct Platform::Session : Genode::Session
|
|||||||
*/
|
*/
|
||||||
static const char *service_name() { return "Platform"; }
|
static const char *service_name() { return "Platform"; }
|
||||||
|
|
||||||
static constexpr unsigned CAP_QUOTA = 6;
|
static constexpr unsigned CAP_QUOTA = 18;
|
||||||
|
|
||||||
virtual ~Session() { }
|
virtual ~Session() { }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user