In this talk I would like to explain how the equivalence of two mathematical constructions of HOMFLY-PT knot homology follows from mirror symmetry for topologically twisted 3d N=4 theories. The first construction due to Oblomkov-Rozansky involves certain categories of matrix factorizations and the second which is related to work of Gorsky-Oblomkov-Rasmussen-Shende involves the cohomology of affine Springer fibers. Joint work with T Dimofte, N Garner, A Oblomkov, L Rozansky.