Noncollinear magnetism means that the orientation of the magnetization varies in space. Examples for such structures are magnetic domain walls, spin spirals, or magnetic skyrmions. To describe these systems one has to consider the Kohn-Sham wave functions as spinors
$$\Psi_\nu(\mathbf{r}) = \begin{pmatrix} \psi_\nu^{\uparrow}(\mathbf{r}) \\ \psi_\nu^{\downarrow}(\mathbf{r})\end{pmatrix},$$
where $\nu$ is the index of the wave function, and $\uparrow$ and $\downarrow$ indicate up and down spins. From these objects one constructs the density matrix
$$\rho_{\sigma,\sigma'}(\mathbf{r}) = \sum_\nu^\text{occ} \left(\psi_\nu^{\sigma}(\mathbf{r})\right)^\ast \psi_\nu^{\sigma'}(\mathbf{r}) = \frac{1}{2} \begin{pmatrix} n(\mathbf{r}) + m_\text{z}(\mathbf{r}) & m_\text{x}(\mathbf{r}) - im_\text{y}(\mathbf{r}) \\ m_\text{x}(\mathbf{r}) + im_\text{y}(\mathbf{r}) & n(\mathbf{r}) - m_\text{z}(\mathbf{r})\end{pmatrix},$$
where $n(\mathbf{r})$ is the charge density and $\mathbf{m}(\mathbf{r}) = \begin{pmatrix} m_\text{x}(\mathbf{r}) \\ m_\text{y}(\mathbf{r}) \\ m_\text{z}(\mathbf{r}) \end{pmatrix}$ is the magnetization density.
Magnetism is due to the exchange interaction, so when constructing a potential from this density the exact expression depends on the choice of the exchange-correlation functional. In general one obtains an exchange $\mathbf{B}$ field and an effective potential matrix of the form
$$ V_{\sigma,\sigma'}(\mathbf{r}) = \begin{pmatrix} V(\mathbf{r}) + \mu_\text{B} B_\text{z}(\mathbf{r}) & \mu_\text{B}(B_\text{x}(\mathbf{r}) - i B_\text{y}(\mathbf{r})) \\ \mu_\text{B}(B_\text{x}(\mathbf{r}) + i B_\text{y}(\mathbf{r})) & V(\mathbf{r}) - \mu_\text{B} B_\text{z}(\mathbf{r}) \end{pmatrix},$$
where $V(\mathbf{r})$ is the effective potential averaged over the spins. For the case of the local density approximation $\mathbf{B}(\mathbf{r})$ points in the same direction as $\mathbf{m}(\mathbf{r})$.
On the basis of this potential matrix one can then solve the Kohn-Sham equations for such noncollinear systems
$$\left\lbrace -\frac{1}{2}\nabla^2 \mathbf{I}_2 + V_{\sigma,\sigma'}(\mathbf{r}) \right\rbrace \Psi_\nu(\mathbf{r}) = \epsilon_\nu \Psi_\nu(\mathbf{r}).$$
In this expression $\mathbf{I}_2$ is the $2 \times 2$ identity matrix.
Note that the kinetic energy operator is spin-diagonal in this equation. In a relativistic description where one uses the Kohn-Sham-Dirac equation this is not the case due to the then included spin-orbit coupling. Spin-orbit coupling will also yield spin-offdiagonal matrix elements. This implies that spin-orbit coupling can cause noncollinear magnetism, but such structures can also have other causes, for example magnetic frustration.
In the spin-polarized case in which a magnetic system only features collinear magnetism, i.e., the magnetization is oriented along the same axis everywhere in space, one can always find a $\text{z}$ axis in the description above that coincides with this spin-quantization axis. If we consider such a setup the offdiagonal terms in the matrices vanish and the Kohn-Sham equations can be solved for the two spins separately.
In the non-spinpolarized case the expressions for the two spins are identical: The Kohn-Sham states feature a spin-degeneracy and therefore it is enough to solve the Kohn-Sham equations for one of the spins and occupy each state with up to two electrons.
Finally, please also note that spin-orbit coupling is not only relevant for systems featuring noncollinear magnetism. For example, in systems with collinear magnetism it causes magnetocrystalline anisotropy. Effects due to spin-orbit coupling in nonmagnetic systems include the Rashba effect and the Dresselhaus effect.