Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1374164

Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem

From Joao Pinto <Joao.Pinto@synopsys.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem
Date 2016-04-08 13:20 +0200
Message-ID <rlCCe-2Wb-5@gated-at.bofh.it> (permalink)
References <rkaI1-2bB-3@gated-at.bofh.it> <rkaI2-2bB-19@gated-at.bofh.it> <rkRtE-1en-19@gated-at.bofh.it> <rlpvk-1uc-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On 4/7/2016 10:15 PM, Winkler, Tomas wrote:
> On Wed, 2016-04-06 at 09:51 +0100, Joao Pinto wrote:
>> Hi!
>>
>> On 4/4/2016 12:11 PM, Tomas Winkler wrote:
>>> Register UFS RPMB LUN with the RPMB subsystem and provide
>>> implementation for the RPMB access operations. RPMB partition is
>>> accessed via a sequence of security protocol in and security
>>> protocol
>>> out commands with UFS specific parameters. This multi step process
>>> is
>>> abstracted into 4 basic RPMB commands.
>>
>> [snip]
>>
>>>  	 * "UFS device" W-LU.
>>>  	 */
>>>  	struct scsi_device *sdev_ufs_device;
>>> +	struct scsi_device *sdev_ufs_rpmb;
>>>  
>>>  	enum ufs_dev_pwr_mode curr_dev_pwr_mode;
>>>  	enum uic_link_state uic_link_state;
>>>
>>
>> I have a UFS device emulator that has the RPMB capability. What are
>> the expected
>> good results for me to validate?
> 
> Hi Joao, thanks for that. I'm attaching an archive with few basic
> samples via user space interface. 
> You should run the program key first (program-key.sh), just don't do it
> on a real device it's one in life time operation. 
> 
> Thanks
> Tomas
> 

I have tested your patch set the following way:

Patches applied:
- Got 4.7-queue from the SCSI repo
- Applied the patch set for DW UFS support
- Applied your patch set for RPMB support

Platform (UFS IP Prototyping Kit):
- CPU: ARC CPU 32-bit
- UFS 2.0 Core running in FPGA

Results:
Kernel Build without RPMB configured: OK
Kernel Build with RPMB configured: OK
UFS Device partitions shown in UFS Host without RPMB configured: Yes
UFS Device partitions shown in UFS Host with RPMB configured: Yes

I would like to run more verifications regarding RPMB. Could you tell me what is
the procedure you suggest?

Thanks,
Joao

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem Tomas Winkler <tomas.winkler@intel.com> - 2016-04-04 13:20 +0200
  Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem Joao Pinto <Joao.Pinto@synopsys.com> - 2016-04-06 11:00 +0200
    Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem "Winkler, Tomas" <tomas.winkler@intel.com> - 2016-04-07 23:20 +0200
      Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem Joao Pinto <Joao.Pinto@synopsys.com> - 2016-04-08 11:30 +0200
      Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem Joao Pinto <Joao.Pinto@synopsys.com> - 2016-04-08 13:20 +0200
      Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem Joao Pinto <Joao.Pinto@synopsys.com> - 2016-04-08 13:30 +0200
      Re: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem Joao Pinto <Joao.Pinto@synopsys.com> - 2016-04-08 19:40 +0200
        RE: [PATCH v2 8/8] scsi: ufs: connect to RPMB subsystem "Winkler, Tomas" <tomas.winkler@intel.com> - 2016-04-08 22:40 +0200

csiph-web