Let $(S,\eta,s)=\mathrm{Spec}(R)$ be the spectrum of a DVR. Let $f\colon P\to S$ be an abelian scheme. Taking restriction gives an injection from the group of $P$-torsors to the group of $P_\eta$-torsors: $$\rho\colon\mathrm{H}^1(S,P)\to\mathrm{H}^1(\eta,P_\eta).$$
How can we discribe the cokernel of $\rho$?
[Here is my attempt: Let $j\colon \eta\to S$ be the open immersion. We have an isomorphism $$P\to j_*j^*P=j_*P_\eta.$$ Here we identify the $S$-scheme $P$ with its sheaf of etale sections. This is an isomorphism: note that $P$ is proper, so rational sections in $P$ extends. We have the spectral sequence $$\mathrm{H}^p(S,R^qj_*P_\eta)\Rightarrow\mathrm{H}^{p+q}(\eta,P_\eta).$$The low degree terms reads: $$0\to\mathrm{H}^1(S,P)\to\mathrm{H}^1(\eta, P_\eta)\to \mathrm{H}^0(S,R^1j_*P_\eta)\to \mathrm{H}^2(S,P)\to\mathrm{H}^2(\eta, P_\eta)$$ The sheaf $R^1j_*P_\eta$ is supported on $s$, I am not sure how to interpret $\mathrm{H}^0(S,R^1j_*P_\eta)$? ]