<div><div dir="auto">Thanks for taking the time!</div><br><div class="gmail_quote"><div>On Wed, Sep 6, 2017 at 11:38 Samuel Holland <<a href="mailto:samuel@sholland.org">samuel@sholland.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
On 08/31/17 22:45, Andrew A. wrote:<br>
> I tried the following to no avail:<br>
> setpci -s 00:14.0 0xd4.L=0x00000000<br>
> setpci -s 00:14.0 0xdc.L=0x00000000<br>
><br>
> This seems not to have taken hold upon readback:<br>
> setpci -s 00:14.0 0xd4.L<br>
> 00003fff<br>
> setpci -s 00:14.0 0xdc.L<br>
> 0000003f<br>
<br>
This is also what I get on my machine.<br>
<br>
> (And indeed, the same problem persists -- qemu changes the port<br>
> mappings as soon as I boot a guest, locking me out of my host machine<br>
> until I ssh in and run 'setpci .. d0' again)<br>
><br>
> I took a look at what I believe is the R/WL property for these<br>
> settings, which is bit 31 of D20:F0:40h according to the datasheet,<br>
> so:<br>
> setpci -s 00:14.0 0x40.L<br>
> 803609fd<br>
> sudo setpci -s 00:14.0 0x40.L=0x003609fd<br>
<br>
Note that the ACCTRL bit is not documented in that register, further<br>
suggesting that it is a BIOS-only control bit. Likely it is a write-once<br>
bit, so once it has been set, it cannot be unset.<br>
<br>
> But this again didn't seem to have an effect:<br>
> setpci -s 00:14.0 0x40.L<br>
> 803609fd<br>
<br>
Note that other bits in the register can be changed (e.g. you can change<br>
the 6 to a 0 to turn off power management, and change it back to a 6).<br>
Just the top bit is write-protected.<br>
<br>
>> Another potential problem is that your BIOS on the host may<br>
>> write-protect the mask register. In that case, see the datasheet<br>
>> for how to unlock it, if possible.<br>
><br>
> Right, and despite trying to remove the write protect I'm inclined<br>
> to think my unlocking commands are not working for some reason. Do<br>
> you see anything wrong with what I've tried here?<br>
<br>
No, other than that it doesn't work :) I guess we're just out of luck<br>
then, without doing something like patching your BIOS (so the bit never<br>
gets set).<br>
<br>
> Thanks.<br>
<br>
Regards,<br>
Samuel<br>
</blockquote></div></div>