Displaying 7 results from an estimated 7 matches for "of_property_read_bool".
2023 Oct 10
1
[PATCH 2/2] virtio-mmio: Support multiple interrupts per device
...queue_idx = 0;
> -
> - if (irq < 0)
> - return irq;
> -
> - err = request_irq(irq, vm_interrupt, IRQF_SHARED,
> - dev_name(&vdev->dev), vm_dev);
> - if (err)
> - return err;
> -
> - if (of_property_read_bool(vm_dev->pdev->dev.of_node, "wakeup-source"))
> - enable_irq_wake(irq);
> + struct virtio_mmio_vq_info *info;
> + int i, err, irq, nirqs, queue_idx = 0;
> + unsigned int irq_base = UINT_MAX;
>
> for (i = 0; i < nvqs; ++i) {...
2023 Oct 10
1
[PATCH 2/2] virtio-mmio: Support multiple interrupts per device
...queue_idx = 0;
> -
> - if (irq < 0)
> - return irq;
> -
> - err = request_irq(irq, vm_interrupt, IRQF_SHARED,
> - dev_name(&vdev->dev), vm_dev);
> - if (err)
> - return err;
> -
> - if (of_property_read_bool(vm_dev->pdev->dev.of_node, "wakeup-source"))
> - enable_irq_wake(irq);
> + struct virtio_mmio_vq_info *info;
> + int i, err, irq, nirqs, queue_idx = 0;
> + unsigned int irq_base = UINT_MAX;
>
> for (i = 0; i < nvqs; ++i) {...
2017 Feb 01
3
[PATCH] virtio: Try to untangle DMA coherency
..._node *np)
{
struct device_node *node = of_node_get(np);
+ /*
+ * Check for implicit DMA coherence first, since we don't want
+ * to inherit this.
+ */
+ if (of_device_compatible_match(np, of_device_dma_coherent_tbl)) {
+ of_node_put(node);
+ return true;
+ }
+
while (node) {
- if (of_property_read_bool(node, "dma-coherent")) {
+ if (of_property_read_bool(node, "dma-coherent")){
of_node_put(node);
return true;
}
--
2.1.4
2017 Feb 01
3
[PATCH] virtio: Try to untangle DMA coherency
..._node *np)
{
struct device_node *node = of_node_get(np);
+ /*
+ * Check for implicit DMA coherence first, since we don't want
+ * to inherit this.
+ */
+ if (of_device_compatible_match(np, of_device_dma_coherent_tbl)) {
+ of_node_put(node);
+ return true;
+ }
+
while (node) {
- if (of_property_read_bool(node, "dma-coherent")) {
+ if (of_property_read_bool(node, "dma-coherent")){
of_node_put(node);
return true;
}
--
2.1.4
2017 Feb 01
0
[PATCH] virtio: Try to untangle DMA coherency
...>
> + /*
> + * Check for implicit DMA coherence first, since we don't want
> + * to inherit this.
> + */
> + if (of_device_compatible_match(np, of_device_dma_coherent_tbl)) {
> + of_node_put(node);
> + return true;
> + }
> +
> while (node) {
> - if (of_property_read_bool(node, "dma-coherent")) {
> + if (of_property_read_bool(node, "dma-coherent")){
> of_node_put(node);
> return true;
> }
> --
> 2.1.4
2017 Feb 01
4
[PATCH] virtio: Try to untangle DMA coherency
By forcing on DMA API usage for ARM systems, we have inadvertently
kicked open a hornets' nest in terms of cache-coherency. Namely that
unless the virtio device is explicitly described as capable of coherent
DMA by firmware, the DMA APIs on ARM and other DT-based platforms will
assume it is non-coherent. This turns out to cause a big problem for the
likes of QEMU and kvmtool, which generate
2017 Feb 01
4
[PATCH] virtio: Try to untangle DMA coherency
By forcing on DMA API usage for ARM systems, we have inadvertently
kicked open a hornets' nest in terms of cache-coherency. Namely that
unless the virtio device is explicitly described as capable of coherent
DMA by firmware, the DMA APIs on ARM and other DT-based platforms will
assume it is non-coherent. This turns out to cause a big problem for the
likes of QEMU and kvmtool, which generate