Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4325067imb; Wed, 6 Mar 2019 10:33:12 -0800 (PST) X-Google-Smtp-Source: APXvYqysbqh2ToK/T1VGMio/6X3qAj2CTPs74yUvsdKEP1Qb7v113Nlp32fY7UyXBwfECa0DbxEL X-Received: by 2002:a17:902:1744:: with SMTP id i62mr8325828pli.24.1551897192728; Wed, 06 Mar 2019 10:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551897192; cv=none; d=google.com; s=arc-20160816; b=etnqTmpVEp+D9lWlBKDsKpTd5eU7SKTWowlFcVd265wm5G01v+C7evosqJZL6415yV XILJLx6WunJKAxALLYsQKxKxy69G6w8wA5lTCjJJ65dkoYNQoDLqRCIgV+ZXYhdNOqHR Hp1u4mwFUAusxYPqdX7+/tkfiPypTuU6RvuVcEOzWTku/+zKp65HO0wTl1RHfnIowwzT APzLhENRdsJnDvr0k7gMP82w49nScXaaCZMor3Ke2IS1ISB7SxLEKnAsWu/6NLGDaLR6 0NkqAvv3MdvcME/3Jlulqao7+xOvR/lrf/YwUCLGFcaxKvn1SbrmTaXEZjfiNo2B2uU6 R64g== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=m4qqq+h3urdW5I3z39Vx8K2gd5APyGw16EX5wb5NSvw=; b=K42jT1lderuN4p2pz4f4yWJF+SUjUHDaubgCLJZ15RWQi/ILjX7UL/xXfFHRkpjhjk iNnAIQVrO1qz6fa5+K0GLzSAH9aLhk7ufZXVbempR7fAxImjk1JUNUHLd1prJBuPw4kU EIbiAHvKJyCkOT1P20rxYhnIM7ZPe7DdlzL+j3GD8bQsJU1pkEufQEt4LHGpJV0wXdg3 8xMYOrdi8eXus3nAu0/agCYILFun73W6eduD/ux8grLjUWyjb/2WsmPbmd/rjkNDL/aZ y+7pGofGxI6tR1MOA8yybuL8Wae8ONl0l4c9fpB0Qbb0YdGaiwi0O5+2Q0yPtHUOrni/ 0kVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DIBg7Mfj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si2128790pfh.188.2019.03.06.10.32.57; Wed, 06 Mar 2019 10:33:12 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=DIBg7Mfj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730285AbfCFRBV (ORCPT + 99 others); Wed, 6 Mar 2019 12:01:21 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53362 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726588AbfCFRBV (ORCPT ); Wed, 6 Mar 2019 12:01:21 -0500 Received: by mail-wm1-f68.google.com with SMTP id e74so6627796wmg.3 for ; Wed, 06 Mar 2019 09:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=m4qqq+h3urdW5I3z39Vx8K2gd5APyGw16EX5wb5NSvw=; b=DIBg7MfjFQKEHIuDOXubaZ7jDtx48RQRdlc+ZUFlW6UfvRHl2ia1urOtRdmymadvgM WE5THFba5CTtX0xcf9GqsyBM6+7Arar+BPjAv+Xl4IJSF+IY7B80E6uoYeyzgm7HjDFx f/axutjP1FCt1nmMkmPGLa0PL4QdIJNlIoH7xIwspNo0IBf7eE2wzraiRDcsDIWE3r0b q/btLYzbVSVO8AiJH7z1PgGYAcPBxClQB7zFDrAEWDpwKrtCDOgqaufhzz2I1vBSdwLI Xkug4Lz+Ujz1wX7BSRHqlkpMcsX7az5aYM/hq3vnBmRjy1g0EctBikR0qkUOeqQw9Uwl H2yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=m4qqq+h3urdW5I3z39Vx8K2gd5APyGw16EX5wb5NSvw=; b=NlydwIbqCqRgxNv6tIG+KEfgUOtieXXyluEcEwhW2ll56stidXkER/IKTsyahMoznu rwb2R7CNq97gaj4k5jxpbYZATdY6yxsEyWViQT4ijAwbgen9NXC1r/8/+xNEGUrQZXTn ibQ0fvXfRLBM9dTYl/GTJ0SRbsDZS8waEIloTZK9ZodQo68KgKI/nruPl85yaz5UQIbF O1cDUR7gsADPZg9GO5Rqti/ahFjGcvCcCDxCjg5N6tUaeuF8HQgN7ZQSze9LuOxaLXuf MyjnfKre7RTBmohauZhp4Qp2SKcEAnq+PCeg2cxz4ZoNG+F3sla0Ytaj2lThYKkyEawh DVbA== X-Gm-Message-State: APjAAAVGM6kkUty3c3eJhL830Zuad9D8fz50WAept//ealZkw5zT9uY3 CM51dIvjkzTJphTNeoKFp7NDhL9CuOUURveaFKB+Fg== X-Received: by 2002:a1c:3b06:: with SMTP id i6mr2985833wma.55.1551891679224; Wed, 06 Mar 2019 09:01:19 -0800 (PST) MIME-Version: 1.0 References: <1551819273-640-1-git-send-email-john.stultz@linaro.org> <1551819273-640-6-git-send-email-john.stultz@linaro.org> In-Reply-To: From: John Stultz Date: Wed, 6 Mar 2019 09:01:07 -0800 Message-ID: Subject: Re: [RFC][PATCH 5/5 v2] kselftests: Add dma-heap test To: Benjamin Gaignard Cc: lkml , Laura Abbott , Greg KH , Sumit Semwal , Liam Mark , Brian Starkey , "Andrew F . Davis" , Chenbo Feng , Alistair Strachan , ML dri-devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 6, 2019 at 8:14 AM Benjamin Gaignard wrote: > Le mar. 5 mars 2019 =C3=A0 21:54, John Stultz a = =C3=A9crit : > > + > > + printf("Allocating 1 MEG\n"); > > + ret =3D dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); > > + if (ret) > > + goto out; > > + > > + /* DO SOMETHING WITH THE DMABUF HERE? */ > > You can do a call to mmap and write a pattern in the buffer. Yea. I can also do some invalid allocations to make sure things fail proper= ly. But I was talking a bit w/ Sumit about the lack of any general dmabuf tests, and am curious if we need to have a importer device driver that can validate its a real dmabuf and exercise more of the dmabuf ops. thanks -john