RE: Implement svm without BO concept in xe driver

2023-08-22 Thread Zeng, Oak
g ; Vishwanathapura, Niranjana > ; intel...@lists.freedesktop.org > Subject: RE: Implement svm without BO concept in xe driver > > >-Original Message- > >From: Felix Kuehling > >Sent: Monday, August 21, 2023 4:57 PM > >To: Zeng, Oak ; Dave Airlie > >Cc:

RE: Implement svm without BO concept in xe driver

2023-08-22 Thread Ruhl, Michael J
pura, Niranjana >; intel...@lists.freedesktop.org; >Ruhl, Michael J >Subject: Re: Implement svm without BO concept in xe driver > > >On 2023-08-21 15:41, Zeng, Oak wrote: >>> I have thought about emulating BO allocation APIs on top of system SVM. >>> This was in the context

Re: Implement svm without BO concept in xe driver

2023-08-21 Thread Felix Kuehling
On 2023-08-21 15:41, Zeng, Oak wrote: I have thought about emulating BO allocation APIs on top of system SVM. This was in the context of KFD where memory management is not tied into command submissions APIs, which would add a whole other layer of complexity. The main unsolved (unsolvable?)

RE: Implement svm without BO concept in xe driver

2023-08-21 Thread Zeng, Oak
n > König ; Vishwanathapura, Niranjana > ; intel...@lists.freedesktop.org > Subject: Re: Implement svm without BO concept in xe driver > > > On 2023-08-21 11:10, Zeng, Oak wrote: > > Accidently deleted Brian. Add back. > > > > Thanks, > > Oak > > > >>

Re: Implement svm without BO concept in xe driver

2023-08-21 Thread Felix Kuehling
...@lists.freedesktop.org; Vishwanathapura, Niranjana ; Christian König Subject: RE: Implement svm without BO concept in xe driver -Original Message- From: dri-devel On Behalf Of Dave Airlie Sent: August 20, 2023 6:21 PM To: Zeng, Oak Cc: Brost, Matthew ; Thomas Hellström ; Philip Yang

RE: Implement svm without BO concept in xe driver

2023-08-21 Thread Zeng, Oak
..@lists.freedesktop.org; Vishwanathapura, Niranjana > ; Christian König > > Subject: RE: Implement svm without BO concept in xe driver > > > -Original Message- > > From: dri-devel On Behalf Of Dave > > Airlie > > Sent: August 20, 2023 6:21 PM > > To:

RE: Implement svm without BO concept in xe driver

2023-08-21 Thread Zeng, Oak
el...@lists.freedesktop.org; Vishwanathapura, > Niranjana ; Christian König > > Subject: Re: Implement svm without BO concept in xe driver > > On Thu, 17 Aug 2023 at 12:13, Zeng, Oak wrote: > > > > > -Original Message- > > > From: Dave Airlie > > >

Re: Implement svm without BO concept in xe driver

2023-08-20 Thread Dave Airlie
tthew > > ; maarten.lankho...@linux.intel.com; > > Vishwanathapura, Niranjana ; Welty, > > Brian ; Philip Yang ; intel- > > x...@lists.freedesktop.org; dri-devel@lists.freedesktop.org > > Subject: Re: Implement svm without BO concept in xe driver > > > > On Thu, 17 Aug

Re: Implement svm without BO concept in xe driver

2023-08-18 Thread Felix Kuehling
; maarten.lankho...@linux.intel.com; Vishwanathapura, Niranjana ; Welty, Brian ; Philip Yang ; intel- x...@lists.freedesktop.org; dri-devel@lists.freedesktop.org Subject: Re: Implement svm without BO concept in xe driver On 8/17/23 04:12, Zeng, Oak wrote: -Original Message- From: Dave

RE: Implement svm without BO concept in xe driver

2023-08-18 Thread Zeng, Oak
sts.freedesktop.org; dri-devel@lists.freedesktop.org > Subject: Re: Implement svm without BO concept in xe driver > > > On 8/17/23 04:12, Zeng, Oak wrote: > >> -Original Message- > >> From: Dave Airlie > >> Sent: August 16, 2023 6:52 PM > &

Re: Implement svm without BO concept in xe driver

