Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3080923imm; Mon, 10 Sep 2018 10:42:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdayKX2ZZk6aj4bZpcf2/3XX3NBX8OlrFO70UKpXT4XZ+xcCWYSd2LaK6QJ188b7RJillBpI X-Received: by 2002:a63:fe4d:: with SMTP id x13-v6mr23969095pgj.152.1536601323844; Mon, 10 Sep 2018 10:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536601323; cv=none; d=google.com; s=arc-20160816; b=Q+xFRFg+XGXV8AJs6ivuwaXSOgBsOVpfRh5jN4z2cuJm7A4lHJR/lhytsgmukJ4KkB UiFBHxLacffUDK3hI+Mg4LbPC6Eq4p5q8ZQnkYAPd38EEXaQSdzBPajkxgJY3qhakut2 PrJq5zR70xxMGZO1gAQQzMJHmJ8VESv0/vRa2OlayjW5xCWM+dZScucGA9xiYIPw90x2 M9FAiarX3gdx0dUXLzCTZhxUCP/WiFbW0CJPxQyeauVBt2II5FJwOupnbfMOv1BIaYlS fQeZ8xu3PZU5hb73AMFh2PKilhN9fxJo7FCXMNAb6p8k7l7BdULhiS/gbLAoEVY7SAuQ Lrkg== 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=xhsj5IrDtUgYppQ68bMrpk4uTVei1YE8Ajnv1HXR0tE=; b=Ykpzgc0bpWlqBlh/7CyFXZz3zHWZsvf18RvtJ7/96tHRvV+KcgxwhIvt8YdDGu/Wsw oG0q0dNmBojiDd+zesBLtpaZ46h+WVA0B/4BUQe1eN7f3U+Po76+5XeVSxJ1f18DWguL wz0EMxrUWzOD7yazh4bD7H6GaVqYDONrI8fR8VRHtVBLsYmiuHHx1TALzQVi92pyqsK3 1sPUbRBysSTO46oSkMo8Pj1CWYv7uSVYBnU9UtPzs+vl7keeynBzaNglIE/m3zF07NF2 Por2wubLXUpUn0BAy1aTqwfdro3yyAutSXJ1Qzjpr0U1X9R1e03WRWvvNghNUoKo9T6J C5RQ== 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 u69-v6si16190633pgd.547.2018.09.10.10.41.44; Mon, 10 Sep 2018 10:42:03 -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 S1727701AbeIJWf3 (ORCPT + 99 others); Mon, 10 Sep 2018 18:35:29 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58902 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbeIJWf3 (ORCPT ); Mon, 10 Sep 2018 18:35:29 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gerddie) with ESMTPSA id C7CA627D4F5 Message-ID: <1536601160.7046.3.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 19:39:20 +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 Using the kernel 4.19.0-rc2 it works now, so With the fix for not calling fput when memfd == NULL the patch is Reviewed-By: Gert Wollny best, Gert 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). > > > 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. > > Oh, wait, CONFIG_MEMFD_CREATE could be the one. I guess I should add > a > Kconfig dependency. Even though udmabuf will build just fine without > that (because memfd is basically shmem with some features on top) it > doesn't buy you much if the memfd_create syscall is not available ... > > cheers, > Gerd >