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:
Johannes Schlatow 2023-10-26 21:53:14 +02:00
parent 3a62676da8
commit 350a3d9ae4
2 changed files with 4 additions and 4 deletions

View File

@ -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(); });
}); });
} }

View File

@ -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() { }