Search Linux Wireless

RE: [PATCH v1] rtw88: pci: disable aspm for platform inter-op with module parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



0000], Tony Chuang wrote:
> > > On 2020-06-05 15:47:03 [+0800], yhchuang@xxxxxxxxxxx wrote:
> > > > From: Yan-Hsuan Chuang <yhchuang@xxxxxxxxxxx>
> > > >
> > > > Some platforms cannot read the DBI register successfully for the
> > > > ASPM settings. After the read failed, the bus could be unstable,
> > > > and the device just became unavailable [1]. For those platforms,
> > > > the ASPM should be disabled. But as the ASPM can help the driver
> > > > to save the power consumption in power save mode, the ASPM is still
> > > > needed. So, add a module parameter for them to disable it, then
> > > > the device can still work, while others can benefit from the less
> > > > power consumption that brings by ASPM enabled.
> > >
> > > Can you set disable_aspm if rtw_dbi_read8() fails? Or make a test if it
> > > is save to use?
> > >
> > > If someone notices the warning they still have to search for the warning
> > > in order to make the link towards loading the module with the
> > > disable_aspm=1 paramter.
> > > Is it known what causes the failure?
> > >
> >
> > I think as long as the rtw_dbi_read() fails, the consequent register
> > operation will also fail, and still get an error read/write the register.
> > And this is some sort of PCI issue, and I am not really familiar with it.
> > Such as the root cause or how it fails.
> 
> Then it does not sound safe to enable it by default.

We have had a discussion about this, but I cannot find the thread now.
People suggested that the module parameter should not be used.
And they think that if the ASPM can help for power consumption, then
it should be default enabled. But I think it should be based on that the
other platforms will not just fail to bring up the device. However, the
platforms are less than the others, not sure if default enable or disable
is better.

> 
> > If we can default disable it, then we can help those platforms, but
> > then other platform will suffer from higher power consumption.
> 
> So for those platform, where the error occurs, you expect that the user
> manages to read the error message (a backtrace from rtw_dbi_read8()) and
> connects this the need to set a certain module option.

Yes, we can discuss if it should be default enabled or not. Otherwise the
people with those platforms can only do that to prevent this. Really bad.

> Sebastian
> 

Yen-Hsuan




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux