RE: [EXT] [PATCH v1 1/2] scsi: ufs: Fix unbalanced scsi_block_reqs_cnt caused by ufshcd_hold()

2020-11-03 Thread Bean Huo (beanhuo)
> > Signed-off-by: Can Guo > Reviewed-by: Hongwu Su Reviewed-by: Bean Huo

RE: [PATCH] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-21 Thread Bean Huo (beanhuo)
Can, > Since WB feature has been added, WB related sysfs entries can be accessed > even when an UFS device does not support WB feature. In that case, the > descriptors which are not supported by the UFS device may be wrongly reported > when they are accessed from their corrsponding sysfs entries.

RE: [EXT] [PATCH v2] scsi: ufs: Disable WriteBooster capability in non-supported UFS device

2020-06-25 Thread Bean Huo (beanhuo)
> > If UFS device is not qualified to enter the detection of WriteBooster probing > by > disallowed UFS version or device quirks, then WriteBooster capability in host > shall be disabled to prevent any WriteBooster operations in the future. > > Fixes: 3d17b9b5ab11 ("scsi: ufs: Add write booster

RE: RE: [EXT] [PATCH] scsi: ufs-bsg: Fix runtime PM imbalance on error

2020-05-22 Thread Bean Huo (beanhuo)
Hi, Dinghao > Thank you for your advice! Moving original pm_runtime_put_sync() to after > "out" label will influence an error path branched from > ups_bsg_verify_query_size(). So I think changing "goto out" to "break" is a > good > idea. But in this case we may execute an extra > sg_copy_from_buf

RE: [EXT] [PATCH] scsi: ufs-bsg: Fix runtime PM imbalance on error

2020-05-22 Thread Bean Huo (beanhuo)
> 1 file changed, 3 insertions(+), 1 deletion(-) Hi, Dinghao > > diff --git a/drivers/scsi/ufs/ufs_bsg.c b/drivers/scsi/ufs/ufs_bsg.c index > 53dd87628cbe..516a7f573942 100644 > --- a/drivers/scsi/ufs/ufs_bsg.c > +++ b/drivers/scsi/ufs/ufs_bsg.c > @@ -106,8 +106,10 @@ static int ufs_bsg_request(s

RE: [EXT] [PATCH v6 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-04 Thread Bean Huo (beanhuo)
> From: Stanley Chu > Sent: Monday, May 4, 2020 4:56 PM > To: linux-s...@vger.kernel.org; martin.peter...@oracle.com; > avri.alt...@wdc.com; alim.akh...@samsung.com; j...@linux.ibm.com; > asuto...@codeaurora.org > Cc: Bean Huo (beanhuo) ; c...@codeaurora.org; > matthias..

RE: [EXT] [PATCH v2 1/5] scsi: ufs: Allow UFS 3.0 as a valid version

2020-04-29 Thread Bean Huo (beanhuo)
> > > @@ -8441,7 +8441,8 @@ int ufshcd_init(struct ufs_hba *hba, void > > > __iomem *mmio_base, unsigned int irq) > > > if ((hba->ufs_version != UFSHCI_VERSION_10) && > > > (hba->ufs_version != UFSHCI_VERSION_11) && > > > (hba->ufs_version != UFSHCI_VERSION_20) && > > > - (hba->uf

RE: [EXT] [PATCH v1 3/4] scsi: ufs: add LU Dedicated buffer type support for WriteBooster

2020-04-29 Thread Bean Huo (beanhuo)
> > +/* WriteBooster buffer type */ > +enum { > + WB_TYPE_LU_DEDICATED= 0x0, > + WB_TYPE_SINGLE_SHARED = 0x1 > +}; Hi, Stanly WB_TYPE_SINGLE_SHARED might be WB_TYPE_SHARED_BUFFER. I think, we should try to make the name definition correspond to Spec thanks, Bean

RE: [EXT] [PATCH v1 4/4] scsi: ufs-mediatek: enable WriteBooster capability

2020-04-29 Thread Bean Huo (beanhuo)
> -Original Message- > From: Stanley Chu > Sent: Tuesday, April 28, 2020 1:14 PM > To: linux-s...@vger.kernel.org; martin.peter...@oracle.com; > avri.alt...@wdc.com; alim.akh...@samsung.com; j...@linux.ibm.com; > asuto...@codeaurora.org > Cc: Bean Huo (beanhuo)

RE: [EXT] [PATCH v1 1/4] scsi: ufs: allow legacy UFS devices to enable WriteBooster

2020-04-29 Thread Bean Huo (beanhuo)
> -Original Message- > From: Stanley Chu > Sent: Tuesday, April 28, 2020 1:14 PM > To: linux-s...@vger.kernel.org; martin.peter...@oracle.com; > avri.alt...@wdc.com; alim.akh...@samsung.com; j...@linux.ibm.com; > asuto...@codeaurora.org > Cc: Bean Huo (beanhuo)

RE: [EXT] [PATCH v1 2/4] scsi: ufs: add "index" in parameter list of ufshcd_query_flag()

2020-04-29 Thread Bean Huo (beanhuo)
> -Original Message- > From: Stanley Chu > Sent: Tuesday, April 28, 2020 1:14 PM > To: linux-s...@vger.kernel.org; martin.peter...@oracle.com; > avri.alt...@wdc.com; alim.akh...@samsung.com; j...@linux.ibm.com; > asuto...@codeaurora.org > Cc: Bean Huo (beanhuo)

RE: [EXT] [PATCH v1 1/2] scsi: ufs: Introduce a vops for resetting host controller

2019-10-23 Thread Bean Huo (beanhuo)
Hi, Can Guo Actually, we already have DME_RESET, this is not enough for Qualcomm host? Thanks, //Bean > > Some UFS host controllers need their specific implementations of resetting to > get them into a good state. Provide a new vops to allow the platform driver to > implement this own reset op

RE: [EXT] [PATCH v4 1/3] scsi: ufs: Introduce vops for resetting device

2019-09-02 Thread Bean Huo (beanhuo)
> >Reviewed-by: Alim Akhtar >Signed-off-by: Bjorn Andersson Reviewed-by: Bean Huo //Bean Huo

[PATCH v1] scsi: ufs: change msleep to usleep_range

2019-07-15 Thread Bean Huo (beanhuo)
From: Bean Huo This patch is to change msleep() to usleep_range() based on Documentation/timers/timers-howto.txt. It suggests using usleep_range() for small msec(1ms - 20ms) since msleep() will often sleep longer than desired value. After changing, booting time will be 5ms-10ms faster than befor

[PATCH v2 3/3] scsi: ufs-bsg: complete ufs-bsg job only if no error

2019-06-23 Thread Bean Huo (beanhuo)
From: Bean Huo In the case of UPIU/DME request execution failed in UFS device, ufs_bsg_request() will complete this failed bsg job by calling bsg_job_done(). Meanwhile, it returns this error status to blk-mq layer, then triggers blk-mq completing this request again, this will cause below panic.

[PATCH v2 2/3] scsi: ufs-bsg: fix typo in ufs_bsg_request

2019-06-23 Thread Bean Huo (beanhuo)
From: Bean Huo Correct dev_dbg to dev_err, so as to print out the error information in case of DME command failed. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufs_bsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs_bsg.c b/drivers/scsi/ufs/ufs_bsg.

[PATCH v2 0/3] scsi: ufs: typo fixes and improvement

2019-06-23 Thread Bean Huo (beanhuo)
From: Bean Huo This series patch is to fix several typos and fix one issue of twice completing ufs-bsg job in case of UPIU/DME command failed. Changed since v1: - split v1 patch - add fixes tag - delete needless blank line Bean Huo (3): scsi: ufs: fix typos in comment of ufshcd_

[PATCH V1] scsi: ufs-bsg: complete ufs-bsg job only if no error

2019-06-22 Thread Bean Huo (beanhuo)
From: Bean Huo In the case of UPIU/DME request execution failed in UFS device, ufs_bsg_request() will complete this failed bsg job by calling bsg_job_done(). Meanwhile, it returns this error status to blk-mq layer, then trigger blk-mq complete this request again, this will cause below panic. [

RE: [EXT] [PATCH v3 2/3] scsi: ufs-qcom: Implement device_reset vops

2019-06-14 Thread Bean Huo (beanhuo)
Hi, Bjorn Sorry just saw your message. You can use UIC command,through function ufshcd_send_uic_cmd( ) with UIC_CMD_DME_END_PT_RST command. DME_ENDPOINTRESET: It is used when UFS host wants the UFS device to perform a reset. //bean >On Tue 11 Jun 09:08 PDT 2019, Bean Huo (beanhuo) wr

RE: [EXT] [PATCH v3 2/3] scsi: ufs-qcom: Implement device_reset vops

2019-06-11 Thread Bean Huo (beanhuo)
Hi, Bjorn This HW reset is dedicated to QUALCOMM based platform case. how about adding a SW reset as to be default reset routine if platform doesn't support HW reset? >-Original Message- >From: linux-scsi-ow...@vger.kernel.org >On Behalf Of Bjorn Andersson >Sent: Saturday, June 8, 2019 7

RE: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-05 Thread Bean Huo (beanhuo)
vger.kernel.org >Subject: Re: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device > >On Tue 04 Jun 01:13 PDT 2019, Bean Huo (beanhuo) wrote: >> >@@ -6159,6 +6179,9 @@ static int ufshcd_reset_and_restore(struct >> >ufs_hba >> >*hba) >> &

RE: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread Bean Huo (beanhuo)
Hi, Bjorn >Acquire the device-reset GPIO and toggle this to reset the UFS device during >initialization and host reset. > >+/** >+ ufshcd_device_reset() - toggle the (optional) device reset line >+ * @hba: per-adapter instance >+ * >+ * Toggles the (optional) reset line to reset the attached devic

RE: [EXT] [PATCH] scsi: ufs: Check that space was properly alloced in copy_query_response

2019-05-28 Thread Bean Huo (beanhuo)
Hi, Avri > >Signed-off-by: Avri Altman Acked-by: Bean Huo Thanks, //Bean

RE: [EXT] [PATCH v6 2/2] mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller

2019-02-21 Thread Bean Huo (beanhuo)
Hi, Vignesh > >Cadence OSPI controller IP supports Octal IO (x8 IO lines), It also has an >integrated PHY. IP register layout is very similar to existing QSPI IP except >for >additional bits to support Octal and Octal DDR mode. Therefore, extend >current driver to support Octal mode. Only Octal S

RE: [EXT] Re: [PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
>> git send-email 0001-mtd-spi-nor-Fix-wrong-abbreviation-HWCPAS.patch >> 0001-mtd-spi-nor-Fix-wrong-abbreviation-HWCPAS.patch > >git send-email --annotate --to=... --cc=... --cc=... 000*patch > >This will likely make your life easier, rather than having to paste various >email >addresses to git s

RE: [EXT] Re: [PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
Subject: [RESEND PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS Date: Fri, 8 Feb 2019 18:00:12 + Message-Id: <20190208180012.25852-1-bean...@micron.com> X-Mailer: git-send-email 2.17.1 Result: OK > >Hi Bean, > >On Fri, 8 Feb 2019 17:13:52 + >"Bean Huo (be

[RESEND PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
From: Bean Huo Change SNOR_HWCPAS_READ_OCTAL to SNOR_HWCAPS_READ_OCTAL. Signed-off-by: Bean Huo --- include/linux/mtd/spi-nor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 2353af8..b3d360b 100644 --- a/inc

RE: [EXT] Re: [PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
Hi, Tutor Thanks. unfortunately, it doesn't work on my side. Problem is on our email server side, not my local setting. I followed your configuration, then git-email failed. Please just change my S-o-b to 'Bean Huo (beanhuo) ' in my patch to please checkpacth.pl. It is not huge

RE: [EXT] Re: [PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
Hi, Tutor >$ ./scripts/checkpatch.pl --strict >v2-mtd-spi-nor-Fix-wrong-abbreviation-HWCPAS.patch >WARNING: Missing Signed-off-by: line by nominal patch author 'Bean Huo >(beanhuo) ' > I think, this is because of our email system, it always adds '(xxx)' betwee

RE: [EXT] Re: [PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
:23 PM, Bean Huo (beanhuo) wrote: >> Change SNOR_HWCPAS_READ_OCTAL to SNOR_HWCAPS_READ_OCTAL. >> >> Signed-off-by: Bean Huo > >$ ./scripts/checkpatch.pl --strict >v2-mtd-spi-nor-Fix-wrong-abbreviation-HWCPAS.patch >WARNING: Missing Signed-off-by: line by nominal patch au

[PATCH v2] mtd: spi-nor: Fix wrong abbreviation HWCPAS

2019-02-08 Thread Bean Huo (beanhuo)
Change SNOR_HWCPAS_READ_OCTAL to SNOR_HWCAPS_READ_OCTAL. Signed-off-by: Bean Huo --- include/linux/mtd/spi-nor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 2353af8..b3d360b 100644 --- a/include/linux/mtd/spi

RE: [EXT] Re: [PATCH] include: mtd: spi-nor: change HWCPAS to HWCAPS

2019-02-08 Thread Bean Huo (beanhuo)
t, you can check how were prefixed previous patches on the same file by >running something like: > >git log --oneline include/linux/mtd/spi-nor.h > >On 02/07/2019 03:46 PM, Bean Huo (beanhuo) wrote: >> > >This looks like a blank line, it's not needed, remove it please

[PATCH] include: mtd: spi-nor: change HWCPAS to HWCAPS

2019-02-07 Thread Bean Huo (beanhuo)
Maybe this is wrong abbreviation, change from HWCPAS to HWCAPS. Signed-off-by: Bean Huo --- include/linux/mtd/spi-nor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index fa2d89e..5e12bf9 100644 --- a/include/linu

RE: [EXT] [PATCH v4 3/3] scsi: ufs-bsg: Allow reading descriptors

2019-01-31 Thread Bean Huo (beanhuo)
>-Original Message- >From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- >ow...@vger.kernel.org] On Behalf Of Avri Altman >Sent: Sunday, January 27, 2019 8:08 AM >To: James E.J. Bottomley ; Martin K. Petersen >; linux-s...@vger.kernel.org; linux- >ker...@vger.kernel.org; Evan Green

RE: [EXT] [PATCH v4 2/3] scsi: ufs: Allow reading descriptor via raw upiu

2019-01-31 Thread Bean Huo (beanhuo)
> >Signed-off-by: Avri Altman >Reviewed-by: Evan Green Reviewed-by: Bean Huo

RE: [PATCH v4 1/3] scsi: ufs-bsg: Change the calling convention for write descriptor

2019-01-30 Thread Bean Huo (beanhuo)
t;- uint8_t *desc_buff, int *desc_len, >- enum query_opcode desc_op) >+static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, >+ uint8_t **desc_buff, int *desc_len, Maybe here also we should use 'u8'. Reviewed-by: Bean Huo //Beanhuo

Re: [PATCH v6 0/6] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F

2018-07-10 Thread Bean Huo (beanhuo)
e has a suspicious header Either the message will get posted to the list, or you will receive notification of the moderator's decision. If you would like to cancel this posting, please visit the following URL: http://lists.infradead.org/mailman/confirm/linux-mtd/1a28f9a4069a0bbcadfb6b2a170c01dd8b962d0a //beanhuo

Re: [PATCH v6 0/6] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F

2018-07-10 Thread Bean Huo (beanhuo)
Hi, Boris >> >> Okay, I think we already had this discussion, but I'm asking it again. >> What are the possible values for that field and what do they mean? > >Still, it's not clear to me what "Internal ECC level" means. It seems that NAND >chips having on-die ECC have this field set to 10b (0x2),

Re: [PATCH v6 0/6] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F

2018-07-09 Thread Bean Huo (beanhuo)
check previous command is success or not by Get Feature or check this bit7 in byte 5 of READID later. To check if this device supports on-die ECC or not, you can use inter ECC level (bit 0 and bit1 in byte 5 of READID) http://lists.infradead.org/pipermail/linux-mtd/2017-April/073370.html //beanhuo

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-17 Thread Bean Huo (beanhuo)
>On Mon, 2018-04-16 at 20:27 +, Bean Huo (beanhuo) wrote: >> By the way, these patches are not to add new feature, they are just to >> add print tag along with the other exist printed request parameters. > >Are you aware that there are two tag fields in struct reque

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-17 Thread Bean Huo (beanhuo)
Hi, Steve Right, Please see below portion log from ftrace and blktrace, There is no any impact on blktrace. > >Looking at the code from >git://git.kernel.org/pub/scm/linux/kernel/git/axboe/blktrace.git > >It appears that it does not rely on the ftrace ring buffers. > >So I'm guessing blktrace is

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-16 Thread Bean Huo (beanhuo)
Hi, Bart >mi...@redhad.com; linux-bl...@vger.kernel.org; raja...@google.com >Subject: [EXT] Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI >trace events > >On Mon, 2018-04-16 at 14:31 +0000, Bean Huo (beanhuo) wrote: >> TP_printk("host_no=%u channe

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-16 Thread Bean Huo (beanhuo)
>>> This patch is not acceptable because it adds support for tag tracing >>> to the legacy block layer only. Any patch that adds a new feature to >>> the legacy block layer must also add it to blk-mq. >>> >> To be honest, I don't understand your point, can you give me more >explanation? > >The lega

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-16 Thread Bean Huo (beanhuo)
Hi, Bart >On Mon, 2018-04-16 at 09:41 -0700, Rajat Jain wrote: >> On Mon, Apr 16, 2018 at 8:28 AM, Steven Rostedt >wrote: >> > On Mon, 16 Apr 2018 14:31:49 + >> > "Bean Huo (beanhuo)" wrote: >> > >> > > Print the request ta

[RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-16 Thread Bean Huo (beanhuo)
Print the request tag along with other information while tracing a command. Signed-off-by: Bean Huo --- include/trace/events/scsi.h | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/include/trace/events/scsi.h b/include/trace/events/scsi.h index f624969..a

[RESEND PATCH v1 2/2] trace: events: block: Add tag in block trace events

2018-04-16 Thread Bean Huo (beanhuo)
Print the request tag along with other information in block trace events when tracing request , and unplug type (Sync / Async). Signed-off-by: Bean Huo --- include/trace/events/block.h | 36 +--- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/incl

[RESEND PATCH v1 0/2] Print the request tag in Block/SCSI trace events

2018-04-16 Thread Bean Huo (beanhuo)
These patches are to add the printout of the request tag in Block/SCSI trace events when tracing one request or command, this is very useful for tracing the task running status in the storage device which supports multiple command queue. As for the first patch " Add tag in SCSI trace events", copi

Re: UFS writing request failure handling

2018-02-13 Thread Bean Huo (beanhuo)
Hi Bart Thanks for your answer. I looked at SCSI core source codes these days, UFS also follows SCSI core error handling. There is already re-issue behavior, and assign 5 retries for each UFS request if there is error. > >On 02/12/18 04:21, Bean Huo (beanhuo) wrote >> I am looking

UFS writing request failure handling

2018-02-12 Thread Bean Huo (beanhuo)
Hi, I am looking at UFS error handling, but I didn't notice re-issues requests with UTP error to the host controller. According UFS host spec, "host software either completes the request that had the error and requests still outstanding with error to higher level software, or re-issues these re

Re: UFS utilities

2017-12-05 Thread Bean Huo (beanhuo)
Hi, greg k-h > >So what UFS commands are you missing that you need to see implemented? > >And again, have you checked the different forks of the driver? > Seems there is something misunderstood, I want to use UPIU, rather than CDB. Maybe it is not possible based on current UFS stacks. Of course,

RE: [EXT] Re: UFS utilities

2017-12-04 Thread Bean Huo (beanhuo)
Hi, Bart Sorry for later! > >Hello Bean, > >Please be more specific. What is inconvenient about sg3_utils on embedded >ARM systems? > Exactly, I don't know how to compile sg3_utils with static library, instead of sharing library. I used following configuration Parameter: ./configure --enable-stati

RE: [PATCH v2] drivers:mtd:spi-nor:checkup FSR error bits

2017-12-04 Thread Bean Huo (beanhuo)
Hi, Cyrille >Hi Bean, > >Le 04/12/2017 à 13:34, Bean Huo (beanhuo) a écrit : >> For Micron spi nor device, when erase/program operation fails, >> especially the failure results from intending to modify protected >> space, spi-nor upper layers still get the return w

[PATCH v2] drivers:mtd:spi-nor:checkup FSR error bits

2017-12-04 Thread Bean Huo (beanhuo)
register) to check device whether ready. This patch fixs this issue by checking relevant error bits in FSR. The FSR is a powerful tool to investigate the staus of device, checking information regarding what is actually doing the memory and detecting possible error conditions. Signed-off-by: beanhuo

Re: [PATCH V1] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-30 Thread Bean Huo (beanhuo)
Hi, Cyrille Finally, I get your comments, thanks. >Hi Bean, > >Le 11/11/2017 à 21:49, Bean Huo (beanhuo) a écrit : >> For the Micron SPI NOR, when the erase/program operation fails, >> especially, > >To be verified but I think you'd rather remove "the"

Re: UFS utilities

2017-11-29 Thread Bean Huo (beanhuo)
Hi, Greg >On Mon, Nov 27, 2017 at 11:25:47AM +, Bean Huo (beanhuo) wrote: >> Hi, all >> Is there someone knows if exists one utilis dedicated to UFS device, rather >than SCSI utils? >> I have tried sg3-utils, but it is not convenient for the embedded ARM-based >sys

[PATCH] [RESEND] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-29 Thread Bean Huo (beanhuo)
the staus of device, checking information regarding what is actually doing the memory and detecting possible error conditions. Signed-off-by: beanhuo --- drivers/mtd/spi-nor/spi-nor.c | 18 -- include/linux/mtd/spi-nor.h | 6 +- 2 files changed, 21 insertions(+), 3 deletions

RE: [PATCH V1] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-27 Thread Bean Huo (beanhuo)
Ping SPI-NOR maintainers again > >Ping SPI-NOR maintainers > >>-Original Message- >>From: Bean Huo (beanhuo) >>Sent: Samstag, 11. November 2017 21:49 >>To: 'cyrille.pitc...@wedev4u.fr' ; >>marek.va...@gmail.com >>Cc: '

UFS utilities

2017-11-27 Thread Bean Huo (beanhuo)
Hi, all Is there someone knows if exists one utilis dedicated to UFS device, rather than SCSI utils? I have tried sg3-utils, but it is not convenient for the embedded ARM-based system. And also it doesn't support several UFS special command. If we don't have this kind of tool for UFS, is it nec

RE: [PATCH V1] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-16 Thread Bean Huo (beanhuo)
Ping SPI-NOR maintainers >-Original Message- >From: Bean Huo (beanhuo) >Sent: Samstag, 11. November 2017 21:49 >To: 'cyrille.pitc...@wedev4u.fr' ; >marek.va...@gmail.com >Cc: 'dw...@infradead.org' ; >computersforpe...@gmail.com; 'linux-...

[PATCH V1] drivers:mtd:spi-nor:checkup FSR error bits

2017-11-11 Thread Bean Huo (beanhuo)
the staus of device,checking information regarding what is actually doing the memory and detecting possible error conditions. Signed-off-by: beanhuo --- drivers/mtd/spi-nor/spi-nor.c | 19 +-- include/linux/mtd/spi-nor.h | 6 +- 2 files changed, 22 insertions(+), 3 deletions

RE: [PATCH V1] mmc: core: fix still flush cache when eMMC cache off

2017-03-24 Thread Bean Huo (beanhuo)
Hi, Uffe >>>On 19 March 2017 at 01:45, Bean Huo (beanhuo) >wrote: >>>> This patch fixes the issue that mmc_blk_issue_rq still flushes cache >>>> when eMMC cache has already been off through user space tool, such >>>> as mmc-utils. >>>

RE: [PATCH V1] mmc: core: fix still flush cache when eMMC cache off

2017-03-23 Thread Bean Huo (beanhuo)
Hi, >On 19 March 2017 at 01:45, Bean Huo (beanhuo) wrote: >> This patch fixes the issue that mmc_blk_issue_rq still flushes cache >> when eMMC cache has already been off through user space tool, such as >> mmc-utils. >> The reason is that card->ext_csd.cache_ctrl

RE: [PATCH V1] mmc: core: fix still flush cache when eMMC cache off

2017-03-22 Thread Bean Huo (beanhuo)
ff through user space tool, such as >> mmc-utils. >> The reason is that card->ext_csd.cache_ctrl isn't reset. >> >> Signed-off-by: beanhuo > > >Best regards, >-- >Bartlomiej Zolnierkiewicz >Samsung R&D Institute Poland >Samsung Electronics &g

[PATCH V1] mmc: core: fix still flush cache when eMMC cache off

2017-03-18 Thread Bean Huo (beanhuo)
This patch fixes the issue that mmc_blk_issue_rq still flushes cache when eMMC cache has already been off through user space tool, such as mmc-utils. The reason is that card->ext_csd.cache_ctrl isn't reset. Signed-off-by: beanhuo --- drivers/mmc/core/block.c | 9 + 1 file ch

RE: ftrace function_graph causes system crash

2016-09-22 Thread Bean Huo (beanhuo)
> -Original Message- > From: Steven Rostedt [mailto:rost...@goodmis.org] > Sent: Mittwoch, 21. September 2016 20:17 > To: Jisheng Zhang > Cc: Bean Huo (beanhuo) ; Zoltan Szubbocsev > (zszubbocsev) ; catalin.mari...@arm.com; > will.dea...@arm.com; r...@lists.rocketboa

RE: ftrace function_graph causes system crash

2016-09-21 Thread Bean Huo (beanhuo)
> From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] > On Behalf Of Steven Rostedt > Sent: Dienstag, 20. September 2016 16:07 > To: Bean Huo (beanhuo) > Cc: Zoltan Szubbocsev (zszubbocsev) ; > catalin.mari...@arm.com; will.dea...@arm.com; r...@list

ftrace function_graph causes system crash

2016-09-20 Thread Bean Huo (beanhuo)
Hi, all I just use ftrace to do some latency study, found that function_graph can not Work, as long as enable it, will cause kernel panic. I searched this online. Found that there are also some cause the same as mine. I am a newer of ftrace. I want to know who know what root cause? Here is some p

RE: [PATCH v3 4/4] mtd: spi-nor: Disable Micron flash HW protection

2016-03-20 Thread beanhuo
Hi, Yunhai You mean that EVCR.bit7 cannot clear(enable quad mode) if not write SR.bit7 to 0? They don't have any connection each other. > -Original Message- > From: Yunhui Cui [mailto:yunhui@nxp.com] > Sent: Friday, March 18, 2016 6:09 PM > To: Bean Huo 霍斌斌 (beanhuo)

Re: [PATCH v3 4/4] mtd: spi-nor: Disable Micron flash HW protection

2016-03-03 Thread beanhuo
> From: Yunhui Cui > To: , , > > Cc: , , > , , Yunhui > Cui > > Subject: [PATCH v3 4/4] mtd: spi-nor: Disable Micron flash HW > protection > Message-ID: <1456988044-37061-4-git-send-email-b56...@freescale.com> > Content-Type: text/plain > > From: Yunhui Cui > > For Mic

RE: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile

2016-02-02 Thread beanhuo
sions. Brian Sorry for this. this patches codes are too long, Next time I will push my patches based on latest kernel. Beat Regards! Beanhuo

RE: [PATCH v2 00/17] Add a bakvol module in UBI layer for MLC paired page power loss issue

2016-02-02 Thread beanhuo
Dear Richard Thanks for reviewing my patches and valuable feedback. I also want to work with you and Boris on such solution, I know this is a complicated task, need our joint effort. Following is my explanation for each of concerns: > Bean, > > Am 02.02.2016 um 03:30 schrieb Bean Huo: > > This

RE: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile

2016-02-01 Thread beanhuo
> Hi Bean, > > [auto build test WARNING on v4.5-rc2] This version 2.0 patches are based on 4.2-rc7. > [also build test WARNING on next-20160201] [if your patch is applied to the > wrong git tree, please drop us a note to help improving the system]

RE: [PATCH 1/1] fs:ubifs:recovery:fixup UBIFS cannot recover master node issue

2016-01-31 Thread beanhuo
Hi, Richard > From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Thursday, January 28, 2016 5:32 PM > To: Bean Huo 霍斌斌 (beanhuo); Artem Bityutskiy; Adrian Hunter; Brian > Norris > Cc: linux-...@lists.infradead.org; linux-kernel@vger.kernel.org; Boris > Brezillon; Peter Pa

RE: [PATCH 1/1] fs:ubifs:recovery:fixup UBIFS cannot recover master node issue

2016-01-27 Thread beanhuo
> Bean, > > Am 14.12.2015 um 04:55 schrieb Bean Huo 霍斌斌 (beanhuo): > > Dear Richard > > > >> Bean, > >> > >> Am 11.12.2015 um 09:26 schrieb Bean Huo 霍斌斌 (beanhuo): > >>> For MLC NAND, paired page issue is now a common known issue. > &

RE: [RFC] spi-nor: fix cross die reads on Micron multi-die devices

2016-01-21 Thread beanhuo
> Hi Bean, > > On Thu, 21 Jan 2016 01:06:48 + > Bean Huo 霍斌斌 (beanhuo) wrote: > > > Hi, Adam and Boris > > > > For Micron MT25Q ,MT25T and MT35Q, they does not exist this action > > even they are Multi-die devices. So when the last byte of the die >

RE: [RFC] spi-nor: fix cross die reads on Micron multi-die devices

2016-01-20 Thread beanhuo
here are any plans for MT25* based multi-die devices and if > they would have the same issue? > > Thanks, > > Adam > > On Wed, Jan 20, 2016 at 2:45 AM, Bean Huo 霍斌斌 (beanhuo) > wrote: > > Hi, Adam > > This is true, but this only exist in Micron 65nm spi no

RE: [PATCH 1/1] fs:ubifs:recovery:fixup UBIFS cannot recover master node issue

2015-12-13 Thread beanhuo
Dear Richard > Bean, > > Am 11.12.2015 um 09:26 schrieb Bean Huo 霍斌斌 (beanhuo): > > For MLC NAND, paired page issue is now a common known issue. > > This patch is just for master node cannot be recovered while there > > will two pages be damaged in one single master

[PATCH 1/1] fs:ubifs:recovery:fixup UBIFS cannot recover master node issue

2015-12-11 Thread beanhuo
For MLC NAND, paired page issue is now a common known issue. This patch is just for master node cannot be recovered while there will two pages be damaged in one single master node block. As for this patch, if there are more than one page data in master node block being damaged, and as long as exist

RE: [PATCH linux-next 0/5] mtd: spi-nor: add driver for Atmel QSPI controller

2015-12-07 Thread beanhuo
> > I'll admit I'm a little fuzzy on the differences between dual and quad modes > on > various flash manufacturers. Can you help clear it up for me? For SPI NOR, currently, don't have an official standard to define an uniform Quad I/O mode protocol. So we can see that there are some difference

RE: [PATCH linux-next 0/5] mtd: spi-nor: add driver for Atmel QSPI controller

2015-12-07 Thread beanhuo
g; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > robh...@kernel.org; pawel.m...@arm.com; mark.rutl...@arm.com; > ijc+devicet...@hellion.org.uk; ga...@codeaurora.org; Bean Huo 霍斌斌 > (beanhuo) > Subject: Re: [PATCH linux-next 0/5] mtd: spi-nor: add driver for Atmel

RE: enhance ONFI table reliability/stable

2015-11-18 Thread beanhuo
> > Hi Bean, > > I was sorting through old email and I found this. > > On Tue, Jul 21, 2015 at 02:42:34PM +0000, Bean Huo 霍斌斌 (beanhuo) > wrote: > > Hi, > > > > Recently, I faced some case about ONFI table reliability, now it used CRC. > >

RE: [PATCH v7 4/7] mtd: nand: gpmi: may use minimum required ecc

2015-10-28 Thread beanhuo
> > > By default NAND driver will choose the highest ecc strength that oob > > > could contain, in this case, for some 8K+744 NAND flash, the ecc > > > strength will be up to 52bit, which beyonds the i.MX6QDL BCH capability > (40bit). > > > > > > For normal working environment, if hardware BCH ECC

RE: [PATCH v7 4/7] mtd: nand: gpmi: may use minimum required ecc for 744 oobsize NAND

2015-10-28 Thread beanhuo
> By default NAND driver will choose the highest ecc strength that oob could > contain, in this case, for some 8K+744 NAND flash, the ecc strength will be up > to 52bit, which beyonds the i.MX6QDL BCH capability (40bit). For normal working environment, if hardware BCH ECC cannot meet NAND ecc re

Recall: [PATCH v7 4/7] mtd: nand: gpmi: may use minimum required ecc

2015-10-28 Thread beanhuo
Bean Huo 霍斌斌 (beanhuo) would like to recall the message, "[PATCH v7 4/7] mtd: nand: gpmi: may use minimum required ecc".-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at ht

RE: [PATCH v7 4/7] mtd: nand: gpmi: may use minimum required ecc

2015-10-28 Thread beanhuo
> By default NAND driver will choose the highest ecc strength that oob could > contain, in this case, for some 8K+744 NAND flash, the ecc strength will be up > to 52bit, which beyonds the i.MX6QDL BCH capability (40bit). For normal working environment, if hardware BCH ECC cannot meet NAND ecc re

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-10-07 Thread beanhuo
> Am 30.09.2015 um 08:55 schrieb Richard Weinberger: > >> By the way, Do you review my patches series ? I don't backup duplicated > data in OOB . > >> Can you specify which sector codes ? so that I can explain it in detail. > > > > Okay. Maybe both Boris and I misread your code, can you please expl

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-10-07 Thread beanhuo
> > > As stated before, using OOB in UBI is not going to happen unless > > > proven that there is absolutely no other way to solve the paired pages > problem. > > > > > > Nacked-by: Richard Weinberger > > > > > > Sorry, > > > //Richard > > > > Hi, Richard > > Thanks for your concern. I am a new pa

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-10-07 Thread beanhuo
> > Hi, Richard > > Thanks for your concern. I am a new patch submitter. > > Can you tell me Nacked-by means? > > I basically means that I'm (as maintainer) really unhappy with this patches > and > don't see a way to get them merged as the whole concept is not acceptable. > > > By the way, Do yo

RE: [PATCH 1/9] drivers:nand:mtd: add support for UBI bakvol in mtd layer

2015-09-29 Thread beanhuo
> Hi Bean, > > On Mon, 28 Sep 2015 07:02:37 + > Bean Huo 霍斌斌 (beanhuo) wrote: > > > Add support for UBI bakvol in mtd layer. > > > > This solution based on MLC NAND dual plane program. > > so add hook in mtd layer. > > I know you don'

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-09-29 Thread beanhuo
> Am 28.09.2015 um 09:02 schrieb Bean Huo 霍斌斌 (beanhuo): > > Hello, > > > > This series aims at adding a bakvol module for MLC NAND paired page > > Power loss protection. > > MLC NAND paired page power loss is a known issue so far, MLC NAND > > pages are c

RE: [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-09-28 Thread beanhuo
> Hi Bean, > > Next time you send a patch series, could send all the patches in reply to the > cover letter? No problem, we will format our submit-patch method, and standard it. > > Hello, > > > > This series aims at adding a bakvol module for MLC NAND paired page > > Power loss protection. > >

[PATCH 2/9] drivers:mtd:ubi:add definition for UBI bakvol operation

2015-09-28 Thread beanhuo
Add macro definition for UBI bakvol operation. Signed-off-by: Bean Huo --- drivers/mtd/ubi/ubi.h | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 2974b67..746dfbe 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ub

[PATCH 5/9] drivers:mtd:ubi:add support for getting block according to plane

2015-09-28 Thread beanhuo
Dual plane program must address two blocks located two different planes. Signed-off-by: Bean Huo --- drivers/mtd/ubi/wl.c | 134 +++ 1 file changed, 134 insertions(+) diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 275d9fb..9d2268a

[PATCH 7/9] drivers:mtd:add NAND dual plane program support

2015-09-28 Thread beanhuo
Add NAND dual plane program function. Signed-off-by: Bean Huo --- drivers/mtd/mtdpart.c| 21 +++ drivers/mtd/nand/nand_base.c | 401 +++ 2 files changed, 422 insertions(+) diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index cafdb88..

[PATCH 8/9] drivers:mtd:ubi:init UBI bakvol and recover corrupted lower page

2015-09-28 Thread beanhuo
During UBI attach, bakvol be initialized, And if exist corrupted lower page, recover it by its backup data in internal Log volume. Signed-off-by: Bean Huo --- drivers/mtd/ubi/attach.c | 26 +- drivers/mtd/ubi/build.c | 7 +++ 2 files changed, 32 insertions(+), 1 de

[PATCH 3/9] drivers:mtd:ubi:add metadata struct for UBI bakvol

2015-09-28 Thread beanhuo
Add metadata struct for UBI bakvol. Currently , bakvol reserves 20 PEBs for internal log volume. Shares wear-leveling operation with ubi. Signed-off-by: Bean Huo --- drivers/mtd/ubi/ubi-media.h | 40 1 file changed, 40 insertions(+) diff --git a/driver

[PATCH 9/9] driver:mtd:ubi:add bakvol module in UBI layer

2015-09-28 Thread beanhuo
subject to the Mozilla Public + License Version 1.1 (the "License"); You may obtain a copy of + the License at http://www.mozilla.org/MPL/.But you can use this + file, no matter in compliance with the License or not. + + The initial developer of the original code is Beanhuo + . Portions c

[PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue

2015-09-28 Thread beanhuo
Hello, This series aims at adding a bakvol module for MLC NAND paired page Power loss protection. MLC NAND paired page power loss is a known issue so far, MLC NAND pages are coupled in a sense that if you cut power while writing to a page, you corrupt not only this page, but also one of the previ

[PATCH 1/9] drivers:nand:mtd: add support for UBI bakvol in mtd layer

2015-09-28 Thread beanhuo
Add support for UBI bakvol in mtd layer. This solution based on MLC NAND dual plane program. so add hook in mtd layer. Signed-off-by: Bean Huo --- include/linux/mtd/mtd.h | 19 +++ include/linux/mtd/nand.h | 4 include/linux/mtd/ubi.h | 9 + 3 files changed, 32

[PATCH 4/9] fs:ubifs: add hook for UBI bakvol in ubifs layer

2015-09-28 Thread beanhuo
Add hook for UBI bakvol in ubifs layer. open/close bakvol operation in ubifs mount. Signed-off-by: Bean Huo --- fs/ubifs/super.c | 6 ++ fs/ubifs/ubifs.h | 1 + 2 files changed, 7 insertions(+) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 9547a278..f3bf548 100644 --- a/fs/ubifs/s

  1   2   >