* Re: 52a518019c causes issue with Qualcomm UFSHC
[not found] ` <TYZPR03MB5825B4D5259FA22CCC876E7783089@TYZPR03MB5825.apcprd03.prod.outlook.com>
@ 2022-11-21 22:56 ` Asutosh Das
2022-11-23 14:55 ` Powen Kao (高伯文)
2022-11-24 5:36 ` Manivannan Sadhasivam
0 siblings, 2 replies; 4+ messages in thread
From: Asutosh Das @ 2022-11-21 22:56 UTC (permalink / raw)
To: Powen Kao (高伯文)
Cc: Bart Van Assche, Stanley Chu (朱原陞),
martin.petersen@oracle.com, Peter Wang (王信友),
Naomi Chu (朱詠田),
Alice Chao (趙珮均), linux-scsi, mani,
quic_cang
On Sat, Nov 19 2022 at 20:16 -0800, Powen Kao (高伯文) wrote:
>Hi Asutosh,
>
>
>
>Reverting the patch doesn't sound feasible on MTK platform ☹
>
>
>
>>>I don't think invoking a clock scaling notification during
>
>>>ufshcd_host_reset_and_restore() sounds right to me.
>
>But the point is that driver has the right to know that the clk is scaled no matter where ufshcd_scale_clks() is invoked, no?
>
>
>
>Do you mind applying this patch on qcom driver to check on host status before further operation?
+ Mani, linux-scsi
Hello Powen
Thanks for the change. I will think of something to work-around the issue.
However, I would like to point out that a change that breaks an existing driver
must be fixed or reverted, not the other way around.
-asd
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: 52a518019c causes issue with Qualcomm UFSHC
2022-11-21 22:56 ` 52a518019c causes issue with Qualcomm UFSHC Asutosh Das
@ 2022-11-23 14:55 ` Powen Kao (高伯文)
2022-11-24 5:36 ` Manivannan Sadhasivam
1 sibling, 0 replies; 4+ messages in thread
From: Powen Kao (高伯文) @ 2022-11-23 14:55 UTC (permalink / raw)
To: Asutosh Das
Cc: Bart Van Assche, Stanley Chu (朱原陞),
martin.petersen@oracle.com, Peter Wang (王信友),
Naomi Chu (朱詠田),
Alice Chao (趙珮均), linux-scsi@vger.kernel.org,
mani@kernel.org, quic_cang@quicinc.com
Hi Asutosh,
Sorry for the inconvenience, we will discuss internally to see if there's a better fix that meets both our needs.
-----Original Message-----
From: Asutosh Das <quic_asutoshd@quicinc.com>
Sent: Tuesday, November 22, 2022 6:57 AM
To: Powen Kao (高伯文) <Powen.Kao@mediatek.com>
Cc: Bart Van Assche <bvanassche@acm.org>; Stanley Chu (朱原陞) <stanley.chu@mediatek.com>; martin.petersen@oracle.com; Peter Wang (王信友) <peter.wang@mediatek.com>; Naomi Chu (朱詠田) <Naomi.Chu@mediatek.com>; Alice Chao (趙珮均) <Alice.Chao@mediatek.com>; linux-scsi@vger.kernel.org; mani@kernel.org; quic_cang@quicinc.com
Subject: Re: 52a518019c causes issue with Qualcomm UFSHC
On Sat, Nov 19 2022 at 20:16 -0800, Powen Kao (高伯文) wrote:
>Hi Asutosh,
>
>
>
>Reverting the patch doesn't sound feasible on MTK platform ☹
>
>
>
>>>I don't think invoking a clock scaling notification during
>
>>>ufshcd_host_reset_and_restore() sounds right to me.
>
>But the point is that driver has the right to know that the clk is scaled no matter where ufshcd_scale_clks() is invoked, no?
>
>
>
>Do you mind applying this patch on qcom driver to check on host status before further operation?
+ Mani, linux-scsi
Hello Powen
Thanks for the change. I will think of something to work-around the issue.
However, I would like to point out that a change that breaks an existing driver must be fixed or reverted, not the other way around.
-asd
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 52a518019c causes issue with Qualcomm UFSHC
2022-11-21 22:56 ` 52a518019c causes issue with Qualcomm UFSHC Asutosh Das
2022-11-23 14:55 ` Powen Kao (高伯文)
@ 2022-11-24 5:36 ` Manivannan Sadhasivam
2022-11-29 15:07 ` Asutosh Das
1 sibling, 1 reply; 4+ messages in thread
From: Manivannan Sadhasivam @ 2022-11-24 5:36 UTC (permalink / raw)
To: Asutosh Das
Cc: Powen Kao (高伯文), Bart Van Assche,
Stanley Chu (朱原陞),
martin.petersen@oracle.com, Peter Wang (王信友),
Naomi Chu (朱詠田),
Alice Chao (趙珮均), linux-scsi, quic_cang
On Mon, Nov 21, 2022 at 02:56:34PM -0800, Asutosh Das wrote:
> On Sat, Nov 19 2022 at 20:16 -0800, Powen Kao (高伯文) wrote:
> > Hi Asutosh,
> >
> >
> >
> > Reverting the patch doesn't sound feasible on MTK platform ☹
> >
> >
> >
> > > > I don't think invoking a clock scaling notification during
> >
> > > > ufshcd_host_reset_and_restore() sounds right to me.
> >
> > But the point is that driver has the right to know that the clk is scaled no matter where ufshcd_scale_clks() is invoked, no?
> >
> >
> >
> > Do you mind applying this patch on qcom driver to check on host status before further operation?
>
> + Mani, linux-scsi
>
> Hello Powen
> Thanks for the change. I will think of something to work-around the issue.
> However, I would like to point out that a change that breaks an existing driver
> must be fixed or reverted, not the other way around.
>
May I know what the actual issue is? I've tested v6.1-rc1 that has this change
and didn't see any issues on SM8250, SDM845 and SM8450.
Thanks,
mani
> -asd
>
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 52a518019c causes issue with Qualcomm UFSHC
2022-11-24 5:36 ` Manivannan Sadhasivam
@ 2022-11-29 15:07 ` Asutosh Das
0 siblings, 0 replies; 4+ messages in thread
From: Asutosh Das @ 2022-11-29 15:07 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: Powen Kao (高伯文), Bart Van Assche,
Stanley Chu (朱原陞),
martin.petersen@oracle.com, Peter Wang (王信友),
Naomi Chu (朱詠田),
Alice Chao (趙珮均), linux-scsi, quic_cang
On Thu, Nov 24 2022 at 21:36 -0800, Manivannan Sadhasivam wrote:
>On Mon, Nov 21, 2022 at 02:56:34PM -0800, Asutosh Das wrote:
>> On Sat, Nov 19 2022 at 20:16 -0800, Powen Kao (高伯文) wrote:
>> > Hi Asutosh,
>> >
>> >
>> >
>> > Reverting the patch doesn't sound feasible on MTK platform ☹
>> >
>> >
>> >
>> > > > I don't think invoking a clock scaling notification during
>> >
>> > > > ufshcd_host_reset_and_restore() sounds right to me.
>> >
>> > But the point is that driver has the right to know that the clk is scaled no matter where ufshcd_scale_clks() is invoked, no?
>> >
>> >
>> >
>> > Do you mind applying this patch on qcom driver to check on host status before further operation?
>>
>> + Mani, linux-scsi
>>
>> Hello Powen
>> Thanks for the change. I will think of something to work-around the issue.
>> However, I would like to point out that a change that breaks an existing driver
>> must be fixed or reverted, not the other way around.
>>
>
>May I know what the actual issue is? I've tested v6.1-rc1 that has this change
>and didn't see any issues on SM8250, SDM845 and SM8450.
>
>Thanks,
>mani
>
Set rpm-lvl=5, enable scaling and let it enter runtime-suspend and then resume.
You should see the CMD17 timeout.
-asd
>>
>
>--
>மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-29 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20221115014804.GA24294@asutoshd-linux1.qualcomm.com>
[not found] ` <KL1PR03MB5836A982CAE0FE411743BF7283069@KL1PR03MB5836.apcprd03.prod.outlook.com>
[not found] ` <20221117174634.GA12056@asutoshd-linux1.qualcomm.com>
[not found] ` <584b6f9a-c4f9-8ecc-98d9-216923d85ddf@acm.org>
[not found] ` <20221118191058.GA28646@asutoshd-linux1.qualcomm.com>
[not found] ` <TYZPR03MB5825B4D5259FA22CCC876E7783089@TYZPR03MB5825.apcprd03.prod.outlook.com>
2022-11-21 22:56 ` 52a518019c causes issue with Qualcomm UFSHC Asutosh Das
2022-11-23 14:55 ` Powen Kao (高伯文)
2022-11-24 5:36 ` Manivannan Sadhasivam
2022-11-29 15:07 ` Asutosh Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox