Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2846122imm; Mon, 10 Sep 2018 07:20:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbN6jWranj7Y2XIT9hQsEmATDXDYjzqDLZx0q0vMOBRYz1JNcTXYdx2sjCcDzO+uAn3BYvS X-Received: by 2002:a63:d613:: with SMTP id q19-v6mr23243430pgg.327.1536589206786; Mon, 10 Sep 2018 07:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536589206; cv=none; d=google.com; s=arc-20160816; b=yrNtEVPn/LhMyrzOFyVVCQNiZtfcQU4HxgFJl9RNnfM8BSNnPL2lDrNPfXCiLh8jKn lfPz9OoXyVi42cuGzX81cbqErG+IjvhV27RYm387JJjMMAleo09E2KvR/7V+PkUgcYG4 b44MANyEPc2CnX7L4WOZhGyZLuWWYLieVlwTD1QQPAAY6tXAICElNYdCxKnH+ub16YJO qnucNge29sxv9Z7AhuGAWUw2Snm10RJKDQdNq3Gv/yXkYOckvtekkTRfHdAhMlb8LFcP TQhUXlN/G5Q+40+vz3lfuHyQy5snQEiyIJkgNj3p8STVILSN9KpkRx4jR9iOLzmC1lV/ /Nlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=dLYVx0gS3MPJJWvqiokZfKvUxnBt0kkW1fS861SL6jM=; b=jpSUX1rZvNNQJOvAFKQ/oY6r75Dq8WVGqurghl5YvgdnB4gVC8D1LzTwPGDYR5hj5c IAJeG/I0VfNuZFeTnfy6vNxnRAhdUKJn17vXapaHbUzGq3Xc3MKJxVQ95onD3XCCRTv5 9XHO3+iy700ImvaeI/unNK7jTRExV7GUhDgwuo7k95EVvocE/uTiJ1Xey/1wIy84QIcc OvLMKe4BoQ6LKuRxnKdrPCa/Ju5RB8zp5VtDmVLGhN4SP7dVSuwXQ71v808LC+d8Uee8 On8/rsaZTEoG8YuJCa5abEFvyl+wMK4JUxwDu7zG4Ltq2PdrxCGhJMFUUcHOnPyzKx7G 8Wmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5-v6si16700670plp.186.2018.09.10.07.19.51; Mon, 10 Sep 2018 07:20:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728559AbeIJTMO (ORCPT + 99 others); Mon, 10 Sep 2018 15:12:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57874 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728156AbeIJTMO (ORCPT ); Mon, 10 Sep 2018 15:12:14 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gerddie) with ESMTPSA id D6361276446 Message-ID: <1536589022.4810.72.camel@collabora.com> Subject: Re: [PATCH v7] Add udmabuf misc device From: Gert Wollny To: Gerd Hoffmann Cc: linux-kernel@vger.kernel.org, David Airlie , Tomeu Vizoso , Laurent Pinchart , Daniel Vetter Date: Mon, 10 Sep 2018 16:17:02 +0200 In-Reply-To: <20180910133050.tr2lozfmhimqs4c4@sirius.home.kraxel.org> References: <1536491489.4810.22.camel@collabora.com> <20180910083731.o4rryvermyighbtp@sirius.home.kraxel.org> <1536571118.4810.38.camel@collabora.com> <20180910105309.zmyoo5yhrmqg47md@sirius.home.kraxel.org> <1536579068.4810.68.camel@collabora.com> <20180910133050.tr2lozfmhimqs4c4@sirius.home.kraxel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 10.09.2018, 15:30 +0200 schrieb Gerd Hoffmann: > On Mon, Sep 10, 2018 at 01:31:08PM +0200, Gert Wollny wrote: > > Am Montag, den 10.09.2018, 12:53 +0200 schrieb Gerd Hoffmann: > > > > > > By default qemu doesn't use memfd for backing storage, you have > > > to > > > explicitly configure qemu that way (see qemu commit log of the > > > test > > > branch): > > > > > > qemu-system-x86_64 -m 2G > > > -object memory-backend-memfd,id=ram,size=2G > > > -numa node,memdev=ram" > > > > Thanks, but that doesn't seem to help. > > Note the memory is specified twice, once with -m, once for the > memory-backend-memfd object. The two must match of course (or, to be > exact, the sum of all memory backends must match the total memory, > but unless you want create a virtual numa machine there is no reason > to have multiple memory-backends). Qemu actually complained when it was not the same. > > > Are there any host kernel configuration parameters or features that > > I should set (apart from enabling udmabuf)? > > I'm not aware of any unusual parameters required. My config is based > on rhel-7, then stripped down with localmodconfig, then enabled the > bits I want in my test kernel. I use Gentoo and my kernel is rather stripped down ... > > Oh, wait, CONFIG_MEMFD_CREATE could be the one. I guess I should add > a Kconfig dependency. This was enabled, so not sure what else could be missing, I guess I'll have to add some logging to get an idea. Best, Gert