[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210815153825.GB32384@lst.de>
Date: Sun, 15 Aug 2021 17:38:25 +0200
From: Christoph Hellwig <hch@....de>
To: Alex Sierra <alex.sierra@....com>
Cc: akpm@...ux-foundation.org, Felix.Kuehling@....com,
linux-mm@...ck.org, rcampbell@...dia.com,
linux-ext4@...r.kernel.org, linux-xfs@...r.kernel.org,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
hch@....de, jgg@...dia.com, jglisse@...hat.com
Subject: Re: [PATCH v6 05/13] drm/amdkfd: generic type as sys mem on
migration to ram
On Fri, Aug 13, 2021 at 01:31:42AM -0500, Alex Sierra wrote:
> migrate.vma = vma;
> migrate.start = start;
> migrate.end = end;
> - migrate.flags = MIGRATE_VMA_SELECT_DEVICE_PRIVATE;
> migrate.pgmap_owner = SVM_ADEV_PGMAP_OWNER(adev);
>
> + if (adev->gmc.xgmi.connected_to_cpu)
> + migrate.flags = MIGRATE_VMA_SELECT_SYSTEM;
> + else
> + migrate.flags = MIGRATE_VMA_SELECT_DEVICE_PRIVATE;
It's been a while since I touched this migrate code, but doesn't this
mean that if the range already contains system memory the migration
now won't do anything? for the connected_to_cpu case?
Powered by blists - more mailing lists