All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Brendan Shephard" <bshephar@bne-home.net>
Cc: aliceryhl@google.com, joelagnelf@nvidia.com, acourbot@nvidia.com,
	airlied@redhat.com, rust-for-linux@vger.kernel.org,
	nouveau@lists.freedesktop.org
Subject: Re: [PATCH v4] drm/nova: Align GEM memory allocation to system page size
Date: Mon, 29 Dec 2025 15:46:24 +0100	[thread overview]
Message-ID: <DFAS5YQICTL9.UHDV6CVYZ30W@kernel.org> (raw)
In-Reply-To: <20251215083416.266469-1-bshephar@bne-home.net>

On Mon Dec 15, 2025 at 9:34 AM CET, Brendan Shephard wrote:
> Use page::page_align for GEM object memory allocation to ensure the
> allocation is page aligned. This is important on systems where the
> default page size is not 4k. Such as 16k or 64k aarch64 systems.
>
> This change uses the updated page_align() function which returns
> Option<usize> for overflow safety. (See "rust: Return Option from
> page_align and ensure no usize overflow").
>
> Signed-off-by: Brendan Shephard <bshephar@bne-home.net>

Applied to drm-rust-next, thanks!

    [ Import page module only. - Danilo ]

For future submissions, please make sure to run scripts/get_maintainer.pl.

WARNING: multiple messages have this Message-ID (diff)
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Brendan Shephard" <bshephar@bne-home.net>
Cc: <aliceryhl@google.com>, <joelagnelf@nvidia.com>,
	<acourbot@nvidia.com>, <airlied@redhat.com>,
	<rust-for-linux@vger.kernel.org>, <nouveau@lists.freedesktop.org>
Subject: Re: [PATCH v4] drm/nova: Align GEM memory allocation to system page size
Date: Mon, 29 Dec 2025 15:46:24 +0100	[thread overview]
Message-ID: <DFAS5YQICTL9.UHDV6CVYZ30W@kernel.org> (raw)
In-Reply-To: <20251215083416.266469-1-bshephar@bne-home.net>

On Mon Dec 15, 2025 at 9:34 AM CET, Brendan Shephard wrote:
> Use page::page_align for GEM object memory allocation to ensure the
> allocation is page aligned. This is important on systems where the
> default page size is not 4k. Such as 16k or 64k aarch64 systems.
>
> This change uses the updated page_align() function which returns
> Option<usize> for overflow safety. (See "rust: Return Option from
> page_align and ensure no usize overflow").
>
> Signed-off-by: Brendan Shephard <bshephar@bne-home.net>

Applied to drm-rust-next, thanks!

    [ Import page module only. - Danilo ]

For future submissions, please make sure to run scripts/get_maintainer.pl.

  parent reply	other threads:[~2025-12-29 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-15  8:34 [PATCH v4] drm/nova: Align GEM memory allocation to system page size Brendan Shephard
2025-12-18 13:16 ` Alexandre Courbot
2025-12-18 13:16   ` Alexandre Courbot
2025-12-23  6:10   ` Brendan Shephard
2025-12-29 14:46 ` Danilo Krummrich [this message]
2025-12-29 14:46   ` Danilo Krummrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DFAS5YQICTL9.UHDV6CVYZ30W@kernel.org \
    --to=dakr@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=airlied@redhat.com \
    --cc=aliceryhl@google.com \
    --cc=bshephar@bne-home.net \
    --cc=joelagnelf@nvidia.com \
    --cc=nouveau@lists.freedesktop.org \
    --cc=rust-for-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.