FreeBSD Bugzilla – Attachment 205417 Details for
Bug 238037
[PATCH] Implement ig4 suspend/resume
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix bus_barrier code
ig4_pci.c.diff (text/plain), 1.86 KB, created by
J.R. Oldroyd
on 2019-06-29 18:17:39 UTC
(
hide
)
Description:
patch to fix bus_barrier code
Filename:
MIME Type:
Creator:
J.R. Oldroyd
Created:
2019-06-29 18:17:39 UTC
Size:
1.86 KB
patch
obsolete
>--- ig4_pci.oc 2019-06-24 15:01:04.213604000 +0200 >+++ ig4_pci.c 2019-06-29 20:05:19.529047000 +0200 >@@ -249,8 +249,8 @@ > > /* RESETS spec (22.2.36) recommends saving and re-initializing registers */ > for (int i = 0; i < IG4_REGS_CONTEXT_SIZE; i++) { >- bus_barrier(sc->regs_res, regs_context_ids[i], 4, BUS_SPACE_BARRIER_READ); > sc->regs_context[i] = bus_read_4(sc->regs_res, regs_context_ids[i]); >+ bus_barrier(sc->regs_res, regs_context_ids[i], 4, BUS_SPACE_BARRIER_READ); > } > > /* >@@ -259,10 +259,10 @@ > */ > if (sc->version == IG4_HASWELL || sc->version == IG4_ATOM) { > bus_write_4(sc->regs_res, IG4_REG_RESETS_HSW, IG4_RESETS_ASSERT_HSW); >- bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_READ); >+ bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_WRITE); > } else if (sc->version == IG4_SKYLAKE) { > bus_write_4(sc->regs_res, IG4_REG_RESETS_SKL, IG4_RESETS_ASSERT_SKL); >- bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_READ); >+ bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_WRITE); > } else { > device_printf(dev, "Unable to assert reset, reset register unavailable\n"); > } >@@ -281,10 +281,10 @@ > /* wake the controller before its children */ > if (sc->version == IG4_HASWELL || sc->version == IG4_ATOM) { > bus_write_4(sc->regs_res, IG4_REG_RESETS_HSW, IG4_RESETS_DEASSERT_HSW); >- bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_READ); >+ bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_WRITE); > } else if (sc->version == IG4_SKYLAKE) { > bus_write_4(sc->regs_res, IG4_REG_RESETS_SKL, IG4_RESETS_DEASSERT_SKL); >- bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_READ); >+ bus_barrier(sc->regs_res, IG4_REG_RESETS_HSW, 4, BUS_SPACE_BARRIER_WRITE); > } else { > device_printf(dev, "Unable to deassert reset, reset register unavailable\n"); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238037
:
204527
|
205417
|
205432
|
205447
|
205461
|
205573
|
205867
|
207593