AMD-GFX Archive on
 help / color / Atom feed
From: "Zhao, Yong" <>
To: Fenghua Yu <>,
	"Kuehling, Felix" <>
Cc: "" <>
Subject: Re: drm/amdkfd: Change pasid's type to unsigned int
Date: Sat, 23 May 2020 03:14:59 +0000
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1.1: Type: text/plain, Size: 1222 bytes --]

[AMD Official Use Only - Internal Distribution Only]

Hi Fenghua,

I am okay with the idea.

From: Fenghua Yu <>
Sent: Friday, May 22, 2020 5:21 PM
To: Kuehling, Felix <>
Cc: Zhao, Yong <>; <>
Subject: Re: drm/amdkfd: Change pasid's type to unsigned int

Hi, Felix,

On Fri, May 22, 2020 at 03:40:06PM -0400, Felix Kuehling wrote:
> Hi Fenghua,
> The PASID width in KFD is currently limited to 16 bits. I believe this
> reflects what our hardware can handle. KFD will never allocate a PASID
> bigger than 16 bits. That said, I'm OK with changing this field in the
> kfd_process structure to unsigned int. Generally, I find uint16_t in
> structures not very useful except in tightly packed structures such as
> packet formats or ioctl arguments.

Thank you very much for your insight!

I'm writing the patch set to define pasid as "unsigned int" consistently
in iommu. I'll put the amdkfd changes (only a few changes including this
pasid change in struct kfd_processin) one patch and send it to you for


[-- Attachment #1.2: Type: text/html, Size: 2748 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

amd-gfx mailing list

      reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-22 19:25 Fenghua Yu
2020-05-22 19:40 ` Felix Kuehling
2020-05-22 21:21   ` Fenghua Yu
2020-05-23  3:14     ` Zhao, Yong [this message]

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:

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

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

AMD-GFX Archive on

Archives are clonable:
	git clone --mirror amd-gfx/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 amd-gfx amd-gfx/ \
	public-inbox-index amd-gfx

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone