mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
Short summary of fixes:
- dma-buf: revert change to fence handling - mgag200: fix PCI register initialization -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAmLQI0YACgkQaA3BHVML eiOLrwgApfBIz2D/7jhonOmEc9DN5Vq/LbBpV+OveU/8s58PDyXNJvU0iloFPbDu JPidTB71OFawdArUEN0ctUILizqq/00Sr4FvybypVktXZM9rCsVPKsNmKhYReiz2 zqVt+gBlU4qWwlMa1KeNyMcy59Wu0F1KFpn0sk2fti4mVWKquWcWdSIEEM0I2y6N NvPG8QcHzuBnhgUtUhKa7+Hg49MtBWjyVWkYLDmJ2GhQvQz8RL9xGORT/Uv+xi+l 4fK+NTQKgGGYp6JDo4HTIEgneNEhamk1qnQrsGeI+IWysyHJgJIgwOAuQuSYY3+j Deb/PSRDCKGYQjMavNHcjl91WAolqA== =7mgU -----END PGP SIGNATURE----- Merge tag 'drm-misc-next-fixes-2022-07-14' of git://anongit.freedesktop.org/drm/drm-misc into drm-next Short summary of fixes: - dma-buf: revert change to fence handling - mgag200: fix PCI register initialization Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/YtAjgcWC1zkNOGWa@linux-uq9g
This commit is contained in:
commit
891ce1c962
|
|
@ -72,7 +72,8 @@ struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
|
|||
count = 0;
|
||||
for (i = 0; i < num_fences; ++i) {
|
||||
dma_fence_unwrap_for_each(tmp, &iter[i], fences[i])
|
||||
++count;
|
||||
if (!dma_fence_is_signaled(tmp))
|
||||
++count;
|
||||
}
|
||||
|
||||
if (count == 0)
|
||||
|
|
|
|||
|
|
@ -28,12 +28,6 @@ int mgag200_init_pci_options(struct pci_dev *pdev, u32 option, u32 option2)
|
|||
struct device *dev = &pdev->dev;
|
||||
int err;
|
||||
|
||||
err = pci_read_config_dword(pdev, PCI_MGA_OPTION, &option);
|
||||
if (err != PCIBIOS_SUCCESSFUL) {
|
||||
dev_err(dev, "pci_read_config_dword(PCI_MGA_OPTION) failed: %d\n", err);
|
||||
return pcibios_err_to_errno(err);
|
||||
}
|
||||
|
||||
err = pci_write_config_dword(pdev, PCI_MGA_OPTION, option);
|
||||
if (err != PCIBIOS_SUCCESSFUL) {
|
||||
dev_err(dev, "pci_write_config_dword(PCI_MGA_OPTION) failed: %d\n", err);
|
||||
|
|
|
|||
|
|
@ -43,14 +43,10 @@ struct dma_fence *dma_fence_unwrap_next(struct dma_fence_unwrap *cursor);
|
|||
* Unwrap dma_fence_chain and dma_fence_array containers and deep dive into all
|
||||
* potential fences in them. If @head is just a normal fence only that one is
|
||||
* returned.
|
||||
*
|
||||
* Note that signalled fences are opportunistically filtered out, which
|
||||
* means the iteration is potentially over no fence at all.
|
||||
*/
|
||||
#define dma_fence_unwrap_for_each(fence, cursor, head) \
|
||||
for (fence = dma_fence_unwrap_first(head, cursor); fence; \
|
||||
fence = dma_fence_unwrap_next(cursor)) \
|
||||
if (!dma_fence_is_signaled(fence))
|
||||
fence = dma_fence_unwrap_next(cursor))
|
||||
|
||||
struct dma_fence *__dma_fence_unwrap_merge(unsigned int num_fences,
|
||||
struct dma_fence **fences,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user