From mboxrd@z Thu Jan 1 00:00:00 1970 From: konrad.wilk@oracle.com (Konrad Rzeszutek Wilk) Date: Wed, 21 Sep 2011 14:53:12 -0400 Subject: [PATCH v4] DRM: add DRM Driver for Samsung SoC EXYNOS4210. In-Reply-To: <001501cc766b$0cb7eba0$2627c2e0$%dae@samsung.com> References: <1315568333-6704-1-git-send-email-inki.dae@samsung.com> <20110914214204.GA16666@phenom.oracle.com> <002c01cc738b$1c717df0$555479d0$%dae@samsung.com> <20110915141501.GA19897@phenom.oracle.com> <001501cc766b$0cb7eba0$2627c2e0$%dae@samsung.com> Message-ID: <20110921185312.GK17357@phenom.oracle.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org > > > > > + DRM_ERROR("desired size is bigger then real > size.\n"); > > > > > > > > So .. you can't continue by just using the real size instead? > > > > > > > > > > I am afraid I don't understand what you mean but I think that condition > > is > > > fine. size is a vm area to user-desired size and you could request > > mapping > > > as specific size. so it just check user-requested virtual space region > > it > > > bigger than allocated physical memory region to be mapped. if there is > > my > > > missing points, I would be happy to you give me your comments. thank > you. > > > > I meant that you return -EINVAL. But I am wondering if it would be > > possible > > to just continue on, but ignore what the user specified. > > > > I think the issue here is that you are outputing the DRM_ERROR and > > I am not sure if it is that neccessary. Perhaps DRM_DEBUG, but DRM_ERROR > > just seems a bit.. heavy handed. > > > > I thought this condition would be critical issue as user application should > be terminated. is your wondering if user application could go ahead after > mmap failed? this is just my view so I would be happy you to give me your > advice. Thank you. I think terminating the appliaction is the right thing. But the DRM_ERROR is not neccessary.