From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5028649B.10109@freescale.com> Date: Mon, 13 Aug 2012 10:21:15 +0800 From: Huang Shijie MIME-Version: 1.0 To: Marek Vasut Subject: Re: [PATCH v4] mtd: gpmi: add NAND write verify support References: <1344737275-18342-1-git-send-email-shijie8@gmail.com> <201208111610.45107.marex@denx.de> <201208122114.46901.marex@denx.de> In-Reply-To: <201208122114.46901.marex@denx.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Cc: fabio.estevam@freescale.com, dedekind1@gmail.com, dwmw2@infradead.org, stable@vger.kernel.org, linux-mtd@lists.infradead.org, shawn.guo@linaro.org, Huang Shijie , linux-arm-kernel@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , =E4=BA=8E 2012=E5=B9=B408=E6=9C=8813=E6=97=A5 03:14, Marek Vasut =E5=86=99= =E9=81=93: > Don't forget the malloc header and padding around malloc()'d space. So = you're > behind the 2 * PAGESIZE anyway. If we use the kzalloc(). There is no malloc header and padding. We get=20 the memory by the __get_free_pages(). So we do _NOT_ behind the 2*PAGE. We use exactly=20 the 2*PAGE. thanks Huang Shijie From mboxrd@z Thu Jan 1 00:00:00 1970 From: b32955@freescale.com (Huang Shijie) Date: Mon, 13 Aug 2012 10:21:15 +0800 Subject: [PATCH v4] mtd: gpmi: add NAND write verify support In-Reply-To: <201208122114.46901.marex@denx.de> References: <1344737275-18342-1-git-send-email-shijie8@gmail.com> <201208111610.45107.marex@denx.de> <201208122114.46901.marex@denx.de> Message-ID: <5028649B.10109@freescale.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org ? 2012?08?13? 03:14, Marek Vasut ??: > Don't forget the malloc header and padding around malloc()'d space. So you're > behind the 2 * PAGESIZE anyway. If we use the kzalloc(). There is no malloc header and padding. We get the memory by the __get_free_pages(). So we do _NOT_ behind the 2*PAGE. We use exactly the 2*PAGE. thanks Huang Shijie