2023-08-18 Thread Thomas Hellström
; intel- x...@lists.freedesktop.org; dri-devel@lists.freedesktop.org Subject: Re: Implement svm without BO concept in xe driver On Thu, 17 Aug 2023 at 08:15, Felix Kuehling wrote: On 2023-08-16 13:30, Zeng, Oak wrote: I spoke with Thomas. We discussed two approaches: 1) make ttm_resource

RE: Implement svm without BO concept in xe driver

2023-08-16 Thread Zeng, Oak
ian ; Philip Yang ; intel- > x...@lists.freedesktop.org; dri-devel@lists.freedesktop.org > Subject: Re: Implement svm without BO concept in xe driver > > On Thu, 17 Aug 2023 at 08:15, Felix Kuehling wrote: > > > > On 2023-08-16 13:30, Zeng, Oak wrote: > > > I spok

Re: Implement svm without BO concept in xe driver

2023-08-16 Thread Dave Airlie
On Thu, 17 Aug 2023 at 08:15, Felix Kuehling wrote: > > On 2023-08-16 13:30, Zeng, Oak wrote: > > I spoke with Thomas. We discussed two approaches: > > > > 1) make ttm_resource a central place for vram management functions such as > > eviction, cgroup memory accounting. Both the BO-based driver

Re: Implement svm without BO concept in xe driver

2023-08-16 Thread Felix Kuehling
To: Zeng, Oak ; Felix Kuehling ; Thomas Hellström ; Brost, Matthew ; Vishwanathapura, Niranjana ; Welty, Brian ; Philip Yang ; intel...@lists.freedesktop.org; dri- de...@lists.freedesktop.org Subject: Re: Implement svm without BO concept in xe driver Hi Oak, yeah, I completely agree with you

RE: Implement svm without BO concept in xe driver

2023-08-16 Thread Zeng, Oak
homas Hellström ; Brost, Matthew > ; Vishwanathapura, Niranjana > ; Welty, Brian ; > Philip Yang ; intel...@lists.freedesktop.org; dri- > de...@lists.freedesktop.org > Subject: Re: Implement svm without BO concept in xe driver > > Hi Oak, > > yeah, I completely agree

Re: Implement svm without BO concept in xe driver

2023-08-16 Thread Christian König
; Vishwanathapura, Niranjana ; Welty, Brian ; Christian König ; Philip Yang ; intel...@lists.freedesktop.org; dri- de...@lists.freedesktop.org Subject: Re: Implement svm without BO concept in xe driver Hi Oak, I'm not sure what you're looking for from AMD? Are we just CC'ed FYI? Or are you looking for comments

RE: Implement svm without BO concept in xe driver

2023-08-15 Thread Zeng, Oak
iranjana > ; Welty, Brian ; > Christian König ; Philip Yang > ; intel...@lists.freedesktop.org; dri- > de...@lists.freedesktop.org > Subject: Re: Implement svm without BO concept in xe driver > > Hi Oak, > > I'm not sure what you're looking for from AMD? Are we just CC'ed

Re: Implement svm without BO concept in xe driver

2023-08-15 Thread Felix Kuehling
Of *Zeng, Oak *Sent:* August 14, 2023 11:38 PM *To:* Thomas Hellström ; Brost, Matthew ; Vishwanathapura, Niranjana ; Welty, Brian ; Felix Kuehling ; Philip Yang ; intel...@lists.freedesktop.org; dri-devel@lists.freedesktop.org *Subject:* [Intel-xe] Implement svm without BO concept in xe

RE: Implement svm without BO concept in xe driver

2023-08-15 Thread Zeng, Oak
: [Intel-xe] Implement svm without BO concept in xe driver Hi Thomas, Matt and all, This came up when I port i915 svm codes to xe driver. In i915 implementation, we have i915_buddy manage gpu vram and svm codes directly call i915_buddy layer to allocate/free vram. There is no gem_bo/ttm bo concept

Implement svm without BO concept in xe driver

2023-08-14 Thread Zeng, Oak
Hi Thomas, Matt and all, This came up when I port i915 svm codes to xe driver. In i915 implementation, we have i915_buddy manage gpu vram and svm codes directly call i915_buddy layer to allocate/free vram. There is no gem_bo/ttm bo concept involved in the svm implementation. In xe driver, we