Search Linux Wireless

Re: [PATCH 5/9] ath9k_hw: remove the old ANI implementation

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

 



Felix Fietkau wrote:
> I did review pretty much all of the code, and the knobs that the ANI
> code tweaks really haven't changed much compared to the old
> implementation. It's split up into different functions, which makes it a
> bit harder to see the similarities.
> The main implementation differences that I can find is that the new
> implementation does not tweak the AGC parameters anymore (commit log
> mentions something about this messing up RIFS Rx) and that the old
> implementation tries to tune all available ANI control parameters
> individually, whereas the new implementation contains a table that
> describes how the parameters are raised/lowered at once (split into OFDM
> and CCK).
> This simplifies the state machine quite a bit and makes it easier to
> make sure that it does not get stuck somewhere.
> As for hw specific improvements, old hw does not tweak MRC
> enable/disable for CCK, this is dealt with properly in the code.

So I discussed this with a systems guy and the conclusion was that the
new ANI can be used - but it needs to be tested with older HW.
And this has not been tested by anyone - all our internal drivers
running on Windows/Linux/MacOS etc. use the older ANI with apparently
no problems. If ath9k's performance is sub-optimal then it's purely
a problem with ath9k - which is probably due to shitty code.

I am looking at numbers that have been arrived at after exhaustive
testing of the new ANI - quantifiable facts that verify all the various
levels/thresholds etc. with proper injection of interference.

The proposed migration has no supporting numbers at all.

Nuking the old algorithm completely would leave us in a position where
we can't even do a comparative analysis of old vs. new. And we can't approach
the systems/HW guys if any issue crops up - I really don't want us to be
stuck in an island.

> Having two similar implementations of the same thing in the code,
> partially overlapping, makes the code hard to follow and hard to fix.
> Also, as I pointed out, the issue of regressions creeping in because of
> complex code is not theoretical, it has already happened, and I believe
> it is likely to happen again unless the root cause (spaghetti code) is
> fixed.

Well, we did have two separate implementations which were merged at some point,
hence the overlapping code.

At this point, am not sure. So having said all that, my vote is to ACK this
patch and find some time to setup a testbed and validate this shit. :)

Sujith
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux