From patchwork Sat Apr 20 04:24:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 162547 Delivered-To: patches@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp170116jan; Fri, 19 Apr 2019 21:25:08 -0700 (PDT) X-Received: by 2002:a63:155d:: with SMTP id 29mr7349861pgv.389.1555734308773; Fri, 19 Apr 2019 21:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555734308; cv=none; d=google.com; s=arc-20160816; b=Fli3n3b/BZieHGYrJPrZqAIHyiY/qfyZgOLgzxyO/8kYtajMfeMVIt+4OMuh+p/jan In/6PSe7IWzGYVDsOQGjQ2IQy0Zoe/NgpyUzJ/MdVR/L3w0OpB9BkGOEV7tObFibEMNi udYh/lzy4ZY/oKCI1++Db7Eyp1j9/KC386XDWf0pSFVzGNSbGK4DGtuwTt+/rL3EYFd8 fB9RBvmWJDDeVVq8jCj/dM3ufFmdY9M5JNlln2HdnOkEp2UlU2/ugbYi2AwiJCXcUXWx Qui3DWW7dvzRWAt0ZGZoS7/BcArwTcYEFgCuUq+7bcD/FCSgVx22JzZXAg2pjYeT0k17 lF4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EK81QH2GNQAqa9nToty5xa9jzrO3pRv0tX0BTrEk+r4=; b=TgCgFLjcR6ZMIUxnH4vHCk9DdQBXRgewYWtvXimF0Wtp9dBrNdbN6Rutl+boG9TJSi ULMpzQdm8Twlvjrqg55oHKei0MaVouvmVu4LGz7SagIpXDFmPIv7Kq68bsK9i+FhteJh X5ZiyC8EUhpK+bYqH4r0IUukhq4z2Lt58zpJRDeATe52Uk2ZqMZznd80QgF/PmyBDLe9 oWVrtx5qGUm/FONs5PFmfUUff6j5c8K7Y36TZduhQLfcPxGaGKRVJTkLMuz8jRrzvIoD 0Sxn+kkgoeP4P3+QnhffPznugT6yordqn7ylr4Go1TEFtJqW32pbuXJCDpXD8xSdd1j2 rNBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uYyjfPet; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 31sor7038811pgn.17.2019.04.19.21.25.08 for (Google Transport Security); Fri, 19 Apr 2019 21:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uYyjfPet; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EK81QH2GNQAqa9nToty5xa9jzrO3pRv0tX0BTrEk+r4=; b=uYyjfPetgdrnUyYMWYjOKjnOLLnx66tejMKfXTREqcv8Zg39GOipoGobqtSIUWx+gQ eQ3sq9x0OD4DsLy0fbYIzawc6upDj/t1eJy2twvzcT/V+JpUGOniclLb7zJgSmaSkGHJ iFuCLiSIUfZMwtOTBtxSyK7Vu2qWB+E55640vIFJz8n/kVK1TeUCTdAIV3sT9RR8CZC0 NjAzUK7ne22v+ZsB63dM8VINku0NBPhYF7X1QA4XUEGwD72/fnbb7j4VrRsePf1tXBHg iD+/HWMyPLtwnNoXLqgvixfxa3NvTkA5jIVCr8COZq5QpqmzQoe6FChPfokpGkM3bTIa Lalg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EK81QH2GNQAqa9nToty5xa9jzrO3pRv0tX0BTrEk+r4=; b=SSotxABuduD4R/UONBm/pk1CuyIciNNr7pBEj6fEx/tckiu0eW7Pj5KMkVgqngXM3V 0PN6LFCGFvJXaeyuZtHAr9C6PGMyCQGpbkE6O54yFTq+cilEiY8SsdoWLBn8MbADX2AV 6HbRubPnuzT5jwdta4QPHxCYPRI7vCzJrO8MchvIZbLnBPD88BSFw+AQA6s43qJWti9a WB8X7evYEdE5J2RuTomldmLMwQSy8SxBOzMVG2KjxLdPd5mVrW4T/o0YhT045OrlCnyY VOVqSa9h6fRYcsbTOBQbL+i0Gb6R1WME5DUn3eBtkc0MJQKncGSxflDEfj4XpdtM/g+e s5zQ== X-Gm-Message-State: APjAAAU0G/NsEa7IGBg8lVwElkdaEg2Bz5YUyudiFPT2RpiyTnkenicQ +io/YMekQNVTUmvt22uIgbNPvNVQ X-Google-Smtp-Source: APXvYqznXQbUsgngbP9puaZoTUdLN+9wh5M2daoVxaIqKArGae2Pa32sU7Syaq5zs80IDPvax2Hu8g== X-Received: by 2002:a65:410c:: with SMTP id w12mr7538762pgp.268.1555734308363; Fri, 19 Apr 2019 21:25:08 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id i1sm15578372pgc.63.2019.04.19.21.25.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 21:25:07 -0700 (PDT) From: John Stultz To: dri-devel Cc: Hemant Hariyani , Emil Velikov , Sean Paul , Alistair Strachan , Marissa Wall , Praneeth Bajjuri , John Stultz Subject: [RFC][PATCH 5/5] libdrm: omap: Add DRM_RDWR flag to dmabuf export Date: Fri, 19 Apr 2019 21:24:55 -0700 Message-Id: <1555734295-31015-6-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555734295-31015-1-git-send-email-john.stultz@linaro.org> References: <1555734295-31015-1-git-send-email-john.stultz@linaro.org> From: Hemant Hariyani Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE. This fixes boot failures caused due to mmap() returning error Cc: Emil Velikov Cc: Sean Paul Cc: Alistair Strachan Cc: Marissa Wall Signed-off-by: Hemant Hariyani [picked and updated commitmsg from http://git.ti.com/cgit/cgit.cgi/android/external-libdrm.git/] Signed-off-by: Praneeth Bajjuri Signed-off-by: Alistair Strachan Signed-off-by: John Stultz --- omap/omap_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/omap/omap_drm.c b/omap/omap_drm.c index 3aed4e0..ffacea6 100644 --- a/omap/omap_drm.c +++ b/omap/omap_drm.c @@ -414,7 +414,7 @@ drm_public int omap_bo_dmabuf(struct omap_bo *bo) if (bo->fd < 0) { struct drm_prime_handle req = { .handle = bo->handle, - .flags = DRM_CLOEXEC, + .flags = DRM_CLOEXEC | DRM_RDWR, }; int ret;